packaging: enable build for aarch64
[platform/upstream/libunwind.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libunwind 1.2.
4 #
5 # Report bugs to <libunwind-devel@nongnu.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
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$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
713 fi
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.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 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.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='libunwind'
747 PACKAGE_TARNAME='libunwind'
748 PACKAGE_VERSION='1.2'
749 PACKAGE_STRING='libunwind 1.2'
750 PACKAGE_BUGREPORT='libunwind-devel@nongnu.org'
751
752 ac_unique_file="src/mi/backtrace.c"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 #  include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 #  include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='am__EXEEXT_FALSE
790 am__EXEEXT_TRUE
791 LTLIBOBJS
792 LIBOBJS
793 CONFIG_DOCS_FALSE
794 CONFIG_DOCS_TRUE
795 LATEX2MAN
796 DLLIB
797 enable_debug_frame
798 enable_cxx_exceptions
799 PKG_MAINTAINER
800 PKG_EXTRA
801 PKG_MINOR
802 PKG_MAJOR
803 LIBCRTS
804 LDFLAGS_NOSTARTFILES
805 LDFLAGS_STATIC_LIBCXA
806 ARCH
807 arch
808 build_arch
809 HAVE_LZMA_FALSE
810 HAVE_LZMA_TRUE
811 LIBLZMA
812 SUPPORT_CXX_EXCEPTIONS_FALSE
813 SUPPORT_CXX_EXCEPTIONS_TRUE
814 USE_DWARF_FALSE
815 USE_DWARF_TRUE
816 USE_ELFXX_FALSE
817 USE_ELFXX_TRUE
818 USE_ELF64_FALSE
819 USE_ELF64_TRUE
820 USE_ELF32_FALSE
821 USE_ELF32_TRUE
822 OS_QNX_FALSE
823 OS_QNX_TRUE
824 OS_FREEBSD_FALSE
825 OS_FREEBSD_TRUE
826 OS_HPUX_FALSE
827 OS_HPUX_TRUE
828 OS_LINUX_FALSE
829 OS_LINUX_TRUE
830 ARCH_TILEGX_FALSE
831 ARCH_TILEGX_TRUE
832 ARCH_SH_FALSE
833 ARCH_SH_TRUE
834 ARCH_PPC64_FALSE
835 ARCH_PPC64_TRUE
836 ARCH_PPC32_FALSE
837 ARCH_PPC32_TRUE
838 ARCH_X86_64_FALSE
839 ARCH_X86_64_TRUE
840 ARCH_X86_FALSE
841 ARCH_X86_TRUE
842 ARCH_MIPS_FALSE
843 ARCH_MIPS_TRUE
844 ARCH_HPPA_FALSE
845 ARCH_HPPA_TRUE
846 ARCH_IA64_FALSE
847 ARCH_IA64_TRUE
848 ARCH_ARM_FALSE
849 ARCH_ARM_TRUE
850 ARCH_AARCH64_FALSE
851 ARCH_AARCH64_TRUE
852 REMOTE_ONLY_FALSE
853 REMOTE_ONLY_TRUE
854 BUILD_SETJMP_FALSE
855 BUILD_SETJMP_TRUE
856 BUILD_PTRACE_FALSE
857 BUILD_PTRACE_TRUE
858 BUILD_COREDUMP_FALSE
859 BUILD_COREDUMP_TRUE
860 USE_ALTIVEC_FALSE
861 USE_ALTIVEC_TRUE
862 am__fastdepCCAS_FALSE
863 am__fastdepCCAS_TRUE
864 CCASDEPMODE
865 CCASFLAGS
866 CCAS
867 CXXCPP
868 CPP
869 OTOOL64
870 OTOOL
871 LIPO
872 NMEDIT
873 DSYMUTIL
874 lt_ECHO
875 RANLIB
876 AR
877 OBJDUMP
878 LN_S
879 NM
880 ac_ct_DUMPBIN
881 DUMPBIN
882 LD
883 FGREP
884 EGREP
885 GREP
886 SED
887 LIBTOOL
888 am__fastdepCXX_FALSE
889 am__fastdepCXX_TRUE
890 CXXDEPMODE
891 ac_ct_CXX
892 CXXFLAGS
893 CXX
894 am__fastdepCC_FALSE
895 am__fastdepCC_TRUE
896 CCDEPMODE
897 AMDEPBACKSLASH
898 AMDEP_FALSE
899 AMDEP_TRUE
900 am__quote
901 am__include
902 DEPDIR
903 OBJEXT
904 EXEEXT
905 ac_ct_CC
906 CPPFLAGS
907 LDFLAGS
908 CFLAGS
909 CC
910 MAINT
911 MAINTAINER_MODE_FALSE
912 MAINTAINER_MODE_TRUE
913 am__untar
914 am__tar
915 AMTAR
916 am__leading_dot
917 SET_MAKE
918 AWK
919 mkdir_p
920 MKDIR_P
921 INSTALL_STRIP_PROGRAM
922 STRIP
923 install_sh
924 MAKEINFO
925 AUTOHEADER
926 AUTOMAKE
927 AUTOCONF
928 ACLOCAL
929 VERSION
930 PACKAGE
931 CYGPATH_W
932 am__isrc
933 INSTALL_DATA
934 INSTALL_SCRIPT
935 INSTALL_PROGRAM
936 target_os
937 target_vendor
938 target_cpu
939 target
940 host_os
941 host_vendor
942 host_cpu
943 host
944 build_os
945 build_vendor
946 build_cpu
947 build
948 target_alias
949 host_alias
950 build_alias
951 LIBS
952 ECHO_T
953 ECHO_N
954 ECHO_C
955 DEFS
956 mandir
957 localedir
958 libdir
959 psdir
960 pdfdir
961 dvidir
962 htmldir
963 infodir
964 docdir
965 oldincludedir
966 includedir
967 localstatedir
968 sharedstatedir
969 sysconfdir
970 datadir
971 datarootdir
972 libexecdir
973 sbindir
974 bindir
975 program_transform_name
976 prefix
977 exec_prefix
978 PACKAGE_BUGREPORT
979 PACKAGE_STRING
980 PACKAGE_VERSION
981 PACKAGE_TARNAME
982 PACKAGE_NAME
983 PATH_SEPARATOR
984 SHELL'
985 ac_subst_files=''
986 ac_user_opts='
987 enable_option_checking
988 enable_maintainer_mode
989 enable_dependency_tracking
990 enable_shared
991 enable_static
992 with_pic
993 enable_fast_install
994 with_gnu_ld
995 enable_libtool_lock
996 enable_coredump
997 enable_ptrace
998 enable_setjmp
999 enable_documentation
1000 enable_debug
1001 enable_cxx_exceptions
1002 enable_debug_frame
1003 enable_block_signals
1004 enable_conservative_checks
1005 enable_msabi_support
1006 enable_minidebuginfo
1007 '
1008       ac_precious_vars='build_alias
1009 host_alias
1010 target_alias
1011 CC
1012 CFLAGS
1013 LDFLAGS
1014 LIBS
1015 CPPFLAGS
1016 CXX
1017 CXXFLAGS
1018 CCC
1019 CPP
1020 CXXCPP
1021 CCAS
1022 CCASFLAGS'
1023
1024
1025 # Initialize some variables set by options.
1026 ac_init_help=
1027 ac_init_version=false
1028 ac_unrecognized_opts=
1029 ac_unrecognized_sep=
1030 # The variables have the same names as the options, with
1031 # dashes changed to underlines.
1032 cache_file=/dev/null
1033 exec_prefix=NONE
1034 no_create=
1035 no_recursion=
1036 prefix=NONE
1037 program_prefix=NONE
1038 program_suffix=NONE
1039 program_transform_name=s,x,x,
1040 silent=
1041 site=
1042 srcdir=
1043 verbose=
1044 x_includes=NONE
1045 x_libraries=NONE
1046
1047 # Installation directory options.
1048 # These are left unexpanded so users can "make install exec_prefix=/foo"
1049 # and all the variables that are supposed to be based on exec_prefix
1050 # by default will actually change.
1051 # Use braces instead of parens because sh, perl, etc. also accept them.
1052 # (The list follows the same order as the GNU Coding Standards.)
1053 bindir='${exec_prefix}/bin'
1054 sbindir='${exec_prefix}/sbin'
1055 libexecdir='${exec_prefix}/libexec'
1056 datarootdir='${prefix}/share'
1057 datadir='${datarootdir}'
1058 sysconfdir='${prefix}/etc'
1059 sharedstatedir='${prefix}/com'
1060 localstatedir='${prefix}/var'
1061 includedir='${prefix}/include'
1062 oldincludedir='/usr/include'
1063 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1064 infodir='${datarootdir}/info'
1065 htmldir='${docdir}'
1066 dvidir='${docdir}'
1067 pdfdir='${docdir}'
1068 psdir='${docdir}'
1069 libdir='${exec_prefix}/lib'
1070 localedir='${datarootdir}/locale'
1071 mandir='${datarootdir}/man'
1072
1073 ac_prev=
1074 ac_dashdash=
1075 for ac_option
1076 do
1077   # If the previous option needs an argument, assign it.
1078   if test -n "$ac_prev"; then
1079     eval $ac_prev=\$ac_option
1080     ac_prev=
1081     continue
1082   fi
1083
1084   case $ac_option in
1085   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1086   *)    ac_optarg=yes ;;
1087   esac
1088
1089   # Accept the important Cygnus configure options, so we can diagnose typos.
1090
1091   case $ac_dashdash$ac_option in
1092   --)
1093     ac_dashdash=yes ;;
1094
1095   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096     ac_prev=bindir ;;
1097   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098     bindir=$ac_optarg ;;
1099
1100   -build | --build | --buil | --bui | --bu)
1101     ac_prev=build_alias ;;
1102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103     build_alias=$ac_optarg ;;
1104
1105   -cache-file | --cache-file | --cache-fil | --cache-fi \
1106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107     ac_prev=cache_file ;;
1108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110     cache_file=$ac_optarg ;;
1111
1112   --config-cache | -C)
1113     cache_file=config.cache ;;
1114
1115   -datadir | --datadir | --datadi | --datad)
1116     ac_prev=datadir ;;
1117   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118     datadir=$ac_optarg ;;
1119
1120   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121   | --dataroo | --dataro | --datar)
1122     ac_prev=datarootdir ;;
1123   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125     datarootdir=$ac_optarg ;;
1126
1127   -disable-* | --disable-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1132    { (exit 1); exit 1; }; }
1133     ac_useropt_orig=$ac_useropt
1134     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135     case $ac_user_opts in
1136       *"
1137 "enable_$ac_useropt"
1138 "*) ;;
1139       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1140          ac_unrecognized_sep=', ';;
1141     esac
1142     eval enable_$ac_useropt=no ;;
1143
1144   -docdir | --docdir | --docdi | --doc | --do)
1145     ac_prev=docdir ;;
1146   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1147     docdir=$ac_optarg ;;
1148
1149   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1150     ac_prev=dvidir ;;
1151   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1152     dvidir=$ac_optarg ;;
1153
1154   -enable-* | --enable-*)
1155     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1159    { (exit 1); exit 1; }; }
1160     ac_useropt_orig=$ac_useropt
1161     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162     case $ac_user_opts in
1163       *"
1164 "enable_$ac_useropt"
1165 "*) ;;
1166       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1167          ac_unrecognized_sep=', ';;
1168     esac
1169     eval enable_$ac_useropt=\$ac_optarg ;;
1170
1171   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1172   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1173   | --exec | --exe | --ex)
1174     ac_prev=exec_prefix ;;
1175   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1176   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1177   | --exec=* | --exe=* | --ex=*)
1178     exec_prefix=$ac_optarg ;;
1179
1180   -gas | --gas | --ga | --g)
1181     # Obsolete; use --with-gas.
1182     with_gas=yes ;;
1183
1184   -help | --help | --hel | --he | -h)
1185     ac_init_help=long ;;
1186   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1187     ac_init_help=recursive ;;
1188   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1189     ac_init_help=short ;;
1190
1191   -host | --host | --hos | --ho)
1192     ac_prev=host_alias ;;
1193   -host=* | --host=* | --hos=* | --ho=*)
1194     host_alias=$ac_optarg ;;
1195
1196   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1197     ac_prev=htmldir ;;
1198   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1199   | --ht=*)
1200     htmldir=$ac_optarg ;;
1201
1202   -includedir | --includedir | --includedi | --included | --include \
1203   | --includ | --inclu | --incl | --inc)
1204     ac_prev=includedir ;;
1205   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1206   | --includ=* | --inclu=* | --incl=* | --inc=*)
1207     includedir=$ac_optarg ;;
1208
1209   -infodir | --infodir | --infodi | --infod | --info | --inf)
1210     ac_prev=infodir ;;
1211   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1212     infodir=$ac_optarg ;;
1213
1214   -libdir | --libdir | --libdi | --libd)
1215     ac_prev=libdir ;;
1216   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1217     libdir=$ac_optarg ;;
1218
1219   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1220   | --libexe | --libex | --libe)
1221     ac_prev=libexecdir ;;
1222   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1223   | --libexe=* | --libex=* | --libe=*)
1224     libexecdir=$ac_optarg ;;
1225
1226   -localedir | --localedir | --localedi | --localed | --locale)
1227     ac_prev=localedir ;;
1228   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1229     localedir=$ac_optarg ;;
1230
1231   -localstatedir | --localstatedir | --localstatedi | --localstated \
1232   | --localstate | --localstat | --localsta | --localst | --locals)
1233     ac_prev=localstatedir ;;
1234   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1235   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1236     localstatedir=$ac_optarg ;;
1237
1238   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1239     ac_prev=mandir ;;
1240   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1241     mandir=$ac_optarg ;;
1242
1243   -nfp | --nfp | --nf)
1244     # Obsolete; use --without-fp.
1245     with_fp=no ;;
1246
1247   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1248   | --no-cr | --no-c | -n)
1249     no_create=yes ;;
1250
1251   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1252   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1253     no_recursion=yes ;;
1254
1255   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1256   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1257   | --oldin | --oldi | --old | --ol | --o)
1258     ac_prev=oldincludedir ;;
1259   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1260   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1261   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1262     oldincludedir=$ac_optarg ;;
1263
1264   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1265     ac_prev=prefix ;;
1266   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1267     prefix=$ac_optarg ;;
1268
1269   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1270   | --program-pre | --program-pr | --program-p)
1271     ac_prev=program_prefix ;;
1272   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1273   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1274     program_prefix=$ac_optarg ;;
1275
1276   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1277   | --program-suf | --program-su | --program-s)
1278     ac_prev=program_suffix ;;
1279   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1280   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1281     program_suffix=$ac_optarg ;;
1282
1283   -program-transform-name | --program-transform-name \
1284   | --program-transform-nam | --program-transform-na \
1285   | --program-transform-n | --program-transform- \
1286   | --program-transform | --program-transfor \
1287   | --program-transfo | --program-transf \
1288   | --program-trans | --program-tran \
1289   | --progr-tra | --program-tr | --program-t)
1290     ac_prev=program_transform_name ;;
1291   -program-transform-name=* | --program-transform-name=* \
1292   | --program-transform-nam=* | --program-transform-na=* \
1293   | --program-transform-n=* | --program-transform-=* \
1294   | --program-transform=* | --program-transfor=* \
1295   | --program-transfo=* | --program-transf=* \
1296   | --program-trans=* | --program-tran=* \
1297   | --progr-tra=* | --program-tr=* | --program-t=*)
1298     program_transform_name=$ac_optarg ;;
1299
1300   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1301     ac_prev=pdfdir ;;
1302   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1303     pdfdir=$ac_optarg ;;
1304
1305   -psdir | --psdir | --psdi | --psd | --ps)
1306     ac_prev=psdir ;;
1307   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1308     psdir=$ac_optarg ;;
1309
1310   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1311   | -silent | --silent | --silen | --sile | --sil)
1312     silent=yes ;;
1313
1314   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1315     ac_prev=sbindir ;;
1316   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1317   | --sbi=* | --sb=*)
1318     sbindir=$ac_optarg ;;
1319
1320   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1321   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1322   | --sharedst | --shareds | --shared | --share | --shar \
1323   | --sha | --sh)
1324     ac_prev=sharedstatedir ;;
1325   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1326   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1327   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1328   | --sha=* | --sh=*)
1329     sharedstatedir=$ac_optarg ;;
1330
1331   -site | --site | --sit)
1332     ac_prev=site ;;
1333   -site=* | --site=* | --sit=*)
1334     site=$ac_optarg ;;
1335
1336   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1337     ac_prev=srcdir ;;
1338   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1339     srcdir=$ac_optarg ;;
1340
1341   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1342   | --syscon | --sysco | --sysc | --sys | --sy)
1343     ac_prev=sysconfdir ;;
1344   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1345   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1346     sysconfdir=$ac_optarg ;;
1347
1348   -target | --target | --targe | --targ | --tar | --ta | --t)
1349     ac_prev=target_alias ;;
1350   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1351     target_alias=$ac_optarg ;;
1352
1353   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1354     verbose=yes ;;
1355
1356   -version | --version | --versio | --versi | --vers | -V)
1357     ac_init_version=: ;;
1358
1359   -with-* | --with-*)
1360     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1361     # Reject names that are not valid shell variable names.
1362     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1364    { (exit 1); exit 1; }; }
1365     ac_useropt_orig=$ac_useropt
1366     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367     case $ac_user_opts in
1368       *"
1369 "with_$ac_useropt"
1370 "*) ;;
1371       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1372          ac_unrecognized_sep=', ';;
1373     esac
1374     eval with_$ac_useropt=\$ac_optarg ;;
1375
1376   -without-* | --without-*)
1377     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1378     # Reject names that are not valid shell variable names.
1379     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1381    { (exit 1); exit 1; }; }
1382     ac_useropt_orig=$ac_useropt
1383     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384     case $ac_user_opts in
1385       *"
1386 "with_$ac_useropt"
1387 "*) ;;
1388       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1389          ac_unrecognized_sep=', ';;
1390     esac
1391     eval with_$ac_useropt=no ;;
1392
1393   --x)
1394     # Obsolete; use --with-x.
1395     with_x=yes ;;
1396
1397   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398   | --x-incl | --x-inc | --x-in | --x-i)
1399     ac_prev=x_includes ;;
1400   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402     x_includes=$ac_optarg ;;
1403
1404   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406     ac_prev=x_libraries ;;
1407   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409     x_libraries=$ac_optarg ;;
1410
1411   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1412 Try \`$0 --help' for more information." >&2
1413    { (exit 1); exit 1; }; }
1414     ;;
1415
1416   *=*)
1417     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418     # Reject names that are not valid shell variable names.
1419     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1420       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1421    { (exit 1); exit 1; }; }
1422     eval $ac_envvar=\$ac_optarg
1423     export $ac_envvar ;;
1424
1425   *)
1426     # FIXME: should be removed in autoconf 3.0.
1427     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1431     ;;
1432
1433   esac
1434 done
1435
1436 if test -n "$ac_prev"; then
1437   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1439    { (exit 1); exit 1; }; }
1440 fi
1441
1442 if test -n "$ac_unrecognized_opts"; then
1443   case $enable_option_checking in
1444     no) ;;
1445     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1446    { (exit 1); exit 1; }; } ;;
1447     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1448   esac
1449 fi
1450
1451 # Check all directory arguments for consistency.
1452 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453                 datadir sysconfdir sharedstatedir localstatedir includedir \
1454                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455                 libdir localedir mandir
1456 do
1457   eval ac_val=\$$ac_var
1458   # Remove trailing slashes.
1459   case $ac_val in
1460     */ )
1461       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1462       eval $ac_var=\$ac_val;;
1463   esac
1464   # Be sure to have absolute directory names.
1465   case $ac_val in
1466     [\\/$]* | ?:[\\/]* )  continue;;
1467     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1468   esac
1469   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1470    { (exit 1); exit 1; }; }
1471 done
1472
1473 # There might be people who depend on the old broken behavior: `$host'
1474 # used to hold the argument of --host etc.
1475 # FIXME: To remove some day.
1476 build=$build_alias
1477 host=$host_alias
1478 target=$target_alias
1479
1480 # FIXME: To remove some day.
1481 if test "x$host_alias" != x; then
1482   if test "x$build_alias" = x; then
1483     cross_compiling=maybe
1484     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1485     If a cross compiler is detected then cross compile mode will be used." >&2
1486   elif test "x$build_alias" != "x$host_alias"; then
1487     cross_compiling=yes
1488   fi
1489 fi
1490
1491 ac_tool_prefix=
1492 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1493
1494 test "$silent" = yes && exec 6>/dev/null
1495
1496
1497 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1498 ac_ls_di=`ls -di .` &&
1499 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1500   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1501    { (exit 1); exit 1; }; }
1502 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1503   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1504    { (exit 1); exit 1; }; }
1505
1506
1507 # Find the source files, if location was not specified.
1508 if test -z "$srcdir"; then
1509   ac_srcdir_defaulted=yes
1510   # Try the directory containing this script, then the parent directory.
1511   ac_confdir=`$as_dirname -- "$as_myself" ||
1512 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1513          X"$as_myself" : 'X\(//\)[^/]' \| \
1514          X"$as_myself" : 'X\(//\)$' \| \
1515          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1516 $as_echo X"$as_myself" |
1517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1518             s//\1/
1519             q
1520           }
1521           /^X\(\/\/\)[^/].*/{
1522             s//\1/
1523             q
1524           }
1525           /^X\(\/\/\)$/{
1526             s//\1/
1527             q
1528           }
1529           /^X\(\/\).*/{
1530             s//\1/
1531             q
1532           }
1533           s/.*/./; q'`
1534   srcdir=$ac_confdir
1535   if test ! -r "$srcdir/$ac_unique_file"; then
1536     srcdir=..
1537   fi
1538 else
1539   ac_srcdir_defaulted=no
1540 fi
1541 if test ! -r "$srcdir/$ac_unique_file"; then
1542   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1543   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1544    { (exit 1); exit 1; }; }
1545 fi
1546 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1547 ac_abs_confdir=`(
1548         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1549    { (exit 1); exit 1; }; }
1550         pwd)`
1551 # When building in place, set srcdir=.
1552 if test "$ac_abs_confdir" = "$ac_pwd"; then
1553   srcdir=.
1554 fi
1555 # Remove unnecessary trailing slashes from srcdir.
1556 # Double slashes in file names in object file debugging info
1557 # mess up M-x gdb in Emacs.
1558 case $srcdir in
1559 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1560 esac
1561 for ac_var in $ac_precious_vars; do
1562   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1563   eval ac_env_${ac_var}_value=\$${ac_var}
1564   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1565   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1566 done
1567
1568 #
1569 # Report the --help message.
1570 #
1571 if test "$ac_init_help" = "long"; then
1572   # Omit some internal or obsolete options to make the list less imposing.
1573   # This message is too long to be a string in the A/UX 3.1 sh.
1574   cat <<_ACEOF
1575 \`configure' configures libunwind 1.2 to adapt to many kinds of systems.
1576
1577 Usage: $0 [OPTION]... [VAR=VALUE]...
1578
1579 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1580 VAR=VALUE.  See below for descriptions of some of the useful variables.
1581
1582 Defaults for the options are specified in brackets.
1583
1584 Configuration:
1585   -h, --help              display this help and exit
1586       --help=short        display options specific to this package
1587       --help=recursive    display the short help of all the included packages
1588   -V, --version           display version information and exit
1589   -q, --quiet, --silent   do not print \`checking...' messages
1590       --cache-file=FILE   cache test results in FILE [disabled]
1591   -C, --config-cache      alias for \`--cache-file=config.cache'
1592   -n, --no-create         do not create output files
1593       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1594
1595 Installation directories:
1596   --prefix=PREFIX         install architecture-independent files in PREFIX
1597                           [$ac_default_prefix]
1598   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1599                           [PREFIX]
1600
1601 By default, \`make install' will install all the files in
1602 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1603 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1604 for instance \`--prefix=\$HOME'.
1605
1606 For better control, use the options below.
1607
1608 Fine tuning of the installation directories:
1609   --bindir=DIR            user executables [EPREFIX/bin]
1610   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1611   --libexecdir=DIR        program executables [EPREFIX/libexec]
1612   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1613   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1614   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1615   --libdir=DIR            object code libraries [EPREFIX/lib]
1616   --includedir=DIR        C header files [PREFIX/include]
1617   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1618   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1619   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1620   --infodir=DIR           info documentation [DATAROOTDIR/info]
1621   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1622   --mandir=DIR            man documentation [DATAROOTDIR/man]
1623   --docdir=DIR            documentation root [DATAROOTDIR/doc/libunwind]
1624   --htmldir=DIR           html documentation [DOCDIR]
1625   --dvidir=DIR            dvi documentation [DOCDIR]
1626   --pdfdir=DIR            pdf documentation [DOCDIR]
1627   --psdir=DIR             ps documentation [DOCDIR]
1628 _ACEOF
1629
1630   cat <<\_ACEOF
1631
1632 Program names:
1633   --program-prefix=PREFIX            prepend PREFIX to installed program names
1634   --program-suffix=SUFFIX            append SUFFIX to installed program names
1635   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1636
1637 System types:
1638   --build=BUILD     configure for building on BUILD [guessed]
1639   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1640   --target=TARGET   configure for building compilers for TARGET [HOST]
1641 _ACEOF
1642 fi
1643
1644 if test -n "$ac_init_help"; then
1645   case $ac_init_help in
1646      short | recursive ) echo "Configuration of libunwind 1.2:";;
1647    esac
1648   cat <<\_ACEOF
1649
1650 Optional Features:
1651   --disable-option-checking  ignore unrecognized --enable/--with options
1652   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1653   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1654   --enable-maintainer-mode  enable make rules and dependencies not useful
1655                           (and sometimes confusing) to the casual installer
1656   --disable-dependency-tracking  speeds up one-time build
1657   --enable-dependency-tracking   do not reject slow dependency extractors
1658   --enable-shared[=PKGS]  build shared libraries [default=yes]
1659   --enable-static[=PKGS]  build static libraries [default=yes]
1660   --enable-fast-install[=PKGS]
1661                           optimize for fast installation [default=yes]
1662   --disable-libtool-lock  avoid locking (might break parallel builds)
1663   --enable-coredump       building libunwind-coredump library
1664   --enable-ptrace         building libunwind-ptrace library
1665   --enable-setjmp         building libunwind-setjmp library
1666   --disable-documentation Disable generating the man pages
1667   --enable-debug          turn on debug support (slows down execution)
1668   --enable-cxx-exceptions use libunwind to handle C++ exceptions
1669   --enable-debug-frame    Load the ".debug_frame" section if available
1670   --enable-block-signals  Block signals before performing mutex operations
1671   --enable-conservative-checks
1672                           Validate all memory addresses before use
1673   --enable-msabi-support  Enables support for Microsoft ABI extensions
1674   --enable-minidebuginfo  Enables support for LZMA-compressed symbol tables
1675
1676 Optional Packages:
1677   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1678   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1679   --with-pic              try to use only PIC/non-PIC objects [default=use
1680                           both]
1681   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1682
1683 Some influential environment variables:
1684   CC          C compiler command
1685   CFLAGS      C compiler flags
1686   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1687               nonstandard directory <lib dir>
1688   LIBS        libraries to pass to the linker, e.g. -l<library>
1689   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1690               you have headers in a nonstandard directory <include dir>
1691   CXX         C++ compiler command
1692   CXXFLAGS    C++ compiler flags
1693   CPP         C preprocessor
1694   CXXCPP      C++ preprocessor
1695   CCAS        assembler compiler command (defaults to CC)
1696   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1697
1698 Use these variables to override the choices made by `configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1700
1701 Report bugs to <libunwind-devel@nongnu.org>.
1702 _ACEOF
1703 ac_status=$?
1704 fi
1705
1706 if test "$ac_init_help" = "recursive"; then
1707   # If there are subdirs, report their specific --help.
1708   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709     test -d "$ac_dir" ||
1710       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1711       continue
1712     ac_builddir=.
1713
1714 case "$ac_dir" in
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716 *)
1717   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718   # A ".." for each directory in $ac_dir_suffix.
1719   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720   case $ac_top_builddir_sub in
1721   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1723   esac ;;
1724 esac
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1729
1730 case $srcdir in
1731   .)  # We are building in place.
1732     ac_srcdir=.
1733     ac_top_srcdir=$ac_top_builddir_sub
1734     ac_abs_top_srcdir=$ac_pwd ;;
1735   [\\/]* | ?:[\\/]* )  # Absolute name.
1736     ac_srcdir=$srcdir$ac_dir_suffix;
1737     ac_top_srcdir=$srcdir
1738     ac_abs_top_srcdir=$srcdir ;;
1739   *) # Relative name.
1740     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741     ac_top_srcdir=$ac_top_build_prefix$srcdir
1742     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743 esac
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1745
1746     cd "$ac_dir" || { ac_status=$?; continue; }
1747     # Check for guested configure.
1748     if test -f "$ac_srcdir/configure.gnu"; then
1749       echo &&
1750       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751     elif test -f "$ac_srcdir/configure"; then
1752       echo &&
1753       $SHELL "$ac_srcdir/configure" --help=recursive
1754     else
1755       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756     fi || ac_status=$?
1757     cd "$ac_pwd" || { ac_status=$?; break; }
1758   done
1759 fi
1760
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1763   cat <<\_ACEOF
1764 libunwind configure 1.2
1765 generated by GNU Autoconf 2.63
1766
1767 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1768 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1771 _ACEOF
1772   exit
1773 fi
1774 cat >config.log <<_ACEOF
1775 This file contains any messages produced by compilers while
1776 running configure, to aid debugging if configure makes a mistake.
1777
1778 It was created by libunwind $as_me 1.2, which was
1779 generated by GNU Autoconf 2.63.  Invocation command line was
1780
1781   $ $0 $@
1782
1783 _ACEOF
1784 exec 5>>config.log
1785 {
1786 cat <<_ASUNAME
1787 ## --------- ##
1788 ## Platform. ##
1789 ## --------- ##
1790
1791 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1792 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1793 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1794 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1795 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1796
1797 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1798 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1799
1800 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1801 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1802 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1803 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1804 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1805 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1806 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1807
1808 _ASUNAME
1809
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 for as_dir in $PATH
1812 do
1813   IFS=$as_save_IFS
1814   test -z "$as_dir" && as_dir=.
1815   $as_echo "PATH: $as_dir"
1816 done
1817 IFS=$as_save_IFS
1818
1819 } >&5
1820
1821 cat >&5 <<_ACEOF
1822
1823
1824 ## ----------- ##
1825 ## Core tests. ##
1826 ## ----------- ##
1827
1828 _ACEOF
1829
1830
1831 # Keep a trace of the command line.
1832 # Strip out --no-create and --no-recursion so they do not pile up.
1833 # Strip out --silent because we don't want to record it for future runs.
1834 # Also quote any args containing shell meta-characters.
1835 # Make two passes to allow for proper duplicate-argument suppression.
1836 ac_configure_args=
1837 ac_configure_args0=
1838 ac_configure_args1=
1839 ac_must_keep_next=false
1840 for ac_pass in 1 2
1841 do
1842   for ac_arg
1843   do
1844     case $ac_arg in
1845     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1846     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1847     | -silent | --silent | --silen | --sile | --sil)
1848       continue ;;
1849     *\'*)
1850       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1851     esac
1852     case $ac_pass in
1853     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1854     2)
1855       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1856       if test $ac_must_keep_next = true; then
1857         ac_must_keep_next=false # Got value, back to normal.
1858       else
1859         case $ac_arg in
1860           *=* | --config-cache | -C | -disable-* | --disable-* \
1861           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1862           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1863           | -with-* | --with-* | -without-* | --without-* | --x)
1864             case "$ac_configure_args0 " in
1865               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1866             esac
1867             ;;
1868           -* ) ac_must_keep_next=true ;;
1869         esac
1870       fi
1871       ac_configure_args="$ac_configure_args '$ac_arg'"
1872       ;;
1873     esac
1874   done
1875 done
1876 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1877 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1878
1879 # When interrupted or exit'd, cleanup temporary files, and complete
1880 # config.log.  We remove comments because anyway the quotes in there
1881 # would cause problems or look ugly.
1882 # WARNING: Use '\'' to represent an apostrophe within the trap.
1883 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1884 trap 'exit_status=$?
1885   # Save into config.log some information that might help in debugging.
1886   {
1887     echo
1888
1889     cat <<\_ASBOX
1890 ## ---------------- ##
1891 ## Cache variables. ##
1892 ## ---------------- ##
1893 _ASBOX
1894     echo
1895     # The following way of writing the cache mishandles newlines in values,
1896 (
1897   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1898     eval ac_val=\$$ac_var
1899     case $ac_val in #(
1900     *${as_nl}*)
1901       case $ac_var in #(
1902       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1903 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1904       esac
1905       case $ac_var in #(
1906       _ | IFS | as_nl) ;; #(
1907       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1908       *) $as_unset $ac_var ;;
1909       esac ;;
1910     esac
1911   done
1912   (set) 2>&1 |
1913     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1914     *${as_nl}ac_space=\ *)
1915       sed -n \
1916         "s/'\''/'\''\\\\'\'''\''/g;
1917           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1918       ;; #(
1919     *)
1920       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1921       ;;
1922     esac |
1923     sort
1924 )
1925     echo
1926
1927     cat <<\_ASBOX
1928 ## ----------------- ##
1929 ## Output variables. ##
1930 ## ----------------- ##
1931 _ASBOX
1932     echo
1933     for ac_var in $ac_subst_vars
1934     do
1935       eval ac_val=\$$ac_var
1936       case $ac_val in
1937       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1938       esac
1939       $as_echo "$ac_var='\''$ac_val'\''"
1940     done | sort
1941     echo
1942
1943     if test -n "$ac_subst_files"; then
1944       cat <<\_ASBOX
1945 ## ------------------- ##
1946 ## File substitutions. ##
1947 ## ------------------- ##
1948 _ASBOX
1949       echo
1950       for ac_var in $ac_subst_files
1951       do
1952         eval ac_val=\$$ac_var
1953         case $ac_val in
1954         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955         esac
1956         $as_echo "$ac_var='\''$ac_val'\''"
1957       done | sort
1958       echo
1959     fi
1960
1961     if test -s confdefs.h; then
1962       cat <<\_ASBOX
1963 ## ----------- ##
1964 ## confdefs.h. ##
1965 ## ----------- ##
1966 _ASBOX
1967       echo
1968       cat confdefs.h
1969       echo
1970     fi
1971     test "$ac_signal" != 0 &&
1972       $as_echo "$as_me: caught signal $ac_signal"
1973     $as_echo "$as_me: exit $exit_status"
1974   } >&5
1975   rm -f core *.core core.conftest.* &&
1976     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1977     exit $exit_status
1978 ' 0
1979 for ac_signal in 1 2 13 15; do
1980   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1981 done
1982 ac_signal=0
1983
1984 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1985 rm -f -r conftest* confdefs.h
1986
1987 # Predefined preprocessor variables.
1988
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_NAME "$PACKAGE_NAME"
1991 _ACEOF
1992
1993
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1996 _ACEOF
1997
1998
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2001 _ACEOF
2002
2003
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_STRING "$PACKAGE_STRING"
2006 _ACEOF
2007
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2011 _ACEOF
2012
2013
2014 # Let the site file select an alternate cache file if it wants to.
2015 # Prefer an explicitly selected file to automatically selected ones.
2016 ac_site_file1=NONE
2017 ac_site_file2=NONE
2018 if test -n "$CONFIG_SITE"; then
2019   ac_site_file1=$CONFIG_SITE
2020 elif test "x$prefix" != xNONE; then
2021   ac_site_file1=$prefix/share/config.site
2022   ac_site_file2=$prefix/etc/config.site
2023 else
2024   ac_site_file1=$ac_default_prefix/share/config.site
2025   ac_site_file2=$ac_default_prefix/etc/config.site
2026 fi
2027 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2028 do
2029   test "x$ac_site_file" = xNONE && continue
2030   if test -r "$ac_site_file"; then
2031     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2032 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2033     sed 's/^/| /' "$ac_site_file" >&5
2034     . "$ac_site_file"
2035   fi
2036 done
2037
2038 if test -r "$cache_file"; then
2039   # Some versions of bash will fail to source /dev/null (special
2040   # files actually), so we avoid doing that.
2041   if test -f "$cache_file"; then
2042     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2043 $as_echo "$as_me: loading cache $cache_file" >&6;}
2044     case $cache_file in
2045       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2046       *)                      . "./$cache_file";;
2047     esac
2048   fi
2049 else
2050   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2051 $as_echo "$as_me: creating cache $cache_file" >&6;}
2052   >$cache_file
2053 fi
2054
2055 # Check that the precious variables saved in the cache have kept the same
2056 # value.
2057 ac_cache_corrupted=false
2058 for ac_var in $ac_precious_vars; do
2059   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2060   eval ac_new_set=\$ac_env_${ac_var}_set
2061   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2062   eval ac_new_val=\$ac_env_${ac_var}_value
2063   case $ac_old_set,$ac_new_set in
2064     set,)
2065       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2066 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2067       ac_cache_corrupted=: ;;
2068     ,set)
2069       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2070 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2071       ac_cache_corrupted=: ;;
2072     ,);;
2073     *)
2074       if test "x$ac_old_val" != "x$ac_new_val"; then
2075         # differences in whitespace do not lead to failure.
2076         ac_old_val_w=`echo x $ac_old_val`
2077         ac_new_val_w=`echo x $ac_new_val`
2078         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2079           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2080 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2081           ac_cache_corrupted=:
2082         else
2083           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2084 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2085           eval $ac_var=\$ac_old_val
2086         fi
2087         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2088 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2089         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2090 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2091       fi;;
2092   esac
2093   # Pass precious variables to config.status.
2094   if test "$ac_new_set" = set; then
2095     case $ac_new_val in
2096     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2097     *) ac_arg=$ac_var=$ac_new_val ;;
2098     esac
2099     case " $ac_configure_args " in
2100       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2101       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2102     esac
2103   fi
2104 done
2105 if $ac_cache_corrupted; then
2106   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2108   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2109 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2110   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2111 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2112    { (exit 1); exit 1; }; }
2113 fi
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139 ac_ext=c
2140 ac_cpp='$CPP $CPPFLAGS'
2141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144
2145
2146
2147 ac_aux_dir=
2148 for ac_dir in config "$srcdir"/config; do
2149   if test -f "$ac_dir/install-sh"; then
2150     ac_aux_dir=$ac_dir
2151     ac_install_sh="$ac_aux_dir/install-sh -c"
2152     break
2153   elif test -f "$ac_dir/install.sh"; then
2154     ac_aux_dir=$ac_dir
2155     ac_install_sh="$ac_aux_dir/install.sh -c"
2156     break
2157   elif test -f "$ac_dir/shtool"; then
2158     ac_aux_dir=$ac_dir
2159     ac_install_sh="$ac_aux_dir/shtool install -c"
2160     break
2161   fi
2162 done
2163 if test -z "$ac_aux_dir"; then
2164   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2165 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169 # These three variables are undocumented and unsupported,
2170 # and are intended to be withdrawn in a future Autoconf release.
2171 # They can cause serious problems if a builder's source tree is in a directory
2172 # whose full name contains unusual characters.
2173 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2174 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2175 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2176
2177
2178 # Make sure we can run config.sub.
2179 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2180   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2181 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2182    { (exit 1); exit 1; }; }
2183
2184 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2185 $as_echo_n "checking build system type... " >&6; }
2186 if test "${ac_cv_build+set}" = set; then
2187   $as_echo_n "(cached) " >&6
2188 else
2189   ac_build_alias=$build_alias
2190 test "x$ac_build_alias" = x &&
2191   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2192 test "x$ac_build_alias" = x &&
2193   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2194 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2195    { (exit 1); exit 1; }; }
2196 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2197   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2198 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2199    { (exit 1); exit 1; }; }
2200
2201 fi
2202 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2203 $as_echo "$ac_cv_build" >&6; }
2204 case $ac_cv_build in
2205 *-*-*) ;;
2206 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2207 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2208    { (exit 1); exit 1; }; };;
2209 esac
2210 build=$ac_cv_build
2211 ac_save_IFS=$IFS; IFS='-'
2212 set x $ac_cv_build
2213 shift
2214 build_cpu=$1
2215 build_vendor=$2
2216 shift; shift
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2219 build_os=$*
2220 IFS=$ac_save_IFS
2221 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2222
2223
2224 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2225 $as_echo_n "checking host system type... " >&6; }
2226 if test "${ac_cv_host+set}" = set; then
2227   $as_echo_n "(cached) " >&6
2228 else
2229   if test "x$host_alias" = x; then
2230   ac_cv_host=$ac_cv_build
2231 else
2232   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2233     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2234 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2235    { (exit 1); exit 1; }; }
2236 fi
2237
2238 fi
2239 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2240 $as_echo "$ac_cv_host" >&6; }
2241 case $ac_cv_host in
2242 *-*-*) ;;
2243 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2244 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2245    { (exit 1); exit 1; }; };;
2246 esac
2247 host=$ac_cv_host
2248 ac_save_IFS=$IFS; IFS='-'
2249 set x $ac_cv_host
2250 shift
2251 host_cpu=$1
2252 host_vendor=$2
2253 shift; shift
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2256 host_os=$*
2257 IFS=$ac_save_IFS
2258 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2259
2260
2261 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2262 $as_echo_n "checking target system type... " >&6; }
2263 if test "${ac_cv_target+set}" = set; then
2264   $as_echo_n "(cached) " >&6
2265 else
2266   if test "x$target_alias" = x; then
2267   ac_cv_target=$ac_cv_host
2268 else
2269   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2270     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2271 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2272    { (exit 1); exit 1; }; }
2273 fi
2274
2275 fi
2276 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2277 $as_echo "$ac_cv_target" >&6; }
2278 case $ac_cv_target in
2279 *-*-*) ;;
2280 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2281 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2282    { (exit 1); exit 1; }; };;
2283 esac
2284 target=$ac_cv_target
2285 ac_save_IFS=$IFS; IFS='-'
2286 set x $ac_cv_target
2287 shift
2288 target_cpu=$1
2289 target_vendor=$2
2290 shift; shift
2291 # Remember, the first character of IFS is used to create $*,
2292 # except with old shells:
2293 target_os=$*
2294 IFS=$ac_save_IFS
2295 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2296
2297
2298 # The aliases save the names the user supplied, while $host etc.
2299 # will get canonicalized.
2300 test -n "$target_alias" &&
2301   test "$program_prefix$program_suffix$program_transform_name" = \
2302     NONENONEs,x,x, &&
2303   program_prefix=${target_alias}-
2304 am__api_version='1.11'
2305
2306 # Find a good install program.  We prefer a C program (faster),
2307 # so one script is as good as another.  But avoid the broken or
2308 # incompatible versions:
2309 # SysV /etc/install, /usr/sbin/install
2310 # SunOS /usr/etc/install
2311 # IRIX /sbin/install
2312 # AIX /bin/install
2313 # AmigaOS /C/install, which installs bootblocks on floppy discs
2314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317 # OS/2's system install, which has a completely different semantic
2318 # ./install, which can be erroneously created by make from ./install.sh.
2319 # Reject install programs that cannot install multiple files.
2320 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2321 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2322 if test -z "$INSTALL"; then
2323 if test "${ac_cv_path_install+set}" = set; then
2324   $as_echo_n "(cached) " >&6
2325 else
2326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   # Account for people who put trailing slashes in PATH elements.
2332 case $as_dir/ in
2333   ./ | .// | /cC/* | \
2334   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2336   /usr/ucb/* ) ;;
2337   *)
2338     # OSF1 and SCO ODT 3.0 have their own names for install.
2339     # Don't use installbsd from OSF since it installs stuff as root
2340     # by default.
2341     for ac_prog in ginstall scoinst install; do
2342       for ac_exec_ext in '' $ac_executable_extensions; do
2343         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2344           if test $ac_prog = install &&
2345             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346             # AIX install.  It has an incompatible calling convention.
2347             :
2348           elif test $ac_prog = install &&
2349             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350             # program-specific install script used by HP pwplus--don't use.
2351             :
2352           else
2353             rm -rf conftest.one conftest.two conftest.dir
2354             echo one > conftest.one
2355             echo two > conftest.two
2356             mkdir conftest.dir
2357             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358               test -s conftest.one && test -s conftest.two &&
2359               test -s conftest.dir/conftest.one &&
2360               test -s conftest.dir/conftest.two
2361             then
2362               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2363               break 3
2364             fi
2365           fi
2366         fi
2367       done
2368     done
2369     ;;
2370 esac
2371
2372 done
2373 IFS=$as_save_IFS
2374
2375 rm -rf conftest.one conftest.two conftest.dir
2376
2377 fi
2378   if test "${ac_cv_path_install+set}" = set; then
2379     INSTALL=$ac_cv_path_install
2380   else
2381     # As a last resort, use the slow shell script.  Don't cache a
2382     # value for INSTALL within a source directory, because that will
2383     # break other packages using the cache if that directory is
2384     # removed, or if the value is a relative name.
2385     INSTALL=$ac_install_sh
2386   fi
2387 fi
2388 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2389 $as_echo "$INSTALL" >&6; }
2390
2391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392 # It thinks the first close brace ends the variable substitution.
2393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
2399 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2400 $as_echo_n "checking whether build environment is sane... " >&6; }
2401 # Just in case
2402 sleep 1
2403 echo timestamp > conftest.file
2404 # Reject unsafe characters in $srcdir or the absolute working directory
2405 # name.  Accept space and tab only in the latter.
2406 am_lf='
2407 '
2408 case `pwd` in
2409   *[\\\"\#\$\&\'\`$am_lf]*)
2410     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2411 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2412    { (exit 1); exit 1; }; };;
2413 esac
2414 case $srcdir in
2415   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2416     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2417 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2418    { (exit 1); exit 1; }; };;
2419 esac
2420
2421 # Do `set' in a subshell so we don't clobber the current shell's
2422 # arguments.  Must try -L first in case configure is actually a
2423 # symlink; some systems play weird games with the mod time of symlinks
2424 # (eg FreeBSD returns the mod time of the symlink's containing
2425 # directory).
2426 if (
2427    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2428    if test "$*" = "X"; then
2429       # -L didn't work.
2430       set X `ls -t "$srcdir/configure" conftest.file`
2431    fi
2432    rm -f conftest.file
2433    if test "$*" != "X $srcdir/configure conftest.file" \
2434       && test "$*" != "X conftest.file $srcdir/configure"; then
2435
2436       # If neither matched, then we have a broken ls.  This can happen
2437       # if, for instance, CONFIG_SHELL is bash and it inherits a
2438       # broken ls alias from the environment.  This has actually
2439       # happened.  Such a system could not be considered "sane".
2440       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2441 alias in your environment" >&5
2442 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2443 alias in your environment" >&2;}
2444    { (exit 1); exit 1; }; }
2445    fi
2446
2447    test "$2" = conftest.file
2448    )
2449 then
2450    # Ok.
2451    :
2452 else
2453    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2454 Check your system clock" >&5
2455 $as_echo "$as_me: error: newly created file is older than distributed files!
2456 Check your system clock" >&2;}
2457    { (exit 1); exit 1; }; }
2458 fi
2459 { $as_echo "$as_me:$LINENO: result: yes" >&5
2460 $as_echo "yes" >&6; }
2461 test "$program_prefix" != NONE &&
2462   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2463 # Use a double $ so make ignores it.
2464 test "$program_suffix" != NONE &&
2465   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2466 # Double any \ or $.
2467 # By default was `s,x,x', remove it if useless.
2468 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2469 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2470
2471 # expand $ac_aux_dir to an absolute path
2472 am_aux_dir=`cd $ac_aux_dir && pwd`
2473
2474 if test x"${MISSING+set}" != xset; then
2475   case $am_aux_dir in
2476   *\ * | *\     *)
2477     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2478   *)
2479     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2480   esac
2481 fi
2482 # Use eval to expand $SHELL
2483 if eval "$MISSING --run true"; then
2484   am_missing_run="$MISSING --run "
2485 else
2486   am_missing_run=
2487   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2488 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2489 fi
2490
2491 if test x"${install_sh}" != xset; then
2492   case $am_aux_dir in
2493   *\ * | *\     *)
2494     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2495   *)
2496     install_sh="\${SHELL} $am_aux_dir/install-sh"
2497   esac
2498 fi
2499
2500 # Installed binaries are usually stripped using `strip' when the user
2501 # run `make install-strip'.  However `strip' might not be the right
2502 # tool to use in cross-compilation environments, therefore Automake
2503 # will honor the `STRIP' environment variable to overrule this program.
2504 if test "$cross_compiling" != no; then
2505   if test -n "$ac_tool_prefix"; then
2506   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}strip; ac_word=$2
2508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_STRIP+set}" = set; then
2511   $as_echo_n "(cached) " >&6
2512 else
2513   if test -n "$STRIP"; then
2514   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519   IFS=$as_save_IFS
2520   test -z "$as_dir" && as_dir=.
2521   for ac_exec_ext in '' $ac_executable_extensions; do
2522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2524     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525     break 2
2526   fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 STRIP=$ac_cv_prog_STRIP
2534 if test -n "$STRIP"; then
2535   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2536 $as_echo "$STRIP" >&6; }
2537 else
2538   { $as_echo "$as_me:$LINENO: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542
2543 fi
2544 if test -z "$ac_cv_prog_STRIP"; then
2545   ac_ct_STRIP=$STRIP
2546   # Extract the first word of "strip", so it can be a program name with args.
2547 set dummy strip; ac_word=$2
2548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2551   $as_echo_n "(cached) " >&6
2552 else
2553   if test -n "$ac_ct_STRIP"; then
2554   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2555 else
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559   IFS=$as_save_IFS
2560   test -z "$as_dir" && as_dir=.
2561   for ac_exec_ext in '' $ac_executable_extensions; do
2562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563     ac_cv_prog_ac_ct_STRIP="strip"
2564     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565     break 2
2566   fi
2567 done
2568 done
2569 IFS=$as_save_IFS
2570
2571 fi
2572 fi
2573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2574 if test -n "$ac_ct_STRIP"; then
2575   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2576 $as_echo "$ac_ct_STRIP" >&6; }
2577 else
2578   { $as_echo "$as_me:$LINENO: result: no" >&5
2579 $as_echo "no" >&6; }
2580 fi
2581
2582   if test "x$ac_ct_STRIP" = x; then
2583     STRIP=":"
2584   else
2585     case $cross_compiling:$ac_tool_warned in
2586 yes:)
2587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2589 ac_tool_warned=yes ;;
2590 esac
2591     STRIP=$ac_ct_STRIP
2592   fi
2593 else
2594   STRIP="$ac_cv_prog_STRIP"
2595 fi
2596
2597 fi
2598 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2599
2600 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2601 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2602 if test -z "$MKDIR_P"; then
2603   if test "${ac_cv_path_mkdir+set}" = set; then
2604   $as_echo_n "(cached) " >&6
2605 else
2606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_prog in mkdir gmkdir; do
2612          for ac_exec_ext in '' $ac_executable_extensions; do
2613            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2614            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2615              'mkdir (GNU coreutils) '* | \
2616              'mkdir (coreutils) '* | \
2617              'mkdir (fileutils) '4.1*)
2618                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2619                break 3;;
2620            esac
2621          done
2622        done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627
2628   if test "${ac_cv_path_mkdir+set}" = set; then
2629     MKDIR_P="$ac_cv_path_mkdir -p"
2630   else
2631     # As a last resort, use the slow shell script.  Don't cache a
2632     # value for MKDIR_P within a source directory, because that will
2633     # break other packages using the cache if that directory is
2634     # removed, or if the value is a relative name.
2635     test -d ./--version && rmdir ./--version
2636     MKDIR_P="$ac_install_sh -d"
2637   fi
2638 fi
2639 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2640 $as_echo "$MKDIR_P" >&6; }
2641
2642 mkdir_p="$MKDIR_P"
2643 case $mkdir_p in
2644   [\\/$]* | ?:[\\/]*) ;;
2645   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2646 esac
2647
2648 for ac_prog in gawk mawk nawk awk
2649 do
2650   # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 set dummy $ac_prog; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_AWK+set}" = set; then
2655   $as_echo_n "(cached) " >&6
2656 else
2657   if test -n "$AWK"; then
2658   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665   for ac_exec_ext in '' $ac_executable_extensions; do
2666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667     ac_cv_prog_AWK="$ac_prog"
2668     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669     break 2
2670   fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 AWK=$ac_cv_prog_AWK
2678 if test -n "$AWK"; then
2679   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2680 $as_echo "$AWK" >&6; }
2681 else
2682   { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686
2687   test -n "$AWK" && break
2688 done
2689
2690 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2692 set x ${MAKE-make}
2693 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2694 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2695   $as_echo_n "(cached) " >&6
2696 else
2697   cat >conftest.make <<\_ACEOF
2698 SHELL = /bin/sh
2699 all:
2700         @echo '@@@%%%=$(MAKE)=@@@%%%'
2701 _ACEOF
2702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2704   *@@@%%%=?*=@@@%%%*)
2705     eval ac_cv_prog_make_${ac_make}_set=yes;;
2706   *)
2707     eval ac_cv_prog_make_${ac_make}_set=no;;
2708 esac
2709 rm -f conftest.make
2710 fi
2711 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2712   { $as_echo "$as_me:$LINENO: result: yes" >&5
2713 $as_echo "yes" >&6; }
2714   SET_MAKE=
2715 else
2716   { $as_echo "$as_me:$LINENO: result: no" >&5
2717 $as_echo "no" >&6; }
2718   SET_MAKE="MAKE=${MAKE-make}"
2719 fi
2720
2721 rm -rf .tst 2>/dev/null
2722 mkdir .tst 2>/dev/null
2723 if test -d .tst; then
2724   am__leading_dot=.
2725 else
2726   am__leading_dot=_
2727 fi
2728 rmdir .tst 2>/dev/null
2729
2730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2731   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2732   # is not polluted with repeated "-I."
2733   am__isrc=' -I$(srcdir)'
2734   # test to see if srcdir already configured
2735   if test -f $srcdir/config.status; then
2736     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2737 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2738    { (exit 1); exit 1; }; }
2739   fi
2740 fi
2741
2742 # test whether we have cygpath
2743 if test -z "$CYGPATH_W"; then
2744   if (cygpath --version) >/dev/null 2>/dev/null; then
2745     CYGPATH_W='cygpath -w'
2746   else
2747     CYGPATH_W=echo
2748   fi
2749 fi
2750
2751
2752 # Define the identity of the package.
2753  PACKAGE='libunwind'
2754  VERSION='1.2'
2755
2756
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE "$PACKAGE"
2759 _ACEOF
2760
2761
2762 cat >>confdefs.h <<_ACEOF
2763 #define VERSION "$VERSION"
2764 _ACEOF
2765
2766 # Some tools Automake needs.
2767
2768 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2769
2770
2771 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2772
2773
2774 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2775
2776
2777 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2778
2779
2780 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2781
2782 # We need awk for the "check" target.  The system "awk" is bad on
2783 # some platforms.
2784 # Always define AMTAR for backward compatibility.
2785
2786 AMTAR=${AMTAR-"${am_missing_run}tar"}
2787
2788 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2789
2790
2791
2792
2793
2794
2795 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2796 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2797     # Check whether --enable-maintainer-mode was given.
2798 if test "${enable_maintainer_mode+set}" = set; then
2799   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2800 else
2801   USE_MAINTAINER_MODE=no
2802 fi
2803
2804   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2805 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2806    if test $USE_MAINTAINER_MODE = yes; then
2807   MAINTAINER_MODE_TRUE=
2808   MAINTAINER_MODE_FALSE='#'
2809 else
2810   MAINTAINER_MODE_TRUE='#'
2811   MAINTAINER_MODE_FALSE=
2812 fi
2813
2814   MAINT=$MAINTAINER_MODE_TRUE
2815
2816
2817 ac_config_headers="$ac_config_headers include/config.h"
2818
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 if test -n "$ac_tool_prefix"; then
2826   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831   $as_echo_n "(cached) " >&6
2832 else
2833   if test -n "$CC"; then
2834   ac_cv_prog_CC="$CC" # Let the user override the test.
2835 else
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839   IFS=$as_save_IFS
2840   test -z "$as_dir" && as_dir=.
2841   for ac_exec_ext in '' $ac_executable_extensions; do
2842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2844     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845     break 2
2846   fi
2847 done
2848 done
2849 IFS=$as_save_IFS
2850
2851 fi
2852 fi
2853 CC=$ac_cv_prog_CC
2854 if test -n "$CC"; then
2855   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2856 $as_echo "$CC" >&6; }
2857 else
2858   { $as_echo "$as_me:$LINENO: result: no" >&5
2859 $as_echo "no" >&6; }
2860 fi
2861
2862
2863 fi
2864 if test -z "$ac_cv_prog_CC"; then
2865   ac_ct_CC=$CC
2866   # Extract the first word of "gcc", so it can be a program name with args.
2867 set dummy gcc; ac_word=$2
2868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2871   $as_echo_n "(cached) " >&6
2872 else
2873   if test -n "$ac_ct_CC"; then
2874   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879   IFS=$as_save_IFS
2880   test -z "$as_dir" && as_dir=.
2881   for ac_exec_ext in '' $ac_executable_extensions; do
2882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883     ac_cv_prog_ac_ct_CC="gcc"
2884     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885     break 2
2886   fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892 fi
2893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2894 if test -n "$ac_ct_CC"; then
2895   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2896 $as_echo "$ac_ct_CC" >&6; }
2897 else
2898   { $as_echo "$as_me:$LINENO: result: no" >&5
2899 $as_echo "no" >&6; }
2900 fi
2901
2902   if test "x$ac_ct_CC" = x; then
2903     CC=""
2904   else
2905     case $cross_compiling:$ac_tool_warned in
2906 yes:)
2907 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909 ac_tool_warned=yes ;;
2910 esac
2911     CC=$ac_ct_CC
2912   fi
2913 else
2914   CC="$ac_cv_prog_CC"
2915 fi
2916
2917 if test -z "$CC"; then
2918           if test -n "$ac_tool_prefix"; then
2919     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}cc; ac_word=$2
2921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924   $as_echo_n "(cached) " >&6
2925 else
2926   if test -n "$CC"; then
2927   ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934   for ac_exec_ext in '' $ac_executable_extensions; do
2935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936     ac_cv_prog_CC="${ac_tool_prefix}cc"
2937     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938     break 2
2939   fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2950 else
2951   { $as_echo "$as_me:$LINENO: result: no" >&5
2952 $as_echo "no" >&6; }
2953 fi
2954
2955
2956   fi
2957 fi
2958 if test -z "$CC"; then
2959   # Extract the first word of "cc", so it can be a program name with args.
2960 set dummy cc; ac_word=$2
2961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_CC+set}" = set; then
2964   $as_echo_n "(cached) " >&6
2965 else
2966   if test -n "$CC"; then
2967   ac_cv_prog_CC="$CC" # Let the user override the test.
2968 else
2969   ac_prog_rejected=no
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975   for ac_exec_ext in '' $ac_executable_extensions; do
2976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2978        ac_prog_rejected=yes
2979        continue
2980      fi
2981     ac_cv_prog_CC="cc"
2982     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2983     break 2
2984   fi
2985 done
2986 done
2987 IFS=$as_save_IFS
2988
2989 if test $ac_prog_rejected = yes; then
2990   # We found a bogon in the path, so make sure we never use it.
2991   set dummy $ac_cv_prog_CC
2992   shift
2993   if test $# != 0; then
2994     # We chose a different compiler from the bogus one.
2995     # However, it has the same basename, so the bogon will be chosen
2996     # first if we set CC to just the basename; use the full file name.
2997     shift
2998     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2999   fi
3000 fi
3001 fi
3002 fi
3003 CC=$ac_cv_prog_CC
3004 if test -n "$CC"; then
3005   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3007 else
3008   { $as_echo "$as_me:$LINENO: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012
3013 fi
3014 if test -z "$CC"; then
3015   if test -n "$ac_tool_prefix"; then
3016   for ac_prog in cl.exe
3017   do
3018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then
3023   $as_echo_n "(cached) " >&6
3024 else
3025   if test -n "$CC"; then
3026   ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033   for ac_exec_ext in '' $ac_executable_extensions; do
3034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3036     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037     break 2
3038   fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3049 else
3050   { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055     test -n "$CC" && break
3056   done
3057 fi
3058 if test -z "$CC"; then
3059   ac_ct_CC=$CC
3060   for ac_prog in cl.exe
3061 do
3062   # Extract the first word of "$ac_prog", so it can be a program name with args.
3063 set dummy $ac_prog; ac_word=$2
3064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3067   $as_echo_n "(cached) " >&6
3068 else
3069   if test -n "$ac_ct_CC"; then
3070   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075   IFS=$as_save_IFS
3076   test -z "$as_dir" && as_dir=.
3077   for ac_exec_ext in '' $ac_executable_extensions; do
3078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079     ac_cv_prog_ac_ct_CC="$ac_prog"
3080     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081     break 2
3082   fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090 if test -n "$ac_ct_CC"; then
3091   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3092 $as_echo "$ac_ct_CC" >&6; }
3093 else
3094   { $as_echo "$as_me:$LINENO: result: no" >&5
3095 $as_echo "no" >&6; }
3096 fi
3097
3098
3099   test -n "$ac_ct_CC" && break
3100 done
3101
3102   if test "x$ac_ct_CC" = x; then
3103     CC=""
3104   else
3105     case $cross_compiling:$ac_tool_warned in
3106 yes:)
3107 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3110 esac
3111     CC=$ac_ct_CC
3112   fi
3113 fi
3114
3115 fi
3116
3117
3118 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3121 See \`config.log' for more details." >&5
3122 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3123 See \`config.log' for more details." >&2;}
3124    { (exit 1); exit 1; }; }; }
3125
3126 # Provide some information about the compiler.
3127 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3128 set X $ac_compile
3129 ac_compiler=$2
3130 { (ac_try="$ac_compiler --version >&5"
3131 case "(($ac_try" in
3132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133   *) ac_try_echo=$ac_try;;
3134 esac
3135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136 $as_echo "$ac_try_echo") >&5
3137   (eval "$ac_compiler --version >&5") 2>&5
3138   ac_status=$?
3139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }
3141 { (ac_try="$ac_compiler -v >&5"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147 $as_echo "$ac_try_echo") >&5
3148   (eval "$ac_compiler -v >&5") 2>&5
3149   ac_status=$?
3150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151   (exit $ac_status); }
3152 { (ac_try="$ac_compiler -V >&5"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3158 $as_echo "$ac_try_echo") >&5
3159   (eval "$ac_compiler -V >&5") 2>&5
3160   ac_status=$?
3161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }
3163
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 ac_clean_files_save=$ac_clean_files
3180 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3181 # Try to create an executable without -o first, disregard a.out.
3182 # It will help us diagnose broken compilers, and finding out an intuition
3183 # of exeext.
3184 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3185 $as_echo_n "checking for C compiler default output file name... " >&6; }
3186 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3187
3188 # The possible output files:
3189 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3190
3191 ac_rmfiles=
3192 for ac_file in $ac_files
3193 do
3194   case $ac_file in
3195     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3197   esac
3198 done
3199 rm -f $ac_rmfiles
3200
3201 if { (ac_try="$ac_link_default"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3207 $as_echo "$ac_try_echo") >&5
3208   (eval "$ac_link_default") 2>&5
3209   ac_status=$?
3210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211   (exit $ac_status); }; then
3212   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3214 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3215 # so that the user can short-circuit this test for compilers unknown to
3216 # Autoconf.
3217 for ac_file in $ac_files ''
3218 do
3219   test -f "$ac_file" || continue
3220   case $ac_file in
3221     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3222         ;;
3223     [ab].out )
3224         # We found the default executable, but exeext='' is most
3225         # certainly right.
3226         break;;
3227     *.* )
3228         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3229         then :; else
3230            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231         fi
3232         # We set ac_cv_exeext here because the later test for it is not
3233         # safe: cross compilers may not add the suffix if given an `-o'
3234         # argument, so we may need to know it at that point already.
3235         # Even if this section looks crufty: it has the advantage of
3236         # actually working.
3237         break;;
3238     * )
3239         break;;
3240   esac
3241 done
3242 test "$ac_cv_exeext" = no && ac_cv_exeext=
3243
3244 else
3245   ac_file=''
3246 fi
3247
3248 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3249 $as_echo "$ac_file" >&6; }
3250 if test -z "$ac_file"; then
3251   $as_echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3257 See \`config.log' for more details." >&5
3258 $as_echo "$as_me: error: C compiler cannot create executables
3259 See \`config.log' for more details." >&2;}
3260    { (exit 77); exit 77; }; }; }
3261 fi
3262
3263 ac_exeext=$ac_cv_exeext
3264
3265 # Check that the compiler produces executables we can run.  If not, either
3266 # the compiler is broken, or we cross compile.
3267 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3268 $as_echo_n "checking whether the C compiler works... " >&6; }
3269 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3270 # If not cross compiling, check that we can run a simple program.
3271 if test "$cross_compiling" != yes; then
3272   if { ac_try='./$ac_file'
3273   { (case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279   (eval "$ac_try") 2>&5
3280   ac_status=$?
3281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282   (exit $ac_status); }; }; then
3283     cross_compiling=no
3284   else
3285     if test "$cross_compiling" = maybe; then
3286         cross_compiling=yes
3287     else
3288         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3291 If you meant to cross compile, use \`--host'.
3292 See \`config.log' for more details." >&5
3293 $as_echo "$as_me: error: cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details." >&2;}
3296    { (exit 1); exit 1; }; }; }
3297     fi
3298   fi
3299 fi
3300 { $as_echo "$as_me:$LINENO: result: yes" >&5
3301 $as_echo "yes" >&6; }
3302
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304 ac_clean_files=$ac_clean_files_save
3305 # Check that the compiler produces executables we can run.  If not, either
3306 # the compiler is broken, or we cross compile.
3307 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3308 $as_echo_n "checking whether we are cross compiling... " >&6; }
3309 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3311
3312 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3313 $as_echo_n "checking for suffix of executables... " >&6; }
3314 if { (ac_try="$ac_link"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321   (eval "$ac_link") 2>&5
3322   ac_status=$?
3323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; then
3325   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3328 # `rm'.
3329 for ac_file in conftest.exe conftest conftest.*; do
3330   test -f "$ac_file" || continue
3331   case $ac_file in
3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334           break;;
3335     * ) break;;
3336   esac
3337 done
3338 else
3339   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details." >&5
3343 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3344 See \`config.log' for more details." >&2;}
3345    { (exit 1); exit 1; }; }; }
3346 fi
3347
3348 rm -f conftest$ac_cv_exeext
3349 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3350 $as_echo "$ac_cv_exeext" >&6; }
3351
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3354 ac_exeext=$EXEEXT
3355 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if test "${ac_cv_objext+set}" = set; then
3358   $as_echo_n "(cached) " >&6
3359 else
3360   cat >conftest.$ac_ext <<_ACEOF
3361 /* confdefs.h.  */
3362 _ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h.  */
3366
3367 int
3368 main ()
3369 {
3370
3371   ;
3372   return 0;
3373 }
3374 _ACEOF
3375 rm -f conftest.o conftest.obj
3376 if { (ac_try="$ac_compile"
3377 case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382 $as_echo "$ac_try_echo") >&5
3383   (eval "$ac_compile") 2>&5
3384   ac_status=$?
3385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); }; then
3387   for ac_file in conftest.o conftest.obj conftest.*; do
3388   test -f "$ac_file" || continue;
3389   case $ac_file in
3390     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3391     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3392        break;;
3393   esac
3394 done
3395 else
3396   $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3402 See \`config.log' for more details." >&5
3403 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3404 See \`config.log' for more details." >&2;}
3405    { (exit 1); exit 1; }; }; }
3406 fi
3407
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3409 fi
3410 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3411 $as_echo "$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3413 ac_objext=$OBJEXT
3414 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3416 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3417   $as_echo_n "(cached) " >&6
3418 else
3419   cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429 #ifndef __GNUC__
3430        choke me
3431 #endif
3432
3433   ;
3434   return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && {
3452          test -z "$ac_c_werror_flag" ||
3453          test ! -s conftest.err
3454        } && test -s conftest.$ac_objext; then
3455   ac_compiler_gnu=yes
3456 else
3457   $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460         ac_compiler_gnu=no
3461 fi
3462
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3465
3466 fi
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3470   GCC=yes
3471 else
3472   GCC=
3473 fi
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3478 if test "${ac_cv_prog_cc_g+set}" = set; then
3479   $as_echo_n "(cached) " >&6
3480 else
3481   ac_save_c_werror_flag=$ac_c_werror_flag
3482    ac_c_werror_flag=yes
3483    ac_cv_prog_cc_g=no
3484    CFLAGS="-g"
3485    cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491
3492 int
3493 main ()
3494 {
3495
3496   ;
3497   return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3507 $as_echo "$ac_try_echo") >&5
3508   (eval "$ac_compile") 2>conftest.er1
3509   ac_status=$?
3510   grep -v '^ *+' conftest.er1 >conftest.err
3511   rm -f conftest.er1
3512   cat conftest.err >&5
3513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); } && {
3515          test -z "$ac_c_werror_flag" ||
3516          test ! -s conftest.err
3517        } && test -s conftest.$ac_objext; then
3518   ac_cv_prog_cc_g=yes
3519 else
3520   $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523         CFLAGS=""
3524       cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3546 $as_echo "$ac_try_echo") >&5
3547   (eval "$ac_compile") 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
3551   cat conftest.err >&5
3552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } && {
3554          test -z "$ac_c_werror_flag" ||
3555          test ! -s conftest.err
3556        } && test -s conftest.$ac_objext; then
3557   :
3558 else
3559   $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562         ac_c_werror_flag=$ac_save_c_werror_flag
3563          CFLAGS="-g"
3564          cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570
3571 int
3572 main ()
3573 {
3574
3575   ;
3576   return 0;
3577 }
3578 _ACEOF
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3581 case "(($ac_try" in
3582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583   *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586 $as_echo "$ac_try_echo") >&5
3587   (eval "$ac_compile") 2>conftest.er1
3588   ac_status=$?
3589   grep -v '^ *+' conftest.er1 >conftest.err
3590   rm -f conftest.er1
3591   cat conftest.err >&5
3592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); } && {
3594          test -z "$ac_c_werror_flag" ||
3595          test ! -s conftest.err
3596        } && test -s conftest.$ac_objext; then
3597   ac_cv_prog_cc_g=yes
3598 else
3599   $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3601
3602
3603 fi
3604
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3607
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609 fi
3610
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612    ac_c_werror_flag=$ac_save_c_werror_flag
3613 fi
3614 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3615 $as_echo "$ac_cv_prog_cc_g" >&6; }
3616 if test "$ac_test_CFLAGS" = set; then
3617   CFLAGS=$ac_save_CFLAGS
3618 elif test $ac_cv_prog_cc_g = yes; then
3619   if test "$GCC" = yes; then
3620     CFLAGS="-g -O2"
3621   else
3622     CFLAGS="-g"
3623   fi
3624 else
3625   if test "$GCC" = yes; then
3626     CFLAGS="-O2"
3627   else
3628     CFLAGS=
3629   fi
3630 fi
3631 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3632 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3633 if test "${ac_cv_prog_cc_c89+set}" = set; then
3634   $as_echo_n "(cached) " >&6
3635 else
3636   ac_cv_prog_cc_c89=no
3637 ac_save_CC=$CC
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h.  */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h.  */
3644 #include <stdarg.h>
3645 #include <stdio.h>
3646 #include <sys/types.h>
3647 #include <sys/stat.h>
3648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3649 struct buf { int x; };
3650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651 static char *e (p, i)
3652      char **p;
3653      int i;
3654 {
3655   return p[i];
3656 }
3657 static char *f (char * (*g) (char **, int), char **p, ...)
3658 {
3659   char *s;
3660   va_list v;
3661   va_start (v,p);
3662   s = g (p, va_arg (v,int));
3663   va_end (v);
3664   return s;
3665 }
3666
3667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3668    function prototypes and stuff, but not '\xHH' hex character constants.
3669    These don't provoke an error unfortunately, instead are silently treated
3670    as 'x'.  The following induces an error, until -std is added to get
3671    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3672    array size at least.  It's necessary to write '\x00'==0 to get something
3673    that's true only with -std.  */
3674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675
3676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677    inside strings and character constants.  */
3678 #define FOO(x) 'x'
3679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3680
3681 int test (int i, double x);
3682 struct s1 {int (*f) (int a);};
3683 struct s2 {int (*f) (double a);};
3684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685 int argc;
3686 char **argv;
3687 int
3688 main ()
3689 {
3690 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3691   ;
3692   return 0;
3693 }
3694 _ACEOF
3695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3697 do
3698   CC="$ac_save_CC $ac_arg"
3699   rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707   (eval "$ac_compile") 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } && {
3714          test -z "$ac_c_werror_flag" ||
3715          test ! -s conftest.err
3716        } && test -s conftest.$ac_objext; then
3717   ac_cv_prog_cc_c89=$ac_arg
3718 else
3719   $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722
3723 fi
3724
3725 rm -f core conftest.err conftest.$ac_objext
3726   test "x$ac_cv_prog_cc_c89" != "xno" && break
3727 done
3728 rm -f conftest.$ac_ext
3729 CC=$ac_save_CC
3730
3731 fi
3732 # AC_CACHE_VAL
3733 case "x$ac_cv_prog_cc_c89" in
3734   x)
3735     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3736 $as_echo "none needed" >&6; } ;;
3737   xno)
3738     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;;
3740   *)
3741     CC="$CC $ac_cv_prog_cc_c89"
3742     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 esac
3745
3746
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 DEPDIR="${am__leading_dot}deps"
3753
3754 ac_config_commands="$ac_config_commands depfiles"
3755
3756
3757 am_make=${MAKE-make}
3758 cat > confinc << 'END'
3759 am__doit:
3760         @echo this is the am__doit target
3761 .PHONY: am__doit
3762 END
3763 # If we don't find an include directive, just comment out the code.
3764 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3765 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3766 am__include="#"
3767 am__quote=
3768 _am_result=none
3769 # First try GNU make style include.
3770 echo "include confinc" > confmf
3771 # Ignore all kinds of additional output from `make'.
3772 case `$am_make -s -f confmf 2> /dev/null` in #(
3773 *the\ am__doit\ target*)
3774   am__include=include
3775   am__quote=
3776   _am_result=GNU
3777   ;;
3778 esac
3779 # Now try BSD make style include.
3780 if test "$am__include" = "#"; then
3781    echo '.include "confinc"' > confmf
3782    case `$am_make -s -f confmf 2> /dev/null` in #(
3783    *the\ am__doit\ target*)
3784      am__include=.include
3785      am__quote="\""
3786      _am_result=BSD
3787      ;;
3788    esac
3789 fi
3790
3791
3792 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3793 $as_echo "$_am_result" >&6; }
3794 rm -f confinc confmf
3795
3796 # Check whether --enable-dependency-tracking was given.
3797 if test "${enable_dependency_tracking+set}" = set; then
3798   enableval=$enable_dependency_tracking;
3799 fi
3800
3801 if test "x$enable_dependency_tracking" != xno; then
3802   am_depcomp="$ac_aux_dir/depcomp"
3803   AMDEPBACKSLASH='\'
3804 fi
3805  if test "x$enable_dependency_tracking" != xno; then
3806   AMDEP_TRUE=
3807   AMDEP_FALSE='#'
3808 else
3809   AMDEP_TRUE='#'
3810   AMDEP_FALSE=
3811 fi
3812
3813
3814
3815 depcc="$CC"   am_compiler_list=
3816
3817 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3818 $as_echo_n "checking dependency style of $depcc... " >&6; }
3819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3820   $as_echo_n "(cached) " >&6
3821 else
3822   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3823   # We make a subdir and do the tests there.  Otherwise we can end up
3824   # making bogus files that we don't know about and never remove.  For
3825   # instance it was reported that on HP-UX the gcc test will end up
3826   # making a dummy file named `D' -- because `-MD' means `put the output
3827   # in D'.
3828   mkdir conftest.dir
3829   # Copy depcomp to subdir because otherwise we won't find it if we're
3830   # using a relative directory.
3831   cp "$am_depcomp" conftest.dir
3832   cd conftest.dir
3833   # We will build objects and dependencies in a subdirectory because
3834   # it helps to detect inapplicable dependency modes.  For instance
3835   # both Tru64's cc and ICC support -MD to output dependencies as a
3836   # side effect of compilation, but ICC will put the dependencies in
3837   # the current directory while Tru64 will put them in the object
3838   # directory.
3839   mkdir sub
3840
3841   am_cv_CC_dependencies_compiler_type=none
3842   if test "$am_compiler_list" = ""; then
3843      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3844   fi
3845   am__universal=false
3846   case " $depcc " in #(
3847      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3848      esac
3849
3850   for depmode in $am_compiler_list; do
3851     # Setup a source with many dependencies, because some compilers
3852     # like to wrap large dependency lists on column 80 (with \), and
3853     # we should not choose a depcomp mode which is confused by this.
3854     #
3855     # We need to recreate these files for each test, as the compiler may
3856     # overwrite some of them when testing with obscure command lines.
3857     # This happens at least with the AIX C compiler.
3858     : > sub/conftest.c
3859     for i in 1 2 3 4 5 6; do
3860       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3861       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3862       # Solaris 8's {/usr,}/bin/sh.
3863       touch sub/conftst$i.h
3864     done
3865     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3866
3867     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3868     # mode.  It turns out that the SunPro C++ compiler does not properly
3869     # handle `-M -o', and we need to detect this.  Also, some Intel
3870     # versions had trouble with output in subdirs
3871     am__obj=sub/conftest.${OBJEXT-o}
3872     am__minus_obj="-o $am__obj"
3873     case $depmode in
3874     gcc)
3875       # This depmode causes a compiler race in universal mode.
3876       test "$am__universal" = false || continue
3877       ;;
3878     nosideeffect)
3879       # after this tag, mechanisms are not by side-effect, so they'll
3880       # only be used when explicitly requested
3881       if test "x$enable_dependency_tracking" = xyes; then
3882         continue
3883       else
3884         break
3885       fi
3886       ;;
3887     msvisualcpp | msvcmsys)
3888       # This compiler won't grok `-c -o', but also, the minuso test has
3889       # not run yet.  These depmodes are late enough in the game, and
3890       # so weak that their functioning should not be impacted.
3891       am__obj=conftest.${OBJEXT-o}
3892       am__minus_obj=
3893       ;;
3894     none) break ;;
3895     esac
3896     if depmode=$depmode \
3897        source=sub/conftest.c object=$am__obj \
3898        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3899        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3900          >/dev/null 2>conftest.err &&
3901        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3902        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3903        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3904        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3905       # icc doesn't choke on unknown options, it will just issue warnings
3906       # or remarks (even with -Werror).  So we grep stderr for any message
3907       # that says an option was ignored or not supported.
3908       # When given -MP, icc 7.0 and 7.1 complain thusly:
3909       #   icc: Command line warning: ignoring option '-M'; no argument required
3910       # The diagnosis changed in icc 8.0:
3911       #   icc: Command line remark: option '-MP' not supported
3912       if (grep 'ignoring option' conftest.err ||
3913           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3914         am_cv_CC_dependencies_compiler_type=$depmode
3915         break
3916       fi
3917     fi
3918   done
3919
3920   cd ..
3921   rm -rf conftest.dir
3922 else
3923   am_cv_CC_dependencies_compiler_type=none
3924 fi
3925
3926 fi
3927 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3928 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3929 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3930
3931  if
3932   test "x$enable_dependency_tracking" != xno \
3933   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3934   am__fastdepCC_TRUE=
3935   am__fastdepCC_FALSE='#'
3936 else
3937   am__fastdepCC_TRUE='#'
3938   am__fastdepCC_FALSE=
3939 fi
3940
3941
3942 ac_ext=cpp
3943 ac_cpp='$CXXCPP $CPPFLAGS'
3944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3947 if test -z "$CXX"; then
3948   if test -n "$CCC"; then
3949     CXX=$CCC
3950   else
3951     if test -n "$ac_tool_prefix"; then
3952   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3953   do
3954     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_CXX+set}" = set; then
3959   $as_echo_n "(cached) " >&6
3960 else
3961   if test -n "$CXX"; then
3962   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967   IFS=$as_save_IFS
3968   test -z "$as_dir" && as_dir=.
3969   for ac_exec_ext in '' $ac_executable_extensions; do
3970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3972     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973     break 2
3974   fi
3975 done
3976 done
3977 IFS=$as_save_IFS
3978
3979 fi
3980 fi
3981 CXX=$ac_cv_prog_CXX
3982 if test -n "$CXX"; then
3983   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3984 $as_echo "$CXX" >&6; }
3985 else
3986   { $as_echo "$as_me:$LINENO: result: no" >&5
3987 $as_echo "no" >&6; }
3988 fi
3989
3990
3991     test -n "$CXX" && break
3992   done
3993 fi
3994 if test -z "$CXX"; then
3995   ac_ct_CXX=$CXX
3996   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3997 do
3998   # Extract the first word of "$ac_prog", so it can be a program name with args.
3999 set dummy $ac_prog; ac_word=$2
4000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4003   $as_echo_n "(cached) " >&6
4004 else
4005   if test -n "$ac_ct_CXX"; then
4006   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4007 else
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4010 do
4011   IFS=$as_save_IFS
4012   test -z "$as_dir" && as_dir=.
4013   for ac_exec_ext in '' $ac_executable_extensions; do
4014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015     ac_cv_prog_ac_ct_CXX="$ac_prog"
4016     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4017     break 2
4018   fi
4019 done
4020 done
4021 IFS=$as_save_IFS
4022
4023 fi
4024 fi
4025 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4026 if test -n "$ac_ct_CXX"; then
4027   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4028 $as_echo "$ac_ct_CXX" >&6; }
4029 else
4030   { $as_echo "$as_me:$LINENO: result: no" >&5
4031 $as_echo "no" >&6; }
4032 fi
4033
4034
4035   test -n "$ac_ct_CXX" && break
4036 done
4037
4038   if test "x$ac_ct_CXX" = x; then
4039     CXX="g++"
4040   else
4041     case $cross_compiling:$ac_tool_warned in
4042 yes:)
4043 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned=yes ;;
4046 esac
4047     CXX=$ac_ct_CXX
4048   fi
4049 fi
4050
4051   fi
4052 fi
4053 # Provide some information about the compiler.
4054 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4055 set X $ac_compile
4056 ac_compiler=$2
4057 { (ac_try="$ac_compiler --version >&5"
4058 case "(($ac_try" in
4059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060   *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4063 $as_echo "$ac_try_echo") >&5
4064   (eval "$ac_compiler --version >&5") 2>&5
4065   ac_status=$?
4066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); }
4068 { (ac_try="$ac_compiler -v >&5"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075   (eval "$ac_compiler -v >&5") 2>&5
4076   ac_status=$?
4077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }
4079 { (ac_try="$ac_compiler -V >&5"
4080 case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086   (eval "$ac_compiler -V >&5") 2>&5
4087   ac_status=$?
4088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089   (exit $ac_status); }
4090
4091 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4092 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4093 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4094   $as_echo_n "(cached) " >&6
4095 else
4096   cat >conftest.$ac_ext <<_ACEOF
4097 /* confdefs.h.  */
4098 _ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h.  */
4102
4103 int
4104 main ()
4105 {
4106 #ifndef __GNUC__
4107        choke me
4108 #endif
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4121 $as_echo "$ac_try_echo") >&5
4122   (eval "$ac_compile") 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } && {
4129          test -z "$ac_cxx_werror_flag" ||
4130          test ! -s conftest.err
4131        } && test -s conftest.$ac_objext; then
4132   ac_compiler_gnu=yes
4133 else
4134   $as_echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4136
4137         ac_compiler_gnu=no
4138 fi
4139
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4142
4143 fi
4144 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4145 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4146 if test $ac_compiler_gnu = yes; then
4147   GXX=yes
4148 else
4149   GXX=
4150 fi
4151 ac_test_CXXFLAGS=${CXXFLAGS+set}
4152 ac_save_CXXFLAGS=$CXXFLAGS
4153 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4154 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4155 if test "${ac_cv_prog_cxx_g+set}" = set; then
4156   $as_echo_n "(cached) " >&6
4157 else
4158   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4159    ac_cxx_werror_flag=yes
4160    ac_cv_prog_cxx_g=no
4161    CXXFLAGS="-g"
4162    cat >conftest.$ac_ext <<_ACEOF
4163 /* confdefs.h.  */
4164 _ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h.  */
4168
4169 int
4170 main ()
4171 {
4172
4173   ;
4174   return 0;
4175 }
4176 _ACEOF
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4179 case "(($ac_try" in
4180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181   *) ac_try_echo=$ac_try;;
4182 esac
4183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4184 $as_echo "$ac_try_echo") >&5
4185   (eval "$ac_compile") 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } && {
4192          test -z "$ac_cxx_werror_flag" ||
4193          test ! -s conftest.err
4194        } && test -s conftest.$ac_objext; then
4195   ac_cv_prog_cxx_g=yes
4196 else
4197   $as_echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200         CXXFLAGS=""
4201       cat >conftest.$ac_ext <<_ACEOF
4202 /* confdefs.h.  */
4203 _ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h.  */
4207
4208 int
4209 main ()
4210 {
4211
4212   ;
4213   return 0;
4214 }
4215 _ACEOF
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4218 case "(($ac_try" in
4219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220   *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4223 $as_echo "$ac_try_echo") >&5
4224   (eval "$ac_compile") 2>conftest.er1
4225   ac_status=$?
4226   grep -v '^ *+' conftest.er1 >conftest.err
4227   rm -f conftest.er1
4228   cat conftest.err >&5
4229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); } && {
4231          test -z "$ac_cxx_werror_flag" ||
4232          test ! -s conftest.err
4233        } && test -s conftest.$ac_objext; then
4234   :
4235 else
4236   $as_echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4240          CXXFLAGS="-g"
4241          cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h.  */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h.  */
4247
4248 int
4249 main ()
4250 {
4251
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4258 case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4263 $as_echo "$ac_try_echo") >&5
4264   (eval "$ac_compile") 2>conftest.er1
4265   ac_status=$?
4266   grep -v '^ *+' conftest.er1 >conftest.err
4267   rm -f conftest.er1
4268   cat conftest.err >&5
4269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); } && {
4271          test -z "$ac_cxx_werror_flag" ||
4272          test ! -s conftest.err
4273        } && test -s conftest.$ac_objext; then
4274   ac_cv_prog_cxx_g=yes
4275 else
4276   $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279
4280 fi
4281
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 fi
4284
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 fi
4287
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4290 fi
4291 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4292 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4293 if test "$ac_test_CXXFLAGS" = set; then
4294   CXXFLAGS=$ac_save_CXXFLAGS
4295 elif test $ac_cv_prog_cxx_g = yes; then
4296   if test "$GXX" = yes; then
4297     CXXFLAGS="-g -O2"
4298   else
4299     CXXFLAGS="-g"
4300   fi
4301 else
4302   if test "$GXX" = yes; then
4303     CXXFLAGS="-O2"
4304   else
4305     CXXFLAGS=
4306   fi
4307 fi
4308 ac_ext=c
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313
4314 depcc="$CXX"  am_compiler_list=
4315
4316 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4317 $as_echo_n "checking dependency style of $depcc... " >&6; }
4318 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4319   $as_echo_n "(cached) " >&6
4320 else
4321   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322   # We make a subdir and do the tests there.  Otherwise we can end up
4323   # making bogus files that we don't know about and never remove.  For
4324   # instance it was reported that on HP-UX the gcc test will end up
4325   # making a dummy file named `D' -- because `-MD' means `put the output
4326   # in D'.
4327   mkdir conftest.dir
4328   # Copy depcomp to subdir because otherwise we won't find it if we're
4329   # using a relative directory.
4330   cp "$am_depcomp" conftest.dir
4331   cd conftest.dir
4332   # We will build objects and dependencies in a subdirectory because
4333   # it helps to detect inapplicable dependency modes.  For instance
4334   # both Tru64's cc and ICC support -MD to output dependencies as a
4335   # side effect of compilation, but ICC will put the dependencies in
4336   # the current directory while Tru64 will put them in the object
4337   # directory.
4338   mkdir sub
4339
4340   am_cv_CXX_dependencies_compiler_type=none
4341   if test "$am_compiler_list" = ""; then
4342      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4343   fi
4344   am__universal=false
4345   case " $depcc " in #(
4346      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4347      esac
4348
4349   for depmode in $am_compiler_list; do
4350     # Setup a source with many dependencies, because some compilers
4351     # like to wrap large dependency lists on column 80 (with \), and
4352     # we should not choose a depcomp mode which is confused by this.
4353     #
4354     # We need to recreate these files for each test, as the compiler may
4355     # overwrite some of them when testing with obscure command lines.
4356     # This happens at least with the AIX C compiler.
4357     : > sub/conftest.c
4358     for i in 1 2 3 4 5 6; do
4359       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4360       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4361       # Solaris 8's {/usr,}/bin/sh.
4362       touch sub/conftst$i.h
4363     done
4364     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4365
4366     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367     # mode.  It turns out that the SunPro C++ compiler does not properly
4368     # handle `-M -o', and we need to detect this.  Also, some Intel
4369     # versions had trouble with output in subdirs
4370     am__obj=sub/conftest.${OBJEXT-o}
4371     am__minus_obj="-o $am__obj"
4372     case $depmode in
4373     gcc)
4374       # This depmode causes a compiler race in universal mode.
4375       test "$am__universal" = false || continue
4376       ;;
4377     nosideeffect)
4378       # after this tag, mechanisms are not by side-effect, so they'll
4379       # only be used when explicitly requested
4380       if test "x$enable_dependency_tracking" = xyes; then
4381         continue
4382       else
4383         break
4384       fi
4385       ;;
4386     msvisualcpp | msvcmsys)
4387       # This compiler won't grok `-c -o', but also, the minuso test has
4388       # not run yet.  These depmodes are late enough in the game, and
4389       # so weak that their functioning should not be impacted.
4390       am__obj=conftest.${OBJEXT-o}
4391       am__minus_obj=
4392       ;;
4393     none) break ;;
4394     esac
4395     if depmode=$depmode \
4396        source=sub/conftest.c object=$am__obj \
4397        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4398        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4399          >/dev/null 2>conftest.err &&
4400        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4401        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4402        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4403        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4404       # icc doesn't choke on unknown options, it will just issue warnings
4405       # or remarks (even with -Werror).  So we grep stderr for any message
4406       # that says an option was ignored or not supported.
4407       # When given -MP, icc 7.0 and 7.1 complain thusly:
4408       #   icc: Command line warning: ignoring option '-M'; no argument required
4409       # The diagnosis changed in icc 8.0:
4410       #   icc: Command line remark: option '-MP' not supported
4411       if (grep 'ignoring option' conftest.err ||
4412           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4413         am_cv_CXX_dependencies_compiler_type=$depmode
4414         break
4415       fi
4416     fi
4417   done
4418
4419   cd ..
4420   rm -rf conftest.dir
4421 else
4422   am_cv_CXX_dependencies_compiler_type=none
4423 fi
4424
4425 fi
4426 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4427 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4428 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4429
4430  if
4431   test "x$enable_dependency_tracking" != xno \
4432   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4433   am__fastdepCXX_TRUE=
4434   am__fastdepCXX_FALSE='#'
4435 else
4436   am__fastdepCXX_TRUE='#'
4437   am__fastdepCXX_FALSE=
4438 fi
4439
4440
4441 # Find a good install program.  We prefer a C program (faster),
4442 # so one script is as good as another.  But avoid the broken or
4443 # incompatible versions:
4444 # SysV /etc/install, /usr/sbin/install
4445 # SunOS /usr/etc/install
4446 # IRIX /sbin/install
4447 # AIX /bin/install
4448 # AmigaOS /C/install, which installs bootblocks on floppy discs
4449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4452 # OS/2's system install, which has a completely different semantic
4453 # ./install, which can be erroneously created by make from ./install.sh.
4454 # Reject install programs that cannot install multiple files.
4455 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4456 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4457 if test -z "$INSTALL"; then
4458 if test "${ac_cv_path_install+set}" = set; then
4459   $as_echo_n "(cached) " >&6
4460 else
4461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466   # Account for people who put trailing slashes in PATH elements.
4467 case $as_dir/ in
4468   ./ | .// | /cC/* | \
4469   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4470   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4471   /usr/ucb/* ) ;;
4472   *)
4473     # OSF1 and SCO ODT 3.0 have their own names for install.
4474     # Don't use installbsd from OSF since it installs stuff as root
4475     # by default.
4476     for ac_prog in ginstall scoinst install; do
4477       for ac_exec_ext in '' $ac_executable_extensions; do
4478         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4479           if test $ac_prog = install &&
4480             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4481             # AIX install.  It has an incompatible calling convention.
4482             :
4483           elif test $ac_prog = install &&
4484             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4485             # program-specific install script used by HP pwplus--don't use.
4486             :
4487           else
4488             rm -rf conftest.one conftest.two conftest.dir
4489             echo one > conftest.one
4490             echo two > conftest.two
4491             mkdir conftest.dir
4492             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4493               test -s conftest.one && test -s conftest.two &&
4494               test -s conftest.dir/conftest.one &&
4495               test -s conftest.dir/conftest.two
4496             then
4497               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4498               break 3
4499             fi
4500           fi
4501         fi
4502       done
4503     done
4504     ;;
4505 esac
4506
4507 done
4508 IFS=$as_save_IFS
4509
4510 rm -rf conftest.one conftest.two conftest.dir
4511
4512 fi
4513   if test "${ac_cv_path_install+set}" = set; then
4514     INSTALL=$ac_cv_path_install
4515   else
4516     # As a last resort, use the slow shell script.  Don't cache a
4517     # value for INSTALL within a source directory, because that will
4518     # break other packages using the cache if that directory is
4519     # removed, or if the value is a relative name.
4520     INSTALL=$ac_install_sh
4521   fi
4522 fi
4523 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4524 $as_echo "$INSTALL" >&6; }
4525
4526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4527 # It thinks the first close brace ends the variable substitution.
4528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4529
4530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4531
4532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4533
4534 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4536 set x ${MAKE-make}
4537 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4538 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4539   $as_echo_n "(cached) " >&6
4540 else
4541   cat >conftest.make <<\_ACEOF
4542 SHELL = /bin/sh
4543 all:
4544         @echo '@@@%%%=$(MAKE)=@@@%%%'
4545 _ACEOF
4546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4548   *@@@%%%=?*=@@@%%%*)
4549     eval ac_cv_prog_make_${ac_make}_set=yes;;
4550   *)
4551     eval ac_cv_prog_make_${ac_make}_set=no;;
4552 esac
4553 rm -f conftest.make
4554 fi
4555 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4556   { $as_echo "$as_me:$LINENO: result: yes" >&5
4557 $as_echo "yes" >&6; }
4558   SET_MAKE=
4559 else
4560   { $as_echo "$as_me:$LINENO: result: no" >&5
4561 $as_echo "no" >&6; }
4562   SET_MAKE="MAKE=${MAKE-make}"
4563 fi
4564
4565 case `pwd` in
4566   *\ * | *\     *)
4567     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4568 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4569 esac
4570
4571
4572
4573 macro_version='2.2.6b'
4574 macro_revision='1.3017'
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588 ltmain="$ac_aux_dir/ltmain.sh"
4589
4590 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4591 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4592 if test "${ac_cv_path_SED+set}" = set; then
4593   $as_echo_n "(cached) " >&6
4594 else
4595             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4596      for ac_i in 1 2 3 4 5 6 7; do
4597        ac_script="$ac_script$as_nl$ac_script"
4598      done
4599      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4600      $as_unset ac_script || ac_script=
4601      if test -z "$SED"; then
4602   ac_path_SED_found=false
4603   # Loop through the user's path and test for each of PROGNAME-LIST
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_prog in sed gsed; do
4610     for ac_exec_ext in '' $ac_executable_extensions; do
4611       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4612       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4613 # Check for GNU ac_path_SED and select it if it is found.
4614   # Check for GNU $ac_path_SED
4615 case `"$ac_path_SED" --version 2>&1` in
4616 *GNU*)
4617   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4618 *)
4619   ac_count=0
4620   $as_echo_n 0123456789 >"conftest.in"
4621   while :
4622   do
4623     cat "conftest.in" "conftest.in" >"conftest.tmp"
4624     mv "conftest.tmp" "conftest.in"
4625     cp "conftest.in" "conftest.nl"
4626     $as_echo '' >> "conftest.nl"
4627     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629     ac_count=`expr $ac_count + 1`
4630     if test $ac_count -gt ${ac_path_SED_max-0}; then
4631       # Best one so far, save it but keep looking for a better one
4632       ac_cv_path_SED="$ac_path_SED"
4633       ac_path_SED_max=$ac_count
4634     fi
4635     # 10*(2^10) chars as input seems more than enough
4636     test $ac_count -gt 10 && break
4637   done
4638   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4640
4641       $ac_path_SED_found && break 3
4642     done
4643   done
4644 done
4645 IFS=$as_save_IFS
4646   if test -z "$ac_cv_path_SED"; then
4647     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4648 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4649    { (exit 1); exit 1; }; }
4650   fi
4651 else
4652   ac_cv_path_SED=$SED
4653 fi
4654
4655 fi
4656 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4657 $as_echo "$ac_cv_path_SED" >&6; }
4658  SED="$ac_cv_path_SED"
4659   rm -f conftest.sed
4660
4661 test -z "$SED" && SED=sed
4662 Xsed="$SED -e 1s/^X//"
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4675 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4676 if test "${ac_cv_path_GREP+set}" = set; then
4677   $as_echo_n "(cached) " >&6
4678 else
4679   if test -z "$GREP"; then
4680   ac_path_GREP_found=false
4681   # Loop through the user's path and test for each of PROGNAME-LIST
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_prog in grep ggrep; do
4688     for ac_exec_ext in '' $ac_executable_extensions; do
4689       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4690       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4691 # Check for GNU ac_path_GREP and select it if it is found.
4692   # Check for GNU $ac_path_GREP
4693 case `"$ac_path_GREP" --version 2>&1` in
4694 *GNU*)
4695   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4696 *)
4697   ac_count=0
4698   $as_echo_n 0123456789 >"conftest.in"
4699   while :
4700   do
4701     cat "conftest.in" "conftest.in" >"conftest.tmp"
4702     mv "conftest.tmp" "conftest.in"
4703     cp "conftest.in" "conftest.nl"
4704     $as_echo 'GREP' >> "conftest.nl"
4705     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707     ac_count=`expr $ac_count + 1`
4708     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4709       # Best one so far, save it but keep looking for a better one
4710       ac_cv_path_GREP="$ac_path_GREP"
4711       ac_path_GREP_max=$ac_count
4712     fi
4713     # 10*(2^10) chars as input seems more than enough
4714     test $ac_count -gt 10 && break
4715   done
4716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717 esac
4718
4719       $ac_path_GREP_found && break 3
4720     done
4721   done
4722 done
4723 IFS=$as_save_IFS
4724   if test -z "$ac_cv_path_GREP"; then
4725     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4726 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4727    { (exit 1); exit 1; }; }
4728   fi
4729 else
4730   ac_cv_path_GREP=$GREP
4731 fi
4732
4733 fi
4734 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4735 $as_echo "$ac_cv_path_GREP" >&6; }
4736  GREP="$ac_cv_path_GREP"
4737
4738
4739 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4740 $as_echo_n "checking for egrep... " >&6; }
4741 if test "${ac_cv_path_EGREP+set}" = set; then
4742   $as_echo_n "(cached) " >&6
4743 else
4744   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4745    then ac_cv_path_EGREP="$GREP -E"
4746    else
4747      if test -z "$EGREP"; then
4748   ac_path_EGREP_found=false
4749   # Loop through the user's path and test for each of PROGNAME-LIST
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_prog in egrep; do
4756     for ac_exec_ext in '' $ac_executable_extensions; do
4757       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4758       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4759 # Check for GNU ac_path_EGREP and select it if it is found.
4760   # Check for GNU $ac_path_EGREP
4761 case `"$ac_path_EGREP" --version 2>&1` in
4762 *GNU*)
4763   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4764 *)
4765   ac_count=0
4766   $as_echo_n 0123456789 >"conftest.in"
4767   while :
4768   do
4769     cat "conftest.in" "conftest.in" >"conftest.tmp"
4770     mv "conftest.tmp" "conftest.in"
4771     cp "conftest.in" "conftest.nl"
4772     $as_echo 'EGREP' >> "conftest.nl"
4773     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775     ac_count=`expr $ac_count + 1`
4776     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4777       # Best one so far, save it but keep looking for a better one
4778       ac_cv_path_EGREP="$ac_path_EGREP"
4779       ac_path_EGREP_max=$ac_count
4780     fi
4781     # 10*(2^10) chars as input seems more than enough
4782     test $ac_count -gt 10 && break
4783   done
4784   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4785 esac
4786
4787       $ac_path_EGREP_found && break 3
4788     done
4789   done
4790 done
4791 IFS=$as_save_IFS
4792   if test -z "$ac_cv_path_EGREP"; then
4793     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4794 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4795    { (exit 1); exit 1; }; }
4796   fi
4797 else
4798   ac_cv_path_EGREP=$EGREP
4799 fi
4800
4801    fi
4802 fi
4803 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4804 $as_echo "$ac_cv_path_EGREP" >&6; }
4805  EGREP="$ac_cv_path_EGREP"
4806
4807
4808 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4809 $as_echo_n "checking for fgrep... " >&6; }
4810 if test "${ac_cv_path_FGREP+set}" = set; then
4811   $as_echo_n "(cached) " >&6
4812 else
4813   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4814    then ac_cv_path_FGREP="$GREP -F"
4815    else
4816      if test -z "$FGREP"; then
4817   ac_path_FGREP_found=false
4818   # Loop through the user's path and test for each of PROGNAME-LIST
4819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_prog in fgrep; do
4825     for ac_exec_ext in '' $ac_executable_extensions; do
4826       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4827       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4828 # Check for GNU ac_path_FGREP and select it if it is found.
4829   # Check for GNU $ac_path_FGREP
4830 case `"$ac_path_FGREP" --version 2>&1` in
4831 *GNU*)
4832   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4833 *)
4834   ac_count=0
4835   $as_echo_n 0123456789 >"conftest.in"
4836   while :
4837   do
4838     cat "conftest.in" "conftest.in" >"conftest.tmp"
4839     mv "conftest.tmp" "conftest.in"
4840     cp "conftest.in" "conftest.nl"
4841     $as_echo 'FGREP' >> "conftest.nl"
4842     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4843     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4844     ac_count=`expr $ac_count + 1`
4845     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4846       # Best one so far, save it but keep looking for a better one
4847       ac_cv_path_FGREP="$ac_path_FGREP"
4848       ac_path_FGREP_max=$ac_count
4849     fi
4850     # 10*(2^10) chars as input seems more than enough
4851     test $ac_count -gt 10 && break
4852   done
4853   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4854 esac
4855
4856       $ac_path_FGREP_found && break 3
4857     done
4858   done
4859 done
4860 IFS=$as_save_IFS
4861   if test -z "$ac_cv_path_FGREP"; then
4862     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4863 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4864    { (exit 1); exit 1; }; }
4865   fi
4866 else
4867   ac_cv_path_FGREP=$FGREP
4868 fi
4869
4870    fi
4871 fi
4872 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4873 $as_echo "$ac_cv_path_FGREP" >&6; }
4874  FGREP="$ac_cv_path_FGREP"
4875
4876
4877 test -z "$GREP" && GREP=grep
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897 # Check whether --with-gnu-ld was given.
4898 if test "${with_gnu_ld+set}" = set; then
4899   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4900 else
4901   with_gnu_ld=no
4902 fi
4903
4904 ac_prog=ld
4905 if test "$GCC" = yes; then
4906   # Check if gcc -print-prog-name=ld gives a path.
4907   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4908 $as_echo_n "checking for ld used by $CC... " >&6; }
4909   case $host in
4910   *-*-mingw*)
4911     # gcc leaves a trailing carriage return which upsets mingw
4912     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4913   *)
4914     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4915   esac
4916   case $ac_prog in
4917     # Accept absolute paths.
4918     [\\/]* | ?:[\\/]*)
4919       re_direlt='/[^/][^/]*/\.\./'
4920       # Canonicalize the pathname of ld
4921       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4922       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4923         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4924       done
4925       test -z "$LD" && LD="$ac_prog"
4926       ;;
4927   "")
4928     # If it fails, then pretend we aren't using GCC.
4929     ac_prog=ld
4930     ;;
4931   *)
4932     # If it is relative, then search for the first ld in PATH.
4933     with_gnu_ld=unknown
4934     ;;
4935   esac
4936 elif test "$with_gnu_ld" = yes; then
4937   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4938 $as_echo_n "checking for GNU ld... " >&6; }
4939 else
4940   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4941 $as_echo_n "checking for non-GNU ld... " >&6; }
4942 fi
4943 if test "${lt_cv_path_LD+set}" = set; then
4944   $as_echo_n "(cached) " >&6
4945 else
4946   if test -z "$LD"; then
4947   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4948   for ac_dir in $PATH; do
4949     IFS="$lt_save_ifs"
4950     test -z "$ac_dir" && ac_dir=.
4951     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4952       lt_cv_path_LD="$ac_dir/$ac_prog"
4953       # Check to see if the program is GNU ld.  I'd rather use --version,
4954       # but apparently some variants of GNU ld only accept -v.
4955       # Break only if it was the GNU/non-GNU ld that we prefer.
4956       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4957       *GNU* | *'with BFD'*)
4958         test "$with_gnu_ld" != no && break
4959         ;;
4960       *)
4961         test "$with_gnu_ld" != yes && break
4962         ;;
4963       esac
4964     fi
4965   done
4966   IFS="$lt_save_ifs"
4967 else
4968   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4969 fi
4970 fi
4971
4972 LD="$lt_cv_path_LD"
4973 if test -n "$LD"; then
4974   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4975 $as_echo "$LD" >&6; }
4976 else
4977   { $as_echo "$as_me:$LINENO: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4981 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4982    { (exit 1); exit 1; }; }
4983 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4984 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4985 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4986   $as_echo_n "(cached) " >&6
4987 else
4988   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4989 case `$LD -v 2>&1 </dev/null` in
4990 *GNU* | *'with BFD'*)
4991   lt_cv_prog_gnu_ld=yes
4992   ;;
4993 *)
4994   lt_cv_prog_gnu_ld=no
4995   ;;
4996 esac
4997 fi
4998 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4999 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5000 with_gnu_ld=$lt_cv_prog_gnu_ld
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5011 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5012 if test "${lt_cv_path_NM+set}" = set; then
5013   $as_echo_n "(cached) " >&6
5014 else
5015   if test -n "$NM"; then
5016   # Let the user override the test.
5017   lt_cv_path_NM="$NM"
5018 else
5019   lt_nm_to_check="${ac_tool_prefix}nm"
5020   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5021     lt_nm_to_check="$lt_nm_to_check nm"
5022   fi
5023   for lt_tmp_nm in $lt_nm_to_check; do
5024     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5025     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5026       IFS="$lt_save_ifs"
5027       test -z "$ac_dir" && ac_dir=.
5028       tmp_nm="$ac_dir/$lt_tmp_nm"
5029       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5030         # Check to see if the nm accepts a BSD-compat flag.
5031         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5032         #   nm: unknown option "B" ignored
5033         # Tru64's nm complains that /dev/null is an invalid object file
5034         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5035         */dev/null* | *'Invalid file or object type'*)
5036           lt_cv_path_NM="$tmp_nm -B"
5037           break
5038           ;;
5039         *)
5040           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5041           */dev/null*)
5042             lt_cv_path_NM="$tmp_nm -p"
5043             break
5044             ;;
5045           *)
5046             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5047             continue # so that we can try to find one that supports BSD flags
5048             ;;
5049           esac
5050           ;;
5051         esac
5052       fi
5053     done
5054     IFS="$lt_save_ifs"
5055   done
5056   : ${lt_cv_path_NM=no}
5057 fi
5058 fi
5059 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5060 $as_echo "$lt_cv_path_NM" >&6; }
5061 if test "$lt_cv_path_NM" != "no"; then
5062   NM="$lt_cv_path_NM"
5063 else
5064   # Didn't find any BSD compatible name lister, look for dumpbin.
5065   if test -n "$ac_tool_prefix"; then
5066   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5067   do
5068     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5073   $as_echo_n "(cached) " >&6
5074 else
5075   if test -n "$DUMPBIN"; then
5076   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081   IFS=$as_save_IFS
5082   test -z "$as_dir" && as_dir=.
5083   for ac_exec_ext in '' $ac_executable_extensions; do
5084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5086     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087     break 2
5088   fi
5089 done
5090 done
5091 IFS=$as_save_IFS
5092
5093 fi
5094 fi
5095 DUMPBIN=$ac_cv_prog_DUMPBIN
5096 if test -n "$DUMPBIN"; then
5097   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5098 $as_echo "$DUMPBIN" >&6; }
5099 else
5100   { $as_echo "$as_me:$LINENO: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103
5104
5105     test -n "$DUMPBIN" && break
5106   done
5107 fi
5108 if test -z "$DUMPBIN"; then
5109   ac_ct_DUMPBIN=$DUMPBIN
5110   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5111 do
5112   # Extract the first word of "$ac_prog", so it can be a program name with args.
5113 set dummy $ac_prog; ac_word=$2
5114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$ac_ct_DUMPBIN"; then
5120   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127   for ac_exec_ext in '' $ac_executable_extensions; do
5128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5130     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5140 if test -n "$ac_ct_DUMPBIN"; then
5141   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5142 $as_echo "$ac_ct_DUMPBIN" >&6; }
5143 else
5144   { $as_echo "$as_me:$LINENO: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149   test -n "$ac_ct_DUMPBIN" && break
5150 done
5151
5152   if test "x$ac_ct_DUMPBIN" = x; then
5153     DUMPBIN=":"
5154   else
5155     case $cross_compiling:$ac_tool_warned in
5156 yes:)
5157 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159 ac_tool_warned=yes ;;
5160 esac
5161     DUMPBIN=$ac_ct_DUMPBIN
5162   fi
5163 fi
5164
5165
5166   if test "$DUMPBIN" != ":"; then
5167     NM="$DUMPBIN"
5168   fi
5169 fi
5170 test -z "$NM" && NM=nm
5171
5172
5173
5174
5175
5176
5177 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5178 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5179 if test "${lt_cv_nm_interface+set}" = set; then
5180   $as_echo_n "(cached) " >&6
5181 else
5182   lt_cv_nm_interface="BSD nm"
5183   echo "int some_variable = 0;" > conftest.$ac_ext
5184   (eval echo "\"\$as_me:5184: $ac_compile\"" >&5)
5185   (eval "$ac_compile" 2>conftest.err)
5186   cat conftest.err >&5
5187   (eval echo "\"\$as_me:5187: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5188   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5189   cat conftest.err >&5
5190   (eval echo "\"\$as_me:5190: output\"" >&5)
5191   cat conftest.out >&5
5192   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5193     lt_cv_nm_interface="MS dumpbin"
5194   fi
5195   rm -f conftest*
5196 fi
5197 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5198 $as_echo "$lt_cv_nm_interface" >&6; }
5199
5200 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5201 $as_echo_n "checking whether ln -s works... " >&6; }
5202 LN_S=$as_ln_s
5203 if test "$LN_S" = "ln -s"; then
5204   { $as_echo "$as_me:$LINENO: result: yes" >&5
5205 $as_echo "yes" >&6; }
5206 else
5207   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5208 $as_echo "no, using $LN_S" >&6; }
5209 fi
5210
5211 # find the maximum length of command line arguments
5212 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5213 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5214 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5215   $as_echo_n "(cached) " >&6
5216 else
5217     i=0
5218   teststring="ABCD"
5219
5220   case $build_os in
5221   msdosdjgpp*)
5222     # On DJGPP, this test can blow up pretty badly due to problems in libc
5223     # (any single argument exceeding 2000 bytes causes a buffer overrun
5224     # during glob expansion).  Even if it were fixed, the result of this
5225     # check would be larger than it should be.
5226     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5227     ;;
5228
5229   gnu*)
5230     # Under GNU Hurd, this test is not required because there is
5231     # no limit to the length of command line arguments.
5232     # Libtool will interpret -1 as no limit whatsoever
5233     lt_cv_sys_max_cmd_len=-1;
5234     ;;
5235
5236   cygwin* | mingw* | cegcc*)
5237     # On Win9x/ME, this test blows up -- it succeeds, but takes
5238     # about 5 minutes as the teststring grows exponentially.
5239     # Worse, since 9x/ME are not pre-emptively multitasking,
5240     # you end up with a "frozen" computer, even though with patience
5241     # the test eventually succeeds (with a max line length of 256k).
5242     # Instead, let's just punt: use the minimum linelength reported by
5243     # all of the supported platforms: 8192 (on NT/2K/XP).
5244     lt_cv_sys_max_cmd_len=8192;
5245     ;;
5246
5247   amigaos*)
5248     # On AmigaOS with pdksh, this test takes hours, literally.
5249     # So we just punt and use a minimum line length of 8192.
5250     lt_cv_sys_max_cmd_len=8192;
5251     ;;
5252
5253   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5254     # This has been around since 386BSD, at least.  Likely further.
5255     if test -x /sbin/sysctl; then
5256       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5257     elif test -x /usr/sbin/sysctl; then
5258       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5259     else
5260       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5261     fi
5262     # And add a safety zone
5263     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5264     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5265     ;;
5266
5267   interix*)
5268     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5269     lt_cv_sys_max_cmd_len=196608
5270     ;;
5271
5272   osf*)
5273     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5274     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5275     # nice to cause kernel panics so lets avoid the loop below.
5276     # First set a reasonable default.
5277     lt_cv_sys_max_cmd_len=16384
5278     #
5279     if test -x /sbin/sysconfig; then
5280       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5281         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5282       esac
5283     fi
5284     ;;
5285   sco3.2v5*)
5286     lt_cv_sys_max_cmd_len=102400
5287     ;;
5288   sysv5* | sco5v6* | sysv4.2uw2*)
5289     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5290     if test -n "$kargmax"; then
5291       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5292     else
5293       lt_cv_sys_max_cmd_len=32768
5294     fi
5295     ;;
5296   *)
5297     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5298     if test -n "$lt_cv_sys_max_cmd_len"; then
5299       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5300       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5301     else
5302       # Make teststring a little bigger before we do anything with it.
5303       # a 1K string should be a reasonable start.
5304       for i in 1 2 3 4 5 6 7 8 ; do
5305         teststring=$teststring$teststring
5306       done
5307       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5308       # If test is not a shell built-in, we'll probably end up computing a
5309       # maximum length that is only half of the actual maximum length, but
5310       # we can't tell.
5311       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5312                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5313               test $i != 17 # 1/2 MB should be enough
5314       do
5315         i=`expr $i + 1`
5316         teststring=$teststring$teststring
5317       done
5318       # Only check the string length outside the loop.
5319       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5320       teststring=
5321       # Add a significant safety factor because C++ compilers can tack on
5322       # massive amounts of additional arguments before passing them to the
5323       # linker.  It appears as though 1/2 is a usable value.
5324       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5325     fi
5326     ;;
5327   esac
5328
5329 fi
5330
5331 if test -n $lt_cv_sys_max_cmd_len ; then
5332   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5333 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5334 else
5335   { $as_echo "$as_me:$LINENO: result: none" >&5
5336 $as_echo "none" >&6; }
5337 fi
5338 max_cmd_len=$lt_cv_sys_max_cmd_len
5339
5340
5341
5342
5343
5344
5345 : ${CP="cp -f"}
5346 : ${MV="mv -f"}
5347 : ${RM="rm -f"}
5348
5349 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5350 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5351 # Try some XSI features
5352 xsi_shell=no
5353 ( _lt_dummy="a/b/c"
5354   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5355       = c,a/b,, \
5356     && eval 'test $(( 1 + 1 )) -eq 2 \
5357     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5358   && xsi_shell=yes
5359 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5360 $as_echo "$xsi_shell" >&6; }
5361
5362
5363 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5364 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5365 lt_shell_append=no
5366 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5367     >/dev/null 2>&1 \
5368   && lt_shell_append=yes
5369 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5370 $as_echo "$lt_shell_append" >&6; }
5371
5372
5373 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5374   lt_unset=unset
5375 else
5376   lt_unset=false
5377 fi
5378
5379
5380
5381
5382
5383 # test EBCDIC or ASCII
5384 case `echo X|tr X '\101'` in
5385  A) # ASCII based system
5386     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5387   lt_SP2NL='tr \040 \012'
5388   lt_NL2SP='tr \015\012 \040\040'
5389   ;;
5390  *) # EBCDIC based system
5391   lt_SP2NL='tr \100 \n'
5392   lt_NL2SP='tr \r\n \100\100'
5393   ;;
5394 esac
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5405 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5406 if test "${lt_cv_ld_reload_flag+set}" = set; then
5407   $as_echo_n "(cached) " >&6
5408 else
5409   lt_cv_ld_reload_flag='-r'
5410 fi
5411 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5412 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5413 reload_flag=$lt_cv_ld_reload_flag
5414 case $reload_flag in
5415 "" | " "*) ;;
5416 *) reload_flag=" $reload_flag" ;;
5417 esac
5418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5419 case $host_os in
5420   darwin*)
5421     if test "$GCC" = yes; then
5422       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5423     else
5424       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5425     fi
5426     ;;
5427 esac
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437 if test -n "$ac_tool_prefix"; then
5438   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5443   $as_echo_n "(cached) " >&6
5444 else
5445   if test -n "$OBJDUMP"; then
5446   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5447 else
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 for as_dir in $PATH
5450 do
5451   IFS=$as_save_IFS
5452   test -z "$as_dir" && as_dir=.
5453   for ac_exec_ext in '' $ac_executable_extensions; do
5454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5456     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457     break 2
5458   fi
5459 done
5460 done
5461 IFS=$as_save_IFS
5462
5463 fi
5464 fi
5465 OBJDUMP=$ac_cv_prog_OBJDUMP
5466 if test -n "$OBJDUMP"; then
5467   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5468 $as_echo "$OBJDUMP" >&6; }
5469 else
5470   { $as_echo "$as_me:$LINENO: result: no" >&5
5471 $as_echo "no" >&6; }
5472 fi
5473
5474
5475 fi
5476 if test -z "$ac_cv_prog_OBJDUMP"; then
5477   ac_ct_OBJDUMP=$OBJDUMP
5478   # Extract the first word of "objdump", so it can be a program name with args.
5479 set dummy objdump; ac_word=$2
5480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5483   $as_echo_n "(cached) " >&6
5484 else
5485   if test -n "$ac_ct_OBJDUMP"; then
5486   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493   for ac_exec_ext in '' $ac_executable_extensions; do
5494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5496     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500 done
5501 IFS=$as_save_IFS
5502
5503 fi
5504 fi
5505 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5506 if test -n "$ac_ct_OBJDUMP"; then
5507   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5508 $as_echo "$ac_ct_OBJDUMP" >&6; }
5509 else
5510   { $as_echo "$as_me:$LINENO: result: no" >&5
5511 $as_echo "no" >&6; }
5512 fi
5513
5514   if test "x$ac_ct_OBJDUMP" = x; then
5515     OBJDUMP="false"
5516   else
5517     case $cross_compiling:$ac_tool_warned in
5518 yes:)
5519 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5521 ac_tool_warned=yes ;;
5522 esac
5523     OBJDUMP=$ac_ct_OBJDUMP
5524   fi
5525 else
5526   OBJDUMP="$ac_cv_prog_OBJDUMP"
5527 fi
5528
5529 test -z "$OBJDUMP" && OBJDUMP=objdump
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5540 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5541 if test "${lt_cv_deplibs_check_method+set}" = set; then
5542   $as_echo_n "(cached) " >&6
5543 else
5544   lt_cv_file_magic_cmd='$MAGIC_CMD'
5545 lt_cv_file_magic_test_file=
5546 lt_cv_deplibs_check_method='unknown'
5547 # Need to set the preceding variable on all platforms that support
5548 # interlibrary dependencies.
5549 # 'none' -- dependencies not supported.
5550 # `unknown' -- same as none, but documents that we really don't know.
5551 # 'pass_all' -- all dependencies passed with no checks.
5552 # 'test_compile' -- check by making test program.
5553 # 'file_magic [[regex]]' -- check by looking for files in library path
5554 # which responds to the $file_magic_cmd with a given extended regex.
5555 # If you have `file' or equivalent on your system and you're not sure
5556 # whether `pass_all' will *always* work, you probably want this one.
5557
5558 case $host_os in
5559 aix[4-9]*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 beos*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566
5567 bsdi[45]*)
5568   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5569   lt_cv_file_magic_cmd='/usr/bin/file -L'
5570   lt_cv_file_magic_test_file=/shlib/libc.so
5571   ;;
5572
5573 cygwin*)
5574   # func_win32_libid is a shell function defined in ltmain.sh
5575   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5576   lt_cv_file_magic_cmd='func_win32_libid'
5577   ;;
5578
5579 mingw* | pw32*)
5580   # Base MSYS/MinGW do not provide the 'file' command needed by
5581   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5582   # unless we find 'file', for example because we are cross-compiling.
5583   if ( file / ) >/dev/null 2>&1; then
5584     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5585     lt_cv_file_magic_cmd='func_win32_libid'
5586   else
5587     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5588     lt_cv_file_magic_cmd='$OBJDUMP -f'
5589   fi
5590   ;;
5591
5592 cegcc)
5593   # use the weaker test based on 'objdump'. See mingw*.
5594   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5595   lt_cv_file_magic_cmd='$OBJDUMP -f'
5596   ;;
5597
5598 darwin* | rhapsody*)
5599   lt_cv_deplibs_check_method=pass_all
5600   ;;
5601
5602 freebsd* | dragonfly*)
5603   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5604     case $host_cpu in
5605     i*86 )
5606       # Not sure whether the presence of OpenBSD here was a mistake.
5607       # Let's accept both of them until this is cleared up.
5608       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5609       lt_cv_file_magic_cmd=/usr/bin/file
5610       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5611       ;;
5612     esac
5613   else
5614     lt_cv_deplibs_check_method=pass_all
5615   fi
5616   ;;
5617
5618 gnu*)
5619   lt_cv_deplibs_check_method=pass_all
5620   ;;
5621
5622 hpux10.20* | hpux11*)
5623   lt_cv_file_magic_cmd=/usr/bin/file
5624   case $host_cpu in
5625   ia64*)
5626     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5627     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5628     ;;
5629   hppa*64*)
5630     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]'
5631     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5632     ;;
5633   *)
5634     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5635     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5636     ;;
5637   esac
5638   ;;
5639
5640 interix[3-9]*)
5641   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5642   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5643   ;;
5644
5645 irix5* | irix6* | nonstopux*)
5646   case $LD in
5647   *-32|*"-32 ") libmagic=32-bit;;
5648   *-n32|*"-n32 ") libmagic=N32;;
5649   *-64|*"-64 ") libmagic=64-bit;;
5650   *) libmagic=never-match;;
5651   esac
5652   lt_cv_deplibs_check_method=pass_all
5653   ;;
5654
5655 # This must be Linux ELF.
5656 linux* | k*bsd*-gnu)
5657   lt_cv_deplibs_check_method=pass_all
5658   ;;
5659
5660 netbsd*)
5661   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5662     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5663   else
5664     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5665   fi
5666   ;;
5667
5668 newos6*)
5669   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5670   lt_cv_file_magic_cmd=/usr/bin/file
5671   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5672   ;;
5673
5674 *nto* | *qnx*)
5675   lt_cv_deplibs_check_method=pass_all
5676   ;;
5677
5678 openbsd*)
5679   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5680     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5681   else
5682     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5683   fi
5684   ;;
5685
5686 osf3* | osf4* | osf5*)
5687   lt_cv_deplibs_check_method=pass_all
5688   ;;
5689
5690 rdos*)
5691   lt_cv_deplibs_check_method=pass_all
5692   ;;
5693
5694 solaris*)
5695   lt_cv_deplibs_check_method=pass_all
5696   ;;
5697
5698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5699   lt_cv_deplibs_check_method=pass_all
5700   ;;
5701
5702 sysv4 | sysv4.3*)
5703   case $host_vendor in
5704   motorola)
5705     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]'
5706     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5707     ;;
5708   ncr)
5709     lt_cv_deplibs_check_method=pass_all
5710     ;;
5711   sequent)
5712     lt_cv_file_magic_cmd='/bin/file'
5713     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5714     ;;
5715   sni)
5716     lt_cv_file_magic_cmd='/bin/file'
5717     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5718     lt_cv_file_magic_test_file=/lib/libc.so
5719     ;;
5720   siemens)
5721     lt_cv_deplibs_check_method=pass_all
5722     ;;
5723   pc)
5724     lt_cv_deplibs_check_method=pass_all
5725     ;;
5726   esac
5727   ;;
5728
5729 tpf*)
5730   lt_cv_deplibs_check_method=pass_all
5731   ;;
5732 esac
5733
5734 fi
5735 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5736 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5737 file_magic_cmd=$lt_cv_file_magic_cmd
5738 deplibs_check_method=$lt_cv_deplibs_check_method
5739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 if test -n "$ac_tool_prefix"; then
5753   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}ar; ac_word=$2
5755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_prog_AR+set}" = set; then
5758   $as_echo_n "(cached) " >&6
5759 else
5760   if test -n "$AR"; then
5761   ac_cv_prog_AR="$AR" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768   for ac_exec_ext in '' $ac_executable_extensions; do
5769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770     ac_cv_prog_AR="${ac_tool_prefix}ar"
5771     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775 done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 AR=$ac_cv_prog_AR
5781 if test -n "$AR"; then
5782   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5783 $as_echo "$AR" >&6; }
5784 else
5785   { $as_echo "$as_me:$LINENO: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789
5790 fi
5791 if test -z "$ac_cv_prog_AR"; then
5792   ac_ct_AR=$AR
5793   # Extract the first word of "ar", so it can be a program name with args.
5794 set dummy ar; ac_word=$2
5795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5798   $as_echo_n "(cached) " >&6
5799 else
5800   if test -n "$ac_ct_AR"; then
5801   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5802 else
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808   for ac_exec_ext in '' $ac_executable_extensions; do
5809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810     ac_cv_prog_ac_ct_AR="ar"
5811     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815 done
5816 IFS=$as_save_IFS
5817
5818 fi
5819 fi
5820 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5821 if test -n "$ac_ct_AR"; then
5822   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5823 $as_echo "$ac_ct_AR" >&6; }
5824 else
5825   { $as_echo "$as_me:$LINENO: result: no" >&5
5826 $as_echo "no" >&6; }
5827 fi
5828
5829   if test "x$ac_ct_AR" = x; then
5830     AR="false"
5831   else
5832     case $cross_compiling:$ac_tool_warned in
5833 yes:)
5834 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5837 esac
5838     AR=$ac_ct_AR
5839   fi
5840 else
5841   AR="$ac_cv_prog_AR"
5842 fi
5843
5844 test -z "$AR" && AR=ar
5845 test -z "$AR_FLAGS" && AR_FLAGS=cru
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857 if test -n "$ac_tool_prefix"; then
5858   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5859 set dummy ${ac_tool_prefix}strip; ac_word=$2
5860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_prog_STRIP+set}" = set; then
5863   $as_echo_n "(cached) " >&6
5864 else
5865   if test -n "$STRIP"; then
5866   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5867 else
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 for as_dir in $PATH
5870 do
5871   IFS=$as_save_IFS
5872   test -z "$as_dir" && as_dir=.
5873   for ac_exec_ext in '' $ac_executable_extensions; do
5874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5876     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877     break 2
5878   fi
5879 done
5880 done
5881 IFS=$as_save_IFS
5882
5883 fi
5884 fi
5885 STRIP=$ac_cv_prog_STRIP
5886 if test -n "$STRIP"; then
5887   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5888 $as_echo "$STRIP" >&6; }
5889 else
5890   { $as_echo "$as_me:$LINENO: result: no" >&5
5891 $as_echo "no" >&6; }
5892 fi
5893
5894
5895 fi
5896 if test -z "$ac_cv_prog_STRIP"; then
5897   ac_ct_STRIP=$STRIP
5898   # Extract the first word of "strip", so it can be a program name with args.
5899 set dummy strip; ac_word=$2
5900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5903   $as_echo_n "(cached) " >&6
5904 else
5905   if test -n "$ac_ct_STRIP"; then
5906   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5907 else
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913   for ac_exec_ext in '' $ac_executable_extensions; do
5914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915     ac_cv_prog_ac_ct_STRIP="strip"
5916     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917     break 2
5918   fi
5919 done
5920 done
5921 IFS=$as_save_IFS
5922
5923 fi
5924 fi
5925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5926 if test -n "$ac_ct_STRIP"; then
5927   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5928 $as_echo "$ac_ct_STRIP" >&6; }
5929 else
5930   { $as_echo "$as_me:$LINENO: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933
5934   if test "x$ac_ct_STRIP" = x; then
5935     STRIP=":"
5936   else
5937     case $cross_compiling:$ac_tool_warned in
5938 yes:)
5939 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5941 ac_tool_warned=yes ;;
5942 esac
5943     STRIP=$ac_ct_STRIP
5944   fi
5945 else
5946   STRIP="$ac_cv_prog_STRIP"
5947 fi
5948
5949 test -z "$STRIP" && STRIP=:
5950
5951
5952
5953
5954
5955
5956 if test -n "$ac_tool_prefix"; then
5957   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_RANLIB+set}" = set; then
5962   $as_echo_n "(cached) " >&6
5963 else
5964   if test -n "$RANLIB"; then
5965   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5966 else
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 for as_dir in $PATH
5969 do
5970   IFS=$as_save_IFS
5971   test -z "$as_dir" && as_dir=.
5972   for ac_exec_ext in '' $ac_executable_extensions; do
5973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5975     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976     break 2
5977   fi
5978 done
5979 done
5980 IFS=$as_save_IFS
5981
5982 fi
5983 fi
5984 RANLIB=$ac_cv_prog_RANLIB
5985 if test -n "$RANLIB"; then
5986   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5987 $as_echo "$RANLIB" >&6; }
5988 else
5989   { $as_echo "$as_me:$LINENO: result: no" >&5
5990 $as_echo "no" >&6; }
5991 fi
5992
5993
5994 fi
5995 if test -z "$ac_cv_prog_RANLIB"; then
5996   ac_ct_RANLIB=$RANLIB
5997   # Extract the first word of "ranlib", so it can be a program name with args.
5998 set dummy ranlib; ac_word=$2
5999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if test -n "$ac_ct_RANLIB"; then
6005   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6006 else
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 for as_dir in $PATH
6009 do
6010   IFS=$as_save_IFS
6011   test -z "$as_dir" && as_dir=.
6012   for ac_exec_ext in '' $ac_executable_extensions; do
6013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014     ac_cv_prog_ac_ct_RANLIB="ranlib"
6015     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016     break 2
6017   fi
6018 done
6019 done
6020 IFS=$as_save_IFS
6021
6022 fi
6023 fi
6024 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6025 if test -n "$ac_ct_RANLIB"; then
6026   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6027 $as_echo "$ac_ct_RANLIB" >&6; }
6028 else
6029   { $as_echo "$as_me:$LINENO: result: no" >&5
6030 $as_echo "no" >&6; }
6031 fi
6032
6033   if test "x$ac_ct_RANLIB" = x; then
6034     RANLIB=":"
6035   else
6036     case $cross_compiling:$ac_tool_warned in
6037 yes:)
6038 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6040 ac_tool_warned=yes ;;
6041 esac
6042     RANLIB=$ac_ct_RANLIB
6043   fi
6044 else
6045   RANLIB="$ac_cv_prog_RANLIB"
6046 fi
6047
6048 test -z "$RANLIB" && RANLIB=:
6049
6050
6051
6052
6053
6054
6055 # Determine commands to create old-style static archives.
6056 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6057 old_postinstall_cmds='chmod 644 $oldlib'
6058 old_postuninstall_cmds=
6059
6060 if test -n "$RANLIB"; then
6061   case $host_os in
6062   openbsd*)
6063     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6064     ;;
6065   *)
6066     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6067     ;;
6068   esac
6069   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6070 fi
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 # If no C compiler was specified, use CC.
6106 LTCC=${LTCC-"$CC"}
6107
6108 # If no C compiler flags were specified, use CFLAGS.
6109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6110
6111 # Allow CC to be a program name with arguments.
6112 compiler=$CC
6113
6114
6115 # Check for command to grab the raw symbol name followed by C symbol from nm.
6116 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6117 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6118 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6119   $as_echo_n "(cached) " >&6
6120 else
6121
6122 # These are sane defaults that work on at least a few old systems.
6123 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6124
6125 # Character class describing NM global symbol codes.
6126 symcode='[BCDEGRST]'
6127
6128 # Regexp to match symbols that can be accessed directly from C.
6129 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6130
6131 # Define system-specific variables.
6132 case $host_os in
6133 aix*)
6134   symcode='[BCDT]'
6135   ;;
6136 cygwin* | mingw* | pw32* | cegcc*)
6137   symcode='[ABCDGISTW]'
6138   ;;
6139 hpux*)
6140   if test "$host_cpu" = ia64; then
6141     symcode='[ABCDEGRST]'
6142   fi
6143   ;;
6144 irix* | nonstopux*)
6145   symcode='[BCDEGRST]'
6146   ;;
6147 osf*)
6148   symcode='[BCDEGQRST]'
6149   ;;
6150 solaris*)
6151   symcode='[BDRT]'
6152   ;;
6153 sco3.2v5*)
6154   symcode='[DT]'
6155   ;;
6156 sysv4.2uw2*)
6157   symcode='[DT]'
6158   ;;
6159 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6160   symcode='[ABDT]'
6161   ;;
6162 sysv4)
6163   symcode='[DFNSTU]'
6164   ;;
6165 esac
6166
6167 # If we're using GNU nm, then use its standard symbol codes.
6168 case `$NM -V 2>&1` in
6169 *GNU* | *'with BFD'*)
6170   symcode='[ABCDGIRSTW]' ;;
6171 esac
6172
6173 # Transform an extracted symbol line into a proper C declaration.
6174 # Some systems (esp. on ia64) link data and code symbols differently,
6175 # so use this general approach.
6176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6177
6178 # Transform an extracted symbol line into symbol name and symbol address
6179 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6180 lt_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'"
6181
6182 # Handle CRLF in mingw tool chain
6183 opt_cr=
6184 case $build_os in
6185 mingw*)
6186   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6187   ;;
6188 esac
6189
6190 # Try without a prefix underscore, then with it.
6191 for ac_symprfx in "" "_"; do
6192
6193   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6194   symxfrm="\\1 $ac_symprfx\\2 \\2"
6195
6196   # Write the raw and C identifiers.
6197   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6198     # Fake it for dumpbin and say T for any non-static function
6199     # and D for any global variable.
6200     # Also find C++ and __fastcall symbols from MSVC++,
6201     # which start with @ or ?.
6202     lt_cv_sys_global_symbol_pipe="$AWK '"\
6203 "     {last_section=section; section=\$ 3};"\
6204 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6205 "     \$ 0!~/External *\|/{next};"\
6206 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6207 "     {if(hide[section]) next};"\
6208 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6209 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6210 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6211 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6212 "     ' prfx=^$ac_symprfx"
6213   else
6214     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6215   fi
6216
6217   # Check to see that the pipe works correctly.
6218   pipe_works=no
6219
6220   rm -f conftest*
6221   cat > conftest.$ac_ext <<_LT_EOF
6222 #ifdef __cplusplus
6223 extern "C" {
6224 #endif
6225 char nm_test_var;
6226 void nm_test_func(void);
6227 void nm_test_func(void){}
6228 #ifdef __cplusplus
6229 }
6230 #endif
6231 int main(){nm_test_var='a';nm_test_func();return(0);}
6232 _LT_EOF
6233
6234   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235   (eval $ac_compile) 2>&5
6236   ac_status=$?
6237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; then
6239     # Now try to grab the symbols.
6240     nlist=conftest.nm
6241     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6242   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6243   ac_status=$?
6244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); } && test -s "$nlist"; then
6246       # Try sorting and uniquifying the output.
6247       if sort "$nlist" | uniq > "$nlist"T; then
6248         mv -f "$nlist"T "$nlist"
6249       else
6250         rm -f "$nlist"T
6251       fi
6252
6253       # Make sure that we snagged all the symbols we need.
6254       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6255         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6256           cat <<_LT_EOF > conftest.$ac_ext
6257 #ifdef __cplusplus
6258 extern "C" {
6259 #endif
6260
6261 _LT_EOF
6262           # Now generate the symbol file.
6263           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6264
6265           cat <<_LT_EOF >> conftest.$ac_ext
6266
6267 /* The mapping between symbol names and symbols.  */
6268 const struct {
6269   const char *name;
6270   void       *address;
6271 }
6272 lt__PROGRAM__LTX_preloaded_symbols[] =
6273 {
6274   { "@PROGRAM@", (void *) 0 },
6275 _LT_EOF
6276           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6277           cat <<\_LT_EOF >> conftest.$ac_ext
6278   {0, (void *) 0}
6279 };
6280
6281 /* This works around a problem in FreeBSD linker */
6282 #ifdef FREEBSD_WORKAROUND
6283 static const void *lt_preloaded_setup() {
6284   return lt__PROGRAM__LTX_preloaded_symbols;
6285 }
6286 #endif
6287
6288 #ifdef __cplusplus
6289 }
6290 #endif
6291 _LT_EOF
6292           # Now try linking the two files.
6293           mv conftest.$ac_objext conftstm.$ac_objext
6294           lt_save_LIBS="$LIBS"
6295           lt_save_CFLAGS="$CFLAGS"
6296           LIBS="conftstm.$ac_objext"
6297           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6298           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299   (eval $ac_link) 2>&5
6300   ac_status=$?
6301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6303             pipe_works=yes
6304           fi
6305           LIBS="$lt_save_LIBS"
6306           CFLAGS="$lt_save_CFLAGS"
6307         else
6308           echo "cannot find nm_test_func in $nlist" >&5
6309         fi
6310       else
6311         echo "cannot find nm_test_var in $nlist" >&5
6312       fi
6313     else
6314       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6315     fi
6316   else
6317     echo "$progname: failed program was:" >&5
6318     cat conftest.$ac_ext >&5
6319   fi
6320   rm -rf conftest* conftst*
6321
6322   # Do not use the global_symbol_pipe unless it works.
6323   if test "$pipe_works" = yes; then
6324     break
6325   else
6326     lt_cv_sys_global_symbol_pipe=
6327   fi
6328 done
6329
6330 fi
6331
6332 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6333   lt_cv_sys_global_symbol_to_cdecl=
6334 fi
6335 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6336   { $as_echo "$as_me:$LINENO: result: failed" >&5
6337 $as_echo "failed" >&6; }
6338 else
6339   { $as_echo "$as_me:$LINENO: result: ok" >&5
6340 $as_echo "ok" >&6; }
6341 fi
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365 # Check whether --enable-libtool-lock was given.
6366 if test "${enable_libtool_lock+set}" = set; then
6367   enableval=$enable_libtool_lock;
6368 fi
6369
6370 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6371
6372 # Some flags need to be propagated to the compiler or linker for good
6373 # libtool support.
6374 case $host in
6375 ia64-*-hpux*)
6376   # Find out which ABI we are using.
6377   echo 'int i;' > conftest.$ac_ext
6378   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379   (eval $ac_compile) 2>&5
6380   ac_status=$?
6381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); }; then
6383     case `/usr/bin/file conftest.$ac_objext` in
6384       *ELF-32*)
6385         HPUX_IA64_MODE="32"
6386         ;;
6387       *ELF-64*)
6388         HPUX_IA64_MODE="64"
6389         ;;
6390     esac
6391   fi
6392   rm -rf conftest*
6393   ;;
6394 *-*-irix6*)
6395   # Find out which ABI we are using.
6396   echo '#line 6396 "configure"' > conftest.$ac_ext
6397   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398   (eval $ac_compile) 2>&5
6399   ac_status=$?
6400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); }; then
6402     if test "$lt_cv_prog_gnu_ld" = yes; then
6403       case `/usr/bin/file conftest.$ac_objext` in
6404         *32-bit*)
6405           LD="${LD-ld} -melf32bsmip"
6406           ;;
6407         *N32*)
6408           LD="${LD-ld} -melf32bmipn32"
6409           ;;
6410         *64-bit*)
6411           LD="${LD-ld} -melf64bmip"
6412         ;;
6413       esac
6414     else
6415       case `/usr/bin/file conftest.$ac_objext` in
6416         *32-bit*)
6417           LD="${LD-ld} -32"
6418           ;;
6419         *N32*)
6420           LD="${LD-ld} -n32"
6421           ;;
6422         *64-bit*)
6423           LD="${LD-ld} -64"
6424           ;;
6425       esac
6426     fi
6427   fi
6428   rm -rf conftest*
6429   ;;
6430
6431 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6432 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6433   # Find out which ABI we are using.
6434   echo 'int i;' > conftest.$ac_ext
6435   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436   (eval $ac_compile) 2>&5
6437   ac_status=$?
6438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); }; then
6440     case `/usr/bin/file conftest.o` in
6441       *32-bit*)
6442         case $host in
6443           x86_64-*kfreebsd*-gnu)
6444             LD="${LD-ld} -m elf_i386_fbsd"
6445             ;;
6446           x86_64-*linux*)
6447             LD="${LD-ld} -m elf_i386"
6448             ;;
6449           ppc64-*linux*|powerpc64-*linux*)
6450             LD="${LD-ld} -m elf32ppclinux"
6451             ;;
6452           s390x-*linux*)
6453             LD="${LD-ld} -m elf_s390"
6454             ;;
6455           sparc64-*linux*)
6456             LD="${LD-ld} -m elf32_sparc"
6457             ;;
6458         esac
6459         ;;
6460       *64-bit*)
6461         case $host in
6462           x86_64-*kfreebsd*-gnu)
6463             LD="${LD-ld} -m elf_x86_64_fbsd"
6464             ;;
6465           x86_64-*linux*)
6466             LD="${LD-ld} -m elf_x86_64"
6467             ;;
6468           ppc*-*linux*|powerpc*-*linux*)
6469             LD="${LD-ld} -m elf64ppc"
6470             ;;
6471           s390*-*linux*|s390*-*tpf*)
6472             LD="${LD-ld} -m elf64_s390"
6473             ;;
6474           sparc*-*linux*)
6475             LD="${LD-ld} -m elf64_sparc"
6476             ;;
6477         esac
6478         ;;
6479     esac
6480   fi
6481   rm -rf conftest*
6482   ;;
6483
6484 *-*-sco3.2v5*)
6485   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6486   SAVE_CFLAGS="$CFLAGS"
6487   CFLAGS="$CFLAGS -belf"
6488   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6489 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6490 if test "${lt_cv_cc_needs_belf+set}" = set; then
6491   $as_echo_n "(cached) " >&6
6492 else
6493   ac_ext=c
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6498
6499      cat >conftest.$ac_ext <<_ACEOF
6500 /* confdefs.h.  */
6501 _ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h.  */
6505
6506 int
6507 main ()
6508 {
6509
6510   ;
6511   return 0;
6512 }
6513 _ACEOF
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (ac_try="$ac_link"
6516 case "(($ac_try" in
6517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518   *) ac_try_echo=$ac_try;;
6519 esac
6520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6521 $as_echo "$ac_try_echo") >&5
6522   (eval "$ac_link") 2>conftest.er1
6523   ac_status=$?
6524   grep -v '^ *+' conftest.er1 >conftest.err
6525   rm -f conftest.er1
6526   cat conftest.err >&5
6527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528   (exit $ac_status); } && {
6529          test -z "$ac_c_werror_flag" ||
6530          test ! -s conftest.err
6531        } && test -s conftest$ac_exeext && {
6532          test "$cross_compiling" = yes ||
6533          $as_test_x conftest$ac_exeext
6534        }; then
6535   lt_cv_cc_needs_belf=yes
6536 else
6537   $as_echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540         lt_cv_cc_needs_belf=no
6541 fi
6542
6543 rm -rf conftest.dSYM
6544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6545       conftest$ac_exeext conftest.$ac_ext
6546      ac_ext=c
6547 ac_cpp='$CPP $CPPFLAGS'
6548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6551
6552 fi
6553 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6554 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6555   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6556     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6557     CFLAGS="$SAVE_CFLAGS"
6558   fi
6559   ;;
6560 sparc*-*solaris*)
6561   # Find out which ABI we are using.
6562   echo 'int i;' > conftest.$ac_ext
6563   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564   (eval $ac_compile) 2>&5
6565   ac_status=$?
6566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; then
6568     case `/usr/bin/file conftest.o` in
6569     *64-bit*)
6570       case $lt_cv_prog_gnu_ld in
6571       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6572       *)
6573         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6574           LD="${LD-ld} -64"
6575         fi
6576         ;;
6577       esac
6578       ;;
6579     esac
6580   fi
6581   rm -rf conftest*
6582   ;;
6583 esac
6584
6585 need_locks="$enable_libtool_lock"
6586
6587
6588   case $host_os in
6589     rhapsody* | darwin*)
6590     if test -n "$ac_tool_prefix"; then
6591   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6596   $as_echo_n "(cached) " >&6
6597 else
6598   if test -n "$DSYMUTIL"; then
6599   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6603 do
6604   IFS=$as_save_IFS
6605   test -z "$as_dir" && as_dir=.
6606   for ac_exec_ext in '' $ac_executable_extensions; do
6607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6609     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6610     break 2
6611   fi
6612 done
6613 done
6614 IFS=$as_save_IFS
6615
6616 fi
6617 fi
6618 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6619 if test -n "$DSYMUTIL"; then
6620   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6621 $as_echo "$DSYMUTIL" >&6; }
6622 else
6623   { $as_echo "$as_me:$LINENO: result: no" >&5
6624 $as_echo "no" >&6; }
6625 fi
6626
6627
6628 fi
6629 if test -z "$ac_cv_prog_DSYMUTIL"; then
6630   ac_ct_DSYMUTIL=$DSYMUTIL
6631   # Extract the first word of "dsymutil", so it can be a program name with args.
6632 set dummy dsymutil; ac_word=$2
6633 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6636   $as_echo_n "(cached) " >&6
6637 else
6638   if test -n "$ac_ct_DSYMUTIL"; then
6639   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646   for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6649     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653 done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6659 if test -n "$ac_ct_DSYMUTIL"; then
6660   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6661 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6662 else
6663   { $as_echo "$as_me:$LINENO: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667   if test "x$ac_ct_DSYMUTIL" = x; then
6668     DSYMUTIL=":"
6669   else
6670     case $cross_compiling:$ac_tool_warned in
6671 yes:)
6672 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676     DSYMUTIL=$ac_ct_DSYMUTIL
6677   fi
6678 else
6679   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6680 fi
6681
6682     if test -n "$ac_tool_prefix"; then
6683   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6688   $as_echo_n "(cached) " >&6
6689 else
6690   if test -n "$NMEDIT"; then
6691   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6695 do
6696   IFS=$as_save_IFS
6697   test -z "$as_dir" && as_dir=.
6698   for ac_exec_ext in '' $ac_executable_extensions; do
6699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6701     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702     break 2
6703   fi
6704 done
6705 done
6706 IFS=$as_save_IFS
6707
6708 fi
6709 fi
6710 NMEDIT=$ac_cv_prog_NMEDIT
6711 if test -n "$NMEDIT"; then
6712   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6713 $as_echo "$NMEDIT" >&6; }
6714 else
6715   { $as_echo "$as_me:$LINENO: result: no" >&5
6716 $as_echo "no" >&6; }
6717 fi
6718
6719
6720 fi
6721 if test -z "$ac_cv_prog_NMEDIT"; then
6722   ac_ct_NMEDIT=$NMEDIT
6723   # Extract the first word of "nmedit", so it can be a program name with args.
6724 set dummy nmedit; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6728   $as_echo_n "(cached) " >&6
6729 else
6730   if test -n "$ac_ct_NMEDIT"; then
6731   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6741     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6751 if test -n "$ac_ct_NMEDIT"; then
6752   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6753 $as_echo "$ac_ct_NMEDIT" >&6; }
6754 else
6755   { $as_echo "$as_me:$LINENO: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759   if test "x$ac_ct_NMEDIT" = x; then
6760     NMEDIT=":"
6761   else
6762     case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768     NMEDIT=$ac_ct_NMEDIT
6769   fi
6770 else
6771   NMEDIT="$ac_cv_prog_NMEDIT"
6772 fi
6773
6774     if test -n "$ac_tool_prefix"; then
6775   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_prog_LIPO+set}" = set; then
6780   $as_echo_n "(cached) " >&6
6781 else
6782   if test -n "$LIPO"; then
6783   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790   for ac_exec_ext in '' $ac_executable_extensions; do
6791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6793     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 LIPO=$ac_cv_prog_LIPO
6803 if test -n "$LIPO"; then
6804   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6805 $as_echo "$LIPO" >&6; }
6806 else
6807   { $as_echo "$as_me:$LINENO: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811
6812 fi
6813 if test -z "$ac_cv_prog_LIPO"; then
6814   ac_ct_LIPO=$LIPO
6815   # Extract the first word of "lipo", so it can be a program name with args.
6816 set dummy lipo; ac_word=$2
6817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6820   $as_echo_n "(cached) " >&6
6821 else
6822   if test -n "$ac_ct_LIPO"; then
6823   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830   for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_ac_ct_LIPO="lipo"
6833     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6843 if test -n "$ac_ct_LIPO"; then
6844   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6845 $as_echo "$ac_ct_LIPO" >&6; }
6846 else
6847   { $as_echo "$as_me:$LINENO: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850
6851   if test "x$ac_ct_LIPO" = x; then
6852     LIPO=":"
6853   else
6854     case $cross_compiling:$ac_tool_warned in
6855 yes:)
6856 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860     LIPO=$ac_ct_LIPO
6861   fi
6862 else
6863   LIPO="$ac_cv_prog_LIPO"
6864 fi
6865
6866     if test -n "$ac_tool_prefix"; then
6867   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}otool; ac_word=$2
6869 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if test "${ac_cv_prog_OTOOL+set}" = set; then
6872   $as_echo_n "(cached) " >&6
6873 else
6874   if test -n "$OTOOL"; then
6875   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882   for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6885     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 OTOOL=$ac_cv_prog_OTOOL
6895 if test -n "$OTOOL"; then
6896   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6897 $as_echo "$OTOOL" >&6; }
6898 else
6899   { $as_echo "$as_me:$LINENO: result: no" >&5
6900 $as_echo "no" >&6; }
6901 fi
6902
6903
6904 fi
6905 if test -z "$ac_cv_prog_OTOOL"; then
6906   ac_ct_OTOOL=$OTOOL
6907   # Extract the first word of "otool", so it can be a program name with args.
6908 set dummy otool; ac_word=$2
6909 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6912   $as_echo_n "(cached) " >&6
6913 else
6914   if test -n "$ac_ct_OTOOL"; then
6915   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_prog_ac_ct_OTOOL="otool"
6925     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6935 if test -n "$ac_ct_OTOOL"; then
6936   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6937 $as_echo "$ac_ct_OTOOL" >&6; }
6938 else
6939   { $as_echo "$as_me:$LINENO: result: no" >&5
6940 $as_echo "no" >&6; }
6941 fi
6942
6943   if test "x$ac_ct_OTOOL" = x; then
6944     OTOOL=":"
6945   else
6946     case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6951 esac
6952     OTOOL=$ac_ct_OTOOL
6953   fi
6954 else
6955   OTOOL="$ac_cv_prog_OTOOL"
6956 fi
6957
6958     if test -n "$ac_tool_prefix"; then
6959   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6960 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6964   $as_echo_n "(cached) " >&6
6965 else
6966   if test -n "$OTOOL64"; then
6967   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972   IFS=$as_save_IFS
6973   test -z "$as_dir" && as_dir=.
6974   for ac_exec_ext in '' $ac_executable_extensions; do
6975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6977     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978     break 2
6979   fi
6980 done
6981 done
6982 IFS=$as_save_IFS
6983
6984 fi
6985 fi
6986 OTOOL64=$ac_cv_prog_OTOOL64
6987 if test -n "$OTOOL64"; then
6988   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6989 $as_echo "$OTOOL64" >&6; }
6990 else
6991   { $as_echo "$as_me:$LINENO: result: no" >&5
6992 $as_echo "no" >&6; }
6993 fi
6994
6995
6996 fi
6997 if test -z "$ac_cv_prog_OTOOL64"; then
6998   ac_ct_OTOOL64=$OTOOL64
6999   # Extract the first word of "otool64", so it can be a program name with args.
7000 set dummy otool64; ac_word=$2
7001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7004   $as_echo_n "(cached) " >&6
7005 else
7006   if test -n "$ac_ct_OTOOL64"; then
7007   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7011 do
7012   IFS=$as_save_IFS
7013   test -z "$as_dir" && as_dir=.
7014   for ac_exec_ext in '' $ac_executable_extensions; do
7015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016     ac_cv_prog_ac_ct_OTOOL64="otool64"
7017     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018     break 2
7019   fi
7020 done
7021 done
7022 IFS=$as_save_IFS
7023
7024 fi
7025 fi
7026 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7027 if test -n "$ac_ct_OTOOL64"; then
7028   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7029 $as_echo "$ac_ct_OTOOL64" >&6; }
7030 else
7031   { $as_echo "$as_me:$LINENO: result: no" >&5
7032 $as_echo "no" >&6; }
7033 fi
7034
7035   if test "x$ac_ct_OTOOL64" = x; then
7036     OTOOL64=":"
7037   else
7038     case $cross_compiling:$ac_tool_warned in
7039 yes:)
7040 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7042 ac_tool_warned=yes ;;
7043 esac
7044     OTOOL64=$ac_ct_OTOOL64
7045   fi
7046 else
7047   OTOOL64="$ac_cv_prog_OTOOL64"
7048 fi
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7077 $as_echo_n "checking for -single_module linker flag... " >&6; }
7078 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7079   $as_echo_n "(cached) " >&6
7080 else
7081   lt_cv_apple_cc_single_mod=no
7082       if test -z "${LT_MULTI_MODULE}"; then
7083         # By default we will add the -single_module flag. You can override
7084         # by either setting the environment variable LT_MULTI_MODULE
7085         # non-empty at configure time, or by adding -multi_module to the
7086         # link flags.
7087         rm -rf libconftest.dylib*
7088         echo "int foo(void){return 1;}" > conftest.c
7089         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7090 -dynamiclib -Wl,-single_module conftest.c" >&5
7091         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7092           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7093         _lt_result=$?
7094         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7095           lt_cv_apple_cc_single_mod=yes
7096         else
7097           cat conftest.err >&5
7098         fi
7099         rm -rf libconftest.dylib*
7100         rm -f conftest.*
7101       fi
7102 fi
7103 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7104 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7105     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7106 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7107 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7108   $as_echo_n "(cached) " >&6
7109 else
7110   lt_cv_ld_exported_symbols_list=no
7111       save_LDFLAGS=$LDFLAGS
7112       echo "_main" > conftest.sym
7113       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7114       cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h.  */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h.  */
7120
7121 int
7122 main ()
7123 {
7124
7125   ;
7126   return 0;
7127 }
7128 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (ac_try="$ac_link"
7131 case "(($ac_try" in
7132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133   *) ac_try_echo=$ac_try;;
7134 esac
7135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7136 $as_echo "$ac_try_echo") >&5
7137   (eval "$ac_link") 2>conftest.er1
7138   ac_status=$?
7139   grep -v '^ *+' conftest.er1 >conftest.err
7140   rm -f conftest.er1
7141   cat conftest.err >&5
7142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } && {
7144          test -z "$ac_c_werror_flag" ||
7145          test ! -s conftest.err
7146        } && test -s conftest$ac_exeext && {
7147          test "$cross_compiling" = yes ||
7148          $as_test_x conftest$ac_exeext
7149        }; then
7150   lt_cv_ld_exported_symbols_list=yes
7151 else
7152   $as_echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7154
7155         lt_cv_ld_exported_symbols_list=no
7156 fi
7157
7158 rm -rf conftest.dSYM
7159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7160       conftest$ac_exeext conftest.$ac_ext
7161         LDFLAGS="$save_LDFLAGS"
7162
7163 fi
7164 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7165 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7166     case $host_os in
7167     rhapsody* | darwin1.[012])
7168       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7169     darwin1.*)
7170       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7171     darwin*) # darwin 5.x on
7172       # if running on 10.5 or later, the deployment target defaults
7173       # to the OS version, if on x86, and 10.4, the deployment
7174       # target defaults to 10.4. Don't you love it?
7175       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7176         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7177           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7178         10.[012]*)
7179           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7180         10.*)
7181           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7182       esac
7183     ;;
7184   esac
7185     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7186       _lt_dar_single_mod='$single_module'
7187     fi
7188     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7189       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7190     else
7191       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7192     fi
7193     if test "$DSYMUTIL" != ":"; then
7194       _lt_dsymutil='~$DSYMUTIL $lib || :'
7195     else
7196       _lt_dsymutil=
7197     fi
7198     ;;
7199   esac
7200
7201 ac_ext=c
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7208 # On Suns, sometimes $CPP names a directory.
7209 if test -n "$CPP" && test -d "$CPP"; then
7210   CPP=
7211 fi
7212 if test -z "$CPP"; then
7213   if test "${ac_cv_prog_CPP+set}" = set; then
7214   $as_echo_n "(cached) " >&6
7215 else
7216       # Double quotes because CPP needs to be expanded
7217     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7218     do
7219       ac_preproc_ok=false
7220 for ac_c_preproc_warn_flag in '' yes
7221 do
7222   # Use a header file that comes with gcc, so configuring glibc
7223   # with a fresh cross-compiler works.
7224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7225   # <limits.h> exists even on freestanding compilers.
7226   # On the NeXT, cc -E runs the code through the compiler's parser,
7227   # not just through cpp. "Syntax error" is here to catch this case.
7228   cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234 #ifdef __STDC__
7235 # include <limits.h>
7236 #else
7237 # include <assert.h>
7238 #endif
7239                      Syntax error
7240 _ACEOF
7241 if { (ac_try="$ac_cpp conftest.$ac_ext"
7242 case "(($ac_try" in
7243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244   *) ac_try_echo=$ac_try;;
7245 esac
7246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7247 $as_echo "$ac_try_echo") >&5
7248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7249   ac_status=$?
7250   grep -v '^ *+' conftest.er1 >conftest.err
7251   rm -f conftest.er1
7252   cat conftest.err >&5
7253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254   (exit $ac_status); } >/dev/null && {
7255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7256          test ! -s conftest.err
7257        }; then
7258   :
7259 else
7260   $as_echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263   # Broken: fails on valid input.
7264 continue
7265 fi
7266
7267 rm -f conftest.err conftest.$ac_ext
7268
7269   # OK, works on sane cases.  Now check whether nonexistent headers
7270   # can be detected and how.
7271   cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h.  */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h.  */
7277 #include <ac_nonexistent.h>
7278 _ACEOF
7279 if { (ac_try="$ac_cpp conftest.$ac_ext"
7280 case "(($ac_try" in
7281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282   *) ac_try_echo=$ac_try;;
7283 esac
7284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7285 $as_echo "$ac_try_echo") >&5
7286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7287   ac_status=$?
7288   grep -v '^ *+' conftest.er1 >conftest.err
7289   rm -f conftest.er1
7290   cat conftest.err >&5
7291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); } >/dev/null && {
7293          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7294          test ! -s conftest.err
7295        }; then
7296   # Broken: success on invalid input.
7297 continue
7298 else
7299   $as_echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302   # Passes both tests.
7303 ac_preproc_ok=:
7304 break
7305 fi
7306
7307 rm -f conftest.err conftest.$ac_ext
7308
7309 done
7310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7311 rm -f conftest.err conftest.$ac_ext
7312 if $ac_preproc_ok; then
7313   break
7314 fi
7315
7316     done
7317     ac_cv_prog_CPP=$CPP
7318
7319 fi
7320   CPP=$ac_cv_prog_CPP
7321 else
7322   ac_cv_prog_CPP=$CPP
7323 fi
7324 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7325 $as_echo "$CPP" >&6; }
7326 ac_preproc_ok=false
7327 for ac_c_preproc_warn_flag in '' yes
7328 do
7329   # Use a header file that comes with gcc, so configuring glibc
7330   # with a fresh cross-compiler works.
7331   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7332   # <limits.h> exists even on freestanding compilers.
7333   # On the NeXT, cc -E runs the code through the compiler's parser,
7334   # not just through cpp. "Syntax error" is here to catch this case.
7335   cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341 #ifdef __STDC__
7342 # include <limits.h>
7343 #else
7344 # include <assert.h>
7345 #endif
7346                      Syntax error
7347 _ACEOF
7348 if { (ac_try="$ac_cpp conftest.$ac_ext"
7349 case "(($ac_try" in
7350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351   *) ac_try_echo=$ac_try;;
7352 esac
7353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } >/dev/null && {
7362          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7363          test ! -s conftest.err
7364        }; then
7365   :
7366 else
7367   $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370   # Broken: fails on valid input.
7371 continue
7372 fi
7373
7374 rm -f conftest.err conftest.$ac_ext
7375
7376   # OK, works on sane cases.  Now check whether nonexistent headers
7377   # can be detected and how.
7378   cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h.  */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h.  */
7384 #include <ac_nonexistent.h>
7385 _ACEOF
7386 if { (ac_try="$ac_cpp conftest.$ac_ext"
7387 case "(($ac_try" in
7388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389   *) ac_try_echo=$ac_try;;
7390 esac
7391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7392 $as_echo "$ac_try_echo") >&5
7393   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7394   ac_status=$?
7395   grep -v '^ *+' conftest.er1 >conftest.err
7396   rm -f conftest.er1
7397   cat conftest.err >&5
7398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); } >/dev/null && {
7400          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7401          test ! -s conftest.err
7402        }; then
7403   # Broken: success on invalid input.
7404 continue
7405 else
7406   $as_echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7408
7409   # Passes both tests.
7410 ac_preproc_ok=:
7411 break
7412 fi
7413
7414 rm -f conftest.err conftest.$ac_ext
7415
7416 done
7417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7418 rm -f conftest.err conftest.$ac_ext
7419 if $ac_preproc_ok; then
7420   :
7421 else
7422   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7424 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7425 See \`config.log' for more details." >&5
7426 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7427 See \`config.log' for more details." >&2;}
7428    { (exit 1); exit 1; }; }; }
7429 fi
7430
7431 ac_ext=c
7432 ac_cpp='$CPP $CPPFLAGS'
7433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7436
7437
7438 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7439 $as_echo_n "checking for ANSI C header files... " >&6; }
7440 if test "${ac_cv_header_stdc+set}" = set; then
7441   $as_echo_n "(cached) " >&6
7442 else
7443   cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h.  */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h.  */
7449 #include <stdlib.h>
7450 #include <stdarg.h>
7451 #include <string.h>
7452 #include <float.h>
7453
7454 int
7455 main ()
7456 {
7457
7458   ;
7459   return 0;
7460 }
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7464 case "(($ac_try" in
7465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466   *) ac_try_echo=$ac_try;;
7467 esac
7468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7469 $as_echo "$ac_try_echo") >&5
7470   (eval "$ac_compile") 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } && {
7477          test -z "$ac_c_werror_flag" ||
7478          test ! -s conftest.err
7479        } && test -s conftest.$ac_objext; then
7480   ac_cv_header_stdc=yes
7481 else
7482   $as_echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485         ac_cv_header_stdc=no
7486 fi
7487
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489
7490 if test $ac_cv_header_stdc = yes; then
7491   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7492   cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h.  */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h.  */
7498 #include <string.h>
7499
7500 _ACEOF
7501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7502   $EGREP "memchr" >/dev/null 2>&1; then
7503   :
7504 else
7505   ac_cv_header_stdc=no
7506 fi
7507 rm -f conftest*
7508
7509 fi
7510
7511 if test $ac_cv_header_stdc = yes; then
7512   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7513   cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519 #include <stdlib.h>
7520
7521 _ACEOF
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523   $EGREP "free" >/dev/null 2>&1; then
7524   :
7525 else
7526   ac_cv_header_stdc=no
7527 fi
7528 rm -f conftest*
7529
7530 fi
7531
7532 if test $ac_cv_header_stdc = yes; then
7533   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7534   if test "$cross_compiling" = yes; then
7535   :
7536 else
7537   cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h.  */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h.  */
7543 #include <ctype.h>
7544 #include <stdlib.h>
7545 #if ((' ' & 0x0FF) == 0x020)
7546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7548 #else
7549 # define ISLOWER(c) \
7550                    (('a' <= (c) && (c) <= 'i') \
7551                      || ('j' <= (c) && (c) <= 'r') \
7552                      || ('s' <= (c) && (c) <= 'z'))
7553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7554 #endif
7555
7556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7557 int
7558 main ()
7559 {
7560   int i;
7561   for (i = 0; i < 256; i++)
7562     if (XOR (islower (i), ISLOWER (i))
7563         || toupper (i) != TOUPPER (i))
7564       return 2;
7565   return 0;
7566 }
7567 _ACEOF
7568 rm -f conftest$ac_exeext
7569 if { (ac_try="$ac_link"
7570 case "(($ac_try" in
7571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572   *) ac_try_echo=$ac_try;;
7573 esac
7574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7575 $as_echo "$ac_try_echo") >&5
7576   (eval "$ac_link") 2>&5
7577   ac_status=$?
7578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7580   { (case "(($ac_try" in
7581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7582   *) ac_try_echo=$ac_try;;
7583 esac
7584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7585 $as_echo "$ac_try_echo") >&5
7586   (eval "$ac_try") 2>&5
7587   ac_status=$?
7588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589   (exit $ac_status); }; }; then
7590   :
7591 else
7592   $as_echo "$as_me: program exited with status $ac_status" >&5
7593 $as_echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7595
7596 ( exit $ac_status )
7597 ac_cv_header_stdc=no
7598 fi
7599 rm -rf conftest.dSYM
7600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7601 fi
7602
7603
7604 fi
7605 fi
7606 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7607 $as_echo "$ac_cv_header_stdc" >&6; }
7608 if test $ac_cv_header_stdc = yes; then
7609
7610 cat >>confdefs.h <<\_ACEOF
7611 #define STDC_HEADERS 1
7612 _ACEOF
7613
7614 fi
7615
7616 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7627                   inttypes.h stdint.h unistd.h
7628 do
7629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7631 $as_echo_n "checking for $ac_header... " >&6; }
7632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633   $as_echo_n "(cached) " >&6
7634 else
7635   cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h.  */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h.  */
7641 $ac_includes_default
7642
7643 #include <$ac_header>
7644 _ACEOF
7645 rm -f conftest.$ac_objext
7646 if { (ac_try="$ac_compile"
7647 case "(($ac_try" in
7648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649   *) ac_try_echo=$ac_try;;
7650 esac
7651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7652 $as_echo "$ac_try_echo") >&5
7653   (eval "$ac_compile") 2>conftest.er1
7654   ac_status=$?
7655   grep -v '^ *+' conftest.er1 >conftest.err
7656   rm -f conftest.er1
7657   cat conftest.err >&5
7658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } && {
7660          test -z "$ac_c_werror_flag" ||
7661          test ! -s conftest.err
7662        } && test -s conftest.$ac_objext; then
7663   eval "$as_ac_Header=yes"
7664 else
7665   $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7667
7668         eval "$as_ac_Header=no"
7669 fi
7670
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 fi
7673 ac_res=`eval 'as_val=${'$as_ac_Header'}
7674                  $as_echo "$as_val"'`
7675                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7676 $as_echo "$ac_res" >&6; }
7677 as_val=`eval 'as_val=${'$as_ac_Header'}
7678                  $as_echo "$as_val"'`
7679    if test "x$as_val" = x""yes; then
7680   cat >>confdefs.h <<_ACEOF
7681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7682 _ACEOF
7683
7684 fi
7685
7686 done
7687
7688
7689
7690 for ac_header in dlfcn.h
7691 do
7692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 $as_echo_n "checking for $ac_header... " >&6; }
7695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7696   $as_echo_n "(cached) " >&6
7697 else
7698   cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704 $ac_includes_default
7705
7706 #include <$ac_header>
7707 _ACEOF
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7710 case "(($ac_try" in
7711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712   *) ac_try_echo=$ac_try;;
7713 esac
7714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7715 $as_echo "$ac_try_echo") >&5
7716   (eval "$ac_compile") 2>conftest.er1
7717   ac_status=$?
7718   grep -v '^ *+' conftest.er1 >conftest.err
7719   rm -f conftest.er1
7720   cat conftest.err >&5
7721   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); } && {
7723          test -z "$ac_c_werror_flag" ||
7724          test ! -s conftest.err
7725        } && test -s conftest.$ac_objext; then
7726   eval "$as_ac_Header=yes"
7727 else
7728   $as_echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731         eval "$as_ac_Header=no"
7732 fi
7733
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7735 fi
7736 ac_res=`eval 'as_val=${'$as_ac_Header'}
7737                  $as_echo "$as_val"'`
7738                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7739 $as_echo "$ac_res" >&6; }
7740 as_val=`eval 'as_val=${'$as_ac_Header'}
7741                  $as_echo "$as_val"'`
7742    if test "x$as_val" = x""yes; then
7743   cat >>confdefs.h <<_ACEOF
7744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7745 _ACEOF
7746
7747 fi
7748
7749 done
7750
7751
7752
7753 ac_ext=cpp
7754 ac_cpp='$CXXCPP $CPPFLAGS'
7755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7758 if test -z "$CXX"; then
7759   if test -n "$CCC"; then
7760     CXX=$CCC
7761   else
7762     if test -n "$ac_tool_prefix"; then
7763   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7764   do
7765     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_CXX+set}" = set; then
7770   $as_echo_n "(cached) " >&6
7771 else
7772   if test -n "$CXX"; then
7773   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7774 else
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780   for ac_exec_ext in '' $ac_executable_extensions; do
7781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7783     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787 done
7788 IFS=$as_save_IFS
7789
7790 fi
7791 fi
7792 CXX=$ac_cv_prog_CXX
7793 if test -n "$CXX"; then
7794   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7795 $as_echo "$CXX" >&6; }
7796 else
7797   { $as_echo "$as_me:$LINENO: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802     test -n "$CXX" && break
7803   done
7804 fi
7805 if test -z "$CXX"; then
7806   ac_ct_CXX=$CXX
7807   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7808 do
7809   # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7814   $as_echo_n "(cached) " >&6
7815 else
7816   if test -n "$ac_ct_CXX"; then
7817   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7818 else
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 for as_dir in $PATH
7821 do
7822   IFS=$as_save_IFS
7823   test -z "$as_dir" && as_dir=.
7824   for ac_exec_ext in '' $ac_executable_extensions; do
7825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826     ac_cv_prog_ac_ct_CXX="$ac_prog"
7827     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828     break 2
7829   fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7837 if test -n "$ac_ct_CXX"; then
7838   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7839 $as_echo "$ac_ct_CXX" >&6; }
7840 else
7841   { $as_echo "$as_me:$LINENO: result: no" >&5
7842 $as_echo "no" >&6; }
7843 fi
7844
7845
7846   test -n "$ac_ct_CXX" && break
7847 done
7848
7849   if test "x$ac_ct_CXX" = x; then
7850     CXX="g++"
7851   else
7852     case $cross_compiling:$ac_tool_warned in
7853 yes:)
7854 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7856 ac_tool_warned=yes ;;
7857 esac
7858     CXX=$ac_ct_CXX
7859   fi
7860 fi
7861
7862   fi
7863 fi
7864 # Provide some information about the compiler.
7865 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7866 set X $ac_compile
7867 ac_compiler=$2
7868 { (ac_try="$ac_compiler --version >&5"
7869 case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7874 $as_echo "$ac_try_echo") >&5
7875   (eval "$ac_compiler --version >&5") 2>&5
7876   ac_status=$?
7877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   (exit $ac_status); }
7879 { (ac_try="$ac_compiler -v >&5"
7880 case "(($ac_try" in
7881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882   *) ac_try_echo=$ac_try;;
7883 esac
7884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7885 $as_echo "$ac_try_echo") >&5
7886   (eval "$ac_compiler -v >&5") 2>&5
7887   ac_status=$?
7888   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }
7890 { (ac_try="$ac_compiler -V >&5"
7891 case "(($ac_try" in
7892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893   *) ac_try_echo=$ac_try;;
7894 esac
7895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7896 $as_echo "$ac_try_echo") >&5
7897   (eval "$ac_compiler -V >&5") 2>&5
7898   ac_status=$?
7899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900   (exit $ac_status); }
7901
7902 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7903 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7904 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7905   $as_echo_n "(cached) " >&6
7906 else
7907   cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h.  */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h.  */
7913
7914 int
7915 main ()
7916 {
7917 #ifndef __GNUC__
7918        choke me
7919 #endif
7920
7921   ;
7922   return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (ac_try="$ac_compile"
7927 case "(($ac_try" in
7928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929   *) ac_try_echo=$ac_try;;
7930 esac
7931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932 $as_echo "$ac_try_echo") >&5
7933   (eval "$ac_compile") 2>conftest.er1
7934   ac_status=$?
7935   grep -v '^ *+' conftest.er1 >conftest.err
7936   rm -f conftest.er1
7937   cat conftest.err >&5
7938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); } && {
7940          test -z "$ac_cxx_werror_flag" ||
7941          test ! -s conftest.err
7942        } && test -s conftest.$ac_objext; then
7943   ac_compiler_gnu=yes
7944 else
7945   $as_echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948         ac_compiler_gnu=no
7949 fi
7950
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7953
7954 fi
7955 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7956 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7957 if test $ac_compiler_gnu = yes; then
7958   GXX=yes
7959 else
7960   GXX=
7961 fi
7962 ac_test_CXXFLAGS=${CXXFLAGS+set}
7963 ac_save_CXXFLAGS=$CXXFLAGS
7964 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7965 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7966 if test "${ac_cv_prog_cxx_g+set}" = set; then
7967   $as_echo_n "(cached) " >&6
7968 else
7969   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7970    ac_cxx_werror_flag=yes
7971    ac_cv_prog_cxx_g=no
7972    CXXFLAGS="-g"
7973    cat >conftest.$ac_ext <<_ACEOF
7974 /* confdefs.h.  */
7975 _ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h.  */
7979
7980 int
7981 main ()
7982 {
7983
7984   ;
7985   return 0;
7986 }
7987 _ACEOF
7988 rm -f conftest.$ac_objext
7989 if { (ac_try="$ac_compile"
7990 case "(($ac_try" in
7991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992   *) ac_try_echo=$ac_try;;
7993 esac
7994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7995 $as_echo "$ac_try_echo") >&5
7996   (eval "$ac_compile") 2>conftest.er1
7997   ac_status=$?
7998   grep -v '^ *+' conftest.er1 >conftest.err
7999   rm -f conftest.er1
8000   cat conftest.err >&5
8001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); } && {
8003          test -z "$ac_cxx_werror_flag" ||
8004          test ! -s conftest.err
8005        } && test -s conftest.$ac_objext; then
8006   ac_cv_prog_cxx_g=yes
8007 else
8008   $as_echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8010
8011         CXXFLAGS=""
8012       cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h.  */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h.  */
8018
8019 int
8020 main ()
8021 {
8022
8023   ;
8024   return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (ac_try="$ac_compile"
8029 case "(($ac_try" in
8030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031   *) ac_try_echo=$ac_try;;
8032 esac
8033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8034 $as_echo "$ac_try_echo") >&5
8035   (eval "$ac_compile") 2>conftest.er1
8036   ac_status=$?
8037   grep -v '^ *+' conftest.er1 >conftest.err
8038   rm -f conftest.er1
8039   cat conftest.err >&5
8040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } && {
8042          test -z "$ac_cxx_werror_flag" ||
8043          test ! -s conftest.err
8044        } && test -s conftest.$ac_objext; then
8045   :
8046 else
8047   $as_echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8051          CXXFLAGS="-g"
8052          cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058
8059 int
8060 main ()
8061 {
8062
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8069 case "(($ac_try" in
8070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071   *) ac_try_echo=$ac_try;;
8072 esac
8073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8074 $as_echo "$ac_try_echo") >&5
8075   (eval "$ac_compile") 2>conftest.er1
8076   ac_status=$?
8077   grep -v '^ *+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } && {
8082          test -z "$ac_cxx_werror_flag" ||
8083          test ! -s conftest.err
8084        } && test -s conftest.$ac_objext; then
8085   ac_cv_prog_cxx_g=yes
8086 else
8087   $as_echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090
8091 fi
8092
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 fi
8095
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097 fi
8098
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8101 fi
8102 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8103 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8104 if test "$ac_test_CXXFLAGS" = set; then
8105   CXXFLAGS=$ac_save_CXXFLAGS
8106 elif test $ac_cv_prog_cxx_g = yes; then
8107   if test "$GXX" = yes; then
8108     CXXFLAGS="-g -O2"
8109   else
8110     CXXFLAGS="-g"
8111   fi
8112 else
8113   if test "$GXX" = yes; then
8114     CXXFLAGS="-O2"
8115   else
8116     CXXFLAGS=
8117   fi
8118 fi
8119 ac_ext=c
8120 ac_cpp='$CPP $CPPFLAGS'
8121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124
8125 depcc="$CXX"  am_compiler_list=
8126
8127 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8128 $as_echo_n "checking dependency style of $depcc... " >&6; }
8129 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8130   $as_echo_n "(cached) " >&6
8131 else
8132   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8133   # We make a subdir and do the tests there.  Otherwise we can end up
8134   # making bogus files that we don't know about and never remove.  For
8135   # instance it was reported that on HP-UX the gcc test will end up
8136   # making a dummy file named `D' -- because `-MD' means `put the output
8137   # in D'.
8138   mkdir conftest.dir
8139   # Copy depcomp to subdir because otherwise we won't find it if we're
8140   # using a relative directory.
8141   cp "$am_depcomp" conftest.dir
8142   cd conftest.dir
8143   # We will build objects and dependencies in a subdirectory because
8144   # it helps to detect inapplicable dependency modes.  For instance
8145   # both Tru64's cc and ICC support -MD to output dependencies as a
8146   # side effect of compilation, but ICC will put the dependencies in
8147   # the current directory while Tru64 will put them in the object
8148   # directory.
8149   mkdir sub
8150
8151   am_cv_CXX_dependencies_compiler_type=none
8152   if test "$am_compiler_list" = ""; then
8153      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8154   fi
8155   am__universal=false
8156   case " $depcc " in #(
8157      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8158      esac
8159
8160   for depmode in $am_compiler_list; do
8161     # Setup a source with many dependencies, because some compilers
8162     # like to wrap large dependency lists on column 80 (with \), and
8163     # we should not choose a depcomp mode which is confused by this.
8164     #
8165     # We need to recreate these files for each test, as the compiler may
8166     # overwrite some of them when testing with obscure command lines.
8167     # This happens at least with the AIX C compiler.
8168     : > sub/conftest.c
8169     for i in 1 2 3 4 5 6; do
8170       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8171       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8172       # Solaris 8's {/usr,}/bin/sh.
8173       touch sub/conftst$i.h
8174     done
8175     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8176
8177     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8178     # mode.  It turns out that the SunPro C++ compiler does not properly
8179     # handle `-M -o', and we need to detect this.  Also, some Intel
8180     # versions had trouble with output in subdirs
8181     am__obj=sub/conftest.${OBJEXT-o}
8182     am__minus_obj="-o $am__obj"
8183     case $depmode in
8184     gcc)
8185       # This depmode causes a compiler race in universal mode.
8186       test "$am__universal" = false || continue
8187       ;;
8188     nosideeffect)
8189       # after this tag, mechanisms are not by side-effect, so they'll
8190       # only be used when explicitly requested
8191       if test "x$enable_dependency_tracking" = xyes; then
8192         continue
8193       else
8194         break
8195       fi
8196       ;;
8197     msvisualcpp | msvcmsys)
8198       # This compiler won't grok `-c -o', but also, the minuso test has
8199       # not run yet.  These depmodes are late enough in the game, and
8200       # so weak that their functioning should not be impacted.
8201       am__obj=conftest.${OBJEXT-o}
8202       am__minus_obj=
8203       ;;
8204     none) break ;;
8205     esac
8206     if depmode=$depmode \
8207        source=sub/conftest.c object=$am__obj \
8208        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8209        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8210          >/dev/null 2>conftest.err &&
8211        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8212        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8213        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8214        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8215       # icc doesn't choke on unknown options, it will just issue warnings
8216       # or remarks (even with -Werror).  So we grep stderr for any message
8217       # that says an option was ignored or not supported.
8218       # When given -MP, icc 7.0 and 7.1 complain thusly:
8219       #   icc: Command line warning: ignoring option '-M'; no argument required
8220       # The diagnosis changed in icc 8.0:
8221       #   icc: Command line remark: option '-MP' not supported
8222       if (grep 'ignoring option' conftest.err ||
8223           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8224         am_cv_CXX_dependencies_compiler_type=$depmode
8225         break
8226       fi
8227     fi
8228   done
8229
8230   cd ..
8231   rm -rf conftest.dir
8232 else
8233   am_cv_CXX_dependencies_compiler_type=none
8234 fi
8235
8236 fi
8237 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8238 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8239 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8240
8241  if
8242   test "x$enable_dependency_tracking" != xno \
8243   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8244   am__fastdepCXX_TRUE=
8245   am__fastdepCXX_FALSE='#'
8246 else
8247   am__fastdepCXX_TRUE='#'
8248   am__fastdepCXX_FALSE=
8249 fi
8250
8251
8252 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8253     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8254     (test "X$CXX" != "Xg++"))) ; then
8255   ac_ext=cpp
8256 ac_cpp='$CXXCPP $CPPFLAGS'
8257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8260 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8261 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8262 if test -z "$CXXCPP"; then
8263   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8264   $as_echo_n "(cached) " >&6
8265 else
8266       # Double quotes because CXXCPP needs to be expanded
8267     for CXXCPP in "$CXX -E" "/lib/cpp"
8268     do
8269       ac_preproc_ok=false
8270 for ac_cxx_preproc_warn_flag in '' yes
8271 do
8272   # Use a header file that comes with gcc, so configuring glibc
8273   # with a fresh cross-compiler works.
8274   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8275   # <limits.h> exists even on freestanding compilers.
8276   # On the NeXT, cc -E runs the code through the compiler's parser,
8277   # not just through cpp. "Syntax error" is here to catch this case.
8278   cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284 #ifdef __STDC__
8285 # include <limits.h>
8286 #else
8287 # include <assert.h>
8288 #endif
8289                      Syntax error
8290 _ACEOF
8291 if { (ac_try="$ac_cpp conftest.$ac_ext"
8292 case "(($ac_try" in
8293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294   *) ac_try_echo=$ac_try;;
8295 esac
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8299   ac_status=$?
8300   grep -v '^ *+' conftest.er1 >conftest.err
8301   rm -f conftest.er1
8302   cat conftest.err >&5
8303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); } >/dev/null && {
8305          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8306          test ! -s conftest.err
8307        }; then
8308   :
8309 else
8310   $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313   # Broken: fails on valid input.
8314 continue
8315 fi
8316
8317 rm -f conftest.err conftest.$ac_ext
8318
8319   # OK, works on sane cases.  Now check whether nonexistent headers
8320   # can be detected and how.
8321   cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327 #include <ac_nonexistent.h>
8328 _ACEOF
8329 if { (ac_try="$ac_cpp conftest.$ac_ext"
8330 case "(($ac_try" in
8331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332   *) ac_try_echo=$ac_try;;
8333 esac
8334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8337   ac_status=$?
8338   grep -v '^ *+' conftest.er1 >conftest.err
8339   rm -f conftest.er1
8340   cat conftest.err >&5
8341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); } >/dev/null && {
8343          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8344          test ! -s conftest.err
8345        }; then
8346   # Broken: success on invalid input.
8347 continue
8348 else
8349   $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8351
8352   # Passes both tests.
8353 ac_preproc_ok=:
8354 break
8355 fi
8356
8357 rm -f conftest.err conftest.$ac_ext
8358
8359 done
8360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8361 rm -f conftest.err conftest.$ac_ext
8362 if $ac_preproc_ok; then
8363   break
8364 fi
8365
8366     done
8367     ac_cv_prog_CXXCPP=$CXXCPP
8368
8369 fi
8370   CXXCPP=$ac_cv_prog_CXXCPP
8371 else
8372   ac_cv_prog_CXXCPP=$CXXCPP
8373 fi
8374 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8375 $as_echo "$CXXCPP" >&6; }
8376 ac_preproc_ok=false
8377 for ac_cxx_preproc_warn_flag in '' yes
8378 do
8379   # Use a header file that comes with gcc, so configuring glibc
8380   # with a fresh cross-compiler works.
8381   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8382   # <limits.h> exists even on freestanding compilers.
8383   # On the NeXT, cc -E runs the code through the compiler's parser,
8384   # not just through cpp. "Syntax error" is here to catch this case.
8385   cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h.  */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h.  */
8391 #ifdef __STDC__
8392 # include <limits.h>
8393 #else
8394 # include <assert.h>
8395 #endif
8396                      Syntax error
8397 _ACEOF
8398 if { (ac_try="$ac_cpp conftest.$ac_ext"
8399 case "(($ac_try" in
8400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401   *) ac_try_echo=$ac_try;;
8402 esac
8403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8404 $as_echo "$ac_try_echo") >&5
8405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8406   ac_status=$?
8407   grep -v '^ *+' conftest.er1 >conftest.err
8408   rm -f conftest.er1
8409   cat conftest.err >&5
8410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } >/dev/null && {
8412          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8413          test ! -s conftest.err
8414        }; then
8415   :
8416 else
8417   $as_echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420   # Broken: fails on valid input.
8421 continue
8422 fi
8423
8424 rm -f conftest.err conftest.$ac_ext
8425
8426   # OK, works on sane cases.  Now check whether nonexistent headers
8427   # can be detected and how.
8428   cat >conftest.$ac_ext <<_ACEOF
8429 /* confdefs.h.  */
8430 _ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h.  */
8434 #include <ac_nonexistent.h>
8435 _ACEOF
8436 if { (ac_try="$ac_cpp conftest.$ac_ext"
8437 case "(($ac_try" in
8438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439   *) ac_try_echo=$ac_try;;
8440 esac
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8444   ac_status=$?
8445   grep -v '^ *+' conftest.er1 >conftest.err
8446   rm -f conftest.er1
8447   cat conftest.err >&5
8448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } >/dev/null && {
8450          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8451          test ! -s conftest.err
8452        }; then
8453   # Broken: success on invalid input.
8454 continue
8455 else
8456   $as_echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459   # Passes both tests.
8460 ac_preproc_ok=:
8461 break
8462 fi
8463
8464 rm -f conftest.err conftest.$ac_ext
8465
8466 done
8467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8468 rm -f conftest.err conftest.$ac_ext
8469 if $ac_preproc_ok; then
8470   :
8471 else
8472   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8474 _lt_caught_CXX_error=yes; }
8475 fi
8476
8477 ac_ext=c
8478 ac_cpp='$CPP $CPPFLAGS'
8479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482
8483 else
8484   _lt_caught_CXX_error=yes
8485 fi
8486
8487
8488
8489
8490
8491 # Set options
8492
8493
8494
8495         enable_dlopen=no
8496
8497
8498   enable_win32_dll=no
8499
8500
8501             # Check whether --enable-shared was given.
8502 if test "${enable_shared+set}" = set; then
8503   enableval=$enable_shared; p=${PACKAGE-default}
8504     case $enableval in
8505     yes) enable_shared=yes ;;
8506     no) enable_shared=no ;;
8507     *)
8508       enable_shared=no
8509       # Look at the argument we got.  We use all the common list separators.
8510       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8511       for pkg in $enableval; do
8512         IFS="$lt_save_ifs"
8513         if test "X$pkg" = "X$p"; then
8514           enable_shared=yes
8515         fi
8516       done
8517       IFS="$lt_save_ifs"
8518       ;;
8519     esac
8520 else
8521   enable_shared=yes
8522 fi
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532   # Check whether --enable-static was given.
8533 if test "${enable_static+set}" = set; then
8534   enableval=$enable_static; p=${PACKAGE-default}
8535     case $enableval in
8536     yes) enable_static=yes ;;
8537     no) enable_static=no ;;
8538     *)
8539      enable_static=no
8540       # Look at the argument we got.  We use all the common list separators.
8541       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8542       for pkg in $enableval; do
8543         IFS="$lt_save_ifs"
8544         if test "X$pkg" = "X$p"; then
8545           enable_static=yes
8546         fi
8547       done
8548       IFS="$lt_save_ifs"
8549       ;;
8550     esac
8551 else
8552   enable_static=yes
8553 fi
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 # Check whether --with-pic was given.
8565 if test "${with_pic+set}" = set; then
8566   withval=$with_pic; pic_mode="$withval"
8567 else
8568   pic_mode=default
8569 fi
8570
8571
8572 test -z "$pic_mode" && pic_mode=default
8573
8574
8575
8576
8577
8578
8579
8580   # Check whether --enable-fast-install was given.
8581 if test "${enable_fast_install+set}" = set; then
8582   enableval=$enable_fast_install; p=${PACKAGE-default}
8583     case $enableval in
8584     yes) enable_fast_install=yes ;;
8585     no) enable_fast_install=no ;;
8586     *)
8587       enable_fast_install=no
8588       # Look at the argument we got.  We use all the common list separators.
8589       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8590       for pkg in $enableval; do
8591         IFS="$lt_save_ifs"
8592         if test "X$pkg" = "X$p"; then
8593           enable_fast_install=yes
8594         fi
8595       done
8596       IFS="$lt_save_ifs"
8597       ;;
8598     esac
8599 else
8600   enable_fast_install=yes
8601 fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613 # This can be used to rebuild libtool when needed
8614 LIBTOOL_DEPS="$ltmain"
8615
8616 # Always use our own libtool.
8617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643 test -z "$LN_S" && LN_S="ln -s"
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658 if test -n "${ZSH_VERSION+set}" ; then
8659    setopt NO_GLOB_SUBST
8660 fi
8661
8662 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8663 $as_echo_n "checking for objdir... " >&6; }
8664 if test "${lt_cv_objdir+set}" = set; then
8665   $as_echo_n "(cached) " >&6
8666 else
8667   rm -f .libs 2>/dev/null
8668 mkdir .libs 2>/dev/null
8669 if test -d .libs; then
8670   lt_cv_objdir=.libs
8671 else
8672   # MS-DOS does not allow filenames that begin with a dot.
8673   lt_cv_objdir=_libs
8674 fi
8675 rmdir .libs 2>/dev/null
8676 fi
8677 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8678 $as_echo "$lt_cv_objdir" >&6; }
8679 objdir=$lt_cv_objdir
8680
8681
8682
8683
8684
8685 cat >>confdefs.h <<_ACEOF
8686 #define LT_OBJDIR "$lt_cv_objdir/"
8687 _ACEOF
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 case $host_os in
8706 aix3*)
8707   # AIX sometimes has problems with the GCC collect2 program.  For some
8708   # reason, if we set the COLLECT_NAMES environment variable, the problems
8709   # vanish in a puff of smoke.
8710   if test "X${COLLECT_NAMES+set}" != Xset; then
8711     COLLECT_NAMES=
8712     export COLLECT_NAMES
8713   fi
8714   ;;
8715 esac
8716
8717 # Sed substitution that helps us do robust quoting.  It backslashifies
8718 # metacharacters that are still active within double-quoted strings.
8719 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8720
8721 # Same as above, but do not quote variable references.
8722 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8723
8724 # Sed substitution to delay expansion of an escaped shell variable in a
8725 # double_quote_subst'ed string.
8726 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8727
8728 # Sed substitution to delay expansion of an escaped single quote.
8729 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8730
8731 # Sed substitution to avoid accidental globbing in evaled expressions
8732 no_glob_subst='s/\*/\\\*/g'
8733
8734 # Global variables:
8735 ofile=libtool
8736 can_build_shared=yes
8737
8738 # All known linkers require a `.a' archive for static linking (except MSVC,
8739 # which needs '.lib').
8740 libext=a
8741
8742 with_gnu_ld="$lt_cv_prog_gnu_ld"
8743
8744 old_CC="$CC"
8745 old_CFLAGS="$CFLAGS"
8746
8747 # Set sane defaults for various variables
8748 test -z "$CC" && CC=cc
8749 test -z "$LTCC" && LTCC=$CC
8750 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8751 test -z "$LD" && LD=ld
8752 test -z "$ac_objext" && ac_objext=o
8753
8754 for cc_temp in $compiler""; do
8755   case $cc_temp in
8756     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8757     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8758     \-*) ;;
8759     *) break;;
8760   esac
8761 done
8762 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8763
8764
8765 # Only perform the check for file, if the check method requires it
8766 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8767 case $deplibs_check_method in
8768 file_magic*)
8769   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8770     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8771 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8773   $as_echo_n "(cached) " >&6
8774 else
8775   case $MAGIC_CMD in
8776 [\\/*] |  ?:[\\/]*)
8777   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8778   ;;
8779 *)
8780   lt_save_MAGIC_CMD="$MAGIC_CMD"
8781   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8782   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8783   for ac_dir in $ac_dummy; do
8784     IFS="$lt_save_ifs"
8785     test -z "$ac_dir" && ac_dir=.
8786     if test -f $ac_dir/${ac_tool_prefix}file; then
8787       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8788       if test -n "$file_magic_test_file"; then
8789         case $deplibs_check_method in
8790         "file_magic "*)
8791           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8792           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8793           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8794             $EGREP "$file_magic_regex" > /dev/null; then
8795             :
8796           else
8797             cat <<_LT_EOF 1>&2
8798
8799 *** Warning: the command libtool uses to detect shared libraries,
8800 *** $file_magic_cmd, produces output that libtool cannot recognize.
8801 *** The result is that libtool may fail to recognize shared libraries
8802 *** as such.  This will affect the creation of libtool libraries that
8803 *** depend on shared libraries, but programs linked with such libtool
8804 *** libraries will work regardless of this problem.  Nevertheless, you
8805 *** may want to report the problem to your system manager and/or to
8806 *** bug-libtool@gnu.org
8807
8808 _LT_EOF
8809           fi ;;
8810         esac
8811       fi
8812       break
8813     fi
8814   done
8815   IFS="$lt_save_ifs"
8816   MAGIC_CMD="$lt_save_MAGIC_CMD"
8817   ;;
8818 esac
8819 fi
8820
8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8822 if test -n "$MAGIC_CMD"; then
8823   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8824 $as_echo "$MAGIC_CMD" >&6; }
8825 else
8826   { $as_echo "$as_me:$LINENO: result: no" >&5
8827 $as_echo "no" >&6; }
8828 fi
8829
8830
8831
8832
8833
8834 if test -z "$lt_cv_path_MAGIC_CMD"; then
8835   if test -n "$ac_tool_prefix"; then
8836     { $as_echo "$as_me:$LINENO: checking for file" >&5
8837 $as_echo_n "checking for file... " >&6; }
8838 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8839   $as_echo_n "(cached) " >&6
8840 else
8841   case $MAGIC_CMD in
8842 [\\/*] |  ?:[\\/]*)
8843   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8844   ;;
8845 *)
8846   lt_save_MAGIC_CMD="$MAGIC_CMD"
8847   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8848   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8849   for ac_dir in $ac_dummy; do
8850     IFS="$lt_save_ifs"
8851     test -z "$ac_dir" && ac_dir=.
8852     if test -f $ac_dir/file; then
8853       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8854       if test -n "$file_magic_test_file"; then
8855         case $deplibs_check_method in
8856         "file_magic "*)
8857           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8858           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8859           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8860             $EGREP "$file_magic_regex" > /dev/null; then
8861             :
8862           else
8863             cat <<_LT_EOF 1>&2
8864
8865 *** Warning: the command libtool uses to detect shared libraries,
8866 *** $file_magic_cmd, produces output that libtool cannot recognize.
8867 *** The result is that libtool may fail to recognize shared libraries
8868 *** as such.  This will affect the creation of libtool libraries that
8869 *** depend on shared libraries, but programs linked with such libtool
8870 *** libraries will work regardless of this problem.  Nevertheless, you
8871 *** may want to report the problem to your system manager and/or to
8872 *** bug-libtool@gnu.org
8873
8874 _LT_EOF
8875           fi ;;
8876         esac
8877       fi
8878       break
8879     fi
8880   done
8881   IFS="$lt_save_ifs"
8882   MAGIC_CMD="$lt_save_MAGIC_CMD"
8883   ;;
8884 esac
8885 fi
8886
8887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888 if test -n "$MAGIC_CMD"; then
8889   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8890 $as_echo "$MAGIC_CMD" >&6; }
8891 else
8892   { $as_echo "$as_me:$LINENO: result: no" >&5
8893 $as_echo "no" >&6; }
8894 fi
8895
8896
8897   else
8898     MAGIC_CMD=:
8899   fi
8900 fi
8901
8902   fi
8903   ;;
8904 esac
8905
8906 # Use C for the default configuration in the libtool script
8907
8908 lt_save_CC="$CC"
8909 ac_ext=c
8910 ac_cpp='$CPP $CPPFLAGS'
8911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8914
8915
8916 # Source file extension for C test sources.
8917 ac_ext=c
8918
8919 # Object file extension for compiled C test sources.
8920 objext=o
8921 objext=$objext
8922
8923 # Code to be used in simple compile tests
8924 lt_simple_compile_test_code="int some_variable = 0;"
8925
8926 # Code to be used in simple link tests
8927 lt_simple_link_test_code='int main(){return(0);}'
8928
8929
8930
8931
8932
8933
8934
8935 # If no C compiler was specified, use CC.
8936 LTCC=${LTCC-"$CC"}
8937
8938 # If no C compiler flags were specified, use CFLAGS.
8939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8940
8941 # Allow CC to be a program name with arguments.
8942 compiler=$CC
8943
8944 # Save the default compiler, since it gets overwritten when the other
8945 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8946 compiler_DEFAULT=$CC
8947
8948 # save warnings/boilerplate of simple test code
8949 ac_outfile=conftest.$ac_objext
8950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8952 _lt_compiler_boilerplate=`cat conftest.err`
8953 $RM conftest*
8954
8955 ac_outfile=conftest.$ac_objext
8956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8958 _lt_linker_boilerplate=`cat conftest.err`
8959 $RM -r conftest*
8960
8961
8962 if test -n "$compiler"; then
8963
8964 lt_prog_compiler_no_builtin_flag=
8965
8966 if test "$GCC" = yes; then
8967   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8968
8969   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8972   $as_echo_n "(cached) " >&6
8973 else
8974   lt_cv_prog_compiler_rtti_exceptions=no
8975    ac_outfile=conftest.$ac_objext
8976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8977    lt_compiler_flag="-fno-rtti -fno-exceptions"
8978    # Insert the option either (1) after the last *FLAGS variable, or
8979    # (2) before a word containing "conftest.", or (3) at the end.
8980    # Note that $ac_compile itself does not contain backslashes and begins
8981    # with a dollar sign (not a hyphen), so the echo should work correctly.
8982    # The option is referenced via a variable to avoid confusing sed.
8983    lt_compile=`echo "$ac_compile" | $SED \
8984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986    -e 's:$: $lt_compiler_flag:'`
8987    (eval echo "\"\$as_me:8987: $lt_compile\"" >&5)
8988    (eval "$lt_compile" 2>conftest.err)
8989    ac_status=$?
8990    cat conftest.err >&5
8991    echo "$as_me:8991: \$? = $ac_status" >&5
8992    if (exit $ac_status) && test -s "$ac_outfile"; then
8993      # The compiler can only warn and ignore the option if not recognized
8994      # So say no if there are warnings other than the usual output.
8995      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8996      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8998        lt_cv_prog_compiler_rtti_exceptions=yes
8999      fi
9000    fi
9001    $RM conftest*
9002
9003 fi
9004 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9006
9007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9008     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9009 else
9010     :
9011 fi
9012
9013 fi
9014
9015
9016
9017
9018
9019
9020   lt_prog_compiler_wl=
9021 lt_prog_compiler_pic=
9022 lt_prog_compiler_static=
9023
9024 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9026
9027   if test "$GCC" = yes; then
9028     lt_prog_compiler_wl='-Wl,'
9029     lt_prog_compiler_static='-static'
9030
9031     case $host_os in
9032       aix*)
9033       # All AIX code is PIC.
9034       if test "$host_cpu" = ia64; then
9035         # AIX 5 now supports IA64 processor
9036         lt_prog_compiler_static='-Bstatic'
9037       fi
9038       ;;
9039
9040     amigaos*)
9041       case $host_cpu in
9042       powerpc)
9043             # see comment about AmigaOS4 .so support
9044             lt_prog_compiler_pic='-fPIC'
9045         ;;
9046       m68k)
9047             # FIXME: we need at least 68020 code to build shared libraries, but
9048             # adding the `-m68020' flag to GCC prevents building anything better,
9049             # like `-m68040'.
9050             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9051         ;;
9052       esac
9053       ;;
9054
9055     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9056       # PIC is the default for these OSes.
9057       ;;
9058
9059     mingw* | cygwin* | pw32* | os2* | cegcc*)
9060       # This hack is so that the source file can tell whether it is being
9061       # built for inclusion in a dll (and should export symbols for example).
9062       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9063       # (--disable-auto-import) libraries
9064       lt_prog_compiler_pic='-DDLL_EXPORT'
9065       ;;
9066
9067     darwin* | rhapsody*)
9068       # PIC is the default on this platform
9069       # Common symbols not allowed in MH_DYLIB files
9070       lt_prog_compiler_pic='-fno-common'
9071       ;;
9072
9073     hpux*)
9074       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9075       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9076       # sets the default TLS model and affects inlining.
9077       case $host_cpu in
9078       hppa*64*)
9079         # +Z the default
9080         ;;
9081       *)
9082         lt_prog_compiler_pic='-fPIC'
9083         ;;
9084       esac
9085       ;;
9086
9087     interix[3-9]*)
9088       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9089       # Instead, we relocate shared libraries at runtime.
9090       ;;
9091
9092     msdosdjgpp*)
9093       # Just because we use GCC doesn't mean we suddenly get shared libraries
9094       # on systems that don't support them.
9095       lt_prog_compiler_can_build_shared=no
9096       enable_shared=no
9097       ;;
9098
9099     *nto* | *qnx*)
9100       # QNX uses GNU C++, but need to define -shared option too, otherwise
9101       # it will coredump.
9102       lt_prog_compiler_pic='-fPIC -shared'
9103       ;;
9104
9105     sysv4*MP*)
9106       if test -d /usr/nec; then
9107         lt_prog_compiler_pic=-Kconform_pic
9108       fi
9109       ;;
9110
9111     *)
9112       lt_prog_compiler_pic='-fPIC'
9113       ;;
9114     esac
9115   else
9116     # PORTME Check for flag to pass linker flags through the system compiler.
9117     case $host_os in
9118     aix*)
9119       lt_prog_compiler_wl='-Wl,'
9120       if test "$host_cpu" = ia64; then
9121         # AIX 5 now supports IA64 processor
9122         lt_prog_compiler_static='-Bstatic'
9123       else
9124         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9125       fi
9126       ;;
9127
9128     mingw* | cygwin* | pw32* | os2* | cegcc*)
9129       # This hack is so that the source file can tell whether it is being
9130       # built for inclusion in a dll (and should export symbols for example).
9131       lt_prog_compiler_pic='-DDLL_EXPORT'
9132       ;;
9133
9134     hpux9* | hpux10* | hpux11*)
9135       lt_prog_compiler_wl='-Wl,'
9136       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9137       # not for PA HP-UX.
9138       case $host_cpu in
9139       hppa*64*|ia64*)
9140         # +Z the default
9141         ;;
9142       *)
9143         lt_prog_compiler_pic='+Z'
9144         ;;
9145       esac
9146       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9147       lt_prog_compiler_static='${wl}-a ${wl}archive'
9148       ;;
9149
9150     irix5* | irix6* | nonstopux*)
9151       lt_prog_compiler_wl='-Wl,'
9152       # PIC (with -KPIC) is the default.
9153       lt_prog_compiler_static='-non_shared'
9154       ;;
9155
9156     linux* | k*bsd*-gnu)
9157       case $cc_basename in
9158       # old Intel for x86_64 which still supported -KPIC.
9159       ecc*)
9160         lt_prog_compiler_wl='-Wl,'
9161         lt_prog_compiler_pic='-KPIC'
9162         lt_prog_compiler_static='-static'
9163         ;;
9164       # icc used to be incompatible with GCC.
9165       # ICC 10 doesn't accept -KPIC any more.
9166       icc* | ifort*)
9167         lt_prog_compiler_wl='-Wl,'
9168         lt_prog_compiler_pic='-fPIC'
9169         lt_prog_compiler_static='-static'
9170         ;;
9171       # Lahey Fortran 8.1.
9172       lf95*)
9173         lt_prog_compiler_wl='-Wl,'
9174         lt_prog_compiler_pic='--shared'
9175         lt_prog_compiler_static='--static'
9176         ;;
9177       pgcc* | pgf77* | pgf90* | pgf95*)
9178         # Portland Group compilers (*not* the Pentium gcc compiler,
9179         # which looks to be a dead project)
9180         lt_prog_compiler_wl='-Wl,'
9181         lt_prog_compiler_pic='-fpic'
9182         lt_prog_compiler_static='-Bstatic'
9183         ;;
9184       ccc*)
9185         lt_prog_compiler_wl='-Wl,'
9186         # All Alpha code is PIC.
9187         lt_prog_compiler_static='-non_shared'
9188         ;;
9189       xl*)
9190         # IBM XL C 8.0/Fortran 10.1 on PPC
9191         lt_prog_compiler_wl='-Wl,'
9192         lt_prog_compiler_pic='-qpic'
9193         lt_prog_compiler_static='-qstaticlink'
9194         ;;
9195       *)
9196         case `$CC -V 2>&1 | sed 5q` in
9197         *Sun\ C*)
9198           # Sun C 5.9
9199           lt_prog_compiler_pic='-KPIC'
9200           lt_prog_compiler_static='-Bstatic'
9201           lt_prog_compiler_wl='-Wl,'
9202           ;;
9203         *Sun\ F*)
9204           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9205           lt_prog_compiler_pic='-KPIC'
9206           lt_prog_compiler_static='-Bstatic'
9207           lt_prog_compiler_wl=''
9208           ;;
9209         esac
9210         ;;
9211       esac
9212       ;;
9213
9214     newsos6)
9215       lt_prog_compiler_pic='-KPIC'
9216       lt_prog_compiler_static='-Bstatic'
9217       ;;
9218
9219     *nto* | *qnx*)
9220       # QNX uses GNU C++, but need to define -shared option too, otherwise
9221       # it will coredump.
9222       lt_prog_compiler_pic='-fPIC -shared'
9223       ;;
9224
9225     osf3* | osf4* | osf5*)
9226       lt_prog_compiler_wl='-Wl,'
9227       # All OSF/1 code is PIC.
9228       lt_prog_compiler_static='-non_shared'
9229       ;;
9230
9231     rdos*)
9232       lt_prog_compiler_static='-non_shared'
9233       ;;
9234
9235     solaris*)
9236       lt_prog_compiler_pic='-KPIC'
9237       lt_prog_compiler_static='-Bstatic'
9238       case $cc_basename in
9239       f77* | f90* | f95*)
9240         lt_prog_compiler_wl='-Qoption ld ';;
9241       *)
9242         lt_prog_compiler_wl='-Wl,';;
9243       esac
9244       ;;
9245
9246     sunos4*)
9247       lt_prog_compiler_wl='-Qoption ld '
9248       lt_prog_compiler_pic='-PIC'
9249       lt_prog_compiler_static='-Bstatic'
9250       ;;
9251
9252     sysv4 | sysv4.2uw2* | sysv4.3*)
9253       lt_prog_compiler_wl='-Wl,'
9254       lt_prog_compiler_pic='-KPIC'
9255       lt_prog_compiler_static='-Bstatic'
9256       ;;
9257
9258     sysv4*MP*)
9259       if test -d /usr/nec ;then
9260         lt_prog_compiler_pic='-Kconform_pic'
9261         lt_prog_compiler_static='-Bstatic'
9262       fi
9263       ;;
9264
9265     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9266       lt_prog_compiler_wl='-Wl,'
9267       lt_prog_compiler_pic='-KPIC'
9268       lt_prog_compiler_static='-Bstatic'
9269       ;;
9270
9271     unicos*)
9272       lt_prog_compiler_wl='-Wl,'
9273       lt_prog_compiler_can_build_shared=no
9274       ;;
9275
9276     uts4*)
9277       lt_prog_compiler_pic='-pic'
9278       lt_prog_compiler_static='-Bstatic'
9279       ;;
9280
9281     *)
9282       lt_prog_compiler_can_build_shared=no
9283       ;;
9284     esac
9285   fi
9286
9287 case $host_os in
9288   # For platforms which do not support PIC, -DPIC is meaningless:
9289   *djgpp*)
9290     lt_prog_compiler_pic=
9291     ;;
9292   *)
9293     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9294     ;;
9295 esac
9296 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9297 $as_echo "$lt_prog_compiler_pic" >&6; }
9298
9299
9300
9301
9302
9303
9304 #
9305 # Check to make sure the PIC flag actually works.
9306 #
9307 if test -n "$lt_prog_compiler_pic"; then
9308   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9309 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9310 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9311   $as_echo_n "(cached) " >&6
9312 else
9313   lt_cv_prog_compiler_pic_works=no
9314    ac_outfile=conftest.$ac_objext
9315    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9316    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9317    # Insert the option either (1) after the last *FLAGS variable, or
9318    # (2) before a word containing "conftest.", or (3) at the end.
9319    # Note that $ac_compile itself does not contain backslashes and begins
9320    # with a dollar sign (not a hyphen), so the echo should work correctly.
9321    # The option is referenced via a variable to avoid confusing sed.
9322    lt_compile=`echo "$ac_compile" | $SED \
9323    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9324    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9325    -e 's:$: $lt_compiler_flag:'`
9326    (eval echo "\"\$as_me:9326: $lt_compile\"" >&5)
9327    (eval "$lt_compile" 2>conftest.err)
9328    ac_status=$?
9329    cat conftest.err >&5
9330    echo "$as_me:9330: \$? = $ac_status" >&5
9331    if (exit $ac_status) && test -s "$ac_outfile"; then
9332      # The compiler can only warn and ignore the option if not recognized
9333      # So say no if there are warnings other than the usual output.
9334      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9335      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9336      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9337        lt_cv_prog_compiler_pic_works=yes
9338      fi
9339    fi
9340    $RM conftest*
9341
9342 fi
9343 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9344 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9345
9346 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9347     case $lt_prog_compiler_pic in
9348      "" | " "*) ;;
9349      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9350      esac
9351 else
9352     lt_prog_compiler_pic=
9353      lt_prog_compiler_can_build_shared=no
9354 fi
9355
9356 fi
9357
9358
9359
9360
9361
9362
9363 #
9364 # Check to make sure the static flag actually works.
9365 #
9366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9367 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9369 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9370   $as_echo_n "(cached) " >&6
9371 else
9372   lt_cv_prog_compiler_static_works=no
9373    save_LDFLAGS="$LDFLAGS"
9374    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9375    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9376    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9377      # The linker can only warn and ignore the option if not recognized
9378      # So say no if there are warnings
9379      if test -s conftest.err; then
9380        # Append any errors to the config.log.
9381        cat conftest.err 1>&5
9382        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9383        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384        if diff conftest.exp conftest.er2 >/dev/null; then
9385          lt_cv_prog_compiler_static_works=yes
9386        fi
9387      else
9388        lt_cv_prog_compiler_static_works=yes
9389      fi
9390    fi
9391    $RM -r conftest*
9392    LDFLAGS="$save_LDFLAGS"
9393
9394 fi
9395 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9397
9398 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9399     :
9400 else
9401     lt_prog_compiler_static=
9402 fi
9403
9404
9405
9406
9407
9408
9409
9410   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9413   $as_echo_n "(cached) " >&6
9414 else
9415   lt_cv_prog_compiler_c_o=no
9416    $RM -r conftest 2>/dev/null
9417    mkdir conftest
9418    cd conftest
9419    mkdir out
9420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9421
9422    lt_compiler_flag="-o out/conftest2.$ac_objext"
9423    # Insert the option either (1) after the last *FLAGS variable, or
9424    # (2) before a word containing "conftest.", or (3) at the end.
9425    # Note that $ac_compile itself does not contain backslashes and begins
9426    # with a dollar sign (not a hyphen), so the echo should work correctly.
9427    lt_compile=`echo "$ac_compile" | $SED \
9428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430    -e 's:$: $lt_compiler_flag:'`
9431    (eval echo "\"\$as_me:9431: $lt_compile\"" >&5)
9432    (eval "$lt_compile" 2>out/conftest.err)
9433    ac_status=$?
9434    cat out/conftest.err >&5
9435    echo "$as_me:9435: \$? = $ac_status" >&5
9436    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9437    then
9438      # The compiler can only warn and ignore the option if not recognized
9439      # So say no if there are warnings
9440      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9441      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9442      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9443        lt_cv_prog_compiler_c_o=yes
9444      fi
9445    fi
9446    chmod u+w . 2>&5
9447    $RM conftest*
9448    # SGI C++ compiler will create directory out/ii_files/ for
9449    # template instantiation
9450    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9451    $RM out/* && rmdir out
9452    cd ..
9453    $RM -r conftest
9454    $RM conftest*
9455
9456 fi
9457 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9459
9460
9461
9462
9463
9464
9465   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9467 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9468   $as_echo_n "(cached) " >&6
9469 else
9470   lt_cv_prog_compiler_c_o=no
9471    $RM -r conftest 2>/dev/null
9472    mkdir conftest
9473    cd conftest
9474    mkdir out
9475    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9476
9477    lt_compiler_flag="-o out/conftest2.$ac_objext"
9478    # Insert the option either (1) after the last *FLAGS variable, or
9479    # (2) before a word containing "conftest.", or (3) at the end.
9480    # Note that $ac_compile itself does not contain backslashes and begins
9481    # with a dollar sign (not a hyphen), so the echo should work correctly.
9482    lt_compile=`echo "$ac_compile" | $SED \
9483    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9485    -e 's:$: $lt_compiler_flag:'`
9486    (eval echo "\"\$as_me:9486: $lt_compile\"" >&5)
9487    (eval "$lt_compile" 2>out/conftest.err)
9488    ac_status=$?
9489    cat out/conftest.err >&5
9490    echo "$as_me:9490: \$? = $ac_status" >&5
9491    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9492    then
9493      # The compiler can only warn and ignore the option if not recognized
9494      # So say no if there are warnings
9495      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9496      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9497      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9498        lt_cv_prog_compiler_c_o=yes
9499      fi
9500    fi
9501    chmod u+w . 2>&5
9502    $RM conftest*
9503    # SGI C++ compiler will create directory out/ii_files/ for
9504    # template instantiation
9505    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9506    $RM out/* && rmdir out
9507    cd ..
9508    $RM -r conftest
9509    $RM conftest*
9510
9511 fi
9512 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9514
9515
9516
9517
9518 hard_links="nottested"
9519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9520   # do not overwrite the value of need_locks provided by the user
9521   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9522 $as_echo_n "checking if we can lock with hard links... " >&6; }
9523   hard_links=yes
9524   $RM conftest*
9525   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9526   touch conftest.a
9527   ln conftest.a conftest.b 2>&5 || hard_links=no
9528   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9529   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9530 $as_echo "$hard_links" >&6; }
9531   if test "$hard_links" = no; then
9532     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9534     need_locks=warn
9535   fi
9536 else
9537   need_locks=no
9538 fi
9539
9540
9541
9542
9543
9544
9545   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9547
9548   runpath_var=
9549   allow_undefined_flag=
9550   always_export_symbols=no
9551   archive_cmds=
9552   archive_expsym_cmds=
9553   compiler_needs_object=no
9554   enable_shared_with_static_runtimes=no
9555   export_dynamic_flag_spec=
9556   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9557   hardcode_automatic=no
9558   hardcode_direct=no
9559   hardcode_direct_absolute=no
9560   hardcode_libdir_flag_spec=
9561   hardcode_libdir_flag_spec_ld=
9562   hardcode_libdir_separator=
9563   hardcode_minus_L=no
9564   hardcode_shlibpath_var=unsupported
9565   inherit_rpath=no
9566   link_all_deplibs=unknown
9567   module_cmds=
9568   module_expsym_cmds=
9569   old_archive_from_new_cmds=
9570   old_archive_from_expsyms_cmds=
9571   thread_safe_flag_spec=
9572   whole_archive_flag_spec=
9573   # include_expsyms should be a list of space-separated symbols to be *always*
9574   # included in the symbol list
9575   include_expsyms=
9576   # exclude_expsyms can be an extended regexp of symbols to exclude
9577   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9578   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9579   # as well as any symbol that contains `d'.
9580   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9581   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9582   # platforms (ab)use it in PIC code, but their linkers get confused if
9583   # the symbol is explicitly referenced.  Since portable code cannot
9584   # rely on this symbol name, it's probably fine to never include it in
9585   # preloaded symbol tables.
9586   # Exclude shared library initialization/finalization symbols.
9587   extract_expsyms_cmds=
9588
9589   case $host_os in
9590   cygwin* | mingw* | pw32* | cegcc*)
9591     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9592     # When not using gcc, we currently assume that we are using
9593     # Microsoft Visual C++.
9594     if test "$GCC" != yes; then
9595       with_gnu_ld=no
9596     fi
9597     ;;
9598   interix*)
9599     # we just hope/assume this is gcc and not c89 (= MSVC++)
9600     with_gnu_ld=yes
9601     ;;
9602   openbsd*)
9603     with_gnu_ld=no
9604     ;;
9605   esac
9606
9607   ld_shlibs=yes
9608   if test "$with_gnu_ld" = yes; then
9609     # If archive_cmds runs LD, not CC, wlarc should be empty
9610     wlarc='${wl}'
9611
9612     # Set some defaults for GNU ld with shared library support. These
9613     # are reset later if shared libraries are not supported. Putting them
9614     # here allows them to be overridden if necessary.
9615     runpath_var=LD_RUN_PATH
9616     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617     export_dynamic_flag_spec='${wl}--export-dynamic'
9618     # ancient GNU ld didn't support --whole-archive et. al.
9619     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9620       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9621     else
9622       whole_archive_flag_spec=
9623     fi
9624     supports_anon_versioning=no
9625     case `$LD -v 2>&1` in
9626       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9627       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9628       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9629       *\ 2.11.*) ;; # other 2.11 versions
9630       *) supports_anon_versioning=yes ;;
9631     esac
9632
9633     # See if GNU ld supports shared libraries.
9634     case $host_os in
9635     aix[3-9]*)
9636       # On AIX/PPC, the GNU linker is very broken
9637       if test "$host_cpu" != ia64; then
9638         ld_shlibs=no
9639         cat <<_LT_EOF 1>&2
9640
9641 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9642 *** to be unable to reliably create shared libraries on AIX.
9643 *** Therefore, libtool is disabling shared libraries support.  If you
9644 *** really care for shared libraries, you may want to modify your PATH
9645 *** so that a non-GNU linker is found, and then restart.
9646
9647 _LT_EOF
9648       fi
9649       ;;
9650
9651     amigaos*)
9652       case $host_cpu in
9653       powerpc)
9654             # see comment about AmigaOS4 .so support
9655             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9656             archive_expsym_cmds=''
9657         ;;
9658       m68k)
9659             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)'
9660             hardcode_libdir_flag_spec='-L$libdir'
9661             hardcode_minus_L=yes
9662         ;;
9663       esac
9664       ;;
9665
9666     beos*)
9667       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9668         allow_undefined_flag=unsupported
9669         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9670         # support --undefined.  This deserves some investigation.  FIXME
9671         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9672       else
9673         ld_shlibs=no
9674       fi
9675       ;;
9676
9677     cygwin* | mingw* | pw32* | cegcc*)
9678       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9679       # as there is no search path for DLLs.
9680       hardcode_libdir_flag_spec='-L$libdir'
9681       allow_undefined_flag=unsupported
9682       always_export_symbols=no
9683       enable_shared_with_static_runtimes=yes
9684       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9685
9686       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9687         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9688         # If the export-symbols file already is a .def file (1st line
9689         # is EXPORTS), use it as is; otherwise, prepend...
9690         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9691           cp $export_symbols $output_objdir/$soname.def;
9692         else
9693           echo EXPORTS > $output_objdir/$soname.def;
9694           cat $export_symbols >> $output_objdir/$soname.def;
9695         fi~
9696         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9697       else
9698         ld_shlibs=no
9699       fi
9700       ;;
9701
9702     interix[3-9]*)
9703       hardcode_direct=no
9704       hardcode_shlibpath_var=no
9705       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9706       export_dynamic_flag_spec='${wl}-E'
9707       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9708       # Instead, shared libraries are loaded at an image base (0x10000000 by
9709       # default) and relocated if they conflict, which is a slow very memory
9710       # consuming and fragmenting process.  To avoid this, we pick a random,
9711       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9712       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9713       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9714       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'
9715       ;;
9716
9717     gnu* | linux* | tpf* | k*bsd*-gnu)
9718       tmp_diet=no
9719       if test "$host_os" = linux-dietlibc; then
9720         case $cc_basename in
9721           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9722         esac
9723       fi
9724       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9725          && test "$tmp_diet" = no
9726       then
9727         tmp_addflag=
9728         tmp_sharedflag='-shared'
9729         case $cc_basename,$host_cpu in
9730         pgcc*)                          # Portland Group C compiler
9731           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'
9732           tmp_addflag=' $pic_flag'
9733           ;;
9734         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9735           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'
9736           tmp_addflag=' $pic_flag -Mnomain' ;;
9737         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9738           tmp_addflag=' -i_dynamic' ;;
9739         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9740           tmp_addflag=' -i_dynamic -nofor_main' ;;
9741         ifc* | ifort*)                  # Intel Fortran compiler
9742           tmp_addflag=' -nofor_main' ;;
9743         lf95*)                          # Lahey Fortran 8.1
9744           whole_archive_flag_spec=
9745           tmp_sharedflag='--shared' ;;
9746         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9747           tmp_sharedflag='-qmkshrobj'
9748           tmp_addflag= ;;
9749         esac
9750         case `$CC -V 2>&1 | sed 5q` in
9751         *Sun\ C*)                       # Sun C 5.9
9752           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'
9753           compiler_needs_object=yes
9754           tmp_sharedflag='-G' ;;
9755         *Sun\ F*)                       # Sun Fortran 8.3
9756           tmp_sharedflag='-G' ;;
9757         esac
9758         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9759
9760         if test "x$supports_anon_versioning" = xyes; then
9761           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9762             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9763             echo "local: *; };" >> $output_objdir/$libname.ver~
9764             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9765         fi
9766
9767         case $cc_basename in
9768         xlf*)
9769           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9770           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9771           hardcode_libdir_flag_spec=
9772           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9773           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9774           if test "x$supports_anon_versioning" = xyes; then
9775             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9776               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9777               echo "local: *; };" >> $output_objdir/$libname.ver~
9778               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9779           fi
9780           ;;
9781         esac
9782       else
9783         ld_shlibs=no
9784       fi
9785       ;;
9786
9787     netbsd*)
9788       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9789         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9790         wlarc=
9791       else
9792         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9794       fi
9795       ;;
9796
9797     solaris*)
9798       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9799         ld_shlibs=no
9800         cat <<_LT_EOF 1>&2
9801
9802 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9803 *** create shared libraries on Solaris systems.  Therefore, libtool
9804 *** is disabling shared libraries support.  We urge you to upgrade GNU
9805 *** binutils to release 2.9.1 or newer.  Another option is to modify
9806 *** your PATH or compiler configuration so that the native linker is
9807 *** used, and then restart.
9808
9809 _LT_EOF
9810       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9811         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9813       else
9814         ld_shlibs=no
9815       fi
9816       ;;
9817
9818     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9819       case `$LD -v 2>&1` in
9820         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9821         ld_shlibs=no
9822         cat <<_LT_EOF 1>&2
9823
9824 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9825 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9826 *** is disabling shared libraries support.  We urge you to upgrade GNU
9827 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9828 *** your PATH or compiler configuration so that the native linker is
9829 *** used, and then restart.
9830
9831 _LT_EOF
9832         ;;
9833         *)
9834           # For security reasons, it is highly recommended that you always
9835           # use absolute paths for naming shared libraries, and exclude the
9836           # DT_RUNPATH tag from executables and libraries.  But doing so
9837           # requires that you compile everything twice, which is a pain.
9838           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9839             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9840             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9841             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9842           else
9843             ld_shlibs=no
9844           fi
9845         ;;
9846       esac
9847       ;;
9848
9849     sunos4*)
9850       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9851       wlarc=
9852       hardcode_direct=yes
9853       hardcode_shlibpath_var=no
9854       ;;
9855
9856     *)
9857       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9858         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9859         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9860       else
9861         ld_shlibs=no
9862       fi
9863       ;;
9864     esac
9865
9866     if test "$ld_shlibs" = no; then
9867       runpath_var=
9868       hardcode_libdir_flag_spec=
9869       export_dynamic_flag_spec=
9870       whole_archive_flag_spec=
9871     fi
9872   else
9873     # PORTME fill in a description of your system's linker (not GNU ld)
9874     case $host_os in
9875     aix3*)
9876       allow_undefined_flag=unsupported
9877       always_export_symbols=yes
9878       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'
9879       # Note: this linker hardcodes the directories in LIBPATH if there
9880       # are no directories specified by -L.
9881       hardcode_minus_L=yes
9882       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9883         # Neither direct hardcoding nor static linking is supported with a
9884         # broken collect2.
9885         hardcode_direct=unsupported
9886       fi
9887       ;;
9888
9889     aix[4-9]*)
9890       if test "$host_cpu" = ia64; then
9891         # On IA64, the linker does run time linking by default, so we don't
9892         # have to do anything special.
9893         aix_use_runtimelinking=no
9894         exp_sym_flag='-Bexport'
9895         no_entry_flag=""
9896       else
9897         # If we're using GNU nm, then we don't want the "-C" option.
9898         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9899         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9900           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'
9901         else
9902           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'
9903         fi
9904         aix_use_runtimelinking=no
9905
9906         # Test if we are trying to use run time linking or normal
9907         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9908         # need to do runtime linking.
9909         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9910           for ld_flag in $LDFLAGS; do
9911           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9912             aix_use_runtimelinking=yes
9913             break
9914           fi
9915           done
9916           ;;
9917         esac
9918
9919         exp_sym_flag='-bexport'
9920         no_entry_flag='-bnoentry'
9921       fi
9922
9923       # When large executables or shared objects are built, AIX ld can
9924       # have problems creating the table of contents.  If linking a library
9925       # or program results in "error TOC overflow" add -mminimal-toc to
9926       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9927       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9928
9929       archive_cmds=''
9930       hardcode_direct=yes
9931       hardcode_direct_absolute=yes
9932       hardcode_libdir_separator=':'
9933       link_all_deplibs=yes
9934       file_list_spec='${wl}-f,'
9935
9936       if test "$GCC" = yes; then
9937         case $host_os in aix4.[012]|aix4.[012].*)
9938         # We only want to do this on AIX 4.2 and lower, the check
9939         # below for broken collect2 doesn't work under 4.3+
9940           collect2name=`${CC} -print-prog-name=collect2`
9941           if test -f "$collect2name" &&
9942            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9943           then
9944           # We have reworked collect2
9945           :
9946           else
9947           # We have old collect2
9948           hardcode_direct=unsupported
9949           # It fails to find uninstalled libraries when the uninstalled
9950           # path is not listed in the libpath.  Setting hardcode_minus_L
9951           # to unsupported forces relinking
9952           hardcode_minus_L=yes
9953           hardcode_libdir_flag_spec='-L$libdir'
9954           hardcode_libdir_separator=
9955           fi
9956           ;;
9957         esac
9958         shared_flag='-shared'
9959         if test "$aix_use_runtimelinking" = yes; then
9960           shared_flag="$shared_flag "'${wl}-G'
9961         fi
9962       else
9963         # not using gcc
9964         if test "$host_cpu" = ia64; then
9965         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9966         # chokes on -Wl,-G. The following line is correct:
9967           shared_flag='-G'
9968         else
9969           if test "$aix_use_runtimelinking" = yes; then
9970             shared_flag='${wl}-G'
9971           else
9972             shared_flag='${wl}-bM:SRE'
9973           fi
9974         fi
9975       fi
9976
9977       export_dynamic_flag_spec='${wl}-bexpall'
9978       # It seems that -bexpall does not export symbols beginning with
9979       # underscore (_), so it is better to generate a list of symbols to export.
9980       always_export_symbols=yes
9981       if test "$aix_use_runtimelinking" = yes; then
9982         # Warning - without using the other runtime loading flags (-brtl),
9983         # -berok will link without error, but may produce a broken library.
9984         allow_undefined_flag='-berok'
9985         # Determine the default libpath from the value encoded in an
9986         # empty executable.
9987         cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993
9994 int
9995 main ()
9996 {
9997
9998   ;
9999   return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006   *) ac_try_echo=$ac_try;;
10007 esac
10008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010   (eval "$ac_link") 2>conftest.er1
10011   ac_status=$?
10012   grep -v '^ *+' conftest.er1 >conftest.err
10013   rm -f conftest.er1
10014   cat conftest.err >&5
10015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); } && {
10017          test -z "$ac_c_werror_flag" ||
10018          test ! -s conftest.err
10019        } && test -s conftest$ac_exeext && {
10020          test "$cross_compiling" = yes ||
10021          $as_test_x conftest$ac_exeext
10022        }; then
10023
10024 lt_aix_libpath_sed='
10025     /Import File Strings/,/^$/ {
10026         /^0/ {
10027             s/^0  *\(.*\)$/\1/
10028             p
10029         }
10030     }'
10031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10032 # Check for a 64-bit object if we didn't find anything.
10033 if test -z "$aix_libpath"; then
10034   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10035 fi
10036 else
10037   $as_echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040
10041 fi
10042
10043 rm -rf conftest.dSYM
10044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045       conftest$ac_exeext conftest.$ac_ext
10046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10047
10048         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10049         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"
10050       else
10051         if test "$host_cpu" = ia64; then
10052           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10053           allow_undefined_flag="-z nodefs"
10054           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"
10055         else
10056          # Determine the default libpath from the value encoded in an
10057          # empty executable.
10058          cat >conftest.$ac_ext <<_ACEOF
10059 /* confdefs.h.  */
10060 _ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h.  */
10064
10065 int
10066 main ()
10067 {
10068
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (ac_try="$ac_link"
10075 case "(($ac_try" in
10076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077   *) ac_try_echo=$ac_try;;
10078 esac
10079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10080 $as_echo "$ac_try_echo") >&5
10081   (eval "$ac_link") 2>conftest.er1
10082   ac_status=$?
10083   grep -v '^ *+' conftest.er1 >conftest.err
10084   rm -f conftest.er1
10085   cat conftest.err >&5
10086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } && {
10088          test -z "$ac_c_werror_flag" ||
10089          test ! -s conftest.err
10090        } && test -s conftest$ac_exeext && {
10091          test "$cross_compiling" = yes ||
10092          $as_test_x conftest$ac_exeext
10093        }; then
10094
10095 lt_aix_libpath_sed='
10096     /Import File Strings/,/^$/ {
10097         /^0/ {
10098             s/^0  *\(.*\)$/\1/
10099             p
10100         }
10101     }'
10102 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10103 # Check for a 64-bit object if we didn't find anything.
10104 if test -z "$aix_libpath"; then
10105   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10106 fi
10107 else
10108   $as_echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10110
10111
10112 fi
10113
10114 rm -rf conftest.dSYM
10115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10116       conftest$ac_exeext conftest.$ac_ext
10117 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10118
10119          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10120           # Warning - without using the other run time loading flags,
10121           # -berok will link without error, but may produce a broken library.
10122           no_undefined_flag=' ${wl}-bernotok'
10123           allow_undefined_flag=' ${wl}-berok'
10124           # Exported symbols can be pulled into shared objects from archives
10125           whole_archive_flag_spec='$convenience'
10126           archive_cmds_need_lc=yes
10127           # This is similar to how AIX traditionally builds its shared libraries.
10128           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'
10129         fi
10130       fi
10131       ;;
10132
10133     amigaos*)
10134       case $host_cpu in
10135       powerpc)
10136             # see comment about AmigaOS4 .so support
10137             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138             archive_expsym_cmds=''
10139         ;;
10140       m68k)
10141             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)'
10142             hardcode_libdir_flag_spec='-L$libdir'
10143             hardcode_minus_L=yes
10144         ;;
10145       esac
10146       ;;
10147
10148     bsdi[45]*)
10149       export_dynamic_flag_spec=-rdynamic
10150       ;;
10151
10152     cygwin* | mingw* | pw32* | cegcc*)
10153       # When not using gcc, we currently assume that we are using
10154       # Microsoft Visual C++.
10155       # hardcode_libdir_flag_spec is actually meaningless, as there is
10156       # no search path for DLLs.
10157       hardcode_libdir_flag_spec=' '
10158       allow_undefined_flag=unsupported
10159       # Tell ltmain to make .lib files, not .a files.
10160       libext=lib
10161       # Tell ltmain to make .dll files, not .so files.
10162       shrext_cmds=".dll"
10163       # FIXME: Setting linknames here is a bad hack.
10164       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10165       # The linker will automatically build a .lib file if we build a DLL.
10166       old_archive_from_new_cmds='true'
10167       # FIXME: Should let the user specify the lib program.
10168       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10169       fix_srcfile_path='`cygpath -w "$srcfile"`'
10170       enable_shared_with_static_runtimes=yes
10171       ;;
10172
10173     darwin* | rhapsody*)
10174
10175
10176   archive_cmds_need_lc=no
10177   hardcode_direct=no
10178   hardcode_automatic=yes
10179   hardcode_shlibpath_var=unsupported
10180   whole_archive_flag_spec=''
10181   link_all_deplibs=yes
10182   allow_undefined_flag="$_lt_dar_allow_undefined"
10183   case $cc_basename in
10184      ifort*) _lt_dar_can_shared=yes ;;
10185      *) _lt_dar_can_shared=$GCC ;;
10186   esac
10187   if test "$_lt_dar_can_shared" = "yes"; then
10188     output_verbose_link_cmd=echo
10189     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10190     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10191     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}"
10192     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}"
10193
10194   else
10195   ld_shlibs=no
10196   fi
10197
10198       ;;
10199
10200     dgux*)
10201       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202       hardcode_libdir_flag_spec='-L$libdir'
10203       hardcode_shlibpath_var=no
10204       ;;
10205
10206     freebsd1*)
10207       ld_shlibs=no
10208       ;;
10209
10210     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10211     # support.  Future versions do this automatically, but an explicit c++rt0.o
10212     # does not break anything, and helps significantly (at the cost of a little
10213     # extra space).
10214     freebsd2.2*)
10215       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10216       hardcode_libdir_flag_spec='-R$libdir'
10217       hardcode_direct=yes
10218       hardcode_shlibpath_var=no
10219       ;;
10220
10221     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10222     freebsd2*)
10223       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10224       hardcode_direct=yes
10225       hardcode_minus_L=yes
10226       hardcode_shlibpath_var=no
10227       ;;
10228
10229     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10230     freebsd* | dragonfly*)
10231       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10232       hardcode_libdir_flag_spec='-R$libdir'
10233       hardcode_direct=yes
10234       hardcode_shlibpath_var=no
10235       ;;
10236
10237     hpux9*)
10238       if test "$GCC" = yes; then
10239         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'
10240       else
10241         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'
10242       fi
10243       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10244       hardcode_libdir_separator=:
10245       hardcode_direct=yes
10246
10247       # hardcode_minus_L: Not really in the search PATH,
10248       # but as the default location of the library.
10249       hardcode_minus_L=yes
10250       export_dynamic_flag_spec='${wl}-E'
10251       ;;
10252
10253     hpux10*)
10254       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10255         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10256       else
10257         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10258       fi
10259       if test "$with_gnu_ld" = no; then
10260         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10261         hardcode_libdir_flag_spec_ld='+b $libdir'
10262         hardcode_libdir_separator=:
10263         hardcode_direct=yes
10264         hardcode_direct_absolute=yes
10265         export_dynamic_flag_spec='${wl}-E'
10266         # hardcode_minus_L: Not really in the search PATH,
10267         # but as the default location of the library.
10268         hardcode_minus_L=yes
10269       fi
10270       ;;
10271
10272     hpux11*)
10273       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10274         case $host_cpu in
10275         hppa*64*)
10276           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10277           ;;
10278         ia64*)
10279           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10280           ;;
10281         *)
10282           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10283           ;;
10284         esac
10285       else
10286         case $host_cpu in
10287         hppa*64*)
10288           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10289           ;;
10290         ia64*)
10291           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10292           ;;
10293         *)
10294           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10295           ;;
10296         esac
10297       fi
10298       if test "$with_gnu_ld" = no; then
10299         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10300         hardcode_libdir_separator=:
10301
10302         case $host_cpu in
10303         hppa*64*|ia64*)
10304           hardcode_direct=no
10305           hardcode_shlibpath_var=no
10306           ;;
10307         *)
10308           hardcode_direct=yes
10309           hardcode_direct_absolute=yes
10310           export_dynamic_flag_spec='${wl}-E'
10311
10312           # hardcode_minus_L: Not really in the search PATH,
10313           # but as the default location of the library.
10314           hardcode_minus_L=yes
10315           ;;
10316         esac
10317       fi
10318       ;;
10319
10320     irix5* | irix6* | nonstopux*)
10321       if test "$GCC" = yes; then
10322         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'
10323         # Try to use the -exported_symbol ld option, if it does not
10324         # work, assume that -exports_file does not work either and
10325         # implicitly export all symbols.
10326         save_LDFLAGS="$LDFLAGS"
10327         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10328         cat >conftest.$ac_ext <<_ACEOF
10329 int foo(void) {}
10330 _ACEOF
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335   *) ac_try_echo=$ac_try;;
10336 esac
10337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10338 $as_echo "$ac_try_echo") >&5
10339   (eval "$ac_link") 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } && {
10346          test -z "$ac_c_werror_flag" ||
10347          test ! -s conftest.err
10348        } && test -s conftest$ac_exeext && {
10349          test "$cross_compiling" = yes ||
10350          $as_test_x conftest$ac_exeext
10351        }; then
10352   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'
10353
10354 else
10355   $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358
10359 fi
10360
10361 rm -rf conftest.dSYM
10362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363       conftest$ac_exeext conftest.$ac_ext
10364         LDFLAGS="$save_LDFLAGS"
10365       else
10366         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'
10367         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'
10368       fi
10369       archive_cmds_need_lc='no'
10370       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371       hardcode_libdir_separator=:
10372       inherit_rpath=yes
10373       link_all_deplibs=yes
10374       ;;
10375
10376     netbsd*)
10377       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10378         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10379       else
10380         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10381       fi
10382       hardcode_libdir_flag_spec='-R$libdir'
10383       hardcode_direct=yes
10384       hardcode_shlibpath_var=no
10385       ;;
10386
10387     newsos6)
10388       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389       hardcode_direct=yes
10390       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10391       hardcode_libdir_separator=:
10392       hardcode_shlibpath_var=no
10393       ;;
10394
10395     *nto* | *qnx*)
10396       ;;
10397
10398     openbsd*)
10399       if test -f /usr/libexec/ld.so; then
10400         hardcode_direct=yes
10401         hardcode_shlibpath_var=no
10402         hardcode_direct_absolute=yes
10403         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10404           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10405           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10406           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10407           export_dynamic_flag_spec='${wl}-E'
10408         else
10409           case $host_os in
10410            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10411              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10412              hardcode_libdir_flag_spec='-R$libdir'
10413              ;;
10414            *)
10415              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10417              ;;
10418           esac
10419         fi
10420       else
10421         ld_shlibs=no
10422       fi
10423       ;;
10424
10425     os2*)
10426       hardcode_libdir_flag_spec='-L$libdir'
10427       hardcode_minus_L=yes
10428       allow_undefined_flag=unsupported
10429       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'
10430       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10431       ;;
10432
10433     osf3*)
10434       if test "$GCC" = yes; then
10435         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10436         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'
10437       else
10438         allow_undefined_flag=' -expect_unresolved \*'
10439         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'
10440       fi
10441       archive_cmds_need_lc='no'
10442       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10443       hardcode_libdir_separator=:
10444       ;;
10445
10446     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10447       if test "$GCC" = yes; then
10448         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10449         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'
10450         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10451       else
10452         allow_undefined_flag=' -expect_unresolved \*'
10453         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'
10454         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~
10455         $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'
10456
10457         # Both c and cxx compiler support -rpath directly
10458         hardcode_libdir_flag_spec='-rpath $libdir'
10459       fi
10460       archive_cmds_need_lc='no'
10461       hardcode_libdir_separator=:
10462       ;;
10463
10464     solaris*)
10465       no_undefined_flag=' -z defs'
10466       if test "$GCC" = yes; then
10467         wlarc='${wl}'
10468         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10469         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10470           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10471       else
10472         case `$CC -V 2>&1` in
10473         *"Compilers 5.0"*)
10474           wlarc=''
10475           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10477           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10478           ;;
10479         *)
10480           wlarc='${wl}'
10481           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10482           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10483           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10484           ;;
10485         esac
10486       fi
10487       hardcode_libdir_flag_spec='-R$libdir'
10488       hardcode_shlibpath_var=no
10489       case $host_os in
10490       solaris2.[0-5] | solaris2.[0-5].*) ;;
10491       *)
10492         # The compiler driver will combine and reorder linker options,
10493         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10494         # but is careful enough not to reorder.
10495         # Supported since Solaris 2.6 (maybe 2.5.1?)
10496         if test "$GCC" = yes; then
10497           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10498         else
10499           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10500         fi
10501         ;;
10502       esac
10503       link_all_deplibs=yes
10504       ;;
10505
10506     sunos4*)
10507       if test "x$host_vendor" = xsequent; then
10508         # Use $CC to link under sequent, because it throws in some extra .o
10509         # files that make .init and .fini sections work.
10510         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10511       else
10512         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10513       fi
10514       hardcode_libdir_flag_spec='-L$libdir'
10515       hardcode_direct=yes
10516       hardcode_minus_L=yes
10517       hardcode_shlibpath_var=no
10518       ;;
10519
10520     sysv4)
10521       case $host_vendor in
10522         sni)
10523           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10524           hardcode_direct=yes # is this really true???
10525         ;;
10526         siemens)
10527           ## LD is ld it makes a PLAMLIB
10528           ## CC just makes a GrossModule.
10529           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10530           reload_cmds='$CC -r -o $output$reload_objs'
10531           hardcode_direct=no
10532         ;;
10533         motorola)
10534           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10536         ;;
10537       esac
10538       runpath_var='LD_RUN_PATH'
10539       hardcode_shlibpath_var=no
10540       ;;
10541
10542     sysv4.3*)
10543       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10544       hardcode_shlibpath_var=no
10545       export_dynamic_flag_spec='-Bexport'
10546       ;;
10547
10548     sysv4*MP*)
10549       if test -d /usr/nec; then
10550         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551         hardcode_shlibpath_var=no
10552         runpath_var=LD_RUN_PATH
10553         hardcode_runpath_var=yes
10554         ld_shlibs=yes
10555       fi
10556       ;;
10557
10558     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10559       no_undefined_flag='${wl}-z,text'
10560       archive_cmds_need_lc=no
10561       hardcode_shlibpath_var=no
10562       runpath_var='LD_RUN_PATH'
10563
10564       if test "$GCC" = yes; then
10565         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10566         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10567       else
10568         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10570       fi
10571       ;;
10572
10573     sysv5* | sco3.2v5* | sco5v6*)
10574       # Note: We can NOT use -z defs as we might desire, because we do not
10575       # link with -lc, and that would cause any symbols used from libc to
10576       # always be unresolved, which means just about no library would
10577       # ever link correctly.  If we're not using GNU ld we use -z text
10578       # though, which does catch some bad symbols but isn't as heavy-handed
10579       # as -z defs.
10580       no_undefined_flag='${wl}-z,text'
10581       allow_undefined_flag='${wl}-z,nodefs'
10582       archive_cmds_need_lc=no
10583       hardcode_shlibpath_var=no
10584       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10585       hardcode_libdir_separator=':'
10586       link_all_deplibs=yes
10587       export_dynamic_flag_spec='${wl}-Bexport'
10588       runpath_var='LD_RUN_PATH'
10589
10590       if test "$GCC" = yes; then
10591         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10592         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10593       else
10594         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10595         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10596       fi
10597       ;;
10598
10599     uts4*)
10600       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601       hardcode_libdir_flag_spec='-L$libdir'
10602       hardcode_shlibpath_var=no
10603       ;;
10604
10605     *)
10606       ld_shlibs=no
10607       ;;
10608     esac
10609
10610     if test x$host_vendor = xsni; then
10611       case $host in
10612       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10613         export_dynamic_flag_spec='${wl}-Blargedynsym'
10614         ;;
10615       esac
10616     fi
10617   fi
10618
10619 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10620 $as_echo "$ld_shlibs" >&6; }
10621 test "$ld_shlibs" = no && can_build_shared=no
10622
10623 with_gnu_ld=$with_gnu_ld
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639 #
10640 # Do we need to explicitly link libc?
10641 #
10642 case "x$archive_cmds_need_lc" in
10643 x|xyes)
10644   # Assume -lc should be added
10645   archive_cmds_need_lc=yes
10646
10647   if test "$enable_shared" = yes && test "$GCC" = yes; then
10648     case $archive_cmds in
10649     *'~'*)
10650       # FIXME: we may have to deal with multi-command sequences.
10651       ;;
10652     '$CC '*)
10653       # Test whether the compiler implicitly links with -lc since on some
10654       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10655       # to ld, don't add -lc before -lgcc.
10656       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10658       $RM conftest*
10659       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10660
10661       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662   (eval $ac_compile) 2>&5
10663   ac_status=$?
10664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665   (exit $ac_status); } 2>conftest.err; then
10666         soname=conftest
10667         lib=conftest
10668         libobjs=conftest.$ac_objext
10669         deplibs=
10670         wl=$lt_prog_compiler_wl
10671         pic_flag=$lt_prog_compiler_pic
10672         compiler_flags=-v
10673         linker_flags=-v
10674         verstring=
10675         output_objdir=.
10676         libname=conftest
10677         lt_save_allow_undefined_flag=$allow_undefined_flag
10678         allow_undefined_flag=
10679         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10680   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10681   ac_status=$?
10682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }
10684         then
10685           archive_cmds_need_lc=no
10686         else
10687           archive_cmds_need_lc=yes
10688         fi
10689         allow_undefined_flag=$lt_save_allow_undefined_flag
10690       else
10691         cat conftest.err 1>&5
10692       fi
10693       $RM conftest*
10694       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10695 $as_echo "$archive_cmds_need_lc" >&6; }
10696       ;;
10697     esac
10698   fi
10699   ;;
10700 esac
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10859 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10860
10861 if test "$GCC" = yes; then
10862   case $host_os in
10863     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10864     *) lt_awk_arg="/^libraries:/" ;;
10865   esac
10866   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10867   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10868     # if the path contains ";" then we assume it to be the separator
10869     # otherwise default to the standard path separator (i.e. ":") - it is
10870     # assumed that no part of a normal pathname contains ";" but that should
10871     # okay in the real world where ";" in dirpaths is itself problematic.
10872     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10873   else
10874     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10875   fi
10876   # Ok, now we have the path, separated by spaces, we can step through it
10877   # and add multilib dir if necessary.
10878   lt_tmp_lt_search_path_spec=
10879   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10880   for lt_sys_path in $lt_search_path_spec; do
10881     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10882       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10883     else
10884       test -d "$lt_sys_path" && \
10885         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10886     fi
10887   done
10888   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10889 BEGIN {RS=" "; FS="/|\n";} {
10890   lt_foo="";
10891   lt_count=0;
10892   for (lt_i = NF; lt_i > 0; lt_i--) {
10893     if ($lt_i != "" && $lt_i != ".") {
10894       if ($lt_i == "..") {
10895         lt_count++;
10896       } else {
10897         if (lt_count == 0) {
10898           lt_foo="/" $lt_i lt_foo;
10899         } else {
10900           lt_count--;
10901         }
10902       }
10903     }
10904   }
10905   if (lt_foo != "") { lt_freq[lt_foo]++; }
10906   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10907 }'`
10908   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10909 else
10910   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10911 fi
10912 library_names_spec=
10913 libname_spec='lib$name'
10914 soname_spec=
10915 shrext_cmds=".so"
10916 postinstall_cmds=
10917 postuninstall_cmds=
10918 finish_cmds=
10919 finish_eval=
10920 shlibpath_var=
10921 shlibpath_overrides_runpath=unknown
10922 version_type=none
10923 dynamic_linker="$host_os ld.so"
10924 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10925 need_lib_prefix=unknown
10926 hardcode_into_libs=no
10927
10928 # when you set need_version to no, make sure it does not cause -set_version
10929 # flags to be left without arguments
10930 need_version=unknown
10931
10932 case $host_os in
10933 aix3*)
10934   version_type=linux
10935   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10936   shlibpath_var=LIBPATH
10937
10938   # AIX 3 has no versioning support, so we append a major version to the name.
10939   soname_spec='${libname}${release}${shared_ext}$major'
10940   ;;
10941
10942 aix[4-9]*)
10943   version_type=linux
10944   need_lib_prefix=no
10945   need_version=no
10946   hardcode_into_libs=yes
10947   if test "$host_cpu" = ia64; then
10948     # AIX 5 supports IA64
10949     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10950     shlibpath_var=LD_LIBRARY_PATH
10951   else
10952     # With GCC up to 2.95.x, collect2 would create an import file
10953     # for dependence libraries.  The import file would start with
10954     # the line `#! .'.  This would cause the generated library to
10955     # depend on `.', always an invalid library.  This was fixed in
10956     # development snapshots of GCC prior to 3.0.
10957     case $host_os in
10958       aix4 | aix4.[01] | aix4.[01].*)
10959       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10960            echo ' yes '
10961            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10962         :
10963       else
10964         can_build_shared=no
10965       fi
10966       ;;
10967     esac
10968     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10969     # soname into executable. Probably we can add versioning support to
10970     # collect2, so additional links can be useful in future.
10971     if test "$aix_use_runtimelinking" = yes; then
10972       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10973       # instead of lib<name>.a to let people know that these are not
10974       # typical AIX shared libraries.
10975       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976     else
10977       # We preserve .a as extension for shared libraries through AIX4.2
10978       # and later when we are not doing run time linking.
10979       library_names_spec='${libname}${release}.a $libname.a'
10980       soname_spec='${libname}${release}${shared_ext}$major'
10981     fi
10982     shlibpath_var=LIBPATH
10983   fi
10984   ;;
10985
10986 amigaos*)
10987   case $host_cpu in
10988   powerpc)
10989     # Since July 2007 AmigaOS4 officially supports .so libraries.
10990     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992     ;;
10993   m68k)
10994     library_names_spec='$libname.ixlibrary $libname.a'
10995     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10996     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'
10997     ;;
10998   esac
10999   ;;
11000
11001 beos*)
11002   library_names_spec='${libname}${shared_ext}'
11003   dynamic_linker="$host_os ld.so"
11004   shlibpath_var=LIBRARY_PATH
11005   ;;
11006
11007 bsdi[45]*)
11008   version_type=linux
11009   need_version=no
11010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011   soname_spec='${libname}${release}${shared_ext}$major'
11012   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11013   shlibpath_var=LD_LIBRARY_PATH
11014   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11015   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11016   # the default ld.so.conf also contains /usr/contrib/lib and
11017   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11018   # libtool to hard-code these into programs
11019   ;;
11020
11021 cygwin* | mingw* | pw32* | cegcc*)
11022   version_type=windows
11023   shrext_cmds=".dll"
11024   need_version=no
11025   need_lib_prefix=no
11026
11027   case $GCC,$host_os in
11028   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11029     library_names_spec='$libname.dll.a'
11030     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11031     postinstall_cmds='base_file=`basename \${file}`~
11032       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11033       dldir=$destdir/`dirname \$dlpath`~
11034       test -d \$dldir || mkdir -p \$dldir~
11035       $install_prog $dir/$dlname \$dldir/$dlname~
11036       chmod a+x \$dldir/$dlname~
11037       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11038         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11039       fi'
11040     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11041       dlpath=$dir/\$dldll~
11042        $RM \$dlpath'
11043     shlibpath_overrides_runpath=yes
11044
11045     case $host_os in
11046     cygwin*)
11047       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11048       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11049       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11050       ;;
11051     mingw* | cegcc*)
11052       # MinGW DLLs use traditional 'lib' prefix
11053       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11054       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11055       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11056         # It is most probably a Windows format PATH printed by
11057         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11058         # path with ; separators, and with drive letters. We can handle the
11059         # drive letters (cygwin fileutils understands them), so leave them,
11060         # especially as we might pass files found there to a mingw objdump,
11061         # which wouldn't understand a cygwinified path. Ahh.
11062         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11063       else
11064         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11065       fi
11066       ;;
11067     pw32*)
11068       # pw32 DLLs use 'pw' prefix rather than 'lib'
11069       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11070       ;;
11071     esac
11072     ;;
11073
11074   *)
11075     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11076     ;;
11077   esac
11078   dynamic_linker='Win32 ld.exe'
11079   # FIXME: first we should search . and the directory the executable is in
11080   shlibpath_var=PATH
11081   ;;
11082
11083 darwin* | rhapsody*)
11084   dynamic_linker="$host_os dyld"
11085   version_type=darwin
11086   need_lib_prefix=no
11087   need_version=no
11088   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11089   soname_spec='${libname}${release}${major}$shared_ext'
11090   shlibpath_overrides_runpath=yes
11091   shlibpath_var=DYLD_LIBRARY_PATH
11092   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11093
11094   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11095   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11096   ;;
11097
11098 dgux*)
11099   version_type=linux
11100   need_lib_prefix=no
11101   need_version=no
11102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11103   soname_spec='${libname}${release}${shared_ext}$major'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   ;;
11106
11107 freebsd1*)
11108   dynamic_linker=no
11109   ;;
11110
11111 freebsd* | dragonfly*)
11112   # DragonFly does not have aout.  When/if they implement a new
11113   # versioning mechanism, adjust this.
11114   if test -x /usr/bin/objformat; then
11115     objformat=`/usr/bin/objformat`
11116   else
11117     case $host_os in
11118     freebsd[123]*) objformat=aout ;;
11119     *) objformat=elf ;;
11120     esac
11121   fi
11122   version_type=freebsd-$objformat
11123   case $version_type in
11124     freebsd-elf*)
11125       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11126       need_version=no
11127       need_lib_prefix=no
11128       ;;
11129     freebsd-*)
11130       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11131       need_version=yes
11132       ;;
11133   esac
11134   shlibpath_var=LD_LIBRARY_PATH
11135   case $host_os in
11136   freebsd2*)
11137     shlibpath_overrides_runpath=yes
11138     ;;
11139   freebsd3.[01]* | freebsdelf3.[01]*)
11140     shlibpath_overrides_runpath=yes
11141     hardcode_into_libs=yes
11142     ;;
11143   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11144   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11145     shlibpath_overrides_runpath=no
11146     hardcode_into_libs=yes
11147     ;;
11148   *) # from 4.6 on, and DragonFly
11149     shlibpath_overrides_runpath=yes
11150     hardcode_into_libs=yes
11151     ;;
11152   esac
11153   ;;
11154
11155 gnu*)
11156   version_type=linux
11157   need_lib_prefix=no
11158   need_version=no
11159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11160   soname_spec='${libname}${release}${shared_ext}$major'
11161   shlibpath_var=LD_LIBRARY_PATH
11162   hardcode_into_libs=yes
11163   ;;
11164
11165 hpux9* | hpux10* | hpux11*)
11166   # Give a soname corresponding to the major version so that dld.sl refuses to
11167   # link against other versions.
11168   version_type=sunos
11169   need_lib_prefix=no
11170   need_version=no
11171   case $host_cpu in
11172   ia64*)
11173     shrext_cmds='.so'
11174     hardcode_into_libs=yes
11175     dynamic_linker="$host_os dld.so"
11176     shlibpath_var=LD_LIBRARY_PATH
11177     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179     soname_spec='${libname}${release}${shared_ext}$major'
11180     if test "X$HPUX_IA64_MODE" = X32; then
11181       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11182     else
11183       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11184     fi
11185     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11186     ;;
11187   hppa*64*)
11188     shrext_cmds='.sl'
11189     hardcode_into_libs=yes
11190     dynamic_linker="$host_os dld.sl"
11191     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11192     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194     soname_spec='${libname}${release}${shared_ext}$major'
11195     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11197     ;;
11198   *)
11199     shrext_cmds='.sl'
11200     dynamic_linker="$host_os dld.sl"
11201     shlibpath_var=SHLIB_PATH
11202     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204     soname_spec='${libname}${release}${shared_ext}$major'
11205     ;;
11206   esac
11207   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11208   postinstall_cmds='chmod 555 $lib'
11209   ;;
11210
11211 interix[3-9]*)
11212   version_type=linux
11213   need_lib_prefix=no
11214   need_version=no
11215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11216   soname_spec='${libname}${release}${shared_ext}$major'
11217   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11218   shlibpath_var=LD_LIBRARY_PATH
11219   shlibpath_overrides_runpath=no
11220   hardcode_into_libs=yes
11221   ;;
11222
11223 irix5* | irix6* | nonstopux*)
11224   case $host_os in
11225     nonstopux*) version_type=nonstopux ;;
11226     *)
11227         if test "$lt_cv_prog_gnu_ld" = yes; then
11228                 version_type=linux
11229         else
11230                 version_type=irix
11231         fi ;;
11232   esac
11233   need_lib_prefix=no
11234   need_version=no
11235   soname_spec='${libname}${release}${shared_ext}$major'
11236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11237   case $host_os in
11238   irix5* | nonstopux*)
11239     libsuff= shlibsuff=
11240     ;;
11241   *)
11242     case $LD in # libtool.m4 will add one of these switches to LD
11243     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11244       libsuff= shlibsuff= libmagic=32-bit;;
11245     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11246       libsuff=32 shlibsuff=N32 libmagic=N32;;
11247     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11248       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11249     *) libsuff= shlibsuff= libmagic=never-match;;
11250     esac
11251     ;;
11252   esac
11253   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11254   shlibpath_overrides_runpath=no
11255   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11256   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11257   hardcode_into_libs=yes
11258   ;;
11259
11260 # No shared lib support for Linux oldld, aout, or coff.
11261 linux*oldld* | linux*aout* | linux*coff*)
11262   dynamic_linker=no
11263   ;;
11264
11265 # This must be Linux ELF.
11266 linux* | k*bsd*-gnu)
11267   version_type=linux
11268   need_lib_prefix=no
11269   need_version=no
11270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271   soname_spec='${libname}${release}${shared_ext}$major'
11272   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11273   shlibpath_var=LD_LIBRARY_PATH
11274   shlibpath_overrides_runpath=no
11275   # Some binutils ld are patched to set DT_RUNPATH
11276   save_LDFLAGS=$LDFLAGS
11277   save_libdir=$libdir
11278   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11279        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11280   cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286
11287 int
11288 main ()
11289 {
11290
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302 $as_echo "$ac_try_echo") >&5
11303   (eval "$ac_link") 2>conftest.er1
11304   ac_status=$?
11305   grep -v '^ *+' conftest.er1 >conftest.err
11306   rm -f conftest.er1
11307   cat conftest.err >&5
11308   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); } && {
11310          test -z "$ac_c_werror_flag" ||
11311          test ! -s conftest.err
11312        } && test -s conftest$ac_exeext && {
11313          test "$cross_compiling" = yes ||
11314          $as_test_x conftest$ac_exeext
11315        }; then
11316   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11317   shlibpath_overrides_runpath=yes
11318 fi
11319
11320 else
11321   $as_echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324
11325 fi
11326
11327 rm -rf conftest.dSYM
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329       conftest$ac_exeext conftest.$ac_ext
11330   LDFLAGS=$save_LDFLAGS
11331   libdir=$save_libdir
11332
11333   # This implies no fast_install, which is unacceptable.
11334   # Some rework will be needed to allow for fast_install
11335   # before this can be enabled.
11336   hardcode_into_libs=yes
11337
11338   # Add ABI-specific directories to the system library path.
11339   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11340
11341   # Append ld.so.conf contents to the search path
11342   if test -f /etc/ld.so.conf; then
11343     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' ' '`
11344     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11345   fi
11346
11347   # We used to test for /lib/ld.so.1 and disable shared libraries on
11348   # powerpc, because MkLinux only supported shared libraries with the
11349   # GNU dynamic linker.  Since this was broken with cross compilers,
11350   # most powerpc-linux boxes support dynamic linking these days and
11351   # people can always --disable-shared, the test was removed, and we
11352   # assume the GNU/Linux dynamic linker is in use.
11353   dynamic_linker='GNU/Linux ld.so'
11354   ;;
11355
11356 netbsd*)
11357   version_type=sunos
11358   need_lib_prefix=no
11359   need_version=no
11360   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363     dynamic_linker='NetBSD (a.out) ld.so'
11364   else
11365     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366     soname_spec='${libname}${release}${shared_ext}$major'
11367     dynamic_linker='NetBSD ld.elf_so'
11368   fi
11369   shlibpath_var=LD_LIBRARY_PATH
11370   shlibpath_overrides_runpath=yes
11371   hardcode_into_libs=yes
11372   ;;
11373
11374 newsos6)
11375   version_type=linux
11376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377   shlibpath_var=LD_LIBRARY_PATH
11378   shlibpath_overrides_runpath=yes
11379   ;;
11380
11381 *nto* | *qnx*)
11382   version_type=qnx
11383   need_lib_prefix=no
11384   need_version=no
11385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386   soname_spec='${libname}${release}${shared_ext}$major'
11387   shlibpath_var=LD_LIBRARY_PATH
11388   shlibpath_overrides_runpath=no
11389   hardcode_into_libs=yes
11390   dynamic_linker='ldqnx.so'
11391   ;;
11392
11393 openbsd*)
11394   version_type=sunos
11395   sys_lib_dlsearch_path_spec="/usr/lib"
11396   need_lib_prefix=no
11397   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11398   case $host_os in
11399     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11400     *)                          need_version=no  ;;
11401   esac
11402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11404   shlibpath_var=LD_LIBRARY_PATH
11405   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11406     case $host_os in
11407       openbsd2.[89] | openbsd2.[89].*)
11408         shlibpath_overrides_runpath=no
11409         ;;
11410       *)
11411         shlibpath_overrides_runpath=yes
11412         ;;
11413       esac
11414   else
11415     shlibpath_overrides_runpath=yes
11416   fi
11417   ;;
11418
11419 os2*)
11420   libname_spec='$name'
11421   shrext_cmds=".dll"
11422   need_lib_prefix=no
11423   library_names_spec='$libname${shared_ext} $libname.a'
11424   dynamic_linker='OS/2 ld.exe'
11425   shlibpath_var=LIBPATH
11426   ;;
11427
11428 osf3* | osf4* | osf5*)
11429   version_type=osf
11430   need_lib_prefix=no
11431   need_version=no
11432   soname_spec='${libname}${release}${shared_ext}$major'
11433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434   shlibpath_var=LD_LIBRARY_PATH
11435   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11436   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11437   ;;
11438
11439 rdos*)
11440   dynamic_linker=no
11441   ;;
11442
11443 solaris*)
11444   version_type=linux
11445   need_lib_prefix=no
11446   need_version=no
11447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448   soname_spec='${libname}${release}${shared_ext}$major'
11449   shlibpath_var=LD_LIBRARY_PATH
11450   shlibpath_overrides_runpath=yes
11451   hardcode_into_libs=yes
11452   # ldd complains unless libraries are executable
11453   postinstall_cmds='chmod +x $lib'
11454   ;;
11455
11456 sunos4*)
11457   version_type=sunos
11458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11460   shlibpath_var=LD_LIBRARY_PATH
11461   shlibpath_overrides_runpath=yes
11462   if test "$with_gnu_ld" = yes; then
11463     need_lib_prefix=no
11464   fi
11465   need_version=yes
11466   ;;
11467
11468 sysv4 | sysv4.3*)
11469   version_type=linux
11470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471   soname_spec='${libname}${release}${shared_ext}$major'
11472   shlibpath_var=LD_LIBRARY_PATH
11473   case $host_vendor in
11474     sni)
11475       shlibpath_overrides_runpath=no
11476       need_lib_prefix=no
11477       runpath_var=LD_RUN_PATH
11478       ;;
11479     siemens)
11480       need_lib_prefix=no
11481       ;;
11482     motorola)
11483       need_lib_prefix=no
11484       need_version=no
11485       shlibpath_overrides_runpath=no
11486       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11487       ;;
11488   esac
11489   ;;
11490
11491 sysv4*MP*)
11492   if test -d /usr/nec ;then
11493     version_type=linux
11494     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11495     soname_spec='$libname${shared_ext}.$major'
11496     shlibpath_var=LD_LIBRARY_PATH
11497   fi
11498   ;;
11499
11500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11501   version_type=freebsd-elf
11502   need_lib_prefix=no
11503   need_version=no
11504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11505   soname_spec='${libname}${release}${shared_ext}$major'
11506   shlibpath_var=LD_LIBRARY_PATH
11507   shlibpath_overrides_runpath=yes
11508   hardcode_into_libs=yes
11509   if test "$with_gnu_ld" = yes; then
11510     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11511   else
11512     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11513     case $host_os in
11514       sco3.2v5*)
11515         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11516         ;;
11517     esac
11518   fi
11519   sys_lib_dlsearch_path_spec='/usr/lib'
11520   ;;
11521
11522 tpf*)
11523   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11524   version_type=linux
11525   need_lib_prefix=no
11526   need_version=no
11527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528   shlibpath_var=LD_LIBRARY_PATH
11529   shlibpath_overrides_runpath=no
11530   hardcode_into_libs=yes
11531   ;;
11532
11533 uts4*)
11534   version_type=linux
11535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536   soname_spec='${libname}${release}${shared_ext}$major'
11537   shlibpath_var=LD_LIBRARY_PATH
11538   ;;
11539
11540 *)
11541   dynamic_linker=no
11542   ;;
11543 esac
11544 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11545 $as_echo "$dynamic_linker" >&6; }
11546 test "$dynamic_linker" = no && can_build_shared=no
11547
11548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11549 if test "$GCC" = yes; then
11550   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11551 fi
11552
11553 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11554   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11555 fi
11556 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11557   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11558 fi
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11648 hardcode_action=
11649 if test -n "$hardcode_libdir_flag_spec" ||
11650    test -n "$runpath_var" ||
11651    test "X$hardcode_automatic" = "Xyes" ; then
11652
11653   # We can hardcode non-existent directories.
11654   if test "$hardcode_direct" != no &&
11655      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11656      # have to relink, otherwise we might link with an installed library
11657      # when we should be linking with a yet-to-be-installed one
11658      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11659      test "$hardcode_minus_L" != no; then
11660     # Linking always hardcodes the temporary library directory.
11661     hardcode_action=relink
11662   else
11663     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11664     hardcode_action=immediate
11665   fi
11666 else
11667   # We cannot hardcode anything, or else we can only hardcode existing
11668   # directories.
11669   hardcode_action=unsupported
11670 fi
11671 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11672 $as_echo "$hardcode_action" >&6; }
11673
11674 if test "$hardcode_action" = relink ||
11675    test "$inherit_rpath" = yes; then
11676   # Fast installation is not supported
11677   enable_fast_install=no
11678 elif test "$shlibpath_overrides_runpath" = yes ||
11679      test "$enable_shared" = no; then
11680   # Fast installation is not necessary
11681   enable_fast_install=needless
11682 fi
11683
11684
11685
11686
11687
11688
11689   if test "x$enable_dlopen" != xyes; then
11690   enable_dlopen=unknown
11691   enable_dlopen_self=unknown
11692   enable_dlopen_self_static=unknown
11693 else
11694   lt_cv_dlopen=no
11695   lt_cv_dlopen_libs=
11696
11697   case $host_os in
11698   beos*)
11699     lt_cv_dlopen="load_add_on"
11700     lt_cv_dlopen_libs=
11701     lt_cv_dlopen_self=yes
11702     ;;
11703
11704   mingw* | pw32* | cegcc*)
11705     lt_cv_dlopen="LoadLibrary"
11706     lt_cv_dlopen_libs=
11707     ;;
11708
11709   cygwin*)
11710     lt_cv_dlopen="dlopen"
11711     lt_cv_dlopen_libs=
11712     ;;
11713
11714   darwin*)
11715   # if libdl is installed we need to link against it
11716     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11717 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11719   $as_echo_n "(cached) " >&6
11720 else
11721   ac_check_lib_save_LIBS=$LIBS
11722 LIBS="-ldl  $LIBS"
11723 cat >conftest.$ac_ext <<_ACEOF
11724 /* confdefs.h.  */
11725 _ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h.  */
11729
11730 /* Override any GCC internal prototype to avoid an error.
11731    Use char because int might match the return type of a GCC
11732    builtin and then its argument prototype would still apply.  */
11733 #ifdef __cplusplus
11734 extern "C"
11735 #endif
11736 char dlopen ();
11737 int
11738 main ()
11739 {
11740 return dlopen ();
11741   ;
11742   return 0;
11743 }
11744 _ACEOF
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749   *) ac_try_echo=$ac_try;;
11750 esac
11751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11752 $as_echo "$ac_try_echo") >&5
11753   (eval "$ac_link") 2>conftest.er1
11754   ac_status=$?
11755   grep -v '^ *+' conftest.er1 >conftest.err
11756   rm -f conftest.er1
11757   cat conftest.err >&5
11758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } && {
11760          test -z "$ac_c_werror_flag" ||
11761          test ! -s conftest.err
11762        } && test -s conftest$ac_exeext && {
11763          test "$cross_compiling" = yes ||
11764          $as_test_x conftest$ac_exeext
11765        }; then
11766   ac_cv_lib_dl_dlopen=yes
11767 else
11768   $as_echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771         ac_cv_lib_dl_dlopen=no
11772 fi
11773
11774 rm -rf conftest.dSYM
11775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11776       conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11778 fi
11779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11780 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11781 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11782   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11783 else
11784
11785     lt_cv_dlopen="dyld"
11786     lt_cv_dlopen_libs=
11787     lt_cv_dlopen_self=yes
11788
11789 fi
11790
11791     ;;
11792
11793   *)
11794     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11795 $as_echo_n "checking for shl_load... " >&6; }
11796 if test "${ac_cv_func_shl_load+set}" = set; then
11797   $as_echo_n "(cached) " >&6
11798 else
11799   cat >conftest.$ac_ext <<_ACEOF
11800 /* confdefs.h.  */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h.  */
11805 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11807 #define shl_load innocuous_shl_load
11808
11809 /* System header to define __stub macros and hopefully few prototypes,
11810     which can conflict with char shl_load (); below.
11811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11812     <limits.h> exists even on freestanding compilers.  */
11813
11814 #ifdef __STDC__
11815 # include <limits.h>
11816 #else
11817 # include <assert.h>
11818 #endif
11819
11820 #undef shl_load
11821
11822 /* Override any GCC internal prototype to avoid an error.
11823    Use char because int might match the return type of a GCC
11824    builtin and then its argument prototype would still apply.  */
11825 #ifdef __cplusplus
11826 extern "C"
11827 #endif
11828 char shl_load ();
11829 /* The GNU C library defines this for functions which it implements
11830     to always fail with ENOSYS.  Some functions are actually named
11831     something starting with __ and the normal name is an alias.  */
11832 #if defined __stub_shl_load || defined __stub___shl_load
11833 choke me
11834 #endif
11835
11836 int
11837 main ()
11838 {
11839 return shl_load ();
11840   ;
11841   return 0;
11842 }
11843 _ACEOF
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (ac_try="$ac_link"
11846 case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11851 $as_echo "$ac_try_echo") >&5
11852   (eval "$ac_link") 2>conftest.er1
11853   ac_status=$?
11854   grep -v '^ *+' conftest.er1 >conftest.err
11855   rm -f conftest.er1
11856   cat conftest.err >&5
11857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); } && {
11859          test -z "$ac_c_werror_flag" ||
11860          test ! -s conftest.err
11861        } && test -s conftest$ac_exeext && {
11862          test "$cross_compiling" = yes ||
11863          $as_test_x conftest$ac_exeext
11864        }; then
11865   ac_cv_func_shl_load=yes
11866 else
11867   $as_echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11869
11870         ac_cv_func_shl_load=no
11871 fi
11872
11873 rm -rf conftest.dSYM
11874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11875       conftest$ac_exeext conftest.$ac_ext
11876 fi
11877 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11878 $as_echo "$ac_cv_func_shl_load" >&6; }
11879 if test "x$ac_cv_func_shl_load" = x""yes; then
11880   lt_cv_dlopen="shl_load"
11881 else
11882   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11883 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11884 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11885   $as_echo_n "(cached) " >&6
11886 else
11887   ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-ldld  $LIBS"
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h.  */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h.  */
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897    Use char because int might match the return type of a GCC
11898    builtin and then its argument prototype would still apply.  */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char shl_load ();
11903 int
11904 main ()
11905 {
11906 return shl_load ();
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915   *) ac_try_echo=$ac_try;;
11916 esac
11917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918 $as_echo "$ac_try_echo") >&5
11919   (eval "$ac_link") 2>conftest.er1
11920   ac_status=$?
11921   grep -v '^ *+' conftest.er1 >conftest.err
11922   rm -f conftest.er1
11923   cat conftest.err >&5
11924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } && {
11926          test -z "$ac_c_werror_flag" ||
11927          test ! -s conftest.err
11928        } && test -s conftest$ac_exeext && {
11929          test "$cross_compiling" = yes ||
11930          $as_test_x conftest$ac_exeext
11931        }; then
11932   ac_cv_lib_dld_shl_load=yes
11933 else
11934   $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937         ac_cv_lib_dld_shl_load=no
11938 fi
11939
11940 rm -rf conftest.dSYM
11941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11942       conftest$ac_exeext conftest.$ac_ext
11943 LIBS=$ac_check_lib_save_LIBS
11944 fi
11945 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11946 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11947 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11948   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11949 else
11950   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11951 $as_echo_n "checking for dlopen... " >&6; }
11952 if test "${ac_cv_func_dlopen+set}" = set; then
11953   $as_echo_n "(cached) " >&6
11954 else
11955   cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11963 #define dlopen innocuous_dlopen
11964
11965 /* System header to define __stub macros and hopefully few prototypes,
11966     which can conflict with char dlopen (); below.
11967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11968     <limits.h> exists even on freestanding compilers.  */
11969
11970 #ifdef __STDC__
11971 # include <limits.h>
11972 #else
11973 # include <assert.h>
11974 #endif
11975
11976 #undef dlopen
11977
11978 /* Override any GCC internal prototype to avoid an error.
11979    Use char because int might match the return type of a GCC
11980    builtin and then its argument prototype would still apply.  */
11981 #ifdef __cplusplus
11982 extern "C"
11983 #endif
11984 char dlopen ();
11985 /* The GNU C library defines this for functions which it implements
11986     to always fail with ENOSYS.  Some functions are actually named
11987     something starting with __ and the normal name is an alias.  */
11988 #if defined __stub_dlopen || defined __stub___dlopen
11989 choke me
11990 #endif
11991
11992 int
11993 main ()
11994 {
11995 return dlopen ();
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12007 $as_echo "$ac_try_echo") >&5
12008   (eval "$ac_link") 2>conftest.er1
12009   ac_status=$?
12010   grep -v '^ *+' conftest.er1 >conftest.err
12011   rm -f conftest.er1
12012   cat conftest.err >&5
12013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } && {
12015          test -z "$ac_c_werror_flag" ||
12016          test ! -s conftest.err
12017        } && test -s conftest$ac_exeext && {
12018          test "$cross_compiling" = yes ||
12019          $as_test_x conftest$ac_exeext
12020        }; then
12021   ac_cv_func_dlopen=yes
12022 else
12023   $as_echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12025
12026         ac_cv_func_dlopen=no
12027 fi
12028
12029 rm -rf conftest.dSYM
12030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12031       conftest$ac_exeext conftest.$ac_ext
12032 fi
12033 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12034 $as_echo "$ac_cv_func_dlopen" >&6; }
12035 if test "x$ac_cv_func_dlopen" = x""yes; then
12036   lt_cv_dlopen="dlopen"
12037 else
12038   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12039 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12041   $as_echo_n "(cached) " >&6
12042 else
12043   ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-ldl  $LIBS"
12045 cat >conftest.$ac_ext <<_ACEOF
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051
12052 /* Override any GCC internal prototype to avoid an error.
12053    Use char because int might match the return type of a GCC
12054    builtin and then its argument prototype would still apply.  */
12055 #ifdef __cplusplus
12056 extern "C"
12057 #endif
12058 char dlopen ();
12059 int
12060 main ()
12061 {
12062 return dlopen ();
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071   *) ac_try_echo=$ac_try;;
12072 esac
12073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12074 $as_echo "$ac_try_echo") >&5
12075   (eval "$ac_link") 2>conftest.er1
12076   ac_status=$?
12077   grep -v '^ *+' conftest.er1 >conftest.err
12078   rm -f conftest.er1
12079   cat conftest.err >&5
12080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); } && {
12082          test -z "$ac_c_werror_flag" ||
12083          test ! -s conftest.err
12084        } && test -s conftest$ac_exeext && {
12085          test "$cross_compiling" = yes ||
12086          $as_test_x conftest$ac_exeext
12087        }; then
12088   ac_cv_lib_dl_dlopen=yes
12089 else
12090   $as_echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093         ac_cv_lib_dl_dlopen=no
12094 fi
12095
12096 rm -rf conftest.dSYM
12097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12098       conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12100 fi
12101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12102 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12103 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12104   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12105 else
12106   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12107 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12108 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12109   $as_echo_n "(cached) " >&6
12110 else
12111   ac_check_lib_save_LIBS=$LIBS
12112 LIBS="-lsvld  $LIBS"
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119
12120 /* Override any GCC internal prototype to avoid an error.
12121    Use char because int might match the return type of a GCC
12122    builtin and then its argument prototype would still apply.  */
12123 #ifdef __cplusplus
12124 extern "C"
12125 #endif
12126 char dlopen ();
12127 int
12128 main ()
12129 {
12130 return dlopen ();
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139   *) ac_try_echo=$ac_try;;
12140 esac
12141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12142 $as_echo "$ac_try_echo") >&5
12143   (eval "$ac_link") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } && {
12150          test -z "$ac_c_werror_flag" ||
12151          test ! -s conftest.err
12152        } && test -s conftest$ac_exeext && {
12153          test "$cross_compiling" = yes ||
12154          $as_test_x conftest$ac_exeext
12155        }; then
12156   ac_cv_lib_svld_dlopen=yes
12157 else
12158   $as_echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12160
12161         ac_cv_lib_svld_dlopen=no
12162 fi
12163
12164 rm -rf conftest.dSYM
12165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12166       conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12168 fi
12169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12170 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12171 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12172   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12173 else
12174   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12175 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12176 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12177   $as_echo_n "(cached) " >&6
12178 else
12179   ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-ldld  $LIBS"
12181 cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187
12188 /* Override any GCC internal prototype to avoid an error.
12189    Use char because int might match the return type of a GCC
12190    builtin and then its argument prototype would still apply.  */
12191 #ifdef __cplusplus
12192 extern "C"
12193 #endif
12194 char dld_link ();
12195 int
12196 main ()
12197 {
12198 return dld_link ();
12199   ;
12200   return 0;
12201 }
12202 _ACEOF
12203 rm -f conftest.$ac_objext conftest$ac_exeext
12204 if { (ac_try="$ac_link"
12205 case "(($ac_try" in
12206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207   *) ac_try_echo=$ac_try;;
12208 esac
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211   (eval "$ac_link") 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } && {
12218          test -z "$ac_c_werror_flag" ||
12219          test ! -s conftest.err
12220        } && test -s conftest$ac_exeext && {
12221          test "$cross_compiling" = yes ||
12222          $as_test_x conftest$ac_exeext
12223        }; then
12224   ac_cv_lib_dld_dld_link=yes
12225 else
12226   $as_echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12228
12229         ac_cv_lib_dld_dld_link=no
12230 fi
12231
12232 rm -rf conftest.dSYM
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234       conftest$ac_exeext conftest.$ac_ext
12235 LIBS=$ac_check_lib_save_LIBS
12236 fi
12237 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12238 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12239 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12240   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12241 fi
12242
12243
12244 fi
12245
12246
12247 fi
12248
12249
12250 fi
12251
12252
12253 fi
12254
12255
12256 fi
12257
12258     ;;
12259   esac
12260
12261   if test "x$lt_cv_dlopen" != xno; then
12262     enable_dlopen=yes
12263   else
12264     enable_dlopen=no
12265   fi
12266
12267   case $lt_cv_dlopen in
12268   dlopen)
12269     save_CPPFLAGS="$CPPFLAGS"
12270     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12271
12272     save_LDFLAGS="$LDFLAGS"
12273     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12274
12275     save_LIBS="$LIBS"
12276     LIBS="$lt_cv_dlopen_libs $LIBS"
12277
12278     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12279 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12280 if test "${lt_cv_dlopen_self+set}" = set; then
12281   $as_echo_n "(cached) " >&6
12282 else
12283           if test "$cross_compiling" = yes; then :
12284   lt_cv_dlopen_self=cross
12285 else
12286   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12287   lt_status=$lt_dlunknown
12288   cat > conftest.$ac_ext <<_LT_EOF
12289 #line 12289 "configure"
12290 #include "confdefs.h"
12291
12292 #if HAVE_DLFCN_H
12293 #include <dlfcn.h>
12294 #endif
12295
12296 #include <stdio.h>
12297
12298 #ifdef RTLD_GLOBAL
12299 #  define LT_DLGLOBAL           RTLD_GLOBAL
12300 #else
12301 #  ifdef DL_GLOBAL
12302 #    define LT_DLGLOBAL         DL_GLOBAL
12303 #  else
12304 #    define LT_DLGLOBAL         0
12305 #  endif
12306 #endif
12307
12308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12309    find out it does not work in some platform. */
12310 #ifndef LT_DLLAZY_OR_NOW
12311 #  ifdef RTLD_LAZY
12312 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12313 #  else
12314 #    ifdef DL_LAZY
12315 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12316 #    else
12317 #      ifdef RTLD_NOW
12318 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12319 #      else
12320 #        ifdef DL_NOW
12321 #          define LT_DLLAZY_OR_NOW      DL_NOW
12322 #        else
12323 #          define LT_DLLAZY_OR_NOW      0
12324 #        endif
12325 #      endif
12326 #    endif
12327 #  endif
12328 #endif
12329
12330 void fnord() { int i=42;}
12331 int main ()
12332 {
12333   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12334   int status = $lt_dlunknown;
12335
12336   if (self)
12337     {
12338       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12339       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12340       /* dlclose (self); */
12341     }
12342   else
12343     puts (dlerror ());
12344
12345   return status;
12346 }
12347 _LT_EOF
12348   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12349   (eval $ac_link) 2>&5
12350   ac_status=$?
12351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12353     (./conftest; exit; ) >&5 2>/dev/null
12354     lt_status=$?
12355     case x$lt_status in
12356       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12357       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12358       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12359     esac
12360   else :
12361     # compilation failed
12362     lt_cv_dlopen_self=no
12363   fi
12364 fi
12365 rm -fr conftest*
12366
12367
12368 fi
12369 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12370 $as_echo "$lt_cv_dlopen_self" >&6; }
12371
12372     if test "x$lt_cv_dlopen_self" = xyes; then
12373       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12374       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12375 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12376 if test "${lt_cv_dlopen_self_static+set}" = set; then
12377   $as_echo_n "(cached) " >&6
12378 else
12379           if test "$cross_compiling" = yes; then :
12380   lt_cv_dlopen_self_static=cross
12381 else
12382   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12383   lt_status=$lt_dlunknown
12384   cat > conftest.$ac_ext <<_LT_EOF
12385 #line 12385 "configure"
12386 #include "confdefs.h"
12387
12388 #if HAVE_DLFCN_H
12389 #include <dlfcn.h>
12390 #endif
12391
12392 #include <stdio.h>
12393
12394 #ifdef RTLD_GLOBAL
12395 #  define LT_DLGLOBAL           RTLD_GLOBAL
12396 #else
12397 #  ifdef DL_GLOBAL
12398 #    define LT_DLGLOBAL         DL_GLOBAL
12399 #  else
12400 #    define LT_DLGLOBAL         0
12401 #  endif
12402 #endif
12403
12404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12405    find out it does not work in some platform. */
12406 #ifndef LT_DLLAZY_OR_NOW
12407 #  ifdef RTLD_LAZY
12408 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12409 #  else
12410 #    ifdef DL_LAZY
12411 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12412 #    else
12413 #      ifdef RTLD_NOW
12414 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12415 #      else
12416 #        ifdef DL_NOW
12417 #          define LT_DLLAZY_OR_NOW      DL_NOW
12418 #        else
12419 #          define LT_DLLAZY_OR_NOW      0
12420 #        endif
12421 #      endif
12422 #    endif
12423 #  endif
12424 #endif
12425
12426 void fnord() { int i=42;}
12427 int main ()
12428 {
12429   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12430   int status = $lt_dlunknown;
12431
12432   if (self)
12433     {
12434       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12435       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12436       /* dlclose (self); */
12437     }
12438   else
12439     puts (dlerror ());
12440
12441   return status;
12442 }
12443 _LT_EOF
12444   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445   (eval $ac_link) 2>&5
12446   ac_status=$?
12447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12449     (./conftest; exit; ) >&5 2>/dev/null
12450     lt_status=$?
12451     case x$lt_status in
12452       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12453       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12454       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12455     esac
12456   else :
12457     # compilation failed
12458     lt_cv_dlopen_self_static=no
12459   fi
12460 fi
12461 rm -fr conftest*
12462
12463
12464 fi
12465 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12466 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12467     fi
12468
12469     CPPFLAGS="$save_CPPFLAGS"
12470     LDFLAGS="$save_LDFLAGS"
12471     LIBS="$save_LIBS"
12472     ;;
12473   esac
12474
12475   case $lt_cv_dlopen_self in
12476   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12477   *) enable_dlopen_self=unknown ;;
12478   esac
12479
12480   case $lt_cv_dlopen_self_static in
12481   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12482   *) enable_dlopen_self_static=unknown ;;
12483   esac
12484 fi
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502 striplib=
12503 old_striplib=
12504 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12505 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12506 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12507   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12508   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12509   { $as_echo "$as_me:$LINENO: result: yes" >&5
12510 $as_echo "yes" >&6; }
12511 else
12512 # FIXME - insert some real tests, host_os isn't really good enough
12513   case $host_os in
12514   darwin*)
12515     if test -n "$STRIP" ; then
12516       striplib="$STRIP -x"
12517       old_striplib="$STRIP -S"
12518       { $as_echo "$as_me:$LINENO: result: yes" >&5
12519 $as_echo "yes" >&6; }
12520     else
12521       { $as_echo "$as_me:$LINENO: result: no" >&5
12522 $as_echo "no" >&6; }
12523     fi
12524     ;;
12525   *)
12526     { $as_echo "$as_me:$LINENO: result: no" >&5
12527 $as_echo "no" >&6; }
12528     ;;
12529   esac
12530 fi
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543   # Report which library types will actually be built
12544   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12545 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12546   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12547 $as_echo "$can_build_shared" >&6; }
12548
12549   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12550 $as_echo_n "checking whether to build shared libraries... " >&6; }
12551   test "$can_build_shared" = "no" && enable_shared=no
12552
12553   # On AIX, shared libraries and static libraries use the same namespace, and
12554   # are all built from PIC.
12555   case $host_os in
12556   aix3*)
12557     test "$enable_shared" = yes && enable_static=no
12558     if test -n "$RANLIB"; then
12559       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12560       postinstall_cmds='$RANLIB $lib'
12561     fi
12562     ;;
12563
12564   aix[4-9]*)
12565     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12566       test "$enable_shared" = yes && enable_static=no
12567     fi
12568     ;;
12569   esac
12570   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12571 $as_echo "$enable_shared" >&6; }
12572
12573   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12574 $as_echo_n "checking whether to build static libraries... " >&6; }
12575   # Make sure either enable_shared or enable_static is yes.
12576   test "$enable_shared" = yes || enable_static=yes
12577   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12578 $as_echo "$enable_static" >&6; }
12579
12580
12581
12582
12583 fi
12584 ac_ext=c
12585 ac_cpp='$CPP $CPPFLAGS'
12586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12589
12590 CC="$lt_save_CC"
12591
12592
12593 ac_ext=cpp
12594 ac_cpp='$CXXCPP $CPPFLAGS'
12595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12598
12599 archive_cmds_need_lc_CXX=no
12600 allow_undefined_flag_CXX=
12601 always_export_symbols_CXX=no
12602 archive_expsym_cmds_CXX=
12603 compiler_needs_object_CXX=no
12604 export_dynamic_flag_spec_CXX=
12605 hardcode_direct_CXX=no
12606 hardcode_direct_absolute_CXX=no
12607 hardcode_libdir_flag_spec_CXX=
12608 hardcode_libdir_flag_spec_ld_CXX=
12609 hardcode_libdir_separator_CXX=
12610 hardcode_minus_L_CXX=no
12611 hardcode_shlibpath_var_CXX=unsupported
12612 hardcode_automatic_CXX=no
12613 inherit_rpath_CXX=no
12614 module_cmds_CXX=
12615 module_expsym_cmds_CXX=
12616 link_all_deplibs_CXX=unknown
12617 old_archive_cmds_CXX=$old_archive_cmds
12618 no_undefined_flag_CXX=
12619 whole_archive_flag_spec_CXX=
12620 enable_shared_with_static_runtimes_CXX=no
12621
12622 # Source file extension for C++ test sources.
12623 ac_ext=cpp
12624
12625 # Object file extension for compiled C++ test sources.
12626 objext=o
12627 objext_CXX=$objext
12628
12629 # No sense in running all these tests if we already determined that
12630 # the CXX compiler isn't working.  Some variables (like enable_shared)
12631 # are currently assumed to apply to all compilers on this platform,
12632 # and will be corrupted by setting them based on a non-working compiler.
12633 if test "$_lt_caught_CXX_error" != yes; then
12634   # Code to be used in simple compile tests
12635   lt_simple_compile_test_code="int some_variable = 0;"
12636
12637   # Code to be used in simple link tests
12638   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12639
12640   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12641
12642
12643
12644
12645
12646
12647 # If no C compiler was specified, use CC.
12648 LTCC=${LTCC-"$CC"}
12649
12650 # If no C compiler flags were specified, use CFLAGS.
12651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12652
12653 # Allow CC to be a program name with arguments.
12654 compiler=$CC
12655
12656
12657   # save warnings/boilerplate of simple test code
12658   ac_outfile=conftest.$ac_objext
12659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12661 _lt_compiler_boilerplate=`cat conftest.err`
12662 $RM conftest*
12663
12664   ac_outfile=conftest.$ac_objext
12665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12667 _lt_linker_boilerplate=`cat conftest.err`
12668 $RM -r conftest*
12669
12670
12671   # Allow CC to be a program name with arguments.
12672   lt_save_CC=$CC
12673   lt_save_LD=$LD
12674   lt_save_GCC=$GCC
12675   GCC=$GXX
12676   lt_save_with_gnu_ld=$with_gnu_ld
12677   lt_save_path_LD=$lt_cv_path_LD
12678   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12679     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12680   else
12681     $as_unset lt_cv_prog_gnu_ld
12682   fi
12683   if test -n "${lt_cv_path_LDCXX+set}"; then
12684     lt_cv_path_LD=$lt_cv_path_LDCXX
12685   else
12686     $as_unset lt_cv_path_LD
12687   fi
12688   test -z "${LDCXX+set}" || LD=$LDCXX
12689   CC=${CXX-"c++"}
12690   compiler=$CC
12691   compiler_CXX=$CC
12692   for cc_temp in $compiler""; do
12693   case $cc_temp in
12694     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12695     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12696     \-*) ;;
12697     *) break;;
12698   esac
12699 done
12700 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12701
12702
12703   if test -n "$compiler"; then
12704     # We don't want -fno-exception when compiling C++ code, so set the
12705     # no_builtin_flag separately
12706     if test "$GXX" = yes; then
12707       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12708     else
12709       lt_prog_compiler_no_builtin_flag_CXX=
12710     fi
12711
12712     if test "$GXX" = yes; then
12713       # Set up default GNU C++ configuration
12714
12715
12716
12717 # Check whether --with-gnu-ld was given.
12718 if test "${with_gnu_ld+set}" = set; then
12719   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12720 else
12721   with_gnu_ld=no
12722 fi
12723
12724 ac_prog=ld
12725 if test "$GCC" = yes; then
12726   # Check if gcc -print-prog-name=ld gives a path.
12727   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12728 $as_echo_n "checking for ld used by $CC... " >&6; }
12729   case $host in
12730   *-*-mingw*)
12731     # gcc leaves a trailing carriage return which upsets mingw
12732     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12733   *)
12734     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12735   esac
12736   case $ac_prog in
12737     # Accept absolute paths.
12738     [\\/]* | ?:[\\/]*)
12739       re_direlt='/[^/][^/]*/\.\./'
12740       # Canonicalize the pathname of ld
12741       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12742       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12743         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12744       done
12745       test -z "$LD" && LD="$ac_prog"
12746       ;;
12747   "")
12748     # If it fails, then pretend we aren't using GCC.
12749     ac_prog=ld
12750     ;;
12751   *)
12752     # If it is relative, then search for the first ld in PATH.
12753     with_gnu_ld=unknown
12754     ;;
12755   esac
12756 elif test "$with_gnu_ld" = yes; then
12757   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12758 $as_echo_n "checking for GNU ld... " >&6; }
12759 else
12760   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12761 $as_echo_n "checking for non-GNU ld... " >&6; }
12762 fi
12763 if test "${lt_cv_path_LD+set}" = set; then
12764   $as_echo_n "(cached) " >&6
12765 else
12766   if test -z "$LD"; then
12767   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12768   for ac_dir in $PATH; do
12769     IFS="$lt_save_ifs"
12770     test -z "$ac_dir" && ac_dir=.
12771     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12772       lt_cv_path_LD="$ac_dir/$ac_prog"
12773       # Check to see if the program is GNU ld.  I'd rather use --version,
12774       # but apparently some variants of GNU ld only accept -v.
12775       # Break only if it was the GNU/non-GNU ld that we prefer.
12776       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12777       *GNU* | *'with BFD'*)
12778         test "$with_gnu_ld" != no && break
12779         ;;
12780       *)
12781         test "$with_gnu_ld" != yes && break
12782         ;;
12783       esac
12784     fi
12785   done
12786   IFS="$lt_save_ifs"
12787 else
12788   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12789 fi
12790 fi
12791
12792 LD="$lt_cv_path_LD"
12793 if test -n "$LD"; then
12794   { $as_echo "$as_me:$LINENO: result: $LD" >&5
12795 $as_echo "$LD" >&6; }
12796 else
12797   { $as_echo "$as_me:$LINENO: result: no" >&5
12798 $as_echo "no" >&6; }
12799 fi
12800 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12801 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12802    { (exit 1); exit 1; }; }
12803 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12805 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12806   $as_echo_n "(cached) " >&6
12807 else
12808   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12809 case `$LD -v 2>&1 </dev/null` in
12810 *GNU* | *'with BFD'*)
12811   lt_cv_prog_gnu_ld=yes
12812   ;;
12813 *)
12814   lt_cv_prog_gnu_ld=no
12815   ;;
12816 esac
12817 fi
12818 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12820 with_gnu_ld=$lt_cv_prog_gnu_ld
12821
12822
12823
12824
12825
12826
12827
12828       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12829       # archiving commands below assume that GNU ld is being used.
12830       if test "$with_gnu_ld" = yes; then
12831         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832         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'
12833
12834         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12835         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12836
12837         # If archive_cmds runs LD, not CC, wlarc should be empty
12838         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12839         #     investigate it a little bit more. (MM)
12840         wlarc='${wl}'
12841
12842         # ancient GNU ld didn't support --whole-archive et. al.
12843         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12844           $GREP 'no-whole-archive' > /dev/null; then
12845           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12846         else
12847           whole_archive_flag_spec_CXX=
12848         fi
12849       else
12850         with_gnu_ld=no
12851         wlarc=
12852
12853         # A generic and very simple default shared library creation
12854         # command for GNU C++ for the case where it uses the native
12855         # linker, instead of GNU ld.  If possible, this setting should
12856         # overridden to take advantage of the native linker features on
12857         # the platform it is being used on.
12858         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12859       fi
12860
12861       # Commands to make compiler produce verbose output that lists
12862       # what "hidden" libraries, object files and flags are used when
12863       # linking a shared library.
12864       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12865
12866     else
12867       GXX=no
12868       with_gnu_ld=no
12869       wlarc=
12870     fi
12871
12872     # PORTME: fill in a description of your system's C++ link characteristics
12873     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12875     ld_shlibs_CXX=yes
12876     case $host_os in
12877       aix3*)
12878         # FIXME: insert proper C++ library support
12879         ld_shlibs_CXX=no
12880         ;;
12881       aix[4-9]*)
12882         if test "$host_cpu" = ia64; then
12883           # On IA64, the linker does run time linking by default, so we don't
12884           # have to do anything special.
12885           aix_use_runtimelinking=no
12886           exp_sym_flag='-Bexport'
12887           no_entry_flag=""
12888         else
12889           aix_use_runtimelinking=no
12890
12891           # Test if we are trying to use run time linking or normal
12892           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12893           # need to do runtime linking.
12894           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12895             for ld_flag in $LDFLAGS; do
12896               case $ld_flag in
12897               *-brtl*)
12898                 aix_use_runtimelinking=yes
12899                 break
12900                 ;;
12901               esac
12902             done
12903             ;;
12904           esac
12905
12906           exp_sym_flag='-bexport'
12907           no_entry_flag='-bnoentry'
12908         fi
12909
12910         # When large executables or shared objects are built, AIX ld can
12911         # have problems creating the table of contents.  If linking a library
12912         # or program results in "error TOC overflow" add -mminimal-toc to
12913         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12914         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12915
12916         archive_cmds_CXX=''
12917         hardcode_direct_CXX=yes
12918         hardcode_direct_absolute_CXX=yes
12919         hardcode_libdir_separator_CXX=':'
12920         link_all_deplibs_CXX=yes
12921         file_list_spec_CXX='${wl}-f,'
12922
12923         if test "$GXX" = yes; then
12924           case $host_os in aix4.[012]|aix4.[012].*)
12925           # We only want to do this on AIX 4.2 and lower, the check
12926           # below for broken collect2 doesn't work under 4.3+
12927           collect2name=`${CC} -print-prog-name=collect2`
12928           if test -f "$collect2name" &&
12929              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12930           then
12931             # We have reworked collect2
12932             :
12933           else
12934             # We have old collect2
12935             hardcode_direct_CXX=unsupported
12936             # It fails to find uninstalled libraries when the uninstalled
12937             # path is not listed in the libpath.  Setting hardcode_minus_L
12938             # to unsupported forces relinking
12939             hardcode_minus_L_CXX=yes
12940             hardcode_libdir_flag_spec_CXX='-L$libdir'
12941             hardcode_libdir_separator_CXX=
12942           fi
12943           esac
12944           shared_flag='-shared'
12945           if test "$aix_use_runtimelinking" = yes; then
12946             shared_flag="$shared_flag "'${wl}-G'
12947           fi
12948         else
12949           # not using gcc
12950           if test "$host_cpu" = ia64; then
12951           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12952           # chokes on -Wl,-G. The following line is correct:
12953           shared_flag='-G'
12954           else
12955             if test "$aix_use_runtimelinking" = yes; then
12956               shared_flag='${wl}-G'
12957             else
12958               shared_flag='${wl}-bM:SRE'
12959             fi
12960           fi
12961         fi
12962
12963         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12964         # It seems that -bexpall does not export symbols beginning with
12965         # underscore (_), so it is better to generate a list of symbols to
12966         # export.
12967         always_export_symbols_CXX=yes
12968         if test "$aix_use_runtimelinking" = yes; then
12969           # Warning - without using the other runtime loading flags (-brtl),
12970           # -berok will link without error, but may produce a broken library.
12971           allow_undefined_flag_CXX='-berok'
12972           # Determine the default libpath from the value encoded in an empty
12973           # executable.
12974           cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h.  */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h.  */
12980
12981 int
12982 main ()
12983 {
12984
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (ac_try="$ac_link"
12991 case "(($ac_try" in
12992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993   *) ac_try_echo=$ac_try;;
12994 esac
12995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12996 $as_echo "$ac_try_echo") >&5
12997   (eval "$ac_link") 2>conftest.er1
12998   ac_status=$?
12999   grep -v '^ *+' conftest.er1 >conftest.err
13000   rm -f conftest.er1
13001   cat conftest.err >&5
13002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); } && {
13004          test -z "$ac_cxx_werror_flag" ||
13005          test ! -s conftest.err
13006        } && test -s conftest$ac_exeext && {
13007          test "$cross_compiling" = yes ||
13008          $as_test_x conftest$ac_exeext
13009        }; then
13010
13011 lt_aix_libpath_sed='
13012     /Import File Strings/,/^$/ {
13013         /^0/ {
13014             s/^0  *\(.*\)$/\1/
13015             p
13016         }
13017     }'
13018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019 # Check for a 64-bit object if we didn't find anything.
13020 if test -z "$aix_libpath"; then
13021   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13022 fi
13023 else
13024   $as_echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13026
13027
13028 fi
13029
13030 rm -rf conftest.dSYM
13031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13032       conftest$ac_exeext conftest.$ac_ext
13033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13034
13035           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13036
13037           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"
13038         else
13039           if test "$host_cpu" = ia64; then
13040             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13041             allow_undefined_flag_CXX="-z nodefs"
13042             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"
13043           else
13044             # Determine the default libpath from the value encoded in an
13045             # empty executable.
13046             cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h.  */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h.  */
13052
13053 int
13054 main ()
13055 {
13056
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (ac_try="$ac_link"
13063 case "(($ac_try" in
13064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065   *) ac_try_echo=$ac_try;;
13066 esac
13067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13068 $as_echo "$ac_try_echo") >&5
13069   (eval "$ac_link") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } && {
13076          test -z "$ac_cxx_werror_flag" ||
13077          test ! -s conftest.err
13078        } && test -s conftest$ac_exeext && {
13079          test "$cross_compiling" = yes ||
13080          $as_test_x conftest$ac_exeext
13081        }; then
13082
13083 lt_aix_libpath_sed='
13084     /Import File Strings/,/^$/ {
13085         /^0/ {
13086             s/^0  *\(.*\)$/\1/
13087             p
13088         }
13089     }'
13090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13091 # Check for a 64-bit object if we didn't find anything.
13092 if test -z "$aix_libpath"; then
13093   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13094 fi
13095 else
13096   $as_echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099
13100 fi
13101
13102 rm -rf conftest.dSYM
13103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13104       conftest$ac_exeext conftest.$ac_ext
13105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13106
13107             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13108             # Warning - without using the other run time loading flags,
13109             # -berok will link without error, but may produce a broken library.
13110             no_undefined_flag_CXX=' ${wl}-bernotok'
13111             allow_undefined_flag_CXX=' ${wl}-berok'
13112             # Exported symbols can be pulled into shared objects from archives
13113             whole_archive_flag_spec_CXX='$convenience'
13114             archive_cmds_need_lc_CXX=yes
13115             # This is similar to how AIX traditionally builds its shared
13116             # libraries.
13117             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'
13118           fi
13119         fi
13120         ;;
13121
13122       beos*)
13123         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13124           allow_undefined_flag_CXX=unsupported
13125           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13126           # support --undefined.  This deserves some investigation.  FIXME
13127           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13128         else
13129           ld_shlibs_CXX=no
13130         fi
13131         ;;
13132
13133       chorus*)
13134         case $cc_basename in
13135           *)
13136           # FIXME: insert proper C++ library support
13137           ld_shlibs_CXX=no
13138           ;;
13139         esac
13140         ;;
13141
13142       cygwin* | mingw* | pw32* | cegcc*)
13143         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13144         # as there is no search path for DLLs.
13145         hardcode_libdir_flag_spec_CXX='-L$libdir'
13146         allow_undefined_flag_CXX=unsupported
13147         always_export_symbols_CXX=no
13148         enable_shared_with_static_runtimes_CXX=yes
13149
13150         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13151           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'
13152           # If the export-symbols file already is a .def file (1st line
13153           # is EXPORTS), use it as is; otherwise, prepend...
13154           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13155             cp $export_symbols $output_objdir/$soname.def;
13156           else
13157             echo EXPORTS > $output_objdir/$soname.def;
13158             cat $export_symbols >> $output_objdir/$soname.def;
13159           fi~
13160           $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'
13161         else
13162           ld_shlibs_CXX=no
13163         fi
13164         ;;
13165       darwin* | rhapsody*)
13166
13167
13168   archive_cmds_need_lc_CXX=no
13169   hardcode_direct_CXX=no
13170   hardcode_automatic_CXX=yes
13171   hardcode_shlibpath_var_CXX=unsupported
13172   whole_archive_flag_spec_CXX=''
13173   link_all_deplibs_CXX=yes
13174   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13175   case $cc_basename in
13176      ifort*) _lt_dar_can_shared=yes ;;
13177      *) _lt_dar_can_shared=$GCC ;;
13178   esac
13179   if test "$_lt_dar_can_shared" = "yes"; then
13180     output_verbose_link_cmd=echo
13181     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}"
13182     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13183     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}"
13184     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}"
13185        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13186       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}"
13187       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}"
13188     fi
13189
13190   else
13191   ld_shlibs_CXX=no
13192   fi
13193
13194         ;;
13195
13196       dgux*)
13197         case $cc_basename in
13198           ec++*)
13199             # FIXME: insert proper C++ library support
13200             ld_shlibs_CXX=no
13201             ;;
13202           ghcx*)
13203             # Green Hills C++ Compiler
13204             # FIXME: insert proper C++ library support
13205             ld_shlibs_CXX=no
13206             ;;
13207           *)
13208             # FIXME: insert proper C++ library support
13209             ld_shlibs_CXX=no
13210             ;;
13211         esac
13212         ;;
13213
13214       freebsd[12]*)
13215         # C++ shared libraries reported to be fairly broken before
13216         # switch to ELF
13217         ld_shlibs_CXX=no
13218         ;;
13219
13220       freebsd-elf*)
13221         archive_cmds_need_lc_CXX=no
13222         ;;
13223
13224       freebsd* | dragonfly*)
13225         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13226         # conventions
13227         ld_shlibs_CXX=yes
13228         ;;
13229
13230       gnu*)
13231         ;;
13232
13233       hpux9*)
13234         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13235         hardcode_libdir_separator_CXX=:
13236         export_dynamic_flag_spec_CXX='${wl}-E'
13237         hardcode_direct_CXX=yes
13238         hardcode_minus_L_CXX=yes # Not in the search PATH,
13239                                              # but as the default
13240                                              # location of the library.
13241
13242         case $cc_basename in
13243           CC*)
13244             # FIXME: insert proper C++ library support
13245             ld_shlibs_CXX=no
13246             ;;
13247           aCC*)
13248             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'
13249             # Commands to make compiler produce verbose output that lists
13250             # what "hidden" libraries, object files and flags are used when
13251             # linking a shared library.
13252             #
13253             # There doesn't appear to be a way to prevent this compiler from
13254             # explicitly linking system object files so we need to strip them
13255             # from the output so that they don't get included in the library
13256             # dependencies.
13257             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'
13258             ;;
13259           *)
13260             if test "$GXX" = yes; then
13261               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'
13262             else
13263               # FIXME: insert proper C++ library support
13264               ld_shlibs_CXX=no
13265             fi
13266             ;;
13267         esac
13268         ;;
13269
13270       hpux10*|hpux11*)
13271         if test $with_gnu_ld = no; then
13272           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13273           hardcode_libdir_separator_CXX=:
13274
13275           case $host_cpu in
13276             hppa*64*|ia64*)
13277               ;;
13278             *)
13279               export_dynamic_flag_spec_CXX='${wl}-E'
13280               ;;
13281           esac
13282         fi
13283         case $host_cpu in
13284           hppa*64*|ia64*)
13285             hardcode_direct_CXX=no
13286             hardcode_shlibpath_var_CXX=no
13287             ;;
13288           *)
13289             hardcode_direct_CXX=yes
13290             hardcode_direct_absolute_CXX=yes
13291             hardcode_minus_L_CXX=yes # Not in the search PATH,
13292                                                  # but as the default
13293                                                  # location of the library.
13294             ;;
13295         esac
13296
13297         case $cc_basename in
13298           CC*)
13299             # FIXME: insert proper C++ library support
13300             ld_shlibs_CXX=no
13301             ;;
13302           aCC*)
13303             case $host_cpu in
13304               hppa*64*)
13305                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13306                 ;;
13307               ia64*)
13308                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13309                 ;;
13310               *)
13311                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13312                 ;;
13313             esac
13314             # Commands to make compiler produce verbose output that lists
13315             # what "hidden" libraries, object files and flags are used when
13316             # linking a shared library.
13317             #
13318             # There doesn't appear to be a way to prevent this compiler from
13319             # explicitly linking system object files so we need to strip them
13320             # from the output so that they don't get included in the library
13321             # dependencies.
13322             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'
13323             ;;
13324           *)
13325             if test "$GXX" = yes; then
13326               if test $with_gnu_ld = no; then
13327                 case $host_cpu in
13328                   hppa*64*)
13329                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13330                     ;;
13331                   ia64*)
13332                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13333                     ;;
13334                   *)
13335                     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'
13336                     ;;
13337                 esac
13338               fi
13339             else
13340               # FIXME: insert proper C++ library support
13341               ld_shlibs_CXX=no
13342             fi
13343             ;;
13344         esac
13345         ;;
13346
13347       interix[3-9]*)
13348         hardcode_direct_CXX=no
13349         hardcode_shlibpath_var_CXX=no
13350         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13351         export_dynamic_flag_spec_CXX='${wl}-E'
13352         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13353         # Instead, shared libraries are loaded at an image base (0x10000000 by
13354         # default) and relocated if they conflict, which is a slow very memory
13355         # consuming and fragmenting process.  To avoid this, we pick a random,
13356         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13357         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13358         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'
13359         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'
13360         ;;
13361       irix5* | irix6*)
13362         case $cc_basename in
13363           CC*)
13364             # SGI C++
13365             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'
13366
13367             # Archives containing C++ object files must be created using
13368             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13369             # necessary to make sure instantiated templates are included
13370             # in the archive.
13371             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13372             ;;
13373           *)
13374             if test "$GXX" = yes; then
13375               if test "$with_gnu_ld" = no; then
13376                 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'
13377               else
13378                 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'
13379               fi
13380             fi
13381             link_all_deplibs_CXX=yes
13382             ;;
13383         esac
13384         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13385         hardcode_libdir_separator_CXX=:
13386         inherit_rpath_CXX=yes
13387         ;;
13388
13389       linux* | k*bsd*-gnu)
13390         case $cc_basename in
13391           KCC*)
13392             # Kuck and Associates, Inc. (KAI) C++ Compiler
13393
13394             # KCC will only create a shared library if the output file
13395             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13396             # to its proper name (with version) after linking.
13397             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'
13398             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'
13399             # Commands to make compiler produce verbose output that lists
13400             # what "hidden" libraries, object files and flags are used when
13401             # linking a shared library.
13402             #
13403             # There doesn't appear to be a way to prevent this compiler from
13404             # explicitly linking system object files so we need to strip them
13405             # from the output so that they don't get included in the library
13406             # dependencies.
13407             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'
13408
13409             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13410             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13411
13412             # Archives containing C++ object files must be created using
13413             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13414             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13415             ;;
13416           icpc* | ecpc* )
13417             # Intel C++
13418             with_gnu_ld=yes
13419             # version 8.0 and above of icpc choke on multiply defined symbols
13420             # if we add $predep_objects and $postdep_objects, however 7.1 and
13421             # earlier do not add the objects themselves.
13422             case `$CC -V 2>&1` in
13423               *"Version 7."*)
13424                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425                 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'
13426                 ;;
13427               *)  # Version 8.0 or newer
13428                 tmp_idyn=
13429                 case $host_cpu in
13430                   ia64*) tmp_idyn=' -i_dynamic';;
13431                 esac
13432                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433                 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'
13434                 ;;
13435             esac
13436             archive_cmds_need_lc_CXX=no
13437             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13438             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13439             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13440             ;;
13441           pgCC* | pgcpp*)
13442             # Portland Group C++ compiler
13443             case `$CC -V` in
13444             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13445               prelink_cmds_CXX='tpldir=Template.dir~
13446                 rm -rf $tpldir~
13447                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13448                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13449               old_archive_cmds_CXX='tpldir=Template.dir~
13450                 rm -rf $tpldir~
13451                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13452                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13453                 $RANLIB $oldlib'
13454               archive_cmds_CXX='tpldir=Template.dir~
13455                 rm -rf $tpldir~
13456                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13457                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13458               archive_expsym_cmds_CXX='tpldir=Template.dir~
13459                 rm -rf $tpldir~
13460                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13461                 $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'
13462               ;;
13463             *) # Version 6 will use weak symbols
13464               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13465               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'
13466               ;;
13467             esac
13468
13469             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13470             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13471             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'
13472             ;;
13473           cxx*)
13474             # Compaq C++
13475             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13476             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'
13477
13478             runpath_var=LD_RUN_PATH
13479             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13480             hardcode_libdir_separator_CXX=:
13481
13482             # Commands to make compiler produce verbose output that lists
13483             # what "hidden" libraries, object files and flags are used when
13484             # linking a shared library.
13485             #
13486             # There doesn't appear to be a way to prevent this compiler from
13487             # explicitly linking system object files so we need to strip them
13488             # from the output so that they don't get included in the library
13489             # dependencies.
13490             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'
13491             ;;
13492           xl*)
13493             # IBM XL 8.0 on PPC, with GNU ld
13494             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13495             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13496             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13497             if test "x$supports_anon_versioning" = xyes; then
13498               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13499                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13500                 echo "local: *; };" >> $output_objdir/$libname.ver~
13501                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13502             fi
13503             ;;
13504           *)
13505             case `$CC -V 2>&1 | sed 5q` in
13506             *Sun\ C*)
13507               # Sun C++ 5.9
13508               no_undefined_flag_CXX=' -zdefs'
13509               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13510               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'
13511               hardcode_libdir_flag_spec_CXX='-R$libdir'
13512               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'
13513               compiler_needs_object_CXX=yes
13514
13515               # Not sure whether something based on
13516               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13517               # would be better.
13518               output_verbose_link_cmd='echo'
13519
13520               # Archives containing C++ object files must be created using
13521               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13522               # necessary to make sure instantiated templates are included
13523               # in the archive.
13524               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13525               ;;
13526             esac
13527             ;;
13528         esac
13529         ;;
13530
13531       lynxos*)
13532         # FIXME: insert proper C++ library support
13533         ld_shlibs_CXX=no
13534         ;;
13535
13536       m88k*)
13537         # FIXME: insert proper C++ library support
13538         ld_shlibs_CXX=no
13539         ;;
13540
13541       mvs*)
13542         case $cc_basename in
13543           cxx*)
13544             # FIXME: insert proper C++ library support
13545             ld_shlibs_CXX=no
13546             ;;
13547           *)
13548             # FIXME: insert proper C++ library support
13549             ld_shlibs_CXX=no
13550             ;;
13551         esac
13552         ;;
13553
13554       netbsd*)
13555         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13556           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13557           wlarc=
13558           hardcode_libdir_flag_spec_CXX='-R$libdir'
13559           hardcode_direct_CXX=yes
13560           hardcode_shlibpath_var_CXX=no
13561         fi
13562         # Workaround some broken pre-1.5 toolchains
13563         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13564         ;;
13565
13566       *nto* | *qnx*)
13567         ld_shlibs_CXX=yes
13568         ;;
13569
13570       openbsd2*)
13571         # C++ shared libraries are fairly broken
13572         ld_shlibs_CXX=no
13573         ;;
13574
13575       openbsd*)
13576         if test -f /usr/libexec/ld.so; then
13577           hardcode_direct_CXX=yes
13578           hardcode_shlibpath_var_CXX=no
13579           hardcode_direct_absolute_CXX=yes
13580           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13581           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13582           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13583             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13584             export_dynamic_flag_spec_CXX='${wl}-E'
13585             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13586           fi
13587           output_verbose_link_cmd=echo
13588         else
13589           ld_shlibs_CXX=no
13590         fi
13591         ;;
13592
13593       osf3* | osf4* | osf5*)
13594         case $cc_basename in
13595           KCC*)
13596             # Kuck and Associates, Inc. (KAI) C++ Compiler
13597
13598             # KCC will only create a shared library if the output file
13599             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13600             # to its proper name (with version) after linking.
13601             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'
13602
13603             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13604             hardcode_libdir_separator_CXX=:
13605
13606             # Archives containing C++ object files must be created using
13607             # the KAI C++ compiler.
13608             case $host in
13609               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13610               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13611             esac
13612             ;;
13613           RCC*)
13614             # Rational C++ 2.4.1
13615             # FIXME: insert proper C++ library support
13616             ld_shlibs_CXX=no
13617             ;;
13618           cxx*)
13619             case $host in
13620               osf3*)
13621                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13622                 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'
13623                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13624                 ;;
13625               *)
13626                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13627                 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'
13628                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13629                   echo "-hidden">> $lib.exp~
13630                   $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~
13631                   $RM $lib.exp'
13632                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13633                 ;;
13634             esac
13635
13636             hardcode_libdir_separator_CXX=:
13637
13638             # Commands to make compiler produce verbose output that lists
13639             # what "hidden" libraries, object files and flags are used when
13640             # linking a shared library.
13641             #
13642             # There doesn't appear to be a way to prevent this compiler from
13643             # explicitly linking system object files so we need to strip them
13644             # from the output so that they don't get included in the library
13645             # dependencies.
13646             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'
13647             ;;
13648           *)
13649             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13650               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13651               case $host in
13652                 osf3*)
13653                   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'
13654                   ;;
13655                 *)
13656                   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'
13657                   ;;
13658               esac
13659
13660               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13661               hardcode_libdir_separator_CXX=:
13662
13663               # Commands to make compiler produce verbose output that lists
13664               # what "hidden" libraries, object files and flags are used when
13665               # linking a shared library.
13666               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13667
13668             else
13669               # FIXME: insert proper C++ library support
13670               ld_shlibs_CXX=no
13671             fi
13672             ;;
13673         esac
13674         ;;
13675
13676       psos*)
13677         # FIXME: insert proper C++ library support
13678         ld_shlibs_CXX=no
13679         ;;
13680
13681       sunos4*)
13682         case $cc_basename in
13683           CC*)
13684             # Sun C++ 4.x
13685             # FIXME: insert proper C++ library support
13686             ld_shlibs_CXX=no
13687             ;;
13688           lcc*)
13689             # Lucid
13690             # FIXME: insert proper C++ library support
13691             ld_shlibs_CXX=no
13692             ;;
13693           *)
13694             # FIXME: insert proper C++ library support
13695             ld_shlibs_CXX=no
13696             ;;
13697         esac
13698         ;;
13699
13700       solaris*)
13701         case $cc_basename in
13702           CC*)
13703             # Sun C++ 4.2, 5.x and Centerline C++
13704             archive_cmds_need_lc_CXX=yes
13705             no_undefined_flag_CXX=' -zdefs'
13706             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13708               $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'
13709
13710             hardcode_libdir_flag_spec_CXX='-R$libdir'
13711             hardcode_shlibpath_var_CXX=no
13712             case $host_os in
13713               solaris2.[0-5] | solaris2.[0-5].*) ;;
13714               *)
13715                 # The compiler driver will combine and reorder linker options,
13716                 # but understands `-z linker_flag'.
13717                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13718                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13719                 ;;
13720             esac
13721             link_all_deplibs_CXX=yes
13722
13723             output_verbose_link_cmd='echo'
13724
13725             # Archives containing C++ object files must be created using
13726             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13727             # necessary to make sure instantiated templates are included
13728             # in the archive.
13729             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13730             ;;
13731           gcx*)
13732             # Green Hills C++ Compiler
13733             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13734
13735             # The C++ compiler must be used to create the archive.
13736             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13737             ;;
13738           *)
13739             # GNU C++ compiler with Solaris linker
13740             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13741               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13742               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13743                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13744                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13746
13747                 # Commands to make compiler produce verbose output that lists
13748                 # what "hidden" libraries, object files and flags are used when
13749                 # linking a shared library.
13750                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13751               else
13752                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13753                 # platform.
13754                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13755                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13756                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13757
13758                 # Commands to make compiler produce verbose output that lists
13759                 # what "hidden" libraries, object files and flags are used when
13760                 # linking a shared library.
13761                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13762               fi
13763
13764               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13765               case $host_os in
13766                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13767                 *)
13768                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13769                   ;;
13770               esac
13771             fi
13772             ;;
13773         esac
13774         ;;
13775
13776     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13777       no_undefined_flag_CXX='${wl}-z,text'
13778       archive_cmds_need_lc_CXX=no
13779       hardcode_shlibpath_var_CXX=no
13780       runpath_var='LD_RUN_PATH'
13781
13782       case $cc_basename in
13783         CC*)
13784           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13786           ;;
13787         *)
13788           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13789           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790           ;;
13791       esac
13792       ;;
13793
13794       sysv5* | sco3.2v5* | sco5v6*)
13795         # Note: We can NOT use -z defs as we might desire, because we do not
13796         # link with -lc, and that would cause any symbols used from libc to
13797         # always be unresolved, which means just about no library would
13798         # ever link correctly.  If we're not using GNU ld we use -z text
13799         # though, which does catch some bad symbols but isn't as heavy-handed
13800         # as -z defs.
13801         no_undefined_flag_CXX='${wl}-z,text'
13802         allow_undefined_flag_CXX='${wl}-z,nodefs'
13803         archive_cmds_need_lc_CXX=no
13804         hardcode_shlibpath_var_CXX=no
13805         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13806         hardcode_libdir_separator_CXX=':'
13807         link_all_deplibs_CXX=yes
13808         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13809         runpath_var='LD_RUN_PATH'
13810
13811         case $cc_basename in
13812           CC*)
13813             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13815             ;;
13816           *)
13817             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13818             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13819             ;;
13820         esac
13821       ;;
13822
13823       tandem*)
13824         case $cc_basename in
13825           NCC*)
13826             # NonStop-UX NCC 3.20
13827             # FIXME: insert proper C++ library support
13828             ld_shlibs_CXX=no
13829             ;;
13830           *)
13831             # FIXME: insert proper C++ library support
13832             ld_shlibs_CXX=no
13833             ;;
13834         esac
13835         ;;
13836
13837       vxworks*)
13838         # FIXME: insert proper C++ library support
13839         ld_shlibs_CXX=no
13840         ;;
13841
13842       *)
13843         # FIXME: insert proper C++ library support
13844         ld_shlibs_CXX=no
13845         ;;
13846     esac
13847
13848     { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13849 $as_echo "$ld_shlibs_CXX" >&6; }
13850     test "$ld_shlibs_CXX" = no && can_build_shared=no
13851
13852     GCC_CXX="$GXX"
13853     LD_CXX="$LD"
13854
13855     ## CAVEAT EMPTOR:
13856     ## There is no encapsulation within the following macros, do not change
13857     ## the running order or otherwise move them around unless you know exactly
13858     ## what you are doing...
13859     # Dependencies to place before and after the object being linked:
13860 predep_objects_CXX=
13861 postdep_objects_CXX=
13862 predeps_CXX=
13863 postdeps_CXX=
13864 compiler_lib_search_path_CXX=
13865
13866 cat > conftest.$ac_ext <<_LT_EOF
13867 class Foo
13868 {
13869 public:
13870   Foo (void) { a = 0; }
13871 private:
13872   int a;
13873 };
13874 _LT_EOF
13875
13876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877   (eval $ac_compile) 2>&5
13878   ac_status=$?
13879   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; then
13881   # Parse the compiler output and extract the necessary
13882   # objects, libraries and library flags.
13883
13884   # Sentinel used to keep track of whether or not we are before
13885   # the conftest object file.
13886   pre_test_object_deps_done=no
13887
13888   for p in `eval "$output_verbose_link_cmd"`; do
13889     case $p in
13890
13891     -L* | -R* | -l*)
13892        # Some compilers place space between "-{L,R}" and the path.
13893        # Remove the space.
13894        if test $p = "-L" ||
13895           test $p = "-R"; then
13896          prev=$p
13897          continue
13898        else
13899          prev=
13900        fi
13901
13902        if test "$pre_test_object_deps_done" = no; then
13903          case $p in
13904          -L* | -R*)
13905            # Internal compiler library paths should come after those
13906            # provided the user.  The postdeps already come after the
13907            # user supplied libs so there is no need to process them.
13908            if test -z "$compiler_lib_search_path_CXX"; then
13909              compiler_lib_search_path_CXX="${prev}${p}"
13910            else
13911              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13912            fi
13913            ;;
13914          # The "-l" case would never come before the object being
13915          # linked, so don't bother handling this case.
13916          esac
13917        else
13918          if test -z "$postdeps_CXX"; then
13919            postdeps_CXX="${prev}${p}"
13920          else
13921            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13922          fi
13923        fi
13924        ;;
13925
13926     *.$objext)
13927        # This assumes that the test object file only shows up
13928        # once in the compiler output.
13929        if test "$p" = "conftest.$objext"; then
13930          pre_test_object_deps_done=yes
13931          continue
13932        fi
13933
13934        if test "$pre_test_object_deps_done" = no; then
13935          if test -z "$predep_objects_CXX"; then
13936            predep_objects_CXX="$p"
13937          else
13938            predep_objects_CXX="$predep_objects_CXX $p"
13939          fi
13940        else
13941          if test -z "$postdep_objects_CXX"; then
13942            postdep_objects_CXX="$p"
13943          else
13944            postdep_objects_CXX="$postdep_objects_CXX $p"
13945          fi
13946        fi
13947        ;;
13948
13949     *) ;; # Ignore the rest.
13950
13951     esac
13952   done
13953
13954   # Clean up.
13955   rm -f a.out a.exe
13956 else
13957   echo "libtool.m4: error: problem compiling CXX test program"
13958 fi
13959
13960 $RM -f confest.$objext
13961
13962 # PORTME: override above test on systems where it is broken
13963 case $host_os in
13964 interix[3-9]*)
13965   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13966   # hack all around it, let's just trust "g++" to DTRT.
13967   predep_objects_CXX=
13968   postdep_objects_CXX=
13969   postdeps_CXX=
13970   ;;
13971
13972 linux*)
13973   case `$CC -V 2>&1 | sed 5q` in
13974   *Sun\ C*)
13975     # Sun C++ 5.9
13976
13977     # The more standards-conforming stlport4 library is
13978     # incompatible with the Cstd library. Avoid specifying
13979     # it if it's in CXXFLAGS. Ignore libCrun as
13980     # -library=stlport4 depends on it.
13981     case " $CXX $CXXFLAGS " in
13982     *" -library=stlport4 "*)
13983       solaris_use_stlport4=yes
13984       ;;
13985     esac
13986
13987     if test "$solaris_use_stlport4" != yes; then
13988       postdeps_CXX='-library=Cstd -library=Crun'
13989     fi
13990     ;;
13991   esac
13992   ;;
13993
13994 solaris*)
13995   case $cc_basename in
13996   CC*)
13997     # The more standards-conforming stlport4 library is
13998     # incompatible with the Cstd library. Avoid specifying
13999     # it if it's in CXXFLAGS. Ignore libCrun as
14000     # -library=stlport4 depends on it.
14001     case " $CXX $CXXFLAGS " in
14002     *" -library=stlport4 "*)
14003       solaris_use_stlport4=yes
14004       ;;
14005     esac
14006
14007     # Adding this requires a known-good setup of shared libraries for
14008     # Sun compiler versions before 5.6, else PIC objects from an old
14009     # archive will be linked into the output, leading to subtle bugs.
14010     if test "$solaris_use_stlport4" != yes; then
14011       postdeps_CXX='-library=Cstd -library=Crun'
14012     fi
14013     ;;
14014   esac
14015   ;;
14016 esac
14017
14018
14019 case " $postdeps_CXX " in
14020 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14021 esac
14022  compiler_lib_search_dirs_CXX=
14023 if test -n "${compiler_lib_search_path_CXX}"; then
14024  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14025 fi
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057     lt_prog_compiler_wl_CXX=
14058 lt_prog_compiler_pic_CXX=
14059 lt_prog_compiler_static_CXX=
14060
14061 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14062 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14063
14064   # C++ specific cases for pic, static, wl, etc.
14065   if test "$GXX" = yes; then
14066     lt_prog_compiler_wl_CXX='-Wl,'
14067     lt_prog_compiler_static_CXX='-static'
14068
14069     case $host_os in
14070     aix*)
14071       # All AIX code is PIC.
14072       if test "$host_cpu" = ia64; then
14073         # AIX 5 now supports IA64 processor
14074         lt_prog_compiler_static_CXX='-Bstatic'
14075       fi
14076       ;;
14077
14078     amigaos*)
14079       case $host_cpu in
14080       powerpc)
14081             # see comment about AmigaOS4 .so support
14082             lt_prog_compiler_pic_CXX='-fPIC'
14083         ;;
14084       m68k)
14085             # FIXME: we need at least 68020 code to build shared libraries, but
14086             # adding the `-m68020' flag to GCC prevents building anything better,
14087             # like `-m68040'.
14088             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14089         ;;
14090       esac
14091       ;;
14092
14093     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14094       # PIC is the default for these OSes.
14095       ;;
14096     mingw* | cygwin* | os2* | pw32* | cegcc*)
14097       # This hack is so that the source file can tell whether it is being
14098       # built for inclusion in a dll (and should export symbols for example).
14099       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14100       # (--disable-auto-import) libraries
14101       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14102       ;;
14103     darwin* | rhapsody*)
14104       # PIC is the default on this platform
14105       # Common symbols not allowed in MH_DYLIB files
14106       lt_prog_compiler_pic_CXX='-fno-common'
14107       ;;
14108     *djgpp*)
14109       # DJGPP does not support shared libraries at all
14110       lt_prog_compiler_pic_CXX=
14111       ;;
14112     interix[3-9]*)
14113       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14114       # Instead, we relocate shared libraries at runtime.
14115       ;;
14116     sysv4*MP*)
14117       if test -d /usr/nec; then
14118         lt_prog_compiler_pic_CXX=-Kconform_pic
14119       fi
14120       ;;
14121     hpux*)
14122       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14123       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14124       # sets the default TLS model and affects inlining.
14125       case $host_cpu in
14126       hppa*64*)
14127         ;;
14128       *)
14129         lt_prog_compiler_pic_CXX='-fPIC'
14130         ;;
14131       esac
14132       ;;
14133     *qnx* | *nto*)
14134       # QNX uses GNU C++, but need to define -shared option too, otherwise
14135       # it will coredump.
14136       lt_prog_compiler_pic_CXX='-fPIC -shared'
14137       ;;
14138     *)
14139       lt_prog_compiler_pic_CXX='-fPIC'
14140       ;;
14141     esac
14142   else
14143     case $host_os in
14144       aix[4-9]*)
14145         # All AIX code is PIC.
14146         if test "$host_cpu" = ia64; then
14147           # AIX 5 now supports IA64 processor
14148           lt_prog_compiler_static_CXX='-Bstatic'
14149         else
14150           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14151         fi
14152         ;;
14153       chorus*)
14154         case $cc_basename in
14155         cxch68*)
14156           # Green Hills C++ Compiler
14157           # _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"
14158           ;;
14159         esac
14160         ;;
14161       dgux*)
14162         case $cc_basename in
14163           ec++*)
14164             lt_prog_compiler_pic_CXX='-KPIC'
14165             ;;
14166           ghcx*)
14167             # Green Hills C++ Compiler
14168             lt_prog_compiler_pic_CXX='-pic'
14169             ;;
14170           *)
14171             ;;
14172         esac
14173         ;;
14174       freebsd* | dragonfly*)
14175         # FreeBSD uses GNU C++
14176         ;;
14177       hpux9* | hpux10* | hpux11*)
14178         case $cc_basename in
14179           CC*)
14180             lt_prog_compiler_wl_CXX='-Wl,'
14181             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14182             if test "$host_cpu" != ia64; then
14183               lt_prog_compiler_pic_CXX='+Z'
14184             fi
14185             ;;
14186           aCC*)
14187             lt_prog_compiler_wl_CXX='-Wl,'
14188             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14189             case $host_cpu in
14190             hppa*64*|ia64*)
14191               # +Z the default
14192               ;;
14193             *)
14194               lt_prog_compiler_pic_CXX='+Z'
14195               ;;
14196             esac
14197             ;;
14198           *)
14199             ;;
14200         esac
14201         ;;
14202       interix*)
14203         # This is c89, which is MS Visual C++ (no shared libs)
14204         # Anyone wants to do a port?
14205         ;;
14206       irix5* | irix6* | nonstopux*)
14207         case $cc_basename in
14208           CC*)
14209             lt_prog_compiler_wl_CXX='-Wl,'
14210             lt_prog_compiler_static_CXX='-non_shared'
14211             # CC pic flag -KPIC is the default.
14212             ;;
14213           *)
14214             ;;
14215         esac
14216         ;;
14217       linux* | k*bsd*-gnu)
14218         case $cc_basename in
14219           KCC*)
14220             # KAI C++ Compiler
14221             lt_prog_compiler_wl_CXX='--backend -Wl,'
14222             lt_prog_compiler_pic_CXX='-fPIC'
14223             ;;
14224           ecpc* )
14225             # old Intel C++ for x86_64 which still supported -KPIC.
14226             lt_prog_compiler_wl_CXX='-Wl,'
14227             lt_prog_compiler_pic_CXX='-KPIC'
14228             lt_prog_compiler_static_CXX='-static'
14229             ;;
14230           icpc* )
14231             # Intel C++, used to be incompatible with GCC.
14232             # ICC 10 doesn't accept -KPIC any more.
14233             lt_prog_compiler_wl_CXX='-Wl,'
14234             lt_prog_compiler_pic_CXX='-fPIC'
14235             lt_prog_compiler_static_CXX='-static'
14236             ;;
14237           pgCC* | pgcpp*)
14238             # Portland Group C++ compiler
14239             lt_prog_compiler_wl_CXX='-Wl,'
14240             lt_prog_compiler_pic_CXX='-fpic'
14241             lt_prog_compiler_static_CXX='-Bstatic'
14242             ;;
14243           cxx*)
14244             # Compaq C++
14245             # Make sure the PIC flag is empty.  It appears that all Alpha
14246             # Linux and Compaq Tru64 Unix objects are PIC.
14247             lt_prog_compiler_pic_CXX=
14248             lt_prog_compiler_static_CXX='-non_shared'
14249             ;;
14250           xlc* | xlC*)
14251             # IBM XL 8.0 on PPC
14252             lt_prog_compiler_wl_CXX='-Wl,'
14253             lt_prog_compiler_pic_CXX='-qpic'
14254             lt_prog_compiler_static_CXX='-qstaticlink'
14255             ;;
14256           *)
14257             case `$CC -V 2>&1 | sed 5q` in
14258             *Sun\ C*)
14259               # Sun C++ 5.9
14260               lt_prog_compiler_pic_CXX='-KPIC'
14261               lt_prog_compiler_static_CXX='-Bstatic'
14262               lt_prog_compiler_wl_CXX='-Qoption ld '
14263               ;;
14264             esac
14265             ;;
14266         esac
14267         ;;
14268       lynxos*)
14269         ;;
14270       m88k*)
14271         ;;
14272       mvs*)
14273         case $cc_basename in
14274           cxx*)
14275             lt_prog_compiler_pic_CXX='-W c,exportall'
14276             ;;
14277           *)
14278             ;;
14279         esac
14280         ;;
14281       netbsd*)
14282         ;;
14283       *qnx* | *nto*)
14284         # QNX uses GNU C++, but need to define -shared option too, otherwise
14285         # it will coredump.
14286         lt_prog_compiler_pic_CXX='-fPIC -shared'
14287         ;;
14288       osf3* | osf4* | osf5*)
14289         case $cc_basename in
14290           KCC*)
14291             lt_prog_compiler_wl_CXX='--backend -Wl,'
14292             ;;
14293           RCC*)
14294             # Rational C++ 2.4.1
14295             lt_prog_compiler_pic_CXX='-pic'
14296             ;;
14297           cxx*)
14298             # Digital/Compaq C++
14299             lt_prog_compiler_wl_CXX='-Wl,'
14300             # Make sure the PIC flag is empty.  It appears that all Alpha
14301             # Linux and Compaq Tru64 Unix objects are PIC.
14302             lt_prog_compiler_pic_CXX=
14303             lt_prog_compiler_static_CXX='-non_shared'
14304             ;;
14305           *)
14306             ;;
14307         esac
14308         ;;
14309       psos*)
14310         ;;
14311       solaris*)
14312         case $cc_basename in
14313           CC*)
14314             # Sun C++ 4.2, 5.x and Centerline C++
14315             lt_prog_compiler_pic_CXX='-KPIC'
14316             lt_prog_compiler_static_CXX='-Bstatic'
14317             lt_prog_compiler_wl_CXX='-Qoption ld '
14318             ;;
14319           gcx*)
14320             # Green Hills C++ Compiler
14321             lt_prog_compiler_pic_CXX='-PIC'
14322             ;;
14323           *)
14324             ;;
14325         esac
14326         ;;
14327       sunos4*)
14328         case $cc_basename in
14329           CC*)
14330             # Sun C++ 4.x
14331             lt_prog_compiler_pic_CXX='-pic'
14332             lt_prog_compiler_static_CXX='-Bstatic'
14333             ;;
14334           lcc*)
14335             # Lucid
14336             lt_prog_compiler_pic_CXX='-pic'
14337             ;;
14338           *)
14339             ;;
14340         esac
14341         ;;
14342       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14343         case $cc_basename in
14344           CC*)
14345             lt_prog_compiler_wl_CXX='-Wl,'
14346             lt_prog_compiler_pic_CXX='-KPIC'
14347             lt_prog_compiler_static_CXX='-Bstatic'
14348             ;;
14349         esac
14350         ;;
14351       tandem*)
14352         case $cc_basename in
14353           NCC*)
14354             # NonStop-UX NCC 3.20
14355             lt_prog_compiler_pic_CXX='-KPIC'
14356             ;;
14357           *)
14358             ;;
14359         esac
14360         ;;
14361       vxworks*)
14362         ;;
14363       *)
14364         lt_prog_compiler_can_build_shared_CXX=no
14365         ;;
14366     esac
14367   fi
14368
14369 case $host_os in
14370   # For platforms which do not support PIC, -DPIC is meaningless:
14371   *djgpp*)
14372     lt_prog_compiler_pic_CXX=
14373     ;;
14374   *)
14375     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14376     ;;
14377 esac
14378 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14379 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14380
14381
14382
14383 #
14384 # Check to make sure the PIC flag actually works.
14385 #
14386 if test -n "$lt_prog_compiler_pic_CXX"; then
14387   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14388 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14389 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14390   $as_echo_n "(cached) " >&6
14391 else
14392   lt_cv_prog_compiler_pic_works_CXX=no
14393    ac_outfile=conftest.$ac_objext
14394    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14396    # Insert the option either (1) after the last *FLAGS variable, or
14397    # (2) before a word containing "conftest.", or (3) at the end.
14398    # Note that $ac_compile itself does not contain backslashes and begins
14399    # with a dollar sign (not a hyphen), so the echo should work correctly.
14400    # The option is referenced via a variable to avoid confusing sed.
14401    lt_compile=`echo "$ac_compile" | $SED \
14402    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14403    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14404    -e 's:$: $lt_compiler_flag:'`
14405    (eval echo "\"\$as_me:14405: $lt_compile\"" >&5)
14406    (eval "$lt_compile" 2>conftest.err)
14407    ac_status=$?
14408    cat conftest.err >&5
14409    echo "$as_me:14409: \$? = $ac_status" >&5
14410    if (exit $ac_status) && test -s "$ac_outfile"; then
14411      # The compiler can only warn and ignore the option if not recognized
14412      # So say no if there are warnings other than the usual output.
14413      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14414      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14415      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14416        lt_cv_prog_compiler_pic_works_CXX=yes
14417      fi
14418    fi
14419    $RM conftest*
14420
14421 fi
14422 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14423 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14424
14425 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14426     case $lt_prog_compiler_pic_CXX in
14427      "" | " "*) ;;
14428      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14429      esac
14430 else
14431     lt_prog_compiler_pic_CXX=
14432      lt_prog_compiler_can_build_shared_CXX=no
14433 fi
14434
14435 fi
14436
14437
14438
14439 #
14440 # Check to make sure the static flag actually works.
14441 #
14442 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14443 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14444 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14445 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14446   $as_echo_n "(cached) " >&6
14447 else
14448   lt_cv_prog_compiler_static_works_CXX=no
14449    save_LDFLAGS="$LDFLAGS"
14450    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14451    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14452    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14453      # The linker can only warn and ignore the option if not recognized
14454      # So say no if there are warnings
14455      if test -s conftest.err; then
14456        # Append any errors to the config.log.
14457        cat conftest.err 1>&5
14458        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14459        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14460        if diff conftest.exp conftest.er2 >/dev/null; then
14461          lt_cv_prog_compiler_static_works_CXX=yes
14462        fi
14463      else
14464        lt_cv_prog_compiler_static_works_CXX=yes
14465      fi
14466    fi
14467    $RM -r conftest*
14468    LDFLAGS="$save_LDFLAGS"
14469
14470 fi
14471 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14472 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14473
14474 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14475     :
14476 else
14477     lt_prog_compiler_static_CXX=
14478 fi
14479
14480
14481
14482
14483     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14484 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14485 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14486   $as_echo_n "(cached) " >&6
14487 else
14488   lt_cv_prog_compiler_c_o_CXX=no
14489    $RM -r conftest 2>/dev/null
14490    mkdir conftest
14491    cd conftest
14492    mkdir out
14493    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14494
14495    lt_compiler_flag="-o out/conftest2.$ac_objext"
14496    # Insert the option either (1) after the last *FLAGS variable, or
14497    # (2) before a word containing "conftest.", or (3) at the end.
14498    # Note that $ac_compile itself does not contain backslashes and begins
14499    # with a dollar sign (not a hyphen), so the echo should work correctly.
14500    lt_compile=`echo "$ac_compile" | $SED \
14501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14503    -e 's:$: $lt_compiler_flag:'`
14504    (eval echo "\"\$as_me:14504: $lt_compile\"" >&5)
14505    (eval "$lt_compile" 2>out/conftest.err)
14506    ac_status=$?
14507    cat out/conftest.err >&5
14508    echo "$as_me:14508: \$? = $ac_status" >&5
14509    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14510    then
14511      # The compiler can only warn and ignore the option if not recognized
14512      # So say no if there are warnings
14513      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14514      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14515      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14516        lt_cv_prog_compiler_c_o_CXX=yes
14517      fi
14518    fi
14519    chmod u+w . 2>&5
14520    $RM conftest*
14521    # SGI C++ compiler will create directory out/ii_files/ for
14522    # template instantiation
14523    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14524    $RM out/* && rmdir out
14525    cd ..
14526    $RM -r conftest
14527    $RM conftest*
14528
14529 fi
14530 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14531 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14532
14533
14534
14535     { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14537 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14538   $as_echo_n "(cached) " >&6
14539 else
14540   lt_cv_prog_compiler_c_o_CXX=no
14541    $RM -r conftest 2>/dev/null
14542    mkdir conftest
14543    cd conftest
14544    mkdir out
14545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14546
14547    lt_compiler_flag="-o out/conftest2.$ac_objext"
14548    # Insert the option either (1) after the last *FLAGS variable, or
14549    # (2) before a word containing "conftest.", or (3) at the end.
14550    # Note that $ac_compile itself does not contain backslashes and begins
14551    # with a dollar sign (not a hyphen), so the echo should work correctly.
14552    lt_compile=`echo "$ac_compile" | $SED \
14553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14555    -e 's:$: $lt_compiler_flag:'`
14556    (eval echo "\"\$as_me:14556: $lt_compile\"" >&5)
14557    (eval "$lt_compile" 2>out/conftest.err)
14558    ac_status=$?
14559    cat out/conftest.err >&5
14560    echo "$as_me:14560: \$? = $ac_status" >&5
14561    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14562    then
14563      # The compiler can only warn and ignore the option if not recognized
14564      # So say no if there are warnings
14565      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14566      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14567      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14568        lt_cv_prog_compiler_c_o_CXX=yes
14569      fi
14570    fi
14571    chmod u+w . 2>&5
14572    $RM conftest*
14573    # SGI C++ compiler will create directory out/ii_files/ for
14574    # template instantiation
14575    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14576    $RM out/* && rmdir out
14577    cd ..
14578    $RM -r conftest
14579    $RM conftest*
14580
14581 fi
14582 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14583 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14584
14585
14586
14587
14588 hard_links="nottested"
14589 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14590   # do not overwrite the value of need_locks provided by the user
14591   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14592 $as_echo_n "checking if we can lock with hard links... " >&6; }
14593   hard_links=yes
14594   $RM conftest*
14595   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14596   touch conftest.a
14597   ln conftest.a conftest.b 2>&5 || hard_links=no
14598   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14599   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14600 $as_echo "$hard_links" >&6; }
14601   if test "$hard_links" = no; then
14602     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14603 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14604     need_locks=warn
14605   fi
14606 else
14607   need_locks=no
14608 fi
14609
14610
14611
14612     { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14613 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14614
14615   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14616   case $host_os in
14617   aix[4-9]*)
14618     # If we're using GNU nm, then we don't want the "-C" option.
14619     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14620     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14621       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'
14622     else
14623       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'
14624     fi
14625     ;;
14626   pw32*)
14627     export_symbols_cmds_CXX="$ltdll_cmds"
14628   ;;
14629   cygwin* | mingw* | cegcc*)
14630     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'
14631   ;;
14632   *)
14633     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14634   ;;
14635   esac
14636   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14637
14638 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14639 $as_echo "$ld_shlibs_CXX" >&6; }
14640 test "$ld_shlibs_CXX" = no && can_build_shared=no
14641
14642 with_gnu_ld_CXX=$with_gnu_ld
14643
14644
14645
14646
14647
14648
14649 #
14650 # Do we need to explicitly link libc?
14651 #
14652 case "x$archive_cmds_need_lc_CXX" in
14653 x|xyes)
14654   # Assume -lc should be added
14655   archive_cmds_need_lc_CXX=yes
14656
14657   if test "$enable_shared" = yes && test "$GCC" = yes; then
14658     case $archive_cmds_CXX in
14659     *'~'*)
14660       # FIXME: we may have to deal with multi-command sequences.
14661       ;;
14662     '$CC '*)
14663       # Test whether the compiler implicitly links with -lc since on some
14664       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14665       # to ld, don't add -lc before -lgcc.
14666       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14667 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14668       $RM conftest*
14669       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14670
14671       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14672   (eval $ac_compile) 2>&5
14673   ac_status=$?
14674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); } 2>conftest.err; then
14676         soname=conftest
14677         lib=conftest
14678         libobjs=conftest.$ac_objext
14679         deplibs=
14680         wl=$lt_prog_compiler_wl_CXX
14681         pic_flag=$lt_prog_compiler_pic_CXX
14682         compiler_flags=-v
14683         linker_flags=-v
14684         verstring=
14685         output_objdir=.
14686         libname=conftest
14687         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14688         allow_undefined_flag_CXX=
14689         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14690   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14691   ac_status=$?
14692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }
14694         then
14695           archive_cmds_need_lc_CXX=no
14696         else
14697           archive_cmds_need_lc_CXX=yes
14698         fi
14699         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14700       else
14701         cat conftest.err 1>&5
14702       fi
14703       $RM conftest*
14704       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14705 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14706       ;;
14707     esac
14708   fi
14709   ;;
14710 esac
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775     { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14777
14778 library_names_spec=
14779 libname_spec='lib$name'
14780 soname_spec=
14781 shrext_cmds=".so"
14782 postinstall_cmds=
14783 postuninstall_cmds=
14784 finish_cmds=
14785 finish_eval=
14786 shlibpath_var=
14787 shlibpath_overrides_runpath=unknown
14788 version_type=none
14789 dynamic_linker="$host_os ld.so"
14790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14791 need_lib_prefix=unknown
14792 hardcode_into_libs=no
14793
14794 # when you set need_version to no, make sure it does not cause -set_version
14795 # flags to be left without arguments
14796 need_version=unknown
14797
14798 case $host_os in
14799 aix3*)
14800   version_type=linux
14801   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14802   shlibpath_var=LIBPATH
14803
14804   # AIX 3 has no versioning support, so we append a major version to the name.
14805   soname_spec='${libname}${release}${shared_ext}$major'
14806   ;;
14807
14808 aix[4-9]*)
14809   version_type=linux
14810   need_lib_prefix=no
14811   need_version=no
14812   hardcode_into_libs=yes
14813   if test "$host_cpu" = ia64; then
14814     # AIX 5 supports IA64
14815     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14816     shlibpath_var=LD_LIBRARY_PATH
14817   else
14818     # With GCC up to 2.95.x, collect2 would create an import file
14819     # for dependence libraries.  The import file would start with
14820     # the line `#! .'.  This would cause the generated library to
14821     # depend on `.', always an invalid library.  This was fixed in
14822     # development snapshots of GCC prior to 3.0.
14823     case $host_os in
14824       aix4 | aix4.[01] | aix4.[01].*)
14825       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14826            echo ' yes '
14827            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14828         :
14829       else
14830         can_build_shared=no
14831       fi
14832       ;;
14833     esac
14834     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14835     # soname into executable. Probably we can add versioning support to
14836     # collect2, so additional links can be useful in future.
14837     if test "$aix_use_runtimelinking" = yes; then
14838       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14839       # instead of lib<name>.a to let people know that these are not
14840       # typical AIX shared libraries.
14841       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14842     else
14843       # We preserve .a as extension for shared libraries through AIX4.2
14844       # and later when we are not doing run time linking.
14845       library_names_spec='${libname}${release}.a $libname.a'
14846       soname_spec='${libname}${release}${shared_ext}$major'
14847     fi
14848     shlibpath_var=LIBPATH
14849   fi
14850   ;;
14851
14852 amigaos*)
14853   case $host_cpu in
14854   powerpc)
14855     # Since July 2007 AmigaOS4 officially supports .so libraries.
14856     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14857     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14858     ;;
14859   m68k)
14860     library_names_spec='$libname.ixlibrary $libname.a'
14861     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14862     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'
14863     ;;
14864   esac
14865   ;;
14866
14867 beos*)
14868   library_names_spec='${libname}${shared_ext}'
14869   dynamic_linker="$host_os ld.so"
14870   shlibpath_var=LIBRARY_PATH
14871   ;;
14872
14873 bsdi[45]*)
14874   version_type=linux
14875   need_version=no
14876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877   soname_spec='${libname}${release}${shared_ext}$major'
14878   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14879   shlibpath_var=LD_LIBRARY_PATH
14880   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14881   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14882   # the default ld.so.conf also contains /usr/contrib/lib and
14883   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14884   # libtool to hard-code these into programs
14885   ;;
14886
14887 cygwin* | mingw* | pw32* | cegcc*)
14888   version_type=windows
14889   shrext_cmds=".dll"
14890   need_version=no
14891   need_lib_prefix=no
14892
14893   case $GCC,$host_os in
14894   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14895     library_names_spec='$libname.dll.a'
14896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14897     postinstall_cmds='base_file=`basename \${file}`~
14898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14899       dldir=$destdir/`dirname \$dlpath`~
14900       test -d \$dldir || mkdir -p \$dldir~
14901       $install_prog $dir/$dlname \$dldir/$dlname~
14902       chmod a+x \$dldir/$dlname~
14903       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14904         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14905       fi'
14906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14907       dlpath=$dir/\$dldll~
14908        $RM \$dlpath'
14909     shlibpath_overrides_runpath=yes
14910
14911     case $host_os in
14912     cygwin*)
14913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14915       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14916       ;;
14917     mingw* | cegcc*)
14918       # MinGW DLLs use traditional 'lib' prefix
14919       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14920       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14921       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14922         # It is most probably a Windows format PATH printed by
14923         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14924         # path with ; separators, and with drive letters. We can handle the
14925         # drive letters (cygwin fileutils understands them), so leave them,
14926         # especially as we might pass files found there to a mingw objdump,
14927         # which wouldn't understand a cygwinified path. Ahh.
14928         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14929       else
14930         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14931       fi
14932       ;;
14933     pw32*)
14934       # pw32 DLLs use 'pw' prefix rather than 'lib'
14935       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14936       ;;
14937     esac
14938     ;;
14939
14940   *)
14941     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14942     ;;
14943   esac
14944   dynamic_linker='Win32 ld.exe'
14945   # FIXME: first we should search . and the directory the executable is in
14946   shlibpath_var=PATH
14947   ;;
14948
14949 darwin* | rhapsody*)
14950   dynamic_linker="$host_os dyld"
14951   version_type=darwin
14952   need_lib_prefix=no
14953   need_version=no
14954   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14955   soname_spec='${libname}${release}${major}$shared_ext'
14956   shlibpath_overrides_runpath=yes
14957   shlibpath_var=DYLD_LIBRARY_PATH
14958   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14959
14960   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14961   ;;
14962
14963 dgux*)
14964   version_type=linux
14965   need_lib_prefix=no
14966   need_version=no
14967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14968   soname_spec='${libname}${release}${shared_ext}$major'
14969   shlibpath_var=LD_LIBRARY_PATH
14970   ;;
14971
14972 freebsd1*)
14973   dynamic_linker=no
14974   ;;
14975
14976 freebsd* | dragonfly*)
14977   # DragonFly does not have aout.  When/if they implement a new
14978   # versioning mechanism, adjust this.
14979   if test -x /usr/bin/objformat; then
14980     objformat=`/usr/bin/objformat`
14981   else
14982     case $host_os in
14983     freebsd[123]*) objformat=aout ;;
14984     *) objformat=elf ;;
14985     esac
14986   fi
14987   version_type=freebsd-$objformat
14988   case $version_type in
14989     freebsd-elf*)
14990       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14991       need_version=no
14992       need_lib_prefix=no
14993       ;;
14994     freebsd-*)
14995       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14996       need_version=yes
14997       ;;
14998   esac
14999   shlibpath_var=LD_LIBRARY_PATH
15000   case $host_os in
15001   freebsd2*)
15002     shlibpath_overrides_runpath=yes
15003     ;;
15004   freebsd3.[01]* | freebsdelf3.[01]*)
15005     shlibpath_overrides_runpath=yes
15006     hardcode_into_libs=yes
15007     ;;
15008   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15009   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15010     shlibpath_overrides_runpath=no
15011     hardcode_into_libs=yes
15012     ;;
15013   *) # from 4.6 on, and DragonFly
15014     shlibpath_overrides_runpath=yes
15015     hardcode_into_libs=yes
15016     ;;
15017   esac
15018   ;;
15019
15020 gnu*)
15021   version_type=linux
15022   need_lib_prefix=no
15023   need_version=no
15024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15025   soname_spec='${libname}${release}${shared_ext}$major'
15026   shlibpath_var=LD_LIBRARY_PATH
15027   hardcode_into_libs=yes
15028   ;;
15029
15030 hpux9* | hpux10* | hpux11*)
15031   # Give a soname corresponding to the major version so that dld.sl refuses to
15032   # link against other versions.
15033   version_type=sunos
15034   need_lib_prefix=no
15035   need_version=no
15036   case $host_cpu in
15037   ia64*)
15038     shrext_cmds='.so'
15039     hardcode_into_libs=yes
15040     dynamic_linker="$host_os dld.so"
15041     shlibpath_var=LD_LIBRARY_PATH
15042     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044     soname_spec='${libname}${release}${shared_ext}$major'
15045     if test "X$HPUX_IA64_MODE" = X32; then
15046       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15047     else
15048       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15049     fi
15050     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15051     ;;
15052   hppa*64*)
15053     shrext_cmds='.sl'
15054     hardcode_into_libs=yes
15055     dynamic_linker="$host_os dld.sl"
15056     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15057     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059     soname_spec='${libname}${release}${shared_ext}$major'
15060     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15061     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15062     ;;
15063   *)
15064     shrext_cmds='.sl'
15065     dynamic_linker="$host_os dld.sl"
15066     shlibpath_var=SHLIB_PATH
15067     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069     soname_spec='${libname}${release}${shared_ext}$major'
15070     ;;
15071   esac
15072   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15073   postinstall_cmds='chmod 555 $lib'
15074   ;;
15075
15076 interix[3-9]*)
15077   version_type=linux
15078   need_lib_prefix=no
15079   need_version=no
15080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15081   soname_spec='${libname}${release}${shared_ext}$major'
15082   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15083   shlibpath_var=LD_LIBRARY_PATH
15084   shlibpath_overrides_runpath=no
15085   hardcode_into_libs=yes
15086   ;;
15087
15088 irix5* | irix6* | nonstopux*)
15089   case $host_os in
15090     nonstopux*) version_type=nonstopux ;;
15091     *)
15092         if test "$lt_cv_prog_gnu_ld" = yes; then
15093                 version_type=linux
15094         else
15095                 version_type=irix
15096         fi ;;
15097   esac
15098   need_lib_prefix=no
15099   need_version=no
15100   soname_spec='${libname}${release}${shared_ext}$major'
15101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15102   case $host_os in
15103   irix5* | nonstopux*)
15104     libsuff= shlibsuff=
15105     ;;
15106   *)
15107     case $LD in # libtool.m4 will add one of these switches to LD
15108     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15109       libsuff= shlibsuff= libmagic=32-bit;;
15110     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15111       libsuff=32 shlibsuff=N32 libmagic=N32;;
15112     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15113       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15114     *) libsuff= shlibsuff= libmagic=never-match;;
15115     esac
15116     ;;
15117   esac
15118   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15119   shlibpath_overrides_runpath=no
15120   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15121   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15122   hardcode_into_libs=yes
15123   ;;
15124
15125 # No shared lib support for Linux oldld, aout, or coff.
15126 linux*oldld* | linux*aout* | linux*coff*)
15127   dynamic_linker=no
15128   ;;
15129
15130 # This must be Linux ELF.
15131 linux* | k*bsd*-gnu)
15132   version_type=linux
15133   need_lib_prefix=no
15134   need_version=no
15135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136   soname_spec='${libname}${release}${shared_ext}$major'
15137   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15138   shlibpath_var=LD_LIBRARY_PATH
15139   shlibpath_overrides_runpath=no
15140   # Some binutils ld are patched to set DT_RUNPATH
15141   save_LDFLAGS=$LDFLAGS
15142   save_libdir=$libdir
15143   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15144        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15145   cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h.  */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h.  */
15151
15152 int
15153 main ()
15154 {
15155
15156   ;
15157   return 0;
15158 }
15159 _ACEOF
15160 rm -f conftest.$ac_objext conftest$ac_exeext
15161 if { (ac_try="$ac_link"
15162 case "(($ac_try" in
15163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164   *) ac_try_echo=$ac_try;;
15165 esac
15166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15167 $as_echo "$ac_try_echo") >&5
15168   (eval "$ac_link") 2>conftest.er1
15169   ac_status=$?
15170   grep -v '^ *+' conftest.er1 >conftest.err
15171   rm -f conftest.er1
15172   cat conftest.err >&5
15173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } && {
15175          test -z "$ac_cxx_werror_flag" ||
15176          test ! -s conftest.err
15177        } && test -s conftest$ac_exeext && {
15178          test "$cross_compiling" = yes ||
15179          $as_test_x conftest$ac_exeext
15180        }; then
15181   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15182   shlibpath_overrides_runpath=yes
15183 fi
15184
15185 else
15186   $as_echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15188
15189
15190 fi
15191
15192 rm -rf conftest.dSYM
15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194       conftest$ac_exeext conftest.$ac_ext
15195   LDFLAGS=$save_LDFLAGS
15196   libdir=$save_libdir
15197
15198   # This implies no fast_install, which is unacceptable.
15199   # Some rework will be needed to allow for fast_install
15200   # before this can be enabled.
15201   hardcode_into_libs=yes
15202
15203   # Add ABI-specific directories to the system library path.
15204   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15205
15206   # Append ld.so.conf contents to the search path
15207   if test -f /etc/ld.so.conf; then
15208     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' ' '`
15209     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15210   fi
15211
15212   # We used to test for /lib/ld.so.1 and disable shared libraries on
15213   # powerpc, because MkLinux only supported shared libraries with the
15214   # GNU dynamic linker.  Since this was broken with cross compilers,
15215   # most powerpc-linux boxes support dynamic linking these days and
15216   # people can always --disable-shared, the test was removed, and we
15217   # assume the GNU/Linux dynamic linker is in use.
15218   dynamic_linker='GNU/Linux ld.so'
15219   ;;
15220
15221 netbsd*)
15222   version_type=sunos
15223   need_lib_prefix=no
15224   need_version=no
15225   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15227     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15228     dynamic_linker='NetBSD (a.out) ld.so'
15229   else
15230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15231     soname_spec='${libname}${release}${shared_ext}$major'
15232     dynamic_linker='NetBSD ld.elf_so'
15233   fi
15234   shlibpath_var=LD_LIBRARY_PATH
15235   shlibpath_overrides_runpath=yes
15236   hardcode_into_libs=yes
15237   ;;
15238
15239 newsos6)
15240   version_type=linux
15241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242   shlibpath_var=LD_LIBRARY_PATH
15243   shlibpath_overrides_runpath=yes
15244   ;;
15245
15246 *nto* | *qnx*)
15247   version_type=qnx
15248   need_lib_prefix=no
15249   need_version=no
15250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251   soname_spec='${libname}${release}${shared_ext}$major'
15252   shlibpath_var=LD_LIBRARY_PATH
15253   shlibpath_overrides_runpath=no
15254   hardcode_into_libs=yes
15255   dynamic_linker='ldqnx.so'
15256   ;;
15257
15258 openbsd*)
15259   version_type=sunos
15260   sys_lib_dlsearch_path_spec="/usr/lib"
15261   need_lib_prefix=no
15262   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15263   case $host_os in
15264     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15265     *)                          need_version=no  ;;
15266   esac
15267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15268   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15269   shlibpath_var=LD_LIBRARY_PATH
15270   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15271     case $host_os in
15272       openbsd2.[89] | openbsd2.[89].*)
15273         shlibpath_overrides_runpath=no
15274         ;;
15275       *)
15276         shlibpath_overrides_runpath=yes
15277         ;;
15278       esac
15279   else
15280     shlibpath_overrides_runpath=yes
15281   fi
15282   ;;
15283
15284 os2*)
15285   libname_spec='$name'
15286   shrext_cmds=".dll"
15287   need_lib_prefix=no
15288   library_names_spec='$libname${shared_ext} $libname.a'
15289   dynamic_linker='OS/2 ld.exe'
15290   shlibpath_var=LIBPATH
15291   ;;
15292
15293 osf3* | osf4* | osf5*)
15294   version_type=osf
15295   need_lib_prefix=no
15296   need_version=no
15297   soname_spec='${libname}${release}${shared_ext}$major'
15298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15299   shlibpath_var=LD_LIBRARY_PATH
15300   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15301   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15302   ;;
15303
15304 rdos*)
15305   dynamic_linker=no
15306   ;;
15307
15308 solaris*)
15309   version_type=linux
15310   need_lib_prefix=no
15311   need_version=no
15312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313   soname_spec='${libname}${release}${shared_ext}$major'
15314   shlibpath_var=LD_LIBRARY_PATH
15315   shlibpath_overrides_runpath=yes
15316   hardcode_into_libs=yes
15317   # ldd complains unless libraries are executable
15318   postinstall_cmds='chmod +x $lib'
15319   ;;
15320
15321 sunos4*)
15322   version_type=sunos
15323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15324   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15325   shlibpath_var=LD_LIBRARY_PATH
15326   shlibpath_overrides_runpath=yes
15327   if test "$with_gnu_ld" = yes; then
15328     need_lib_prefix=no
15329   fi
15330   need_version=yes
15331   ;;
15332
15333 sysv4 | sysv4.3*)
15334   version_type=linux
15335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336   soname_spec='${libname}${release}${shared_ext}$major'
15337   shlibpath_var=LD_LIBRARY_PATH
15338   case $host_vendor in
15339     sni)
15340       shlibpath_overrides_runpath=no
15341       need_lib_prefix=no
15342       runpath_var=LD_RUN_PATH
15343       ;;
15344     siemens)
15345       need_lib_prefix=no
15346       ;;
15347     motorola)
15348       need_lib_prefix=no
15349       need_version=no
15350       shlibpath_overrides_runpath=no
15351       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15352       ;;
15353   esac
15354   ;;
15355
15356 sysv4*MP*)
15357   if test -d /usr/nec ;then
15358     version_type=linux
15359     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15360     soname_spec='$libname${shared_ext}.$major'
15361     shlibpath_var=LD_LIBRARY_PATH
15362   fi
15363   ;;
15364
15365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15366   version_type=freebsd-elf
15367   need_lib_prefix=no
15368   need_version=no
15369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15370   soname_spec='${libname}${release}${shared_ext}$major'
15371   shlibpath_var=LD_LIBRARY_PATH
15372   shlibpath_overrides_runpath=yes
15373   hardcode_into_libs=yes
15374   if test "$with_gnu_ld" = yes; then
15375     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15376   else
15377     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15378     case $host_os in
15379       sco3.2v5*)
15380         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15381         ;;
15382     esac
15383   fi
15384   sys_lib_dlsearch_path_spec='/usr/lib'
15385   ;;
15386
15387 tpf*)
15388   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15389   version_type=linux
15390   need_lib_prefix=no
15391   need_version=no
15392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393   shlibpath_var=LD_LIBRARY_PATH
15394   shlibpath_overrides_runpath=no
15395   hardcode_into_libs=yes
15396   ;;
15397
15398 uts4*)
15399   version_type=linux
15400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401   soname_spec='${libname}${release}${shared_ext}$major'
15402   shlibpath_var=LD_LIBRARY_PATH
15403   ;;
15404
15405 *)
15406   dynamic_linker=no
15407   ;;
15408 esac
15409 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15410 $as_echo "$dynamic_linker" >&6; }
15411 test "$dynamic_linker" = no && can_build_shared=no
15412
15413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15414 if test "$GCC" = yes; then
15415   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15416 fi
15417
15418 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15419   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15420 fi
15421 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15422   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15423 fi
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460     { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15461 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15462 hardcode_action_CXX=
15463 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15464    test -n "$runpath_var_CXX" ||
15465    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15466
15467   # We can hardcode non-existent directories.
15468   if test "$hardcode_direct_CXX" != no &&
15469      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15470      # have to relink, otherwise we might link with an installed library
15471      # when we should be linking with a yet-to-be-installed one
15472      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15473      test "$hardcode_minus_L_CXX" != no; then
15474     # Linking always hardcodes the temporary library directory.
15475     hardcode_action_CXX=relink
15476   else
15477     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15478     hardcode_action_CXX=immediate
15479   fi
15480 else
15481   # We cannot hardcode anything, or else we can only hardcode existing
15482   # directories.
15483   hardcode_action_CXX=unsupported
15484 fi
15485 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15486 $as_echo "$hardcode_action_CXX" >&6; }
15487
15488 if test "$hardcode_action_CXX" = relink ||
15489    test "$inherit_rpath_CXX" = yes; then
15490   # Fast installation is not supported
15491   enable_fast_install=no
15492 elif test "$shlibpath_overrides_runpath" = yes ||
15493      test "$enable_shared" = no; then
15494   # Fast installation is not necessary
15495   enable_fast_install=needless
15496 fi
15497
15498
15499
15500
15501
15502
15503
15504   fi # test -n "$compiler"
15505
15506   CC=$lt_save_CC
15507   LDCXX=$LD
15508   LD=$lt_save_LD
15509   GCC=$lt_save_GCC
15510   with_gnu_ld=$lt_save_with_gnu_ld
15511   lt_cv_path_LDCXX=$lt_cv_path_LD
15512   lt_cv_path_LD=$lt_save_path_LD
15513   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15514   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15515 fi # test "$_lt_caught_CXX_error" != yes
15516
15517 ac_ext=c
15518 ac_cpp='$CPP $CPPFLAGS'
15519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535         ac_config_commands="$ac_config_commands libtool"
15536
15537
15538
15539
15540 # Only expand once:
15541
15542
15543 # By default we simply use the C compiler to build assembly code.
15544
15545 test "${CCAS+set}" = set || CCAS=$CC
15546 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
15547
15548
15549
15550 depcc="$CCAS"   am_compiler_list=
15551
15552 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15553 $as_echo_n "checking dependency style of $depcc... " >&6; }
15554 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
15555   $as_echo_n "(cached) " >&6
15556 else
15557   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15558   # We make a subdir and do the tests there.  Otherwise we can end up
15559   # making bogus files that we don't know about and never remove.  For
15560   # instance it was reported that on HP-UX the gcc test will end up
15561   # making a dummy file named `D' -- because `-MD' means `put the output
15562   # in D'.
15563   mkdir conftest.dir
15564   # Copy depcomp to subdir because otherwise we won't find it if we're
15565   # using a relative directory.
15566   cp "$am_depcomp" conftest.dir
15567   cd conftest.dir
15568   # We will build objects and dependencies in a subdirectory because
15569   # it helps to detect inapplicable dependency modes.  For instance
15570   # both Tru64's cc and ICC support -MD to output dependencies as a
15571   # side effect of compilation, but ICC will put the dependencies in
15572   # the current directory while Tru64 will put them in the object
15573   # directory.
15574   mkdir sub
15575
15576   am_cv_CCAS_dependencies_compiler_type=none
15577   if test "$am_compiler_list" = ""; then
15578      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15579   fi
15580   am__universal=false
15581
15582
15583   for depmode in $am_compiler_list; do
15584     # Setup a source with many dependencies, because some compilers
15585     # like to wrap large dependency lists on column 80 (with \), and
15586     # we should not choose a depcomp mode which is confused by this.
15587     #
15588     # We need to recreate these files for each test, as the compiler may
15589     # overwrite some of them when testing with obscure command lines.
15590     # This happens at least with the AIX C compiler.
15591     : > sub/conftest.c
15592     for i in 1 2 3 4 5 6; do
15593       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15594       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15595       # Solaris 8's {/usr,}/bin/sh.
15596       touch sub/conftst$i.h
15597     done
15598     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15599
15600     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15601     # mode.  It turns out that the SunPro C++ compiler does not properly
15602     # handle `-M -o', and we need to detect this.  Also, some Intel
15603     # versions had trouble with output in subdirs
15604     am__obj=sub/conftest.${OBJEXT-o}
15605     am__minus_obj="-o $am__obj"
15606     case $depmode in
15607     gcc)
15608       # This depmode causes a compiler race in universal mode.
15609       test "$am__universal" = false || continue
15610       ;;
15611     nosideeffect)
15612       # after this tag, mechanisms are not by side-effect, so they'll
15613       # only be used when explicitly requested
15614       if test "x$enable_dependency_tracking" = xyes; then
15615         continue
15616       else
15617         break
15618       fi
15619       ;;
15620     msvisualcpp | msvcmsys)
15621       # This compiler won't grok `-c -o', but also, the minuso test has
15622       # not run yet.  These depmodes are late enough in the game, and
15623       # so weak that their functioning should not be impacted.
15624       am__obj=conftest.${OBJEXT-o}
15625       am__minus_obj=
15626       ;;
15627     none) break ;;
15628     esac
15629     if depmode=$depmode \
15630        source=sub/conftest.c object=$am__obj \
15631        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15632        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15633          >/dev/null 2>conftest.err &&
15634        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15635        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15636        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15637        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15638       # icc doesn't choke on unknown options, it will just issue warnings
15639       # or remarks (even with -Werror).  So we grep stderr for any message
15640       # that says an option was ignored or not supported.
15641       # When given -MP, icc 7.0 and 7.1 complain thusly:
15642       #   icc: Command line warning: ignoring option '-M'; no argument required
15643       # The diagnosis changed in icc 8.0:
15644       #   icc: Command line remark: option '-MP' not supported
15645       if (grep 'ignoring option' conftest.err ||
15646           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15647         am_cv_CCAS_dependencies_compiler_type=$depmode
15648         break
15649       fi
15650     fi
15651   done
15652
15653   cd ..
15654   rm -rf conftest.dir
15655 else
15656   am_cv_CCAS_dependencies_compiler_type=none
15657 fi
15658
15659 fi
15660 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
15661 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
15662 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
15663
15664  if
15665   test "x$enable_dependency_tracking" != xno \
15666   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
15667   am__fastdepCCAS_TRUE=
15668   am__fastdepCCAS_FALSE='#'
15669 else
15670   am__fastdepCCAS_TRUE='#'
15671   am__fastdepCCAS_FALSE=
15672 fi
15673
15674
15675 if test "x$CC" != xcc; then
15676   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
15677 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15678 else
15679   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
15680 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15681 fi
15682 set dummy $CC; ac_cc=`$as_echo "$2" |
15683                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15684 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
15685   $as_echo_n "(cached) " >&6
15686 else
15687   cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h.  */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h.  */
15693
15694 int
15695 main ()
15696 {
15697
15698   ;
15699   return 0;
15700 }
15701 _ACEOF
15702 # Make sure it works both with $CC and with simple cc.
15703 # We do the test twice because some compilers refuse to overwrite an
15704 # existing .o file with -o, though they will create one.
15705 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15706 rm -f conftest2.*
15707 if { (case "(($ac_try" in
15708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709   *) ac_try_echo=$ac_try;;
15710 esac
15711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15712 $as_echo "$ac_try_echo") >&5
15713   (eval "$ac_try") 2>&5
15714   ac_status=$?
15715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); } &&
15717    test -f conftest2.$ac_objext && { (case "(($ac_try" in
15718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719   *) ac_try_echo=$ac_try;;
15720 esac
15721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723   (eval "$ac_try") 2>&5
15724   ac_status=$?
15725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); };
15727 then
15728   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15729   if test "x$CC" != xcc; then
15730     # Test first that cc exists at all.
15731     if { ac_try='cc -c conftest.$ac_ext >&5'
15732   { (case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15737 $as_echo "$ac_try_echo") >&5
15738   (eval "$ac_try") 2>&5
15739   ac_status=$?
15740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741   (exit $ac_status); }; }; then
15742       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15743       rm -f conftest2.*
15744       if { (case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15749 $as_echo "$ac_try_echo") >&5
15750   (eval "$ac_try") 2>&5
15751   ac_status=$?
15752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } &&
15754          test -f conftest2.$ac_objext && { (case "(($ac_try" in
15755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756   *) ac_try_echo=$ac_try;;
15757 esac
15758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759 $as_echo "$ac_try_echo") >&5
15760   (eval "$ac_try") 2>&5
15761   ac_status=$?
15762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); };
15764       then
15765         # cc works too.
15766         :
15767       else
15768         # cc exists but doesn't like -o.
15769         eval ac_cv_prog_cc_${ac_cc}_c_o=no
15770       fi
15771     fi
15772   fi
15773 else
15774   eval ac_cv_prog_cc_${ac_cc}_c_o=no
15775 fi
15776 rm -f core conftest*
15777
15778 fi
15779 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15780   { $as_echo "$as_me:$LINENO: result: yes" >&5
15781 $as_echo "yes" >&6; }
15782 else
15783   { $as_echo "$as_me:$LINENO: result: no" >&5
15784 $as_echo "no" >&6; }
15785
15786 cat >>confdefs.h <<\_ACEOF
15787 #define NO_MINUS_C_MINUS_O 1
15788 _ACEOF
15789
15790 fi
15791
15792 # FIXME: we rely on the cache variable name because
15793 # there is no other way.
15794 set dummy $CC
15795 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15796 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15797 if test "$am_t" != yes; then
15798    # Losing compiler, so override with the script.
15799    # FIXME: It is wrong to rewrite CC.
15800    # But if we don't then we get into trouble of one sort or another.
15801    # A longer-term fix would be to have automake use am__CC in this case,
15802    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15803    CC="$am_aux_dir/compile $CC"
15804 fi
15805
15806
15807
15808
15809 { $as_echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
15810 $as_echo_n "checking for __uc_get_grs in -luca... " >&6; }
15811 if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
15812   $as_echo_n "(cached) " >&6
15813 else
15814   ac_check_lib_save_LIBS=$LIBS
15815 LIBS="-luca  $LIBS"
15816 cat >conftest.$ac_ext <<_ACEOF
15817 /* confdefs.h.  */
15818 _ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h.  */
15822
15823 /* Override any GCC internal prototype to avoid an error.
15824    Use char because int might match the return type of a GCC
15825    builtin and then its argument prototype would still apply.  */
15826 #ifdef __cplusplus
15827 extern "C"
15828 #endif
15829 char __uc_get_grs ();
15830 int
15831 main ()
15832 {
15833 return __uc_get_grs ();
15834   ;
15835   return 0;
15836 }
15837 _ACEOF
15838 rm -f conftest.$ac_objext conftest$ac_exeext
15839 if { (ac_try="$ac_link"
15840 case "(($ac_try" in
15841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842   *) ac_try_echo=$ac_try;;
15843 esac
15844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15845 $as_echo "$ac_try_echo") >&5
15846   (eval "$ac_link") 2>conftest.er1
15847   ac_status=$?
15848   grep -v '^ *+' conftest.er1 >conftest.err
15849   rm -f conftest.er1
15850   cat conftest.err >&5
15851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } && {
15853          test -z "$ac_c_werror_flag" ||
15854          test ! -s conftest.err
15855        } && test -s conftest$ac_exeext && {
15856          test "$cross_compiling" = yes ||
15857          $as_test_x conftest$ac_exeext
15858        }; then
15859   ac_cv_lib_uca___uc_get_grs=yes
15860 else
15861   $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864         ac_cv_lib_uca___uc_get_grs=no
15865 fi
15866
15867 rm -rf conftest.dSYM
15868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15869       conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15871 fi
15872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
15873 $as_echo "$ac_cv_lib_uca___uc_get_grs" >&6; }
15874 if test "x$ac_cv_lib_uca___uc_get_grs" = x""yes; then
15875   cat >>confdefs.h <<_ACEOF
15876 #define HAVE_LIBUCA 1
15877 _ACEOF
15878
15879   LIBS="-luca $LIBS"
15880
15881 fi
15882
15883 OLD_LIBS=${LIBS}
15884 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15885 $as_echo_n "checking for library containing dlopen... " >&6; }
15886 if test "${ac_cv_search_dlopen+set}" = set; then
15887   $as_echo_n "(cached) " >&6
15888 else
15889   ac_func_search_save_LIBS=$LIBS
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h.  */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h.  */
15896
15897 /* Override any GCC internal prototype to avoid an error.
15898    Use char because int might match the return type of a GCC
15899    builtin and then its argument prototype would still apply.  */
15900 #ifdef __cplusplus
15901 extern "C"
15902 #endif
15903 char dlopen ();
15904 int
15905 main ()
15906 {
15907 return dlopen ();
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 for ac_lib in '' dl; do
15913   if test -z "$ac_lib"; then
15914     ac_res="none required"
15915   else
15916     ac_res=-l$ac_lib
15917     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15918   fi
15919   rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923   *) ac_try_echo=$ac_try;;
15924 esac
15925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15926 $as_echo "$ac_try_echo") >&5
15927   (eval "$ac_link") 2>conftest.er1
15928   ac_status=$?
15929   grep -v '^ *+' conftest.er1 >conftest.err
15930   rm -f conftest.er1
15931   cat conftest.err >&5
15932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } && {
15934          test -z "$ac_c_werror_flag" ||
15935          test ! -s conftest.err
15936        } && test -s conftest$ac_exeext && {
15937          test "$cross_compiling" = yes ||
15938          $as_test_x conftest$ac_exeext
15939        }; then
15940   ac_cv_search_dlopen=$ac_res
15941 else
15942   $as_echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945
15946 fi
15947
15948 rm -rf conftest.dSYM
15949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15950       conftest$ac_exeext
15951   if test "${ac_cv_search_dlopen+set}" = set; then
15952   break
15953 fi
15954 done
15955 if test "${ac_cv_search_dlopen+set}" = set; then
15956   :
15957 else
15958   ac_cv_search_dlopen=no
15959 fi
15960 rm conftest.$ac_ext
15961 LIBS=$ac_func_search_save_LIBS
15962 fi
15963 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15964 $as_echo "$ac_cv_search_dlopen" >&6; }
15965 ac_res=$ac_cv_search_dlopen
15966 if test "$ac_res" != no; then
15967   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15968
15969 fi
15970
15971 LIBS=${OLD_LIBS}
15972 case "$ac_cv_search_dlopen" in
15973   -l*) DLLIB=$ac_cv_search_dlopen;;
15974   *) DLLIB="";;
15975 esac
15976
15977
15978 for ac_header in atomic_ops.h
15979 do
15980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15982   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15983 $as_echo_n "checking for $ac_header... " >&6; }
15984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985   $as_echo_n "(cached) " >&6
15986 fi
15987 ac_res=`eval 'as_val=${'$as_ac_Header'}
15988                  $as_echo "$as_val"'`
15989                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15990 $as_echo "$ac_res" >&6; }
15991 else
15992   # Is the header compilable?
15993 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15994 $as_echo_n "checking $ac_header usability... " >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001 $ac_includes_default
16002 #include <$ac_header>
16003 _ACEOF
16004 rm -f conftest.$ac_objext
16005 if { (ac_try="$ac_compile"
16006 case "(($ac_try" in
16007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008   *) ac_try_echo=$ac_try;;
16009 esac
16010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16011 $as_echo "$ac_try_echo") >&5
16012   (eval "$ac_compile") 2>conftest.er1
16013   ac_status=$?
16014   grep -v '^ *+' conftest.er1 >conftest.err
16015   rm -f conftest.er1
16016   cat conftest.err >&5
16017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } && {
16019          test -z "$ac_c_werror_flag" ||
16020          test ! -s conftest.err
16021        } && test -s conftest.$ac_objext; then
16022   ac_header_compiler=yes
16023 else
16024   $as_echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027         ac_header_compiler=no
16028 fi
16029
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16032 $as_echo "$ac_header_compiler" >&6; }
16033
16034 # Is the header present?
16035 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16036 $as_echo_n "checking $ac_header presence... " >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 #include <$ac_header>
16044 _ACEOF
16045 if { (ac_try="$ac_cpp conftest.$ac_ext"
16046 case "(($ac_try" in
16047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048   *) ac_try_echo=$ac_try;;
16049 esac
16050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16051 $as_echo "$ac_try_echo") >&5
16052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } >/dev/null && {
16059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16060          test ! -s conftest.err
16061        }; then
16062   ac_header_preproc=yes
16063 else
16064   $as_echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067   ac_header_preproc=no
16068 fi
16069
16070 rm -f conftest.err conftest.$ac_ext
16071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16072 $as_echo "$ac_header_preproc" >&6; }
16073
16074 # So?  What about this header?
16075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16076   yes:no: )
16077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16078 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16081     ac_header_preproc=yes
16082     ;;
16083   no:yes:* )
16084     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16085 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16087 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16089 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16091 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16093 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16095 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16096     ( cat <<\_ASBOX
16097 ## ----------------------------------------- ##
16098 ## Report this to libunwind-devel@nongnu.org ##
16099 ## ----------------------------------------- ##
16100 _ASBOX
16101      ) | sed "s/^/$as_me: WARNING:     /" >&2
16102     ;;
16103 esac
16104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16105 $as_echo_n "checking for $ac_header... " >&6; }
16106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16107   $as_echo_n "(cached) " >&6
16108 else
16109   eval "$as_ac_Header=\$ac_header_preproc"
16110 fi
16111 ac_res=`eval 'as_val=${'$as_ac_Header'}
16112                  $as_echo "$as_val"'`
16113                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16114 $as_echo "$ac_res" >&6; }
16115
16116 fi
16117 as_val=`eval 'as_val=${'$as_ac_Header'}
16118                  $as_echo "$as_val"'`
16119    if test "x$as_val" = x""yes; then
16120   cat >>confdefs.h <<_ACEOF
16121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16122 _ACEOF
16123
16124 fi
16125
16126 done
16127
16128 #
16129 # Don't link against libatomic_ops for now.  We don't want libunwind
16130 # to depend on libatomic_ops.so.  Fortunately, none of the platforms
16131 # we care about so far need libatomic_ops.a (everything is done via
16132 # inline macros).
16133 #
16134 #  AC_CHECK_LIB(atomic_ops, main)
16135
16136
16137 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16138 $as_echo_n "checking for ANSI C header files... " >&6; }
16139 if test "${ac_cv_header_stdc+set}" = set; then
16140   $as_echo_n "(cached) " >&6
16141 else
16142   cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 #include <stdlib.h>
16149 #include <stdarg.h>
16150 #include <string.h>
16151 #include <float.h>
16152
16153 int
16154 main ()
16155 {
16156
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext
16162 if { (ac_try="$ac_compile"
16163 case "(($ac_try" in
16164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165   *) ac_try_echo=$ac_try;;
16166 esac
16167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16168 $as_echo "$ac_try_echo") >&5
16169   (eval "$ac_compile") 2>conftest.er1
16170   ac_status=$?
16171   grep -v '^ *+' conftest.er1 >conftest.err
16172   rm -f conftest.er1
16173   cat conftest.err >&5
16174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); } && {
16176          test -z "$ac_c_werror_flag" ||
16177          test ! -s conftest.err
16178        } && test -s conftest.$ac_objext; then
16179   ac_cv_header_stdc=yes
16180 else
16181   $as_echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16183
16184         ac_cv_header_stdc=no
16185 fi
16186
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16188
16189 if test $ac_cv_header_stdc = yes; then
16190   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16191   cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197 #include <string.h>
16198
16199 _ACEOF
16200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16201   $EGREP "memchr" >/dev/null 2>&1; then
16202   :
16203 else
16204   ac_cv_header_stdc=no
16205 fi
16206 rm -f conftest*
16207
16208 fi
16209
16210 if test $ac_cv_header_stdc = yes; then
16211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16212   cat >conftest.$ac_ext <<_ACEOF
16213 /* confdefs.h.  */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h.  */
16218 #include <stdlib.h>
16219
16220 _ACEOF
16221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16222   $EGREP "free" >/dev/null 2>&1; then
16223   :
16224 else
16225   ac_cv_header_stdc=no
16226 fi
16227 rm -f conftest*
16228
16229 fi
16230
16231 if test $ac_cv_header_stdc = yes; then
16232   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16233   if test "$cross_compiling" = yes; then
16234   :
16235 else
16236   cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h.  */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h.  */
16242 #include <ctype.h>
16243 #include <stdlib.h>
16244 #if ((' ' & 0x0FF) == 0x020)
16245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16247 #else
16248 # define ISLOWER(c) \
16249                    (('a' <= (c) && (c) <= 'i') \
16250                      || ('j' <= (c) && (c) <= 'r') \
16251                      || ('s' <= (c) && (c) <= 'z'))
16252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16253 #endif
16254
16255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16256 int
16257 main ()
16258 {
16259   int i;
16260   for (i = 0; i < 256; i++)
16261     if (XOR (islower (i), ISLOWER (i))
16262         || toupper (i) != TOUPPER (i))
16263       return 2;
16264   return 0;
16265 }
16266 _ACEOF
16267 rm -f conftest$ac_exeext
16268 if { (ac_try="$ac_link"
16269 case "(($ac_try" in
16270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271   *) ac_try_echo=$ac_try;;
16272 esac
16273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16274 $as_echo "$ac_try_echo") >&5
16275   (eval "$ac_link") 2>&5
16276   ac_status=$?
16277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16279   { (case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16284 $as_echo "$ac_try_echo") >&5
16285   (eval "$ac_try") 2>&5
16286   ac_status=$?
16287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; }; then
16289   :
16290 else
16291   $as_echo "$as_me: program exited with status $ac_status" >&5
16292 $as_echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295 ( exit $ac_status )
16296 ac_cv_header_stdc=no
16297 fi
16298 rm -rf conftest.dSYM
16299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16300 fi
16301
16302
16303 fi
16304 fi
16305 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16306 $as_echo "$ac_cv_header_stdc" >&6; }
16307 if test $ac_cv_header_stdc = yes; then
16308
16309 cat >>confdefs.h <<\_ACEOF
16310 #define STDC_HEADERS 1
16311 _ACEOF
16312
16313 fi
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331 for ac_header in asm/ptrace_offsets.h endian.h sys/endian.h execinfo.h \
16332                 ia64intrin.h sys/uc_access.h unistd.h signal.h sys/types.h \
16333                 sys/procfs.h sys/ptrace.h byteswap.h elf.h sys/elf.h link.h sys/link.h
16334 do
16335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16337   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16338 $as_echo_n "checking for $ac_header... " >&6; }
16339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16340   $as_echo_n "(cached) " >&6
16341 fi
16342 ac_res=`eval 'as_val=${'$as_ac_Header'}
16343                  $as_echo "$as_val"'`
16344                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16345 $as_echo "$ac_res" >&6; }
16346 else
16347   # Is the header compilable?
16348 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16349 $as_echo_n "checking $ac_header usability... " >&6; }
16350 cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356 $ac_includes_default
16357 #include <$ac_header>
16358 _ACEOF
16359 rm -f conftest.$ac_objext
16360 if { (ac_try="$ac_compile"
16361 case "(($ac_try" in
16362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363   *) ac_try_echo=$ac_try;;
16364 esac
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367   (eval "$ac_compile") 2>conftest.er1
16368   ac_status=$?
16369   grep -v '^ *+' conftest.er1 >conftest.err
16370   rm -f conftest.er1
16371   cat conftest.err >&5
16372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } && {
16374          test -z "$ac_c_werror_flag" ||
16375          test ! -s conftest.err
16376        } && test -s conftest.$ac_objext; then
16377   ac_header_compiler=yes
16378 else
16379   $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382         ac_header_compiler=no
16383 fi
16384
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16387 $as_echo "$ac_header_compiler" >&6; }
16388
16389 # Is the header present?
16390 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16391 $as_echo_n "checking $ac_header presence... " >&6; }
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h.  */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h.  */
16398 #include <$ac_header>
16399 _ACEOF
16400 if { (ac_try="$ac_cpp conftest.$ac_ext"
16401 case "(($ac_try" in
16402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403   *) ac_try_echo=$ac_try;;
16404 esac
16405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16406 $as_echo "$ac_try_echo") >&5
16407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16408   ac_status=$?
16409   grep -v '^ *+' conftest.er1 >conftest.err
16410   rm -f conftest.er1
16411   cat conftest.err >&5
16412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); } >/dev/null && {
16414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16415          test ! -s conftest.err
16416        }; then
16417   ac_header_preproc=yes
16418 else
16419   $as_echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422   ac_header_preproc=no
16423 fi
16424
16425 rm -f conftest.err conftest.$ac_ext
16426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16427 $as_echo "$ac_header_preproc" >&6; }
16428
16429 # So?  What about this header?
16430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16431   yes:no: )
16432     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16433 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16436     ac_header_preproc=yes
16437     ;;
16438   no:yes:* )
16439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16440 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16441     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16442 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16444 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16446 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16450 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16451     ( cat <<\_ASBOX
16452 ## ----------------------------------------- ##
16453 ## Report this to libunwind-devel@nongnu.org ##
16454 ## ----------------------------------------- ##
16455 _ASBOX
16456      ) | sed "s/^/$as_me: WARNING:     /" >&2
16457     ;;
16458 esac
16459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16460 $as_echo_n "checking for $ac_header... " >&6; }
16461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16462   $as_echo_n "(cached) " >&6
16463 else
16464   eval "$as_ac_Header=\$ac_header_preproc"
16465 fi
16466 ac_res=`eval 'as_val=${'$as_ac_Header'}
16467                  $as_echo "$as_val"'`
16468                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16469 $as_echo "$ac_res" >&6; }
16470
16471 fi
16472 as_val=`eval 'as_val=${'$as_ac_Header'}
16473                  $as_echo "$as_val"'`
16474    if test "x$as_val" = x""yes; then
16475   cat >>confdefs.h <<_ACEOF
16476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16477 _ACEOF
16478
16479 fi
16480
16481 done
16482
16483
16484 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16485 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16486 if test "${ac_cv_c_const+set}" = set; then
16487   $as_echo_n "(cached) " >&6
16488 else
16489   cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495
16496 int
16497 main ()
16498 {
16499 /* FIXME: Include the comments suggested by Paul. */
16500 #ifndef __cplusplus
16501   /* Ultrix mips cc rejects this.  */
16502   typedef int charset[2];
16503   const charset cs;
16504   /* SunOS 4.1.1 cc rejects this.  */
16505   char const *const *pcpcc;
16506   char **ppc;
16507   /* NEC SVR4.0.2 mips cc rejects this.  */
16508   struct point {int x, y;};
16509   static struct point const zero = {0,0};
16510   /* AIX XL C 1.02.0.0 rejects this.
16511      It does not let you subtract one const X* pointer from another in
16512      an arm of an if-expression whose if-part is not a constant
16513      expression */
16514   const char *g = "string";
16515   pcpcc = &g + (g ? g-g : 0);
16516   /* HPUX 7.0 cc rejects these. */
16517   ++pcpcc;
16518   ppc = (char**) pcpcc;
16519   pcpcc = (char const *const *) ppc;
16520   { /* SCO 3.2v4 cc rejects this.  */
16521     char *t;
16522     char const *s = 0 ? (char *) 0 : (char const *) 0;
16523
16524     *t++ = 0;
16525     if (s) return 0;
16526   }
16527   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16528     int x[] = {25, 17};
16529     const int *foo = &x[0];
16530     ++foo;
16531   }
16532   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16533     typedef const int *iptr;
16534     iptr p = 0;
16535     ++p;
16536   }
16537   { /* AIX XL C 1.02.0.0 rejects this saying
16538        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16539     struct s { int j; const int *ap[3]; };
16540     struct s *b; b->j = 5;
16541   }
16542   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16543     const int foo = 10;
16544     if (!foo) return 0;
16545   }
16546   return !cs[0] && !zero.x;
16547 #endif
16548
16549   ;
16550   return 0;
16551 }
16552 _ACEOF
16553 rm -f conftest.$ac_objext
16554 if { (ac_try="$ac_compile"
16555 case "(($ac_try" in
16556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557   *) ac_try_echo=$ac_try;;
16558 esac
16559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16560 $as_echo "$ac_try_echo") >&5
16561   (eval "$ac_compile") 2>conftest.er1
16562   ac_status=$?
16563   grep -v '^ *+' conftest.er1 >conftest.err
16564   rm -f conftest.er1
16565   cat conftest.err >&5
16566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } && {
16568          test -z "$ac_c_werror_flag" ||
16569          test ! -s conftest.err
16570        } && test -s conftest.$ac_objext; then
16571   ac_cv_c_const=yes
16572 else
16573   $as_echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576         ac_cv_c_const=no
16577 fi
16578
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 fi
16581 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16582 $as_echo "$ac_cv_c_const" >&6; }
16583 if test $ac_cv_c_const = no; then
16584
16585 cat >>confdefs.h <<\_ACEOF
16586 #define const /**/
16587 _ACEOF
16588
16589 fi
16590
16591 { $as_echo "$as_me:$LINENO: checking for inline" >&5
16592 $as_echo_n "checking for inline... " >&6; }
16593 if test "${ac_cv_c_inline+set}" = set; then
16594   $as_echo_n "(cached) " >&6
16595 else
16596   ac_cv_c_inline=no
16597 for ac_kw in inline __inline__ __inline; do
16598   cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h.  */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h.  */
16604 #ifndef __cplusplus
16605 typedef int foo_t;
16606 static $ac_kw foo_t static_foo () {return 0; }
16607 $ac_kw foo_t foo () {return 0; }
16608 #endif
16609
16610 _ACEOF
16611 rm -f conftest.$ac_objext
16612 if { (ac_try="$ac_compile"
16613 case "(($ac_try" in
16614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615   *) ac_try_echo=$ac_try;;
16616 esac
16617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16618 $as_echo "$ac_try_echo") >&5
16619   (eval "$ac_compile") 2>conftest.er1
16620   ac_status=$?
16621   grep -v '^ *+' conftest.er1 >conftest.err
16622   rm -f conftest.er1
16623   cat conftest.err >&5
16624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); } && {
16626          test -z "$ac_c_werror_flag" ||
16627          test ! -s conftest.err
16628        } && test -s conftest.$ac_objext; then
16629   ac_cv_c_inline=$ac_kw
16630 else
16631   $as_echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634
16635 fi
16636
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638   test "$ac_cv_c_inline" != no && break
16639 done
16640
16641 fi
16642 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16643 $as_echo "$ac_cv_c_inline" >&6; }
16644
16645
16646 case $ac_cv_c_inline in
16647   inline | yes) ;;
16648   *)
16649     case $ac_cv_c_inline in
16650       no) ac_val=;;
16651       *) ac_val=$ac_cv_c_inline;;
16652     esac
16653     cat >>confdefs.h <<_ACEOF
16654 #ifndef __cplusplus
16655 #define inline $ac_val
16656 #endif
16657 _ACEOF
16658     ;;
16659 esac
16660
16661 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
16662 $as_echo_n "checking for size_t... " >&6; }
16663 if test "${ac_cv_type_size_t+set}" = set; then
16664   $as_echo_n "(cached) " >&6
16665 else
16666   ac_cv_type_size_t=no
16667 cat >conftest.$ac_ext <<_ACEOF
16668 /* confdefs.h.  */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h.  */
16673 $ac_includes_default
16674 int
16675 main ()
16676 {
16677 if (sizeof (size_t))
16678        return 0;
16679   ;
16680   return 0;
16681 }
16682 _ACEOF
16683 rm -f conftest.$ac_objext
16684 if { (ac_try="$ac_compile"
16685 case "(($ac_try" in
16686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687   *) ac_try_echo=$ac_try;;
16688 esac
16689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16690 $as_echo "$ac_try_echo") >&5
16691   (eval "$ac_compile") 2>conftest.er1
16692   ac_status=$?
16693   grep -v '^ *+' conftest.er1 >conftest.err
16694   rm -f conftest.er1
16695   cat conftest.err >&5
16696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } && {
16698          test -z "$ac_c_werror_flag" ||
16699          test ! -s conftest.err
16700        } && test -s conftest.$ac_objext; then
16701   cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h.  */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h.  */
16707 $ac_includes_default
16708 int
16709 main ()
16710 {
16711 if (sizeof ((size_t)))
16712           return 0;
16713   ;
16714   return 0;
16715 }
16716 _ACEOF
16717 rm -f conftest.$ac_objext
16718 if { (ac_try="$ac_compile"
16719 case "(($ac_try" in
16720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721   *) ac_try_echo=$ac_try;;
16722 esac
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725   (eval "$ac_compile") 2>conftest.er1
16726   ac_status=$?
16727   grep -v '^ *+' conftest.er1 >conftest.err
16728   rm -f conftest.er1
16729   cat conftest.err >&5
16730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } && {
16732          test -z "$ac_c_werror_flag" ||
16733          test ! -s conftest.err
16734        } && test -s conftest.$ac_objext; then
16735   :
16736 else
16737   $as_echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740         ac_cv_type_size_t=yes
16741 fi
16742
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16744 else
16745   $as_echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748
16749 fi
16750
16751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752 fi
16753 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16754 $as_echo "$ac_cv_type_size_t" >&6; }
16755 if test "x$ac_cv_type_size_t" = x""yes; then
16756   :
16757 else
16758
16759 cat >>confdefs.h <<_ACEOF
16760 #define size_t unsigned int
16761 _ACEOF
16762
16763 fi
16764
16765 # The cast to long int works around a bug in the HP C Compiler
16766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16768 # This bug is HP SR number 8606223364.
16769 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
16770 $as_echo_n "checking size of off_t... " >&6; }
16771 if test "${ac_cv_sizeof_off_t+set}" = set; then
16772   $as_echo_n "(cached) " >&6
16773 else
16774   if test "$cross_compiling" = yes; then
16775   # Depending upon the size, compute the lo and hi bounds.
16776 cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h.  */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h.  */
16782 $ac_includes_default
16783 int
16784 main ()
16785 {
16786 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
16787 test_array [0] = 0
16788
16789   ;
16790   return 0;
16791 }
16792 _ACEOF
16793 rm -f conftest.$ac_objext
16794 if { (ac_try="$ac_compile"
16795 case "(($ac_try" in
16796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797   *) ac_try_echo=$ac_try;;
16798 esac
16799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16800 $as_echo "$ac_try_echo") >&5
16801   (eval "$ac_compile") 2>conftest.er1
16802   ac_status=$?
16803   grep -v '^ *+' conftest.er1 >conftest.err
16804   rm -f conftest.er1
16805   cat conftest.err >&5
16806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807   (exit $ac_status); } && {
16808          test -z "$ac_c_werror_flag" ||
16809          test ! -s conftest.err
16810        } && test -s conftest.$ac_objext; then
16811   ac_lo=0 ac_mid=0
16812   while :; do
16813     cat >conftest.$ac_ext <<_ACEOF
16814 /* confdefs.h.  */
16815 _ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h.  */
16819 $ac_includes_default
16820 int
16821 main ()
16822 {
16823 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
16824 test_array [0] = 0
16825
16826   ;
16827   return 0;
16828 }
16829 _ACEOF
16830 rm -f conftest.$ac_objext
16831 if { (ac_try="$ac_compile"
16832 case "(($ac_try" in
16833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834   *) ac_try_echo=$ac_try;;
16835 esac
16836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16837 $as_echo "$ac_try_echo") >&5
16838   (eval "$ac_compile") 2>conftest.er1
16839   ac_status=$?
16840   grep -v '^ *+' conftest.er1 >conftest.err
16841   rm -f conftest.er1
16842   cat conftest.err >&5
16843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); } && {
16845          test -z "$ac_c_werror_flag" ||
16846          test ! -s conftest.err
16847        } && test -s conftest.$ac_objext; then
16848   ac_hi=$ac_mid; break
16849 else
16850   $as_echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853         ac_lo=`expr $ac_mid + 1`
16854                         if test $ac_lo -le $ac_mid; then
16855                           ac_lo= ac_hi=
16856                           break
16857                         fi
16858                         ac_mid=`expr 2 '*' $ac_mid + 1`
16859 fi
16860
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16862   done
16863 else
16864   $as_echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16866
16867         cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h.  */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h.  */
16873 $ac_includes_default
16874 int
16875 main ()
16876 {
16877 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
16878 test_array [0] = 0
16879
16880   ;
16881   return 0;
16882 }
16883 _ACEOF
16884 rm -f conftest.$ac_objext
16885 if { (ac_try="$ac_compile"
16886 case "(($ac_try" in
16887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888   *) ac_try_echo=$ac_try;;
16889 esac
16890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16891 $as_echo "$ac_try_echo") >&5
16892   (eval "$ac_compile") 2>conftest.er1
16893   ac_status=$?
16894   grep -v '^ *+' conftest.er1 >conftest.err
16895   rm -f conftest.er1
16896   cat conftest.err >&5
16897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } && {
16899          test -z "$ac_c_werror_flag" ||
16900          test ! -s conftest.err
16901        } && test -s conftest.$ac_objext; then
16902   ac_hi=-1 ac_mid=-1
16903   while :; do
16904     cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h.  */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h.  */
16910 $ac_includes_default
16911 int
16912 main ()
16913 {
16914 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
16915 test_array [0] = 0
16916
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext
16922 if { (ac_try="$ac_compile"
16923 case "(($ac_try" in
16924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925   *) ac_try_echo=$ac_try;;
16926 esac
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929   (eval "$ac_compile") 2>conftest.er1
16930   ac_status=$?
16931   grep -v '^ *+' conftest.er1 >conftest.err
16932   rm -f conftest.er1
16933   cat conftest.err >&5
16934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935   (exit $ac_status); } && {
16936          test -z "$ac_c_werror_flag" ||
16937          test ! -s conftest.err
16938        } && test -s conftest.$ac_objext; then
16939   ac_lo=$ac_mid; break
16940 else
16941   $as_echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944         ac_hi=`expr '(' $ac_mid ')' - 1`
16945                         if test $ac_mid -le $ac_hi; then
16946                           ac_lo= ac_hi=
16947                           break
16948                         fi
16949                         ac_mid=`expr 2 '*' $ac_mid`
16950 fi
16951
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16953   done
16954 else
16955   $as_echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958         ac_lo= ac_hi=
16959 fi
16960
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 fi
16963
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 # Binary search between lo and hi bounds.
16966 while test "x$ac_lo" != "x$ac_hi"; do
16967   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16968   cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h.  */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h.  */
16974 $ac_includes_default
16975 int
16976 main ()
16977 {
16978 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
16979 test_array [0] = 0
16980
16981   ;
16982   return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989   *) ac_try_echo=$ac_try;;
16990 esac
16991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16992 $as_echo "$ac_try_echo") >&5
16993   (eval "$ac_compile") 2>conftest.er1
16994   ac_status=$?
16995   grep -v '^ *+' conftest.er1 >conftest.err
16996   rm -f conftest.er1
16997   cat conftest.err >&5
16998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } && {
17000          test -z "$ac_c_werror_flag" ||
17001          test ! -s conftest.err
17002        } && test -s conftest.$ac_objext; then
17003   ac_hi=$ac_mid
17004 else
17005   $as_echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17007
17008         ac_lo=`expr '(' $ac_mid ')' + 1`
17009 fi
17010
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 done
17013 case $ac_lo in
17014 ?*) ac_cv_sizeof_off_t=$ac_lo;;
17015 '') if test "$ac_cv_type_off_t" = yes; then
17016      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17018 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
17019 See \`config.log' for more details." >&5
17020 $as_echo "$as_me: error: cannot compute sizeof (off_t)
17021 See \`config.log' for more details." >&2;}
17022    { (exit 77); exit 77; }; }; }
17023    else
17024      ac_cv_sizeof_off_t=0
17025    fi ;;
17026 esac
17027 else
17028   cat >conftest.$ac_ext <<_ACEOF
17029 /* confdefs.h.  */
17030 _ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h.  */
17034 $ac_includes_default
17035 static long int longval () { return (long int) (sizeof (off_t)); }
17036 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
17037 #include <stdio.h>
17038 #include <stdlib.h>
17039 int
17040 main ()
17041 {
17042
17043   FILE *f = fopen ("conftest.val", "w");
17044   if (! f)
17045     return 1;
17046   if (((long int) (sizeof (off_t))) < 0)
17047     {
17048       long int i = longval ();
17049       if (i != ((long int) (sizeof (off_t))))
17050         return 1;
17051       fprintf (f, "%ld", i);
17052     }
17053   else
17054     {
17055       unsigned long int i = ulongval ();
17056       if (i != ((long int) (sizeof (off_t))))
17057         return 1;
17058       fprintf (f, "%lu", i);
17059     }
17060   /* Do not output a trailing newline, as this causes \r\n confusion
17061      on some platforms.  */
17062   return ferror (f) || fclose (f) != 0;
17063
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 rm -f conftest$ac_exeext
17069 if { (ac_try="$ac_link"
17070 case "(($ac_try" in
17071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072   *) ac_try_echo=$ac_try;;
17073 esac
17074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17075 $as_echo "$ac_try_echo") >&5
17076   (eval "$ac_link") 2>&5
17077   ac_status=$?
17078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17080   { (case "(($ac_try" in
17081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082   *) ac_try_echo=$ac_try;;
17083 esac
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086   (eval "$ac_try") 2>&5
17087   ac_status=$?
17088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); }; }; then
17090   ac_cv_sizeof_off_t=`cat conftest.val`
17091 else
17092   $as_echo "$as_me: program exited with status $ac_status" >&5
17093 $as_echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17095
17096 ( exit $ac_status )
17097 if test "$ac_cv_type_off_t" = yes; then
17098      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17100 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
17101 See \`config.log' for more details." >&5
17102 $as_echo "$as_me: error: cannot compute sizeof (off_t)
17103 See \`config.log' for more details." >&2;}
17104    { (exit 77); exit 77; }; }; }
17105    else
17106      ac_cv_sizeof_off_t=0
17107    fi
17108 fi
17109 rm -rf conftest.dSYM
17110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17111 fi
17112 rm -f conftest.val
17113 fi
17114 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
17115 $as_echo "$ac_cv_sizeof_off_t" >&6; }
17116
17117
17118
17119 cat >>confdefs.h <<_ACEOF
17120 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17121 _ACEOF
17122
17123
17124
17125 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
17126
17127 { $as_echo "$as_me:$LINENO: checking for struct dl_phdr_info.dlpi_subs" >&5
17128 $as_echo_n "checking for struct dl_phdr_info.dlpi_subs... " >&6; }
17129 if test "${ac_cv_member_struct_dl_phdr_info_dlpi_subs+set}" = set; then
17130   $as_echo_n "(cached) " >&6
17131 else
17132   cat >conftest.$ac_ext <<_ACEOF
17133 /* confdefs.h.  */
17134 _ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h.  */
17138 #include <link.h>
17139
17140 int
17141 main ()
17142 {
17143 static struct dl_phdr_info ac_aggr;
17144 if (ac_aggr.dlpi_subs)
17145 return 0;
17146   ;
17147   return 0;
17148 }
17149 _ACEOF
17150 rm -f conftest.$ac_objext
17151 if { (ac_try="$ac_compile"
17152 case "(($ac_try" in
17153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154   *) ac_try_echo=$ac_try;;
17155 esac
17156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17157 $as_echo "$ac_try_echo") >&5
17158   (eval "$ac_compile") 2>conftest.er1
17159   ac_status=$?
17160   grep -v '^ *+' conftest.er1 >conftest.err
17161   rm -f conftest.er1
17162   cat conftest.err >&5
17163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); } && {
17165          test -z "$ac_c_werror_flag" ||
17166          test ! -s conftest.err
17167        } && test -s conftest.$ac_objext; then
17168   ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
17169 else
17170   $as_echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173         cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179 #include <link.h>
17180
17181 int
17182 main ()
17183 {
17184 static struct dl_phdr_info ac_aggr;
17185 if (sizeof ac_aggr.dlpi_subs)
17186 return 0;
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199   (eval "$ac_compile") 2>conftest.er1
17200   ac_status=$?
17201   grep -v '^ *+' conftest.er1 >conftest.err
17202   rm -f conftest.er1
17203   cat conftest.err >&5
17204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); } && {
17206          test -z "$ac_c_werror_flag" ||
17207          test ! -s conftest.err
17208        } && test -s conftest.$ac_objext; then
17209   ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
17210 else
17211   $as_echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17213
17214         ac_cv_member_struct_dl_phdr_info_dlpi_subs=no
17215 fi
17216
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218 fi
17219
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 fi
17222 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&5
17223 $as_echo "$ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&6; }
17224 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_subs" = x""yes; then
17225
17226 cat >>confdefs.h <<_ACEOF
17227 #define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
17228 _ACEOF
17229
17230
17231 fi
17232
17233 { $as_echo "$as_me:$LINENO: checking for struct elf_prstatus" >&5
17234 $as_echo_n "checking for struct elf_prstatus... " >&6; }
17235 if test "${ac_cv_type_struct_elf_prstatus+set}" = set; then
17236   $as_echo_n "(cached) " >&6
17237 else
17238   ac_cv_type_struct_elf_prstatus=no
17239 cat >conftest.$ac_ext <<_ACEOF
17240 /* confdefs.h.  */
17241 _ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h.  */
17245 $ac_includes_default
17246 #if HAVE_SYS_PROCFS_H
17247 # include <sys/procfs.h>
17248 #endif
17249
17250
17251 int
17252 main ()
17253 {
17254 if (sizeof (struct elf_prstatus))
17255        return 0;
17256   ;
17257   return 0;
17258 }
17259 _ACEOF
17260 rm -f conftest.$ac_objext
17261 if { (ac_try="$ac_compile"
17262 case "(($ac_try" in
17263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264   *) ac_try_echo=$ac_try;;
17265 esac
17266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17267 $as_echo "$ac_try_echo") >&5
17268   (eval "$ac_compile") 2>conftest.er1
17269   ac_status=$?
17270   grep -v '^ *+' conftest.er1 >conftest.err
17271   rm -f conftest.er1
17272   cat conftest.err >&5
17273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); } && {
17275          test -z "$ac_c_werror_flag" ||
17276          test ! -s conftest.err
17277        } && test -s conftest.$ac_objext; then
17278   cat >conftest.$ac_ext <<_ACEOF
17279 /* confdefs.h.  */
17280 _ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h.  */
17284 $ac_includes_default
17285 #if HAVE_SYS_PROCFS_H
17286 # include <sys/procfs.h>
17287 #endif
17288
17289
17290 int
17291 main ()
17292 {
17293 if (sizeof ((struct elf_prstatus)))
17294           return 0;
17295   ;
17296   return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303   *) ac_try_echo=$ac_try;;
17304 esac
17305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17306 $as_echo "$ac_try_echo") >&5
17307   (eval "$ac_compile") 2>conftest.er1
17308   ac_status=$?
17309   grep -v '^ *+' conftest.er1 >conftest.err
17310   rm -f conftest.er1
17311   cat conftest.err >&5
17312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } && {
17314          test -z "$ac_c_werror_flag" ||
17315          test ! -s conftest.err
17316        } && test -s conftest.$ac_objext; then
17317   :
17318 else
17319   $as_echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322         ac_cv_type_struct_elf_prstatus=yes
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326 else
17327   $as_echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17329
17330
17331 fi
17332
17333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17334 fi
17335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_elf_prstatus" >&5
17336 $as_echo "$ac_cv_type_struct_elf_prstatus" >&6; }
17337 if test "x$ac_cv_type_struct_elf_prstatus" = x""yes; then
17338
17339 cat >>confdefs.h <<_ACEOF
17340 #define HAVE_STRUCT_ELF_PRSTATUS 1
17341 _ACEOF
17342
17343
17344 fi
17345 { $as_echo "$as_me:$LINENO: checking for struct prstatus" >&5
17346 $as_echo_n "checking for struct prstatus... " >&6; }
17347 if test "${ac_cv_type_struct_prstatus+set}" = set; then
17348   $as_echo_n "(cached) " >&6
17349 else
17350   ac_cv_type_struct_prstatus=no
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h.  */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h.  */
17357 $ac_includes_default
17358 #if HAVE_SYS_PROCFS_H
17359 # include <sys/procfs.h>
17360 #endif
17361
17362
17363 int
17364 main ()
17365 {
17366 if (sizeof (struct prstatus))
17367        return 0;
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext
17373 if { (ac_try="$ac_compile"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17379 $as_echo "$ac_try_echo") >&5
17380   (eval "$ac_compile") 2>conftest.er1
17381   ac_status=$?
17382   grep -v '^ *+' conftest.er1 >conftest.err
17383   rm -f conftest.er1
17384   cat conftest.err >&5
17385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); } && {
17387          test -z "$ac_c_werror_flag" ||
17388          test ! -s conftest.err
17389        } && test -s conftest.$ac_objext; then
17390   cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h.  */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h.  */
17396 $ac_includes_default
17397 #if HAVE_SYS_PROCFS_H
17398 # include <sys/procfs.h>
17399 #endif
17400
17401
17402 int
17403 main ()
17404 {
17405 if (sizeof ((struct prstatus)))
17406           return 0;
17407   ;
17408   return 0;
17409 }
17410 _ACEOF
17411 rm -f conftest.$ac_objext
17412 if { (ac_try="$ac_compile"
17413 case "(($ac_try" in
17414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415   *) ac_try_echo=$ac_try;;
17416 esac
17417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17418 $as_echo "$ac_try_echo") >&5
17419   (eval "$ac_compile") 2>conftest.er1
17420   ac_status=$?
17421   grep -v '^ *+' conftest.er1 >conftest.err
17422   rm -f conftest.er1
17423   cat conftest.err >&5
17424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); } && {
17426          test -z "$ac_c_werror_flag" ||
17427          test ! -s conftest.err
17428        } && test -s conftest.$ac_objext; then
17429   :
17430 else
17431   $as_echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17433
17434         ac_cv_type_struct_prstatus=yes
17435 fi
17436
17437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438 else
17439   $as_echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_prstatus" >&5
17448 $as_echo "$ac_cv_type_struct_prstatus" >&6; }
17449 if test "x$ac_cv_type_struct_prstatus" = x""yes; then
17450
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_STRUCT_PRSTATUS 1
17453 _ACEOF
17454
17455
17456 fi
17457
17458
17459 { $as_echo "$as_me:$LINENO: checking whether PTRACE_POKEUSER is declared" >&5
17460 $as_echo_n "checking whether PTRACE_POKEUSER is declared... " >&6; }
17461 if test "${ac_cv_have_decl_PTRACE_POKEUSER+set}" = set; then
17462   $as_echo_n "(cached) " >&6
17463 else
17464   cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h.  */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h.  */
17470 $ac_includes_default
17471 #if HAVE_SYS_TYPES_H
17472 #include <sys/types.h>
17473 #endif
17474 #include <sys/ptrace.h>
17475
17476
17477 int
17478 main ()
17479 {
17480 #ifndef PTRACE_POKEUSER
17481   (void) PTRACE_POKEUSER;
17482 #endif
17483
17484   ;
17485   return 0;
17486 }
17487 _ACEOF
17488 rm -f conftest.$ac_objext
17489 if { (ac_try="$ac_compile"
17490 case "(($ac_try" in
17491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492   *) ac_try_echo=$ac_try;;
17493 esac
17494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17495 $as_echo "$ac_try_echo") >&5
17496   (eval "$ac_compile") 2>conftest.er1
17497   ac_status=$?
17498   grep -v '^ *+' conftest.er1 >conftest.err
17499   rm -f conftest.er1
17500   cat conftest.err >&5
17501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); } && {
17503          test -z "$ac_c_werror_flag" ||
17504          test ! -s conftest.err
17505        } && test -s conftest.$ac_objext; then
17506   ac_cv_have_decl_PTRACE_POKEUSER=yes
17507 else
17508   $as_echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511         ac_cv_have_decl_PTRACE_POKEUSER=no
17512 fi
17513
17514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17515 fi
17516 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_POKEUSER" >&5
17517 $as_echo "$ac_cv_have_decl_PTRACE_POKEUSER" >&6; }
17518 if test "x$ac_cv_have_decl_PTRACE_POKEUSER" = x""yes; then
17519
17520 cat >>confdefs.h <<_ACEOF
17521 #define HAVE_DECL_PTRACE_POKEUSER 1
17522 _ACEOF
17523
17524
17525 else
17526   cat >>confdefs.h <<_ACEOF
17527 #define HAVE_DECL_PTRACE_POKEUSER 0
17528 _ACEOF
17529
17530
17531 fi
17532 { $as_echo "$as_me:$LINENO: checking whether PTRACE_POKEDATA is declared" >&5
17533 $as_echo_n "checking whether PTRACE_POKEDATA is declared... " >&6; }
17534 if test "${ac_cv_have_decl_PTRACE_POKEDATA+set}" = set; then
17535   $as_echo_n "(cached) " >&6
17536 else
17537   cat >conftest.$ac_ext <<_ACEOF
17538 /* confdefs.h.  */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h.  */
17543 $ac_includes_default
17544 #if HAVE_SYS_TYPES_H
17545 #include <sys/types.h>
17546 #endif
17547 #include <sys/ptrace.h>
17548
17549
17550 int
17551 main ()
17552 {
17553 #ifndef PTRACE_POKEDATA
17554   (void) PTRACE_POKEDATA;
17555 #endif
17556
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565   *) ac_try_echo=$ac_try;;
17566 esac
17567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17568 $as_echo "$ac_try_echo") >&5
17569   (eval "$ac_compile") 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } && {
17576          test -z "$ac_c_werror_flag" ||
17577          test ! -s conftest.err
17578        } && test -s conftest.$ac_objext; then
17579   ac_cv_have_decl_PTRACE_POKEDATA=yes
17580 else
17581   $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17583
17584         ac_cv_have_decl_PTRACE_POKEDATA=no
17585 fi
17586
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17588 fi
17589 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_POKEDATA" >&5
17590 $as_echo "$ac_cv_have_decl_PTRACE_POKEDATA" >&6; }
17591 if test "x$ac_cv_have_decl_PTRACE_POKEDATA" = x""yes; then
17592
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_DECL_PTRACE_POKEDATA 1
17595 _ACEOF
17596
17597
17598 else
17599   cat >>confdefs.h <<_ACEOF
17600 #define HAVE_DECL_PTRACE_POKEDATA 0
17601 _ACEOF
17602
17603
17604 fi
17605 { $as_echo "$as_me:$LINENO: checking whether PTRACE_TRACEME is declared" >&5
17606 $as_echo_n "checking whether PTRACE_TRACEME is declared... " >&6; }
17607 if test "${ac_cv_have_decl_PTRACE_TRACEME+set}" = set; then
17608   $as_echo_n "(cached) " >&6
17609 else
17610   cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h.  */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h.  */
17616 $ac_includes_default
17617 #if HAVE_SYS_TYPES_H
17618 #include <sys/types.h>
17619 #endif
17620 #include <sys/ptrace.h>
17621
17622
17623 int
17624 main ()
17625 {
17626 #ifndef PTRACE_TRACEME
17627   (void) PTRACE_TRACEME;
17628 #endif
17629
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638   *) ac_try_echo=$ac_try;;
17639 esac
17640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17641 $as_echo "$ac_try_echo") >&5
17642   (eval "$ac_compile") 2>conftest.er1
17643   ac_status=$?
17644   grep -v '^ *+' conftest.er1 >conftest.err
17645   rm -f conftest.er1
17646   cat conftest.err >&5
17647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); } && {
17649          test -z "$ac_c_werror_flag" ||
17650          test ! -s conftest.err
17651        } && test -s conftest.$ac_objext; then
17652   ac_cv_have_decl_PTRACE_TRACEME=yes
17653 else
17654   $as_echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657         ac_cv_have_decl_PTRACE_TRACEME=no
17658 fi
17659
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661 fi
17662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_TRACEME" >&5
17663 $as_echo "$ac_cv_have_decl_PTRACE_TRACEME" >&6; }
17664 if test "x$ac_cv_have_decl_PTRACE_TRACEME" = x""yes; then
17665
17666 cat >>confdefs.h <<_ACEOF
17667 #define HAVE_DECL_PTRACE_TRACEME 1
17668 _ACEOF
17669
17670
17671 else
17672   cat >>confdefs.h <<_ACEOF
17673 #define HAVE_DECL_PTRACE_TRACEME 0
17674 _ACEOF
17675
17676
17677 fi
17678 { $as_echo "$as_me:$LINENO: checking whether PTRACE_CONT is declared" >&5
17679 $as_echo_n "checking whether PTRACE_CONT is declared... " >&6; }
17680 if test "${ac_cv_have_decl_PTRACE_CONT+set}" = set; then
17681   $as_echo_n "(cached) " >&6
17682 else
17683   cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689 $ac_includes_default
17690 #if HAVE_SYS_TYPES_H
17691 #include <sys/types.h>
17692 #endif
17693 #include <sys/ptrace.h>
17694
17695
17696 int
17697 main ()
17698 {
17699 #ifndef PTRACE_CONT
17700   (void) PTRACE_CONT;
17701 #endif
17702
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711   *) ac_try_echo=$ac_try;;
17712 esac
17713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17714 $as_echo "$ac_try_echo") >&5
17715   (eval "$ac_compile") 2>conftest.er1
17716   ac_status=$?
17717   grep -v '^ *+' conftest.er1 >conftest.err
17718   rm -f conftest.er1
17719   cat conftest.err >&5
17720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); } && {
17722          test -z "$ac_c_werror_flag" ||
17723          test ! -s conftest.err
17724        } && test -s conftest.$ac_objext; then
17725   ac_cv_have_decl_PTRACE_CONT=yes
17726 else
17727   $as_echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730         ac_cv_have_decl_PTRACE_CONT=no
17731 fi
17732
17733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734 fi
17735 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_CONT" >&5
17736 $as_echo "$ac_cv_have_decl_PTRACE_CONT" >&6; }
17737 if test "x$ac_cv_have_decl_PTRACE_CONT" = x""yes; then
17738
17739 cat >>confdefs.h <<_ACEOF
17740 #define HAVE_DECL_PTRACE_CONT 1
17741 _ACEOF
17742
17743
17744 else
17745   cat >>confdefs.h <<_ACEOF
17746 #define HAVE_DECL_PTRACE_CONT 0
17747 _ACEOF
17748
17749
17750 fi
17751 { $as_echo "$as_me:$LINENO: checking whether PTRACE_SINGLESTEP is declared" >&5
17752 $as_echo_n "checking whether PTRACE_SINGLESTEP is declared... " >&6; }
17753 if test "${ac_cv_have_decl_PTRACE_SINGLESTEP+set}" = set; then
17754   $as_echo_n "(cached) " >&6
17755 else
17756   cat >conftest.$ac_ext <<_ACEOF
17757 /* confdefs.h.  */
17758 _ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h.  */
17762 $ac_includes_default
17763 #if HAVE_SYS_TYPES_H
17764 #include <sys/types.h>
17765 #endif
17766 #include <sys/ptrace.h>
17767
17768
17769 int
17770 main ()
17771 {
17772 #ifndef PTRACE_SINGLESTEP
17773   (void) PTRACE_SINGLESTEP;
17774 #endif
17775
17776   ;
17777   return 0;
17778 }
17779 _ACEOF
17780 rm -f conftest.$ac_objext
17781 if { (ac_try="$ac_compile"
17782 case "(($ac_try" in
17783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784   *) ac_try_echo=$ac_try;;
17785 esac
17786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17787 $as_echo "$ac_try_echo") >&5
17788   (eval "$ac_compile") 2>conftest.er1
17789   ac_status=$?
17790   grep -v '^ *+' conftest.er1 >conftest.err
17791   rm -f conftest.er1
17792   cat conftest.err >&5
17793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794   (exit $ac_status); } && {
17795          test -z "$ac_c_werror_flag" ||
17796          test ! -s conftest.err
17797        } && test -s conftest.$ac_objext; then
17798   ac_cv_have_decl_PTRACE_SINGLESTEP=yes
17799 else
17800   $as_echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803         ac_cv_have_decl_PTRACE_SINGLESTEP=no
17804 fi
17805
17806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17807 fi
17808 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_SINGLESTEP" >&5
17809 $as_echo "$ac_cv_have_decl_PTRACE_SINGLESTEP" >&6; }
17810 if test "x$ac_cv_have_decl_PTRACE_SINGLESTEP" = x""yes; then
17811
17812 cat >>confdefs.h <<_ACEOF
17813 #define HAVE_DECL_PTRACE_SINGLESTEP 1
17814 _ACEOF
17815
17816
17817 else
17818   cat >>confdefs.h <<_ACEOF
17819 #define HAVE_DECL_PTRACE_SINGLESTEP 0
17820 _ACEOF
17821
17822
17823 fi
17824 { $as_echo "$as_me:$LINENO: checking whether PTRACE_SYSCALL is declared" >&5
17825 $as_echo_n "checking whether PTRACE_SYSCALL is declared... " >&6; }
17826 if test "${ac_cv_have_decl_PTRACE_SYSCALL+set}" = set; then
17827   $as_echo_n "(cached) " >&6
17828 else
17829   cat >conftest.$ac_ext <<_ACEOF
17830 /* confdefs.h.  */
17831 _ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h.  */
17835 $ac_includes_default
17836 #if HAVE_SYS_TYPES_H
17837 #include <sys/types.h>
17838 #endif
17839 #include <sys/ptrace.h>
17840
17841
17842 int
17843 main ()
17844 {
17845 #ifndef PTRACE_SYSCALL
17846   (void) PTRACE_SYSCALL;
17847 #endif
17848
17849   ;
17850   return 0;
17851 }
17852 _ACEOF
17853 rm -f conftest.$ac_objext
17854 if { (ac_try="$ac_compile"
17855 case "(($ac_try" in
17856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857   *) ac_try_echo=$ac_try;;
17858 esac
17859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17860 $as_echo "$ac_try_echo") >&5
17861   (eval "$ac_compile") 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } && {
17868          test -z "$ac_c_werror_flag" ||
17869          test ! -s conftest.err
17870        } && test -s conftest.$ac_objext; then
17871   ac_cv_have_decl_PTRACE_SYSCALL=yes
17872 else
17873   $as_echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876         ac_cv_have_decl_PTRACE_SYSCALL=no
17877 fi
17878
17879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17880 fi
17881 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_SYSCALL" >&5
17882 $as_echo "$ac_cv_have_decl_PTRACE_SYSCALL" >&6; }
17883 if test "x$ac_cv_have_decl_PTRACE_SYSCALL" = x""yes; then
17884
17885 cat >>confdefs.h <<_ACEOF
17886 #define HAVE_DECL_PTRACE_SYSCALL 1
17887 _ACEOF
17888
17889
17890 else
17891   cat >>confdefs.h <<_ACEOF
17892 #define HAVE_DECL_PTRACE_SYSCALL 0
17893 _ACEOF
17894
17895
17896 fi
17897 { $as_echo "$as_me:$LINENO: checking whether PT_IO is declared" >&5
17898 $as_echo_n "checking whether PT_IO is declared... " >&6; }
17899 if test "${ac_cv_have_decl_PT_IO+set}" = set; then
17900   $as_echo_n "(cached) " >&6
17901 else
17902   cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h.  */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h.  */
17908 $ac_includes_default
17909 #if HAVE_SYS_TYPES_H
17910 #include <sys/types.h>
17911 #endif
17912 #include <sys/ptrace.h>
17913
17914
17915 int
17916 main ()
17917 {
17918 #ifndef PT_IO
17919   (void) PT_IO;
17920 #endif
17921
17922   ;
17923   return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930   *) ac_try_echo=$ac_try;;
17931 esac
17932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17933 $as_echo "$ac_try_echo") >&5
17934   (eval "$ac_compile") 2>conftest.er1
17935   ac_status=$?
17936   grep -v '^ *+' conftest.er1 >conftest.err
17937   rm -f conftest.er1
17938   cat conftest.err >&5
17939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); } && {
17941          test -z "$ac_c_werror_flag" ||
17942          test ! -s conftest.err
17943        } && test -s conftest.$ac_objext; then
17944   ac_cv_have_decl_PT_IO=yes
17945 else
17946   $as_echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949         ac_cv_have_decl_PT_IO=no
17950 fi
17951
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 fi
17954 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_IO" >&5
17955 $as_echo "$ac_cv_have_decl_PT_IO" >&6; }
17956 if test "x$ac_cv_have_decl_PT_IO" = x""yes; then
17957
17958 cat >>confdefs.h <<_ACEOF
17959 #define HAVE_DECL_PT_IO 1
17960 _ACEOF
17961
17962
17963 else
17964   cat >>confdefs.h <<_ACEOF
17965 #define HAVE_DECL_PT_IO 0
17966 _ACEOF
17967
17968
17969 fi
17970 { $as_echo "$as_me:$LINENO: checking whether PT_GETREGS is declared" >&5
17971 $as_echo_n "checking whether PT_GETREGS is declared... " >&6; }
17972 if test "${ac_cv_have_decl_PT_GETREGS+set}" = set; then
17973   $as_echo_n "(cached) " >&6
17974 else
17975   cat >conftest.$ac_ext <<_ACEOF
17976 /* confdefs.h.  */
17977 _ACEOF
17978 cat confdefs.h >>conftest.$ac_ext
17979 cat >>conftest.$ac_ext <<_ACEOF
17980 /* end confdefs.h.  */
17981 $ac_includes_default
17982 #if HAVE_SYS_TYPES_H
17983 #include <sys/types.h>
17984 #endif
17985 #include <sys/ptrace.h>
17986
17987
17988 int
17989 main ()
17990 {
17991 #ifndef PT_GETREGS
17992   (void) PT_GETREGS;
17993 #endif
17994
17995   ;
17996   return 0;
17997 }
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18006 $as_echo "$ac_try_echo") >&5
18007   (eval "$ac_compile") 2>conftest.er1
18008   ac_status=$?
18009   grep -v '^ *+' conftest.er1 >conftest.err
18010   rm -f conftest.er1
18011   cat conftest.err >&5
18012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013   (exit $ac_status); } && {
18014          test -z "$ac_c_werror_flag" ||
18015          test ! -s conftest.err
18016        } && test -s conftest.$ac_objext; then
18017   ac_cv_have_decl_PT_GETREGS=yes
18018 else
18019   $as_echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022         ac_cv_have_decl_PT_GETREGS=no
18023 fi
18024
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 fi
18027 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_GETREGS" >&5
18028 $as_echo "$ac_cv_have_decl_PT_GETREGS" >&6; }
18029 if test "x$ac_cv_have_decl_PT_GETREGS" = x""yes; then
18030
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_DECL_PT_GETREGS 1
18033 _ACEOF
18034
18035
18036 else
18037   cat >>confdefs.h <<_ACEOF
18038 #define HAVE_DECL_PT_GETREGS 0
18039 _ACEOF
18040
18041
18042 fi
18043 { $as_echo "$as_me:$LINENO: checking whether PT_GETFPREGS is declared" >&5
18044 $as_echo_n "checking whether PT_GETFPREGS is declared... " >&6; }
18045 if test "${ac_cv_have_decl_PT_GETFPREGS+set}" = set; then
18046   $as_echo_n "(cached) " >&6
18047 else
18048   cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h.  */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h.  */
18054 $ac_includes_default
18055 #if HAVE_SYS_TYPES_H
18056 #include <sys/types.h>
18057 #endif
18058 #include <sys/ptrace.h>
18059
18060
18061 int
18062 main ()
18063 {
18064 #ifndef PT_GETFPREGS
18065   (void) PT_GETFPREGS;
18066 #endif
18067
18068   ;
18069   return 0;
18070 }
18071 _ACEOF
18072 rm -f conftest.$ac_objext
18073 if { (ac_try="$ac_compile"
18074 case "(($ac_try" in
18075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076   *) ac_try_echo=$ac_try;;
18077 esac
18078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18079 $as_echo "$ac_try_echo") >&5
18080   (eval "$ac_compile") 2>conftest.er1
18081   ac_status=$?
18082   grep -v '^ *+' conftest.er1 >conftest.err
18083   rm -f conftest.er1
18084   cat conftest.err >&5
18085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086   (exit $ac_status); } && {
18087          test -z "$ac_c_werror_flag" ||
18088          test ! -s conftest.err
18089        } && test -s conftest.$ac_objext; then
18090   ac_cv_have_decl_PT_GETFPREGS=yes
18091 else
18092   $as_echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095         ac_cv_have_decl_PT_GETFPREGS=no
18096 fi
18097
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099 fi
18100 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_GETFPREGS" >&5
18101 $as_echo "$ac_cv_have_decl_PT_GETFPREGS" >&6; }
18102 if test "x$ac_cv_have_decl_PT_GETFPREGS" = x""yes; then
18103
18104 cat >>confdefs.h <<_ACEOF
18105 #define HAVE_DECL_PT_GETFPREGS 1
18106 _ACEOF
18107
18108
18109 else
18110   cat >>confdefs.h <<_ACEOF
18111 #define HAVE_DECL_PT_GETFPREGS 0
18112 _ACEOF
18113
18114
18115 fi
18116 { $as_echo "$as_me:$LINENO: checking whether PT_CONTINUE is declared" >&5
18117 $as_echo_n "checking whether PT_CONTINUE is declared... " >&6; }
18118 if test "${ac_cv_have_decl_PT_CONTINUE+set}" = set; then
18119   $as_echo_n "(cached) " >&6
18120 else
18121   cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h.  */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h.  */
18127 $ac_includes_default
18128 #if HAVE_SYS_TYPES_H
18129 #include <sys/types.h>
18130 #endif
18131 #include <sys/ptrace.h>
18132
18133
18134 int
18135 main ()
18136 {
18137 #ifndef PT_CONTINUE
18138   (void) PT_CONTINUE;
18139 #endif
18140
18141   ;
18142   return 0;
18143 }
18144 _ACEOF
18145 rm -f conftest.$ac_objext
18146 if { (ac_try="$ac_compile"
18147 case "(($ac_try" in
18148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149   *) ac_try_echo=$ac_try;;
18150 esac
18151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18152 $as_echo "$ac_try_echo") >&5
18153   (eval "$ac_compile") 2>conftest.er1
18154   ac_status=$?
18155   grep -v '^ *+' conftest.er1 >conftest.err
18156   rm -f conftest.er1
18157   cat conftest.err >&5
18158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159   (exit $ac_status); } && {
18160          test -z "$ac_c_werror_flag" ||
18161          test ! -s conftest.err
18162        } && test -s conftest.$ac_objext; then
18163   ac_cv_have_decl_PT_CONTINUE=yes
18164 else
18165   $as_echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18167
18168         ac_cv_have_decl_PT_CONTINUE=no
18169 fi
18170
18171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18172 fi
18173 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_CONTINUE" >&5
18174 $as_echo "$ac_cv_have_decl_PT_CONTINUE" >&6; }
18175 if test "x$ac_cv_have_decl_PT_CONTINUE" = x""yes; then
18176
18177 cat >>confdefs.h <<_ACEOF
18178 #define HAVE_DECL_PT_CONTINUE 1
18179 _ACEOF
18180
18181
18182 else
18183   cat >>confdefs.h <<_ACEOF
18184 #define HAVE_DECL_PT_CONTINUE 0
18185 _ACEOF
18186
18187
18188 fi
18189 { $as_echo "$as_me:$LINENO: checking whether PT_TRACE_ME is declared" >&5
18190 $as_echo_n "checking whether PT_TRACE_ME is declared... " >&6; }
18191 if test "${ac_cv_have_decl_PT_TRACE_ME+set}" = set; then
18192   $as_echo_n "(cached) " >&6
18193 else
18194   cat >conftest.$ac_ext <<_ACEOF
18195 /* confdefs.h.  */
18196 _ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h.  */
18200 $ac_includes_default
18201 #if HAVE_SYS_TYPES_H
18202 #include <sys/types.h>
18203 #endif
18204 #include <sys/ptrace.h>
18205
18206
18207 int
18208 main ()
18209 {
18210 #ifndef PT_TRACE_ME
18211   (void) PT_TRACE_ME;
18212 #endif
18213
18214   ;
18215   return 0;
18216 }
18217 _ACEOF
18218 rm -f conftest.$ac_objext
18219 if { (ac_try="$ac_compile"
18220 case "(($ac_try" in
18221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222   *) ac_try_echo=$ac_try;;
18223 esac
18224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18225 $as_echo "$ac_try_echo") >&5
18226   (eval "$ac_compile") 2>conftest.er1
18227   ac_status=$?
18228   grep -v '^ *+' conftest.er1 >conftest.err
18229   rm -f conftest.er1
18230   cat conftest.err >&5
18231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232   (exit $ac_status); } && {
18233          test -z "$ac_c_werror_flag" ||
18234          test ! -s conftest.err
18235        } && test -s conftest.$ac_objext; then
18236   ac_cv_have_decl_PT_TRACE_ME=yes
18237 else
18238   $as_echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18240
18241         ac_cv_have_decl_PT_TRACE_ME=no
18242 fi
18243
18244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18245 fi
18246 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_TRACE_ME" >&5
18247 $as_echo "$ac_cv_have_decl_PT_TRACE_ME" >&6; }
18248 if test "x$ac_cv_have_decl_PT_TRACE_ME" = x""yes; then
18249
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_DECL_PT_TRACE_ME 1
18252 _ACEOF
18253
18254
18255 else
18256   cat >>confdefs.h <<_ACEOF
18257 #define HAVE_DECL_PT_TRACE_ME 0
18258 _ACEOF
18259
18260
18261 fi
18262 { $as_echo "$as_me:$LINENO: checking whether PT_STEP is declared" >&5
18263 $as_echo_n "checking whether PT_STEP is declared... " >&6; }
18264 if test "${ac_cv_have_decl_PT_STEP+set}" = set; then
18265   $as_echo_n "(cached) " >&6
18266 else
18267   cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273 $ac_includes_default
18274 #if HAVE_SYS_TYPES_H
18275 #include <sys/types.h>
18276 #endif
18277 #include <sys/ptrace.h>
18278
18279
18280 int
18281 main ()
18282 {
18283 #ifndef PT_STEP
18284   (void) PT_STEP;
18285 #endif
18286
18287   ;
18288   return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (ac_try="$ac_compile"
18293 case "(($ac_try" in
18294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295   *) ac_try_echo=$ac_try;;
18296 esac
18297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18298 $as_echo "$ac_try_echo") >&5
18299   (eval "$ac_compile") 2>conftest.er1
18300   ac_status=$?
18301   grep -v '^ *+' conftest.er1 >conftest.err
18302   rm -f conftest.er1
18303   cat conftest.err >&5
18304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); } && {
18306          test -z "$ac_c_werror_flag" ||
18307          test ! -s conftest.err
18308        } && test -s conftest.$ac_objext; then
18309   ac_cv_have_decl_PT_STEP=yes
18310 else
18311   $as_echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18313
18314         ac_cv_have_decl_PT_STEP=no
18315 fi
18316
18317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18318 fi
18319 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_STEP" >&5
18320 $as_echo "$ac_cv_have_decl_PT_STEP" >&6; }
18321 if test "x$ac_cv_have_decl_PT_STEP" = x""yes; then
18322
18323 cat >>confdefs.h <<_ACEOF
18324 #define HAVE_DECL_PT_STEP 1
18325 _ACEOF
18326
18327
18328 else
18329   cat >>confdefs.h <<_ACEOF
18330 #define HAVE_DECL_PT_STEP 0
18331 _ACEOF
18332
18333
18334 fi
18335 { $as_echo "$as_me:$LINENO: checking whether PT_SYSCALL is declared" >&5
18336 $as_echo_n "checking whether PT_SYSCALL is declared... " >&6; }
18337 if test "${ac_cv_have_decl_PT_SYSCALL+set}" = set; then
18338   $as_echo_n "(cached) " >&6
18339 else
18340   cat >conftest.$ac_ext <<_ACEOF
18341 /* confdefs.h.  */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h.  */
18346 $ac_includes_default
18347 #if HAVE_SYS_TYPES_H
18348 #include <sys/types.h>
18349 #endif
18350 #include <sys/ptrace.h>
18351
18352
18353 int
18354 main ()
18355 {
18356 #ifndef PT_SYSCALL
18357   (void) PT_SYSCALL;
18358 #endif
18359
18360   ;
18361   return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest.$ac_objext
18365 if { (ac_try="$ac_compile"
18366 case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18371 $as_echo "$ac_try_echo") >&5
18372   (eval "$ac_compile") 2>conftest.er1
18373   ac_status=$?
18374   grep -v '^ *+' conftest.er1 >conftest.err
18375   rm -f conftest.er1
18376   cat conftest.err >&5
18377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); } && {
18379          test -z "$ac_c_werror_flag" ||
18380          test ! -s conftest.err
18381        } && test -s conftest.$ac_objext; then
18382   ac_cv_have_decl_PT_SYSCALL=yes
18383 else
18384   $as_echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18386
18387         ac_cv_have_decl_PT_SYSCALL=no
18388 fi
18389
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391 fi
18392 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_SYSCALL" >&5
18393 $as_echo "$ac_cv_have_decl_PT_SYSCALL" >&6; }
18394 if test "x$ac_cv_have_decl_PT_SYSCALL" = x""yes; then
18395
18396 cat >>confdefs.h <<_ACEOF
18397 #define HAVE_DECL_PT_SYSCALL 1
18398 _ACEOF
18399
18400
18401 else
18402   cat >>confdefs.h <<_ACEOF
18403 #define HAVE_DECL_PT_SYSCALL 0
18404 _ACEOF
18405
18406
18407 fi
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417 for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
18418                 ttrace mincore
18419 do
18420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18421 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18422 $as_echo_n "checking for $ac_func... " >&6; }
18423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18424   $as_echo_n "(cached) " >&6
18425 else
18426   cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h.  */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h.  */
18432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18434 #define $ac_func innocuous_$ac_func
18435
18436 /* System header to define __stub macros and hopefully few prototypes,
18437     which can conflict with char $ac_func (); below.
18438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439     <limits.h> exists even on freestanding compilers.  */
18440
18441 #ifdef __STDC__
18442 # include <limits.h>
18443 #else
18444 # include <assert.h>
18445 #endif
18446
18447 #undef $ac_func
18448
18449 /* Override any GCC internal prototype to avoid an error.
18450    Use char because int might match the return type of a GCC
18451    builtin and then its argument prototype would still apply.  */
18452 #ifdef __cplusplus
18453 extern "C"
18454 #endif
18455 char $ac_func ();
18456 /* The GNU C library defines this for functions which it implements
18457     to always fail with ENOSYS.  Some functions are actually named
18458     something starting with __ and the normal name is an alias.  */
18459 #if defined __stub_$ac_func || defined __stub___$ac_func
18460 choke me
18461 #endif
18462
18463 int
18464 main ()
18465 {
18466 return $ac_func ();
18467   ;
18468   return 0;
18469 }
18470 _ACEOF
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475   *) ac_try_echo=$ac_try;;
18476 esac
18477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18478 $as_echo "$ac_try_echo") >&5
18479   (eval "$ac_link") 2>conftest.er1
18480   ac_status=$?
18481   grep -v '^ *+' conftest.er1 >conftest.err
18482   rm -f conftest.er1
18483   cat conftest.err >&5
18484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } && {
18486          test -z "$ac_c_werror_flag" ||
18487          test ! -s conftest.err
18488        } && test -s conftest$ac_exeext && {
18489          test "$cross_compiling" = yes ||
18490          $as_test_x conftest$ac_exeext
18491        }; then
18492   eval "$as_ac_var=yes"
18493 else
18494   $as_echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18496
18497         eval "$as_ac_var=no"
18498 fi
18499
18500 rm -rf conftest.dSYM
18501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18502       conftest$ac_exeext conftest.$ac_ext
18503 fi
18504 ac_res=`eval 'as_val=${'$as_ac_var'}
18505                  $as_echo "$as_val"'`
18506                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18507 $as_echo "$ac_res" >&6; }
18508 as_val=`eval 'as_val=${'$as_ac_var'}
18509                  $as_echo "$as_val"'`
18510    if test "x$as_val" = x""yes; then
18511   cat >>confdefs.h <<_ACEOF
18512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18513 _ACEOF
18514
18515 fi
18516 done
18517
18518
18519 { $as_echo "$as_me:$LINENO: checking if building with AltiVec" >&5
18520 $as_echo_n "checking if building with AltiVec... " >&6; }
18521 cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h.  */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h.  */
18527
18528 #ifndef __ALTIVEC__
18529 # error choke
18530 #endif
18531
18532 _ACEOF
18533 rm -f conftest.$ac_objext
18534 if { (ac_try="$ac_compile"
18535 case "(($ac_try" in
18536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537   *) ac_try_echo=$ac_try;;
18538 esac
18539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18540 $as_echo "$ac_try_echo") >&5
18541   (eval "$ac_compile") 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } && {
18548          test -z "$ac_c_werror_flag" ||
18549          test ! -s conftest.err
18550        } && test -s conftest.$ac_objext; then
18551   use_altivec=yes
18552 else
18553   $as_echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556         use_altivec=no
18557 fi
18558
18559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18560  if test x$use_altivec = xyes; then
18561   USE_ALTIVEC_TRUE=
18562   USE_ALTIVEC_FALSE='#'
18563 else
18564   USE_ALTIVEC_TRUE='#'
18565   USE_ALTIVEC_FALSE=
18566 fi
18567
18568 { $as_echo "$as_me:$LINENO: result: $use_altivec" >&5
18569 $as_echo "$use_altivec" >&6; }
18570
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h.  */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h.  */
18577
18578 #ifndef __powerpc64__
18579 # error choke
18580 #endif
18581
18582 _ACEOF
18583 rm -f conftest.$ac_objext
18584 if { (ac_try="$ac_compile"
18585 case "(($ac_try" in
18586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587   *) ac_try_echo=$ac_try;;
18588 esac
18589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18590 $as_echo "$ac_try_echo") >&5
18591   (eval "$ac_compile") 2>conftest.er1
18592   ac_status=$?
18593   grep -v '^ *+' conftest.er1 >conftest.err
18594   rm -f conftest.er1
18595   cat conftest.err >&5
18596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); } && {
18598          test -z "$ac_c_werror_flag" ||
18599          test ! -s conftest.err
18600        } && test -s conftest.$ac_objext; then
18601   ppc_bits=64
18602 else
18603   $as_echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606         ppc_bits=32
18607 fi
18608
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610
18611
18612
18613     case $build_cpu in
18614   aarch64*) build_arch=aarch64 ;;
18615   arm*) build_arch=arm ;;
18616   i?86) build_arch=x86 ;;
18617   hppa*) build_arch=hppa ;;
18618   mips*) build_arch=mips ;;
18619   powerpc*) build_arch=ppc$ppc_bits ;;
18620   sh*) build_arch=sh ;;
18621   amd64) build_arch=x86_64 ;;
18622   tile*) build_arch=tilegx ;;
18623   *) build_arch=$build_cpu ;;
18624 esac
18625
18626
18627
18628     case $host_cpu in
18629   aarch64*) host_arch=aarch64 ;;
18630   arm*) host_arch=arm ;;
18631   i?86) host_arch=x86 ;;
18632   hppa*) host_arch=hppa ;;
18633   mips*) host_arch=mips ;;
18634   powerpc*) host_arch=ppc$ppc_bits ;;
18635   sh*) host_arch=sh ;;
18636   amd64) host_arch=x86_64 ;;
18637   tile*) host_arch=tilegx ;;
18638   *) host_arch=$host_cpu ;;
18639 esac
18640
18641
18642
18643     case $target_cpu in
18644   aarch64*) target_arch=aarch64 ;;
18645   arm*) target_arch=arm ;;
18646   i?86) target_arch=x86 ;;
18647   hppa*) target_arch=hppa ;;
18648   mips*) target_arch=mips ;;
18649   powerpc*) target_arch=ppc$ppc_bits ;;
18650   sh*) target_arch=sh ;;
18651   amd64) target_arch=x86_64 ;;
18652   tile*) target_arch=tilegx ;;
18653   *) target_arch=$target_cpu ;;
18654 esac
18655
18656
18657
18658 # Check whether --enable-coredump was given.
18659 if test "${enable_coredump+set}" = set; then
18660   enableval=$enable_coredump;
18661 else
18662   case $host_arch in
18663   aarch64*|arm*|mips*|sh*|x86*|tile*) enable_coredump=yes ;;
18664   *) enable_coredump=no ;;
18665 esac
18666
18667
18668 fi
18669
18670
18671 { $as_echo "$as_me:$LINENO: checking if we should build libunwind-coredump" >&5
18672 $as_echo_n "checking if we should build libunwind-coredump... " >&6; }
18673 { $as_echo "$as_me:$LINENO: result: $enable_coredump" >&5
18674 $as_echo "$enable_coredump" >&6; }
18675
18676 # Check whether --enable-ptrace was given.
18677 if test "${enable_ptrace+set}" = set; then
18678   enableval=$enable_ptrace;
18679 else
18680   if test "${ac_cv_header_sys_ptrace_h+set}" = set; then
18681   { $as_echo "$as_me:$LINENO: checking for sys/ptrace.h" >&5
18682 $as_echo_n "checking for sys/ptrace.h... " >&6; }
18683 if test "${ac_cv_header_sys_ptrace_h+set}" = set; then
18684   $as_echo_n "(cached) " >&6
18685 fi
18686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptrace_h" >&5
18687 $as_echo "$ac_cv_header_sys_ptrace_h" >&6; }
18688 else
18689   # Is the header compilable?
18690 { $as_echo "$as_me:$LINENO: checking sys/ptrace.h usability" >&5
18691 $as_echo_n "checking sys/ptrace.h usability... " >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18693 /* confdefs.h.  */
18694 _ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h.  */
18698 $ac_includes_default
18699 #include <sys/ptrace.h>
18700 _ACEOF
18701 rm -f conftest.$ac_objext
18702 if { (ac_try="$ac_compile"
18703 case "(($ac_try" in
18704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705   *) ac_try_echo=$ac_try;;
18706 esac
18707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18708 $as_echo "$ac_try_echo") >&5
18709   (eval "$ac_compile") 2>conftest.er1
18710   ac_status=$?
18711   grep -v '^ *+' conftest.er1 >conftest.err
18712   rm -f conftest.er1
18713   cat conftest.err >&5
18714   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); } && {
18716          test -z "$ac_c_werror_flag" ||
18717          test ! -s conftest.err
18718        } && test -s conftest.$ac_objext; then
18719   ac_header_compiler=yes
18720 else
18721   $as_echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18723
18724         ac_header_compiler=no
18725 fi
18726
18727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18729 $as_echo "$ac_header_compiler" >&6; }
18730
18731 # Is the header present?
18732 { $as_echo "$as_me:$LINENO: checking sys/ptrace.h presence" >&5
18733 $as_echo_n "checking sys/ptrace.h presence... " >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h.  */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h.  */
18740 #include <sys/ptrace.h>
18741 _ACEOF
18742 if { (ac_try="$ac_cpp conftest.$ac_ext"
18743 case "(($ac_try" in
18744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745   *) ac_try_echo=$ac_try;;
18746 esac
18747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18748 $as_echo "$ac_try_echo") >&5
18749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18750   ac_status=$?
18751   grep -v '^ *+' conftest.er1 >conftest.err
18752   rm -f conftest.er1
18753   cat conftest.err >&5
18754   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); } >/dev/null && {
18756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18757          test ! -s conftest.err
18758        }; then
18759   ac_header_preproc=yes
18760 else
18761   $as_echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764   ac_header_preproc=no
18765 fi
18766
18767 rm -f conftest.err conftest.$ac_ext
18768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18769 $as_echo "$ac_header_preproc" >&6; }
18770
18771 # So?  What about this header?
18772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18773   yes:no: )
18774     { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: accepted by the compiler, rejected by the preprocessor!" >&5
18775 $as_echo "$as_me: WARNING: sys/ptrace.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18776     { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: proceeding with the compiler's result" >&5
18777 $as_echo "$as_me: WARNING: sys/ptrace.h: proceeding with the compiler's result" >&2;}
18778     ac_header_preproc=yes
18779     ;;
18780   no:yes:* )
18781     { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: present but cannot be compiled" >&5
18782 $as_echo "$as_me: WARNING: sys/ptrace.h: present but cannot be compiled" >&2;}
18783     { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h:     check for missing prerequisite headers?" >&5
18784 $as_echo "$as_me: WARNING: sys/ptrace.h:     check for missing prerequisite headers?" >&2;}
18785     { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: see the Autoconf documentation" >&5
18786 $as_echo "$as_me: WARNING: sys/ptrace.h: see the Autoconf documentation" >&2;}
18787     { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h:     section \"Present But Cannot Be Compiled\"" >&5
18788 $as_echo "$as_me: WARNING: sys/ptrace.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18789     { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: proceeding with the preprocessor's result" >&5
18790 $as_echo "$as_me: WARNING: sys/ptrace.h: proceeding with the preprocessor's result" >&2;}
18791     { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: in the future, the compiler will take precedence" >&5
18792 $as_echo "$as_me: WARNING: sys/ptrace.h: in the future, the compiler will take precedence" >&2;}
18793     ( cat <<\_ASBOX
18794 ## ----------------------------------------- ##
18795 ## Report this to libunwind-devel@nongnu.org ##
18796 ## ----------------------------------------- ##
18797 _ASBOX
18798      ) | sed "s/^/$as_me: WARNING:     /" >&2
18799     ;;
18800 esac
18801 { $as_echo "$as_me:$LINENO: checking for sys/ptrace.h" >&5
18802 $as_echo_n "checking for sys/ptrace.h... " >&6; }
18803 if test "${ac_cv_header_sys_ptrace_h+set}" = set; then
18804   $as_echo_n "(cached) " >&6
18805 else
18806   ac_cv_header_sys_ptrace_h=$ac_header_preproc
18807 fi
18808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptrace_h" >&5
18809 $as_echo "$ac_cv_header_sys_ptrace_h" >&6; }
18810
18811 fi
18812 if test "x$ac_cv_header_sys_ptrace_h" = x""yes; then
18813   enable_ptrace=yes
18814 else
18815   enable_ptrace=no
18816 fi
18817
18818
18819
18820 fi
18821
18822
18823 { $as_echo "$as_me:$LINENO: checking if we should build libunwind-ptrace" >&5
18824 $as_echo_n "checking if we should build libunwind-ptrace... " >&6; }
18825 { $as_echo "$as_me:$LINENO: result: $enable_ptrace" >&5
18826 $as_echo "$enable_ptrace" >&6; }
18827
18828 # Check whether --enable-setjmp was given.
18829 if test "${enable_setjmp+set}" = set; then
18830   enableval=$enable_setjmp;
18831 else
18832   if test x$target_arch == x$host_arch; then
18833   enable_setjmp=yes
18834 else
18835   enable_setjmp=no
18836 fi
18837
18838
18839 fi
18840
18841
18842 # Check whether --enable-documentation was given.
18843 if test "${enable_documentation+set}" = set; then
18844   enableval=$enable_documentation;
18845 else
18846   enable_documentation=yes
18847 fi
18848
18849
18850 { $as_echo "$as_me:$LINENO: checking if we should build libunwind-setjmp" >&5
18851 $as_echo_n "checking if we should build libunwind-setjmp... " >&6; }
18852 { $as_echo "$as_me:$LINENO: result: $enable_setjmp" >&5
18853 $as_echo "$enable_setjmp" >&6; }
18854
18855 { $as_echo "$as_me:$LINENO: checking for build architecture" >&5
18856 $as_echo_n "checking for build architecture... " >&6; }
18857 { $as_echo "$as_me:$LINENO: result: $build_arch" >&5
18858 $as_echo "$build_arch" >&6; }
18859 { $as_echo "$as_me:$LINENO: checking for host architecture" >&5
18860 $as_echo_n "checking for host architecture... " >&6; }
18861 { $as_echo "$as_me:$LINENO: result: $host_arch" >&5
18862 $as_echo "$host_arch" >&6; }
18863 { $as_echo "$as_me:$LINENO: checking for target architecture" >&5
18864 $as_echo_n "checking for target architecture... " >&6; }
18865 { $as_echo "$as_me:$LINENO: result: $target_arch" >&5
18866 $as_echo "$target_arch" >&6; }
18867 { $as_echo "$as_me:$LINENO: checking for target operating system" >&5
18868 $as_echo_n "checking for target operating system... " >&6; }
18869 { $as_echo "$as_me:$LINENO: result: $target_os" >&5
18870 $as_echo "$target_os" >&6; }
18871
18872  if test x$enable_coredump = xyes; then
18873   BUILD_COREDUMP_TRUE=
18874   BUILD_COREDUMP_FALSE='#'
18875 else
18876   BUILD_COREDUMP_TRUE='#'
18877   BUILD_COREDUMP_FALSE=
18878 fi
18879
18880  if test x$enable_ptrace = xyes; then
18881   BUILD_PTRACE_TRUE=
18882   BUILD_PTRACE_FALSE='#'
18883 else
18884   BUILD_PTRACE_TRUE='#'
18885   BUILD_PTRACE_FALSE=
18886 fi
18887
18888  if test x$enable_setjmp = xyes; then
18889   BUILD_SETJMP_TRUE=
18890   BUILD_SETJMP_FALSE='#'
18891 else
18892   BUILD_SETJMP_TRUE='#'
18893   BUILD_SETJMP_FALSE=
18894 fi
18895
18896  if test x$target_arch != x$host_arch; then
18897   REMOTE_ONLY_TRUE=
18898   REMOTE_ONLY_FALSE='#'
18899 else
18900   REMOTE_ONLY_TRUE='#'
18901   REMOTE_ONLY_FALSE=
18902 fi
18903
18904  if test x$target_arch = xaarch64; then
18905   ARCH_AARCH64_TRUE=
18906   ARCH_AARCH64_FALSE='#'
18907 else
18908   ARCH_AARCH64_TRUE='#'
18909   ARCH_AARCH64_FALSE=
18910 fi
18911
18912  if test x$target_arch = xarm; then
18913   ARCH_ARM_TRUE=
18914   ARCH_ARM_FALSE='#'
18915 else
18916   ARCH_ARM_TRUE='#'
18917   ARCH_ARM_FALSE=
18918 fi
18919
18920  if test x$target_arch = xia64; then
18921   ARCH_IA64_TRUE=
18922   ARCH_IA64_FALSE='#'
18923 else
18924   ARCH_IA64_TRUE='#'
18925   ARCH_IA64_FALSE=
18926 fi
18927
18928  if test x$target_arch = xhppa; then
18929   ARCH_HPPA_TRUE=
18930   ARCH_HPPA_FALSE='#'
18931 else
18932   ARCH_HPPA_TRUE='#'
18933   ARCH_HPPA_FALSE=
18934 fi
18935
18936  if test x$target_arch = xmips; then
18937   ARCH_MIPS_TRUE=
18938   ARCH_MIPS_FALSE='#'
18939 else
18940   ARCH_MIPS_TRUE='#'
18941   ARCH_MIPS_FALSE=
18942 fi
18943
18944  if test x$target_arch = xx86; then
18945   ARCH_X86_TRUE=
18946   ARCH_X86_FALSE='#'
18947 else
18948   ARCH_X86_TRUE='#'
18949   ARCH_X86_FALSE=
18950 fi
18951
18952  if test x$target_arch = xx86_64; then
18953   ARCH_X86_64_TRUE=
18954   ARCH_X86_64_FALSE='#'
18955 else
18956   ARCH_X86_64_TRUE='#'
18957   ARCH_X86_64_FALSE=
18958 fi
18959
18960  if test x$target_arch = xppc32; then
18961   ARCH_PPC32_TRUE=
18962   ARCH_PPC32_FALSE='#'
18963 else
18964   ARCH_PPC32_TRUE='#'
18965   ARCH_PPC32_FALSE=
18966 fi
18967
18968  if test x$target_arch = xppc64; then
18969   ARCH_PPC64_TRUE=
18970   ARCH_PPC64_FALSE='#'
18971 else
18972   ARCH_PPC64_TRUE='#'
18973   ARCH_PPC64_FALSE=
18974 fi
18975
18976  if test x$target_arch = xsh; then
18977   ARCH_SH_TRUE=
18978   ARCH_SH_FALSE='#'
18979 else
18980   ARCH_SH_TRUE='#'
18981   ARCH_SH_FALSE=
18982 fi
18983
18984  if test x$target_arch = xtilegx; then
18985   ARCH_TILEGX_TRUE=
18986   ARCH_TILEGX_FALSE='#'
18987 else
18988   ARCH_TILEGX_TRUE='#'
18989   ARCH_TILEGX_FALSE=
18990 fi
18991
18992  if expr x$target_os : xlinux >/dev/null; then
18993   OS_LINUX_TRUE=
18994   OS_LINUX_FALSE='#'
18995 else
18996   OS_LINUX_TRUE='#'
18997   OS_LINUX_FALSE=
18998 fi
18999
19000  if expr x$target_os : xhpux >/dev/null; then
19001   OS_HPUX_TRUE=
19002   OS_HPUX_FALSE='#'
19003 else
19004   OS_HPUX_TRUE='#'
19005   OS_HPUX_FALSE=
19006 fi
19007
19008  if expr x$target_os : xfreebsd >/dev/null; then
19009   OS_FREEBSD_TRUE=
19010   OS_FREEBSD_FALSE='#'
19011 else
19012   OS_FREEBSD_TRUE='#'
19013   OS_FREEBSD_FALSE=
19014 fi
19015
19016  if expr x$target_os : xnto-qnx >/dev/null; then
19017   OS_QNX_TRUE=
19018   OS_QNX_FALSE='#'
19019 else
19020   OS_QNX_TRUE='#'
19021   OS_QNX_FALSE=
19022 fi
19023
19024
19025 { $as_echo "$as_me:$LINENO: checking for ELF helper width" >&5
19026 $as_echo_n "checking for ELF helper width... " >&6; }
19027 case "${target_arch}" in
19028 (arm|hppa|ppc32|x86|sh) use_elf32=yes; { $as_echo "$as_me:$LINENO: result: 32" >&5
19029 $as_echo "32" >&6; };;
19030 (aarch64|ia64|ppc64|x86_64|tilegx)  use_elf64=yes; { $as_echo "$as_me:$LINENO: result: 64" >&5
19031 $as_echo "64" >&6; };;
19032 (mips)                 use_elfxx=yes; { $as_echo "$as_me:$LINENO: result: xx" >&5
19033 $as_echo "xx" >&6; };;
19034 *)                     { { $as_echo "$as_me:$LINENO: error: Unknown ELF target: ${target_arch}" >&5
19035 $as_echo "$as_me: error: Unknown ELF target: ${target_arch}" >&2;}
19036    { (exit 1); exit 1; }; }
19037 esac
19038  if test x$use_elf32 = xyes; then
19039   USE_ELF32_TRUE=
19040   USE_ELF32_FALSE='#'
19041 else
19042   USE_ELF32_TRUE='#'
19043   USE_ELF32_FALSE=
19044 fi
19045
19046  if test x$use_elf64 = xyes; then
19047   USE_ELF64_TRUE=
19048   USE_ELF64_FALSE='#'
19049 else
19050   USE_ELF64_TRUE='#'
19051   USE_ELF64_FALSE=
19052 fi
19053
19054  if test x$use_elfxx = xyes; then
19055   USE_ELFXX_TRUE=
19056   USE_ELFXX_FALSE='#'
19057 else
19058   USE_ELFXX_TRUE='#'
19059   USE_ELFXX_FALSE=
19060 fi
19061
19062
19063 { $as_echo "$as_me:$LINENO: checking whether to include DWARF support" >&5
19064 $as_echo_n "checking whether to include DWARF support... " >&6; }
19065 if test x$target_arch != xia64; then
19066   use_dwarf=yes
19067 else
19068   use_dwarf=no
19069 fi
19070  if test x$use_dwarf = xyes; then
19071   USE_DWARF_TRUE=
19072   USE_DWARF_FALSE='#'
19073 else
19074   USE_DWARF_TRUE='#'
19075   USE_DWARF_FALSE=
19076 fi
19077
19078 { $as_echo "$as_me:$LINENO: result: $use_dwarf" >&5
19079 $as_echo "$use_dwarf" >&6; }
19080
19081 if test x$target_arch = xppc64; then
19082         libdir='${exec_prefix}/lib64'
19083         { $as_echo "$as_me:$LINENO: PowerPC64 detected, lib will be installed ${libdir}" >&5
19084 $as_echo "$as_me: PowerPC64 detected, lib will be installed ${libdir}" >&6;};
19085
19086 fi
19087
19088 { $as_echo "$as_me:$LINENO: checking whether to restrict build to remote support" >&5
19089 $as_echo_n "checking whether to restrict build to remote support... " >&6; }
19090 if test x$target_arch != x$host_arch; then
19091   CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
19092   remote_only=yes
19093 else
19094   remote_only=no
19095 fi
19096 { $as_echo "$as_me:$LINENO: result: $remote_only" >&5
19097 $as_echo "$remote_only" >&6; }
19098
19099 { $as_echo "$as_me:$LINENO: checking whether to enable debug support" >&5
19100 $as_echo_n "checking whether to enable debug support... " >&6; }
19101 # Check whether --enable-debug was given.
19102 if test "${enable_debug+set}" = set; then
19103   enableval=$enable_debug;
19104 fi
19105
19106 if test x$enable_debug = xyes; then
19107   CPPFLAGS="${CPPFLAGS} -DDEBUG"
19108 else
19109   CPPFLAGS="${CPPFLAGS} -DNDEBUG"
19110 fi
19111 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
19112 $as_echo "$enable_debug" >&6; }
19113
19114 { $as_echo "$as_me:$LINENO: checking whether to enable C++ exception support" >&5
19115 $as_echo_n "checking whether to enable C++ exception support... " >&6; }
19116 # Check whether --enable-cxx_exceptions was given.
19117 if test "${enable_cxx_exceptions+set}" = set; then
19118   enableval=$enable_cxx_exceptions;
19119 else
19120
19121 # C++ exception handling doesn't work too well on x86
19122 case $target_arch in
19123   x86*) enable_cxx_exceptions=no;;
19124   aarch64*) enable_cxx_exceptions=no;;
19125   arm*) enable_cxx_exceptions=no;;
19126   mips*) enable_cxx_exceptions=no;;
19127   tile*) enable_cxx_exceptions=no;;
19128   *) enable_cxx_exceptions=yes;;
19129 esac
19130
19131 fi
19132
19133
19134  if test x$enable_cxx_exceptions = xyes; then
19135   SUPPORT_CXX_EXCEPTIONS_TRUE=
19136   SUPPORT_CXX_EXCEPTIONS_FALSE='#'
19137 else
19138   SUPPORT_CXX_EXCEPTIONS_TRUE='#'
19139   SUPPORT_CXX_EXCEPTIONS_FALSE=
19140 fi
19141
19142 { $as_echo "$as_me:$LINENO: result: $enable_cxx_exceptions" >&5
19143 $as_echo "$enable_cxx_exceptions" >&6; }
19144
19145 { $as_echo "$as_me:$LINENO: checking whether to load .debug_frame sections" >&5
19146 $as_echo_n "checking whether to load .debug_frame sections... " >&6; }
19147 # Check whether --enable-debug_frame was given.
19148 if test "${enable_debug_frame+set}" = set; then
19149   enableval=$enable_debug_frame;
19150 else
19151
19152 case "${target_arch}" in
19153   (arm) enable_debug_frame=yes;;
19154   (*)   enable_debug_frame=no;;
19155 esac
19156 fi
19157
19158 if test x$enable_debug_frame = xyes; then
19159
19160 cat >>confdefs.h <<\_ACEOF
19161 #define CONFIG_DEBUG_FRAME /**/
19162 _ACEOF
19163
19164 fi
19165 { $as_echo "$as_me:$LINENO: result: $enable_debug_frame" >&5
19166 $as_echo "$enable_debug_frame" >&6; }
19167
19168 { $as_echo "$as_me:$LINENO: checking whether to block signals during mutex ops" >&5
19169 $as_echo_n "checking whether to block signals during mutex ops... " >&6; }
19170 # Check whether --enable-block_signals was given.
19171 if test "${enable_block_signals+set}" = set; then
19172   enableval=$enable_block_signals;
19173 else
19174   enable_block_signals=yes
19175 fi
19176
19177 if test x$enable_block_signals = xyes; then
19178
19179 cat >>confdefs.h <<\_ACEOF
19180 #define CONFIG_BLOCK_SIGNALS /**/
19181 _ACEOF
19182
19183 fi
19184 { $as_echo "$as_me:$LINENO: result: $enable_block_signals" >&5
19185 $as_echo "$enable_block_signals" >&6; }
19186
19187 { $as_echo "$as_me:$LINENO: checking whether to validate memory addresses before use" >&5
19188 $as_echo_n "checking whether to validate memory addresses before use... " >&6; }
19189 # Check whether --enable-conservative_checks was given.
19190 if test "${enable_conservative_checks+set}" = set; then
19191   enableval=$enable_conservative_checks;
19192 else
19193   enable_conservative_checks=yes
19194 fi
19195
19196 if test x$enable_conservative_checks = xyes; then
19197
19198 cat >>confdefs.h <<\_ACEOF
19199 #define CONSERVATIVE_CHECKS 1
19200 _ACEOF
19201
19202 fi
19203 { $as_echo "$as_me:$LINENO: result: $enable_conservative_checks" >&5
19204 $as_echo "$enable_conservative_checks" >&6; }
19205
19206 { $as_echo "$as_me:$LINENO: checking whether to enable msabi support" >&5
19207 $as_echo_n "checking whether to enable msabi support... " >&6; }
19208 # Check whether --enable-msabi_support was given.
19209 if test "${enable_msabi_support+set}" = set; then
19210   enableval=$enable_msabi_support;
19211 fi
19212
19213 if test x$enable_msabi_support = xyes; then
19214
19215 cat >>confdefs.h <<\_ACEOF
19216 #define CONFIG_MSABI_SUPPORT /**/
19217 _ACEOF
19218
19219 fi
19220 { $as_echo "$as_me:$LINENO: result: $enable_msabi_support" >&5
19221 $as_echo "$enable_msabi_support" >&6; }
19222
19223 LIBLZMA=
19224 { $as_echo "$as_me:$LINENO: checking whether to support LZMA-compressed symbol tables" >&5
19225 $as_echo_n "checking whether to support LZMA-compressed symbol tables... " >&6; }
19226 # Check whether --enable-minidebuginfo was given.
19227 if test "${enable_minidebuginfo+set}" = set; then
19228   enableval=$enable_minidebuginfo;
19229 else
19230   enable_minidebuginfo=auto
19231 fi
19232
19233 { $as_echo "$as_me:$LINENO: result: $enable_minidebuginfo" >&5
19234 $as_echo "$enable_minidebuginfo" >&6; }
19235 if test x$enable_minidebuginfo != xno; then
19236    { $as_echo "$as_me:$LINENO: checking for lzma_mf_is_supported in -llzma" >&5
19237 $as_echo_n "checking for lzma_mf_is_supported in -llzma... " >&6; }
19238 if test "${ac_cv_lib_lzma_lzma_mf_is_supported+set}" = set; then
19239   $as_echo_n "(cached) " >&6
19240 else
19241   ac_check_lib_save_LIBS=$LIBS
19242 LIBS="-llzma  $LIBS"
19243 cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h.  */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h.  */
19249
19250 /* Override any GCC internal prototype to avoid an error.
19251    Use char because int might match the return type of a GCC
19252    builtin and then its argument prototype would still apply.  */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 char lzma_mf_is_supported ();
19257 int
19258 main ()
19259 {
19260 return lzma_mf_is_supported ();
19261   ;
19262   return 0;
19263 }
19264 _ACEOF
19265 rm -f conftest.$ac_objext conftest$ac_exeext
19266 if { (ac_try="$ac_link"
19267 case "(($ac_try" in
19268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269   *) ac_try_echo=$ac_try;;
19270 esac
19271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19272 $as_echo "$ac_try_echo") >&5
19273   (eval "$ac_link") 2>conftest.er1
19274   ac_status=$?
19275   grep -v '^ *+' conftest.er1 >conftest.err
19276   rm -f conftest.er1
19277   cat conftest.err >&5
19278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } && {
19280          test -z "$ac_c_werror_flag" ||
19281          test ! -s conftest.err
19282        } && test -s conftest$ac_exeext && {
19283          test "$cross_compiling" = yes ||
19284          $as_test_x conftest$ac_exeext
19285        }; then
19286   ac_cv_lib_lzma_lzma_mf_is_supported=yes
19287 else
19288   $as_echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19290
19291         ac_cv_lib_lzma_lzma_mf_is_supported=no
19292 fi
19293
19294 rm -rf conftest.dSYM
19295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19296       conftest$ac_exeext conftest.$ac_ext
19297 LIBS=$ac_check_lib_save_LIBS
19298 fi
19299 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzma_lzma_mf_is_supported" >&5
19300 $as_echo "$ac_cv_lib_lzma_lzma_mf_is_supported" >&6; }
19301 if test "x$ac_cv_lib_lzma_lzma_mf_is_supported" = x""yes; then
19302   LIBLZMA=-llzma
19303
19304 cat >>confdefs.h <<\_ACEOF
19305 #define HAVE_LZMA 1
19306 _ACEOF
19307
19308     enable_minidebuginfo=yes
19309 else
19310   if test x$enable_minidebuginfo = xyes; then
19311       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19313 { { $as_echo "$as_me:$LINENO: error: liblzma not found
19314 See \`config.log' for more details." >&5
19315 $as_echo "$as_me: error: liblzma not found
19316 See \`config.log' for more details." >&2;}
19317    { (exit 1); exit 1; }; }; }
19318     fi
19319 fi
19320
19321 fi
19322
19323  if test x$enable_minidebuginfo = xyes; then
19324   HAVE_LZMA_TRUE=
19325   HAVE_LZMA_FALSE='#'
19326 else
19327   HAVE_LZMA_TRUE='#'
19328   HAVE_LZMA_FALSE=
19329 fi
19330
19331
19332 if test "x$enable___thread" != xno; then
19333   { $as_echo "$as_me:$LINENO: checking for __thread" >&5
19334 $as_echo_n "checking for __thread... " >&6; }
19335 if test "${libc_cv_gcc___thread+set}" = set; then
19336   $as_echo_n "(cached) " >&6
19337 else
19338   cat > conftest.c <<\EOF
19339     __thread int a = 42;
19340 EOF
19341   if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
19342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343   (eval $ac_try) 2>&5
19344   ac_status=$?
19345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346   (exit $ac_status); }; }; then
19347     libc_cv_gcc___thread=yes
19348   else
19349     libc_cv_gcc___thread=no
19350   fi
19351   rm -f conftest*
19352 fi
19353 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
19354 $as_echo "$libc_cv_gcc___thread" >&6; }
19355   if test "$libc_cv_gcc___thread" = yes; then
19356
19357 cat >>confdefs.h <<\_ACEOF
19358 #define HAVE___THREAD 1
19359 _ACEOF
19360
19361   fi
19362 else
19363   libc_cv_gcc___thread=no
19364 fi
19365
19366 { $as_echo "$as_me:$LINENO: checking for Intel compiler" >&5
19367 $as_echo_n "checking for Intel compiler... " >&6; }
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h.  */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h.  */
19374
19375 int
19376 main ()
19377 {
19378 #ifndef __INTEL_COMPILER
19379 #error choke me
19380 #endif
19381   ;
19382   return 0;
19383 }
19384 _ACEOF
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389   *) ac_try_echo=$ac_try;;
19390 esac
19391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19392 $as_echo "$ac_try_echo") >&5
19393   (eval "$ac_compile") 2>conftest.er1
19394   ac_status=$?
19395   grep -v '^ *+' conftest.er1 >conftest.err
19396   rm -f conftest.er1
19397   cat conftest.err >&5
19398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } && {
19400          test -z "$ac_c_werror_flag" ||
19401          test ! -s conftest.err
19402        } && test -s conftest.$ac_objext; then
19403   intel_compiler=yes
19404 else
19405   $as_echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19407
19408         intel_compiler=no
19409 fi
19410
19411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19412
19413 if test x$GCC = xyes -a x$intel_compiler != xyes; then
19414   CFLAGS="${CFLAGS} -fexceptions -Wall -Wsign-compare"
19415 fi
19416 { $as_echo "$as_me:$LINENO: result: $intel_compiler" >&5
19417 $as_echo "$intel_compiler" >&6; }
19418
19419 { $as_echo "$as_me:$LINENO: checking for QCC compiler" >&5
19420 $as_echo_n "checking for QCC compiler... " >&6; }
19421 case $CC in
19422   qcc*|QCC*) qcc_compiler=yes ;;
19423   *) qcc_compiler=no ;;
19424 esac
19425
19426 { $as_echo "$as_me:$LINENO: result: $qcc_compiler" >&5
19427 $as_echo "$qcc_compiler" >&6; }
19428
19429 if test x$intel_compiler = xyes; then
19430   { $as_echo "$as_me:$LINENO: checking if linker supports -static-libcxa" >&5
19431 $as_echo_n "checking if linker supports -static-libcxa... " >&6; }
19432   save_LDFLAGS="$LDFLAGS"
19433   LDFLAGS="$LDFLAGS -static-libcxa"
19434   cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h.  */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h.  */
19440
19441 int
19442 main ()
19443 {
19444
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
19449 rm -f conftest.$ac_objext conftest$ac_exeext
19450 if { (ac_try="$ac_link"
19451 case "(($ac_try" in
19452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453   *) ac_try_echo=$ac_try;;
19454 esac
19455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19456 $as_echo "$ac_try_echo") >&5
19457   (eval "$ac_link") 2>conftest.er1
19458   ac_status=$?
19459   grep -v '^ *+' conftest.er1 >conftest.err
19460   rm -f conftest.er1
19461   cat conftest.err >&5
19462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463   (exit $ac_status); } && {
19464          test -z "$ac_c_werror_flag" ||
19465          test ! -s conftest.err
19466        } && test -s conftest$ac_exeext && {
19467          test "$cross_compiling" = yes ||
19468          $as_test_x conftest$ac_exeext
19469        }; then
19470   have_static_libcxa=yes
19471 else
19472   $as_echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19474
19475         have_static_libcxa=no
19476 fi
19477
19478 rm -rf conftest.dSYM
19479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19480       conftest$ac_exeext conftest.$ac_ext
19481   LDFLAGS="$save_LDFLAGS"
19482   if test "x$have_static_libcxa" = xyes; then
19483     LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
19484   fi
19485   { $as_echo "$as_me:$LINENO: result: $have_static_libcxa" >&5
19486 $as_echo "$have_static_libcxa" >&6; }
19487 fi
19488
19489 if test x$qcc_compiler = xyes; then
19490     LDFLAGS_NOSTARTFILES="-XCClinker -Wc,-nostartfiles"
19491 else
19492     LDFLAGS_NOSTARTFILES="-XCClinker -nostartfiles"
19493 fi
19494
19495 if test x$GCC = xyes -a x$intel_compiler != xyes -a x$qcc_compiler != xyes; then
19496   LIBCRTS="-lgcc_s"
19497 fi
19498
19499 { $as_echo "$as_me:$LINENO: checking for __builtin___clear_cache" >&5
19500 $as_echo_n "checking for __builtin___clear_cache... " >&6; }
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h.  */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h.  */
19507
19508 int
19509 main ()
19510 {
19511 __builtin___clear_cache(0, 0)
19512   ;
19513   return 0;
19514 }
19515 _ACEOF
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (ac_try="$ac_link"
19518 case "(($ac_try" in
19519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520   *) ac_try_echo=$ac_try;;
19521 esac
19522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19523 $as_echo "$ac_try_echo") >&5
19524   (eval "$ac_link") 2>conftest.er1
19525   ac_status=$?
19526   grep -v '^ *+' conftest.er1 >conftest.err
19527   rm -f conftest.er1
19528   cat conftest.err >&5
19529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); } && {
19531          test -z "$ac_c_werror_flag" ||
19532          test ! -s conftest.err
19533        } && test -s conftest$ac_exeext && {
19534          test "$cross_compiling" = yes ||
19535          $as_test_x conftest$ac_exeext
19536        }; then
19537   have__builtin___clear_cache=yes
19538 else
19539   $as_echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542         have__builtin___clear_cache=no
19543 fi
19544
19545 rm -rf conftest.dSYM
19546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19547       conftest$ac_exeext conftest.$ac_ext
19548 if test x$have__builtin___clear_cache = xyes; then
19549
19550 cat >>confdefs.h <<\_ACEOF
19551 #define HAVE__BUILTIN___CLEAR_CACHE 1
19552 _ACEOF
19553
19554 fi
19555 { $as_echo "$as_me:$LINENO: result: $have__builtin___clear_cache" >&5
19556 $as_echo "$have__builtin___clear_cache" >&6; }
19557
19558 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
19559 $as_echo_n "checking for __builtin_unreachable... " >&6; }
19560 cat >conftest.$ac_ext <<_ACEOF
19561 /* confdefs.h.  */
19562 _ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h.  */
19566
19567 int
19568 main ()
19569 {
19570 __builtin_unreachable()
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 rm -f conftest.$ac_objext conftest$ac_exeext
19576 if { (ac_try="$ac_link"
19577 case "(($ac_try" in
19578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579   *) ac_try_echo=$ac_try;;
19580 esac
19581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19582 $as_echo "$ac_try_echo") >&5
19583   (eval "$ac_link") 2>conftest.er1
19584   ac_status=$?
19585   grep -v '^ *+' conftest.er1 >conftest.err
19586   rm -f conftest.er1
19587   cat conftest.err >&5
19588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); } && {
19590          test -z "$ac_c_werror_flag" ||
19591          test ! -s conftest.err
19592        } && test -s conftest$ac_exeext && {
19593          test "$cross_compiling" = yes ||
19594          $as_test_x conftest$ac_exeext
19595        }; then
19596   have__builtin_unreachable=yes
19597 else
19598   $as_echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601         have__builtin_unreachable=no
19602 fi
19603
19604 rm -rf conftest.dSYM
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606       conftest$ac_exeext conftest.$ac_ext
19607 if test x$have__builtin_unreachable = xyes; then
19608
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE__BUILTIN_UNREACHABLE 1
19611 _ACEOF
19612
19613 fi
19614 { $as_echo "$as_me:$LINENO: result: $have__builtin_unreachable" >&5
19615 $as_echo "$have__builtin_unreachable" >&6; }
19616
19617 { $as_echo "$as_me:$LINENO: checking for __sync atomics" >&5
19618 $as_echo_n "checking for __sync atomics... " >&6; }
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h.  */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h.  */
19625
19626 int
19627 main ()
19628 {
19629
19630     __sync_bool_compare_and_swap((int *)0, 0, 1);
19631     __sync_fetch_and_add((int *)0, 1);
19632
19633   ;
19634   return 0;
19635 }
19636 _ACEOF
19637 rm -f conftest.$ac_objext conftest$ac_exeext
19638 if { (ac_try="$ac_link"
19639 case "(($ac_try" in
19640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641   *) ac_try_echo=$ac_try;;
19642 esac
19643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19644 $as_echo "$ac_try_echo") >&5
19645   (eval "$ac_link") 2>conftest.er1
19646   ac_status=$?
19647   grep -v '^ *+' conftest.er1 >conftest.err
19648   rm -f conftest.er1
19649   cat conftest.err >&5
19650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651   (exit $ac_status); } && {
19652          test -z "$ac_c_werror_flag" ||
19653          test ! -s conftest.err
19654        } && test -s conftest$ac_exeext && {
19655          test "$cross_compiling" = yes ||
19656          $as_test_x conftest$ac_exeext
19657        }; then
19658   have_sync_atomics=yes
19659 else
19660   $as_echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663         have_sync_atomics=no
19664 fi
19665
19666 rm -rf conftest.dSYM
19667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19668       conftest$ac_exeext conftest.$ac_ext
19669 if test x$have_sync_atomics = xyes; then
19670
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_SYNC_ATOMICS 1
19673 _ACEOF
19674
19675 fi
19676 { $as_echo "$as_me:$LINENO: result: $have_sync_atomics" >&5
19677 $as_echo "$have_sync_atomics" >&6; }
19678
19679 CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
19680
19681 arch="$target_arch"
19682 ARCH=`echo $target_arch | tr a-z A-Z`
19683
19684 PKG_MAJOR=1
19685 PKG_MINOR=2
19686 PKG_EXTRA=
19687 PKG_MAINTAINER=libunwind-devel@nongnu.org
19688
19689 old_LIBS="$LIBS"
19690 LIBS=""
19691 { $as_echo "$as_me:$LINENO: checking for library containing backtrace" >&5
19692 $as_echo_n "checking for library containing backtrace... " >&6; }
19693 if test "${ac_cv_search_backtrace+set}" = set; then
19694   $as_echo_n "(cached) " >&6
19695 else
19696   ac_func_search_save_LIBS=$LIBS
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h.  */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h.  */
19703
19704 /* Override any GCC internal prototype to avoid an error.
19705    Use char because int might match the return type of a GCC
19706    builtin and then its argument prototype would still apply.  */
19707 #ifdef __cplusplus
19708 extern "C"
19709 #endif
19710 char backtrace ();
19711 int
19712 main ()
19713 {
19714 return backtrace ();
19715   ;
19716   return 0;
19717 }
19718 _ACEOF
19719 for ac_lib in '' execinfo; do
19720   if test -z "$ac_lib"; then
19721     ac_res="none required"
19722   else
19723     ac_res=-l$ac_lib
19724     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19725   fi
19726   rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (ac_try="$ac_link"
19728 case "(($ac_try" in
19729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730   *) ac_try_echo=$ac_try;;
19731 esac
19732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19733 $as_echo "$ac_try_echo") >&5
19734   (eval "$ac_link") 2>conftest.er1
19735   ac_status=$?
19736   grep -v '^ *+' conftest.er1 >conftest.err
19737   rm -f conftest.er1
19738   cat conftest.err >&5
19739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); } && {
19741          test -z "$ac_c_werror_flag" ||
19742          test ! -s conftest.err
19743        } && test -s conftest$ac_exeext && {
19744          test "$cross_compiling" = yes ||
19745          $as_test_x conftest$ac_exeext
19746        }; then
19747   ac_cv_search_backtrace=$ac_res
19748 else
19749   $as_echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19751
19752
19753 fi
19754
19755 rm -rf conftest.dSYM
19756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19757       conftest$ac_exeext
19758   if test "${ac_cv_search_backtrace+set}" = set; then
19759   break
19760 fi
19761 done
19762 if test "${ac_cv_search_backtrace+set}" = set; then
19763   :
19764 else
19765   ac_cv_search_backtrace=no
19766 fi
19767 rm conftest.$ac_ext
19768 LIBS=$ac_func_search_save_LIBS
19769 fi
19770 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_backtrace" >&5
19771 $as_echo "$ac_cv_search_backtrace" >&6; }
19772 ac_res=$ac_cv_search_backtrace
19773 if test "$ac_res" != no; then
19774   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19775
19776 fi
19777
19778 LIBS="$old_LIBS"
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795 # Extract the first word of "latex2man", so it can be a program name with args.
19796 set dummy latex2man; ac_word=$2
19797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19798 $as_echo_n "checking for $ac_word... " >&6; }
19799 if test "${ac_cv_path_LATEX2MAN+set}" = set; then
19800   $as_echo_n "(cached) " >&6
19801 else
19802   case $LATEX2MAN in
19803   [\\/]* | ?:[\\/]*)
19804   ac_cv_path_LATEX2MAN="$LATEX2MAN" # Let the user override the test with a path.
19805   ;;
19806   *)
19807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19808 for as_dir in $PATH
19809 do
19810   IFS=$as_save_IFS
19811   test -z "$as_dir" && as_dir=.
19812   for ac_exec_ext in '' $ac_executable_extensions; do
19813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19814     ac_cv_path_LATEX2MAN="$as_dir/$ac_word$ac_exec_ext"
19815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19816     break 2
19817   fi
19818 done
19819 done
19820 IFS=$as_save_IFS
19821
19822   ;;
19823 esac
19824 fi
19825 LATEX2MAN=$ac_cv_path_LATEX2MAN
19826 if test -n "$LATEX2MAN"; then
19827   { $as_echo "$as_me:$LINENO: result: $LATEX2MAN" >&5
19828 $as_echo "$LATEX2MAN" >&6; }
19829 else
19830   { $as_echo "$as_me:$LINENO: result: no" >&5
19831 $as_echo "no" >&6; }
19832 fi
19833
19834
19835 if test "x$LATEX2MAN" = "x"; then
19836   { $as_echo "$as_me:$LINENO: WARNING: latex2man not found. Install latex2man. Disabling docs." >&5
19837 $as_echo "$as_me: WARNING: latex2man not found. Install latex2man. Disabling docs." >&2;}
19838   enable_documentation="no";
19839 fi
19840
19841  if test x$enable_documentation = xyes; then
19842   CONFIG_DOCS_TRUE=
19843   CONFIG_DOCS_FALSE='#'
19844 else
19845   CONFIG_DOCS_TRUE='#'
19846   CONFIG_DOCS_FALSE=
19847 fi
19848
19849 if test "x$enable_documentation" = "xyes"; then
19850   ac_config_files="$ac_config_files doc/Makefile doc/common.tex"
19851
19852 fi
19853
19854 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/check-namespace.sh include/libunwind-common.h include/libunwind.h include/tdep/libunwind_i.h"
19855
19856 ac_config_files="$ac_config_files src/unwind/libunwind.pc src/coredump/libunwind-coredump.pc src/ptrace/libunwind-ptrace.pc src/setjmp/libunwind-setjmp.pc src/libunwind-generic.pc"
19857
19858 cat >confcache <<\_ACEOF
19859 # This file is a shell script that caches the results of configure
19860 # tests run on this system so they can be shared between configure
19861 # scripts and configure runs, see configure's option --config-cache.
19862 # It is not useful on other systems.  If it contains results you don't
19863 # want to keep, you may remove or edit it.
19864 #
19865 # config.status only pays attention to the cache file if you give it
19866 # the --recheck option to rerun configure.
19867 #
19868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19870 # following values.
19871
19872 _ACEOF
19873
19874 # The following way of writing the cache mishandles newlines in values,
19875 # but we know of no workaround that is simple, portable, and efficient.
19876 # So, we kill variables containing newlines.
19877 # Ultrix sh set writes to stderr and can't be redirected directly,
19878 # and sets the high bit in the cache file unless we assign to the vars.
19879 (
19880   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19881     eval ac_val=\$$ac_var
19882     case $ac_val in #(
19883     *${as_nl}*)
19884       case $ac_var in #(
19885       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19887       esac
19888       case $ac_var in #(
19889       _ | IFS | as_nl) ;; #(
19890       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19891       *) $as_unset $ac_var ;;
19892       esac ;;
19893     esac
19894   done
19895
19896   (set) 2>&1 |
19897     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19898     *${as_nl}ac_space=\ *)
19899       # `set' does not quote correctly, so add quotes (double-quote
19900       # substitution turns \\\\ into \\, and sed turns \\ into \).
19901       sed -n \
19902         "s/'/'\\\\''/g;
19903           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19904       ;; #(
19905     *)
19906       # `set' quotes correctly as required by POSIX, so do not add quotes.
19907       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19908       ;;
19909     esac |
19910     sort
19911 ) |
19912   sed '
19913      /^ac_cv_env_/b end
19914      t clear
19915      :clear
19916      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19917      t end
19918      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19919      :end' >>confcache
19920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19921   if test -w "$cache_file"; then
19922     test "x$cache_file" != "x/dev/null" &&
19923       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19924 $as_echo "$as_me: updating cache $cache_file" >&6;}
19925     cat confcache >$cache_file
19926   else
19927     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19928 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19929   fi
19930 fi
19931 rm -f confcache
19932
19933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19934 # Let make expand exec_prefix.
19935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19936
19937 DEFS=-DHAVE_CONFIG_H
19938
19939 ac_libobjs=
19940 ac_ltlibobjs=
19941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19942   # 1. Remove the extension, and $U if already installed.
19943   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19944   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19945   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19946   #    will be set to the directory where LIBOBJS objects are built.
19947   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19948   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19949 done
19950 LIBOBJS=$ac_libobjs
19951
19952 LTLIBOBJS=$ac_ltlibobjs
19953
19954
19955  if test -n "$EXEEXT"; then
19956   am__EXEEXT_TRUE=
19957   am__EXEEXT_FALSE='#'
19958 else
19959   am__EXEEXT_TRUE='#'
19960   am__EXEEXT_FALSE=
19961 fi
19962
19963 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19964   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19965 Usually this means the macro was only invoked conditionally." >&5
19966 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19967 Usually this means the macro was only invoked conditionally." >&2;}
19968    { (exit 1); exit 1; }; }
19969 fi
19970 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19971   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19972 Usually this means the macro was only invoked conditionally." >&5
19973 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
19974 Usually this means the macro was only invoked conditionally." >&2;}
19975    { (exit 1); exit 1; }; }
19976 fi
19977 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19978   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19979 Usually this means the macro was only invoked conditionally." >&5
19980 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19981 Usually this means the macro was only invoked conditionally." >&2;}
19982    { (exit 1); exit 1; }; }
19983 fi
19984 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19985   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19986 Usually this means the macro was only invoked conditionally." >&5
19987 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19988 Usually this means the macro was only invoked conditionally." >&2;}
19989    { (exit 1); exit 1; }; }
19990 fi
19991 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19992   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19993 Usually this means the macro was only invoked conditionally." >&5
19994 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19995 Usually this means the macro was only invoked conditionally." >&2;}
19996    { (exit 1); exit 1; }; }
19997 fi
19998 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19999   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20000 Usually this means the macro was only invoked conditionally." >&5
20001 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20002 Usually this means the macro was only invoked conditionally." >&2;}
20003    { (exit 1); exit 1; }; }
20004 fi
20005 if test -z "${USE_ALTIVEC_TRUE}" && test -z "${USE_ALTIVEC_FALSE}"; then
20006   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ALTIVEC\" was never defined.
20007 Usually this means the macro was only invoked conditionally." >&5
20008 $as_echo "$as_me: error: conditional \"USE_ALTIVEC\" was never defined.
20009 Usually this means the macro was only invoked conditionally." >&2;}
20010    { (exit 1); exit 1; }; }
20011 fi
20012 if test -z "${BUILD_COREDUMP_TRUE}" && test -z "${BUILD_COREDUMP_FALSE}"; then
20013   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_COREDUMP\" was never defined.
20014 Usually this means the macro was only invoked conditionally." >&5
20015 $as_echo "$as_me: error: conditional \"BUILD_COREDUMP\" was never defined.
20016 Usually this means the macro was only invoked conditionally." >&2;}
20017    { (exit 1); exit 1; }; }
20018 fi
20019 if test -z "${BUILD_PTRACE_TRUE}" && test -z "${BUILD_PTRACE_FALSE}"; then
20020   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PTRACE\" was never defined.
20021 Usually this means the macro was only invoked conditionally." >&5
20022 $as_echo "$as_me: error: conditional \"BUILD_PTRACE\" was never defined.
20023 Usually this means the macro was only invoked conditionally." >&2;}
20024    { (exit 1); exit 1; }; }
20025 fi
20026 if test -z "${BUILD_SETJMP_TRUE}" && test -z "${BUILD_SETJMP_FALSE}"; then
20027   { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SETJMP\" was never defined.
20028 Usually this means the macro was only invoked conditionally." >&5
20029 $as_echo "$as_me: error: conditional \"BUILD_SETJMP\" was never defined.
20030 Usually this means the macro was only invoked conditionally." >&2;}
20031    { (exit 1); exit 1; }; }
20032 fi
20033 if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
20034   { { $as_echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
20035 Usually this means the macro was only invoked conditionally." >&5
20036 $as_echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
20037 Usually this means the macro was only invoked conditionally." >&2;}
20038    { (exit 1); exit 1; }; }
20039 fi
20040 if test -z "${ARCH_AARCH64_TRUE}" && test -z "${ARCH_AARCH64_FALSE}"; then
20041   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_AARCH64\" was never defined.
20042 Usually this means the macro was only invoked conditionally." >&5
20043 $as_echo "$as_me: error: conditional \"ARCH_AARCH64\" was never defined.
20044 Usually this means the macro was only invoked conditionally." >&2;}
20045    { (exit 1); exit 1; }; }
20046 fi
20047 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
20048   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_ARM\" was never defined.
20049 Usually this means the macro was only invoked conditionally." >&5
20050 $as_echo "$as_me: error: conditional \"ARCH_ARM\" was never defined.
20051 Usually this means the macro was only invoked conditionally." >&2;}
20052    { (exit 1); exit 1; }; }
20053 fi
20054 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20055   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20056 Usually this means the macro was only invoked conditionally." >&5
20057 $as_echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20058 Usually this means the macro was only invoked conditionally." >&2;}
20059    { (exit 1); exit 1; }; }
20060 fi
20061 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20062   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20063 Usually this means the macro was only invoked conditionally." >&5
20064 $as_echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20065 Usually this means the macro was only invoked conditionally." >&2;}
20066    { (exit 1); exit 1; }; }
20067 fi
20068 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
20069   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_MIPS\" was never defined.
20070 Usually this means the macro was only invoked conditionally." >&5
20071 $as_echo "$as_me: error: conditional \"ARCH_MIPS\" was never defined.
20072 Usually this means the macro was only invoked conditionally." >&2;}
20073    { (exit 1); exit 1; }; }
20074 fi
20075 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
20076   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
20077 Usually this means the macro was only invoked conditionally." >&5
20078 $as_echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
20079 Usually this means the macro was only invoked conditionally." >&2;}
20080    { (exit 1); exit 1; }; }
20081 fi
20082 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
20083   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_X86_64\" was never defined.
20084 Usually this means the macro was only invoked conditionally." >&5
20085 $as_echo "$as_me: error: conditional \"ARCH_X86_64\" was never defined.
20086 Usually this means the macro was only invoked conditionally." >&2;}
20087    { (exit 1); exit 1; }; }
20088 fi
20089 if test -z "${ARCH_PPC32_TRUE}" && test -z "${ARCH_PPC32_FALSE}"; then
20090   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_PPC32\" was never defined.
20091 Usually this means the macro was only invoked conditionally." >&5
20092 $as_echo "$as_me: error: conditional \"ARCH_PPC32\" was never defined.
20093 Usually this means the macro was only invoked conditionally." >&2;}
20094    { (exit 1); exit 1; }; }
20095 fi
20096 if test -z "${ARCH_PPC64_TRUE}" && test -z "${ARCH_PPC64_FALSE}"; then
20097   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_PPC64\" was never defined.
20098 Usually this means the macro was only invoked conditionally." >&5
20099 $as_echo "$as_me: error: conditional \"ARCH_PPC64\" was never defined.
20100 Usually this means the macro was only invoked conditionally." >&2;}
20101    { (exit 1); exit 1; }; }
20102 fi
20103 if test -z "${ARCH_SH_TRUE}" && test -z "${ARCH_SH_FALSE}"; then
20104   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_SH\" was never defined.
20105 Usually this means the macro was only invoked conditionally." >&5
20106 $as_echo "$as_me: error: conditional \"ARCH_SH\" was never defined.
20107 Usually this means the macro was only invoked conditionally." >&2;}
20108    { (exit 1); exit 1; }; }
20109 fi
20110 if test -z "${ARCH_TILEGX_TRUE}" && test -z "${ARCH_TILEGX_FALSE}"; then
20111   { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_TILEGX\" was never defined.
20112 Usually this means the macro was only invoked conditionally." >&5
20113 $as_echo "$as_me: error: conditional \"ARCH_TILEGX\" was never defined.
20114 Usually this means the macro was only invoked conditionally." >&2;}
20115    { (exit 1); exit 1; }; }
20116 fi
20117 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20118   { { $as_echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
20119 Usually this means the macro was only invoked conditionally." >&5
20120 $as_echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
20121 Usually this means the macro was only invoked conditionally." >&2;}
20122    { (exit 1); exit 1; }; }
20123 fi
20124 if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
20125   { { $as_echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
20126 Usually this means the macro was only invoked conditionally." >&5
20127 $as_echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
20128 Usually this means the macro was only invoked conditionally." >&2;}
20129    { (exit 1); exit 1; }; }
20130 fi
20131 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
20132   { { $as_echo "$as_me:$LINENO: error: conditional \"OS_FREEBSD\" was never defined.
20133 Usually this means the macro was only invoked conditionally." >&5
20134 $as_echo "$as_me: error: conditional \"OS_FREEBSD\" was never defined.
20135 Usually this means the macro was only invoked conditionally." >&2;}
20136    { (exit 1); exit 1; }; }
20137 fi
20138 if test -z "${OS_QNX_TRUE}" && test -z "${OS_QNX_FALSE}"; then
20139   { { $as_echo "$as_me:$LINENO: error: conditional \"OS_QNX\" was never defined.
20140 Usually this means the macro was only invoked conditionally." >&5
20141 $as_echo "$as_me: error: conditional \"OS_QNX\" was never defined.
20142 Usually this means the macro was only invoked conditionally." >&2;}
20143    { (exit 1); exit 1; }; }
20144 fi
20145 if test -z "${USE_ELF32_TRUE}" && test -z "${USE_ELF32_FALSE}"; then
20146   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ELF32\" was never defined.
20147 Usually this means the macro was only invoked conditionally." >&5
20148 $as_echo "$as_me: error: conditional \"USE_ELF32\" was never defined.
20149 Usually this means the macro was only invoked conditionally." >&2;}
20150    { (exit 1); exit 1; }; }
20151 fi
20152 if test -z "${USE_ELF64_TRUE}" && test -z "${USE_ELF64_FALSE}"; then
20153   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ELF64\" was never defined.
20154 Usually this means the macro was only invoked conditionally." >&5
20155 $as_echo "$as_me: error: conditional \"USE_ELF64\" was never defined.
20156 Usually this means the macro was only invoked conditionally." >&2;}
20157    { (exit 1); exit 1; }; }
20158 fi
20159 if test -z "${USE_ELFXX_TRUE}" && test -z "${USE_ELFXX_FALSE}"; then
20160   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ELFXX\" was never defined.
20161 Usually this means the macro was only invoked conditionally." >&5
20162 $as_echo "$as_me: error: conditional \"USE_ELFXX\" was never defined.
20163 Usually this means the macro was only invoked conditionally." >&2;}
20164    { (exit 1); exit 1; }; }
20165 fi
20166 if test -z "${USE_DWARF_TRUE}" && test -z "${USE_DWARF_FALSE}"; then
20167   { { $as_echo "$as_me:$LINENO: error: conditional \"USE_DWARF\" was never defined.
20168 Usually this means the macro was only invoked conditionally." >&5
20169 $as_echo "$as_me: error: conditional \"USE_DWARF\" was never defined.
20170 Usually this means the macro was only invoked conditionally." >&2;}
20171    { (exit 1); exit 1; }; }
20172 fi
20173 if test -z "${SUPPORT_CXX_EXCEPTIONS_TRUE}" && test -z "${SUPPORT_CXX_EXCEPTIONS_FALSE}"; then
20174   { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_CXX_EXCEPTIONS\" was never defined.
20175 Usually this means the macro was only invoked conditionally." >&5
20176 $as_echo "$as_me: error: conditional \"SUPPORT_CXX_EXCEPTIONS\" was never defined.
20177 Usually this means the macro was only invoked conditionally." >&2;}
20178    { (exit 1); exit 1; }; }
20179 fi
20180 if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
20181   { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LZMA\" was never defined.
20182 Usually this means the macro was only invoked conditionally." >&5
20183 $as_echo "$as_me: error: conditional \"HAVE_LZMA\" was never defined.
20184 Usually this means the macro was only invoked conditionally." >&2;}
20185    { (exit 1); exit 1; }; }
20186 fi
20187 if test -z "${CONFIG_DOCS_TRUE}" && test -z "${CONFIG_DOCS_FALSE}"; then
20188   { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_DOCS\" was never defined.
20189 Usually this means the macro was only invoked conditionally." >&5
20190 $as_echo "$as_me: error: conditional \"CONFIG_DOCS\" was never defined.
20191 Usually this means the macro was only invoked conditionally." >&2;}
20192    { (exit 1); exit 1; }; }
20193 fi
20194
20195 : ${CONFIG_STATUS=./config.status}
20196 ac_write_fail=0
20197 ac_clean_files_save=$ac_clean_files
20198 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20199 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20200 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20201 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20202 #! $SHELL
20203 # Generated by $as_me.
20204 # Run this file to recreate the current configuration.
20205 # Compiler output produced by configure, useful for debugging
20206 # configure, is in config.log if it exists.
20207
20208 debug=false
20209 ac_cs_recheck=false
20210 ac_cs_silent=false
20211 SHELL=\${CONFIG_SHELL-$SHELL}
20212 _ACEOF
20213
20214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20215 ## --------------------- ##
20216 ## M4sh Initialization.  ##
20217 ## --------------------- ##
20218
20219 # Be more Bourne compatible
20220 DUALCASE=1; export DUALCASE # for MKS sh
20221 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20222   emulate sh
20223   NULLCMD=:
20224   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20225   # is contrary to our usage.  Disable this feature.
20226   alias -g '${1+"$@"}'='"$@"'
20227   setopt NO_GLOB_SUBST
20228 else
20229   case `(set -o) 2>/dev/null` in
20230   *posix*) set -o posix ;;
20231 esac
20232
20233 fi
20234
20235
20236
20237
20238 # PATH needs CR
20239 # Avoid depending upon Character Ranges.
20240 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20241 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20242 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20243 as_cr_digits='0123456789'
20244 as_cr_alnum=$as_cr_Letters$as_cr_digits
20245
20246 as_nl='
20247 '
20248 export as_nl
20249 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20250 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20251 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20252 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20253 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20254   as_echo='printf %s\n'
20255   as_echo_n='printf %s'
20256 else
20257   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20258     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20259     as_echo_n='/usr/ucb/echo -n'
20260   else
20261     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20262     as_echo_n_body='eval
20263       arg=$1;
20264       case $arg in
20265       *"$as_nl"*)
20266         expr "X$arg" : "X\\(.*\\)$as_nl";
20267         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20268       esac;
20269       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20270     '
20271     export as_echo_n_body
20272     as_echo_n='sh -c $as_echo_n_body as_echo'
20273   fi
20274   export as_echo_body
20275   as_echo='sh -c $as_echo_body as_echo'
20276 fi
20277
20278 # The user is always right.
20279 if test "${PATH_SEPARATOR+set}" != set; then
20280   PATH_SEPARATOR=:
20281   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20282     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20283       PATH_SEPARATOR=';'
20284   }
20285 fi
20286
20287 # Support unset when possible.
20288 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20289   as_unset=unset
20290 else
20291   as_unset=false
20292 fi
20293
20294
20295 # IFS
20296 # We need space, tab and new line, in precisely that order.  Quoting is
20297 # there to prevent editors from complaining about space-tab.
20298 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20299 # splitting by setting IFS to empty value.)
20300 IFS=" ""        $as_nl"
20301
20302 # Find who we are.  Look in the path if we contain no directory separator.
20303 case $0 in
20304   *[\\/]* ) as_myself=$0 ;;
20305   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20306 for as_dir in $PATH
20307 do
20308   IFS=$as_save_IFS
20309   test -z "$as_dir" && as_dir=.
20310   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20311 done
20312 IFS=$as_save_IFS
20313
20314      ;;
20315 esac
20316 # We did not find ourselves, most probably we were run as `sh COMMAND'
20317 # in which case we are not to be found in the path.
20318 if test "x$as_myself" = x; then
20319   as_myself=$0
20320 fi
20321 if test ! -f "$as_myself"; then
20322   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20323   { (exit 1); exit 1; }
20324 fi
20325
20326 # Work around bugs in pre-3.0 UWIN ksh.
20327 for as_var in ENV MAIL MAILPATH
20328 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20329 done
20330 PS1='$ '
20331 PS2='> '
20332 PS4='+ '
20333
20334 # NLS nuisances.
20335 LC_ALL=C
20336 export LC_ALL
20337 LANGUAGE=C
20338 export LANGUAGE
20339
20340 # Required to use basename.
20341 if expr a : '\(a\)' >/dev/null 2>&1 &&
20342    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20343   as_expr=expr
20344 else
20345   as_expr=false
20346 fi
20347
20348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20349   as_basename=basename
20350 else
20351   as_basename=false
20352 fi
20353
20354
20355 # Name of the executable.
20356 as_me=`$as_basename -- "$0" ||
20357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20358          X"$0" : 'X\(//\)$' \| \
20359          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20360 $as_echo X/"$0" |
20361     sed '/^.*\/\([^/][^/]*\)\/*$/{
20362             s//\1/
20363             q
20364           }
20365           /^X\/\(\/\/\)$/{
20366             s//\1/
20367             q
20368           }
20369           /^X\/\(\/\).*/{
20370             s//\1/
20371             q
20372           }
20373           s/.*/./; q'`
20374
20375 # CDPATH.
20376 $as_unset CDPATH
20377
20378
20379
20380   as_lineno_1=$LINENO
20381   as_lineno_2=$LINENO
20382   test "x$as_lineno_1" != "x$as_lineno_2" &&
20383   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20384
20385   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20386   # uniformly replaced by the line number.  The first 'sed' inserts a
20387   # line-number line after each line using $LINENO; the second 'sed'
20388   # does the real work.  The second script uses 'N' to pair each
20389   # line-number line with the line containing $LINENO, and appends
20390   # trailing '-' during substitution so that $LINENO is not a special
20391   # case at line end.
20392   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20393   # scripts with optimization help from Paolo Bonzini.  Blame Lee
20394   # E. McMahon (1931-1989) for sed's syntax.  :-)
20395   sed -n '
20396     p
20397     /[$]LINENO/=
20398   ' <$as_myself |
20399     sed '
20400       s/[$]LINENO.*/&-/
20401       t lineno
20402       b
20403       :lineno
20404       N
20405       :loop
20406       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20407       t loop
20408       s/-\n.*//
20409     ' >$as_me.lineno &&
20410   chmod +x "$as_me.lineno" ||
20411     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20412    { (exit 1); exit 1; }; }
20413
20414   # Don't try to exec as it changes $[0], causing all sort of problems
20415   # (the dirname of $[0] is not the place where we might find the
20416   # original and so on.  Autoconf is especially sensitive to this).
20417   . "./$as_me.lineno"
20418   # Exit status is that of the last command.
20419   exit
20420 }
20421
20422
20423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20424   as_dirname=dirname
20425 else
20426   as_dirname=false
20427 fi
20428
20429 ECHO_C= ECHO_N= ECHO_T=
20430 case `echo -n x` in
20431 -n*)
20432   case `echo 'x\c'` in
20433   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20434   *)   ECHO_C='\c';;
20435   esac;;
20436 *)
20437   ECHO_N='-n';;
20438 esac
20439 if expr a : '\(a\)' >/dev/null 2>&1 &&
20440    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20441   as_expr=expr
20442 else
20443   as_expr=false
20444 fi
20445
20446 rm -f conf$$ conf$$.exe conf$$.file
20447 if test -d conf$$.dir; then
20448   rm -f conf$$.dir/conf$$.file
20449 else
20450   rm -f conf$$.dir
20451   mkdir conf$$.dir 2>/dev/null
20452 fi
20453 if (echo >conf$$.file) 2>/dev/null; then
20454   if ln -s conf$$.file conf$$ 2>/dev/null; then
20455     as_ln_s='ln -s'
20456     # ... but there are two gotchas:
20457     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20458     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20459     # In both cases, we have to default to `cp -p'.
20460     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20461       as_ln_s='cp -p'
20462   elif ln conf$$.file conf$$ 2>/dev/null; then
20463     as_ln_s=ln
20464   else
20465     as_ln_s='cp -p'
20466   fi
20467 else
20468   as_ln_s='cp -p'
20469 fi
20470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20471 rmdir conf$$.dir 2>/dev/null
20472
20473 if mkdir -p . 2>/dev/null; then
20474   as_mkdir_p=:
20475 else
20476   test -d ./-p && rmdir ./-p
20477   as_mkdir_p=false
20478 fi
20479
20480 if test -x / >/dev/null 2>&1; then
20481   as_test_x='test -x'
20482 else
20483   if ls -dL / >/dev/null 2>&1; then
20484     as_ls_L_option=L
20485   else
20486     as_ls_L_option=
20487   fi
20488   as_test_x='
20489     eval sh -c '\''
20490       if test -d "$1"; then
20491         test -d "$1/.";
20492       else
20493         case $1 in
20494         -*)set "./$1";;
20495         esac;
20496         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20497         ???[sx]*):;;*)false;;esac;fi
20498     '\'' sh
20499   '
20500 fi
20501 as_executable_p=$as_test_x
20502
20503 # Sed expression to map a string onto a valid CPP name.
20504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20505
20506 # Sed expression to map a string onto a valid variable name.
20507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20508
20509
20510 exec 6>&1
20511
20512 # Save the log message, to keep $[0] and so on meaningful, and to
20513 # report actual input values of CONFIG_FILES etc. instead of their
20514 # values after options handling.
20515 ac_log="
20516 This file was extended by libunwind $as_me 1.2, which was
20517 generated by GNU Autoconf 2.63.  Invocation command line was
20518
20519   CONFIG_FILES    = $CONFIG_FILES
20520   CONFIG_HEADERS  = $CONFIG_HEADERS
20521   CONFIG_LINKS    = $CONFIG_LINKS
20522   CONFIG_COMMANDS = $CONFIG_COMMANDS
20523   $ $0 $@
20524
20525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20526 "
20527
20528 _ACEOF
20529
20530 case $ac_config_files in *"
20531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20532 esac
20533
20534 case $ac_config_headers in *"
20535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20536 esac
20537
20538
20539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20540 # Files that config.status was made for.
20541 config_files="$ac_config_files"
20542 config_headers="$ac_config_headers"
20543 config_commands="$ac_config_commands"
20544
20545 _ACEOF
20546
20547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20548 ac_cs_usage="\
20549 \`$as_me' instantiates files from templates according to the
20550 current configuration.
20551
20552 Usage: $0 [OPTION]... [FILE]...
20553
20554   -h, --help       print this help, then exit
20555   -V, --version    print version number and configuration settings, then exit
20556   -q, --quiet, --silent
20557                    do not print progress messages
20558   -d, --debug      don't remove temporary files
20559       --recheck    update $as_me by reconfiguring in the same conditions
20560       --file=FILE[:TEMPLATE]
20561                    instantiate the configuration file FILE
20562       --header=FILE[:TEMPLATE]
20563                    instantiate the configuration header FILE
20564
20565 Configuration files:
20566 $config_files
20567
20568 Configuration headers:
20569 $config_headers
20570
20571 Configuration commands:
20572 $config_commands
20573
20574 Report bugs to <bug-autoconf@gnu.org>."
20575
20576 _ACEOF
20577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20578 ac_cs_version="\\
20579 libunwind config.status 1.2
20580 configured by $0, generated by GNU Autoconf 2.63,
20581   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20582
20583 Copyright (C) 2008 Free Software Foundation, Inc.
20584 This config.status script is free software; the Free Software Foundation
20585 gives unlimited permission to copy, distribute and modify it."
20586
20587 ac_pwd='$ac_pwd'
20588 srcdir='$srcdir'
20589 INSTALL='$INSTALL'
20590 MKDIR_P='$MKDIR_P'
20591 AWK='$AWK'
20592 test -n "\$AWK" || AWK=awk
20593 _ACEOF
20594
20595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20596 # The default lists apply if the user does not specify any file.
20597 ac_need_defaults=:
20598 while test $# != 0
20599 do
20600   case $1 in
20601   --*=*)
20602     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20603     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20604     ac_shift=:
20605     ;;
20606   *)
20607     ac_option=$1
20608     ac_optarg=$2
20609     ac_shift=shift
20610     ;;
20611   esac
20612
20613   case $ac_option in
20614   # Handling of the options.
20615   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20616     ac_cs_recheck=: ;;
20617   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20618     $as_echo "$ac_cs_version"; exit ;;
20619   --debug | --debu | --deb | --de | --d | -d )
20620     debug=: ;;
20621   --file | --fil | --fi | --f )
20622     $ac_shift
20623     case $ac_optarg in
20624     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20625     esac
20626     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20627     ac_need_defaults=false;;
20628   --header | --heade | --head | --hea )
20629     $ac_shift
20630     case $ac_optarg in
20631     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20632     esac
20633     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20634     ac_need_defaults=false;;
20635   --he | --h)
20636     # Conflict between --help and --header
20637     { $as_echo "$as_me: error: ambiguous option: $1
20638 Try \`$0 --help' for more information." >&2
20639    { (exit 1); exit 1; }; };;
20640   --help | --hel | -h )
20641     $as_echo "$ac_cs_usage"; exit ;;
20642   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20643   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20644     ac_cs_silent=: ;;
20645
20646   # This is an error.
20647   -*) { $as_echo "$as_me: error: unrecognized option: $1
20648 Try \`$0 --help' for more information." >&2
20649    { (exit 1); exit 1; }; } ;;
20650
20651   *) ac_config_targets="$ac_config_targets $1"
20652      ac_need_defaults=false ;;
20653
20654   esac
20655   shift
20656 done
20657
20658 ac_configure_extra_args=
20659
20660 if $ac_cs_silent; then
20661   exec 6>/dev/null
20662   ac_configure_extra_args="$ac_configure_extra_args --silent"
20663 fi
20664
20665 _ACEOF
20666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20667 if \$ac_cs_recheck; then
20668   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20669   shift
20670   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20671   CONFIG_SHELL='$SHELL'
20672   export CONFIG_SHELL
20673   exec "\$@"
20674 fi
20675
20676 _ACEOF
20677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20678 exec 5>>config.log
20679 {
20680   echo
20681   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20682 ## Running $as_me. ##
20683 _ASBOX
20684   $as_echo "$ac_log"
20685 } >&5
20686
20687 _ACEOF
20688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20689 #
20690 # INIT-COMMANDS
20691 #
20692 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20693
20694
20695 # The HP-UX ksh and POSIX shell print the target directory to stdout
20696 # if CDPATH is set.
20697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20698
20699 sed_quote_subst='$sed_quote_subst'
20700 double_quote_subst='$double_quote_subst'
20701 delay_variable_subst='$delay_variable_subst'
20702 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20703 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20704 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20705 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20706 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20707 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20708 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20709 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20710 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20711 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20712 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20713 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20714 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20715 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20716 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20717 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20718 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20719 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20720 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20721 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20722 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20723 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20724 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20725 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20726 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20727 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20728 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20729 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20730 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20731 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20732 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20733 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20734 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20735 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20736 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20737 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20738 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20739 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20740 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20741 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20742 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20743 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20744 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20745 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20746 lt_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"`'
20747 lt_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"`'
20748 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20749 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20750 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20751 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20752 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20753 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20754 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20755 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20756 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20757 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20758 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20759 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20760 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20761 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20762 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20763 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20764 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20765 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20766 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20767 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20768 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20769 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20770 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20771 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20772 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20773 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20774 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20775 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20776 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20777 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20778 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20779 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20780 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20781 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20782 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20783 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20784 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20785 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20786 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20787 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20788 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20789 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20790 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20791 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20792 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20793 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20794 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20795 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20796 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20797 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20798 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20799 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20800 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20801 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20802 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20803 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20804 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20805 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20806 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20807 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20808 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20809 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20810 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20811 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20812 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20813 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20814 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20815 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20816 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20817 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20818 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20819 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20820 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20821 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20822 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20823 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20824 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20825 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20826 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20827 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20828 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20829 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20830 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20831 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20832 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20833 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20834 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20835 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20836 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20837 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20838 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20839 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20840 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20841 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20842 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20843 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20844 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20845 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20846 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20847 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20848 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20849 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20850 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20851 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20852 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20853 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20854 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20855 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20856 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20857 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20858 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20859 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20860 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20861 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20862 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20863 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20864 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20865 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20866 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20867 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20868 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20869 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20870 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20871 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20872 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20873
20874 LTCC='$LTCC'
20875 LTCFLAGS='$LTCFLAGS'
20876 compiler='$compiler_DEFAULT'
20877
20878 # Quote evaled strings.
20879 for var in SED \
20880 GREP \
20881 EGREP \
20882 FGREP \
20883 LD \
20884 NM \
20885 LN_S \
20886 lt_SP2NL \
20887 lt_NL2SP \
20888 reload_flag \
20889 OBJDUMP \
20890 deplibs_check_method \
20891 file_magic_cmd \
20892 AR \
20893 AR_FLAGS \
20894 STRIP \
20895 RANLIB \
20896 CC \
20897 CFLAGS \
20898 compiler \
20899 lt_cv_sys_global_symbol_pipe \
20900 lt_cv_sys_global_symbol_to_cdecl \
20901 lt_cv_sys_global_symbol_to_c_name_address \
20902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20903 SHELL \
20904 ECHO \
20905 lt_prog_compiler_no_builtin_flag \
20906 lt_prog_compiler_wl \
20907 lt_prog_compiler_pic \
20908 lt_prog_compiler_static \
20909 lt_cv_prog_compiler_c_o \
20910 need_locks \
20911 DSYMUTIL \
20912 NMEDIT \
20913 LIPO \
20914 OTOOL \
20915 OTOOL64 \
20916 shrext_cmds \
20917 export_dynamic_flag_spec \
20918 whole_archive_flag_spec \
20919 compiler_needs_object \
20920 with_gnu_ld \
20921 allow_undefined_flag \
20922 no_undefined_flag \
20923 hardcode_libdir_flag_spec \
20924 hardcode_libdir_flag_spec_ld \
20925 hardcode_libdir_separator \
20926 fix_srcfile_path \
20927 exclude_expsyms \
20928 include_expsyms \
20929 file_list_spec \
20930 variables_saved_for_relink \
20931 libname_spec \
20932 library_names_spec \
20933 soname_spec \
20934 finish_eval \
20935 old_striplib \
20936 striplib \
20937 compiler_lib_search_dirs \
20938 predep_objects \
20939 postdep_objects \
20940 predeps \
20941 postdeps \
20942 compiler_lib_search_path \
20943 LD_CXX \
20944 compiler_CXX \
20945 lt_prog_compiler_no_builtin_flag_CXX \
20946 lt_prog_compiler_wl_CXX \
20947 lt_prog_compiler_pic_CXX \
20948 lt_prog_compiler_static_CXX \
20949 lt_cv_prog_compiler_c_o_CXX \
20950 export_dynamic_flag_spec_CXX \
20951 whole_archive_flag_spec_CXX \
20952 compiler_needs_object_CXX \
20953 with_gnu_ld_CXX \
20954 allow_undefined_flag_CXX \
20955 no_undefined_flag_CXX \
20956 hardcode_libdir_flag_spec_CXX \
20957 hardcode_libdir_flag_spec_ld_CXX \
20958 hardcode_libdir_separator_CXX \
20959 fix_srcfile_path_CXX \
20960 exclude_expsyms_CXX \
20961 include_expsyms_CXX \
20962 file_list_spec_CXX \
20963 compiler_lib_search_dirs_CXX \
20964 predep_objects_CXX \
20965 postdep_objects_CXX \
20966 predeps_CXX \
20967 postdeps_CXX \
20968 compiler_lib_search_path_CXX; do
20969     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20970     *[\\\\\\\`\\"\\\$]*)
20971       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20972       ;;
20973     *)
20974       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20975       ;;
20976     esac
20977 done
20978
20979 # Double-quote double-evaled strings.
20980 for var in reload_cmds \
20981 old_postinstall_cmds \
20982 old_postuninstall_cmds \
20983 old_archive_cmds \
20984 extract_expsyms_cmds \
20985 old_archive_from_new_cmds \
20986 old_archive_from_expsyms_cmds \
20987 archive_cmds \
20988 archive_expsym_cmds \
20989 module_cmds \
20990 module_expsym_cmds \
20991 export_symbols_cmds \
20992 prelink_cmds \
20993 postinstall_cmds \
20994 postuninstall_cmds \
20995 finish_cmds \
20996 sys_lib_search_path_spec \
20997 sys_lib_dlsearch_path_spec \
20998 old_archive_cmds_CXX \
20999 old_archive_from_new_cmds_CXX \
21000 old_archive_from_expsyms_cmds_CXX \
21001 archive_cmds_CXX \
21002 archive_expsym_cmds_CXX \
21003 module_cmds_CXX \
21004 module_expsym_cmds_CXX \
21005 export_symbols_cmds_CXX \
21006 prelink_cmds_CXX; do
21007     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21008     *[\\\\\\\`\\"\\\$]*)
21009       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21010       ;;
21011     *)
21012       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21013       ;;
21014     esac
21015 done
21016
21017 # Fix-up fallback echo if it was mangled by the above quoting rules.
21018 case \$lt_ECHO in
21019 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21020   ;;
21021 esac
21022
21023 ac_aux_dir='$ac_aux_dir'
21024 xsi_shell='$xsi_shell'
21025 lt_shell_append='$lt_shell_append'
21026
21027 # See if we are running on zsh, and set the options which allow our
21028 # commands through without removal of \ escapes INIT.
21029 if test -n "\${ZSH_VERSION+set}" ; then
21030    setopt NO_GLOB_SUBST
21031 fi
21032
21033
21034     PACKAGE='$PACKAGE'
21035     VERSION='$VERSION'
21036     TIMESTAMP='$TIMESTAMP'
21037     RM='$RM'
21038     ofile='$ofile'
21039
21040
21041
21042
21043
21044
21045 _ACEOF
21046
21047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21048
21049 # Handling of arguments.
21050 for ac_config_target in $ac_config_targets
21051 do
21052   case $ac_config_target in
21053     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21054     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21055     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21056     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21057     "doc/common.tex") CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
21058     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21059     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21060     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21061     "tests/check-namespace.sh") CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
21062     "include/libunwind-common.h") CONFIG_FILES="$CONFIG_FILES include/libunwind-common.h" ;;
21063     "include/libunwind.h") CONFIG_FILES="$CONFIG_FILES include/libunwind.h" ;;
21064     "include/tdep/libunwind_i.h") CONFIG_FILES="$CONFIG_FILES include/tdep/libunwind_i.h" ;;
21065     "src/unwind/libunwind.pc") CONFIG_FILES="$CONFIG_FILES src/unwind/libunwind.pc" ;;
21066     "src/coredump/libunwind-coredump.pc") CONFIG_FILES="$CONFIG_FILES src/coredump/libunwind-coredump.pc" ;;
21067     "src/ptrace/libunwind-ptrace.pc") CONFIG_FILES="$CONFIG_FILES src/ptrace/libunwind-ptrace.pc" ;;
21068     "src/setjmp/libunwind-setjmp.pc") CONFIG_FILES="$CONFIG_FILES src/setjmp/libunwind-setjmp.pc" ;;
21069     "src/libunwind-generic.pc") CONFIG_FILES="$CONFIG_FILES src/libunwind-generic.pc" ;;
21070
21071   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21072 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21073    { (exit 1); exit 1; }; };;
21074   esac
21075 done
21076
21077
21078 # If the user did not use the arguments to specify the items to instantiate,
21079 # then the envvar interface is used.  Set only those that are not.
21080 # We use the long form for the default assignment because of an extremely
21081 # bizarre bug on SunOS 4.1.3.
21082 if $ac_need_defaults; then
21083   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21084   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21085   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21086 fi
21087
21088 # Have a temporary directory for convenience.  Make it in the build tree
21089 # simply because there is no reason against having it here, and in addition,
21090 # creating and moving files from /tmp can sometimes cause problems.
21091 # Hook for its removal unless debugging.
21092 # Note that there is a small window in which the directory will not be cleaned:
21093 # after its creation but before its name has been assigned to `$tmp'.
21094 $debug ||
21095 {
21096   tmp=
21097   trap 'exit_status=$?
21098   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21099 ' 0
21100   trap '{ (exit 1); exit 1; }' 1 2 13 15
21101 }
21102 # Create a (secure) tmp directory for tmp files.
21103
21104 {
21105   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21106   test -n "$tmp" && test -d "$tmp"
21107 }  ||
21108 {
21109   tmp=./conf$$-$RANDOM
21110   (umask 077 && mkdir "$tmp")
21111 } ||
21112 {
21113    $as_echo "$as_me: cannot create a temporary directory in ." >&2
21114    { (exit 1); exit 1; }
21115 }
21116
21117 # Set up the scripts for CONFIG_FILES section.
21118 # No need to generate them if there are no CONFIG_FILES.
21119 # This happens for instance with `./config.status config.h'.
21120 if test -n "$CONFIG_FILES"; then
21121
21122
21123 ac_cr='\r'
21124 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21126   ac_cs_awk_cr='\\r'
21127 else
21128   ac_cs_awk_cr=$ac_cr
21129 fi
21130
21131 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21132 _ACEOF
21133
21134
21135 {
21136   echo "cat >conf$$subs.awk <<_ACEOF" &&
21137   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21138   echo "_ACEOF"
21139 } >conf$$subs.sh ||
21140   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21141 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21142    { (exit 1); exit 1; }; }
21143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21144 ac_delim='%!_!# '
21145 for ac_last_try in false false false false false :; do
21146   . ./conf$$subs.sh ||
21147     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21148 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21149    { (exit 1); exit 1; }; }
21150
21151   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21152   if test $ac_delim_n = $ac_delim_num; then
21153     break
21154   elif $ac_last_try; then
21155     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21156 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21157    { (exit 1); exit 1; }; }
21158   else
21159     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21160   fi
21161 done
21162 rm -f conf$$subs.sh
21163
21164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21165 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21166 _ACEOF
21167 sed -n '
21168 h
21169 s/^/S["/; s/!.*/"]=/
21170 p
21171 g
21172 s/^[^!]*!//
21173 :repl
21174 t repl
21175 s/'"$ac_delim"'$//
21176 t delim
21177 :nl
21178 h
21179 s/\(.\{148\}\).*/\1/
21180 t more1
21181 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21182 p
21183 n
21184 b repl
21185 :more1
21186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21187 p
21188 g
21189 s/.\{148\}//
21190 t nl
21191 :delim
21192 h
21193 s/\(.\{148\}\).*/\1/
21194 t more2
21195 s/["\\]/\\&/g; s/^/"/; s/$/"/
21196 p
21197 b
21198 :more2
21199 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21200 p
21201 g
21202 s/.\{148\}//
21203 t delim
21204 ' <conf$$subs.awk | sed '
21205 /^[^""]/{
21206   N
21207   s/\n//
21208 }
21209 ' >>$CONFIG_STATUS || ac_write_fail=1
21210 rm -f conf$$subs.awk
21211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21212 _ACAWK
21213 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21214   for (key in S) S_is_set[key] = 1
21215   FS = "\a"
21216
21217 }
21218 {
21219   line = $ 0
21220   nfields = split(line, field, "@")
21221   substed = 0
21222   len = length(field[1])
21223   for (i = 2; i < nfields; i++) {
21224     key = field[i]
21225     keylen = length(key)
21226     if (S_is_set[key]) {
21227       value = S[key]
21228       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21229       len += length(value) + length(field[++i])
21230       substed = 1
21231     } else
21232       len += 1 + keylen
21233   }
21234
21235   print line
21236 }
21237
21238 _ACAWK
21239 _ACEOF
21240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21241 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21242   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21243 else
21244   cat
21245 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21246   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21247 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21248    { (exit 1); exit 1; }; }
21249 _ACEOF
21250
21251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21253 # trailing colons and then remove the whole line if VPATH becomes empty
21254 # (actually we leave an empty line to preserve line numbers).
21255 if test "x$srcdir" = x.; then
21256   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21257 s/:*\$(srcdir):*/:/
21258 s/:*\${srcdir}:*/:/
21259 s/:*@srcdir@:*/:/
21260 s/^\([^=]*=[     ]*\):*/\1/
21261 s/:*$//
21262 s/^[^=]*=[       ]*$//
21263 }'
21264 fi
21265
21266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21267 fi # test -n "$CONFIG_FILES"
21268
21269 # Set up the scripts for CONFIG_HEADERS section.
21270 # No need to generate them if there are no CONFIG_HEADERS.
21271 # This happens for instance with `./config.status Makefile'.
21272 if test -n "$CONFIG_HEADERS"; then
21273 cat >"$tmp/defines.awk" <<\_ACAWK ||
21274 BEGIN {
21275 _ACEOF
21276
21277 # Transform confdefs.h into an awk script `defines.awk', embedded as
21278 # here-document in config.status, that substitutes the proper values into
21279 # config.h.in to produce config.h.
21280
21281 # Create a delimiter string that does not exist in confdefs.h, to ease
21282 # handling of long lines.
21283 ac_delim='%!_!# '
21284 for ac_last_try in false false :; do
21285   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21286   if test -z "$ac_t"; then
21287     break
21288   elif $ac_last_try; then
21289     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21290 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21291    { (exit 1); exit 1; }; }
21292   else
21293     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21294   fi
21295 done
21296
21297 # For the awk script, D is an array of macro values keyed by name,
21298 # likewise P contains macro parameters if any.  Preserve backslash
21299 # newline sequences.
21300
21301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21302 sed -n '
21303 s/.\{148\}/&'"$ac_delim"'/g
21304 t rset
21305 :rset
21306 s/^[     ]*#[    ]*define[       ][      ]*/ /
21307 t def
21308 d
21309 :def
21310 s/\\$//
21311 t bsnl
21312 s/["\\]/\\&/g
21313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21314 D["\1"]=" \3"/p
21315 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
21316 d
21317 :bsnl
21318 s/["\\]/\\&/g
21319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
21320 D["\1"]=" \3\\\\\\n"\\/p
21321 t cont
21322 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21323 t cont
21324 d
21325 :cont
21326 n
21327 s/.\{148\}/&'"$ac_delim"'/g
21328 t clear
21329 :clear
21330 s/\\$//
21331 t bsnlc
21332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21333 d
21334 :bsnlc
21335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21336 b cont
21337 ' <confdefs.h | sed '
21338 s/'"$ac_delim"'/"\\\
21339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21340
21341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21342   for (key in D) D_is_set[key] = 1
21343   FS = "\a"
21344 }
21345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21346   line = \$ 0
21347   split(line, arg, " ")
21348   if (arg[1] == "#") {
21349     defundef = arg[2]
21350     mac1 = arg[3]
21351   } else {
21352     defundef = substr(arg[1], 2)
21353     mac1 = arg[2]
21354   }
21355   split(mac1, mac2, "(") #)
21356   macro = mac2[1]
21357   prefix = substr(line, 1, index(line, defundef) - 1)
21358   if (D_is_set[macro]) {
21359     # Preserve the white space surrounding the "#".
21360     print prefix "define", macro P[macro] D[macro]
21361     next
21362   } else {
21363     # Replace #undef with comments.  This is necessary, for example,
21364     # in the case of _POSIX_SOURCE, which is predefined and required
21365     # on some systems where configure will not decide to define it.
21366     if (defundef == "undef") {
21367       print "/*", prefix defundef, macro, "*/"
21368       next
21369     }
21370   }
21371 }
21372 { print }
21373 _ACAWK
21374 _ACEOF
21375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21376   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21377 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21378    { (exit 1); exit 1; }; }
21379 fi # test -n "$CONFIG_HEADERS"
21380
21381
21382 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21383 shift
21384 for ac_tag
21385 do
21386   case $ac_tag in
21387   :[FHLC]) ac_mode=$ac_tag; continue;;
21388   esac
21389   case $ac_mode$ac_tag in
21390   :[FHL]*:*);;
21391   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21392 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21393    { (exit 1); exit 1; }; };;
21394   :[FH]-) ac_tag=-:-;;
21395   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21396   esac
21397   ac_save_IFS=$IFS
21398   IFS=:
21399   set x $ac_tag
21400   IFS=$ac_save_IFS
21401   shift
21402   ac_file=$1
21403   shift
21404
21405   case $ac_mode in
21406   :L) ac_source=$1;;
21407   :[FH])
21408     ac_file_inputs=
21409     for ac_f
21410     do
21411       case $ac_f in
21412       -) ac_f="$tmp/stdin";;
21413       *) # Look for the file first in the build tree, then in the source tree
21414          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21415          # because $ac_f cannot contain `:'.
21416          test -f "$ac_f" ||
21417            case $ac_f in
21418            [\\/$]*) false;;
21419            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21420            esac ||
21421            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21422 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21423    { (exit 1); exit 1; }; };;
21424       esac
21425       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21426       ac_file_inputs="$ac_file_inputs '$ac_f'"
21427     done
21428
21429     # Let's still pretend it is `configure' which instantiates (i.e., don't
21430     # use $as_me), people would be surprised to read:
21431     #    /* config.h.  Generated by config.status.  */
21432     configure_input='Generated from '`
21433           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21434         `' by configure.'
21435     if test x"$ac_file" != x-; then
21436       configure_input="$ac_file.  $configure_input"
21437       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21438 $as_echo "$as_me: creating $ac_file" >&6;}
21439     fi
21440     # Neutralize special characters interpreted by sed in replacement strings.
21441     case $configure_input in #(
21442     *\&* | *\|* | *\\* )
21443        ac_sed_conf_input=`$as_echo "$configure_input" |
21444        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21445     *) ac_sed_conf_input=$configure_input;;
21446     esac
21447
21448     case $ac_tag in
21449     *:-:* | *:-) cat >"$tmp/stdin" \
21450       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21451 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21452    { (exit 1); exit 1; }; } ;;
21453     esac
21454     ;;
21455   esac
21456
21457   ac_dir=`$as_dirname -- "$ac_file" ||
21458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21459          X"$ac_file" : 'X\(//\)[^/]' \| \
21460          X"$ac_file" : 'X\(//\)$' \| \
21461          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21462 $as_echo X"$ac_file" |
21463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21464             s//\1/
21465             q
21466           }
21467           /^X\(\/\/\)[^/].*/{
21468             s//\1/
21469             q
21470           }
21471           /^X\(\/\/\)$/{
21472             s//\1/
21473             q
21474           }
21475           /^X\(\/\).*/{
21476             s//\1/
21477             q
21478           }
21479           s/.*/./; q'`
21480   { as_dir="$ac_dir"
21481   case $as_dir in #(
21482   -*) as_dir=./$as_dir;;
21483   esac
21484   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21485     as_dirs=
21486     while :; do
21487       case $as_dir in #(
21488       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21489       *) as_qdir=$as_dir;;
21490       esac
21491       as_dirs="'$as_qdir' $as_dirs"
21492       as_dir=`$as_dirname -- "$as_dir" ||
21493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21494          X"$as_dir" : 'X\(//\)[^/]' \| \
21495          X"$as_dir" : 'X\(//\)$' \| \
21496          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21497 $as_echo X"$as_dir" |
21498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21499             s//\1/
21500             q
21501           }
21502           /^X\(\/\/\)[^/].*/{
21503             s//\1/
21504             q
21505           }
21506           /^X\(\/\/\)$/{
21507             s//\1/
21508             q
21509           }
21510           /^X\(\/\).*/{
21511             s//\1/
21512             q
21513           }
21514           s/.*/./; q'`
21515       test -d "$as_dir" && break
21516     done
21517     test -z "$as_dirs" || eval "mkdir $as_dirs"
21518   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21519 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21520    { (exit 1); exit 1; }; }; }
21521   ac_builddir=.
21522
21523 case "$ac_dir" in
21524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21525 *)
21526   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21527   # A ".." for each directory in $ac_dir_suffix.
21528   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21529   case $ac_top_builddir_sub in
21530   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21531   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21532   esac ;;
21533 esac
21534 ac_abs_top_builddir=$ac_pwd
21535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21536 # for backward compatibility:
21537 ac_top_builddir=$ac_top_build_prefix
21538
21539 case $srcdir in
21540   .)  # We are building in place.
21541     ac_srcdir=.
21542     ac_top_srcdir=$ac_top_builddir_sub
21543     ac_abs_top_srcdir=$ac_pwd ;;
21544   [\\/]* | ?:[\\/]* )  # Absolute name.
21545     ac_srcdir=$srcdir$ac_dir_suffix;
21546     ac_top_srcdir=$srcdir
21547     ac_abs_top_srcdir=$srcdir ;;
21548   *) # Relative name.
21549     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21550     ac_top_srcdir=$ac_top_build_prefix$srcdir
21551     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21552 esac
21553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21554
21555
21556   case $ac_mode in
21557   :F)
21558   #
21559   # CONFIG_FILE
21560   #
21561
21562   case $INSTALL in
21563   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21564   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21565   esac
21566   ac_MKDIR_P=$MKDIR_P
21567   case $MKDIR_P in
21568   [\\/$]* | ?:[\\/]* ) ;;
21569   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21570   esac
21571 _ACEOF
21572
21573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21574 # If the template does not know about datarootdir, expand it.
21575 # FIXME: This hack should be removed a few years after 2.60.
21576 ac_datarootdir_hack=; ac_datarootdir_seen=
21577
21578 ac_sed_dataroot='
21579 /datarootdir/ {
21580   p
21581   q
21582 }
21583 /@datadir@/p
21584 /@docdir@/p
21585 /@infodir@/p
21586 /@localedir@/p
21587 /@mandir@/p
21588 '
21589 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21590 *datarootdir*) ac_datarootdir_seen=yes;;
21591 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21592   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21593 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21594 _ACEOF
21595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21596   ac_datarootdir_hack='
21597   s&@datadir@&$datadir&g
21598   s&@docdir@&$docdir&g
21599   s&@infodir@&$infodir&g
21600   s&@localedir@&$localedir&g
21601   s&@mandir@&$mandir&g
21602     s&\\\${datarootdir}&$datarootdir&g' ;;
21603 esac
21604 _ACEOF
21605
21606 # Neutralize VPATH when `$srcdir' = `.'.
21607 # Shell code in configure.ac might set extrasub.
21608 # FIXME: do we really want to maintain this feature?
21609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21610 ac_sed_extra="$ac_vpsub
21611 $extrasub
21612 _ACEOF
21613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21614 :t
21615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21616 s|@configure_input@|$ac_sed_conf_input|;t t
21617 s&@top_builddir@&$ac_top_builddir_sub&;t t
21618 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21619 s&@srcdir@&$ac_srcdir&;t t
21620 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21621 s&@top_srcdir@&$ac_top_srcdir&;t t
21622 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21623 s&@builddir@&$ac_builddir&;t t
21624 s&@abs_builddir@&$ac_abs_builddir&;t t
21625 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21626 s&@INSTALL@&$ac_INSTALL&;t t
21627 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21628 $ac_datarootdir_hack
21629 "
21630 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21631   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21632 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21633    { (exit 1); exit 1; }; }
21634
21635 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21636   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21637   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21638   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21639 which seems to be undefined.  Please make sure it is defined." >&5
21640 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21641 which seems to be undefined.  Please make sure it is defined." >&2;}
21642
21643   rm -f "$tmp/stdin"
21644   case $ac_file in
21645   -) cat "$tmp/out" && rm -f "$tmp/out";;
21646   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21647   esac \
21648   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21649 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21650    { (exit 1); exit 1; }; }
21651  ;;
21652   :H)
21653   #
21654   # CONFIG_HEADER
21655   #
21656   if test x"$ac_file" != x-; then
21657     {
21658       $as_echo "/* $configure_input  */" \
21659       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21660     } >"$tmp/config.h" \
21661       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21662 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21663    { (exit 1); exit 1; }; }
21664     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21665       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21666 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21667     else
21668       rm -f "$ac_file"
21669       mv "$tmp/config.h" "$ac_file" \
21670         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21671 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21672    { (exit 1); exit 1; }; }
21673     fi
21674   else
21675     $as_echo "/* $configure_input  */" \
21676       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21677       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21678 $as_echo "$as_me: error: could not create -" >&2;}
21679    { (exit 1); exit 1; }; }
21680   fi
21681 # Compute "$ac_file"'s index in $config_headers.
21682 _am_arg="$ac_file"
21683 _am_stamp_count=1
21684 for _am_header in $config_headers :; do
21685   case $_am_header in
21686     $_am_arg | $_am_arg:* )
21687       break ;;
21688     * )
21689       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21690   esac
21691 done
21692 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21693 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21694          X"$_am_arg" : 'X\(//\)[^/]' \| \
21695          X"$_am_arg" : 'X\(//\)$' \| \
21696          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21697 $as_echo X"$_am_arg" |
21698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21699             s//\1/
21700             q
21701           }
21702           /^X\(\/\/\)[^/].*/{
21703             s//\1/
21704             q
21705           }
21706           /^X\(\/\/\)$/{
21707             s//\1/
21708             q
21709           }
21710           /^X\(\/\).*/{
21711             s//\1/
21712             q
21713           }
21714           s/.*/./; q'`/stamp-h$_am_stamp_count
21715  ;;
21716
21717   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21718 $as_echo "$as_me: executing $ac_file commands" >&6;}
21719  ;;
21720   esac
21721
21722
21723   case $ac_file$ac_mode in
21724     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21725   # Autoconf 2.62 quotes --file arguments for eval, but not when files
21726   # are listed without --file.  Let's play safe and only enable the eval
21727   # if we detect the quoting.
21728   case $CONFIG_FILES in
21729   *\'*) eval set x "$CONFIG_FILES" ;;
21730   *)   set x $CONFIG_FILES ;;
21731   esac
21732   shift
21733   for mf
21734   do
21735     # Strip MF so we end up with the name of the file.
21736     mf=`echo "$mf" | sed -e 's/:.*$//'`
21737     # Check whether this is an Automake generated Makefile or not.
21738     # We used to match only the files named `Makefile.in', but
21739     # some people rename them; so instead we look at the file content.
21740     # Grep'ing the first line is not enough: some people post-process
21741     # each Makefile.in and add a new line on top of each file to say so.
21742     # Grep'ing the whole file is not good either: AIX grep has a line
21743     # limit of 2048, but all sed's we know have understand at least 4000.
21744     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21745       dirpart=`$as_dirname -- "$mf" ||
21746 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21747          X"$mf" : 'X\(//\)[^/]' \| \
21748          X"$mf" : 'X\(//\)$' \| \
21749          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21750 $as_echo X"$mf" |
21751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21752             s//\1/
21753             q
21754           }
21755           /^X\(\/\/\)[^/].*/{
21756             s//\1/
21757             q
21758           }
21759           /^X\(\/\/\)$/{
21760             s//\1/
21761             q
21762           }
21763           /^X\(\/\).*/{
21764             s//\1/
21765             q
21766           }
21767           s/.*/./; q'`
21768     else
21769       continue
21770     fi
21771     # Extract the definition of DEPDIR, am__include, and am__quote
21772     # from the Makefile without running `make'.
21773     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21774     test -z "$DEPDIR" && continue
21775     am__include=`sed -n 's/^am__include = //p' < "$mf"`
21776     test -z "am__include" && continue
21777     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21778     # When using ansi2knr, U may be empty or an underscore; expand it
21779     U=`sed -n 's/^U = //p' < "$mf"`
21780     # Find all dependency output files, they are included files with
21781     # $(DEPDIR) in their names.  We invoke sed twice because it is the
21782     # simplest approach to changing $(DEPDIR) to its actual value in the
21783     # expansion.
21784     for file in `sed -n "
21785       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21786          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21787       # Make sure the directory exists.
21788       test -f "$dirpart/$file" && continue
21789       fdir=`$as_dirname -- "$file" ||
21790 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21791          X"$file" : 'X\(//\)[^/]' \| \
21792          X"$file" : 'X\(//\)$' \| \
21793          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21794 $as_echo X"$file" |
21795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21796             s//\1/
21797             q
21798           }
21799           /^X\(\/\/\)[^/].*/{
21800             s//\1/
21801             q
21802           }
21803           /^X\(\/\/\)$/{
21804             s//\1/
21805             q
21806           }
21807           /^X\(\/\).*/{
21808             s//\1/
21809             q
21810           }
21811           s/.*/./; q'`
21812       { as_dir=$dirpart/$fdir
21813   case $as_dir in #(
21814   -*) as_dir=./$as_dir;;
21815   esac
21816   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21817     as_dirs=
21818     while :; do
21819       case $as_dir in #(
21820       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21821       *) as_qdir=$as_dir;;
21822       esac
21823       as_dirs="'$as_qdir' $as_dirs"
21824       as_dir=`$as_dirname -- "$as_dir" ||
21825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21826          X"$as_dir" : 'X\(//\)[^/]' \| \
21827          X"$as_dir" : 'X\(//\)$' \| \
21828          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21829 $as_echo X"$as_dir" |
21830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21831             s//\1/
21832             q
21833           }
21834           /^X\(\/\/\)[^/].*/{
21835             s//\1/
21836             q
21837           }
21838           /^X\(\/\/\)$/{
21839             s//\1/
21840             q
21841           }
21842           /^X\(\/\).*/{
21843             s//\1/
21844             q
21845           }
21846           s/.*/./; q'`
21847       test -d "$as_dir" && break
21848     done
21849     test -z "$as_dirs" || eval "mkdir $as_dirs"
21850   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21851 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21852    { (exit 1); exit 1; }; }; }
21853       # echo "creating $dirpart/$file"
21854       echo '# dummy' > "$dirpart/$file"
21855     done
21856   done
21857 }
21858  ;;
21859     "libtool":C)
21860
21861     # See if we are running on zsh, and set the options which allow our
21862     # commands through without removal of \ escapes.
21863     if test -n "${ZSH_VERSION+set}" ; then
21864       setopt NO_GLOB_SUBST
21865     fi
21866
21867     cfgfile="${ofile}T"
21868     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21869     $RM "$cfgfile"
21870
21871     cat <<_LT_EOF >> "$cfgfile"
21872 #! $SHELL
21873
21874 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21875 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21877 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21878 #
21879 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21880 #                 2006, 2007, 2008 Free Software Foundation, Inc.
21881 #   Written by Gordon Matzigkeit, 1996
21882 #
21883 #   This file is part of GNU Libtool.
21884 #
21885 # GNU Libtool is free software; you can redistribute it and/or
21886 # modify it under the terms of the GNU General Public License as
21887 # published by the Free Software Foundation; either version 2 of
21888 # the License, or (at your option) any later version.
21889 #
21890 # As a special exception to the GNU General Public License,
21891 # if you distribute this file as part of a program or library that
21892 # is built using GNU Libtool, you may include this file under the
21893 # same distribution terms that you use for the rest of that program.
21894 #
21895 # GNU Libtool is distributed in the hope that it will be useful,
21896 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21897 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21898 # GNU General Public License for more details.
21899 #
21900 # You should have received a copy of the GNU General Public License
21901 # along with GNU Libtool; see the file COPYING.  If not, a copy
21902 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21903 # obtained by writing to the Free Software Foundation, Inc.,
21904 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21905
21906
21907 # The names of the tagged configurations supported by this script.
21908 available_tags="CXX "
21909
21910 # ### BEGIN LIBTOOL CONFIG
21911
21912 # Which release of libtool.m4 was used?
21913 macro_version=$macro_version
21914 macro_revision=$macro_revision
21915
21916 # Whether or not to build shared libraries.
21917 build_libtool_libs=$enable_shared
21918
21919 # Whether or not to build static libraries.
21920 build_old_libs=$enable_static
21921
21922 # What type of objects to build.
21923 pic_mode=$pic_mode
21924
21925 # Whether or not to optimize for fast installation.
21926 fast_install=$enable_fast_install
21927
21928 # The host system.
21929 host_alias=$host_alias
21930 host=$host
21931 host_os=$host_os
21932
21933 # The build system.
21934 build_alias=$build_alias
21935 build=$build
21936 build_os=$build_os
21937
21938 # A sed program that does not truncate output.
21939 SED=$lt_SED
21940
21941 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21942 Xsed="\$SED -e 1s/^X//"
21943
21944 # A grep program that handles long lines.
21945 GREP=$lt_GREP
21946
21947 # An ERE matcher.
21948 EGREP=$lt_EGREP
21949
21950 # A literal string matcher.
21951 FGREP=$lt_FGREP
21952
21953 # A BSD- or MS-compatible name lister.
21954 NM=$lt_NM
21955
21956 # Whether we need soft or hard links.
21957 LN_S=$lt_LN_S
21958
21959 # What is the maximum length of a command?
21960 max_cmd_len=$max_cmd_len
21961
21962 # Object file suffix (normally "o").
21963 objext=$ac_objext
21964
21965 # Executable file suffix (normally "").
21966 exeext=$exeext
21967
21968 # whether the shell understands "unset".
21969 lt_unset=$lt_unset
21970
21971 # turn spaces into newlines.
21972 SP2NL=$lt_lt_SP2NL
21973
21974 # turn newlines into spaces.
21975 NL2SP=$lt_lt_NL2SP
21976
21977 # How to create reloadable object files.
21978 reload_flag=$lt_reload_flag
21979 reload_cmds=$lt_reload_cmds
21980
21981 # An object symbol dumper.
21982 OBJDUMP=$lt_OBJDUMP
21983
21984 # Method to check whether dependent libraries are shared objects.
21985 deplibs_check_method=$lt_deplibs_check_method
21986
21987 # Command to use when deplibs_check_method == "file_magic".
21988 file_magic_cmd=$lt_file_magic_cmd
21989
21990 # The archiver.
21991 AR=$lt_AR
21992 AR_FLAGS=$lt_AR_FLAGS
21993
21994 # A symbol stripping program.
21995 STRIP=$lt_STRIP
21996
21997 # Commands used to install an old-style archive.
21998 RANLIB=$lt_RANLIB
21999 old_postinstall_cmds=$lt_old_postinstall_cmds
22000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22001
22002 # A C compiler.
22003 LTCC=$lt_CC
22004
22005 # LTCC compiler flags.
22006 LTCFLAGS=$lt_CFLAGS
22007
22008 # Take the output of nm and produce a listing of raw symbols and C names.
22009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22010
22011 # Transform the output of nm in a proper C declaration.
22012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22013
22014 # Transform the output of nm in a C name address pair.
22015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22016
22017 # Transform the output of nm in a C name address pair when lib prefix is needed.
22018 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22019
22020 # The name of the directory that contains temporary libtool files.
22021 objdir=$objdir
22022
22023 # Shell to use when invoking shell scripts.
22024 SHELL=$lt_SHELL
22025
22026 # An echo program that does not interpret backslashes.
22027 ECHO=$lt_ECHO
22028
22029 # Used to examine libraries when file_magic_cmd begins with "file".
22030 MAGIC_CMD=$MAGIC_CMD
22031
22032 # Must we lock files when doing compilation?
22033 need_locks=$lt_need_locks
22034
22035 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22036 DSYMUTIL=$lt_DSYMUTIL
22037
22038 # Tool to change global to local symbols on Mac OS X.
22039 NMEDIT=$lt_NMEDIT
22040
22041 # Tool to manipulate fat objects and archives on Mac OS X.
22042 LIPO=$lt_LIPO
22043
22044 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22045 OTOOL=$lt_OTOOL
22046
22047 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22048 OTOOL64=$lt_OTOOL64
22049
22050 # Old archive suffix (normally "a").
22051 libext=$libext
22052
22053 # Shared library suffix (normally ".so").
22054 shrext_cmds=$lt_shrext_cmds
22055
22056 # The commands to extract the exported symbol list from a shared archive.
22057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22058
22059 # Variables whose values should be saved in libtool wrapper scripts and
22060 # restored at link time.
22061 variables_saved_for_relink=$lt_variables_saved_for_relink
22062
22063 # Do we need the "lib" prefix for modules?
22064 need_lib_prefix=$need_lib_prefix
22065
22066 # Do we need a version for libraries?
22067 need_version=$need_version
22068
22069 # Library versioning type.
22070 version_type=$version_type
22071
22072 # Shared library runtime path variable.
22073 runpath_var=$runpath_var
22074
22075 # Shared library path variable.
22076 shlibpath_var=$shlibpath_var
22077
22078 # Is shlibpath searched before the hard-coded library search path?
22079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22080
22081 # Format of library name prefix.
22082 libname_spec=$lt_libname_spec
22083
22084 # List of archive names.  First name is the real one, the rest are links.
22085 # The last name is the one that the linker finds with -lNAME
22086 library_names_spec=$lt_library_names_spec
22087
22088 # The coded name of the library, if different from the real name.
22089 soname_spec=$lt_soname_spec
22090
22091 # Command to use after installation of a shared archive.
22092 postinstall_cmds=$lt_postinstall_cmds
22093
22094 # Command to use after uninstallation of a shared archive.
22095 postuninstall_cmds=$lt_postuninstall_cmds
22096
22097 # Commands used to finish a libtool library installation in a directory.
22098 finish_cmds=$lt_finish_cmds
22099
22100 # As "finish_cmds", except a single script fragment to be evaled but
22101 # not shown.
22102 finish_eval=$lt_finish_eval
22103
22104 # Whether we should hardcode library paths into libraries.
22105 hardcode_into_libs=$hardcode_into_libs
22106
22107 # Compile-time system search path for libraries.
22108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22109
22110 # Run-time system search path for libraries.
22111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22112
22113 # Whether dlopen is supported.
22114 dlopen_support=$enable_dlopen
22115
22116 # Whether dlopen of programs is supported.
22117 dlopen_self=$enable_dlopen_self
22118
22119 # Whether dlopen of statically linked programs is supported.
22120 dlopen_self_static=$enable_dlopen_self_static
22121
22122 # Commands to strip libraries.
22123 old_striplib=$lt_old_striplib
22124 striplib=$lt_striplib
22125
22126
22127 # The linker used to build libraries.
22128 LD=$lt_LD
22129
22130 # Commands used to build an old-style archive.
22131 old_archive_cmds=$lt_old_archive_cmds
22132
22133 # A language specific compiler.
22134 CC=$lt_compiler
22135
22136 # Is the compiler the GNU compiler?
22137 with_gcc=$GCC
22138
22139 # Compiler flag to turn off builtin functions.
22140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22141
22142 # How to pass a linker flag through the compiler.
22143 wl=$lt_lt_prog_compiler_wl
22144
22145 # Additional compiler flags for building library objects.
22146 pic_flag=$lt_lt_prog_compiler_pic
22147
22148 # Compiler flag to prevent dynamic linking.
22149 link_static_flag=$lt_lt_prog_compiler_static
22150
22151 # Does compiler simultaneously support -c and -o options?
22152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22153
22154 # Whether or not to add -lc for building shared libraries.
22155 build_libtool_need_lc=$archive_cmds_need_lc
22156
22157 # Whether or not to disallow shared libs when runtime libs are static.
22158 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22159
22160 # Compiler flag to allow reflexive dlopens.
22161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22162
22163 # Compiler flag to generate shared objects directly from archives.
22164 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22165
22166 # Whether the compiler copes with passing no objects directly.
22167 compiler_needs_object=$lt_compiler_needs_object
22168
22169 # Create an old-style archive from a shared archive.
22170 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22171
22172 # Create a temporary old-style archive to link instead of a shared archive.
22173 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22174
22175 # Commands used to build a shared archive.
22176 archive_cmds=$lt_archive_cmds
22177 archive_expsym_cmds=$lt_archive_expsym_cmds
22178
22179 # Commands used to build a loadable module if different from building
22180 # a shared archive.
22181 module_cmds=$lt_module_cmds
22182 module_expsym_cmds=$lt_module_expsym_cmds
22183
22184 # Whether we are building with GNU ld or not.
22185 with_gnu_ld=$lt_with_gnu_ld
22186
22187 # Flag that allows shared libraries with undefined symbols to be built.
22188 allow_undefined_flag=$lt_allow_undefined_flag
22189
22190 # Flag that enforces no undefined symbols.
22191 no_undefined_flag=$lt_no_undefined_flag
22192
22193 # Flag to hardcode \$libdir into a binary during linking.
22194 # This must work even if \$libdir does not exist
22195 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22196
22197 # If ld is used when linking, flag to hardcode \$libdir into a binary
22198 # during linking.  This must work even if \$libdir does not exist.
22199 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22200
22201 # Whether we need a single "-rpath" flag with a separated argument.
22202 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22203
22204 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22205 # DIR into the resulting binary.
22206 hardcode_direct=$hardcode_direct
22207
22208 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22209 # DIR into the resulting binary and the resulting library dependency is
22210 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22211 # library is relocated.
22212 hardcode_direct_absolute=$hardcode_direct_absolute
22213
22214 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22215 # into the resulting binary.
22216 hardcode_minus_L=$hardcode_minus_L
22217
22218 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22219 # into the resulting binary.
22220 hardcode_shlibpath_var=$hardcode_shlibpath_var
22221
22222 # Set to "yes" if building a shared library automatically hardcodes DIR
22223 # into the library and all subsequent libraries and executables linked
22224 # against it.
22225 hardcode_automatic=$hardcode_automatic
22226
22227 # Set to yes if linker adds runtime paths of dependent libraries
22228 # to runtime path list.
22229 inherit_rpath=$inherit_rpath
22230
22231 # Whether libtool must link a program against all its dependency libraries.
22232 link_all_deplibs=$link_all_deplibs
22233
22234 # Fix the shell variable \$srcfile for the compiler.
22235 fix_srcfile_path=$lt_fix_srcfile_path
22236
22237 # Set to "yes" if exported symbols are required.
22238 always_export_symbols=$always_export_symbols
22239
22240 # The commands to list exported symbols.
22241 export_symbols_cmds=$lt_export_symbols_cmds
22242
22243 # Symbols that should not be listed in the preloaded symbols.
22244 exclude_expsyms=$lt_exclude_expsyms
22245
22246 # Symbols that must always be exported.
22247 include_expsyms=$lt_include_expsyms
22248
22249 # Commands necessary for linking programs (against libraries) with templates.
22250 prelink_cmds=$lt_prelink_cmds
22251
22252 # Specify filename containing input files.
22253 file_list_spec=$lt_file_list_spec
22254
22255 # How to hardcode a shared library path into an executable.
22256 hardcode_action=$hardcode_action
22257
22258 # The directories searched by this compiler when creating a shared library.
22259 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22260
22261 # Dependencies to place before and after the objects being linked to
22262 # create a shared library.
22263 predep_objects=$lt_predep_objects
22264 postdep_objects=$lt_postdep_objects
22265 predeps=$lt_predeps
22266 postdeps=$lt_postdeps
22267
22268 # The library search path used internally by the compiler when linking
22269 # a shared library.
22270 compiler_lib_search_path=$lt_compiler_lib_search_path
22271
22272 # ### END LIBTOOL CONFIG
22273
22274 _LT_EOF
22275
22276   case $host_os in
22277   aix3*)
22278     cat <<\_LT_EOF >> "$cfgfile"
22279 # AIX sometimes has problems with the GCC collect2 program.  For some
22280 # reason, if we set the COLLECT_NAMES environment variable, the problems
22281 # vanish in a puff of smoke.
22282 if test "X${COLLECT_NAMES+set}" != Xset; then
22283   COLLECT_NAMES=
22284   export COLLECT_NAMES
22285 fi
22286 _LT_EOF
22287     ;;
22288   esac
22289
22290
22291 ltmain="$ac_aux_dir/ltmain.sh"
22292
22293
22294   # We use sed instead of cat because bash on DJGPP gets confused if
22295   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22296   # text mode, it properly converts lines to CR/LF.  This bash problem
22297   # is reportedly fixed, but why not run on old versions too?
22298   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22299     || (rm -f "$cfgfile"; exit 1)
22300
22301   case $xsi_shell in
22302   yes)
22303     cat << \_LT_EOF >> "$cfgfile"
22304
22305 # func_dirname file append nondir_replacement
22306 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22307 # otherwise set result to NONDIR_REPLACEMENT.
22308 func_dirname ()
22309 {
22310   case ${1} in
22311     */*) func_dirname_result="${1%/*}${2}" ;;
22312     *  ) func_dirname_result="${3}" ;;
22313   esac
22314 }
22315
22316 # func_basename file
22317 func_basename ()
22318 {
22319   func_basename_result="${1##*/}"
22320 }
22321
22322 # func_dirname_and_basename file append nondir_replacement
22323 # perform func_basename and func_dirname in a single function
22324 # call:
22325 #   dirname:  Compute the dirname of FILE.  If nonempty,
22326 #             add APPEND to the result, otherwise set result
22327 #             to NONDIR_REPLACEMENT.
22328 #             value returned in "$func_dirname_result"
22329 #   basename: Compute filename of FILE.
22330 #             value retuned in "$func_basename_result"
22331 # Implementation must be kept synchronized with func_dirname
22332 # and func_basename. For efficiency, we do not delegate to
22333 # those functions but instead duplicate the functionality here.
22334 func_dirname_and_basename ()
22335 {
22336   case ${1} in
22337     */*) func_dirname_result="${1%/*}${2}" ;;
22338     *  ) func_dirname_result="${3}" ;;
22339   esac
22340   func_basename_result="${1##*/}"
22341 }
22342
22343 # func_stripname prefix suffix name
22344 # strip PREFIX and SUFFIX off of NAME.
22345 # PREFIX and SUFFIX must not contain globbing or regex special
22346 # characters, hashes, percent signs, but SUFFIX may contain a leading
22347 # dot (in which case that matches only a dot).
22348 func_stripname ()
22349 {
22350   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22351   # positional parameters, so assign one to ordinary parameter first.
22352   func_stripname_result=${3}
22353   func_stripname_result=${func_stripname_result#"${1}"}
22354   func_stripname_result=${func_stripname_result%"${2}"}
22355 }
22356
22357 # func_opt_split
22358 func_opt_split ()
22359 {
22360   func_opt_split_opt=${1%%=*}
22361   func_opt_split_arg=${1#*=}
22362 }
22363
22364 # func_lo2o object
22365 func_lo2o ()
22366 {
22367   case ${1} in
22368     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22369     *)    func_lo2o_result=${1} ;;
22370   esac
22371 }
22372
22373 # func_xform libobj-or-source
22374 func_xform ()
22375 {
22376   func_xform_result=${1%.*}.lo
22377 }
22378
22379 # func_arith arithmetic-term...
22380 func_arith ()
22381 {
22382   func_arith_result=$(( $* ))
22383 }
22384
22385 # func_len string
22386 # STRING may not start with a hyphen.
22387 func_len ()
22388 {
22389   func_len_result=${#1}
22390 }
22391
22392 _LT_EOF
22393     ;;
22394   *) # Bourne compatible functions.
22395     cat << \_LT_EOF >> "$cfgfile"
22396
22397 # func_dirname file append nondir_replacement
22398 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
22399 # otherwise set result to NONDIR_REPLACEMENT.
22400 func_dirname ()
22401 {
22402   # Extract subdirectory from the argument.
22403   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22404   if test "X$func_dirname_result" = "X${1}"; then
22405     func_dirname_result="${3}"
22406   else
22407     func_dirname_result="$func_dirname_result${2}"
22408   fi
22409 }
22410
22411 # func_basename file
22412 func_basename ()
22413 {
22414   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22415 }
22416
22417
22418 # func_stripname prefix suffix name
22419 # strip PREFIX and SUFFIX off of NAME.
22420 # PREFIX and SUFFIX must not contain globbing or regex special
22421 # characters, hashes, percent signs, but SUFFIX may contain a leading
22422 # dot (in which case that matches only a dot).
22423 # func_strip_suffix prefix name
22424 func_stripname ()
22425 {
22426   case ${2} in
22427     .*) func_stripname_result=`$ECHO "X${3}" \
22428            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22429     *)  func_stripname_result=`$ECHO "X${3}" \
22430            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22431   esac
22432 }
22433
22434 # sed scripts:
22435 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22436 my_sed_long_arg='1s/^-[^=]*=//'
22437
22438 # func_opt_split
22439 func_opt_split ()
22440 {
22441   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22442   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22443 }
22444
22445 # func_lo2o object
22446 func_lo2o ()
22447 {
22448   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22449 }
22450
22451 # func_xform libobj-or-source
22452 func_xform ()
22453 {
22454   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22455 }
22456
22457 # func_arith arithmetic-term...
22458 func_arith ()
22459 {
22460   func_arith_result=`expr "$@"`
22461 }
22462
22463 # func_len string
22464 # STRING may not start with a hyphen.
22465 func_len ()
22466 {
22467   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22468 }
22469
22470 _LT_EOF
22471 esac
22472
22473 case $lt_shell_append in
22474   yes)
22475     cat << \_LT_EOF >> "$cfgfile"
22476
22477 # func_append var value
22478 # Append VALUE to the end of shell variable VAR.
22479 func_append ()
22480 {
22481   eval "$1+=\$2"
22482 }
22483 _LT_EOF
22484     ;;
22485   *)
22486     cat << \_LT_EOF >> "$cfgfile"
22487
22488 # func_append var value
22489 # Append VALUE to the end of shell variable VAR.
22490 func_append ()
22491 {
22492   eval "$1=\$$1\$2"
22493 }
22494
22495 _LT_EOF
22496     ;;
22497   esac
22498
22499
22500   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22501     || (rm -f "$cfgfile"; exit 1)
22502
22503   mv -f "$cfgfile" "$ofile" ||
22504     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22505   chmod +x "$ofile"
22506
22507
22508     cat <<_LT_EOF >> "$ofile"
22509
22510 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22511
22512 # The linker used to build libraries.
22513 LD=$lt_LD_CXX
22514
22515 # Commands used to build an old-style archive.
22516 old_archive_cmds=$lt_old_archive_cmds_CXX
22517
22518 # A language specific compiler.
22519 CC=$lt_compiler_CXX
22520
22521 # Is the compiler the GNU compiler?
22522 with_gcc=$GCC_CXX
22523
22524 # Compiler flag to turn off builtin functions.
22525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22526
22527 # How to pass a linker flag through the compiler.
22528 wl=$lt_lt_prog_compiler_wl_CXX
22529
22530 # Additional compiler flags for building library objects.
22531 pic_flag=$lt_lt_prog_compiler_pic_CXX
22532
22533 # Compiler flag to prevent dynamic linking.
22534 link_static_flag=$lt_lt_prog_compiler_static_CXX
22535
22536 # Does compiler simultaneously support -c and -o options?
22537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22538
22539 # Whether or not to add -lc for building shared libraries.
22540 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22541
22542 # Whether or not to disallow shared libs when runtime libs are static.
22543 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22544
22545 # Compiler flag to allow reflexive dlopens.
22546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22547
22548 # Compiler flag to generate shared objects directly from archives.
22549 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22550
22551 # Whether the compiler copes with passing no objects directly.
22552 compiler_needs_object=$lt_compiler_needs_object_CXX
22553
22554 # Create an old-style archive from a shared archive.
22555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22556
22557 # Create a temporary old-style archive to link instead of a shared archive.
22558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22559
22560 # Commands used to build a shared archive.
22561 archive_cmds=$lt_archive_cmds_CXX
22562 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22563
22564 # Commands used to build a loadable module if different from building
22565 # a shared archive.
22566 module_cmds=$lt_module_cmds_CXX
22567 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22568
22569 # Whether we are building with GNU ld or not.
22570 with_gnu_ld=$lt_with_gnu_ld_CXX
22571
22572 # Flag that allows shared libraries with undefined symbols to be built.
22573 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22574
22575 # Flag that enforces no undefined symbols.
22576 no_undefined_flag=$lt_no_undefined_flag_CXX
22577
22578 # Flag to hardcode \$libdir into a binary during linking.
22579 # This must work even if \$libdir does not exist
22580 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22581
22582 # If ld is used when linking, flag to hardcode \$libdir into a binary
22583 # during linking.  This must work even if \$libdir does not exist.
22584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22585
22586 # Whether we need a single "-rpath" flag with a separated argument.
22587 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22588
22589 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22590 # DIR into the resulting binary.
22591 hardcode_direct=$hardcode_direct_CXX
22592
22593 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22594 # DIR into the resulting binary and the resulting library dependency is
22595 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22596 # library is relocated.
22597 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22598
22599 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22600 # into the resulting binary.
22601 hardcode_minus_L=$hardcode_minus_L_CXX
22602
22603 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22604 # into the resulting binary.
22605 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22606
22607 # Set to "yes" if building a shared library automatically hardcodes DIR
22608 # into the library and all subsequent libraries and executables linked
22609 # against it.
22610 hardcode_automatic=$hardcode_automatic_CXX
22611
22612 # Set to yes if linker adds runtime paths of dependent libraries
22613 # to runtime path list.
22614 inherit_rpath=$inherit_rpath_CXX
22615
22616 # Whether libtool must link a program against all its dependency libraries.
22617 link_all_deplibs=$link_all_deplibs_CXX
22618
22619 # Fix the shell variable \$srcfile for the compiler.
22620 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22621
22622 # Set to "yes" if exported symbols are required.
22623 always_export_symbols=$always_export_symbols_CXX
22624
22625 # The commands to list exported symbols.
22626 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22627
22628 # Symbols that should not be listed in the preloaded symbols.
22629 exclude_expsyms=$lt_exclude_expsyms_CXX
22630
22631 # Symbols that must always be exported.
22632 include_expsyms=$lt_include_expsyms_CXX
22633
22634 # Commands necessary for linking programs (against libraries) with templates.
22635 prelink_cmds=$lt_prelink_cmds_CXX
22636
22637 # Specify filename containing input files.
22638 file_list_spec=$lt_file_list_spec_CXX
22639
22640 # How to hardcode a shared library path into an executable.
22641 hardcode_action=$hardcode_action_CXX
22642
22643 # The directories searched by this compiler when creating a shared library.
22644 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22645
22646 # Dependencies to place before and after the objects being linked to
22647 # create a shared library.
22648 predep_objects=$lt_predep_objects_CXX
22649 postdep_objects=$lt_postdep_objects_CXX
22650 predeps=$lt_predeps_CXX
22651 postdeps=$lt_postdeps_CXX
22652
22653 # The library search path used internally by the compiler when linking
22654 # a shared library.
22655 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22656
22657 # ### END LIBTOOL TAG CONFIG: CXX
22658 _LT_EOF
22659
22660  ;;
22661
22662   esac
22663 done # for ac_tag
22664
22665
22666 { (exit 0); exit 0; }
22667 _ACEOF
22668 chmod +x $CONFIG_STATUS
22669 ac_clean_files=$ac_clean_files_save
22670
22671 test $ac_write_fail = 0 ||
22672   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22673 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22674    { (exit 1); exit 1; }; }
22675
22676
22677 # configure is writing to config.log, and then calls config.status.
22678 # config.status does its own redirection, appending to config.log.
22679 # Unfortunately, on DOS this fails, as config.log is still kept open
22680 # by configure, so config.status won't be able to write to it; its
22681 # output is simply discarded.  So we exec the FD to /dev/null,
22682 # effectively closing config.log, so it can be properly (re)opened and
22683 # appended to by config.status.  When coming back to configure, we
22684 # need to make the FD available again.
22685 if test "$no_create" != yes; then
22686   ac_cs_success=:
22687   ac_config_status_args=
22688   test "$silent" = yes &&
22689     ac_config_status_args="$ac_config_status_args --quiet"
22690   exec 5>/dev/null
22691   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22692   exec 5>>config.log
22693   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22694   # would make configure fail if this is the last instruction.
22695   $ac_cs_success || { (exit 1); exit 1; }
22696 fi
22697 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22698   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22699 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22700 fi
22701