]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/CyaSSL/configure
aff17db4ab02392ebe4a371a810c4089585514ea
[freertos] / FreeRTOS-Plus / Source / CyaSSL / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for cyassl 2.3.0.
4 #
5 # Report bugs to <http://www.yassl.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
220 (
221   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
222     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
223     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
224     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
225     PATH=/empty FPATH=/empty; export PATH FPATH
226     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
227       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" )) || { (exit 1); exit 1; }
228 ") 2> /dev/null; then
229   :
230 else
231   as_candidate_shells=
232     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
233 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
234 do
235   IFS=$as_save_IFS
236   test -z "$as_dir" && as_dir=.
237   case $as_dir in
238          /*)
239            for as_base in sh bash ksh sh5; do
240              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
241            done;;
242        esac
243 done
244 IFS=$as_save_IFS
245
246
247       for as_shell in $as_candidate_shells $SHELL; do
248          # Try only shells that exist, to save several forks.
249          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
250                 { ("$as_shell") 2> /dev/null <<\_ASEOF
251 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
252   emulate sh
253   NULLCMD=:
254   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
255   # is contrary to our usage.  Disable this feature.
256   alias -g '${1+"$@"}'='"$@"'
257   setopt NO_GLOB_SUBST
258 else
259   case `(set -o) 2>/dev/null` in
260   *posix*) set -o posix ;;
261 esac
262
263 fi
264
265
266 :
267 _ASEOF
268 }; then
269   CONFIG_SHELL=$as_shell
270                as_have_required=yes
271                if { "$as_shell" 2> /dev/null <<\_ASEOF
272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
273   emulate sh
274   NULLCMD=:
275   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
276   # is contrary to our usage.  Disable this feature.
277   alias -g '${1+"$@"}'='"$@"'
278   setopt NO_GLOB_SUBST
279 else
280   case `(set -o) 2>/dev/null` in
281   *posix*) set -o posix ;;
282 esac
283
284 fi
285
286
287 :
288 (as_func_return () {
289   (exit $1)
290 }
291 as_func_success () {
292   as_func_return 0
293 }
294 as_func_failure () {
295   as_func_return 1
296 }
297 as_func_ret_success () {
298   return 0
299 }
300 as_func_ret_failure () {
301   return 1
302 }
303
304 exitcode=0
305 if as_func_success; then
306   :
307 else
308   exitcode=1
309   echo as_func_success failed.
310 fi
311
312 if as_func_failure; then
313   exitcode=1
314   echo as_func_failure succeeded.
315 fi
316
317 if as_func_ret_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_ret_success failed.
322 fi
323
324 if as_func_ret_failure; then
325   exitcode=1
326   echo as_func_ret_failure succeeded.
327 fi
328
329 if ( set x; as_func_ret_success y && test x = "$1" ); then
330   :
331 else
332   exitcode=1
333   echo positional parameters were not saved.
334 fi
335
336 test $exitcode = 0) || { (exit 1); exit 1; }
337
338 (
339   as_lineno_1=$LINENO
340   as_lineno_2=$LINENO
341   test "x$as_lineno_1" != "x$as_lineno_2" &&
342   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343
344 (
345   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
346     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
347     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
348     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
349     PATH=/empty FPATH=/empty; export PATH FPATH
350     test "X`printf %s $ECHO`" = "X$ECHO" \
351       || test "X`print -r -- $ECHO`" = "X$ECHO" )) || { (exit 1); exit 1; }
352
353 _ASEOF
354 }; then
355   break
356 fi
357
358 fi
359
360       done
361
362       if test "x$CONFIG_SHELL" != x; then
363   for as_var in BASH_ENV ENV
364         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
365         done
366         export CONFIG_SHELL
367         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
368 fi
369
370
371     if test $as_have_required = no; then
372   echo This script requires a shell more modern than all the
373       echo shells that I found on your system.  Please install a
374       echo modern shell, or manually run the script under such a
375       echo shell if you do have one.
376       { (exit 1); exit 1; }
377 fi
378
379
380 fi
381
382 fi
383
384
385
386 (eval "as_func_return () {
387   (exit \$1)
388 }
389 as_func_success () {
390   as_func_return 0
391 }
392 as_func_failure () {
393   as_func_return 1
394 }
395 as_func_ret_success () {
396   return 0
397 }
398 as_func_ret_failure () {
399   return 1
400 }
401
402 exitcode=0
403 if as_func_success; then
404   :
405 else
406   exitcode=1
407   echo as_func_success failed.
408 fi
409
410 if as_func_failure; then
411   exitcode=1
412   echo as_func_failure succeeded.
413 fi
414
415 if as_func_ret_success; then
416   :
417 else
418   exitcode=1
419   echo as_func_ret_success failed.
420 fi
421
422 if as_func_ret_failure; then
423   exitcode=1
424   echo as_func_ret_failure succeeded.
425 fi
426
427 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428   :
429 else
430   exitcode=1
431   echo positional parameters were not saved.
432 fi
433
434 test \$exitcode = 0") || {
435   echo No shell found that supports shell functions.
436   echo Please tell autoconf@gnu.org about your system,
437   echo including any error possibly output before this
438   echo message
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502
503 if expr a : '\(a\)' >/dev/null 2>&1 &&
504    test "X`expr 00001 : '.*\(...\)'`" = X001; then
505   as_expr=expr
506 else
507   as_expr=false
508 fi
509
510 rm -f conf$$ conf$$.exe conf$$.file
511 if test -d conf$$.dir; then
512   rm -f conf$$.dir/conf$$.file
513 else
514   rm -f conf$$.dir
515   mkdir conf$$.dir
516 fi
517 echo >conf$$.file
518 if ln -s conf$$.file conf$$ 2>/dev/null; then
519   as_ln_s='ln -s'
520   # ... but there are two gotchas:
521   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
522   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
523   # In both cases, we have to default to `cp -p'.
524   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525     as_ln_s='cp -p'
526 elif ln conf$$.file conf$$ 2>/dev/null; then
527   as_ln_s=ln
528 else
529   as_ln_s='cp -p'
530 fi
531 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
532 rmdir conf$$.dir 2>/dev/null
533
534 if mkdir -p . 2>/dev/null; then
535   as_mkdir_p=:
536 else
537   test -d ./-p && rmdir ./-p
538   as_mkdir_p=false
539 fi
540
541 if test -x / >/dev/null 2>&1; then
542   as_test_x='test -x'
543 else
544   if ls -dL / >/dev/null 2>&1; then
545     as_ls_L_option=L
546   else
547     as_ls_L_option=
548   fi
549   as_test_x='
550     eval sh -c '\''
551       if test -d "$1"; then
552         test -d "$1/.";
553       else
554         case $1 in
555         -*)set "./$1";;
556         esac;
557         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
558         ???[sx]*):;;*)false;;esac;fi
559     '\'' sh
560   '
561 fi
562 as_executable_p=$as_test_x
563
564 # Sed expression to map a string onto a valid CPP name.
565 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
566
567 # Sed expression to map a string onto a valid variable name.
568 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
569
570
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME='cyassl'
596 PACKAGE_TARNAME='cyassl'
597 PACKAGE_VERSION='2.3.0'
598 PACKAGE_STRING='cyassl 2.3.0'
599 PACKAGE_BUGREPORT='http://www.yassl.com'
600
601 # Factoring default headers for most tests.
602 ac_includes_default="\
603 #include <stdio.h>
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
606 #endif
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
609 #endif
610 #ifdef STDC_HEADERS
611 # include <stdlib.h>
612 # include <stddef.h>
613 #else
614 # ifdef HAVE_STDLIB_H
615 #  include <stdlib.h>
616 # endif
617 #endif
618 #ifdef HAVE_STRING_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #  include <memory.h>
621 # endif
622 # include <string.h>
623 #endif
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_UNISTD_H
634 # include <unistd.h>
635 #endif"
636
637 ac_header_list=
638 ac_func_list=
639 ac_subst_vars='SHELL
640 PATH_SEPARATOR
641 PACKAGE_NAME
642 PACKAGE_TARNAME
643 PACKAGE_VERSION
644 PACKAGE_STRING
645 PACKAGE_BUGREPORT
646 exec_prefix
647 prefix
648 program_transform_name
649 bindir
650 sbindir
651 libexecdir
652 datarootdir
653 datadir
654 sysconfdir
655 sharedstatedir
656 localstatedir
657 includedir
658 oldincludedir
659 docdir
660 infodir
661 htmldir
662 dvidir
663 pdfdir
664 psdir
665 libdir
666 localedir
667 mandir
668 DEFS
669 ECHO_C
670 ECHO_N
671 ECHO_T
672 LIBS
673 build_alias
674 host_alias
675 target_alias
676 build
677 build_cpu
678 build_vendor
679 build_os
680 host
681 host_cpu
682 host_vendor
683 host_os
684 target
685 target_cpu
686 target_vendor
687 target_os
688 INSTALL_PROGRAM
689 INSTALL_SCRIPT
690 INSTALL_DATA
691 am__isrc
692 CYGPATH_W
693 PACKAGE
694 VERSION
695 ACLOCAL
696 AUTOCONF
697 AUTOMAKE
698 AUTOHEADER
699 MAKEINFO
700 install_sh
701 STRIP
702 INSTALL_STRIP_PROGRAM
703 mkdir_p
704 AWK
705 SET_MAKE
706 am__leading_dot
707 AMTAR
708 am__tar
709 am__untar
710 CYASSL_LIBRARY_VERSION
711 AS
712 DLLTOOL
713 OBJDUMP
714 LIBTOOL
715 CC
716 CFLAGS
717 LDFLAGS
718 CPPFLAGS
719 ac_ct_CC
720 EXEEXT
721 OBJEXT
722 DEPDIR
723 am__include
724 am__quote
725 AMDEP_TRUE
726 AMDEP_FALSE
727 AMDEPBACKSLASH
728 CCDEPMODE
729 am__fastdepCC_TRUE
730 am__fastdepCC_FALSE
731 SED
732 GREP
733 EGREP
734 FGREP
735 LD
736 DUMPBIN
737 ac_ct_DUMPBIN
738 NM
739 LN_S
740 AR
741 RANLIB
742 DSYMUTIL
743 NMEDIT
744 LIPO
745 OTOOL
746 OTOOL64
747 CPP
748 CXX
749 CXXFLAGS
750 ac_ct_CXX
751 CXXDEPMODE
752 am__fastdepCXX_TRUE
753 am__fastdepCXX_FALSE
754 CXXCPP
755 CFLAG_VISIBILITY
756 HAVE_VISIBILITY
757 LIBOBJS
758 CCAS
759 CCASFLAGS
760 CCASDEPMODE
761 am__fastdepCCAS_TRUE
762 am__fastdepCCAS_FALSE
763 LIBM
764 BUILD_FASTMATH_TRUE
765 BUILD_FASTMATH_FALSE
766 BUILD_SNIFFER_TRUE
767 BUILD_SNIFFER_FALSE
768 BUILD_AESGCM_TRUE
769 BUILD_AESGCM_FALSE
770 BUILD_AESNI_TRUE
771 BUILD_AESNI_FALSE
772 BUILD_MD2_TRUE
773 BUILD_MD2_FALSE
774 BUILD_RIPEMD_TRUE
775 BUILD_RIPEMD_FALSE
776 BUILD_SHA512_TRUE
777 BUILD_SHA512_FALSE
778 BUILD_HC128_TRUE
779 BUILD_HC128_FALSE
780 BUILD_NOINLINE_TRUE
781 BUILD_NOINLINE_FALSE
782 BUILD_ECC_TRUE
783 BUILD_ECC_FALSE
784 BUILD_OCSP_TRUE
785 BUILD_OCSP_FALSE
786 BUILD_CRL_TRUE
787 BUILD_CRL_FALSE
788 BUILD_CRL_MONITOR_TRUE
789 BUILD_CRL_MONITOR_FALSE
790 BUILD_NTRU_TRUE
791 BUILD_NTRU_FALSE
792 ax_pthread_config
793 PTHREAD_CC
794 PTHREAD_LIBS
795 PTHREAD_CFLAGS
796 HEX_VERSION
797 AM_CFLAGS
798 AM_LDFLAGS
799 LTLIBOBJS'
800 ac_subst_files=''
801       ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CC
805 CFLAGS
806 LDFLAGS
807 LIBS
808 CPPFLAGS
809 CPP
810 CXX
811 CXXFLAGS
812 CCC
813 CXXCPP
814 CCAS
815 CCASFLAGS'
816
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures cyassl 2.3.0 to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/cyassl]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 Program names:
1376   --program-prefix=PREFIX            prepend PREFIX to installed program names
1377   --program-suffix=SUFFIX            append SUFFIX to installed program names
1378   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1379
1380 System types:
1381   --build=BUILD     configure for building on BUILD [guessed]
1382   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383   --target=TARGET   configure for building compilers for TARGET [HOST]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388   case $ac_init_help in
1389      short | recursive ) echo "Configuration of cyassl 2.3.0:";;
1390    esac
1391   cat <<\_ACEOF
1392
1393 Optional Features:
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --enable-shared[=PKGS]  build shared libraries [default=yes]
1397   --enable-static[=PKGS]  build static libraries [default=yes]
1398   --enable-fast-install[=PKGS]
1399                           optimize for fast installation [default=yes]
1400   --disable-dependency-tracking  speeds up one-time build
1401   --enable-dependency-tracking   do not reject slow dependency extractors
1402   --disable-libtool-lock  avoid locking (might break parallel builds)
1403   --enable-debug          Enable CyaSSL debugging support (default: disabled)
1404   --enable-small          Enable smallest build (default: disabled)
1405   --enable-singleThreaded Enable CyaSSL single threaded (default: disabled)
1406   --enable-dtls           Enable CyaSSL DTLS (default: disabled)
1407   --enable-opensslExtra   Enable extra OpenSSL API, size+ (default: disabled)
1408   --enable-ipv6           Enable testing of IPV6 (default: disabled)
1409   --enable-fortress       Enable SSL fortress build (default: disabled)
1410   --enable-bump           Enable SSL Bump build (default: disabled)
1411   --enable-fastmath       Enable fast math for BigInts (default: disabled)
1412   --enable-fasthugemath   Enable fast math + huge code (default: disabled)
1413   --enable-bigcache       Enable big session cache (default: disabled)
1414   --enable-hugecache      Enable huge session cache (default: disabled)
1415   --enable-smallcache     Enable small session cache (default: disabled)
1416   --enable-sniffer        Enable CyaSSL sniffer support (default: disabled)
1417   --enable-aesgcm         Enable CyaSSL AES-GCM support (default: disabled)
1418   --enable-aesni          Enable CyaSSL AES-NI support (default: disabled)
1419   --enable-md2            Enable CyaSSL MD2 support (default: disabled)
1420   --enable-ripemd         Enable CyaSSL RIPEMD-160 support (default: disabled)
1421   --enable-sha512         Enable CyaSSL SHA-512 support (default: disabled)
1422   --enable-sessioncerts   Enable session cert storing (default: disabled)
1423   --enable-keygen         Enable key generation (default: disabled)
1424   --enable-certgen        Enable cert generation (default: disabled)
1425   --enable-hc128          Enable HC-128 (default: disabled)
1426   --enable-psk            Enable PSK (default: disabled)
1427   --enable-webServer      Enable Web Server (default: disabled)
1428   --enable-noFilesystem   Enable No Filesystem (default: disabled)
1429   --enable-noInline       Enable No inline (default: disabled)
1430   --enable-ecc            Enable ECC (default: disabled)
1431   --enable-ocsp           Enable OCSP (default: disabled)
1432   --enable-crl            Enable CRL (default: disabled)
1433   --enable-crl-monitor    Enable CRL Monitor (default: disabled)
1434   --enable-ntru           Enable NTRU (default: disabled)
1435   --enable-testcert       Enable Test Cert (default: disabled)
1436   --enable-gcc-lots-o-warnings
1437                           Enable lots of gcc warnings (default: disabled)
1438   --enable-gcc-hardening  Enable compiler security checks (default: disabled)
1439   --enable-linker-hardening
1440                           Enable linker security fixups (default: disabled)
1441
1442 Optional Packages:
1443   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1444   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1445   --with-pic              try to use only PIC/non-PIC objects [default=use
1446                           both]
1447   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1448   --with-libz=PATH        PATH to libz install (default /usr/)
1449
1450 Some influential environment variables:
1451   CC          C compiler command
1452   CFLAGS      C compiler flags
1453   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454               nonstandard directory <lib dir>
1455   LIBS        libraries to pass to the linker, e.g. -l<library>
1456   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1457               you have headers in a nonstandard directory <include dir>
1458   CPP         C preprocessor
1459   CXX         C++ compiler command
1460   CXXFLAGS    C++ compiler flags
1461   CXXCPP      C++ preprocessor
1462   CCAS        assembler compiler command (defaults to CC)
1463   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1464
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1467
1468 Report bugs to <http://www.yassl.com>.
1469 _ACEOF
1470 ac_status=$?
1471 fi
1472
1473 if test "$ac_init_help" = "recursive"; then
1474   # If there are subdirs, report their specific --help.
1475   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476     test -d "$ac_dir" || continue
1477     ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1483   # A ".." for each directory in $ac_dir_suffix.
1484   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1485   case $ac_top_builddir_sub in
1486   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488   esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496   .)  # We are building in place.
1497     ac_srcdir=.
1498     ac_top_srcdir=$ac_top_builddir_sub
1499     ac_abs_top_srcdir=$ac_pwd ;;
1500   [\\/]* | ?:[\\/]* )  # Absolute name.
1501     ac_srcdir=$srcdir$ac_dir_suffix;
1502     ac_top_srcdir=$srcdir
1503     ac_abs_top_srcdir=$srcdir ;;
1504   *) # Relative name.
1505     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506     ac_top_srcdir=$ac_top_build_prefix$srcdir
1507     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511     cd "$ac_dir" || { ac_status=$?; continue; }
1512     # Check for guested configure.
1513     if test -f "$ac_srcdir/configure.gnu"; then
1514       echo &&
1515       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516     elif test -f "$ac_srcdir/configure"; then
1517       echo &&
1518       $SHELL "$ac_srcdir/configure" --help=recursive
1519     else
1520       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521     fi || ac_status=$?
1522     cd "$ac_pwd" || { ac_status=$?; break; }
1523   done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528   cat <<\_ACEOF
1529 cyassl configure 2.3.0
1530 generated by GNU Autoconf 2.61
1531
1532 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1533 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537   exit
1538 fi
1539 cat >config.log <<_ACEOF
1540 This file contains any messages produced by compilers while
1541 running configure, to aid debugging if configure makes a mistake.
1542
1543 It was created by cyassl $as_me 2.3.0, which was
1544 generated by GNU Autoconf 2.61.  Invocation command line was
1545
1546   $ $0 $@
1547
1548 _ACEOF
1549 exec 5>>config.log
1550 {
1551 cat <<_ASUNAME
1552 ## --------- ##
1553 ## Platform. ##
1554 ## --------- ##
1555
1556 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1557 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1558 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1559 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1560 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1561
1562 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1563 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1564
1565 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1566 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1567 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1568 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1569 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1570 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1571 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1572
1573 _ASUNAME
1574
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   echo "PATH: $as_dir"
1581 done
1582 IFS=$as_save_IFS
1583
1584 } >&5
1585
1586 cat >&5 <<_ACEOF
1587
1588
1589 ## ----------- ##
1590 ## Core tests. ##
1591 ## ----------- ##
1592
1593 _ACEOF
1594
1595
1596 # Keep a trace of the command line.
1597 # Strip out --no-create and --no-recursion so they do not pile up.
1598 # Strip out --silent because we don't want to record it for future runs.
1599 # Also quote any args containing shell meta-characters.
1600 # Make two passes to allow for proper duplicate-argument suppression.
1601 ac_configure_args=
1602 ac_configure_args0=
1603 ac_configure_args1=
1604 ac_must_keep_next=false
1605 for ac_pass in 1 2
1606 do
1607   for ac_arg
1608   do
1609     case $ac_arg in
1610     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1611     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1612     | -silent | --silent | --silen | --sile | --sil)
1613       continue ;;
1614     *\'*)
1615       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1616     esac
1617     case $ac_pass in
1618     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1619     2)
1620       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1621       if test $ac_must_keep_next = true; then
1622         ac_must_keep_next=false # Got value, back to normal.
1623       else
1624         case $ac_arg in
1625           *=* | --config-cache | -C | -disable-* | --disable-* \
1626           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1627           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1628           | -with-* | --with-* | -without-* | --without-* | --x)
1629             case "$ac_configure_args0 " in
1630               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1631             esac
1632             ;;
1633           -* ) ac_must_keep_next=true ;;
1634         esac
1635       fi
1636       ac_configure_args="$ac_configure_args '$ac_arg'"
1637       ;;
1638     esac
1639   done
1640 done
1641 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1642 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1643
1644 # When interrupted or exit'd, cleanup temporary files, and complete
1645 # config.log.  We remove comments because anyway the quotes in there
1646 # would cause problems or look ugly.
1647 # WARNING: Use '\'' to represent an apostrophe within the trap.
1648 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1649 trap 'exit_status=$?
1650   # Save into config.log some information that might help in debugging.
1651   {
1652     echo
1653
1654     cat <<\_ASBOX
1655 ## ---------------- ##
1656 ## Cache variables. ##
1657 ## ---------------- ##
1658 _ASBOX
1659     echo
1660     # The following way of writing the cache mishandles newlines in values,
1661 (
1662   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1663     eval ac_val=\$$ac_var
1664     case $ac_val in #(
1665     *${as_nl}*)
1666       case $ac_var in #(
1667       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1668 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1669       esac
1670       case $ac_var in #(
1671       _ | IFS | as_nl) ;; #(
1672       *) $as_unset $ac_var ;;
1673       esac ;;
1674     esac
1675   done
1676   (set) 2>&1 |
1677     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1678     *${as_nl}ac_space=\ *)
1679       sed -n \
1680         "s/'\''/'\''\\\\'\'''\''/g;
1681           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1682       ;; #(
1683     *)
1684       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1685       ;;
1686     esac |
1687     sort
1688 )
1689     echo
1690
1691     cat <<\_ASBOX
1692 ## ----------------- ##
1693 ## Output variables. ##
1694 ## ----------------- ##
1695 _ASBOX
1696     echo
1697     for ac_var in $ac_subst_vars
1698     do
1699       eval ac_val=\$$ac_var
1700       case $ac_val in
1701       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1702       esac
1703       echo "$ac_var='\''$ac_val'\''"
1704     done | sort
1705     echo
1706
1707     if test -n "$ac_subst_files"; then
1708       cat <<\_ASBOX
1709 ## ------------------- ##
1710 ## File substitutions. ##
1711 ## ------------------- ##
1712 _ASBOX
1713       echo
1714       for ac_var in $ac_subst_files
1715       do
1716         eval ac_val=\$$ac_var
1717         case $ac_val in
1718         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1719         esac
1720         echo "$ac_var='\''$ac_val'\''"
1721       done | sort
1722       echo
1723     fi
1724
1725     if test -s confdefs.h; then
1726       cat <<\_ASBOX
1727 ## ----------- ##
1728 ## confdefs.h. ##
1729 ## ----------- ##
1730 _ASBOX
1731       echo
1732       cat confdefs.h
1733       echo
1734     fi
1735     test "$ac_signal" != 0 &&
1736       echo "$as_me: caught signal $ac_signal"
1737     echo "$as_me: exit $exit_status"
1738   } >&5
1739   rm -f core *.core core.conftest.* &&
1740     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1741     exit $exit_status
1742 ' 0
1743 for ac_signal in 1 2 13 15; do
1744   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1745 done
1746 ac_signal=0
1747
1748 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1749 rm -f -r conftest* confdefs.h
1750
1751 # Predefined preprocessor variables.
1752
1753 cat >>confdefs.h <<_ACEOF
1754 #define PACKAGE_NAME "$PACKAGE_NAME"
1755 _ACEOF
1756
1757
1758 cat >>confdefs.h <<_ACEOF
1759 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1760 _ACEOF
1761
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_STRING "$PACKAGE_STRING"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1775 _ACEOF
1776
1777
1778 # Let the site file select an alternate cache file if it wants to.
1779 # Prefer explicitly selected file to automatically selected ones.
1780 if test -n "$CONFIG_SITE"; then
1781   set x "$CONFIG_SITE"
1782 elif test "x$prefix" != xNONE; then
1783   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1784 else
1785   set x "$ac_default_prefix/share/config.site" \
1786         "$ac_default_prefix/etc/config.site"
1787 fi
1788 shift
1789 for ac_site_file
1790 do
1791   if test -r "$ac_site_file"; then
1792     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1793 echo "$as_me: loading site script $ac_site_file" >&6;}
1794     sed 's/^/| /' "$ac_site_file" >&5
1795     . "$ac_site_file"
1796   fi
1797 done
1798
1799 if test -r "$cache_file"; then
1800   # Some versions of bash will fail to source /dev/null (special
1801   # files actually), so we avoid doing that.
1802   if test -f "$cache_file"; then
1803     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1804 echo "$as_me: loading cache $cache_file" >&6;}
1805     case $cache_file in
1806       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1807       *)                      . "./$cache_file";;
1808     esac
1809   fi
1810 else
1811   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1812 echo "$as_me: creating cache $cache_file" >&6;}
1813   >$cache_file
1814 fi
1815
1816 ac_header_list="$ac_header_list sys/time.h"
1817 ac_header_list="$ac_header_list unistd.h"
1818 ac_func_list="$ac_func_list alarm"
1819 # Check that the precious variables saved in the cache have kept the same
1820 # value.
1821 ac_cache_corrupted=false
1822 for ac_var in $ac_precious_vars; do
1823   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1824   eval ac_new_set=\$ac_env_${ac_var}_set
1825   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1826   eval ac_new_val=\$ac_env_${ac_var}_value
1827   case $ac_old_set,$ac_new_set in
1828     set,)
1829       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1830 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1831       ac_cache_corrupted=: ;;
1832     ,set)
1833       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1834 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1835       ac_cache_corrupted=: ;;
1836     ,);;
1837     *)
1838       if test "x$ac_old_val" != "x$ac_new_val"; then
1839         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1840 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1841         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1842 echo "$as_me:   former value:  $ac_old_val" >&2;}
1843         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1844 echo "$as_me:   current value: $ac_new_val" >&2;}
1845         ac_cache_corrupted=:
1846       fi;;
1847   esac
1848   # Pass precious variables to config.status.
1849   if test "$ac_new_set" = set; then
1850     case $ac_new_val in
1851     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1852     *) ac_arg=$ac_var=$ac_new_val ;;
1853     esac
1854     case " $ac_configure_args " in
1855       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1856       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1857     esac
1858   fi
1859 done
1860 if $ac_cache_corrupted; then
1861   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1862 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1863   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1864 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1865    { (exit 1); exit 1; }; }
1866 fi
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892 ac_ext=c
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897
1898
1899
1900 ac_aux_dir=
1901 for ac_dir in config "$srcdir"/config; do
1902   if test -f "$ac_dir/install-sh"; then
1903     ac_aux_dir=$ac_dir
1904     ac_install_sh="$ac_aux_dir/install-sh -c"
1905     break
1906   elif test -f "$ac_dir/install.sh"; then
1907     ac_aux_dir=$ac_dir
1908     ac_install_sh="$ac_aux_dir/install.sh -c"
1909     break
1910   elif test -f "$ac_dir/shtool"; then
1911     ac_aux_dir=$ac_dir
1912     ac_install_sh="$ac_aux_dir/shtool install -c"
1913     break
1914   fi
1915 done
1916 if test -z "$ac_aux_dir"; then
1917   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1918 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1919    { (exit 1); exit 1; }; }
1920 fi
1921
1922 # These three variables are undocumented and unsupported,
1923 # and are intended to be withdrawn in a future Autoconf release.
1924 # They can cause serious problems if a builder's source tree is in a directory
1925 # whose full name contains unusual characters.
1926 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1927 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1928 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1929
1930
1931
1932 # Make sure we can run config.sub.
1933 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1934   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1935 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1936    { (exit 1); exit 1; }; }
1937
1938 { echo "$as_me:$LINENO: checking build system type" >&5
1939 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1940 if test "${ac_cv_build+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   ac_build_alias=$build_alias
1944 test "x$ac_build_alias" = x &&
1945   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1946 test "x$ac_build_alias" = x &&
1947   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1948 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1949    { (exit 1); exit 1; }; }
1950 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1951   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1952 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1953    { (exit 1); exit 1; }; }
1954
1955 fi
1956 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1957 echo "${ECHO_T}$ac_cv_build" >&6; }
1958 case $ac_cv_build in
1959 *-*-*) ;;
1960 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1961 echo "$as_me: error: invalid value of canonical build" >&2;}
1962    { (exit 1); exit 1; }; };;
1963 esac
1964 build=$ac_cv_build
1965 ac_save_IFS=$IFS; IFS='-'
1966 set x $ac_cv_build
1967 shift
1968 build_cpu=$1
1969 build_vendor=$2
1970 shift; shift
1971 # Remember, the first character of IFS is used to create $*,
1972 # except with old shells:
1973 build_os=$*
1974 IFS=$ac_save_IFS
1975 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1976
1977
1978 { echo "$as_me:$LINENO: checking host system type" >&5
1979 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1980 if test "${ac_cv_host+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test "x$host_alias" = x; then
1984   ac_cv_host=$ac_cv_build
1985 else
1986   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1987     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1988 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 fi
1993 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1994 echo "${ECHO_T}$ac_cv_host" >&6; }
1995 case $ac_cv_host in
1996 *-*-*) ;;
1997 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1998 echo "$as_me: error: invalid value of canonical host" >&2;}
1999    { (exit 1); exit 1; }; };;
2000 esac
2001 host=$ac_cv_host
2002 ac_save_IFS=$IFS; IFS='-'
2003 set x $ac_cv_host
2004 shift
2005 host_cpu=$1
2006 host_vendor=$2
2007 shift; shift
2008 # Remember, the first character of IFS is used to create $*,
2009 # except with old shells:
2010 host_os=$*
2011 IFS=$ac_save_IFS
2012 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2013
2014
2015 { echo "$as_me:$LINENO: checking target system type" >&5
2016 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2017 if test "${ac_cv_target+set}" = set; then
2018   echo $ECHO_N "(cached) $ECHO_C" >&6
2019 else
2020   if test "x$target_alias" = x; then
2021   ac_cv_target=$ac_cv_host
2022 else
2023   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2024     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2025 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2026    { (exit 1); exit 1; }; }
2027 fi
2028
2029 fi
2030 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2031 echo "${ECHO_T}$ac_cv_target" >&6; }
2032 case $ac_cv_target in
2033 *-*-*) ;;
2034 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2035 echo "$as_me: error: invalid value of canonical target" >&2;}
2036    { (exit 1); exit 1; }; };;
2037 esac
2038 target=$ac_cv_target
2039 ac_save_IFS=$IFS; IFS='-'
2040 set x $ac_cv_target
2041 shift
2042 target_cpu=$1
2043 target_vendor=$2
2044 shift; shift
2045 # Remember, the first character of IFS is used to create $*,
2046 # except with old shells:
2047 target_os=$*
2048 IFS=$ac_save_IFS
2049 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2050
2051
2052 # The aliases save the names the user supplied, while $host etc.
2053 # will get canonicalized.
2054 test -n "$target_alias" &&
2055   test "$program_prefix$program_suffix$program_transform_name" = \
2056     NONENONEs,x,x, &&
2057   program_prefix=${target_alias}-
2058
2059 am__api_version='1.10'
2060
2061 # Find a good install program.  We prefer a C program (faster),
2062 # so one script is as good as another.  But avoid the broken or
2063 # incompatible versions:
2064 # SysV /etc/install, /usr/sbin/install
2065 # SunOS /usr/etc/install
2066 # IRIX /sbin/install
2067 # AIX /bin/install
2068 # AmigaOS /C/install, which installs bootblocks on floppy discs
2069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2072 # OS/2's system install, which has a completely different semantic
2073 # ./install, which can be erroneously created by make from ./install.sh.
2074 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2075 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2076 if test -z "$INSTALL"; then
2077 if test "${ac_cv_path_install+set}" = set; then
2078   echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   # Account for people who put trailing slashes in PATH elements.
2086 case $as_dir/ in
2087   ./ | .// | /cC/* | \
2088   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2089   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2090   /usr/ucb/* ) ;;
2091   *)
2092     # OSF1 and SCO ODT 3.0 have their own names for install.
2093     # Don't use installbsd from OSF since it installs stuff as root
2094     # by default.
2095     for ac_prog in ginstall scoinst install; do
2096       for ac_exec_ext in '' $ac_executable_extensions; do
2097         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2098           if test $ac_prog = install &&
2099             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2100             # AIX install.  It has an incompatible calling convention.
2101             :
2102           elif test $ac_prog = install &&
2103             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2104             # program-specific install script used by HP pwplus--don't use.
2105             :
2106           else
2107             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2108             break 3
2109           fi
2110         fi
2111       done
2112     done
2113     ;;
2114 esac
2115 done
2116 IFS=$as_save_IFS
2117
2118
2119 fi
2120   if test "${ac_cv_path_install+set}" = set; then
2121     INSTALL=$ac_cv_path_install
2122   else
2123     # As a last resort, use the slow shell script.  Don't cache a
2124     # value for INSTALL within a source directory, because that will
2125     # break other packages using the cache if that directory is
2126     # removed, or if the value is a relative name.
2127     INSTALL=$ac_install_sh
2128   fi
2129 fi
2130 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2131 echo "${ECHO_T}$INSTALL" >&6; }
2132
2133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2134 # It thinks the first close brace ends the variable substitution.
2135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2136
2137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2138
2139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2140
2141 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2142 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2143 # Just in case
2144 sleep 1
2145 echo timestamp > conftest.file
2146 # Do `set' in a subshell so we don't clobber the current shell's
2147 # arguments.  Must try -L first in case configure is actually a
2148 # symlink; some systems play weird games with the mod time of symlinks
2149 # (eg FreeBSD returns the mod time of the symlink's containing
2150 # directory).
2151 if (
2152    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2153    if test "$*" = "X"; then
2154       # -L didn't work.
2155       set X `ls -t $srcdir/configure conftest.file`
2156    fi
2157    rm -f conftest.file
2158    if test "$*" != "X $srcdir/configure conftest.file" \
2159       && test "$*" != "X conftest.file $srcdir/configure"; then
2160
2161       # If neither matched, then we have a broken ls.  This can happen
2162       # if, for instance, CONFIG_SHELL is bash and it inherits a
2163       # broken ls alias from the environment.  This has actually
2164       # happened.  Such a system could not be considered "sane".
2165       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2166 alias in your environment" >&5
2167 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2168 alias in your environment" >&2;}
2169    { (exit 1); exit 1; }; }
2170    fi
2171
2172    test "$2" = conftest.file
2173    )
2174 then
2175    # Ok.
2176    :
2177 else
2178    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2179 Check your system clock" >&5
2180 echo "$as_me: error: newly created file is older than distributed files!
2181 Check your system clock" >&2;}
2182    { (exit 1); exit 1; }; }
2183 fi
2184 { echo "$as_me:$LINENO: result: yes" >&5
2185 echo "${ECHO_T}yes" >&6; }
2186 test "$program_prefix" != NONE &&
2187   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2188 # Use a double $ so make ignores it.
2189 test "$program_suffix" != NONE &&
2190   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2191 # Double any \ or $.  echo might interpret backslashes.
2192 # By default was `s,x,x', remove it if useless.
2193 cat <<\_ACEOF >conftest.sed
2194 s/[\\$]/&&/g;s/;s,x,x,$//
2195 _ACEOF
2196 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2197 rm -f conftest.sed
2198
2199 # expand $ac_aux_dir to an absolute path
2200 am_aux_dir=`cd $ac_aux_dir && pwd`
2201
2202 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2203 # Use eval to expand $SHELL
2204 if eval "$MISSING --run true"; then
2205   am_missing_run="$MISSING --run "
2206 else
2207   am_missing_run=
2208   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2209 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2210 fi
2211
2212 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2213 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2214 if test -z "$MKDIR_P"; then
2215   if test "${ac_cv_path_mkdir+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2220 do
2221   IFS=$as_save_IFS
2222   test -z "$as_dir" && as_dir=.
2223   for ac_prog in mkdir gmkdir; do
2224          for ac_exec_ext in '' $ac_executable_extensions; do
2225            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2226            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2227              'mkdir (GNU coreutils) '* | \
2228              'mkdir (coreutils) '* | \
2229              'mkdir (fileutils) '4.1*)
2230                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2231                break 3;;
2232            esac
2233          done
2234        done
2235 done
2236 IFS=$as_save_IFS
2237
2238 fi
2239
2240   if test "${ac_cv_path_mkdir+set}" = set; then
2241     MKDIR_P="$ac_cv_path_mkdir -p"
2242   else
2243     # As a last resort, use the slow shell script.  Don't cache a
2244     # value for MKDIR_P within a source directory, because that will
2245     # break other packages using the cache if that directory is
2246     # removed, or if the value is a relative name.
2247     test -d ./--version && rmdir ./--version
2248     MKDIR_P="$ac_install_sh -d"
2249   fi
2250 fi
2251 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2252 echo "${ECHO_T}$MKDIR_P" >&6; }
2253
2254 mkdir_p="$MKDIR_P"
2255 case $mkdir_p in
2256   [\\/$]* | ?:[\\/]*) ;;
2257   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2258 esac
2259
2260 for ac_prog in gawk mawk nawk awk
2261 do
2262   # Extract the first word of "$ac_prog", so it can be a program name with args.
2263 set dummy $ac_prog; ac_word=$2
2264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2266 if test "${ac_cv_prog_AWK+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   if test -n "$AWK"; then
2270   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277   for ac_exec_ext in '' $ac_executable_extensions; do
2278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279     ac_cv_prog_AWK="$ac_prog"
2280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281     break 2
2282   fi
2283 done
2284 done
2285 IFS=$as_save_IFS
2286
2287 fi
2288 fi
2289 AWK=$ac_cv_prog_AWK
2290 if test -n "$AWK"; then
2291   { echo "$as_me:$LINENO: result: $AWK" >&5
2292 echo "${ECHO_T}$AWK" >&6; }
2293 else
2294   { echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6; }
2296 fi
2297
2298
2299   test -n "$AWK" && break
2300 done
2301
2302 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2303 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2304 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2305 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   cat >conftest.make <<\_ACEOF
2309 SHELL = /bin/sh
2310 all:
2311         @echo '@@@%%%=$(MAKE)=@@@%%%'
2312 _ACEOF
2313 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2314 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2315   *@@@%%%=?*=@@@%%%*)
2316     eval ac_cv_prog_make_${ac_make}_set=yes;;
2317   *)
2318     eval ac_cv_prog_make_${ac_make}_set=no;;
2319 esac
2320 rm -f conftest.make
2321 fi
2322 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2323   { echo "$as_me:$LINENO: result: yes" >&5
2324 echo "${ECHO_T}yes" >&6; }
2325   SET_MAKE=
2326 else
2327   { echo "$as_me:$LINENO: result: no" >&5
2328 echo "${ECHO_T}no" >&6; }
2329   SET_MAKE="MAKE=${MAKE-make}"
2330 fi
2331
2332 rm -rf .tst 2>/dev/null
2333 mkdir .tst 2>/dev/null
2334 if test -d .tst; then
2335   am__leading_dot=.
2336 else
2337   am__leading_dot=_
2338 fi
2339 rmdir .tst 2>/dev/null
2340
2341 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2342   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2343   # is not polluted with repeated "-I."
2344   am__isrc=' -I$(srcdir)'
2345   # test to see if srcdir already configured
2346   if test -f $srcdir/config.status; then
2347     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2348 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2349    { (exit 1); exit 1; }; }
2350   fi
2351 fi
2352
2353 # test whether we have cygpath
2354 if test -z "$CYGPATH_W"; then
2355   if (cygpath --version) >/dev/null 2>/dev/null; then
2356     CYGPATH_W='cygpath -w'
2357   else
2358     CYGPATH_W=echo
2359   fi
2360 fi
2361
2362
2363 # Define the identity of the package.
2364  PACKAGE='cyassl'
2365  VERSION='2.3.0'
2366
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE "$PACKAGE"
2370 _ACEOF
2371
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define VERSION "$VERSION"
2375 _ACEOF
2376
2377 # Some tools Automake needs.
2378
2379 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2380
2381
2382 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2383
2384
2385 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2386
2387
2388 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2389
2390
2391 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2392
2393 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2394
2395 # Installed binaries are usually stripped using `strip' when the user
2396 # run `make install-strip'.  However `strip' might not be the right
2397 # tool to use in cross-compilation environments, therefore Automake
2398 # will honor the `STRIP' environment variable to overrule this program.
2399 if test "$cross_compiling" != no; then
2400   if test -n "$ac_tool_prefix"; then
2401   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2402 set dummy ${ac_tool_prefix}strip; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_STRIP+set}" = set; then
2406   echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408   if test -n "$STRIP"; then
2409   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414   IFS=$as_save_IFS
2415   test -z "$as_dir" && as_dir=.
2416   for ac_exec_ext in '' $ac_executable_extensions; do
2417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420     break 2
2421   fi
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 STRIP=$ac_cv_prog_STRIP
2429 if test -n "$STRIP"; then
2430   { echo "$as_me:$LINENO: result: $STRIP" >&5
2431 echo "${ECHO_T}$STRIP" >&6; }
2432 else
2433   { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2435 fi
2436
2437
2438 fi
2439 if test -z "$ac_cv_prog_STRIP"; then
2440   ac_ct_STRIP=$STRIP
2441   # Extract the first word of "strip", so it can be a program name with args.
2442 set dummy strip; ac_word=$2
2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2445 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   if test -n "$ac_ct_STRIP"; then
2449   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456   for ac_exec_ext in '' $ac_executable_extensions; do
2457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458     ac_cv_prog_ac_ct_STRIP="strip"
2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461   fi
2462 done
2463 done
2464 IFS=$as_save_IFS
2465
2466 fi
2467 fi
2468 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2469 if test -n "$ac_ct_STRIP"; then
2470   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2471 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2472 else
2473   { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2475 fi
2476
2477   if test "x$ac_ct_STRIP" = x; then
2478     STRIP=":"
2479   else
2480     case $cross_compiling:$ac_tool_warned in
2481 yes:)
2482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet.  If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&5
2485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2486 whose name does not start with the host triplet.  If you think this
2487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2488 ac_tool_warned=yes ;;
2489 esac
2490     STRIP=$ac_ct_STRIP
2491   fi
2492 else
2493   STRIP="$ac_cv_prog_STRIP"
2494 fi
2495
2496 fi
2497 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2498
2499 # We need awk for the "check" target.  The system "awk" is bad on
2500 # some platforms.
2501 # Always define AMTAR for backward compatibility.
2502
2503 AMTAR=${AMTAR-"${am_missing_run}tar"}
2504
2505
2506 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2507 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2508 # Loop over all known methods to create a tar archive until one works.
2509 _am_tools='gnutar plaintar pax cpio none'
2510 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2511 # Do not fold the above two line into one, because Tru64 sh and
2512 # Solaris sh will not grok spaces in the rhs of `-'.
2513 for _am_tool in $_am_tools
2514 do
2515   case $_am_tool in
2516   gnutar)
2517     for _am_tar in tar gnutar gtar;
2518     do
2519       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2520    ($_am_tar --version) >&5 2>&5
2521    ac_status=$?
2522    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523    (exit $ac_status); } && break
2524     done
2525     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2526     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2527     am__untar="$_am_tar -xf -"
2528     ;;
2529   plaintar)
2530     # Must skip GNU tar: if it does not support --format= it doesn't create
2531     # ustar tarball either.
2532     (tar --version) >/dev/null 2>&1 && continue
2533     am__tar='tar chf - "$$tardir"'
2534     am__tar_='tar chf - "$tardir"'
2535     am__untar='tar xf -'
2536     ;;
2537   pax)
2538     am__tar='pax -L -x ustar -w "$$tardir"'
2539     am__tar_='pax -L -x ustar -w "$tardir"'
2540     am__untar='pax -r'
2541     ;;
2542   cpio)
2543     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2544     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2545     am__untar='cpio -i -H ustar -d'
2546     ;;
2547   none)
2548     am__tar=false
2549     am__tar_=false
2550     am__untar=false
2551     ;;
2552   esac
2553
2554   # If the value was cached, stop now.  We just wanted to have am__tar
2555   # and am__untar set.
2556   test -n "${am_cv_prog_tar_ustar}" && break
2557
2558   # tar/untar a dummy directory, and stop if the command works
2559   rm -rf conftest.dir
2560   mkdir conftest.dir
2561   echo GrepMe > conftest.dir/file
2562   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2563    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2564    ac_status=$?
2565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566    (exit $ac_status); }
2567   rm -rf conftest.dir
2568   if test -s conftest.tar; then
2569     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2570    ($am__untar <conftest.tar) >&5 2>&5
2571    ac_status=$?
2572    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573    (exit $ac_status); }
2574     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2575   fi
2576 done
2577 rm -rf conftest.dir
2578
2579 if test "${am_cv_prog_tar_ustar+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   am_cv_prog_tar_ustar=$_am_tool
2583 fi
2584
2585 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2586 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2587
2588
2589
2590
2591
2592
2593 { echo "$as_me:$LINENO: checking host system type" >&5
2594 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2595 if test "${ac_cv_host+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   if test "x$host_alias" = x; then
2599   ac_cv_host=$ac_cv_build
2600 else
2601   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2602     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2603 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2604    { (exit 1); exit 1; }; }
2605 fi
2606
2607 fi
2608 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2609 echo "${ECHO_T}$ac_cv_host" >&6; }
2610 case $ac_cv_host in
2611 *-*-*) ;;
2612 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2613 echo "$as_me: error: invalid value of canonical host" >&2;}
2614    { (exit 1); exit 1; }; };;
2615 esac
2616 host=$ac_cv_host
2617 ac_save_IFS=$IFS; IFS='-'
2618 set x $ac_cv_host
2619 shift
2620 host_cpu=$1
2621 host_vendor=$2
2622 shift; shift
2623 # Remember, the first character of IFS is used to create $*,
2624 # except with old shells:
2625 host_os=$*
2626 IFS=$ac_save_IFS
2627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2628
2629
2630 # Make sure we can run config.sub.
2631 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2632   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2633 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2634    { (exit 1); exit 1; }; }
2635
2636 { echo "$as_me:$LINENO: checking build system type" >&5
2637 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2638 if test "${ac_cv_build+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   ac_build_alias=$build_alias
2642 test "x$ac_build_alias" = x &&
2643   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2644 test "x$ac_build_alias" = x &&
2645   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2646 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2647    { (exit 1); exit 1; }; }
2648 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2649   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2650 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2651    { (exit 1); exit 1; }; }
2652
2653 fi
2654 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2655 echo "${ECHO_T}$ac_cv_build" >&6; }
2656 case $ac_cv_build in
2657 *-*-*) ;;
2658 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2659 echo "$as_me: error: invalid value of canonical build" >&2;}
2660    { (exit 1); exit 1; }; };;
2661 esac
2662 build=$ac_cv_build
2663 ac_save_IFS=$IFS; IFS='-'
2664 set x $ac_cv_build
2665 shift
2666 build_cpu=$1
2667 build_vendor=$2
2668 shift; shift
2669 # Remember, the first character of IFS is used to create $*,
2670 # except with old shells:
2671 build_os=$*
2672 IFS=$ac_save_IFS
2673 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2674
2675
2676
2677
2678
2679
2680
2681 ac_config_headers="$ac_config_headers config.h:config.in"
2682
2683
2684 #shared library versioning
2685 CYASSL_LIBRARY_VERSION=3:1:0
2686 #                      | | |
2687 #               +------+ | +---+
2688 #               |        |     |
2689 #              current:revision:age
2690 #               |        |     |
2691 #               |        |     +- increment if interfaces have been added
2692 #               |        |        set to zero if interfaces have been removed
2693 #                        |        or changed
2694 #               |        +- increment if source code has changed
2695 #               |           set to zero if current is incremented
2696 #               +- increment if interfaces have been added, removed or changed
2697
2698
2699 # Make sure configure doesn't add to CFLAGS
2700 CFLAGS="$CFLAGS $C_EXTRA_FLAGS"
2701
2702 case `pwd` in
2703   *\ * | *\     *)
2704     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2705 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2706 esac
2707
2708
2709
2710 macro_version='2.2.10'
2711 macro_revision='1.3175'
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725 ltmain="$ac_aux_dir/ltmain.sh"
2726
2727 # Backslashify metacharacters that are still active within
2728 # double-quoted strings.
2729 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2730
2731 # Same as above, but do not quote variable references.
2732 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2733
2734 # Sed substitution to delay expansion of an escaped shell variable in a
2735 # double_quote_subst'ed string.
2736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2737
2738 # Sed substitution to delay expansion of an escaped single quote.
2739 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2740
2741 # Sed substitution to avoid accidental globbing in evaled expressions
2742 no_glob_subst='s/\*/\\\*/g'
2743
2744 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2746 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2747
2748 { echo "$as_me:$LINENO: checking how to print strings" >&5
2749 echo $ECHO_N "checking how to print strings... $ECHO_C" >&6; }
2750 # Test print first, because it will be a builtin if present.
2751 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
2752    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2753   ECHO='print -r --'
2754 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2755   ECHO='printf %s\n'
2756 else
2757   # Use this function as a fallback that always works.
2758   func_fallback_echo ()
2759   {
2760     eval 'cat <<_LTECHO_EOF
2761 $1
2762 _LTECHO_EOF'
2763   }
2764   ECHO='func_fallback_echo'
2765 fi
2766
2767 # func_echo_all arg...
2768 # Invoke $ECHO with all args, space-separated.
2769 func_echo_all ()
2770 {
2771     $ECHO ""
2772 }
2773
2774 case "$ECHO" in
2775   printf*) { echo "$as_me:$LINENO: result: printf" >&5
2776 echo "${ECHO_T}printf" >&6; } ;;
2777   print*) { echo "$as_me:$LINENO: result: print -r" >&5
2778 echo "${ECHO_T}print -r" >&6; } ;;
2779   *) { echo "$as_me:$LINENO: result: cat" >&5
2780 echo "${ECHO_T}cat" >&6; } ;;
2781 esac
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796 DEPDIR="${am__leading_dot}deps"
2797
2798 ac_config_commands="$ac_config_commands depfiles"
2799
2800
2801 am_make=${MAKE-make}
2802 cat > confinc << 'END'
2803 am__doit:
2804         @echo done
2805 .PHONY: am__doit
2806 END
2807 # If we don't find an include directive, just comment out the code.
2808 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2809 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2810 am__include="#"
2811 am__quote=
2812 _am_result=none
2813 # First try GNU make style include.
2814 echo "include confinc" > confmf
2815 # We grep out `Entering directory' and `Leaving directory'
2816 # messages which can occur if `w' ends up in MAKEFLAGS.
2817 # In particular we don't look at `^make:' because GNU make might
2818 # be invoked under some other name (usually "gmake"), in which
2819 # case it prints its new name instead of `make'.
2820 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2821    am__include=include
2822    am__quote=
2823    _am_result=GNU
2824 fi
2825 # Now try BSD make style include.
2826 if test "$am__include" = "#"; then
2827    echo '.include "confinc"' > confmf
2828    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2829       am__include=.include
2830       am__quote="\""
2831       _am_result=BSD
2832    fi
2833 fi
2834
2835
2836 { echo "$as_me:$LINENO: result: $_am_result" >&5
2837 echo "${ECHO_T}$_am_result" >&6; }
2838 rm -f confinc confmf
2839
2840 # Check whether --enable-dependency-tracking was given.
2841 if test "${enable_dependency_tracking+set}" = set; then
2842   enableval=$enable_dependency_tracking;
2843 fi
2844
2845 if test "x$enable_dependency_tracking" != xno; then
2846   am_depcomp="$ac_aux_dir/depcomp"
2847   AMDEPBACKSLASH='\'
2848 fi
2849  if test "x$enable_dependency_tracking" != xno; then
2850   AMDEP_TRUE=
2851   AMDEP_FALSE='#'
2852 else
2853   AMDEP_TRUE='#'
2854   AMDEP_FALSE=
2855 fi
2856
2857
2858 ac_ext=c
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 if test -n "$ac_tool_prefix"; then
2864   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then
2869   echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871   if test -n "$CC"; then
2872   ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877   IFS=$as_save_IFS
2878   test -z "$as_dir" && as_dir=.
2879   for ac_exec_ext in '' $ac_executable_extensions; do
2880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883     break 2
2884   fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893   { echo "$as_me:$LINENO: result: $CC" >&5
2894 echo "${ECHO_T}$CC" >&6; }
2895 else
2896   { echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6; }
2898 fi
2899
2900
2901 fi
2902 if test -z "$ac_cv_prog_CC"; then
2903   ac_ct_CC=$CC
2904   # Extract the first word of "gcc", so it can be a program name with args.
2905 set dummy gcc; ac_word=$2
2906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911   if test -n "$ac_ct_CC"; then
2912   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917   IFS=$as_save_IFS
2918   test -z "$as_dir" && as_dir=.
2919   for ac_exec_ext in '' $ac_executable_extensions; do
2920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921     ac_cv_prog_ac_ct_CC="gcc"
2922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923     break 2
2924   fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2932 if test -n "$ac_ct_CC"; then
2933   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2934 echo "${ECHO_T}$ac_ct_CC" >&6; }
2935 else
2936   { echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6; }
2938 fi
2939
2940   if test "x$ac_ct_CC" = x; then
2941     CC=""
2942   else
2943     case $cross_compiling:$ac_tool_warned in
2944 yes:)
2945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2946 whose name does not start with the host triplet.  If you think this
2947 configuration is useful to you, please write to autoconf@gnu.org." >&5
2948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2949 whose name does not start with the host triplet.  If you think this
2950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953     CC=$ac_ct_CC
2954   fi
2955 else
2956   CC="$ac_cv_prog_CC"
2957 fi
2958
2959 if test -z "$CC"; then
2960           if test -n "$ac_tool_prefix"; then
2961     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}cc; ac_word=$2
2963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then
2966   echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968   if test -n "$CC"; then
2969   ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974   IFS=$as_save_IFS
2975   test -z "$as_dir" && as_dir=.
2976   for ac_exec_ext in '' $ac_executable_extensions; do
2977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978     ac_cv_prog_CC="${ac_tool_prefix}cc"
2979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980     break 2
2981   fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990   { echo "$as_me:$LINENO: result: $CC" >&5
2991 echo "${ECHO_T}$CC" >&6; }
2992 else
2993   { echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6; }
2995 fi
2996
2997
2998   fi
2999 fi
3000 if test -z "$CC"; then
3001   # Extract the first word of "cc", so it can be a program name with args.
3002 set dummy cc; ac_word=$2
3003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   if test -n "$CC"; then
3009   ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011   ac_prog_rejected=no
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017   for ac_exec_ext in '' $ac_executable_extensions; do
3018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020        ac_prog_rejected=yes
3021        continue
3022      fi
3023     ac_cv_prog_CC="cc"
3024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 if test $ac_prog_rejected = yes; then
3032   # We found a bogon in the path, so make sure we never use it.
3033   set dummy $ac_cv_prog_CC
3034   shift
3035   if test $# != 0; then
3036     # We chose a different compiler from the bogus one.
3037     # However, it has the same basename, so the bogon will be chosen
3038     # first if we set CC to just the basename; use the full file name.
3039     shift
3040     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3041   fi
3042 fi
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047   { echo "$as_me:$LINENO: result: $CC" >&5
3048 echo "${ECHO_T}$CC" >&6; }
3049 else
3050   { echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6; }
3052 fi
3053
3054
3055 fi
3056 if test -z "$CC"; then
3057   if test -n "$ac_tool_prefix"; then
3058   for ac_prog in cl.exe
3059   do
3060     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_CC+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   if test -n "$CC"; then
3068   ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075   for ac_exec_ext in '' $ac_executable_extensions; do
3076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089   { echo "$as_me:$LINENO: result: $CC" >&5
3090 echo "${ECHO_T}$CC" >&6; }
3091 else
3092   { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3094 fi
3095
3096
3097     test -n "$CC" && break
3098   done
3099 fi
3100 if test -z "$CC"; then
3101   ac_ct_CC=$CC
3102   for ac_prog in cl.exe
3103 do
3104   # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -n "$ac_ct_CC"; then
3112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119   for ac_exec_ext in '' $ac_executable_extensions; do
3120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121     ac_cv_prog_ac_ct_CC="$ac_prog"
3122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3134 echo "${ECHO_T}$ac_ct_CC" >&6; }
3135 else
3136   { echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6; }
3138 fi
3139
3140
3141   test -n "$ac_ct_CC" && break
3142 done
3143
3144   if test "x$ac_ct_CC" = x; then
3145     CC=""
3146   else
3147     case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet.  If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&5
3152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3153 whose name does not start with the host triplet.  If you think this
3154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157     CC=$ac_ct_CC
3158   fi
3159 fi
3160
3161 fi
3162
3163
3164 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: no acceptable C compiler found in \$PATH
3167 See \`config.log' for more details." >&2;}
3168    { (exit 1); exit 1; }; }
3169
3170 # Provide some information about the compiler.
3171 echo "$as_me:$LINENO: checking for C compiler version" >&5
3172 ac_compiler=`set X $ac_compile; echo $2`
3173 { (ac_try="$ac_compiler --version >&5"
3174 case "(($ac_try" in
3175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176   *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179   (eval "$ac_compiler --version >&5") 2>&5
3180   ac_status=$?
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); }
3183 { (ac_try="$ac_compiler -v >&5"
3184 case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189   (eval "$ac_compiler -v >&5") 2>&5
3190   ac_status=$?
3191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192   (exit $ac_status); }
3193 { (ac_try="$ac_compiler -V >&5"
3194 case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199   (eval "$ac_compiler -V >&5") 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }
3203
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 ac_clean_files_save=$ac_clean_files
3220 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3221 # Try to create an executable without -o first, disregard a.out.
3222 # It will help us diagnose broken compilers, and finding out an intuition
3223 # of exeext.
3224 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3225 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3226 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3227 #
3228 # List of possible output files, starting from the most likely.
3229 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3230 # only as a last resort.  b.out is created by i960 compilers.
3231 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3232 #
3233 # The IRIX 6 linker writes into existing files which may not be
3234 # executable, retaining their permissions.  Remove them first so a
3235 # subsequent execution test works.
3236 ac_rmfiles=
3237 for ac_file in $ac_files
3238 do
3239   case $ac_file in
3240     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3241     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242   esac
3243 done
3244 rm -f $ac_rmfiles
3245
3246 if { (ac_try="$ac_link_default"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252   (eval "$ac_link_default") 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; then
3256   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3260 # Autoconf.
3261 for ac_file in $ac_files ''
3262 do
3263   test -f "$ac_file" || continue
3264   case $ac_file in
3265     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3266         ;;
3267     [ab].out )
3268         # We found the default executable, but exeext='' is most
3269         # certainly right.
3270         break;;
3271     *.* )
3272         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3273         then :; else
3274            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275         fi
3276         # We set ac_cv_exeext here because the later test for it is not
3277         # safe: cross compilers may not add the suffix if given an `-o'
3278         # argument, so we may need to know it at that point already.
3279         # Even if this section looks crufty: it has the advantage of
3280         # actually working.
3281         break;;
3282     * )
3283         break;;
3284   esac
3285 done
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
3288 else
3289   ac_file=''
3290 fi
3291
3292 { echo "$as_me:$LINENO: result: $ac_file" >&5
3293 echo "${ECHO_T}$ac_file" >&6; }
3294 if test -z "$ac_file"; then
3295   echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: C compiler cannot create executables
3301 See \`config.log' for more details." >&2;}
3302    { (exit 77); exit 77; }; }
3303 fi
3304
3305 ac_exeext=$ac_cv_exeext
3306
3307 # Check that the compiler produces executables we can run.  If not, either
3308 # the compiler is broken, or we cross compile.
3309 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3310 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3312 # If not cross compiling, check that we can run a simple program.
3313 if test "$cross_compiling" != yes; then
3314   if { ac_try='./$ac_file'
3315   { (case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320   (eval "$ac_try") 2>&5
3321   ac_status=$?
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); }; }; then
3324     cross_compiling=no
3325   else
3326     if test "$cross_compiling" = maybe; then
3327         cross_compiling=yes
3328     else
3329         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3330 If you meant to cross compile, use \`--host'.
3331 See \`config.log' for more details." >&5
3332 echo "$as_me: error: cannot run C compiled programs.
3333 If you meant to cross compile, use \`--host'.
3334 See \`config.log' for more details." >&2;}
3335    { (exit 1); exit 1; }; }
3336     fi
3337   fi
3338 fi
3339 { echo "$as_me:$LINENO: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6; }
3341
3342 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 # Check that the compiler produces executables we can run.  If not, either
3345 # the compiler is broken, or we cross compile.
3346 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3347 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3348 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3349 echo "${ECHO_T}$cross_compiling" >&6; }
3350
3351 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3352 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3353 if { (ac_try="$ac_link"
3354 case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359   (eval "$ac_link") 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); }; then
3363   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe'), while it won't with
3366 # `rm'.
3367 for ac_file in conftest.exe conftest conftest.*; do
3368   test -f "$ac_file" || continue
3369   case $ac_file in
3370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3371     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372           break;;
3373     * ) break;;
3374   esac
3375 done
3376 else
3377   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3378 See \`config.log' for more details." >&5
3379 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details." >&2;}
3381    { (exit 1); exit 1; }; }
3382 fi
3383
3384 rm -f conftest$ac_cv_exeext
3385 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3386 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3387
3388 rm -f conftest.$ac_ext
3389 EXEEXT=$ac_cv_exeext
3390 ac_exeext=$EXEEXT
3391 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3392 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3393 if test "${ac_cv_objext+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h.  */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h.  */
3402
3403 int
3404 main ()
3405 {
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 rm -f conftest.o conftest.obj
3412 if { (ac_try="$ac_compile"
3413 case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418   (eval "$ac_compile") 2>&5
3419   ac_status=$?
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); }; then
3422   for ac_file in conftest.o conftest.obj conftest.*; do
3423   test -f "$ac_file" || continue;
3424   case $ac_file in
3425     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3426     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427        break;;
3428   esac
3429 done
3430 else
3431   echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3435 See \`config.log' for more details." >&5
3436 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3437 See \`config.log' for more details." >&2;}
3438    { (exit 1); exit 1; }; }
3439 fi
3440
3441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3442 fi
3443 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3444 echo "${ECHO_T}$ac_cv_objext" >&6; }
3445 OBJEXT=$ac_cv_objext
3446 ac_objext=$OBJEXT
3447 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3449 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h.  */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h.  */
3458
3459 int
3460 main ()
3461 {
3462 #ifndef __GNUC__
3463        choke me
3464 #endif
3465
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_compile") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } && {
3484          test -z "$ac_c_werror_flag" ||
3485          test ! -s conftest.err
3486        } && test -s conftest.$ac_objext; then
3487   ac_compiler_gnu=yes
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492         ac_compiler_gnu=no
3493 fi
3494
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497
3498 fi
3499 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3500 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3501 GCC=`test $ac_compiler_gnu = yes && echo yes`
3502 ac_test_CFLAGS=${CFLAGS+set}
3503 ac_save_CFLAGS=$CFLAGS
3504 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3506 if test "${ac_cv_prog_cc_g+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   ac_save_c_werror_flag=$ac_c_werror_flag
3510    ac_c_werror_flag=yes
3511    ac_cv_prog_cc_g=no
3512    CFLAGS="-g"
3513    cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h.  */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h.  */
3519
3520 int
3521 main ()
3522 {
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535   (eval "$ac_compile") 2>conftest.er1
3536   ac_status=$?
3537   grep -v '^ *+' conftest.er1 >conftest.err
3538   rm -f conftest.er1
3539   cat conftest.err >&5
3540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } && {
3542          test -z "$ac_c_werror_flag" ||
3543          test ! -s conftest.err
3544        } && test -s conftest.$ac_objext; then
3545   ac_cv_prog_cc_g=yes
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550         CFLAGS=""
3551       cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573   (eval "$ac_compile") 2>conftest.er1
3574   ac_status=$?
3575   grep -v '^ *+' conftest.er1 >conftest.err
3576   rm -f conftest.er1
3577   cat conftest.err >&5
3578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579   (exit $ac_status); } && {
3580          test -z "$ac_c_werror_flag" ||
3581          test ! -s conftest.err
3582        } && test -s conftest.$ac_objext; then
3583   :
3584 else
3585   echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588         ac_c_werror_flag=$ac_save_c_werror_flag
3589          CFLAGS="-g"
3590          cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h.  */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h.  */
3596
3597 int
3598 main ()
3599 {
3600
3601   ;
3602   return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612   (eval "$ac_compile") 2>conftest.er1
3613   ac_status=$?
3614   grep -v '^ *+' conftest.er1 >conftest.err
3615   rm -f conftest.er1
3616   cat conftest.err >&5
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); } && {
3619          test -z "$ac_c_werror_flag" ||
3620          test ! -s conftest.err
3621        } && test -s conftest.$ac_objext; then
3622   ac_cv_prog_cc_g=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627
3628 fi
3629
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 fi
3632
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637    ac_c_werror_flag=$ac_save_c_werror_flag
3638 fi
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642   CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644   if test "$GCC" = yes; then
3645     CFLAGS="-g -O2"
3646   else
3647     CFLAGS="-g"
3648   fi
3649 else
3650   if test "$GCC" = yes; then
3651     CFLAGS="-O2"
3652   else
3653     CFLAGS=
3654   fi
3655 fi
3656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_cc_c89+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   ac_cv_prog_cc_c89=no
3662 ac_save_CC=$CC
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #include <stdarg.h>
3670 #include <stdio.h>
3671 #include <sys/types.h>
3672 #include <sys/stat.h>
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3674 struct buf { int x; };
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676 static char *e (p, i)
3677      char **p;
3678      int i;
3679 {
3680   return p[i];
3681 }
3682 static char *f (char * (*g) (char **, int), char **p, ...)
3683 {
3684   char *s;
3685   va_list v;
3686   va_start (v,p);
3687   s = g (p, va_arg (v,int));
3688   va_end (v);
3689   return s;
3690 }
3691
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3693    function prototypes and stuff, but not '\xHH' hex character constants.
3694    These don't provoke an error unfortunately, instead are silently treated
3695    as 'x'.  The following induces an error, until -std is added to get
3696    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3697    array size at least.  It's necessary to write '\x00'==0 to get something
3698    that's true only with -std.  */
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700
3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3702    inside strings and character constants.  */
3703 #define FOO(x) 'x'
3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3705
3706 int test (int i, double x);
3707 struct s1 {int (*f) (int a);};
3708 struct s2 {int (*f) (double a);};
3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3710 int argc;
3711 char **argv;
3712 int
3713 main ()
3714 {
3715 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3716   ;
3717   return 0;
3718 }
3719 _ACEOF
3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3721         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3722 do
3723   CC="$ac_save_CC $ac_arg"
3724   rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3726 case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731   (eval "$ac_compile") 2>conftest.er1
3732   ac_status=$?
3733   grep -v '^ *+' conftest.er1 >conftest.err
3734   rm -f conftest.er1
3735   cat conftest.err >&5
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); } && {
3738          test -z "$ac_c_werror_flag" ||
3739          test ! -s conftest.err
3740        } && test -s conftest.$ac_objext; then
3741   ac_cv_prog_cc_c89=$ac_arg
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746
3747 fi
3748
3749 rm -f core conftest.err conftest.$ac_objext
3750   test "x$ac_cv_prog_cc_c89" != "xno" && break
3751 done
3752 rm -f conftest.$ac_ext
3753 CC=$ac_save_CC
3754
3755 fi
3756 # AC_CACHE_VAL
3757 case "x$ac_cv_prog_cc_c89" in
3758   x)
3759     { echo "$as_me:$LINENO: result: none needed" >&5
3760 echo "${ECHO_T}none needed" >&6; } ;;
3761   xno)
3762     { echo "$as_me:$LINENO: result: unsupported" >&5
3763 echo "${ECHO_T}unsupported" >&6; } ;;
3764   *)
3765     CC="$CC $ac_cv_prog_cc_c89"
3766     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3767 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3768 esac
3769
3770
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776
3777 depcc="$CC"   am_compiler_list=
3778
3779 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3780 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3781 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3785   # We make a subdir and do the tests there.  Otherwise we can end up
3786   # making bogus files that we don't know about and never remove.  For
3787   # instance it was reported that on HP-UX the gcc test will end up
3788   # making a dummy file named `D' -- because `-MD' means `put the output
3789   # in D'.
3790   mkdir conftest.dir
3791   # Copy depcomp to subdir because otherwise we won't find it if we're
3792   # using a relative directory.
3793   cp "$am_depcomp" conftest.dir
3794   cd conftest.dir
3795   # We will build objects and dependencies in a subdirectory because
3796   # it helps to detect inapplicable dependency modes.  For instance
3797   # both Tru64's cc and ICC support -MD to output dependencies as a
3798   # side effect of compilation, but ICC will put the dependencies in
3799   # the current directory while Tru64 will put them in the object
3800   # directory.
3801   mkdir sub
3802
3803   am_cv_CC_dependencies_compiler_type=none
3804   if test "$am_compiler_list" = ""; then
3805      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3806   fi
3807   for depmode in $am_compiler_list; do
3808     # Setup a source with many dependencies, because some compilers
3809     # like to wrap large dependency lists on column 80 (with \), and
3810     # we should not choose a depcomp mode which is confused by this.
3811     #
3812     # We need to recreate these files for each test, as the compiler may
3813     # overwrite some of them when testing with obscure command lines.
3814     # This happens at least with the AIX C compiler.
3815     : > sub/conftest.c
3816     for i in 1 2 3 4 5 6; do
3817       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3818       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3819       # Solaris 8's {/usr,}/bin/sh.
3820       touch sub/conftst$i.h
3821     done
3822     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3823
3824     case $depmode in
3825     nosideeffect)
3826       # after this tag, mechanisms are not by side-effect, so they'll
3827       # only be used when explicitly requested
3828       if test "x$enable_dependency_tracking" = xyes; then
3829         continue
3830       else
3831         break
3832       fi
3833       ;;
3834     none) break ;;
3835     esac
3836     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3837     # mode.  It turns out that the SunPro C++ compiler does not properly
3838     # handle `-M -o', and we need to detect this.
3839     if depmode=$depmode \
3840        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3841        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3842        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3843          >/dev/null 2>conftest.err &&
3844        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3845        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3846        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3847        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3848       # icc doesn't choke on unknown options, it will just issue warnings
3849       # or remarks (even with -Werror).  So we grep stderr for any message
3850       # that says an option was ignored or not supported.
3851       # When given -MP, icc 7.0 and 7.1 complain thusly:
3852       #   icc: Command line warning: ignoring option '-M'; no argument required
3853       # The diagnosis changed in icc 8.0:
3854       #   icc: Command line remark: option '-MP' not supported
3855       if (grep 'ignoring option' conftest.err ||
3856           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3857         am_cv_CC_dependencies_compiler_type=$depmode
3858         break
3859       fi
3860     fi
3861   done
3862
3863   cd ..
3864   rm -rf conftest.dir
3865 else
3866   am_cv_CC_dependencies_compiler_type=none
3867 fi
3868
3869 fi
3870 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3871 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3873
3874  if
3875   test "x$enable_dependency_tracking" != xno \
3876   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3877   am__fastdepCC_TRUE=
3878   am__fastdepCC_FALSE='#'
3879 else
3880   am__fastdepCC_TRUE='#'
3881   am__fastdepCC_FALSE=
3882 fi
3883
3884
3885 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3886 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3887 if test "${ac_cv_path_SED+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3891      for ac_i in 1 2 3 4 5 6 7; do
3892        ac_script="$ac_script$as_nl$ac_script"
3893      done
3894      echo "$ac_script" | sed 99q >conftest.sed
3895      $as_unset ac_script || ac_script=
3896      # Extract the first word of "sed gsed" to use in msg output
3897 if test -z "$SED"; then
3898 set dummy sed gsed; ac_prog_name=$2
3899 if test "${ac_cv_path_SED+set}" = set; then
3900   echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902   ac_path_SED_found=false
3903 # Loop through the user's path and test for each of PROGNAME-LIST
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907   IFS=$as_save_IFS
3908   test -z "$as_dir" && as_dir=.
3909   for ac_prog in sed gsed; do
3910   for ac_exec_ext in '' $ac_executable_extensions; do
3911     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3912     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3913     # Check for GNU ac_path_SED and select it if it is found.
3914   # Check for GNU $ac_path_SED
3915 case `"$ac_path_SED" --version 2>&1` in
3916 *GNU*)
3917   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3918 *)
3919   ac_count=0
3920   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3921   while :
3922   do
3923     cat "conftest.in" "conftest.in" >"conftest.tmp"
3924     mv "conftest.tmp" "conftest.in"
3925     cp "conftest.in" "conftest.nl"
3926     echo '' >> "conftest.nl"
3927     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3928     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3929     ac_count=`expr $ac_count + 1`
3930     if test $ac_count -gt ${ac_path_SED_max-0}; then
3931       # Best one so far, save it but keep looking for a better one
3932       ac_cv_path_SED="$ac_path_SED"
3933       ac_path_SED_max=$ac_count
3934     fi
3935     # 10*(2^10) chars as input seems more than enough
3936     test $ac_count -gt 10 && break
3937   done
3938   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3939 esac
3940
3941
3942     $ac_path_SED_found && break 3
3943   done
3944 done
3945
3946 done
3947 IFS=$as_save_IFS
3948
3949
3950 fi
3951
3952 SED="$ac_cv_path_SED"
3953 if test -z "$SED"; then
3954   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3955 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3956    { (exit 1); exit 1; }; }
3957 fi
3958
3959 else
3960   ac_cv_path_SED=$SED
3961 fi
3962
3963 fi
3964 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3965 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3966  SED="$ac_cv_path_SED"
3967   rm -f conftest.sed
3968
3969 test -z "$SED" && SED=sed
3970 Xsed="$SED -e 1s/^X//"
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3983 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   # Extract the first word of "grep ggrep" to use in msg output
3988 if test -z "$GREP"; then
3989 set dummy grep ggrep; ac_prog_name=$2
3990 if test "${ac_cv_path_GREP+set}" = set; then
3991   echo $ECHO_N "(cached) $ECHO_C" >&6
3992 else
3993   ac_path_GREP_found=false
3994 # Loop through the user's path and test for each of PROGNAME-LIST
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000   for ac_prog in grep ggrep; do
4001   for ac_exec_ext in '' $ac_executable_extensions; do
4002     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4003     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4004     # Check for GNU ac_path_GREP and select it if it is found.
4005   # Check for GNU $ac_path_GREP
4006 case `"$ac_path_GREP" --version 2>&1` in
4007 *GNU*)
4008   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4009 *)
4010   ac_count=0
4011   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4012   while :
4013   do
4014     cat "conftest.in" "conftest.in" >"conftest.tmp"
4015     mv "conftest.tmp" "conftest.in"
4016     cp "conftest.in" "conftest.nl"
4017     echo 'GREP' >> "conftest.nl"
4018     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4019     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4020     ac_count=`expr $ac_count + 1`
4021     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4022       # Best one so far, save it but keep looking for a better one
4023       ac_cv_path_GREP="$ac_path_GREP"
4024       ac_path_GREP_max=$ac_count
4025     fi
4026     # 10*(2^10) chars as input seems more than enough
4027     test $ac_count -gt 10 && break
4028   done
4029   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4030 esac
4031
4032
4033     $ac_path_GREP_found && break 3
4034   done
4035 done
4036
4037 done
4038 IFS=$as_save_IFS
4039
4040
4041 fi
4042
4043 GREP="$ac_cv_path_GREP"
4044 if test -z "$GREP"; then
4045   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4046 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4047    { (exit 1); exit 1; }; }
4048 fi
4049
4050 else
4051   ac_cv_path_GREP=$GREP
4052 fi
4053
4054
4055 fi
4056 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4057 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4058  GREP="$ac_cv_path_GREP"
4059
4060
4061 { echo "$as_me:$LINENO: checking for egrep" >&5
4062 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4063 if test "${ac_cv_path_EGREP+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4067    then ac_cv_path_EGREP="$GREP -E"
4068    else
4069      # Extract the first word of "egrep" to use in msg output
4070 if test -z "$EGREP"; then
4071 set dummy egrep; ac_prog_name=$2
4072 if test "${ac_cv_path_EGREP+set}" = set; then
4073   echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075   ac_path_EGREP_found=false
4076 # Loop through the user's path and test for each of PROGNAME-LIST
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079 do
4080   IFS=$as_save_IFS
4081   test -z "$as_dir" && as_dir=.
4082   for ac_prog in egrep; do
4083   for ac_exec_ext in '' $ac_executable_extensions; do
4084     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4085     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4086     # Check for GNU ac_path_EGREP and select it if it is found.
4087   # Check for GNU $ac_path_EGREP
4088 case `"$ac_path_EGREP" --version 2>&1` in
4089 *GNU*)
4090   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4091 *)
4092   ac_count=0
4093   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4094   while :
4095   do
4096     cat "conftest.in" "conftest.in" >"conftest.tmp"
4097     mv "conftest.tmp" "conftest.in"
4098     cp "conftest.in" "conftest.nl"
4099     echo 'EGREP' >> "conftest.nl"
4100     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4102     ac_count=`expr $ac_count + 1`
4103     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4104       # Best one so far, save it but keep looking for a better one
4105       ac_cv_path_EGREP="$ac_path_EGREP"
4106       ac_path_EGREP_max=$ac_count
4107     fi
4108     # 10*(2^10) chars as input seems more than enough
4109     test $ac_count -gt 10 && break
4110   done
4111   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112 esac
4113
4114
4115     $ac_path_EGREP_found && break 3
4116   done
4117 done
4118
4119 done
4120 IFS=$as_save_IFS
4121
4122
4123 fi
4124
4125 EGREP="$ac_cv_path_EGREP"
4126 if test -z "$EGREP"; then
4127   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4128 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4129    { (exit 1); exit 1; }; }
4130 fi
4131
4132 else
4133   ac_cv_path_EGREP=$EGREP
4134 fi
4135
4136
4137    fi
4138 fi
4139 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4140 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4141  EGREP="$ac_cv_path_EGREP"
4142
4143
4144 { echo "$as_me:$LINENO: checking for fgrep" >&5
4145 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4146 if test "${ac_cv_path_FGREP+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4150    then ac_cv_path_FGREP="$GREP -F"
4151    else
4152      # Extract the first word of "fgrep" to use in msg output
4153 if test -z "$FGREP"; then
4154 set dummy fgrep; ac_prog_name=$2
4155 if test "${ac_cv_path_FGREP+set}" = set; then
4156   echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158   ac_path_FGREP_found=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165   for ac_prog in fgrep; do
4166   for ac_exec_ext in '' $ac_executable_extensions; do
4167     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4168     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4169     # Check for GNU ac_path_FGREP and select it if it is found.
4170   # Check for GNU $ac_path_FGREP
4171 case `"$ac_path_FGREP" --version 2>&1` in
4172 *GNU*)
4173   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4174 *)
4175   ac_count=0
4176   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4177   while :
4178   do
4179     cat "conftest.in" "conftest.in" >"conftest.tmp"
4180     mv "conftest.tmp" "conftest.in"
4181     cp "conftest.in" "conftest.nl"
4182     echo 'FGREP' >> "conftest.nl"
4183     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185     ac_count=`expr $ac_count + 1`
4186     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4187       # Best one so far, save it but keep looking for a better one
4188       ac_cv_path_FGREP="$ac_path_FGREP"
4189       ac_path_FGREP_max=$ac_count
4190     fi
4191     # 10*(2^10) chars as input seems more than enough
4192     test $ac_count -gt 10 && break
4193   done
4194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197
4198     $ac_path_FGREP_found && break 3
4199   done
4200 done
4201
4202 done
4203 IFS=$as_save_IFS
4204
4205
4206 fi
4207
4208 FGREP="$ac_cv_path_FGREP"
4209 if test -z "$FGREP"; then
4210   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4211 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4212    { (exit 1); exit 1; }; }
4213 fi
4214
4215 else
4216   ac_cv_path_FGREP=$FGREP
4217 fi
4218
4219
4220    fi
4221 fi
4222 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4223 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4224  FGREP="$ac_cv_path_FGREP"
4225
4226
4227 test -z "$GREP" && GREP=grep
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247 # Check whether --with-gnu-ld was given.
4248 if test "${with_gnu_ld+set}" = set; then
4249   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4250 else
4251   with_gnu_ld=no
4252 fi
4253
4254 ac_prog=ld
4255 if test "$GCC" = yes; then
4256   # Check if gcc -print-prog-name=ld gives a path.
4257   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4258 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4259   case $host in
4260   *-*-mingw*)
4261     # gcc leaves a trailing carriage return which upsets mingw
4262     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4263   *)
4264     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4265   esac
4266   case $ac_prog in
4267     # Accept absolute paths.
4268     [\\/]* | ?:[\\/]*)
4269       re_direlt='/[^/][^/]*/\.\./'
4270       # Canonicalize the pathname of ld
4271       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4272       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4273         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4274       done
4275       test -z "$LD" && LD="$ac_prog"
4276       ;;
4277   "")
4278     # If it fails, then pretend we aren't using GCC.
4279     ac_prog=ld
4280     ;;
4281   *)
4282     # If it is relative, then search for the first ld in PATH.
4283     with_gnu_ld=unknown
4284     ;;
4285   esac
4286 elif test "$with_gnu_ld" = yes; then
4287   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4288 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4289 else
4290   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4291 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4292 fi
4293 if test "${lt_cv_path_LD+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   if test -z "$LD"; then
4297   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4298   for ac_dir in $PATH; do
4299     IFS="$lt_save_ifs"
4300     test -z "$ac_dir" && ac_dir=.
4301     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4302       lt_cv_path_LD="$ac_dir/$ac_prog"
4303       # Check to see if the program is GNU ld.  I'd rather use --version,
4304       # but apparently some variants of GNU ld only accept -v.
4305       # Break only if it was the GNU/non-GNU ld that we prefer.
4306       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4307       *GNU* | *'with BFD'*)
4308         test "$with_gnu_ld" != no && break
4309         ;;
4310       *)
4311         test "$with_gnu_ld" != yes && break
4312         ;;
4313       esac
4314     fi
4315   done
4316   IFS="$lt_save_ifs"
4317 else
4318   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4319 fi
4320 fi
4321
4322 LD="$lt_cv_path_LD"
4323 if test -n "$LD"; then
4324   { echo "$as_me:$LINENO: result: $LD" >&5
4325 echo "${ECHO_T}$LD" >&6; }
4326 else
4327   { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4329 fi
4330 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4331 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4332    { (exit 1); exit 1; }; }
4333 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4334 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4335 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4336   echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4339 case `$LD -v 2>&1 </dev/null` in
4340 *GNU* | *'with BFD'*)
4341   lt_cv_prog_gnu_ld=yes
4342   ;;
4343 *)
4344   lt_cv_prog_gnu_ld=no
4345   ;;
4346 esac
4347 fi
4348 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4349 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4350 with_gnu_ld=$lt_cv_prog_gnu_ld
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4361 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4362 if test "${lt_cv_path_NM+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   if test -n "$NM"; then
4366   # Let the user override the test.
4367   lt_cv_path_NM="$NM"
4368 else
4369   lt_nm_to_check="${ac_tool_prefix}nm"
4370   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4371     lt_nm_to_check="$lt_nm_to_check nm"
4372   fi
4373   for lt_tmp_nm in $lt_nm_to_check; do
4374     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4375     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4376       IFS="$lt_save_ifs"
4377       test -z "$ac_dir" && ac_dir=.
4378       tmp_nm="$ac_dir/$lt_tmp_nm"
4379       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4380         # Check to see if the nm accepts a BSD-compat flag.
4381         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4382         #   nm: unknown option "B" ignored
4383         # Tru64's nm complains that /dev/null is an invalid object file
4384         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4385         */dev/null* | *'Invalid file or object type'*)
4386           lt_cv_path_NM="$tmp_nm -B"
4387           break
4388           ;;
4389         *)
4390           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4391           */dev/null*)
4392             lt_cv_path_NM="$tmp_nm -p"
4393             break
4394             ;;
4395           *)
4396             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4397             continue # so that we can try to find one that supports BSD flags
4398             ;;
4399           esac
4400           ;;
4401         esac
4402       fi
4403     done
4404     IFS="$lt_save_ifs"
4405   done
4406   : ${lt_cv_path_NM=no}
4407 fi
4408 fi
4409 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4410 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4411 if test "$lt_cv_path_NM" != "no"; then
4412   NM="$lt_cv_path_NM"
4413 else
4414   # Didn't find any BSD compatible name lister, look for dumpbin.
4415   if test -n "$DUMPBIN"; then :
4416     # Let the user override the test.
4417   else
4418     if test -n "$ac_tool_prefix"; then
4419   for ac_prog in dumpbin "link -dump"
4420   do
4421     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4426   echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428   if test -n "$DUMPBIN"; then
4429   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 DUMPBIN=$ac_cv_prog_DUMPBIN
4449 if test -n "$DUMPBIN"; then
4450   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4451 echo "${ECHO_T}$DUMPBIN" >&6; }
4452 else
4453   { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4455 fi
4456
4457
4458     test -n "$DUMPBIN" && break
4459   done
4460 fi
4461 if test -z "$DUMPBIN"; then
4462   ac_ct_DUMPBIN=$DUMPBIN
4463   for ac_prog in dumpbin "link -dump"
4464 do
4465   # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if test -n "$ac_ct_DUMPBIN"; then
4473   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480   for ac_exec_ext in '' $ac_executable_extensions; do
4481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 fi
4491 fi
4492 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4493 if test -n "$ac_ct_DUMPBIN"; then
4494   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4495 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4496 else
4497   { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4499 fi
4500
4501
4502   test -n "$ac_ct_DUMPBIN" && break
4503 done
4504
4505   if test "x$ac_ct_DUMPBIN" = x; then
4506     DUMPBIN=":"
4507   else
4508     case $cross_compiling:$ac_tool_warned in
4509 yes:)
4510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4511 whose name does not start with the host triplet.  If you think this
4512 configuration is useful to you, please write to autoconf@gnu.org." >&5
4513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4514 whose name does not start with the host triplet.  If you think this
4515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4516 ac_tool_warned=yes ;;
4517 esac
4518     DUMPBIN=$ac_ct_DUMPBIN
4519   fi
4520 fi
4521
4522     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4523     *COFF*)
4524       DUMPBIN="$DUMPBIN -symbols"
4525       ;;
4526     *)
4527       DUMPBIN=:
4528       ;;
4529     esac
4530   fi
4531
4532   if test "$DUMPBIN" != ":"; then
4533     NM="$DUMPBIN"
4534   fi
4535 fi
4536 test -z "$NM" && NM=nm
4537
4538
4539
4540
4541
4542
4543 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4544 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4545 if test "${lt_cv_nm_interface+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   lt_cv_nm_interface="BSD nm"
4549   echo "int some_variable = 0;" > conftest.$ac_ext
4550   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4551   (eval "$ac_compile" 2>conftest.err)
4552   cat conftest.err >&5
4553   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4554   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4555   cat conftest.err >&5
4556   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4557   cat conftest.out >&5
4558   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4559     lt_cv_nm_interface="MS dumpbin"
4560   fi
4561   rm -r -f conftest*
4562 fi
4563 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4564 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4565
4566 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4567 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4568 LN_S=$as_ln_s
4569 if test "$LN_S" = "ln -s"; then
4570   { echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6; }
4572 else
4573   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4574 echo "${ECHO_T}no, using $LN_S" >&6; }
4575 fi
4576
4577 # find the maximum length of command line arguments
4578 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4579 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4580 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583     i=0
4584   teststring="ABCD"
4585
4586   case $build_os in
4587   msdosdjgpp*)
4588     # On DJGPP, this test can blow up pretty badly due to problems in libc
4589     # (any single argument exceeding 2000 bytes causes a buffer overrun
4590     # during glob expansion).  Even if it were fixed, the result of this
4591     # check would be larger than it should be.
4592     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4593     ;;
4594
4595   gnu*)
4596     # Under GNU Hurd, this test is not required because there is
4597     # no limit to the length of command line arguments.
4598     # Libtool will interpret -1 as no limit whatsoever
4599     lt_cv_sys_max_cmd_len=-1;
4600     ;;
4601
4602   cygwin* | mingw* | cegcc*)
4603     # On Win9x/ME, this test blows up -- it succeeds, but takes
4604     # about 5 minutes as the teststring grows exponentially.
4605     # Worse, since 9x/ME are not pre-emptively multitasking,
4606     # you end up with a "frozen" computer, even though with patience
4607     # the test eventually succeeds (with a max line length of 256k).
4608     # Instead, let's just punt: use the minimum linelength reported by
4609     # all of the supported platforms: 8192 (on NT/2K/XP).
4610     lt_cv_sys_max_cmd_len=8192;
4611     ;;
4612
4613   mint*)
4614     # On MiNT this can take a long time and run out of memory.
4615     lt_cv_sys_max_cmd_len=8192;
4616     ;;
4617
4618   amigaos*)
4619     # On AmigaOS with pdksh, this test takes hours, literally.
4620     # So we just punt and use a minimum line length of 8192.
4621     lt_cv_sys_max_cmd_len=8192;
4622     ;;
4623
4624   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4625     # This has been around since 386BSD, at least.  Likely further.
4626     if test -x /sbin/sysctl; then
4627       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4628     elif test -x /usr/sbin/sysctl; then
4629       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4630     else
4631       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4632     fi
4633     # And add a safety zone
4634     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4635     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4636     ;;
4637
4638   interix*)
4639     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4640     lt_cv_sys_max_cmd_len=196608
4641     ;;
4642
4643   osf*)
4644     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4645     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4646     # nice to cause kernel panics so lets avoid the loop below.
4647     # First set a reasonable default.
4648     lt_cv_sys_max_cmd_len=16384
4649     #
4650     if test -x /sbin/sysconfig; then
4651       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4652         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4653       esac
4654     fi
4655     ;;
4656   sco3.2v5*)
4657     lt_cv_sys_max_cmd_len=102400
4658     ;;
4659   sysv5* | sco5v6* | sysv4.2uw2*)
4660     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4661     if test -n "$kargmax"; then
4662       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4663     else
4664       lt_cv_sys_max_cmd_len=32768
4665     fi
4666     ;;
4667   *)
4668     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4669     if test -n "$lt_cv_sys_max_cmd_len"; then
4670       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4671       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4672     else
4673       # Make teststring a little bigger before we do anything with it.
4674       # a 1K string should be a reasonable start.
4675       for i in 1 2 3 4 5 6 7 8 ; do
4676         teststring=$teststring$teststring
4677       done
4678       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4679       # If test is not a shell built-in, we'll probably end up computing a
4680       # maximum length that is only half of the actual maximum length, but
4681       # we can't tell.
4682       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4683                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4684               test $i != 17 # 1/2 MB should be enough
4685       do
4686         i=`expr $i + 1`
4687         teststring=$teststring$teststring
4688       done
4689       # Only check the string length outside the loop.
4690       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4691       teststring=
4692       # Add a significant safety factor because C++ compilers can tack on
4693       # massive amounts of additional arguments before passing them to the
4694       # linker.  It appears as though 1/2 is a usable value.
4695       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4696     fi
4697     ;;
4698   esac
4699
4700 fi
4701
4702 if test -n $lt_cv_sys_max_cmd_len ; then
4703   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4704 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4705 else
4706   { echo "$as_me:$LINENO: result: none" >&5
4707 echo "${ECHO_T}none" >&6; }
4708 fi
4709 max_cmd_len=$lt_cv_sys_max_cmd_len
4710
4711
4712
4713
4714
4715
4716 : ${CP="cp -f"}
4717 : ${MV="mv -f"}
4718 : ${RM="rm -f"}
4719
4720 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4721 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4722 # Try some XSI features
4723 xsi_shell=no
4724 ( _lt_dummy="a/b/c"
4725   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4726       = c,a/b,, \
4727     && eval 'test $(( 1 + 1 )) -eq 2 \
4728     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4729   && xsi_shell=yes
4730 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4731 echo "${ECHO_T}$xsi_shell" >&6; }
4732
4733
4734 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4735 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4736 lt_shell_append=no
4737 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4738     >/dev/null 2>&1 \
4739   && lt_shell_append=yes
4740 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4741 echo "${ECHO_T}$lt_shell_append" >&6; }
4742
4743
4744 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4745   lt_unset=unset
4746 else
4747   lt_unset=false
4748 fi
4749
4750
4751
4752
4753
4754 # test EBCDIC or ASCII
4755 case `echo X|tr X '\101'` in
4756  A) # ASCII based system
4757     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4758   lt_SP2NL='tr \040 \012'
4759   lt_NL2SP='tr \015\012 \040\040'
4760   ;;
4761  *) # EBCDIC based system
4762   lt_SP2NL='tr \100 \n'
4763   lt_NL2SP='tr \r\n \100\100'
4764   ;;
4765 esac
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4776 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4777 if test "${lt_cv_ld_reload_flag+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   lt_cv_ld_reload_flag='-r'
4781 fi
4782 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4783 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4784 reload_flag=$lt_cv_ld_reload_flag
4785 case $reload_flag in
4786 "" | " "*) ;;
4787 *) reload_flag=" $reload_flag" ;;
4788 esac
4789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4790 case $host_os in
4791   darwin*)
4792     if test "$GCC" = yes; then
4793       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4794     else
4795       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4796     fi
4797     ;;
4798 esac
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 if test -n "$ac_tool_prefix"; then
4809   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   if test -n "$OBJDUMP"; then
4817   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4818 else
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822   IFS=$as_save_IFS
4823   test -z "$as_dir" && as_dir=.
4824   for ac_exec_ext in '' $ac_executable_extensions; do
4825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828     break 2
4829   fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 fi
4835 fi
4836 OBJDUMP=$ac_cv_prog_OBJDUMP
4837 if test -n "$OBJDUMP"; then
4838   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4839 echo "${ECHO_T}$OBJDUMP" >&6; }
4840 else
4841   { echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6; }
4843 fi
4844
4845
4846 fi
4847 if test -z "$ac_cv_prog_OBJDUMP"; then
4848   ac_ct_OBJDUMP=$OBJDUMP
4849   # Extract the first word of "objdump", so it can be a program name with args.
4850 set dummy objdump; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test -n "$ac_ct_OBJDUMP"; then
4857   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_exec_ext in '' $ac_executable_extensions; do
4865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4877 if test -n "$ac_ct_OBJDUMP"; then
4878   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4879 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4880 else
4881   { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4883 fi
4884
4885   if test "x$ac_ct_OBJDUMP" = x; then
4886     OBJDUMP="false"
4887   else
4888     case $cross_compiling:$ac_tool_warned in
4889 yes:)
4890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4891 whose name does not start with the host triplet.  If you think this
4892 configuration is useful to you, please write to autoconf@gnu.org." >&5
4893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4894 whose name does not start with the host triplet.  If you think this
4895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4896 ac_tool_warned=yes ;;
4897 esac
4898     OBJDUMP=$ac_ct_OBJDUMP
4899   fi
4900 else
4901   OBJDUMP="$ac_cv_prog_OBJDUMP"
4902 fi
4903
4904 test -z "$OBJDUMP" && OBJDUMP=objdump
4905
4906
4907
4908
4909
4910
4911 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4912 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4913 if test "${lt_cv_deplibs_check_method+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   lt_cv_file_magic_cmd='$MAGIC_CMD'
4917 lt_cv_file_magic_test_file=
4918 lt_cv_deplibs_check_method='unknown'
4919 # Need to set the preceding variable on all platforms that support
4920 # interlibrary dependencies.
4921 # 'none' -- dependencies not supported.
4922 # `unknown' -- same as none, but documents that we really don't know.
4923 # 'pass_all' -- all dependencies passed with no checks.
4924 # 'test_compile' -- check by making test program.
4925 # 'file_magic [[regex]]' -- check by looking for files in library path
4926 # which responds to the $file_magic_cmd with a given extended regex.
4927 # If you have `file' or equivalent on your system and you're not sure
4928 # whether `pass_all' will *always* work, you probably want this one.
4929
4930 case $host_os in
4931 aix[4-9]*)
4932   lt_cv_deplibs_check_method=pass_all
4933   ;;
4934
4935 beos*)
4936   lt_cv_deplibs_check_method=pass_all
4937   ;;
4938
4939 bsdi[45]*)
4940   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4941   lt_cv_file_magic_cmd='/usr/bin/file -L'
4942   lt_cv_file_magic_test_file=/shlib/libc.so
4943   ;;
4944
4945 cygwin*)
4946   # func_win32_libid is a shell function defined in ltmain.sh
4947   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4948   lt_cv_file_magic_cmd='func_win32_libid'
4949   ;;
4950
4951 mingw* | pw32*)
4952   # Base MSYS/MinGW do not provide the 'file' command needed by
4953   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4954   # unless we find 'file', for example because we are cross-compiling.
4955   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4956   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4957     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4958     lt_cv_file_magic_cmd='func_win32_libid'
4959   else
4960     # Keep this pattern in sync with the one in func_win32_libid.
4961     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4962     lt_cv_file_magic_cmd='$OBJDUMP -f'
4963   fi
4964   ;;
4965
4966 cegcc*)
4967   # use the weaker test based on 'objdump'. See mingw*.
4968   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4969   lt_cv_file_magic_cmd='$OBJDUMP -f'
4970   ;;
4971
4972 darwin* | rhapsody*)
4973   lt_cv_deplibs_check_method=pass_all
4974   ;;
4975
4976 freebsd* | dragonfly*)
4977   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4978     case $host_cpu in
4979     i*86 )
4980       # Not sure whether the presence of OpenBSD here was a mistake.
4981       # Let's accept both of them until this is cleared up.
4982       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4983       lt_cv_file_magic_cmd=/usr/bin/file
4984       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4985       ;;
4986     esac
4987   else
4988     lt_cv_deplibs_check_method=pass_all
4989   fi
4990   ;;
4991
4992 gnu*)
4993   lt_cv_deplibs_check_method=pass_all
4994   ;;
4995
4996 haiku*)
4997   lt_cv_deplibs_check_method=pass_all
4998   ;;
4999
5000 hpux10.20* | hpux11*)
5001   lt_cv_file_magic_cmd=/usr/bin/file
5002   case $host_cpu in
5003   ia64*)
5004     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5005     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5006     ;;
5007   hppa*64*)
5008     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5009     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5010     ;;
5011   *)
5012     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5013     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5014     ;;
5015   esac
5016   ;;
5017
5018 interix[3-9]*)
5019   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5020   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5021   ;;
5022
5023 irix5* | irix6* | nonstopux*)
5024   case $LD in
5025   *-32|*"-32 ") libmagic=32-bit;;
5026   *-n32|*"-n32 ") libmagic=N32;;
5027   *-64|*"-64 ") libmagic=64-bit;;
5028   *) libmagic=never-match;;
5029   esac
5030   lt_cv_deplibs_check_method=pass_all
5031   ;;
5032
5033 # This must be Linux ELF.
5034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5035   lt_cv_deplibs_check_method=pass_all
5036   ;;
5037
5038 netbsd*)
5039   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5040     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5041   else
5042     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5043   fi
5044   ;;
5045
5046 newos6*)
5047   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5048   lt_cv_file_magic_cmd=/usr/bin/file
5049   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5050   ;;
5051
5052 *nto* | *qnx*)
5053   lt_cv_deplibs_check_method=pass_all
5054   ;;
5055
5056 openbsd*)
5057   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5058     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5059   else
5060     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5061   fi
5062   ;;
5063
5064 osf3* | osf4* | osf5*)
5065   lt_cv_deplibs_check_method=pass_all
5066   ;;
5067
5068 rdos*)
5069   lt_cv_deplibs_check_method=pass_all
5070   ;;
5071
5072 solaris*)
5073   lt_cv_deplibs_check_method=pass_all
5074   ;;
5075
5076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5077   lt_cv_deplibs_check_method=pass_all
5078   ;;
5079
5080 sysv4 | sysv4.3*)
5081   case $host_vendor in
5082   motorola)
5083     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]'
5084     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5085     ;;
5086   ncr)
5087     lt_cv_deplibs_check_method=pass_all
5088     ;;
5089   sequent)
5090     lt_cv_file_magic_cmd='/bin/file'
5091     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5092     ;;
5093   sni)
5094     lt_cv_file_magic_cmd='/bin/file'
5095     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5096     lt_cv_file_magic_test_file=/lib/libc.so
5097     ;;
5098   siemens)
5099     lt_cv_deplibs_check_method=pass_all
5100     ;;
5101   pc)
5102     lt_cv_deplibs_check_method=pass_all
5103     ;;
5104   esac
5105   ;;
5106
5107 tpf*)
5108   lt_cv_deplibs_check_method=pass_all
5109   ;;
5110 esac
5111
5112 fi
5113 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5114 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5115 file_magic_cmd=$lt_cv_file_magic_cmd
5116 deplibs_check_method=$lt_cv_deplibs_check_method
5117 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130 if test -n "$ac_tool_prefix"; then
5131   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5132 set dummy ${ac_tool_prefix}ar; ac_word=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_prog_AR+set}" = set; then
5136   echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138   if test -n "$AR"; then
5139   ac_cv_prog_AR="$AR" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144   IFS=$as_save_IFS
5145   test -z "$as_dir" && as_dir=.
5146   for ac_exec_ext in '' $ac_executable_extensions; do
5147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148     ac_cv_prog_AR="${ac_tool_prefix}ar"
5149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150     break 2
5151   fi
5152 done
5153 done
5154 IFS=$as_save_IFS
5155
5156 fi
5157 fi
5158 AR=$ac_cv_prog_AR
5159 if test -n "$AR"; then
5160   { echo "$as_me:$LINENO: result: $AR" >&5
5161 echo "${ECHO_T}$AR" >&6; }
5162 else
5163   { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5165 fi
5166
5167
5168 fi
5169 if test -z "$ac_cv_prog_AR"; then
5170   ac_ct_AR=$AR
5171   # Extract the first word of "ar", so it can be a program name with args.
5172 set dummy ar; ac_word=$2
5173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5175 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   if test -n "$ac_ct_AR"; then
5179   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186   for ac_exec_ext in '' $ac_executable_extensions; do
5187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188     ac_cv_prog_ac_ct_AR="ar"
5189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196 fi
5197 fi
5198 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5199 if test -n "$ac_ct_AR"; then
5200   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5201 echo "${ECHO_T}$ac_ct_AR" >&6; }
5202 else
5203   { echo "$as_me:$LINENO: result: no" >&5
5204 echo "${ECHO_T}no" >&6; }
5205 fi
5206
5207   if test "x$ac_ct_AR" = x; then
5208     AR="false"
5209   else
5210     case $cross_compiling:$ac_tool_warned in
5211 yes:)
5212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5213 whose name does not start with the host triplet.  If you think this
5214 configuration is useful to you, please write to autoconf@gnu.org." >&5
5215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5216 whose name does not start with the host triplet.  If you think this
5217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5218 ac_tool_warned=yes ;;
5219 esac
5220     AR=$ac_ct_AR
5221   fi
5222 else
5223   AR="$ac_cv_prog_AR"
5224 fi
5225
5226 test -z "$AR" && AR=ar
5227 test -z "$AR_FLAGS" && AR_FLAGS=cru
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 if test -n "$ac_tool_prefix"; then
5240   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5241 set dummy ${ac_tool_prefix}strip; ac_word=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_prog_STRIP+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if test -n "$STRIP"; then
5248   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255   for ac_exec_ext in '' $ac_executable_extensions; do
5256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 STRIP=$ac_cv_prog_STRIP
5268 if test -n "$STRIP"; then
5269   { echo "$as_me:$LINENO: result: $STRIP" >&5
5270 echo "${ECHO_T}$STRIP" >&6; }
5271 else
5272   { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5274 fi
5275
5276
5277 fi
5278 if test -z "$ac_cv_prog_STRIP"; then
5279   ac_ct_STRIP=$STRIP
5280   # Extract the first word of "strip", so it can be a program name with args.
5281 set dummy strip; ac_word=$2
5282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5284 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5285   echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287   if test -n "$ac_ct_STRIP"; then
5288   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295   for ac_exec_ext in '' $ac_executable_extensions; do
5296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297     ac_cv_prog_ac_ct_STRIP="strip"
5298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5308 if test -n "$ac_ct_STRIP"; then
5309   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5310 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5311 else
5312   { echo "$as_me:$LINENO: result: no" >&5
5313 echo "${ECHO_T}no" >&6; }
5314 fi
5315
5316   if test "x$ac_ct_STRIP" = x; then
5317     STRIP=":"
5318   else
5319     case $cross_compiling:$ac_tool_warned in
5320 yes:)
5321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5322 whose name does not start with the host triplet.  If you think this
5323 configuration is useful to you, please write to autoconf@gnu.org." >&5
5324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5325 whose name does not start with the host triplet.  If you think this
5326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5327 ac_tool_warned=yes ;;
5328 esac
5329     STRIP=$ac_ct_STRIP
5330   fi
5331 else
5332   STRIP="$ac_cv_prog_STRIP"
5333 fi
5334
5335 test -z "$STRIP" && STRIP=:
5336
5337
5338
5339
5340
5341
5342 if test -n "$ac_tool_prefix"; then
5343   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5344 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5347 if test "${ac_cv_prog_RANLIB+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   if test -n "$RANLIB"; then
5351   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368 fi
5369 fi
5370 RANLIB=$ac_cv_prog_RANLIB
5371 if test -n "$RANLIB"; then
5372   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5373 echo "${ECHO_T}$RANLIB" >&6; }
5374 else
5375   { echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6; }
5377 fi
5378
5379
5380 fi
5381 if test -z "$ac_cv_prog_RANLIB"; then
5382   ac_ct_RANLIB=$RANLIB
5383   # Extract the first word of "ranlib", so it can be a program name with args.
5384 set dummy ranlib; ac_word=$2
5385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5387 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   if test -n "$ac_ct_RANLIB"; then
5391   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5395 do
5396   IFS=$as_save_IFS
5397   test -z "$as_dir" && as_dir=.
5398   for ac_exec_ext in '' $ac_executable_extensions; do
5399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400     ac_cv_prog_ac_ct_RANLIB="ranlib"
5401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5402     break 2
5403   fi
5404 done
5405 done
5406 IFS=$as_save_IFS
5407
5408 fi
5409 fi
5410 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5411 if test -n "$ac_ct_RANLIB"; then
5412   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5413 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5414 else
5415   { echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6; }
5417 fi
5418
5419   if test "x$ac_ct_RANLIB" = x; then
5420     RANLIB=":"
5421   else
5422     case $cross_compiling:$ac_tool_warned in
5423 yes:)
5424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5425 whose name does not start with the host triplet.  If you think this
5426 configuration is useful to you, please write to autoconf@gnu.org." >&5
5427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5428 whose name does not start with the host triplet.  If you think this
5429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5430 ac_tool_warned=yes ;;
5431 esac
5432     RANLIB=$ac_ct_RANLIB
5433   fi
5434 else
5435   RANLIB="$ac_cv_prog_RANLIB"
5436 fi
5437
5438 test -z "$RANLIB" && RANLIB=:
5439
5440
5441
5442
5443
5444
5445 # Determine commands to create old-style static archives.
5446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5447 old_postinstall_cmds='chmod 644 $oldlib'
5448 old_postuninstall_cmds=
5449
5450 if test -n "$RANLIB"; then
5451   case $host_os in
5452   openbsd*)
5453     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5454     ;;
5455   *)
5456     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5457     ;;
5458   esac
5459   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5460 fi
5461
5462 case $host_os in
5463   darwin*)
5464     lock_old_archive_extraction=yes ;;
5465   *)
5466     lock_old_archive_extraction=no ;;
5467 esac
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507 # If no C compiler was specified, use CC.
5508 LTCC=${LTCC-"$CC"}
5509
5510 # If no C compiler flags were specified, use CFLAGS.
5511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5512
5513 # Allow CC to be a program name with arguments.
5514 compiler=$CC
5515
5516
5517 # Check for command to grab the raw symbol name followed by C symbol from nm.
5518 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5519 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5520 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5521   echo $ECHO_N "(cached) $ECHO_C" >&6
5522 else
5523
5524 # These are sane defaults that work on at least a few old systems.
5525 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5526
5527 # Character class describing NM global symbol codes.
5528 symcode='[BCDEGRST]'
5529
5530 # Regexp to match symbols that can be accessed directly from C.
5531 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5532
5533 # Define system-specific variables.
5534 case $host_os in
5535 aix*)
5536   symcode='[BCDT]'
5537   ;;
5538 cygwin* | mingw* | pw32* | cegcc*)
5539   symcode='[ABCDGISTW]'
5540   ;;
5541 hpux*)
5542   if test "$host_cpu" = ia64; then
5543     symcode='[ABCDEGRST]'
5544   fi
5545   ;;
5546 irix* | nonstopux*)
5547   symcode='[BCDEGRST]'
5548   ;;
5549 osf*)
5550   symcode='[BCDEGQRST]'
5551   ;;
5552 solaris*)
5553   symcode='[BDRT]'
5554   ;;
5555 sco3.2v5*)
5556   symcode='[DT]'
5557   ;;
5558 sysv4.2uw2*)
5559   symcode='[DT]'
5560   ;;
5561 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5562   symcode='[ABDT]'
5563   ;;
5564 sysv4)
5565   symcode='[DFNSTU]'
5566   ;;
5567 esac
5568
5569 # If we're using GNU nm, then use its standard symbol codes.
5570 case `$NM -V 2>&1` in
5571 *GNU* | *'with BFD'*)
5572   symcode='[ABCDGIRSTW]' ;;
5573 esac
5574
5575 # Transform an extracted symbol line into a proper C declaration.
5576 # Some systems (esp. on ia64) link data and code symbols differently,
5577 # so use this general approach.
5578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5579
5580 # Transform an extracted symbol line into symbol name and symbol address
5581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5582 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'"
5583
5584 # Handle CRLF in mingw tool chain
5585 opt_cr=
5586 case $build_os in
5587 mingw*)
5588   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5589   ;;
5590 esac
5591
5592 # Try without a prefix underscore, then with it.
5593 for ac_symprfx in "" "_"; do
5594
5595   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5596   symxfrm="\\1 $ac_symprfx\\2 \\2"
5597
5598   # Write the raw and C identifiers.
5599   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5600     # Fake it for dumpbin and say T for any non-static function
5601     # and D for any global variable.
5602     # Also find C++ and __fastcall symbols from MSVC++,
5603     # which start with @ or ?.
5604     lt_cv_sys_global_symbol_pipe="$AWK '"\
5605 "     {last_section=section; section=\$ 3};"\
5606 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5607 "     \$ 0!~/External *\|/{next};"\
5608 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5609 "     {if(hide[section]) next};"\
5610 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5611 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5612 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5613 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5614 "     ' prfx=^$ac_symprfx"
5615   else
5616     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5617   fi
5618
5619   # Check to see that the pipe works correctly.
5620   pipe_works=no
5621
5622   rm -r -f conftest*
5623   cat > conftest.$ac_ext <<_LT_EOF
5624 #ifdef __cplusplus
5625 extern "C" {
5626 #endif
5627 char nm_test_var;
5628 void nm_test_func(void);
5629 void nm_test_func(void){}
5630 #ifdef __cplusplus
5631 }
5632 #endif
5633 int main(){nm_test_var='a';nm_test_func();return(0);}
5634 _LT_EOF
5635
5636   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637   (eval $ac_compile) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); }; then
5641     # Now try to grab the symbols.
5642     nlist=conftest.nm
5643     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\"") >&5
5644   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5645   ac_status=$?
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); } && test -s "$nlist"; then
5648       # Try sorting and uniquifying the output.
5649       if sort "$nlist" | uniq > "$nlist"T; then
5650         mv -f "$nlist"T "$nlist"
5651       else
5652         rm -f "$nlist"T
5653       fi
5654
5655       # Make sure that we snagged all the symbols we need.
5656       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5657         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5658           cat <<_LT_EOF > conftest.$ac_ext
5659 #ifdef __cplusplus
5660 extern "C" {
5661 #endif
5662
5663 _LT_EOF
5664           # Now generate the symbol file.
5665           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5666
5667           cat <<_LT_EOF >> conftest.$ac_ext
5668
5669 /* The mapping between symbol names and symbols.  */
5670 const struct {
5671   const char *name;
5672   void       *address;
5673 }
5674 lt__PROGRAM__LTX_preloaded_symbols[] =
5675 {
5676   { "@PROGRAM@", (void *) 0 },
5677 _LT_EOF
5678           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5679           cat <<\_LT_EOF >> conftest.$ac_ext
5680   {0, (void *) 0}
5681 };
5682
5683 /* This works around a problem in FreeBSD linker */
5684 #ifdef FREEBSD_WORKAROUND
5685 static const void *lt_preloaded_setup() {
5686   return lt__PROGRAM__LTX_preloaded_symbols;
5687 }
5688 #endif
5689
5690 #ifdef __cplusplus
5691 }
5692 #endif
5693 _LT_EOF
5694           # Now try linking the two files.
5695           mv conftest.$ac_objext conftstm.$ac_objext
5696           lt_save_LIBS="$LIBS"
5697           lt_save_CFLAGS="$CFLAGS"
5698           LIBS="conftstm.$ac_objext"
5699           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5700           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5701   (eval $ac_link) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5705             pipe_works=yes
5706           fi
5707           LIBS="$lt_save_LIBS"
5708           CFLAGS="$lt_save_CFLAGS"
5709         else
5710           echo "cannot find nm_test_func in $nlist" >&5
5711         fi
5712       else
5713         echo "cannot find nm_test_var in $nlist" >&5
5714       fi
5715     else
5716       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5717     fi
5718   else
5719     echo "$progname: failed program was:" >&5
5720     cat conftest.$ac_ext >&5
5721   fi
5722   rm -rf conftest* conftst*
5723
5724   # Do not use the global_symbol_pipe unless it works.
5725   if test "$pipe_works" = yes; then
5726     break
5727   else
5728     lt_cv_sys_global_symbol_pipe=
5729   fi
5730 done
5731
5732 fi
5733
5734 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5735   lt_cv_sys_global_symbol_to_cdecl=
5736 fi
5737 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5738   { echo "$as_me:$LINENO: result: failed" >&5
5739 echo "${ECHO_T}failed" >&6; }
5740 else
5741   { echo "$as_me:$LINENO: result: ok" >&5
5742 echo "${ECHO_T}ok" >&6; }
5743 fi
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 # Check whether --enable-libtool-lock was given.
5768 if test "${enable_libtool_lock+set}" = set; then
5769   enableval=$enable_libtool_lock;
5770 fi
5771
5772 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5773
5774 # Some flags need to be propagated to the compiler or linker for good
5775 # libtool support.
5776 case $host in
5777 ia64-*-hpux*)
5778   # Find out which ABI we are using.
5779   echo 'int i;' > conftest.$ac_ext
5780   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781   (eval $ac_compile) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; then
5785     case `/usr/bin/file conftest.$ac_objext` in
5786       *ELF-32*)
5787         HPUX_IA64_MODE="32"
5788         ;;
5789       *ELF-64*)
5790         HPUX_IA64_MODE="64"
5791         ;;
5792     esac
5793   fi
5794   rm -rf conftest*
5795   ;;
5796 *-*-irix6*)
5797   # Find out which ABI we are using.
5798   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5799   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800   (eval $ac_compile) 2>&5
5801   ac_status=$?
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); }; then
5804     if test "$lt_cv_prog_gnu_ld" = yes; then
5805       case `/usr/bin/file conftest.$ac_objext` in
5806         *32-bit*)
5807           LD="${LD-ld} -melf32bsmip"
5808           ;;
5809         *N32*)
5810           LD="${LD-ld} -melf32bmipn32"
5811           ;;
5812         *64-bit*)
5813           LD="${LD-ld} -melf64bmip"
5814         ;;
5815       esac
5816     else
5817       case `/usr/bin/file conftest.$ac_objext` in
5818         *32-bit*)
5819           LD="${LD-ld} -32"
5820           ;;
5821         *N32*)
5822           LD="${LD-ld} -n32"
5823           ;;
5824         *64-bit*)
5825           LD="${LD-ld} -64"
5826           ;;
5827       esac
5828     fi
5829   fi
5830   rm -rf conftest*
5831   ;;
5832
5833 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5834 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5835   # Find out which ABI we are using.
5836   echo 'int i;' > conftest.$ac_ext
5837   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838   (eval $ac_compile) 2>&5
5839   ac_status=$?
5840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841   (exit $ac_status); }; then
5842     case `/usr/bin/file conftest.o` in
5843       *32-bit*)
5844         case $host in
5845           x86_64-*kfreebsd*-gnu)
5846             LD="${LD-ld} -m elf_i386_fbsd"
5847             ;;
5848           x86_64-*linux*)
5849             LD="${LD-ld} -m elf_i386"
5850             ;;
5851           ppc64-*linux*|powerpc64-*linux*)
5852             LD="${LD-ld} -m elf32ppclinux"
5853             ;;
5854           s390x-*linux*)
5855             LD="${LD-ld} -m elf_s390"
5856             ;;
5857           sparc64-*linux*)
5858             LD="${LD-ld} -m elf32_sparc"
5859             ;;
5860         esac
5861         ;;
5862       *64-bit*)
5863         case $host in
5864           x86_64-*kfreebsd*-gnu)
5865             LD="${LD-ld} -m elf_x86_64_fbsd"
5866             ;;
5867           x86_64-*linux*)
5868             LD="${LD-ld} -m elf_x86_64"
5869             ;;
5870           ppc*-*linux*|powerpc*-*linux*)
5871             LD="${LD-ld} -m elf64ppc"
5872             ;;
5873           s390*-*linux*|s390*-*tpf*)
5874             LD="${LD-ld} -m elf64_s390"
5875             ;;
5876           sparc*-*linux*)
5877             LD="${LD-ld} -m elf64_sparc"
5878             ;;
5879         esac
5880         ;;
5881     esac
5882   fi
5883   rm -rf conftest*
5884   ;;
5885
5886 *-*-sco3.2v5*)
5887   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5888   SAVE_CFLAGS="$CFLAGS"
5889   CFLAGS="$CFLAGS -belf"
5890   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5891 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5892 if test "${lt_cv_cc_needs_belf+set}" = set; then
5893   echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895   ac_ext=c
5896 ac_cpp='$CPP $CPPFLAGS'
5897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5900
5901      cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907
5908 int
5909 main ()
5910 {
5911
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext conftest$ac_exeext
5917 if { (ac_try="$ac_link"
5918 case "(($ac_try" in
5919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920   *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923   (eval "$ac_link") 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } && {
5930          test -z "$ac_c_werror_flag" ||
5931          test ! -s conftest.err
5932        } && test -s conftest$ac_exeext &&
5933        $as_test_x conftest$ac_exeext; then
5934   lt_cv_cc_needs_belf=yes
5935 else
5936   echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.$ac_ext >&5
5938
5939         lt_cv_cc_needs_belf=no
5940 fi
5941
5942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5943       conftest$ac_exeext conftest.$ac_ext
5944      ac_ext=c
5945 ac_cpp='$CPP $CPPFLAGS'
5946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5949
5950 fi
5951 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5952 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5953   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5954     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5955     CFLAGS="$SAVE_CFLAGS"
5956   fi
5957   ;;
5958 sparc*-*solaris*)
5959   # Find out which ABI we are using.
5960   echo 'int i;' > conftest.$ac_ext
5961   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5962   (eval $ac_compile) 2>&5
5963   ac_status=$?
5964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965   (exit $ac_status); }; then
5966     case `/usr/bin/file conftest.o` in
5967     *64-bit*)
5968       case $lt_cv_prog_gnu_ld in
5969       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5970       *)
5971         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5972           LD="${LD-ld} -64"
5973         fi
5974         ;;
5975       esac
5976       ;;
5977     esac
5978   fi
5979   rm -rf conftest*
5980   ;;
5981 esac
5982
5983 need_locks="$enable_libtool_lock"
5984
5985
5986   case $host_os in
5987     rhapsody* | darwin*)
5988     if test -n "$ac_tool_prefix"; then
5989   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   if test -n "$DSYMUTIL"; then
5997   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5998 else
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6000 for as_dir in $PATH
6001 do
6002   IFS=$as_save_IFS
6003   test -z "$as_dir" && as_dir=.
6004   for ac_exec_ext in '' $ac_executable_extensions; do
6005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6008     break 2
6009   fi
6010 done
6011 done
6012 IFS=$as_save_IFS
6013
6014 fi
6015 fi
6016 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6017 if test -n "$DSYMUTIL"; then
6018   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6019 echo "${ECHO_T}$DSYMUTIL" >&6; }
6020 else
6021   { echo "$as_me:$LINENO: result: no" >&5
6022 echo "${ECHO_T}no" >&6; }
6023 fi
6024
6025
6026 fi
6027 if test -z "$ac_cv_prog_DSYMUTIL"; then
6028   ac_ct_DSYMUTIL=$DSYMUTIL
6029   # Extract the first word of "dsymutil", so it can be a program name with args.
6030 set dummy dsymutil; ac_word=$2
6031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6033 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6034   echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036   if test -n "$ac_ct_DSYMUTIL"; then
6037   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044   for ac_exec_ext in '' $ac_executable_extensions; do
6045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6057 if test -n "$ac_ct_DSYMUTIL"; then
6058   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6059 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6060 else
6061   { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6063 fi
6064
6065   if test "x$ac_ct_DSYMUTIL" = x; then
6066     DSYMUTIL=":"
6067   else
6068     case $cross_compiling:$ac_tool_warned in
6069 yes:)
6070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6071 whose name does not start with the host triplet.  If you think this
6072 configuration is useful to you, please write to autoconf@gnu.org." >&5
6073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6074 whose name does not start with the host triplet.  If you think this
6075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6076 ac_tool_warned=yes ;;
6077 esac
6078     DSYMUTIL=$ac_ct_DSYMUTIL
6079   fi
6080 else
6081   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6082 fi
6083
6084     if test -n "$ac_tool_prefix"; then
6085   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6089 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6090   echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092   if test -n "$NMEDIT"; then
6093   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6097 do
6098   IFS=$as_save_IFS
6099   test -z "$as_dir" && as_dir=.
6100   for ac_exec_ext in '' $ac_executable_extensions; do
6101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6102     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6104     break 2
6105   fi
6106 done
6107 done
6108 IFS=$as_save_IFS
6109
6110 fi
6111 fi
6112 NMEDIT=$ac_cv_prog_NMEDIT
6113 if test -n "$NMEDIT"; then
6114   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
6115 echo "${ECHO_T}$NMEDIT" >&6; }
6116 else
6117   { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6119 fi
6120
6121
6122 fi
6123 if test -z "$ac_cv_prog_NMEDIT"; then
6124   ac_ct_NMEDIT=$NMEDIT
6125   # Extract the first word of "nmedit", so it can be a program name with args.
6126 set dummy nmedit; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6130   echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132   if test -n "$ac_ct_NMEDIT"; then
6133   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138   IFS=$as_save_IFS
6139   test -z "$as_dir" && as_dir=.
6140   for ac_exec_ext in '' $ac_executable_extensions; do
6141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144     break 2
6145   fi
6146 done
6147 done
6148 IFS=$as_save_IFS
6149
6150 fi
6151 fi
6152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6153 if test -n "$ac_ct_NMEDIT"; then
6154   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6155 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6156 else
6157   { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6159 fi
6160
6161   if test "x$ac_ct_NMEDIT" = x; then
6162     NMEDIT=":"
6163   else
6164     case $cross_compiling:$ac_tool_warned in
6165 yes:)
6166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6167 whose name does not start with the host triplet.  If you think this
6168 configuration is useful to you, please write to autoconf@gnu.org." >&5
6169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6170 whose name does not start with the host triplet.  If you think this
6171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6172 ac_tool_warned=yes ;;
6173 esac
6174     NMEDIT=$ac_ct_NMEDIT
6175   fi
6176 else
6177   NMEDIT="$ac_cv_prog_NMEDIT"
6178 fi
6179
6180     if test -n "$ac_tool_prefix"; then
6181   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6185 if test "${ac_cv_prog_LIPO+set}" = set; then
6186   echo $ECHO_N "(cached) $ECHO_C" >&6
6187 else
6188   if test -n "$LIPO"; then
6189   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196   for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 LIPO=$ac_cv_prog_LIPO
6209 if test -n "$LIPO"; then
6210   { echo "$as_me:$LINENO: result: $LIPO" >&5
6211 echo "${ECHO_T}$LIPO" >&6; }
6212 else
6213   { echo "$as_me:$LINENO: result: no" >&5
6214 echo "${ECHO_T}no" >&6; }
6215 fi
6216
6217
6218 fi
6219 if test -z "$ac_cv_prog_LIPO"; then
6220   ac_ct_LIPO=$LIPO
6221   # Extract the first word of "lipo", so it can be a program name with args.
6222 set dummy lipo; ac_word=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6226   echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228   if test -n "$ac_ct_LIPO"; then
6229   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236   for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_prog_ac_ct_LIPO="lipo"
6239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6249 if test -n "$ac_ct_LIPO"; then
6250   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6251 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6252 else
6253   { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6255 fi
6256
6257   if test "x$ac_ct_LIPO" = x; then
6258     LIPO=":"
6259   else
6260     case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6263 whose name does not start with the host triplet.  If you think this
6264 configuration is useful to you, please write to autoconf@gnu.org." >&5
6265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6266 whose name does not start with the host triplet.  If you think this
6267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6268 ac_tool_warned=yes ;;
6269 esac
6270     LIPO=$ac_ct_LIPO
6271   fi
6272 else
6273   LIPO="$ac_cv_prog_LIPO"
6274 fi
6275
6276     if test -n "$ac_tool_prefix"; then
6277   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6278 set dummy ${ac_tool_prefix}otool; ac_word=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_OTOOL+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   if test -n "$OTOOL"; then
6285   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6286 else
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288 for as_dir in $PATH
6289 do
6290   IFS=$as_save_IFS
6291   test -z "$as_dir" && as_dir=.
6292   for ac_exec_ext in '' $ac_executable_extensions; do
6293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296     break 2
6297   fi
6298 done
6299 done
6300 IFS=$as_save_IFS
6301
6302 fi
6303 fi
6304 OTOOL=$ac_cv_prog_OTOOL
6305 if test -n "$OTOOL"; then
6306   { echo "$as_me:$LINENO: result: $OTOOL" >&5
6307 echo "${ECHO_T}$OTOOL" >&6; }
6308 else
6309   { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6311 fi
6312
6313
6314 fi
6315 if test -z "$ac_cv_prog_OTOOL"; then
6316   ac_ct_OTOOL=$OTOOL
6317   # Extract the first word of "otool", so it can be a program name with args.
6318 set dummy otool; ac_word=$2
6319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   if test -n "$ac_ct_OTOOL"; then
6325   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330   IFS=$as_save_IFS
6331   test -z "$as_dir" && as_dir=.
6332   for ac_exec_ext in '' $ac_executable_extensions; do
6333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6334     ac_cv_prog_ac_ct_OTOOL="otool"
6335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6336     break 2
6337   fi
6338 done
6339 done
6340 IFS=$as_save_IFS
6341
6342 fi
6343 fi
6344 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6345 if test -n "$ac_ct_OTOOL"; then
6346   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6347 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6348 else
6349   { echo "$as_me:$LINENO: result: no" >&5
6350 echo "${ECHO_T}no" >&6; }
6351 fi
6352
6353   if test "x$ac_ct_OTOOL" = x; then
6354     OTOOL=":"
6355   else
6356     case $cross_compiling:$ac_tool_warned in
6357 yes:)
6358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6359 whose name does not start with the host triplet.  If you think this
6360 configuration is useful to you, please write to autoconf@gnu.org." >&5
6361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6362 whose name does not start with the host triplet.  If you think this
6363 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6364 ac_tool_warned=yes ;;
6365 esac
6366     OTOOL=$ac_ct_OTOOL
6367   fi
6368 else
6369   OTOOL="$ac_cv_prog_OTOOL"
6370 fi
6371
6372     if test -n "$ac_tool_prefix"; then
6373   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6377 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6378   echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380   if test -n "$OTOOL64"; then
6381   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6385 do
6386   IFS=$as_save_IFS
6387   test -z "$as_dir" && as_dir=.
6388   for ac_exec_ext in '' $ac_executable_extensions; do
6389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392     break 2
6393   fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398 fi
6399 fi
6400 OTOOL64=$ac_cv_prog_OTOOL64
6401 if test -n "$OTOOL64"; then
6402   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
6403 echo "${ECHO_T}$OTOOL64" >&6; }
6404 else
6405   { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407 fi
6408
6409
6410 fi
6411 if test -z "$ac_cv_prog_OTOOL64"; then
6412   ac_ct_OTOOL64=$OTOOL64
6413   # Extract the first word of "otool64", so it can be a program name with args.
6414 set dummy otool64; ac_word=$2
6415 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6417 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6418   echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420   if test -n "$ac_ct_OTOOL64"; then
6421   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6425 do
6426   IFS=$as_save_IFS
6427   test -z "$as_dir" && as_dir=.
6428   for ac_exec_ext in '' $ac_executable_extensions; do
6429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430     ac_cv_prog_ac_ct_OTOOL64="otool64"
6431     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432     break 2
6433   fi
6434 done
6435 done
6436 IFS=$as_save_IFS
6437
6438 fi
6439 fi
6440 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6441 if test -n "$ac_ct_OTOOL64"; then
6442   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6443 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6444 else
6445   { echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6; }
6447 fi
6448
6449   if test "x$ac_ct_OTOOL64" = x; then
6450     OTOOL64=":"
6451   else
6452     case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6455 whose name does not start with the host triplet.  If you think this
6456 configuration is useful to you, please write to autoconf@gnu.org." >&5
6457 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6458 whose name does not start with the host triplet.  If you think this
6459 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6460 ac_tool_warned=yes ;;
6461 esac
6462     OTOOL64=$ac_ct_OTOOL64
6463   fi
6464 else
6465   OTOOL64="$ac_cv_prog_OTOOL64"
6466 fi
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6495 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6496 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6497   echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499   lt_cv_apple_cc_single_mod=no
6500       if test -z "${LT_MULTI_MODULE}"; then
6501         # By default we will add the -single_module flag. You can override
6502         # by either setting the environment variable LT_MULTI_MODULE
6503         # non-empty at configure time, or by adding -multi_module to the
6504         # link flags.
6505         rm -rf libconftest.dylib*
6506         echo "int foo(void){return 1;}" > conftest.c
6507         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6508 -dynamiclib -Wl,-single_module conftest.c" >&5
6509         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6510           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6511         _lt_result=$?
6512         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6513           lt_cv_apple_cc_single_mod=yes
6514         else
6515           cat conftest.err >&5
6516         fi
6517         rm -rf libconftest.dylib*
6518         rm -f conftest.*
6519       fi
6520 fi
6521 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6522 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6523     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6524 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6525 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   lt_cv_ld_exported_symbols_list=no
6529       save_LDFLAGS=$LDFLAGS
6530       echo "_main" > conftest.sym
6531       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6532       cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538
6539 int
6540 main ()
6541 {
6542
6543   ;
6544   return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (ac_try="$ac_link"
6549 case "(($ac_try" in
6550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551   *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554   (eval "$ac_link") 2>conftest.er1
6555   ac_status=$?
6556   grep -v '^ *+' conftest.er1 >conftest.err
6557   rm -f conftest.er1
6558   cat conftest.err >&5
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); } && {
6561          test -z "$ac_c_werror_flag" ||
6562          test ! -s conftest.err
6563        } && test -s conftest$ac_exeext &&
6564        $as_test_x conftest$ac_exeext; then
6565   lt_cv_ld_exported_symbols_list=yes
6566 else
6567   echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6569
6570         lt_cv_ld_exported_symbols_list=no
6571 fi
6572
6573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6574       conftest$ac_exeext conftest.$ac_ext
6575         LDFLAGS="$save_LDFLAGS"
6576
6577 fi
6578 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6579 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6580     { echo "$as_me:$LINENO: checking for -force_load linker flag" >&5
6581 echo $ECHO_N "checking for -force_load linker flag... $ECHO_C" >&6; }
6582 if test "${lt_cv_ld_force_load+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   lt_cv_ld_force_load=no
6586       cat > conftest.c << _LT_EOF
6587 int forced_loaded() { return 2;}
6588 _LT_EOF
6589       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6590       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6591       echo "$AR cru libconftest.a conftest.o" >&5
6592       $AR cru libconftest.a conftest.o 2>&5
6593       echo "$RANLIB libconftest.a" >&5
6594       $RANLIB libconftest.a 2>&5
6595       cat > conftest.c << _LT_EOF
6596 int main() { return 0;}
6597 _LT_EOF
6598       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6599       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6600       _lt_result=$?
6601       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6602         lt_cv_ld_force_load=yes
6603       else
6604         cat conftest.err >&5
6605       fi
6606         rm -f conftest.err libconftest.a conftest conftest.c
6607         rm -rf conftest.dSYM
6608
6609 fi
6610 { echo "$as_me:$LINENO: result: $lt_cv_ld_force_load" >&5
6611 echo "${ECHO_T}$lt_cv_ld_force_load" >&6; }
6612     case $host_os in
6613     rhapsody* | darwin1.[012])
6614       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6615     darwin1.*)
6616       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6617     darwin*) # darwin 5.x on
6618       # if running on 10.5 or later, the deployment target defaults
6619       # to the OS version, if on x86, and 10.4, the deployment
6620       # target defaults to 10.4. Don't you love it?
6621       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6622         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6623           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6624         10.[012]*)
6625           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6626         10.*)
6627           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6628       esac
6629     ;;
6630   esac
6631     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6632       _lt_dar_single_mod='$single_module'
6633     fi
6634     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6635       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6636     else
6637       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6638     fi
6639     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6640       _lt_dsymutil='~$DSYMUTIL $lib || :'
6641     else
6642       _lt_dsymutil=
6643     fi
6644     ;;
6645   esac
6646
6647 ac_ext=c
6648 ac_cpp='$CPP $CPPFLAGS'
6649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6653 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6654 # On Suns, sometimes $CPP names a directory.
6655 if test -n "$CPP" && test -d "$CPP"; then
6656   CPP=
6657 fi
6658 if test -z "$CPP"; then
6659   if test "${ac_cv_prog_CPP+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662       # Double quotes because CPP needs to be expanded
6663     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6664     do
6665       ac_preproc_ok=false
6666 for ac_c_preproc_warn_flag in '' yes
6667 do
6668   # Use a header file that comes with gcc, so configuring glibc
6669   # with a fresh cross-compiler works.
6670   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6671   # <limits.h> exists even on freestanding compilers.
6672   # On the NeXT, cc -E runs the code through the compiler's parser,
6673   # not just through cpp. "Syntax error" is here to catch this case.
6674   cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h.  */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h.  */
6680 #ifdef __STDC__
6681 # include <limits.h>
6682 #else
6683 # include <assert.h>
6684 #endif
6685                      Syntax error
6686 _ACEOF
6687 if { (ac_try="$ac_cpp conftest.$ac_ext"
6688 case "(($ac_try" in
6689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6690   *) ac_try_echo=$ac_try;;
6691 esac
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6694   ac_status=$?
6695   grep -v '^ *+' conftest.er1 >conftest.err
6696   rm -f conftest.er1
6697   cat conftest.err >&5
6698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699   (exit $ac_status); } >/dev/null && {
6700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6701          test ! -s conftest.err
6702        }; then
6703   :
6704 else
6705   echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708   # Broken: fails on valid input.
6709 continue
6710 fi
6711
6712 rm -f conftest.err conftest.$ac_ext
6713
6714   # OK, works on sane cases.  Now check whether nonexistent headers
6715   # can be detected and how.
6716   cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h.  */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h.  */
6722 #include <ac_nonexistent.h>
6723 _ACEOF
6724 if { (ac_try="$ac_cpp conftest.$ac_ext"
6725 case "(($ac_try" in
6726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727   *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6731   ac_status=$?
6732   grep -v '^ *+' conftest.er1 >conftest.err
6733   rm -f conftest.er1
6734   cat conftest.err >&5
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); } >/dev/null && {
6737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6738          test ! -s conftest.err
6739        }; then
6740   # Broken: success on invalid input.
6741 continue
6742 else
6743   echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746   # Passes both tests.
6747 ac_preproc_ok=:
6748 break
6749 fi
6750
6751 rm -f conftest.err conftest.$ac_ext
6752
6753 done
6754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6755 rm -f conftest.err conftest.$ac_ext
6756 if $ac_preproc_ok; then
6757   break
6758 fi
6759
6760     done
6761     ac_cv_prog_CPP=$CPP
6762
6763 fi
6764   CPP=$ac_cv_prog_CPP
6765 else
6766   ac_cv_prog_CPP=$CPP
6767 fi
6768 { echo "$as_me:$LINENO: result: $CPP" >&5
6769 echo "${ECHO_T}$CPP" >&6; }
6770 ac_preproc_ok=false
6771 for ac_c_preproc_warn_flag in '' yes
6772 do
6773   # Use a header file that comes with gcc, so configuring glibc
6774   # with a fresh cross-compiler works.
6775   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6776   # <limits.h> exists even on freestanding compilers.
6777   # On the NeXT, cc -E runs the code through the compiler's parser,
6778   # not just through cpp. "Syntax error" is here to catch this case.
6779   cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h.  */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h.  */
6785 #ifdef __STDC__
6786 # include <limits.h>
6787 #else
6788 # include <assert.h>
6789 #endif
6790                      Syntax error
6791 _ACEOF
6792 if { (ac_try="$ac_cpp conftest.$ac_ext"
6793 case "(($ac_try" in
6794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6795   *) ac_try_echo=$ac_try;;
6796 esac
6797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6799   ac_status=$?
6800   grep -v '^ *+' conftest.er1 >conftest.err
6801   rm -f conftest.er1
6802   cat conftest.err >&5
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); } >/dev/null && {
6805          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6806          test ! -s conftest.err
6807        }; then
6808   :
6809 else
6810   echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6812
6813   # Broken: fails on valid input.
6814 continue
6815 fi
6816
6817 rm -f conftest.err conftest.$ac_ext
6818
6819   # OK, works on sane cases.  Now check whether nonexistent headers
6820   # can be detected and how.
6821   cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h.  */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h.  */
6827 #include <ac_nonexistent.h>
6828 _ACEOF
6829 if { (ac_try="$ac_cpp conftest.$ac_ext"
6830 case "(($ac_try" in
6831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832   *) ac_try_echo=$ac_try;;
6833 esac
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6836   ac_status=$?
6837   grep -v '^ *+' conftest.er1 >conftest.err
6838   rm -f conftest.er1
6839   cat conftest.err >&5
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); } >/dev/null && {
6842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6843          test ! -s conftest.err
6844        }; then
6845   # Broken: success on invalid input.
6846 continue
6847 else
6848   echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851   # Passes both tests.
6852 ac_preproc_ok=:
6853 break
6854 fi
6855
6856 rm -f conftest.err conftest.$ac_ext
6857
6858 done
6859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6860 rm -f conftest.err conftest.$ac_ext
6861 if $ac_preproc_ok; then
6862   :
6863 else
6864   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6865 See \`config.log' for more details." >&5
6866 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6867 See \`config.log' for more details." >&2;}
6868    { (exit 1); exit 1; }; }
6869 fi
6870
6871 ac_ext=c
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6876
6877
6878 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6879 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6880 if test "${ac_cv_header_stdc+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #include <stdlib.h>
6890 #include <stdarg.h>
6891 #include <string.h>
6892 #include <float.h>
6893
6894 int
6895 main ()
6896 {
6897
6898   ;
6899   return 0;
6900 }
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (ac_try="$ac_compile"
6904 case "(($ac_try" in
6905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906   *) ac_try_echo=$ac_try;;
6907 esac
6908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6909   (eval "$ac_compile") 2>conftest.er1
6910   ac_status=$?
6911   grep -v '^ *+' conftest.er1 >conftest.err
6912   rm -f conftest.er1
6913   cat conftest.err >&5
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } && {
6916          test -z "$ac_c_werror_flag" ||
6917          test ! -s conftest.err
6918        } && test -s conftest.$ac_objext; then
6919   ac_cv_header_stdc=yes
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924         ac_cv_header_stdc=no
6925 fi
6926
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928
6929 if test $ac_cv_header_stdc = yes; then
6930   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6931   cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h.  */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h.  */
6937 #include <string.h>
6938
6939 _ACEOF
6940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6941   $EGREP "memchr" >/dev/null 2>&1; then
6942   :
6943 else
6944   ac_cv_header_stdc=no
6945 fi
6946 rm -f -r conftest*
6947
6948 fi
6949
6950 if test $ac_cv_header_stdc = yes; then
6951   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6952   cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h.  */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h.  */
6958 #include <stdlib.h>
6959
6960 _ACEOF
6961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962   $EGREP "free" >/dev/null 2>&1; then
6963   :
6964 else
6965   ac_cv_header_stdc=no
6966 fi
6967 rm -f -r conftest*
6968
6969 fi
6970
6971 if test $ac_cv_header_stdc = yes; then
6972   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6973   if test "$cross_compiling" = yes; then
6974   :
6975 else
6976   cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h.  */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h.  */
6982 #include <ctype.h>
6983 #include <stdlib.h>
6984 #if ((' ' & 0x0FF) == 0x020)
6985 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6986 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6987 #else
6988 # define ISLOWER(c) \
6989                    (('a' <= (c) && (c) <= 'i') \
6990                      || ('j' <= (c) && (c) <= 'r') \
6991                      || ('s' <= (c) && (c) <= 'z'))
6992 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6993 #endif
6994
6995 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6996 int
6997 main ()
6998 {
6999   int i;
7000   for (i = 0; i < 256; i++)
7001     if (XOR (islower (i), ISLOWER (i))
7002         || toupper (i) != TOUPPER (i))
7003       return 2;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest$ac_exeext
7008 if { (ac_try="$ac_link"
7009 case "(($ac_try" in
7010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7011   *) ac_try_echo=$ac_try;;
7012 esac
7013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7014   (eval "$ac_link") 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7018   { (case "(($ac_try" in
7019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020   *) ac_try_echo=$ac_try;;
7021 esac
7022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7023   (eval "$ac_try") 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; }; then
7027   :
7028 else
7029   echo "$as_me: program exited with status $ac_status" >&5
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033 ( exit $ac_status )
7034 ac_cv_header_stdc=no
7035 fi
7036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7037 fi
7038
7039
7040 fi
7041 fi
7042 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7043 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7044 if test $ac_cv_header_stdc = yes; then
7045
7046 cat >>confdefs.h <<\_ACEOF
7047 #define STDC_HEADERS 1
7048 _ACEOF
7049
7050 fi
7051
7052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7063                   inttypes.h stdint.h unistd.h
7064 do
7065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7069   echo $ECHO_N "(cached) $ECHO_C" >&6
7070 else
7071   cat >conftest.$ac_ext <<_ACEOF
7072 /* confdefs.h.  */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h.  */
7077 $ac_includes_default
7078
7079 #include <$ac_header>
7080 _ACEOF
7081 rm -f conftest.$ac_objext
7082 if { (ac_try="$ac_compile"
7083 case "(($ac_try" in
7084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085   *) ac_try_echo=$ac_try;;
7086 esac
7087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088   (eval "$ac_compile") 2>conftest.er1
7089   ac_status=$?
7090   grep -v '^ *+' conftest.er1 >conftest.err
7091   rm -f conftest.er1
7092   cat conftest.err >&5
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); } && {
7095          test -z "$ac_c_werror_flag" ||
7096          test ! -s conftest.err
7097        } && test -s conftest.$ac_objext; then
7098   eval "$as_ac_Header=yes"
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103         eval "$as_ac_Header=no"
7104 fi
7105
7106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7107 fi
7108 ac_res=`eval echo '${'$as_ac_Header'}'`
7109                { echo "$as_me:$LINENO: result: $ac_res" >&5
7110 echo "${ECHO_T}$ac_res" >&6; }
7111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7112   cat >>confdefs.h <<_ACEOF
7113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7114 _ACEOF
7115
7116 fi
7117
7118 done
7119
7120
7121
7122 for ac_header in dlfcn.h
7123 do
7124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h.  */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h.  */
7136 $ac_includes_default
7137
7138 #include <$ac_header>
7139 _ACEOF
7140 rm -f conftest.$ac_objext
7141 if { (ac_try="$ac_compile"
7142 case "(($ac_try" in
7143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144   *) ac_try_echo=$ac_try;;
7145 esac
7146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7147   (eval "$ac_compile") 2>conftest.er1
7148   ac_status=$?
7149   grep -v '^ *+' conftest.er1 >conftest.err
7150   rm -f conftest.er1
7151   cat conftest.err >&5
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); } && {
7154          test -z "$ac_c_werror_flag" ||
7155          test ! -s conftest.err
7156        } && test -s conftest.$ac_objext; then
7157   eval "$as_ac_Header=yes"
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7161
7162         eval "$as_ac_Header=no"
7163 fi
7164
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 fi
7167 ac_res=`eval echo '${'$as_ac_Header'}'`
7168                { echo "$as_me:$LINENO: result: $ac_res" >&5
7169 echo "${ECHO_T}$ac_res" >&6; }
7170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7171   cat >>confdefs.h <<_ACEOF
7172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7173 _ACEOF
7174
7175 fi
7176
7177 done
7178
7179
7180
7181
7182
7183 # Set options
7184 enable_win32_dll=yes
7185
7186 case $host in
7187 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7188   if test -n "$ac_tool_prefix"; then
7189   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}as; ac_word=$2
7191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193 if test "${ac_cv_prog_AS+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   if test -n "$AS"; then
7197   ac_cv_prog_AS="$AS" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204   for ac_exec_ext in '' $ac_executable_extensions; do
7205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206     ac_cv_prog_AS="${ac_tool_prefix}as"
7207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 AS=$ac_cv_prog_AS
7217 if test -n "$AS"; then
7218   { echo "$as_me:$LINENO: result: $AS" >&5
7219 echo "${ECHO_T}$AS" >&6; }
7220 else
7221   { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_AS"; then
7228   ac_ct_AS=$AS
7229   # Extract the first word of "as", so it can be a program name with args.
7230 set dummy as; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   if test -n "$ac_ct_AS"; then
7237   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242   IFS=$as_save_IFS
7243   test -z "$as_dir" && as_dir=.
7244   for ac_exec_ext in '' $ac_executable_extensions; do
7245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246     ac_cv_prog_ac_ct_AS="as"
7247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248     break 2
7249   fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7257 if test -n "$ac_ct_AS"; then
7258   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7259 echo "${ECHO_T}$ac_ct_AS" >&6; }
7260 else
7261   { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7263 fi
7264
7265   if test "x$ac_ct_AS" = x; then
7266     AS="false"
7267   else
7268     case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7271 whose name does not start with the host triplet.  If you think this
7272 configuration is useful to you, please write to autoconf@gnu.org." >&5
7273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7274 whose name does not start with the host triplet.  If you think this
7275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7276 ac_tool_warned=yes ;;
7277 esac
7278     AS=$ac_ct_AS
7279   fi
7280 else
7281   AS="$ac_cv_prog_AS"
7282 fi
7283
7284   if test -n "$ac_tool_prefix"; then
7285   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   if test -n "$DLLTOOL"; then
7293   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300   for ac_exec_ext in '' $ac_executable_extensions; do
7301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 DLLTOOL=$ac_cv_prog_DLLTOOL
7313 if test -n "$DLLTOOL"; then
7314   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7315 echo "${ECHO_T}$DLLTOOL" >&6; }
7316 else
7317   { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7319 fi
7320
7321
7322 fi
7323 if test -z "$ac_cv_prog_DLLTOOL"; then
7324   ac_ct_DLLTOOL=$DLLTOOL
7325   # Extract the first word of "dlltool", so it can be a program name with args.
7326 set dummy dlltool; ac_word=$2
7327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7329 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   if test -n "$ac_ct_DLLTOOL"; then
7333   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340   for ac_exec_ext in '' $ac_executable_extensions; do
7341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7342     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7353 if test -n "$ac_ct_DLLTOOL"; then
7354   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7355 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361   if test "x$ac_ct_DLLTOOL" = x; then
7362     DLLTOOL="false"
7363   else
7364     case $cross_compiling:$ac_tool_warned in
7365 yes:)
7366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7367 whose name does not start with the host triplet.  If you think this
7368 configuration is useful to you, please write to autoconf@gnu.org." >&5
7369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7370 whose name does not start with the host triplet.  If you think this
7371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7372 ac_tool_warned=yes ;;
7373 esac
7374     DLLTOOL=$ac_ct_DLLTOOL
7375   fi
7376 else
7377   DLLTOOL="$ac_cv_prog_DLLTOOL"
7378 fi
7379
7380   if test -n "$ac_tool_prefix"; then
7381   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7382 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7385 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   if test -n "$OBJDUMP"; then
7389   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394   IFS=$as_save_IFS
7395   test -z "$as_dir" && as_dir=.
7396   for ac_exec_ext in '' $ac_executable_extensions; do
7397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 OBJDUMP=$ac_cv_prog_OBJDUMP
7409 if test -n "$OBJDUMP"; then
7410   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7411 echo "${ECHO_T}$OBJDUMP" >&6; }
7412 else
7413   { echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6; }
7415 fi
7416
7417
7418 fi
7419 if test -z "$ac_cv_prog_OBJDUMP"; then
7420   ac_ct_OBJDUMP=$OBJDUMP
7421   # Extract the first word of "objdump", so it can be a program name with args.
7422 set dummy objdump; ac_word=$2
7423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   if test -n "$ac_ct_OBJDUMP"; then
7429   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436   for ac_exec_ext in '' $ac_executable_extensions; do
7437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440     break 2
7441   fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446 fi
7447 fi
7448 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7449 if test -n "$ac_ct_OBJDUMP"; then
7450   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7451 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7452 else
7453   { echo "$as_me:$LINENO: result: no" >&5
7454 echo "${ECHO_T}no" >&6; }
7455 fi
7456
7457   if test "x$ac_ct_OBJDUMP" = x; then
7458     OBJDUMP="false"
7459   else
7460     case $cross_compiling:$ac_tool_warned in
7461 yes:)
7462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7463 whose name does not start with the host triplet.  If you think this
7464 configuration is useful to you, please write to autoconf@gnu.org." >&5
7465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7466 whose name does not start with the host triplet.  If you think this
7467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7468 ac_tool_warned=yes ;;
7469 esac
7470     OBJDUMP=$ac_ct_OBJDUMP
7471   fi
7472 else
7473   OBJDUMP="$ac_cv_prog_OBJDUMP"
7474 fi
7475
7476   ;;
7477 esac
7478
7479 test -z "$AS" && AS=as
7480
7481
7482
7483
7484
7485 test -z "$DLLTOOL" && DLLTOOL=dlltool
7486
7487
7488
7489
7490
7491 test -z "$OBJDUMP" && OBJDUMP=objdump
7492
7493
7494
7495
7496
7497
7498
7499         enable_dlopen=no
7500
7501
7502
7503             # Check whether --enable-shared was given.
7504 if test "${enable_shared+set}" = set; then
7505   enableval=$enable_shared; p=${PACKAGE-default}
7506     case $enableval in
7507     yes) enable_shared=yes ;;
7508     no) enable_shared=no ;;
7509     *)
7510       enable_shared=no
7511       # Look at the argument we got.  We use all the common list separators.
7512       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7513       for pkg in $enableval; do
7514         IFS="$lt_save_ifs"
7515         if test "X$pkg" = "X$p"; then
7516           enable_shared=yes
7517         fi
7518       done
7519       IFS="$lt_save_ifs"
7520       ;;
7521     esac
7522 else
7523   enable_shared=yes
7524 fi
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534   # Check whether --enable-static was given.
7535 if test "${enable_static+set}" = set; then
7536   enableval=$enable_static; p=${PACKAGE-default}
7537     case $enableval in
7538     yes) enable_static=yes ;;
7539     no) enable_static=no ;;
7540     *)
7541      enable_static=no
7542       # Look at the argument we got.  We use all the common list separators.
7543       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7544       for pkg in $enableval; do
7545         IFS="$lt_save_ifs"
7546         if test "X$pkg" = "X$p"; then
7547           enable_static=yes
7548         fi
7549       done
7550       IFS="$lt_save_ifs"
7551       ;;
7552     esac
7553 else
7554   enable_static=yes
7555 fi
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566 # Check whether --with-pic was given.
7567 if test "${with_pic+set}" = set; then
7568   withval=$with_pic; pic_mode="$withval"
7569 else
7570   pic_mode=default
7571 fi
7572
7573
7574 test -z "$pic_mode" && pic_mode=default
7575
7576
7577
7578
7579
7580
7581
7582   # Check whether --enable-fast-install was given.
7583 if test "${enable_fast_install+set}" = set; then
7584   enableval=$enable_fast_install; p=${PACKAGE-default}
7585     case $enableval in
7586     yes) enable_fast_install=yes ;;
7587     no) enable_fast_install=no ;;
7588     *)
7589       enable_fast_install=no
7590       # Look at the argument we got.  We use all the common list separators.
7591       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7592       for pkg in $enableval; do
7593         IFS="$lt_save_ifs"
7594         if test "X$pkg" = "X$p"; then
7595           enable_fast_install=yes
7596         fi
7597       done
7598       IFS="$lt_save_ifs"
7599       ;;
7600     esac
7601 else
7602   enable_fast_install=yes
7603 fi
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615 # This can be used to rebuild libtool when needed
7616 LIBTOOL_DEPS="$ltmain"
7617
7618 # Always use our own libtool.
7619 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646 test -z "$LN_S" && LN_S="ln -s"
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661 if test -n "${ZSH_VERSION+set}" ; then
7662    setopt NO_GLOB_SUBST
7663 fi
7664
7665 { echo "$as_me:$LINENO: checking for objdir" >&5
7666 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7667 if test "${lt_cv_objdir+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   rm -f .libs 2>/dev/null
7671 mkdir .libs 2>/dev/null
7672 if test -d .libs; then
7673   lt_cv_objdir=.libs
7674 else
7675   # MS-DOS does not allow filenames that begin with a dot.
7676   lt_cv_objdir=_libs
7677 fi
7678 rmdir .libs 2>/dev/null
7679 fi
7680 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7681 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7682 objdir=$lt_cv_objdir
7683
7684
7685
7686
7687
7688 cat >>confdefs.h <<_ACEOF
7689 #define LT_OBJDIR "$lt_cv_objdir/"
7690 _ACEOF
7691
7692
7693
7694
7695 case $host_os in
7696 aix3*)
7697   # AIX sometimes has problems with the GCC collect2 program.  For some
7698   # reason, if we set the COLLECT_NAMES environment variable, the problems
7699   # vanish in a puff of smoke.
7700   if test "X${COLLECT_NAMES+set}" != Xset; then
7701     COLLECT_NAMES=
7702     export COLLECT_NAMES
7703   fi
7704   ;;
7705 esac
7706
7707 # Global variables:
7708 ofile=libtool
7709 can_build_shared=yes
7710
7711 # All known linkers require a `.a' archive for static linking (except MSVC,
7712 # which needs '.lib').
7713 libext=a
7714
7715 with_gnu_ld="$lt_cv_prog_gnu_ld"
7716
7717 old_CC="$CC"
7718 old_CFLAGS="$CFLAGS"
7719
7720 # Set sane defaults for various variables
7721 test -z "$CC" && CC=cc
7722 test -z "$LTCC" && LTCC=$CC
7723 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7724 test -z "$LD" && LD=ld
7725 test -z "$ac_objext" && ac_objext=o
7726
7727 for cc_temp in $compiler""; do
7728   case $cc_temp in
7729     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7730     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7731     \-*) ;;
7732     *) break;;
7733   esac
7734 done
7735 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7736
7737
7738 # Only perform the check for file, if the check method requires it
7739 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7740 case $deplibs_check_method in
7741 file_magic*)
7742   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7743     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7744 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7745 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   case $MAGIC_CMD in
7749 [\\/*] |  ?:[\\/]*)
7750   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7751   ;;
7752 *)
7753   lt_save_MAGIC_CMD="$MAGIC_CMD"
7754   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7755   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7756   for ac_dir in $ac_dummy; do
7757     IFS="$lt_save_ifs"
7758     test -z "$ac_dir" && ac_dir=.
7759     if test -f $ac_dir/${ac_tool_prefix}file; then
7760       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7761       if test -n "$file_magic_test_file"; then
7762         case $deplibs_check_method in
7763         "file_magic "*)
7764           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7765           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7766           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7767             $EGREP "$file_magic_regex" > /dev/null; then
7768             :
7769           else
7770             cat <<_LT_EOF 1>&2
7771
7772 *** Warning: the command libtool uses to detect shared libraries,
7773 *** $file_magic_cmd, produces output that libtool cannot recognize.
7774 *** The result is that libtool may fail to recognize shared libraries
7775 *** as such.  This will affect the creation of libtool libraries that
7776 *** depend on shared libraries, but programs linked with such libtool
7777 *** libraries will work regardless of this problem.  Nevertheless, you
7778 *** may want to report the problem to your system manager and/or to
7779 *** bug-libtool@gnu.org
7780
7781 _LT_EOF
7782           fi ;;
7783         esac
7784       fi
7785       break
7786     fi
7787   done
7788   IFS="$lt_save_ifs"
7789   MAGIC_CMD="$lt_save_MAGIC_CMD"
7790   ;;
7791 esac
7792 fi
7793
7794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7795 if test -n "$MAGIC_CMD"; then
7796   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7797 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7798 else
7799   { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7801 fi
7802
7803
7804
7805
7806
7807 if test -z "$lt_cv_path_MAGIC_CMD"; then
7808   if test -n "$ac_tool_prefix"; then
7809     { echo "$as_me:$LINENO: checking for file" >&5
7810 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7811 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7812   echo $ECHO_N "(cached) $ECHO_C" >&6
7813 else
7814   case $MAGIC_CMD in
7815 [\\/*] |  ?:[\\/]*)
7816   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7817   ;;
7818 *)
7819   lt_save_MAGIC_CMD="$MAGIC_CMD"
7820   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7821   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7822   for ac_dir in $ac_dummy; do
7823     IFS="$lt_save_ifs"
7824     test -z "$ac_dir" && ac_dir=.
7825     if test -f $ac_dir/file; then
7826       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7827       if test -n "$file_magic_test_file"; then
7828         case $deplibs_check_method in
7829         "file_magic "*)
7830           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7831           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7832           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7833             $EGREP "$file_magic_regex" > /dev/null; then
7834             :
7835           else
7836             cat <<_LT_EOF 1>&2
7837
7838 *** Warning: the command libtool uses to detect shared libraries,
7839 *** $file_magic_cmd, produces output that libtool cannot recognize.
7840 *** The result is that libtool may fail to recognize shared libraries
7841 *** as such.  This will affect the creation of libtool libraries that
7842 *** depend on shared libraries, but programs linked with such libtool
7843 *** libraries will work regardless of this problem.  Nevertheless, you
7844 *** may want to report the problem to your system manager and/or to
7845 *** bug-libtool@gnu.org
7846
7847 _LT_EOF
7848           fi ;;
7849         esac
7850       fi
7851       break
7852     fi
7853   done
7854   IFS="$lt_save_ifs"
7855   MAGIC_CMD="$lt_save_MAGIC_CMD"
7856   ;;
7857 esac
7858 fi
7859
7860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7861 if test -n "$MAGIC_CMD"; then
7862   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7863 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7864 else
7865   { echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6; }
7867 fi
7868
7869
7870   else
7871     MAGIC_CMD=:
7872   fi
7873 fi
7874
7875   fi
7876   ;;
7877 esac
7878
7879 # Use C for the default configuration in the libtool script
7880
7881 lt_save_CC="$CC"
7882 ac_ext=c
7883 ac_cpp='$CPP $CPPFLAGS'
7884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7887
7888
7889 # Source file extension for C test sources.
7890 ac_ext=c
7891
7892 # Object file extension for compiled C test sources.
7893 objext=o
7894 objext=$objext
7895
7896 # Code to be used in simple compile tests
7897 lt_simple_compile_test_code="int some_variable = 0;"
7898
7899 # Code to be used in simple link tests
7900 lt_simple_link_test_code='int main(){return(0);}'
7901
7902
7903
7904
7905
7906
7907
7908 # If no C compiler was specified, use CC.
7909 LTCC=${LTCC-"$CC"}
7910
7911 # If no C compiler flags were specified, use CFLAGS.
7912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7913
7914 # Allow CC to be a program name with arguments.
7915 compiler=$CC
7916
7917 # Save the default compiler, since it gets overwritten when the other
7918 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7919 compiler_DEFAULT=$CC
7920
7921 # save warnings/boilerplate of simple test code
7922 ac_outfile=conftest.$ac_objext
7923 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7924 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7925 _lt_compiler_boilerplate=`cat conftest.err`
7926 $RM -r conftest*
7927
7928 ac_outfile=conftest.$ac_objext
7929 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7930 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7931 _lt_linker_boilerplate=`cat conftest.err`
7932 $RM -r conftest*
7933
7934
7935 ## CAVEAT EMPTOR:
7936 ## There is no encapsulation within the following macros, do not change
7937 ## the running order or otherwise move them around unless you know exactly
7938 ## what you are doing...
7939 if test -n "$compiler"; then
7940
7941 lt_prog_compiler_no_builtin_flag=
7942
7943 if test "$GCC" = yes; then
7944   case $cc_basename in
7945   nvcc*)
7946     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7947   *)
7948     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7949   esac
7950
7951   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7952 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7953 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   lt_cv_prog_compiler_rtti_exceptions=no
7957    ac_outfile=conftest.$ac_objext
7958    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7959    lt_compiler_flag="-fno-rtti -fno-exceptions"
7960    # Insert the option either (1) after the last *FLAGS variable, or
7961    # (2) before a word containing "conftest.", or (3) at the end.
7962    # Note that $ac_compile itself does not contain backslashes and begins
7963    # with a dollar sign (not a hyphen), so the echo should work correctly.
7964    # The option is referenced via a variable to avoid confusing sed.
7965    lt_compile=`echo "$ac_compile" | $SED \
7966    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7968    -e 's:$: $lt_compiler_flag:'`
7969    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7970    (eval "$lt_compile" 2>conftest.err)
7971    ac_status=$?
7972    cat conftest.err >&5
7973    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974    if (exit $ac_status) && test -s "$ac_outfile"; then
7975      # The compiler can only warn and ignore the option if not recognized
7976      # So say no if there are warnings other than the usual output.
7977      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7978      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7979      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7980        lt_cv_prog_compiler_rtti_exceptions=yes
7981      fi
7982    fi
7983    $RM -r conftest*
7984
7985 fi
7986 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7987 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7988
7989 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7990     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7991 else
7992     :
7993 fi
7994
7995 fi
7996
7997
7998
7999
8000
8001
8002   lt_prog_compiler_wl=
8003 lt_prog_compiler_pic=
8004 lt_prog_compiler_static=
8005
8006 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8008
8009   if test "$GCC" = yes; then
8010     lt_prog_compiler_wl='-Wl,'
8011     lt_prog_compiler_static='-static'
8012
8013     case $host_os in
8014       aix*)
8015       # All AIX code is PIC.
8016       if test "$host_cpu" = ia64; then
8017         # AIX 5 now supports IA64 processor
8018         lt_prog_compiler_static='-Bstatic'
8019       fi
8020       ;;
8021
8022     amigaos*)
8023       case $host_cpu in
8024       powerpc)
8025             # see comment about AmigaOS4 .so support
8026             lt_prog_compiler_pic='-fPIC'
8027         ;;
8028       m68k)
8029             # FIXME: we need at least 68020 code to build shared libraries, but
8030             # adding the `-m68020' flag to GCC prevents building anything better,
8031             # like `-m68040'.
8032             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8033         ;;
8034       esac
8035       ;;
8036
8037     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8038       # PIC is the default for these OSes.
8039       ;;
8040
8041     mingw* | cygwin* | pw32* | os2* | cegcc*)
8042       # This hack is so that the source file can tell whether it is being
8043       # built for inclusion in a dll (and should export symbols for example).
8044       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8045       # (--disable-auto-import) libraries
8046       lt_prog_compiler_pic='-DDLL_EXPORT'
8047       ;;
8048
8049     darwin* | rhapsody*)
8050       # PIC is the default on this platform
8051       # Common symbols not allowed in MH_DYLIB files
8052       lt_prog_compiler_pic='-fno-common'
8053       ;;
8054
8055     haiku*)
8056       # PIC is the default for Haiku.
8057       # The "-static" flag exists, but is broken.
8058       lt_prog_compiler_static=
8059       ;;
8060
8061     hpux*)
8062       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8063       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8064       # sets the default TLS model and affects inlining.
8065       case $host_cpu in
8066       hppa*64*)
8067         # +Z the default
8068         ;;
8069       *)
8070         lt_prog_compiler_pic='-fPIC'
8071         ;;
8072       esac
8073       ;;
8074
8075     interix[3-9]*)
8076       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8077       # Instead, we relocate shared libraries at runtime.
8078       ;;
8079
8080     msdosdjgpp*)
8081       # Just because we use GCC doesn't mean we suddenly get shared libraries
8082       # on systems that don't support them.
8083       lt_prog_compiler_can_build_shared=no
8084       enable_shared=no
8085       ;;
8086
8087     *nto* | *qnx*)
8088       # QNX uses GNU C++, but need to define -shared option too, otherwise
8089       # it will coredump.
8090       lt_prog_compiler_pic='-fPIC -shared'
8091       ;;
8092
8093     sysv4*MP*)
8094       if test -d /usr/nec; then
8095         lt_prog_compiler_pic=-Kconform_pic
8096       fi
8097       ;;
8098
8099     *)
8100       lt_prog_compiler_pic='-fPIC'
8101       ;;
8102     esac
8103
8104     case $cc_basename in
8105     nvcc*) # Cuda Compiler Driver 2.2
8106       lt_prog_compiler_wl='-Xlinker '
8107       lt_prog_compiler_pic='-Xcompiler -fPIC'
8108       ;;
8109     esac
8110   else
8111     # PORTME Check for flag to pass linker flags through the system compiler.
8112     case $host_os in
8113     aix*)
8114       lt_prog_compiler_wl='-Wl,'
8115       if test "$host_cpu" = ia64; then
8116         # AIX 5 now supports IA64 processor
8117         lt_prog_compiler_static='-Bstatic'
8118       else
8119         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8120       fi
8121       ;;
8122
8123     mingw* | cygwin* | pw32* | os2* | cegcc*)
8124       # This hack is so that the source file can tell whether it is being
8125       # built for inclusion in a dll (and should export symbols for example).
8126       lt_prog_compiler_pic='-DDLL_EXPORT'
8127       ;;
8128
8129     hpux9* | hpux10* | hpux11*)
8130       lt_prog_compiler_wl='-Wl,'
8131       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8132       # not for PA HP-UX.
8133       case $host_cpu in
8134       hppa*64*|ia64*)
8135         # +Z the default
8136         ;;
8137       *)
8138         lt_prog_compiler_pic='+Z'
8139         ;;
8140       esac
8141       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8142       lt_prog_compiler_static='${wl}-a ${wl}archive'
8143       ;;
8144
8145     irix5* | irix6* | nonstopux*)
8146       lt_prog_compiler_wl='-Wl,'
8147       # PIC (with -KPIC) is the default.
8148       lt_prog_compiler_static='-non_shared'
8149       ;;
8150
8151     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8152       case $cc_basename in
8153       # old Intel for x86_64 which still supported -KPIC.
8154       ecc*)
8155         lt_prog_compiler_wl='-Wl,'
8156         lt_prog_compiler_pic='-KPIC'
8157         lt_prog_compiler_static='-static'
8158         ;;
8159       # icc used to be incompatible with GCC.
8160       # ICC 10 doesn't accept -KPIC any more.
8161       icc* | ifort*)
8162         lt_prog_compiler_wl='-Wl,'
8163         lt_prog_compiler_pic='-fPIC'
8164         lt_prog_compiler_static='-static'
8165         ;;
8166       # Lahey Fortran 8.1.
8167       lf95*)
8168         lt_prog_compiler_wl='-Wl,'
8169         lt_prog_compiler_pic='--shared'
8170         lt_prog_compiler_static='--static'
8171         ;;
8172       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8173         # Portland Group compilers (*not* the Pentium gcc compiler,
8174         # which looks to be a dead project)
8175         lt_prog_compiler_wl='-Wl,'
8176         lt_prog_compiler_pic='-fpic'
8177         lt_prog_compiler_static='-Bstatic'
8178         ;;
8179       ccc*)
8180         lt_prog_compiler_wl='-Wl,'
8181         # All Alpha code is PIC.
8182         lt_prog_compiler_static='-non_shared'
8183         ;;
8184       xl* | bgxl* | bgf* | mpixl*)
8185         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8186         lt_prog_compiler_wl='-Wl,'
8187         lt_prog_compiler_pic='-qpic'
8188         lt_prog_compiler_static='-qstaticlink'
8189         ;;
8190       *)
8191         case `$CC -V 2>&1 | sed 5q` in
8192         *Sun\ F* | *Sun*Fortran*)
8193           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8194           lt_prog_compiler_pic='-KPIC'
8195           lt_prog_compiler_static='-Bstatic'
8196           lt_prog_compiler_wl=''
8197           ;;
8198         *Sun\ C*)
8199           # Sun C 5.9
8200           lt_prog_compiler_pic='-KPIC'
8201           lt_prog_compiler_static='-Bstatic'
8202           lt_prog_compiler_wl='-Wl,'
8203           ;;
8204         esac
8205         ;;
8206       esac
8207       ;;
8208
8209     newsos6)
8210       lt_prog_compiler_pic='-KPIC'
8211       lt_prog_compiler_static='-Bstatic'
8212       ;;
8213
8214     *nto* | *qnx*)
8215       # QNX uses GNU C++, but need to define -shared option too, otherwise
8216       # it will coredump.
8217       lt_prog_compiler_pic='-fPIC -shared'
8218       ;;
8219
8220     osf3* | osf4* | osf5*)
8221       lt_prog_compiler_wl='-Wl,'
8222       # All OSF/1 code is PIC.
8223       lt_prog_compiler_static='-non_shared'
8224       ;;
8225
8226     rdos*)
8227       lt_prog_compiler_static='-non_shared'
8228       ;;
8229
8230     solaris*)
8231       lt_prog_compiler_pic='-KPIC'
8232       lt_prog_compiler_static='-Bstatic'
8233       case $cc_basename in
8234       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8235         lt_prog_compiler_wl='-Qoption ld ';;
8236       *)
8237         lt_prog_compiler_wl='-Wl,';;
8238       esac
8239       ;;
8240
8241     sunos4*)
8242       lt_prog_compiler_wl='-Qoption ld '
8243       lt_prog_compiler_pic='-PIC'
8244       lt_prog_compiler_static='-Bstatic'
8245       ;;
8246
8247     sysv4 | sysv4.2uw2* | sysv4.3*)
8248       lt_prog_compiler_wl='-Wl,'
8249       lt_prog_compiler_pic='-KPIC'
8250       lt_prog_compiler_static='-Bstatic'
8251       ;;
8252
8253     sysv4*MP*)
8254       if test -d /usr/nec ;then
8255         lt_prog_compiler_pic='-Kconform_pic'
8256         lt_prog_compiler_static='-Bstatic'
8257       fi
8258       ;;
8259
8260     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8261       lt_prog_compiler_wl='-Wl,'
8262       lt_prog_compiler_pic='-KPIC'
8263       lt_prog_compiler_static='-Bstatic'
8264       ;;
8265
8266     unicos*)
8267       lt_prog_compiler_wl='-Wl,'
8268       lt_prog_compiler_can_build_shared=no
8269       ;;
8270
8271     uts4*)
8272       lt_prog_compiler_pic='-pic'
8273       lt_prog_compiler_static='-Bstatic'
8274       ;;
8275
8276     *)
8277       lt_prog_compiler_can_build_shared=no
8278       ;;
8279     esac
8280   fi
8281
8282 case $host_os in
8283   # For platforms which do not support PIC, -DPIC is meaningless:
8284   *djgpp*)
8285     lt_prog_compiler_pic=
8286     ;;
8287   *)
8288     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8289     ;;
8290 esac
8291 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8292 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8293
8294
8295
8296
8297
8298
8299 #
8300 # Check to make sure the PIC flag actually works.
8301 #
8302 if test -n "$lt_prog_compiler_pic"; then
8303   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8304 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8305 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   lt_cv_prog_compiler_pic_works=no
8309    ac_outfile=conftest.$ac_objext
8310    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8311    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8312    # Insert the option either (1) after the last *FLAGS variable, or
8313    # (2) before a word containing "conftest.", or (3) at the end.
8314    # Note that $ac_compile itself does not contain backslashes and begins
8315    # with a dollar sign (not a hyphen), so the echo should work correctly.
8316    # The option is referenced via a variable to avoid confusing sed.
8317    lt_compile=`echo "$ac_compile" | $SED \
8318    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8319    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8320    -e 's:$: $lt_compiler_flag:'`
8321    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8322    (eval "$lt_compile" 2>conftest.err)
8323    ac_status=$?
8324    cat conftest.err >&5
8325    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326    if (exit $ac_status) && test -s "$ac_outfile"; then
8327      # The compiler can only warn and ignore the option if not recognized
8328      # So say no if there are warnings other than the usual output.
8329      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8330      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8331      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8332        lt_cv_prog_compiler_pic_works=yes
8333      fi
8334    fi
8335    $RM -r conftest*
8336
8337 fi
8338 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8339 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8340
8341 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8342     case $lt_prog_compiler_pic in
8343      "" | " "*) ;;
8344      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8345      esac
8346 else
8347     lt_prog_compiler_pic=
8348      lt_prog_compiler_can_build_shared=no
8349 fi
8350
8351 fi
8352
8353
8354
8355
8356
8357
8358 #
8359 # Check to make sure the static flag actually works.
8360 #
8361 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8362 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8363 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8364 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8365   echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367   lt_cv_prog_compiler_static_works=no
8368    save_LDFLAGS="$LDFLAGS"
8369    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8370    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8371    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8372      # The linker can only warn and ignore the option if not recognized
8373      # So say no if there are warnings
8374      if test -s conftest.err; then
8375        # Append any errors to the config.log.
8376        cat conftest.err 1>&5
8377        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8378        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379        if diff conftest.exp conftest.er2 >/dev/null; then
8380          lt_cv_prog_compiler_static_works=yes
8381        fi
8382      else
8383        lt_cv_prog_compiler_static_works=yes
8384      fi
8385    fi
8386    $RM -r conftest*
8387    LDFLAGS="$save_LDFLAGS"
8388
8389 fi
8390 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8391 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8392
8393 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8394     :
8395 else
8396     lt_prog_compiler_static=
8397 fi
8398
8399
8400
8401
8402
8403
8404
8405   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8406 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8407 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   lt_cv_prog_compiler_c_o=no
8411    $RM -r conftest 2>/dev/null
8412    mkdir conftest
8413    cd conftest
8414    mkdir out
8415    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8416
8417    lt_compiler_flag="-o out/conftest2.$ac_objext"
8418    # Insert the option either (1) after the last *FLAGS variable, or
8419    # (2) before a word containing "conftest.", or (3) at the end.
8420    # Note that $ac_compile itself does not contain backslashes and begins
8421    # with a dollar sign (not a hyphen), so the echo should work correctly.
8422    lt_compile=`echo "$ac_compile" | $SED \
8423    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8424    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8425    -e 's:$: $lt_compiler_flag:'`
8426    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8427    (eval "$lt_compile" 2>out/conftest.err)
8428    ac_status=$?
8429    cat out/conftest.err >&5
8430    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8432    then
8433      # The compiler can only warn and ignore the option if not recognized
8434      # So say no if there are warnings
8435      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8436      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8437      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8438        lt_cv_prog_compiler_c_o=yes
8439      fi
8440    fi
8441    chmod u+w . 2>&5
8442    $RM -r conftest*
8443    # SGI C++ compiler will create directory out/ii_files/ for
8444    # template instantiation
8445    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8446    $RM out/* && rmdir out
8447    cd ..
8448    $RM -r conftest
8449    $RM -r conftest*
8450
8451 fi
8452 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8453 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8454
8455
8456
8457
8458
8459
8460   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8461 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8462 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   lt_cv_prog_compiler_c_o=no
8466    $RM -r conftest 2>/dev/null
8467    mkdir conftest
8468    cd conftest
8469    mkdir out
8470    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8471
8472    lt_compiler_flag="-o out/conftest2.$ac_objext"
8473    # Insert the option either (1) after the last *FLAGS variable, or
8474    # (2) before a word containing "conftest.", or (3) at the end.
8475    # Note that $ac_compile itself does not contain backslashes and begins
8476    # with a dollar sign (not a hyphen), so the echo should work correctly.
8477    lt_compile=`echo "$ac_compile" | $SED \
8478    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8479    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8480    -e 's:$: $lt_compiler_flag:'`
8481    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8482    (eval "$lt_compile" 2>out/conftest.err)
8483    ac_status=$?
8484    cat out/conftest.err >&5
8485    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8487    then
8488      # The compiler can only warn and ignore the option if not recognized
8489      # So say no if there are warnings
8490      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8491      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8492      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8493        lt_cv_prog_compiler_c_o=yes
8494      fi
8495    fi
8496    chmod u+w . 2>&5
8497    $RM -r conftest*
8498    # SGI C++ compiler will create directory out/ii_files/ for
8499    # template instantiation
8500    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8501    $RM out/* && rmdir out
8502    cd ..
8503    $RM -r conftest
8504    $RM -r conftest*
8505
8506 fi
8507 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8508 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8509
8510
8511
8512
8513 hard_links="nottested"
8514 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8515   # do not overwrite the value of need_locks provided by the user
8516   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8517 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8518   hard_links=yes
8519   $RM -r conftest*
8520   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8521   touch conftest.a
8522   ln conftest.a conftest.b 2>&5 || hard_links=no
8523   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524   { echo "$as_me:$LINENO: result: $hard_links" >&5
8525 echo "${ECHO_T}$hard_links" >&6; }
8526   if test "$hard_links" = no; then
8527     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8528 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8529     need_locks=warn
8530   fi
8531 else
8532   need_locks=no
8533 fi
8534
8535
8536
8537
8538
8539
8540   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8541 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8542
8543   runpath_var=
8544   allow_undefined_flag=
8545   always_export_symbols=no
8546   archive_cmds=
8547   archive_expsym_cmds=
8548   compiler_needs_object=no
8549   enable_shared_with_static_runtimes=no
8550   export_dynamic_flag_spec=
8551   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8552   hardcode_automatic=no
8553   hardcode_direct=no
8554   hardcode_direct_absolute=no
8555   hardcode_libdir_flag_spec=
8556   hardcode_libdir_flag_spec_ld=
8557   hardcode_libdir_separator=
8558   hardcode_minus_L=no
8559   hardcode_shlibpath_var=unsupported
8560   inherit_rpath=no
8561   link_all_deplibs=unknown
8562   module_cmds=
8563   module_expsym_cmds=
8564   old_archive_from_new_cmds=
8565   old_archive_from_expsyms_cmds=
8566   thread_safe_flag_spec=
8567   whole_archive_flag_spec=
8568   # include_expsyms should be a list of space-separated symbols to be *always*
8569   # included in the symbol list
8570   include_expsyms=
8571   # exclude_expsyms can be an extended regexp of symbols to exclude
8572   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8573   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8574   # as well as any symbol that contains `d'.
8575   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8576   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8577   # platforms (ab)use it in PIC code, but their linkers get confused if
8578   # the symbol is explicitly referenced.  Since portable code cannot
8579   # rely on this symbol name, it's probably fine to never include it in
8580   # preloaded symbol tables.
8581   # Exclude shared library initialization/finalization symbols.
8582   extract_expsyms_cmds=
8583
8584   case $host_os in
8585   cygwin* | mingw* | pw32* | cegcc*)
8586     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8587     # When not using gcc, we currently assume that we are using
8588     # Microsoft Visual C++.
8589     if test "$GCC" != yes; then
8590       with_gnu_ld=no
8591     fi
8592     ;;
8593   interix*)
8594     # we just hope/assume this is gcc and not c89 (= MSVC++)
8595     with_gnu_ld=yes
8596     ;;
8597   openbsd*)
8598     with_gnu_ld=no
8599     ;;
8600   esac
8601
8602   ld_shlibs=yes
8603
8604   # On some targets, GNU ld is compatible enough with the native linker
8605   # that we're better off using the native interface for both.
8606   lt_use_gnu_ld_interface=no
8607   if test "$with_gnu_ld" = yes; then
8608     case $host_os in
8609       aix*)
8610         # The AIX port of GNU ld has always aspired to compatibility
8611         # with the native linker.  However, as the warning in the GNU ld
8612         # block says, versions before 2.19.5* couldn't really create working
8613         # shared libraries, regardless of the interface used.
8614         case `$LD -v 2>&1` in
8615           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8616           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8617           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8618           *)
8619             lt_use_gnu_ld_interface=yes
8620             ;;
8621         esac
8622         ;;
8623       *)
8624         lt_use_gnu_ld_interface=yes
8625         ;;
8626     esac
8627   fi
8628
8629   if test "$lt_use_gnu_ld_interface" = yes; then
8630     # If archive_cmds runs LD, not CC, wlarc should be empty
8631     wlarc='${wl}'
8632
8633     # Set some defaults for GNU ld with shared library support. These
8634     # are reset later if shared libraries are not supported. Putting them
8635     # here allows them to be overridden if necessary.
8636     runpath_var=LD_RUN_PATH
8637     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638     export_dynamic_flag_spec='${wl}--export-dynamic'
8639     # ancient GNU ld didn't support --whole-archive et. al.
8640     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8641       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8642     else
8643       whole_archive_flag_spec=
8644     fi
8645     supports_anon_versioning=no
8646     case `$LD -v 2>&1` in
8647       *GNU\ gold*) supports_anon_versioning=yes ;;
8648       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8649       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8650       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8651       *\ 2.11.*) ;; # other 2.11 versions
8652       *) supports_anon_versioning=yes ;;
8653     esac
8654
8655     # See if GNU ld supports shared libraries.
8656     case $host_os in
8657     aix[3-9]*)
8658       # On AIX/PPC, the GNU linker is very broken
8659       if test "$host_cpu" != ia64; then
8660         ld_shlibs=no
8661         cat <<_LT_EOF 1>&2
8662
8663 *** Warning: the GNU linker, at least up to release 2.19, is reported
8664 *** to be unable to reliably create shared libraries on AIX.
8665 *** Therefore, libtool is disabling shared libraries support.  If you
8666 *** really care for shared libraries, you may want to install binutils
8667 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8668 *** You will then need to restart the configuration process.
8669
8670 _LT_EOF
8671       fi
8672       ;;
8673
8674     amigaos*)
8675       case $host_cpu in
8676       powerpc)
8677             # see comment about AmigaOS4 .so support
8678             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8679             archive_expsym_cmds=''
8680         ;;
8681       m68k)
8682             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)'
8683             hardcode_libdir_flag_spec='-L$libdir'
8684             hardcode_minus_L=yes
8685         ;;
8686       esac
8687       ;;
8688
8689     beos*)
8690       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8691         allow_undefined_flag=unsupported
8692         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8693         # support --undefined.  This deserves some investigation.  FIXME
8694         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695       else
8696         ld_shlibs=no
8697       fi
8698       ;;
8699
8700     cygwin* | mingw* | pw32* | cegcc*)
8701       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8702       # as there is no search path for DLLs.
8703       hardcode_libdir_flag_spec='-L$libdir'
8704       export_dynamic_flag_spec='${wl}--export-all-symbols'
8705       allow_undefined_flag=unsupported
8706       always_export_symbols=no
8707       enable_shared_with_static_runtimes=yes
8708       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8709
8710       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8711         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8712         # If the export-symbols file already is a .def file (1st line
8713         # is EXPORTS), use it as is; otherwise, prepend...
8714         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8715           cp $export_symbols $output_objdir/$soname.def;
8716         else
8717           echo EXPORTS > $output_objdir/$soname.def;
8718           cat $export_symbols >> $output_objdir/$soname.def;
8719         fi~
8720         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8721       else
8722         ld_shlibs=no
8723       fi
8724       ;;
8725
8726     haiku*)
8727       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728       link_all_deplibs=yes
8729       ;;
8730
8731     interix[3-9]*)
8732       hardcode_direct=no
8733       hardcode_shlibpath_var=no
8734       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8735       export_dynamic_flag_spec='${wl}-E'
8736       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8737       # Instead, shared libraries are loaded at an image base (0x10000000 by
8738       # default) and relocated if they conflict, which is a slow very memory
8739       # consuming and fragmenting process.  To avoid this, we pick a random,
8740       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8741       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8742       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8743       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'
8744       ;;
8745
8746     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8747       tmp_diet=no
8748       if test "$host_os" = linux-dietlibc; then
8749         case $cc_basename in
8750           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8751         esac
8752       fi
8753       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8754          && test "$tmp_diet" = no
8755       then
8756         tmp_addflag=
8757         tmp_sharedflag='-shared'
8758         case $cc_basename,$host_cpu in
8759         pgcc*)                          # Portland Group C compiler
8760           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8761           tmp_addflag=' $pic_flag'
8762           ;;
8763         pgf77* | pgf90* | pgf95* | pgfortran*)
8764                                         # Portland Group f77 and f90 compilers
8765           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8766           tmp_addflag=' $pic_flag -Mnomain' ;;
8767         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8768           tmp_addflag=' -i_dynamic' ;;
8769         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8770           tmp_addflag=' -i_dynamic -nofor_main' ;;
8771         ifc* | ifort*)                  # Intel Fortran compiler
8772           tmp_addflag=' -nofor_main' ;;
8773         lf95*)                          # Lahey Fortran 8.1
8774           whole_archive_flag_spec=
8775           tmp_sharedflag='--shared' ;;
8776         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8777           tmp_sharedflag='-qmkshrobj'
8778           tmp_addflag= ;;
8779         nvcc*)  # Cuda Compiler Driver 2.2
8780           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8781           compiler_needs_object=yes
8782           ;;
8783         esac
8784         case `$CC -V 2>&1 | sed 5q` in
8785         *Sun\ C*)                       # Sun C 5.9
8786           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8787           compiler_needs_object=yes
8788           tmp_sharedflag='-G' ;;
8789         *Sun\ F*)                       # Sun Fortran 8.3
8790           tmp_sharedflag='-G' ;;
8791         esac
8792         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793
8794         if test "x$supports_anon_versioning" = xyes; then
8795           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8796             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8797             echo "local: *; };" >> $output_objdir/$libname.ver~
8798             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8799         fi
8800
8801         case $cc_basename in
8802         xlf* | bgf* | bgxlf* | mpixlf*)
8803           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8804           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8805           hardcode_libdir_flag_spec=
8806           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8807           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8808           if test "x$supports_anon_versioning" = xyes; then
8809             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8810               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8811               echo "local: *; };" >> $output_objdir/$libname.ver~
8812               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8813           fi
8814           ;;
8815         esac
8816       else
8817         ld_shlibs=no
8818       fi
8819       ;;
8820
8821     netbsd*)
8822       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8823         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8824         wlarc=
8825       else
8826         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8828       fi
8829       ;;
8830
8831     solaris*)
8832       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8833         ld_shlibs=no
8834         cat <<_LT_EOF 1>&2
8835
8836 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8837 *** create shared libraries on Solaris systems.  Therefore, libtool
8838 *** is disabling shared libraries support.  We urge you to upgrade GNU
8839 *** binutils to release 2.9.1 or newer.  Another option is to modify
8840 *** your PATH or compiler configuration so that the native linker is
8841 *** used, and then restart.
8842
8843 _LT_EOF
8844       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8846         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8847       else
8848         ld_shlibs=no
8849       fi
8850       ;;
8851
8852     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8853       case `$LD -v 2>&1` in
8854         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8855         ld_shlibs=no
8856         cat <<_LT_EOF 1>&2
8857
8858 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8859 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8860 *** is disabling shared libraries support.  We urge you to upgrade GNU
8861 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8862 *** your PATH or compiler configuration so that the native linker is
8863 *** used, and then restart.
8864
8865 _LT_EOF
8866         ;;
8867         *)
8868           # For security reasons, it is highly recommended that you always
8869           # use absolute paths for naming shared libraries, and exclude the
8870           # DT_RUNPATH tag from executables and libraries.  But doing so
8871           # requires that you compile everything twice, which is a pain.
8872           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8873             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8874             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8875             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8876           else
8877             ld_shlibs=no
8878           fi
8879         ;;
8880       esac
8881       ;;
8882
8883     sunos4*)
8884       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8885       wlarc=
8886       hardcode_direct=yes
8887       hardcode_shlibpath_var=no
8888       ;;
8889
8890     *)
8891       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8892         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8894       else
8895         ld_shlibs=no
8896       fi
8897       ;;
8898     esac
8899
8900     if test "$ld_shlibs" = no; then
8901       runpath_var=
8902       hardcode_libdir_flag_spec=
8903       export_dynamic_flag_spec=
8904       whole_archive_flag_spec=
8905     fi
8906   else
8907     # PORTME fill in a description of your system's linker (not GNU ld)
8908     case $host_os in
8909     aix3*)
8910       allow_undefined_flag=unsupported
8911       always_export_symbols=yes
8912       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'
8913       # Note: this linker hardcodes the directories in LIBPATH if there
8914       # are no directories specified by -L.
8915       hardcode_minus_L=yes
8916       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8917         # Neither direct hardcoding nor static linking is supported with a
8918         # broken collect2.
8919         hardcode_direct=unsupported
8920       fi
8921       ;;
8922
8923     aix[4-9]*)
8924       if test "$host_cpu" = ia64; then
8925         # On IA64, the linker does run time linking by default, so we don't
8926         # have to do anything special.
8927         aix_use_runtimelinking=no
8928         exp_sym_flag='-Bexport'
8929         no_entry_flag=""
8930       else
8931         # If we're using GNU nm, then we don't want the "-C" option.
8932         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8933         # Also, AIX nm treats weak defined symbols like other global
8934         # defined symbols, whereas GNU nm marks them as "W".
8935         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8936           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8937         else
8938           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'
8939         fi
8940         aix_use_runtimelinking=no
8941
8942         # Test if we are trying to use run time linking or normal
8943         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8944         # need to do runtime linking.
8945         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8946           for ld_flag in $LDFLAGS; do
8947           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8948             aix_use_runtimelinking=yes
8949             break
8950           fi
8951           done
8952           ;;
8953         esac
8954
8955         exp_sym_flag='-bexport'
8956         no_entry_flag='-bnoentry'
8957       fi
8958
8959       # When large executables or shared objects are built, AIX ld can
8960       # have problems creating the table of contents.  If linking a library
8961       # or program results in "error TOC overflow" add -mminimal-toc to
8962       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8963       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8964
8965       archive_cmds=''
8966       hardcode_direct=yes
8967       hardcode_direct_absolute=yes
8968       hardcode_libdir_separator=':'
8969       link_all_deplibs=yes
8970       file_list_spec='${wl}-f,'
8971
8972       if test "$GCC" = yes; then
8973         case $host_os in aix4.[012]|aix4.[012].*)
8974         # We only want to do this on AIX 4.2 and lower, the check
8975         # below for broken collect2 doesn't work under 4.3+
8976           collect2name=`${CC} -print-prog-name=collect2`
8977           if test -f "$collect2name" &&
8978            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8979           then
8980           # We have reworked collect2
8981           :
8982           else
8983           # We have old collect2
8984           hardcode_direct=unsupported
8985           # It fails to find uninstalled libraries when the uninstalled
8986           # path is not listed in the libpath.  Setting hardcode_minus_L
8987           # to unsupported forces relinking
8988           hardcode_minus_L=yes
8989           hardcode_libdir_flag_spec='-L$libdir'
8990           hardcode_libdir_separator=
8991           fi
8992           ;;
8993         esac
8994         shared_flag='-shared'
8995         if test "$aix_use_runtimelinking" = yes; then
8996           shared_flag="$shared_flag "'${wl}-G'
8997         fi
8998       else
8999         # not using gcc
9000         if test "$host_cpu" = ia64; then
9001         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9002         # chokes on -Wl,-G. The following line is correct:
9003           shared_flag='-G'
9004         else
9005           if test "$aix_use_runtimelinking" = yes; then
9006             shared_flag='${wl}-G'
9007           else
9008             shared_flag='${wl}-bM:SRE'
9009           fi
9010         fi
9011       fi
9012
9013       export_dynamic_flag_spec='${wl}-bexpall'
9014       # It seems that -bexpall does not export symbols beginning with
9015       # underscore (_), so it is better to generate a list of symbols to export.
9016       always_export_symbols=yes
9017       if test "$aix_use_runtimelinking" = yes; then
9018         # Warning - without using the other runtime loading flags (-brtl),
9019         # -berok will link without error, but may produce a broken library.
9020         allow_undefined_flag='-berok'
9021         # Determine the default libpath from the value encoded in an
9022         # empty executable.
9023         cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029
9030 int
9031 main ()
9032 {
9033
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9040 case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_link") 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } && {
9052          test -z "$ac_c_werror_flag" ||
9053          test ! -s conftest.err
9054        } && test -s conftest$ac_exeext &&
9055        $as_test_x conftest$ac_exeext; then
9056
9057 lt_aix_libpath_sed='
9058     /Import File Strings/,/^$/ {
9059         /^0/ {
9060             s/^0  *\(.*\)$/\1/
9061             p
9062         }
9063     }'
9064 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9065 # Check for a 64-bit object if we didn't find anything.
9066 if test -z "$aix_libpath"; then
9067   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9068 fi
9069 else
9070   echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073
9074 fi
9075
9076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9077       conftest$ac_exeext conftest.$ac_ext
9078 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9079
9080         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9081         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9082       else
9083         if test "$host_cpu" = ia64; then
9084           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9085           allow_undefined_flag="-z nodefs"
9086           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"
9087         else
9088          # Determine the default libpath from the value encoded in an
9089          # empty executable.
9090          cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096
9097 int
9098 main ()
9099 {
9100
9101   ;
9102   return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (ac_try="$ac_link"
9107 case "(($ac_try" in
9108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109   *) ac_try_echo=$ac_try;;
9110 esac
9111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9112   (eval "$ac_link") 2>conftest.er1
9113   ac_status=$?
9114   grep -v '^ *+' conftest.er1 >conftest.err
9115   rm -f conftest.er1
9116   cat conftest.err >&5
9117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118   (exit $ac_status); } && {
9119          test -z "$ac_c_werror_flag" ||
9120          test ! -s conftest.err
9121        } && test -s conftest$ac_exeext &&
9122        $as_test_x conftest$ac_exeext; then
9123
9124 lt_aix_libpath_sed='
9125     /Import File Strings/,/^$/ {
9126         /^0/ {
9127             s/^0  *\(.*\)$/\1/
9128             p
9129         }
9130     }'
9131 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9132 # Check for a 64-bit object if we didn't find anything.
9133 if test -z "$aix_libpath"; then
9134   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9135 fi
9136 else
9137   echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140
9141 fi
9142
9143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9144       conftest$ac_exeext conftest.$ac_ext
9145 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9146
9147          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9148           # Warning - without using the other run time loading flags,
9149           # -berok will link without error, but may produce a broken library.
9150           no_undefined_flag=' ${wl}-bernotok'
9151           allow_undefined_flag=' ${wl}-berok'
9152           if test "$with_gnu_ld" = yes; then
9153             # We only use this code for GNU lds that support --whole-archive.
9154             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9155           else
9156             # Exported symbols can be pulled into shared objects from archives
9157             whole_archive_flag_spec='$convenience'
9158           fi
9159           archive_cmds_need_lc=yes
9160           # This is similar to how AIX traditionally builds its shared libraries.
9161           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'
9162         fi
9163       fi
9164       ;;
9165
9166     amigaos*)
9167       case $host_cpu in
9168       powerpc)
9169             # see comment about AmigaOS4 .so support
9170             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171             archive_expsym_cmds=''
9172         ;;
9173       m68k)
9174             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)'
9175             hardcode_libdir_flag_spec='-L$libdir'
9176             hardcode_minus_L=yes
9177         ;;
9178       esac
9179       ;;
9180
9181     bsdi[45]*)
9182       export_dynamic_flag_spec=-rdynamic
9183       ;;
9184
9185     cygwin* | mingw* | pw32* | cegcc*)
9186       # When not using gcc, we currently assume that we are using
9187       # Microsoft Visual C++.
9188       # hardcode_libdir_flag_spec is actually meaningless, as there is
9189       # no search path for DLLs.
9190       hardcode_libdir_flag_spec=' '
9191       allow_undefined_flag=unsupported
9192       # Tell ltmain to make .lib files, not .a files.
9193       libext=lib
9194       # Tell ltmain to make .dll files, not .so files.
9195       shrext_cmds=".dll"
9196       # FIXME: Setting linknames here is a bad hack.
9197       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9198       # The linker will automatically build a .lib file if we build a DLL.
9199       old_archive_from_new_cmds='true'
9200       # FIXME: Should let the user specify the lib program.
9201       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9202       fix_srcfile_path='`cygpath -w "$srcfile"`'
9203       enable_shared_with_static_runtimes=yes
9204       ;;
9205
9206     darwin* | rhapsody*)
9207
9208
9209   archive_cmds_need_lc=no
9210   hardcode_direct=no
9211   hardcode_automatic=yes
9212   hardcode_shlibpath_var=unsupported
9213   if test "$lt_cv_ld_force_load" = "yes"; then
9214     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9215   else
9216     whole_archive_flag_spec=''
9217   fi
9218   link_all_deplibs=yes
9219   allow_undefined_flag="$_lt_dar_allow_undefined"
9220   case $cc_basename in
9221      ifort*) _lt_dar_can_shared=yes ;;
9222      *) _lt_dar_can_shared=$GCC ;;
9223   esac
9224   if test "$_lt_dar_can_shared" = "yes"; then
9225     output_verbose_link_cmd=func_echo_all
9226     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9227     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9228     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}"
9229     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}"
9230
9231   else
9232   ld_shlibs=no
9233   fi
9234
9235       ;;
9236
9237     dgux*)
9238       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9239       hardcode_libdir_flag_spec='-L$libdir'
9240       hardcode_shlibpath_var=no
9241       ;;
9242
9243     freebsd1*)
9244       ld_shlibs=no
9245       ;;
9246
9247     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9248     # support.  Future versions do this automatically, but an explicit c++rt0.o
9249     # does not break anything, and helps significantly (at the cost of a little
9250     # extra space).
9251     freebsd2.2*)
9252       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9253       hardcode_libdir_flag_spec='-R$libdir'
9254       hardcode_direct=yes
9255       hardcode_shlibpath_var=no
9256       ;;
9257
9258     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9259     freebsd2*)
9260       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9261       hardcode_direct=yes
9262       hardcode_minus_L=yes
9263       hardcode_shlibpath_var=no
9264       ;;
9265
9266     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9267     freebsd* | dragonfly*)
9268       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9269       hardcode_libdir_flag_spec='-R$libdir'
9270       hardcode_direct=yes
9271       hardcode_shlibpath_var=no
9272       ;;
9273
9274     hpux9*)
9275       if test "$GCC" = yes; then
9276         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'
9277       else
9278         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'
9279       fi
9280       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9281       hardcode_libdir_separator=:
9282       hardcode_direct=yes
9283
9284       # hardcode_minus_L: Not really in the search PATH,
9285       # but as the default location of the library.
9286       hardcode_minus_L=yes
9287       export_dynamic_flag_spec='${wl}-E'
9288       ;;
9289
9290     hpux10*)
9291       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9292         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9293       else
9294         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9295       fi
9296       if test "$with_gnu_ld" = no; then
9297         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9298         hardcode_libdir_flag_spec_ld='+b $libdir'
9299         hardcode_libdir_separator=:
9300         hardcode_direct=yes
9301         hardcode_direct_absolute=yes
9302         export_dynamic_flag_spec='${wl}-E'
9303         # hardcode_minus_L: Not really in the search PATH,
9304         # but as the default location of the library.
9305         hardcode_minus_L=yes
9306       fi
9307       ;;
9308
9309     hpux11*)
9310       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9311         case $host_cpu in
9312         hppa*64*)
9313           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314           ;;
9315         ia64*)
9316           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9317           ;;
9318         *)
9319           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9320           ;;
9321         esac
9322       else
9323         case $host_cpu in
9324         hppa*64*)
9325           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9326           ;;
9327         ia64*)
9328           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9329           ;;
9330         *)
9331
9332           # Older versions of the 11.00 compiler do not understand -b yet
9333           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9334           { echo "$as_me:$LINENO: checking if $CC understands -b" >&5
9335 echo $ECHO_N "checking if $CC understands -b... $ECHO_C" >&6; }
9336 if test "${lt_cv_prog_compiler__b+set}" = set; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339   lt_cv_prog_compiler__b=no
9340    save_LDFLAGS="$LDFLAGS"
9341    LDFLAGS="$LDFLAGS -b"
9342    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9343    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9344      # The linker can only warn and ignore the option if not recognized
9345      # So say no if there are warnings
9346      if test -s conftest.err; then
9347        # Append any errors to the config.log.
9348        cat conftest.err 1>&5
9349        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9350        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9351        if diff conftest.exp conftest.er2 >/dev/null; then
9352          lt_cv_prog_compiler__b=yes
9353        fi
9354      else
9355        lt_cv_prog_compiler__b=yes
9356      fi
9357    fi
9358    $RM -r conftest*
9359    LDFLAGS="$save_LDFLAGS"
9360
9361 fi
9362 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler__b" >&5
9363 echo "${ECHO_T}$lt_cv_prog_compiler__b" >&6; }
9364
9365 if test x"$lt_cv_prog_compiler__b" = xyes; then
9366     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9367 else
9368     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9369 fi
9370
9371           ;;
9372         esac
9373       fi
9374       if test "$with_gnu_ld" = no; then
9375         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9376         hardcode_libdir_separator=:
9377
9378         case $host_cpu in
9379         hppa*64*|ia64*)
9380           hardcode_direct=no
9381           hardcode_shlibpath_var=no
9382           ;;
9383         *)
9384           hardcode_direct=yes
9385           hardcode_direct_absolute=yes
9386           export_dynamic_flag_spec='${wl}-E'
9387
9388           # hardcode_minus_L: Not really in the search PATH,
9389           # but as the default location of the library.
9390           hardcode_minus_L=yes
9391           ;;
9392         esac
9393       fi
9394       ;;
9395
9396     irix5* | irix6* | nonstopux*)
9397       if test "$GCC" = yes; then
9398         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9399         # Try to use the -exported_symbol ld option, if it does not
9400         # work, assume that -exports_file does not work either and
9401         # implicitly export all symbols.
9402         save_LDFLAGS="$LDFLAGS"
9403         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9404         cat >conftest.$ac_ext <<_ACEOF
9405 int foo(void) {}
9406 _ACEOF
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (ac_try="$ac_link"
9409 case "(($ac_try" in
9410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411   *) ac_try_echo=$ac_try;;
9412 esac
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414   (eval "$ac_link") 2>conftest.er1
9415   ac_status=$?
9416   grep -v '^ *+' conftest.er1 >conftest.err
9417   rm -f conftest.er1
9418   cat conftest.err >&5
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } && {
9421          test -z "$ac_c_werror_flag" ||
9422          test ! -s conftest.err
9423        } && test -s conftest$ac_exeext &&
9424        $as_test_x conftest$ac_exeext; then
9425   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9426
9427 else
9428   echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9430
9431
9432 fi
9433
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435       conftest$ac_exeext conftest.$ac_ext
9436         LDFLAGS="$save_LDFLAGS"
9437       else
9438         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9439         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9440       fi
9441       archive_cmds_need_lc='no'
9442       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9443       hardcode_libdir_separator=:
9444       inherit_rpath=yes
9445       link_all_deplibs=yes
9446       ;;
9447
9448     netbsd*)
9449       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9450         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9451       else
9452         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9453       fi
9454       hardcode_libdir_flag_spec='-R$libdir'
9455       hardcode_direct=yes
9456       hardcode_shlibpath_var=no
9457       ;;
9458
9459     newsos6)
9460       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461       hardcode_direct=yes
9462       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463       hardcode_libdir_separator=:
9464       hardcode_shlibpath_var=no
9465       ;;
9466
9467     *nto* | *qnx*)
9468       ;;
9469
9470     openbsd*)
9471       if test -f /usr/libexec/ld.so; then
9472         hardcode_direct=yes
9473         hardcode_shlibpath_var=no
9474         hardcode_direct_absolute=yes
9475         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9476           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9477           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9478           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9479           export_dynamic_flag_spec='${wl}-E'
9480         else
9481           case $host_os in
9482            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9483              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9484              hardcode_libdir_flag_spec='-R$libdir'
9485              ;;
9486            *)
9487              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9488              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9489              ;;
9490           esac
9491         fi
9492       else
9493         ld_shlibs=no
9494       fi
9495       ;;
9496
9497     os2*)
9498       hardcode_libdir_flag_spec='-L$libdir'
9499       hardcode_minus_L=yes
9500       allow_undefined_flag=unsupported
9501       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'
9502       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9503       ;;
9504
9505     osf3*)
9506       if test "$GCC" = yes; then
9507         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9508         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9509       else
9510         allow_undefined_flag=' -expect_unresolved \*'
9511         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9512       fi
9513       archive_cmds_need_lc='no'
9514       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515       hardcode_libdir_separator=:
9516       ;;
9517
9518     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9519       if test "$GCC" = yes; then
9520         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9521         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9522         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523       else
9524         allow_undefined_flag=' -expect_unresolved \*'
9525         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9526         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~
9527         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9528
9529         # Both c and cxx compiler support -rpath directly
9530         hardcode_libdir_flag_spec='-rpath $libdir'
9531       fi
9532       archive_cmds_need_lc='no'
9533       hardcode_libdir_separator=:
9534       ;;
9535
9536     solaris*)
9537       no_undefined_flag=' -z defs'
9538       if test "$GCC" = yes; then
9539         wlarc='${wl}'
9540         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9541         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9542           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9543       else
9544         case `$CC -V 2>&1` in
9545         *"Compilers 5.0"*)
9546           wlarc=''
9547           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9549           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9550           ;;
9551         *)
9552           wlarc='${wl}'
9553           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9554           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9555           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9556           ;;
9557         esac
9558       fi
9559       hardcode_libdir_flag_spec='-R$libdir'
9560       hardcode_shlibpath_var=no
9561       case $host_os in
9562       solaris2.[0-5] | solaris2.[0-5].*) ;;
9563       *)
9564         # The compiler driver will combine and reorder linker options,
9565         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9566         # but is careful enough not to reorder.
9567         # Supported since Solaris 2.6 (maybe 2.5.1?)
9568         if test "$GCC" = yes; then
9569           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9570         else
9571           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9572         fi
9573         ;;
9574       esac
9575       link_all_deplibs=yes
9576       ;;
9577
9578     sunos4*)
9579       if test "x$host_vendor" = xsequent; then
9580         # Use $CC to link under sequent, because it throws in some extra .o
9581         # files that make .init and .fini sections work.
9582         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9583       else
9584         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9585       fi
9586       hardcode_libdir_flag_spec='-L$libdir'
9587       hardcode_direct=yes
9588       hardcode_minus_L=yes
9589       hardcode_shlibpath_var=no
9590       ;;
9591
9592     sysv4)
9593       case $host_vendor in
9594         sni)
9595           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596           hardcode_direct=yes # is this really true???
9597         ;;
9598         siemens)
9599           ## LD is ld it makes a PLAMLIB
9600           ## CC just makes a GrossModule.
9601           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9602           reload_cmds='$CC -r -o $output$reload_objs'
9603           hardcode_direct=no
9604         ;;
9605         motorola)
9606           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9608         ;;
9609       esac
9610       runpath_var='LD_RUN_PATH'
9611       hardcode_shlibpath_var=no
9612       ;;
9613
9614     sysv4.3*)
9615       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616       hardcode_shlibpath_var=no
9617       export_dynamic_flag_spec='-Bexport'
9618       ;;
9619
9620     sysv4*MP*)
9621       if test -d /usr/nec; then
9622         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623         hardcode_shlibpath_var=no
9624         runpath_var=LD_RUN_PATH
9625         hardcode_runpath_var=yes
9626         ld_shlibs=yes
9627       fi
9628       ;;
9629
9630     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9631       no_undefined_flag='${wl}-z,text'
9632       archive_cmds_need_lc=no
9633       hardcode_shlibpath_var=no
9634       runpath_var='LD_RUN_PATH'
9635
9636       if test "$GCC" = yes; then
9637         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9638         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9639       else
9640         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9641         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9642       fi
9643       ;;
9644
9645     sysv5* | sco3.2v5* | sco5v6*)
9646       # Note: We can NOT use -z defs as we might desire, because we do not
9647       # link with -lc, and that would cause any symbols used from libc to
9648       # always be unresolved, which means just about no library would
9649       # ever link correctly.  If we're not using GNU ld we use -z text
9650       # though, which does catch some bad symbols but isn't as heavy-handed
9651       # as -z defs.
9652       no_undefined_flag='${wl}-z,text'
9653       allow_undefined_flag='${wl}-z,nodefs'
9654       archive_cmds_need_lc=no
9655       hardcode_shlibpath_var=no
9656       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9657       hardcode_libdir_separator=':'
9658       link_all_deplibs=yes
9659       export_dynamic_flag_spec='${wl}-Bexport'
9660       runpath_var='LD_RUN_PATH'
9661
9662       if test "$GCC" = yes; then
9663         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9665       else
9666         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668       fi
9669       ;;
9670
9671     uts4*)
9672       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673       hardcode_libdir_flag_spec='-L$libdir'
9674       hardcode_shlibpath_var=no
9675       ;;
9676
9677     *)
9678       ld_shlibs=no
9679       ;;
9680     esac
9681
9682     if test x$host_vendor = xsni; then
9683       case $host in
9684       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9685         export_dynamic_flag_spec='${wl}-Blargedynsym'
9686         ;;
9687       esac
9688     fi
9689   fi
9690
9691 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9692 echo "${ECHO_T}$ld_shlibs" >&6; }
9693 test "$ld_shlibs" = no && can_build_shared=no
9694
9695 with_gnu_ld=$with_gnu_ld
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711 #
9712 # Do we need to explicitly link libc?
9713 #
9714 case "x$archive_cmds_need_lc" in
9715 x|xyes)
9716   # Assume -lc should be added
9717   archive_cmds_need_lc=yes
9718
9719   if test "$enable_shared" = yes && test "$GCC" = yes; then
9720     case $archive_cmds in
9721     *'~'*)
9722       # FIXME: we may have to deal with multi-command sequences.
9723       ;;
9724     '$CC '*)
9725       # Test whether the compiler implicitly links with -lc since on some
9726       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9727       # to ld, don't add -lc before -lgcc.
9728       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9729 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9730 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9731   echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733   $RM -r conftest*
9734         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9735
9736         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737   (eval $ac_compile) 2>&5
9738   ac_status=$?
9739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } 2>conftest.err; then
9741           soname=conftest
9742           lib=conftest
9743           libobjs=conftest.$ac_objext
9744           deplibs=
9745           wl=$lt_prog_compiler_wl
9746           pic_flag=$lt_prog_compiler_pic
9747           compiler_flags=-v
9748           linker_flags=-v
9749           verstring=
9750           output_objdir=.
9751           libname=conftest
9752           lt_save_allow_undefined_flag=$allow_undefined_flag
9753           allow_undefined_flag=
9754           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9755   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }
9759           then
9760             lt_cv_archive_cmds_need_lc=no
9761           else
9762             lt_cv_archive_cmds_need_lc=yes
9763           fi
9764           allow_undefined_flag=$lt_save_allow_undefined_flag
9765         else
9766           cat conftest.err 1>&5
9767         fi
9768         $RM -r conftest*
9769
9770 fi
9771 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9772 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6; }
9773       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9774       ;;
9775     esac
9776   fi
9777   ;;
9778 esac
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9937 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9938
9939 if test "$GCC" = yes; then
9940   case $host_os in
9941     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9942     *) lt_awk_arg="/^libraries:/" ;;
9943   esac
9944   case $host_os in
9945     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9946     *) lt_sed_strip_eq="s,=/,/,g" ;;
9947   esac
9948   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9949   case $lt_search_path_spec in
9950   *\;*)
9951     # if the path contains ";" then we assume it to be the separator
9952     # otherwise default to the standard path separator (i.e. ":") - it is
9953     # assumed that no part of a normal pathname contains ";" but that should
9954     # okay in the real world where ";" in dirpaths is itself problematic.
9955     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9956     ;;
9957   *)
9958     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9959     ;;
9960   esac
9961   # Ok, now we have the path, separated by spaces, we can step through it
9962   # and add multilib dir if necessary.
9963   lt_tmp_lt_search_path_spec=
9964   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9965   for lt_sys_path in $lt_search_path_spec; do
9966     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9967       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9968     else
9969       test -d "$lt_sys_path" && \
9970         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9971     fi
9972   done
9973   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9974 BEGIN {RS=" "; FS="/|\n";} {
9975   lt_foo="";
9976   lt_count=0;
9977   for (lt_i = NF; lt_i > 0; lt_i--) {
9978     if ($lt_i != "" && $lt_i != ".") {
9979       if ($lt_i == "..") {
9980         lt_count++;
9981       } else {
9982         if (lt_count == 0) {
9983           lt_foo="/" $lt_i lt_foo;
9984         } else {
9985           lt_count--;
9986         }
9987       }
9988     }
9989   }
9990   if (lt_foo != "") { lt_freq[lt_foo]++; }
9991   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9992 }'`
9993   # AWK program above erroneously prepends '/' to C:/dos/paths
9994   # for these hosts.
9995   case $host_os in
9996     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9997       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9998   esac
9999   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10000 else
10001   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10002 fi
10003 library_names_spec=
10004 libname_spec='lib$name'
10005 soname_spec=
10006 shrext_cmds=".so"
10007 postinstall_cmds=
10008 postuninstall_cmds=
10009 finish_cmds=
10010 finish_eval=
10011 shlibpath_var=
10012 shlibpath_overrides_runpath=unknown
10013 version_type=none
10014 dynamic_linker="$host_os ld.so"
10015 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10016 need_lib_prefix=unknown
10017 hardcode_into_libs=no
10018
10019 # when you set need_version to no, make sure it does not cause -set_version
10020 # flags to be left without arguments
10021 need_version=unknown
10022
10023 case $host_os in
10024 aix3*)
10025   version_type=linux
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10027   shlibpath_var=LIBPATH
10028
10029   # AIX 3 has no versioning support, so we append a major version to the name.
10030   soname_spec='${libname}${release}${shared_ext}$major'
10031   ;;
10032
10033 aix[4-9]*)
10034   version_type=linux
10035   need_lib_prefix=no
10036   need_version=no
10037   hardcode_into_libs=yes
10038   if test "$host_cpu" = ia64; then
10039     # AIX 5 supports IA64
10040     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10041     shlibpath_var=LD_LIBRARY_PATH
10042   else
10043     # With GCC up to 2.95.x, collect2 would create an import file
10044     # for dependence libraries.  The import file would start with
10045     # the line `#! .'.  This would cause the generated library to
10046     # depend on `.', always an invalid library.  This was fixed in
10047     # development snapshots of GCC prior to 3.0.
10048     case $host_os in
10049       aix4 | aix4.[01] | aix4.[01].*)
10050       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10051            echo ' yes '
10052            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10053         :
10054       else
10055         can_build_shared=no
10056       fi
10057       ;;
10058     esac
10059     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10060     # soname into executable. Probably we can add versioning support to
10061     # collect2, so additional links can be useful in future.
10062     if test "$aix_use_runtimelinking" = yes; then
10063       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10064       # instead of lib<name>.a to let people know that these are not
10065       # typical AIX shared libraries.
10066       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10067     else
10068       # We preserve .a as extension for shared libraries through AIX4.2
10069       # and later when we are not doing run time linking.
10070       library_names_spec='${libname}${release}.a $libname.a'
10071       soname_spec='${libname}${release}${shared_ext}$major'
10072     fi
10073     shlibpath_var=LIBPATH
10074   fi
10075   ;;
10076
10077 amigaos*)
10078   case $host_cpu in
10079   powerpc)
10080     # Since July 2007 AmigaOS4 officially supports .so libraries.
10081     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10082     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083     ;;
10084   m68k)
10085     library_names_spec='$libname.ixlibrary $libname.a'
10086     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10087     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10088     ;;
10089   esac
10090   ;;
10091
10092 beos*)
10093   library_names_spec='${libname}${shared_ext}'
10094   dynamic_linker="$host_os ld.so"
10095   shlibpath_var=LIBRARY_PATH
10096   ;;
10097
10098 bsdi[45]*)
10099   version_type=linux
10100   need_version=no
10101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102   soname_spec='${libname}${release}${shared_ext}$major'
10103   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10104   shlibpath_var=LD_LIBRARY_PATH
10105   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10106   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10107   # the default ld.so.conf also contains /usr/contrib/lib and
10108   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10109   # libtool to hard-code these into programs
10110   ;;
10111
10112 cygwin* | mingw* | pw32* | cegcc*)
10113   version_type=windows
10114   shrext_cmds=".dll"
10115   need_version=no
10116   need_lib_prefix=no
10117
10118   case $GCC,$host_os in
10119   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10120     library_names_spec='$libname.dll.a'
10121     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10122     postinstall_cmds='base_file=`basename \${file}`~
10123       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10124       dldir=$destdir/`dirname \$dlpath`~
10125       test -d \$dldir || mkdir -p \$dldir~
10126       $install_prog $dir/$dlname \$dldir/$dlname~
10127       chmod a+x \$dldir/$dlname~
10128       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10129         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10130       fi'
10131     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10132       dlpath=$dir/\$dldll~
10133        $RM \$dlpath'
10134     shlibpath_overrides_runpath=yes
10135
10136     case $host_os in
10137     cygwin*)
10138       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10139       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10140
10141       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10142       ;;
10143     mingw* | cegcc*)
10144       # MinGW DLLs use traditional 'lib' prefix
10145       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10146       ;;
10147     pw32*)
10148       # pw32 DLLs use 'pw' prefix rather than 'lib'
10149       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10150       ;;
10151     esac
10152     ;;
10153
10154   *)
10155     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10156     ;;
10157   esac
10158   dynamic_linker='Win32 ld.exe'
10159   # FIXME: first we should search . and the directory the executable is in
10160   shlibpath_var=PATH
10161   ;;
10162
10163 darwin* | rhapsody*)
10164   dynamic_linker="$host_os dyld"
10165   version_type=darwin
10166   need_lib_prefix=no
10167   need_version=no
10168   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
10169   soname_spec='${libname}${release}${major}$shared_ext'
10170   shlibpath_overrides_runpath=yes
10171   shlibpath_var=DYLD_LIBRARY_PATH
10172   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10173
10174   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10175   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10176   ;;
10177
10178 dgux*)
10179   version_type=linux
10180   need_lib_prefix=no
10181   need_version=no
10182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10183   soname_spec='${libname}${release}${shared_ext}$major'
10184   shlibpath_var=LD_LIBRARY_PATH
10185   ;;
10186
10187 freebsd1*)
10188   dynamic_linker=no
10189   ;;
10190
10191 freebsd* | dragonfly*)
10192   # DragonFly does not have aout.  When/if they implement a new
10193   # versioning mechanism, adjust this.
10194   if test -x /usr/bin/objformat; then
10195     objformat=`/usr/bin/objformat`
10196   else
10197     case $host_os in
10198     freebsd[123]*) objformat=aout ;;
10199     *) objformat=elf ;;
10200     esac
10201   fi
10202   version_type=freebsd-$objformat
10203   case $version_type in
10204     freebsd-elf*)
10205       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10206       need_version=no
10207       need_lib_prefix=no
10208       ;;
10209     freebsd-*)
10210       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10211       need_version=yes
10212       ;;
10213   esac
10214   shlibpath_var=LD_LIBRARY_PATH
10215   case $host_os in
10216   freebsd2*)
10217     shlibpath_overrides_runpath=yes
10218     ;;
10219   freebsd3.[01]* | freebsdelf3.[01]*)
10220     shlibpath_overrides_runpath=yes
10221     hardcode_into_libs=yes
10222     ;;
10223   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10224   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10225     shlibpath_overrides_runpath=no
10226     hardcode_into_libs=yes
10227     ;;
10228   *) # from 4.6 on, and DragonFly
10229     shlibpath_overrides_runpath=yes
10230     hardcode_into_libs=yes
10231     ;;
10232   esac
10233   ;;
10234
10235 gnu*)
10236   version_type=linux
10237   need_lib_prefix=no
10238   need_version=no
10239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10240   soname_spec='${libname}${release}${shared_ext}$major'
10241   shlibpath_var=LD_LIBRARY_PATH
10242   hardcode_into_libs=yes
10243   ;;
10244
10245 haiku*)
10246   version_type=linux
10247   need_lib_prefix=no
10248   need_version=no
10249   dynamic_linker="$host_os runtime_loader"
10250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10251   soname_spec='${libname}${release}${shared_ext}$major'
10252   shlibpath_var=LIBRARY_PATH
10253   shlibpath_overrides_runpath=yes
10254   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10255   hardcode_into_libs=yes
10256   ;;
10257
10258 hpux9* | hpux10* | hpux11*)
10259   # Give a soname corresponding to the major version so that dld.sl refuses to
10260   # link against other versions.
10261   version_type=sunos
10262   need_lib_prefix=no
10263   need_version=no
10264   case $host_cpu in
10265   ia64*)
10266     shrext_cmds='.so'
10267     hardcode_into_libs=yes
10268     dynamic_linker="$host_os dld.so"
10269     shlibpath_var=LD_LIBRARY_PATH
10270     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272     soname_spec='${libname}${release}${shared_ext}$major'
10273     if test "X$HPUX_IA64_MODE" = X32; then
10274       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10275     else
10276       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10277     fi
10278     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10279     ;;
10280   hppa*64*)
10281     shrext_cmds='.sl'
10282     hardcode_into_libs=yes
10283     dynamic_linker="$host_os dld.sl"
10284     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10285     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287     soname_spec='${libname}${release}${shared_ext}$major'
10288     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10289     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10290     ;;
10291   *)
10292     shrext_cmds='.sl'
10293     dynamic_linker="$host_os dld.sl"
10294     shlibpath_var=SHLIB_PATH
10295     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297     soname_spec='${libname}${release}${shared_ext}$major'
10298     ;;
10299   esac
10300   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10301   postinstall_cmds='chmod 555 $lib'
10302   # or fails outright, so override atomically:
10303   install_override_mode=555
10304   ;;
10305
10306 interix[3-9]*)
10307   version_type=linux
10308   need_lib_prefix=no
10309   need_version=no
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10311   soname_spec='${libname}${release}${shared_ext}$major'
10312   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10313   shlibpath_var=LD_LIBRARY_PATH
10314   shlibpath_overrides_runpath=no
10315   hardcode_into_libs=yes
10316   ;;
10317
10318 irix5* | irix6* | nonstopux*)
10319   case $host_os in
10320     nonstopux*) version_type=nonstopux ;;
10321     *)
10322         if test "$lt_cv_prog_gnu_ld" = yes; then
10323                 version_type=linux
10324         else
10325                 version_type=irix
10326         fi ;;
10327   esac
10328   need_lib_prefix=no
10329   need_version=no
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10332   case $host_os in
10333   irix5* | nonstopux*)
10334     libsuff= shlibsuff=
10335     ;;
10336   *)
10337     case $LD in # libtool.m4 will add one of these switches to LD
10338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10339       libsuff= shlibsuff= libmagic=32-bit;;
10340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10341       libsuff=32 shlibsuff=N32 libmagic=N32;;
10342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10344     *) libsuff= shlibsuff= libmagic=never-match;;
10345     esac
10346     ;;
10347   esac
10348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10349   shlibpath_overrides_runpath=no
10350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10352   hardcode_into_libs=yes
10353   ;;
10354
10355 # No shared lib support for Linux oldld, aout, or coff.
10356 linux*oldld* | linux*aout* | linux*coff*)
10357   dynamic_linker=no
10358   ;;
10359
10360 # This must be Linux ELF.
10361 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10362   version_type=linux
10363   need_lib_prefix=no
10364   need_version=no
10365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366   soname_spec='${libname}${release}${shared_ext}$major'
10367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10368   shlibpath_var=LD_LIBRARY_PATH
10369   shlibpath_overrides_runpath=no
10370
10371   # Some binutils ld are patched to set DT_RUNPATH
10372   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10373   echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375   lt_cv_shlibpath_overrides_runpath=no
10376     save_LDFLAGS=$LDFLAGS
10377     save_libdir=$libdir
10378     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10379          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10380     cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386
10387 int
10388 main ()
10389 {
10390
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402   (eval "$ac_link") 2>conftest.er1
10403   ac_status=$?
10404   grep -v '^ *+' conftest.er1 >conftest.err
10405   rm -f conftest.er1
10406   cat conftest.err >&5
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); } && {
10409          test -z "$ac_c_werror_flag" ||
10410          test ! -s conftest.err
10411        } && test -s conftest$ac_exeext &&
10412        $as_test_x conftest$ac_exeext; then
10413   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10414   lt_cv_shlibpath_overrides_runpath=yes
10415 fi
10416
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421
10422 fi
10423
10424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10425       conftest$ac_exeext conftest.$ac_ext
10426     LDFLAGS=$save_LDFLAGS
10427     libdir=$save_libdir
10428
10429 fi
10430
10431   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10432
10433   # This implies no fast_install, which is unacceptable.
10434   # Some rework will be needed to allow for fast_install
10435   # before this can be enabled.
10436   hardcode_into_libs=yes
10437
10438   # Append ld.so.conf contents to the search path
10439   if test -f /etc/ld.so.conf; then
10440     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;s/"//g;/^$/d' | tr '\n' ' '`
10441     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10442   fi
10443
10444   # We used to test for /lib/ld.so.1 and disable shared libraries on
10445   # powerpc, because MkLinux only supported shared libraries with the
10446   # GNU dynamic linker.  Since this was broken with cross compilers,
10447   # most powerpc-linux boxes support dynamic linking these days and
10448   # people can always --disable-shared, the test was removed, and we
10449   # assume the GNU/Linux dynamic linker is in use.
10450   dynamic_linker='GNU/Linux ld.so'
10451   ;;
10452
10453 netbsd*)
10454   version_type=sunos
10455   need_lib_prefix=no
10456   need_version=no
10457   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10458     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10460     dynamic_linker='NetBSD (a.out) ld.so'
10461   else
10462     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10463     soname_spec='${libname}${release}${shared_ext}$major'
10464     dynamic_linker='NetBSD ld.elf_so'
10465   fi
10466   shlibpath_var=LD_LIBRARY_PATH
10467   shlibpath_overrides_runpath=yes
10468   hardcode_into_libs=yes
10469   ;;
10470
10471 newsos6)
10472   version_type=linux
10473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10474   shlibpath_var=LD_LIBRARY_PATH
10475   shlibpath_overrides_runpath=yes
10476   ;;
10477
10478 *nto* | *qnx*)
10479   version_type=qnx
10480   need_lib_prefix=no
10481   need_version=no
10482   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483   soname_spec='${libname}${release}${shared_ext}$major'
10484   shlibpath_var=LD_LIBRARY_PATH
10485   shlibpath_overrides_runpath=no
10486   hardcode_into_libs=yes
10487   dynamic_linker='ldqnx.so'
10488   ;;
10489
10490 openbsd*)
10491   version_type=sunos
10492   sys_lib_dlsearch_path_spec="/usr/lib"
10493   need_lib_prefix=no
10494   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10495   case $host_os in
10496     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10497     *)                          need_version=no  ;;
10498   esac
10499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10500   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10501   shlibpath_var=LD_LIBRARY_PATH
10502   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10503     case $host_os in
10504       openbsd2.[89] | openbsd2.[89].*)
10505         shlibpath_overrides_runpath=no
10506         ;;
10507       *)
10508         shlibpath_overrides_runpath=yes
10509         ;;
10510       esac
10511   else
10512     shlibpath_overrides_runpath=yes
10513   fi
10514   ;;
10515
10516 os2*)
10517   libname_spec='$name'
10518   shrext_cmds=".dll"
10519   need_lib_prefix=no
10520   library_names_spec='$libname${shared_ext} $libname.a'
10521   dynamic_linker='OS/2 ld.exe'
10522   shlibpath_var=LIBPATH
10523   ;;
10524
10525 osf3* | osf4* | osf5*)
10526   version_type=osf
10527   need_lib_prefix=no
10528   need_version=no
10529   soname_spec='${libname}${release}${shared_ext}$major'
10530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531   shlibpath_var=LD_LIBRARY_PATH
10532   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10533   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10534   ;;
10535
10536 rdos*)
10537   dynamic_linker=no
10538   ;;
10539
10540 solaris*)
10541   version_type=linux
10542   need_lib_prefix=no
10543   need_version=no
10544   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545   soname_spec='${libname}${release}${shared_ext}$major'
10546   shlibpath_var=LD_LIBRARY_PATH
10547   shlibpath_overrides_runpath=yes
10548   hardcode_into_libs=yes
10549   # ldd complains unless libraries are executable
10550   postinstall_cmds='chmod +x $lib'
10551   ;;
10552
10553 sunos4*)
10554   version_type=sunos
10555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10556   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10557   shlibpath_var=LD_LIBRARY_PATH
10558   shlibpath_overrides_runpath=yes
10559   if test "$with_gnu_ld" = yes; then
10560     need_lib_prefix=no
10561   fi
10562   need_version=yes
10563   ;;
10564
10565 sysv4 | sysv4.3*)
10566   version_type=linux
10567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568   soname_spec='${libname}${release}${shared_ext}$major'
10569   shlibpath_var=LD_LIBRARY_PATH
10570   case $host_vendor in
10571     sni)
10572       shlibpath_overrides_runpath=no
10573       need_lib_prefix=no
10574       runpath_var=LD_RUN_PATH
10575       ;;
10576     siemens)
10577       need_lib_prefix=no
10578       ;;
10579     motorola)
10580       need_lib_prefix=no
10581       need_version=no
10582       shlibpath_overrides_runpath=no
10583       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10584       ;;
10585   esac
10586   ;;
10587
10588 sysv4*MP*)
10589   if test -d /usr/nec ;then
10590     version_type=linux
10591     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10592     soname_spec='$libname${shared_ext}.$major'
10593     shlibpath_var=LD_LIBRARY_PATH
10594   fi
10595   ;;
10596
10597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10598   version_type=freebsd-elf
10599   need_lib_prefix=no
10600   need_version=no
10601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10602   soname_spec='${libname}${release}${shared_ext}$major'
10603   shlibpath_var=LD_LIBRARY_PATH
10604   shlibpath_overrides_runpath=yes
10605   hardcode_into_libs=yes
10606   if test "$with_gnu_ld" = yes; then
10607     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10608   else
10609     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10610     case $host_os in
10611       sco3.2v5*)
10612         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10613         ;;
10614     esac
10615   fi
10616   sys_lib_dlsearch_path_spec='/usr/lib'
10617   ;;
10618
10619 tpf*)
10620   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10621   version_type=linux
10622   need_lib_prefix=no
10623   need_version=no
10624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625   shlibpath_var=LD_LIBRARY_PATH
10626   shlibpath_overrides_runpath=no
10627   hardcode_into_libs=yes
10628   ;;
10629
10630 uts4*)
10631   version_type=linux
10632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10633   soname_spec='${libname}${release}${shared_ext}$major'
10634   shlibpath_var=LD_LIBRARY_PATH
10635   ;;
10636
10637 *)
10638   dynamic_linker=no
10639   ;;
10640 esac
10641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10642 echo "${ECHO_T}$dynamic_linker" >&6; }
10643 test "$dynamic_linker" = no && can_build_shared=no
10644
10645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10646 if test "$GCC" = yes; then
10647   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10648 fi
10649
10650 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10651   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10652 fi
10653 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10654   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10655 fi
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
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   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10749 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10750 hardcode_action=
10751 if test -n "$hardcode_libdir_flag_spec" ||
10752    test -n "$runpath_var" ||
10753    test "X$hardcode_automatic" = "Xyes" ; then
10754
10755   # We can hardcode non-existent directories.
10756   if test "$hardcode_direct" != no &&
10757      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10758      # have to relink, otherwise we might link with an installed library
10759      # when we should be linking with a yet-to-be-installed one
10760      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10761      test "$hardcode_minus_L" != no; then
10762     # Linking always hardcodes the temporary library directory.
10763     hardcode_action=relink
10764   else
10765     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10766     hardcode_action=immediate
10767   fi
10768 else
10769   # We cannot hardcode anything, or else we can only hardcode existing
10770   # directories.
10771   hardcode_action=unsupported
10772 fi
10773 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10774 echo "${ECHO_T}$hardcode_action" >&6; }
10775
10776 if test "$hardcode_action" = relink ||
10777    test "$inherit_rpath" = yes; then
10778   # Fast installation is not supported
10779   enable_fast_install=no
10780 elif test "$shlibpath_overrides_runpath" = yes ||
10781      test "$enable_shared" = no; then
10782   # Fast installation is not necessary
10783   enable_fast_install=needless
10784 fi
10785
10786
10787
10788
10789
10790
10791   if test "x$enable_dlopen" != xyes; then
10792   enable_dlopen=unknown
10793   enable_dlopen_self=unknown
10794   enable_dlopen_self_static=unknown
10795 else
10796   lt_cv_dlopen=no
10797   lt_cv_dlopen_libs=
10798
10799   case $host_os in
10800   beos*)
10801     lt_cv_dlopen="load_add_on"
10802     lt_cv_dlopen_libs=
10803     lt_cv_dlopen_self=yes
10804     ;;
10805
10806   mingw* | pw32* | cegcc*)
10807     lt_cv_dlopen="LoadLibrary"
10808     lt_cv_dlopen_libs=
10809     ;;
10810
10811   cygwin*)
10812     lt_cv_dlopen="dlopen"
10813     lt_cv_dlopen_libs=
10814     ;;
10815
10816   darwin*)
10817   # if libdl is installed we need to link against it
10818     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10819 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10820 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10821   echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823   ac_check_lib_save_LIBS=$LIBS
10824 LIBS="-ldl  $LIBS"
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h.  */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h.  */
10831
10832 /* Override any GCC internal prototype to avoid an error.
10833    Use char because int might match the return type of a GCC
10834    builtin and then its argument prototype would still apply.  */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 char dlopen ();
10839 int
10840 main ()
10841 {
10842 return dlopen ();
10843   ;
10844   return 0;
10845 }
10846 _ACEOF
10847 rm -f conftest.$ac_objext conftest$ac_exeext
10848 if { (ac_try="$ac_link"
10849 case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854   (eval "$ac_link") 2>conftest.er1
10855   ac_status=$?
10856   grep -v '^ *+' conftest.er1 >conftest.err
10857   rm -f conftest.er1
10858   cat conftest.err >&5
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } && {
10861          test -z "$ac_c_werror_flag" ||
10862          test ! -s conftest.err
10863        } && test -s conftest$ac_exeext &&
10864        $as_test_x conftest$ac_exeext; then
10865   ac_cv_lib_dl_dlopen=yes
10866 else
10867   echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10869
10870         ac_cv_lib_dl_dlopen=no
10871 fi
10872
10873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10874       conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_check_lib_save_LIBS
10876 fi
10877 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10878 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10879 if test $ac_cv_lib_dl_dlopen = yes; then
10880   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10881 else
10882
10883     lt_cv_dlopen="dyld"
10884     lt_cv_dlopen_libs=
10885     lt_cv_dlopen_self=yes
10886
10887 fi
10888
10889     ;;
10890
10891   *)
10892     { echo "$as_me:$LINENO: checking for shl_load" >&5
10893 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10894 if test "${ac_cv_func_shl_load+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897   cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10905 #define shl_load innocuous_shl_load
10906
10907 /* System header to define __stub macros and hopefully few prototypes,
10908     which can conflict with char shl_load (); below.
10909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910     <limits.h> exists even on freestanding compilers.  */
10911
10912 #ifdef __STDC__
10913 # include <limits.h>
10914 #else
10915 # include <assert.h>
10916 #endif
10917
10918 #undef shl_load
10919
10920 /* Override any GCC internal prototype to avoid an error.
10921    Use char because int might match the return type of a GCC
10922    builtin and then its argument prototype would still apply.  */
10923 #ifdef __cplusplus
10924 extern "C"
10925 #endif
10926 char shl_load ();
10927 /* The GNU C library defines this for functions which it implements
10928     to always fail with ENOSYS.  Some functions are actually named
10929     something starting with __ and the normal name is an alias.  */
10930 #if defined __stub_shl_load || defined __stub___shl_load
10931 choke me
10932 #endif
10933
10934 int
10935 main ()
10936 {
10937 return shl_load ();
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (ac_try="$ac_link"
10944 case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_link") 2>conftest.er1
10950   ac_status=$?
10951   grep -v '^ *+' conftest.er1 >conftest.err
10952   rm -f conftest.er1
10953   cat conftest.err >&5
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } && {
10956          test -z "$ac_c_werror_flag" ||
10957          test ! -s conftest.err
10958        } && test -s conftest$ac_exeext &&
10959        $as_test_x conftest$ac_exeext; then
10960   ac_cv_func_shl_load=yes
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965         ac_cv_func_shl_load=no
10966 fi
10967
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969       conftest$ac_exeext conftest.$ac_ext
10970 fi
10971 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10972 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10973 if test $ac_cv_func_shl_load = yes; then
10974   lt_cv_dlopen="shl_load"
10975 else
10976   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10977 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10978 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10979   echo $ECHO_N "(cached) $ECHO_C" >&6
10980 else
10981   ac_check_lib_save_LIBS=$LIBS
10982 LIBS="-ldld  $LIBS"
10983 cat >conftest.$ac_ext <<_ACEOF
10984 /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989
10990 /* Override any GCC internal prototype to avoid an error.
10991    Use char because int might match the return type of a GCC
10992    builtin and then its argument prototype would still apply.  */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 char shl_load ();
10997 int
10998 main ()
10999 {
11000 return shl_load ();
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (ac_try="$ac_link"
11007 case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012   (eval "$ac_link") 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } && {
11019          test -z "$ac_c_werror_flag" ||
11020          test ! -s conftest.err
11021        } && test -s conftest$ac_exeext &&
11022        $as_test_x conftest$ac_exeext; then
11023   ac_cv_lib_dld_shl_load=yes
11024 else
11025   echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11027
11028         ac_cv_lib_dld_shl_load=no
11029 fi
11030
11031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032       conftest$ac_exeext conftest.$ac_ext
11033 LIBS=$ac_check_lib_save_LIBS
11034 fi
11035 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11036 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11037 if test $ac_cv_lib_dld_shl_load = yes; then
11038   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11039 else
11040   { echo "$as_me:$LINENO: checking for dlopen" >&5
11041 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11042 if test "${ac_cv_func_dlopen+set}" = set; then
11043   echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045   cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h.  */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h.  */
11051 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11053 #define dlopen innocuous_dlopen
11054
11055 /* System header to define __stub macros and hopefully few prototypes,
11056     which can conflict with char dlopen (); below.
11057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11058     <limits.h> exists even on freestanding compilers.  */
11059
11060 #ifdef __STDC__
11061 # include <limits.h>
11062 #else
11063 # include <assert.h>
11064 #endif
11065
11066 #undef dlopen
11067
11068 /* Override any GCC internal prototype to avoid an error.
11069    Use char because int might match the return type of a GCC
11070    builtin and then its argument prototype would still apply.  */
11071 #ifdef __cplusplus
11072 extern "C"
11073 #endif
11074 char dlopen ();
11075 /* The GNU C library defines this for functions which it implements
11076     to always fail with ENOSYS.  Some functions are actually named
11077     something starting with __ and the normal name is an alias.  */
11078 #if defined __stub_dlopen || defined __stub___dlopen
11079 choke me
11080 #endif
11081
11082 int
11083 main ()
11084 {
11085 return dlopen ();
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_link") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } && {
11104          test -z "$ac_c_werror_flag" ||
11105          test ! -s conftest.err
11106        } && test -s conftest$ac_exeext &&
11107        $as_test_x conftest$ac_exeext; then
11108   ac_cv_func_dlopen=yes
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113         ac_cv_func_dlopen=no
11114 fi
11115
11116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11117       conftest$ac_exeext conftest.$ac_ext
11118 fi
11119 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11120 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11121 if test $ac_cv_func_dlopen = yes; then
11122   lt_cv_dlopen="dlopen"
11123 else
11124   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11125 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11126 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11127   echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129   ac_check_lib_save_LIBS=$LIBS
11130 LIBS="-ldl  $LIBS"
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137
11138 /* Override any GCC internal prototype to avoid an error.
11139    Use char because int might match the return type of a GCC
11140    builtin and then its argument prototype would still apply.  */
11141 #ifdef __cplusplus
11142 extern "C"
11143 #endif
11144 char dlopen ();
11145 int
11146 main ()
11147 {
11148 return dlopen ();
11149   ;
11150   return 0;
11151 }
11152 _ACEOF
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (ac_try="$ac_link"
11155 case "(($ac_try" in
11156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157   *) ac_try_echo=$ac_try;;
11158 esac
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160   (eval "$ac_link") 2>conftest.er1
11161   ac_status=$?
11162   grep -v '^ *+' conftest.er1 >conftest.err
11163   rm -f conftest.er1
11164   cat conftest.err >&5
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); } && {
11167          test -z "$ac_c_werror_flag" ||
11168          test ! -s conftest.err
11169        } && test -s conftest$ac_exeext &&
11170        $as_test_x conftest$ac_exeext; then
11171   ac_cv_lib_dl_dlopen=yes
11172 else
11173   echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176         ac_cv_lib_dl_dlopen=no
11177 fi
11178
11179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11180       conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11182 fi
11183 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11184 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11185 if test $ac_cv_lib_dl_dlopen = yes; then
11186   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11187 else
11188   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11189 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11190 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11191   echo $ECHO_N "(cached) $ECHO_C" >&6
11192 else
11193   ac_check_lib_save_LIBS=$LIBS
11194 LIBS="-lsvld  $LIBS"
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201
11202 /* Override any GCC internal prototype to avoid an error.
11203    Use char because int might match the return type of a GCC
11204    builtin and then its argument prototype would still apply.  */
11205 #ifdef __cplusplus
11206 extern "C"
11207 #endif
11208 char dlopen ();
11209 int
11210 main ()
11211 {
11212 return dlopen ();
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest.$ac_objext conftest$ac_exeext
11218 if { (ac_try="$ac_link"
11219 case "(($ac_try" in
11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221   *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224   (eval "$ac_link") 2>conftest.er1
11225   ac_status=$?
11226   grep -v '^ *+' conftest.er1 >conftest.err
11227   rm -f conftest.er1
11228   cat conftest.err >&5
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } && {
11231          test -z "$ac_c_werror_flag" ||
11232          test ! -s conftest.err
11233        } && test -s conftest$ac_exeext &&
11234        $as_test_x conftest$ac_exeext; then
11235   ac_cv_lib_svld_dlopen=yes
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240         ac_cv_lib_svld_dlopen=no
11241 fi
11242
11243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11244       conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_lib_save_LIBS
11246 fi
11247 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11248 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11249 if test $ac_cv_lib_svld_dlopen = yes; then
11250   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11251 else
11252   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11253 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   ac_check_lib_save_LIBS=$LIBS
11258 LIBS="-ldld  $LIBS"
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h.  */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h.  */
11265
11266 /* Override any GCC internal prototype to avoid an error.
11267    Use char because int might match the return type of a GCC
11268    builtin and then its argument prototype would still apply.  */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 char dld_link ();
11273 int
11274 main ()
11275 {
11276 return dld_link ();
11277   ;
11278   return 0;
11279 }
11280 _ACEOF
11281 rm -f conftest.$ac_objext conftest$ac_exeext
11282 if { (ac_try="$ac_link"
11283 case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288   (eval "$ac_link") 2>conftest.er1
11289   ac_status=$?
11290   grep -v '^ *+' conftest.er1 >conftest.err
11291   rm -f conftest.er1
11292   cat conftest.err >&5
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); } && {
11295          test -z "$ac_c_werror_flag" ||
11296          test ! -s conftest.err
11297        } && test -s conftest$ac_exeext &&
11298        $as_test_x conftest$ac_exeext; then
11299   ac_cv_lib_dld_dld_link=yes
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304         ac_cv_lib_dld_dld_link=no
11305 fi
11306
11307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11308       conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_lib_save_LIBS
11310 fi
11311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11312 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11313 if test $ac_cv_lib_dld_dld_link = yes; then
11314   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11315 fi
11316
11317
11318 fi
11319
11320
11321 fi
11322
11323
11324 fi
11325
11326
11327 fi
11328
11329
11330 fi
11331
11332     ;;
11333   esac
11334
11335   if test "x$lt_cv_dlopen" != xno; then
11336     enable_dlopen=yes
11337   else
11338     enable_dlopen=no
11339   fi
11340
11341   case $lt_cv_dlopen in
11342   dlopen)
11343     save_CPPFLAGS="$CPPFLAGS"
11344     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11345
11346     save_LDFLAGS="$LDFLAGS"
11347     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11348
11349     save_LIBS="$LIBS"
11350     LIBS="$lt_cv_dlopen_libs $LIBS"
11351
11352     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11353 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11354 if test "${lt_cv_dlopen_self+set}" = set; then
11355   echo $ECHO_N "(cached) $ECHO_C" >&6
11356 else
11357           if test "$cross_compiling" = yes; then :
11358   lt_cv_dlopen_self=cross
11359 else
11360   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11361   lt_status=$lt_dlunknown
11362   cat > conftest.$ac_ext <<_LT_EOF
11363 #line $LINENO "configure"
11364 #include "confdefs.h"
11365
11366 #if HAVE_DLFCN_H
11367 #include <dlfcn.h>
11368 #endif
11369
11370 #include <stdio.h>
11371
11372 #ifdef RTLD_GLOBAL
11373 #  define LT_DLGLOBAL           RTLD_GLOBAL
11374 #else
11375 #  ifdef DL_GLOBAL
11376 #    define LT_DLGLOBAL         DL_GLOBAL
11377 #  else
11378 #    define LT_DLGLOBAL         0
11379 #  endif
11380 #endif
11381
11382 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11383    find out it does not work in some platform. */
11384 #ifndef LT_DLLAZY_OR_NOW
11385 #  ifdef RTLD_LAZY
11386 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11387 #  else
11388 #    ifdef DL_LAZY
11389 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11390 #    else
11391 #      ifdef RTLD_NOW
11392 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11393 #      else
11394 #        ifdef DL_NOW
11395 #          define LT_DLLAZY_OR_NOW      DL_NOW
11396 #        else
11397 #          define LT_DLLAZY_OR_NOW      0
11398 #        endif
11399 #      endif
11400 #    endif
11401 #  endif
11402 #endif
11403
11404 /* When -fvisbility=hidden is used, assume the code has been annotated
11405    correspondingly for the symbols needed.  */
11406 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11407 void fnord () __attribute__((visibility("default")));
11408 #endif
11409
11410 void fnord () { int i=42; }
11411 int main ()
11412 {
11413   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11414   int status = $lt_dlunknown;
11415
11416   if (self)
11417     {
11418       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11419       else
11420         {
11421           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11422           else puts (dlerror ());
11423         }
11424       /* dlclose (self); */
11425     }
11426   else
11427     puts (dlerror ());
11428
11429   return status;
11430 }
11431 _LT_EOF
11432   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11433   (eval $ac_link) 2>&5
11434   ac_status=$?
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11437     (./conftest; exit; ) >&5 2>/dev/null
11438     lt_status=$?
11439     case x$lt_status in
11440       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11441       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11442       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11443     esac
11444   else :
11445     # compilation failed
11446     lt_cv_dlopen_self=no
11447   fi
11448 fi
11449 rm -fr conftest*
11450
11451
11452 fi
11453 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11454 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11455
11456     if test "x$lt_cv_dlopen_self" = xyes; then
11457       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11458       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11459 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11460 if test "${lt_cv_dlopen_self_static+set}" = set; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463           if test "$cross_compiling" = yes; then :
11464   lt_cv_dlopen_self_static=cross
11465 else
11466   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11467   lt_status=$lt_dlunknown
11468   cat > conftest.$ac_ext <<_LT_EOF
11469 #line $LINENO "configure"
11470 #include "confdefs.h"
11471
11472 #if HAVE_DLFCN_H
11473 #include <dlfcn.h>
11474 #endif
11475
11476 #include <stdio.h>
11477
11478 #ifdef RTLD_GLOBAL
11479 #  define LT_DLGLOBAL           RTLD_GLOBAL
11480 #else
11481 #  ifdef DL_GLOBAL
11482 #    define LT_DLGLOBAL         DL_GLOBAL
11483 #  else
11484 #    define LT_DLGLOBAL         0
11485 #  endif
11486 #endif
11487
11488 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11489    find out it does not work in some platform. */
11490 #ifndef LT_DLLAZY_OR_NOW
11491 #  ifdef RTLD_LAZY
11492 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11493 #  else
11494 #    ifdef DL_LAZY
11495 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11496 #    else
11497 #      ifdef RTLD_NOW
11498 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11499 #      else
11500 #        ifdef DL_NOW
11501 #          define LT_DLLAZY_OR_NOW      DL_NOW
11502 #        else
11503 #          define LT_DLLAZY_OR_NOW      0
11504 #        endif
11505 #      endif
11506 #    endif
11507 #  endif
11508 #endif
11509
11510 /* When -fvisbility=hidden is used, assume the code has been annotated
11511    correspondingly for the symbols needed.  */
11512 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11513 void fnord () __attribute__((visibility("default")));
11514 #endif
11515
11516 void fnord () { int i=42; }
11517 int main ()
11518 {
11519   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11520   int status = $lt_dlunknown;
11521
11522   if (self)
11523     {
11524       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11525       else
11526         {
11527           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11528           else puts (dlerror ());
11529         }
11530       /* dlclose (self); */
11531     }
11532   else
11533     puts (dlerror ());
11534
11535   return status;
11536 }
11537 _LT_EOF
11538   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539   (eval $ac_link) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11543     (./conftest; exit; ) >&5 2>/dev/null
11544     lt_status=$?
11545     case x$lt_status in
11546       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11547       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11548       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11549     esac
11550   else :
11551     # compilation failed
11552     lt_cv_dlopen_self_static=no
11553   fi
11554 fi
11555 rm -fr conftest*
11556
11557
11558 fi
11559 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11560 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11561     fi
11562
11563     CPPFLAGS="$save_CPPFLAGS"
11564     LDFLAGS="$save_LDFLAGS"
11565     LIBS="$save_LIBS"
11566     ;;
11567   esac
11568
11569   case $lt_cv_dlopen_self in
11570   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11571   *) enable_dlopen_self=unknown ;;
11572   esac
11573
11574   case $lt_cv_dlopen_self_static in
11575   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11576   *) enable_dlopen_self_static=unknown ;;
11577   esac
11578 fi
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596 striplib=
11597 old_striplib=
11598 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11599 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11600 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11601   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11602   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11603   { echo "$as_me:$LINENO: result: yes" >&5
11604 echo "${ECHO_T}yes" >&6; }
11605 else
11606 # FIXME - insert some real tests, host_os isn't really good enough
11607   case $host_os in
11608   darwin*)
11609     if test -n "$STRIP" ; then
11610       striplib="$STRIP -x"
11611       old_striplib="$STRIP -S"
11612       { echo "$as_me:$LINENO: result: yes" >&5
11613 echo "${ECHO_T}yes" >&6; }
11614     else
11615       { echo "$as_me:$LINENO: result: no" >&5
11616 echo "${ECHO_T}no" >&6; }
11617     fi
11618     ;;
11619   *)
11620     { echo "$as_me:$LINENO: result: no" >&5
11621 echo "${ECHO_T}no" >&6; }
11622     ;;
11623   esac
11624 fi
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637   # Report which library types will actually be built
11638   { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11639 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11640   { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11641 echo "${ECHO_T}$can_build_shared" >&6; }
11642
11643   { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11644 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11645   test "$can_build_shared" = "no" && enable_shared=no
11646
11647   # On AIX, shared libraries and static libraries use the same namespace, and
11648   # are all built from PIC.
11649   case $host_os in
11650   aix3*)
11651     test "$enable_shared" = yes && enable_static=no
11652     if test -n "$RANLIB"; then
11653       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11654       postinstall_cmds='$RANLIB $lib'
11655     fi
11656     ;;
11657
11658   aix[4-9]*)
11659     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11660       test "$enable_shared" = yes && enable_static=no
11661     fi
11662     ;;
11663   esac
11664   { echo "$as_me:$LINENO: result: $enable_shared" >&5
11665 echo "${ECHO_T}$enable_shared" >&6; }
11666
11667   { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11668 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11669   # Make sure either enable_shared or enable_static is yes.
11670   test "$enable_shared" = yes || enable_static=yes
11671   { echo "$as_me:$LINENO: result: $enable_static" >&5
11672 echo "${ECHO_T}$enable_static" >&6; }
11673
11674
11675
11676
11677 fi
11678 ac_ext=c
11679 ac_cpp='$CPP $CPPFLAGS'
11680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683
11684 CC="$lt_save_CC"
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698         ac_config_commands="$ac_config_commands libtool"
11699
11700
11701
11702
11703 # Only expand once:
11704
11705
11706 ac_ext=cpp
11707 ac_cpp='$CXXCPP $CPPFLAGS'
11708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11711 if test -z "$CXX"; then
11712   if test -n "$CCC"; then
11713     CXX=$CCC
11714   else
11715     if test -n "$ac_tool_prefix"; then
11716   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11717   do
11718     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11722 if test "${ac_cv_prog_CXX+set}" = set; then
11723   echo $ECHO_N "(cached) $ECHO_C" >&6
11724 else
11725   if test -n "$CXX"; then
11726   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11727 else
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11730 do
11731   IFS=$as_save_IFS
11732   test -z "$as_dir" && as_dir=.
11733   for ac_exec_ext in '' $ac_executable_extensions; do
11734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11735     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11737     break 2
11738   fi
11739 done
11740 done
11741 IFS=$as_save_IFS
11742
11743 fi
11744 fi
11745 CXX=$ac_cv_prog_CXX
11746 if test -n "$CXX"; then
11747   { echo "$as_me:$LINENO: result: $CXX" >&5
11748 echo "${ECHO_T}$CXX" >&6; }
11749 else
11750   { echo "$as_me:$LINENO: result: no" >&5
11751 echo "${ECHO_T}no" >&6; }
11752 fi
11753
11754
11755     test -n "$CXX" && break
11756   done
11757 fi
11758 if test -z "$CXX"; then
11759   ac_ct_CXX=$CXX
11760   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11761 do
11762   # Extract the first word of "$ac_prog", so it can be a program name with args.
11763 set dummy $ac_prog; ac_word=$2
11764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11766 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11767   echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769   if test -n "$ac_ct_CXX"; then
11770   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11771 else
11772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11773 for as_dir in $PATH
11774 do
11775   IFS=$as_save_IFS
11776   test -z "$as_dir" && as_dir=.
11777   for ac_exec_ext in '' $ac_executable_extensions; do
11778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11779     ac_cv_prog_ac_ct_CXX="$ac_prog"
11780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11781     break 2
11782   fi
11783 done
11784 done
11785 IFS=$as_save_IFS
11786
11787 fi
11788 fi
11789 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11790 if test -n "$ac_ct_CXX"; then
11791   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11792 echo "${ECHO_T}$ac_ct_CXX" >&6; }
11793 else
11794   { echo "$as_me:$LINENO: result: no" >&5
11795 echo "${ECHO_T}no" >&6; }
11796 fi
11797
11798
11799   test -n "$ac_ct_CXX" && break
11800 done
11801
11802   if test "x$ac_ct_CXX" = x; then
11803     CXX="g++"
11804   else
11805     case $cross_compiling:$ac_tool_warned in
11806 yes:)
11807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11808 whose name does not start with the host triplet.  If you think this
11809 configuration is useful to you, please write to autoconf@gnu.org." >&5
11810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11811 whose name does not start with the host triplet.  If you think this
11812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11813 ac_tool_warned=yes ;;
11814 esac
11815     CXX=$ac_ct_CXX
11816   fi
11817 fi
11818
11819   fi
11820 fi
11821 # Provide some information about the compiler.
11822 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11823 ac_compiler=`set X $ac_compile; echo $2`
11824 { (ac_try="$ac_compiler --version >&5"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_compiler --version >&5") 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }
11834 { (ac_try="$ac_compiler -v >&5"
11835 case "(($ac_try" in
11836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837   *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840   (eval "$ac_compiler -v >&5") 2>&5
11841   ac_status=$?
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); }
11844 { (ac_try="$ac_compiler -V >&5"
11845 case "(($ac_try" in
11846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847   *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850   (eval "$ac_compiler -V >&5") 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }
11854
11855 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11856 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
11857 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h.  */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h.  */
11866
11867 int
11868 main ()
11869 {
11870 #ifndef __GNUC__
11871        choke me
11872 #endif
11873
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 rm -f conftest.$ac_objext
11879 if { (ac_try="$ac_compile"
11880 case "(($ac_try" in
11881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882   *) ac_try_echo=$ac_try;;
11883 esac
11884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885   (eval "$ac_compile") 2>conftest.er1
11886   ac_status=$?
11887   grep -v '^ *+' conftest.er1 >conftest.err
11888   rm -f conftest.er1
11889   cat conftest.err >&5
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); } && {
11892          test -z "$ac_cxx_werror_flag" ||
11893          test ! -s conftest.err
11894        } && test -s conftest.$ac_objext; then
11895   ac_compiler_gnu=yes
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900         ac_compiler_gnu=no
11901 fi
11902
11903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11904 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11905
11906 fi
11907 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11908 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
11909 GXX=`test $ac_compiler_gnu = yes && echo yes`
11910 ac_test_CXXFLAGS=${CXXFLAGS+set}
11911 ac_save_CXXFLAGS=$CXXFLAGS
11912 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11913 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
11914 if test "${ac_cv_prog_cxx_g+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11918    ac_cxx_werror_flag=yes
11919    ac_cv_prog_cxx_g=no
11920    CXXFLAGS="-g"
11921    cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927
11928 int
11929 main ()
11930 {
11931
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest.$ac_objext
11937 if { (ac_try="$ac_compile"
11938 case "(($ac_try" in
11939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940   *) ac_try_echo=$ac_try;;
11941 esac
11942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11943   (eval "$ac_compile") 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } && {
11950          test -z "$ac_cxx_werror_flag" ||
11951          test ! -s conftest.err
11952        } && test -s conftest.$ac_objext; then
11953   ac_cv_prog_cxx_g=yes
11954 else
11955   echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11957
11958         CXXFLAGS=""
11959       cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965
11966 int
11967 main ()
11968 {
11969
11970   ;
11971   return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext
11975 if { (ac_try="$ac_compile"
11976 case "(($ac_try" in
11977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978   *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981   (eval "$ac_compile") 2>conftest.er1
11982   ac_status=$?
11983   grep -v '^ *+' conftest.er1 >conftest.err
11984   rm -f conftest.er1
11985   cat conftest.err >&5
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } && {
11988          test -z "$ac_cxx_werror_flag" ||
11989          test ! -s conftest.err
11990        } && test -s conftest.$ac_objext; then
11991   :
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11997          CXXFLAGS="-g"
11998          cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004
12005 int
12006 main ()
12007 {
12008
12009   ;
12010   return 0;
12011 }
12012 _ACEOF
12013 rm -f conftest.$ac_objext
12014 if { (ac_try="$ac_compile"
12015 case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_compile") 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } && {
12027          test -z "$ac_cxx_werror_flag" ||
12028          test ! -s conftest.err
12029        } && test -s conftest.$ac_objext; then
12030   ac_cv_prog_cxx_g=yes
12031 else
12032   echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12034
12035
12036 fi
12037
12038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039 fi
12040
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12042 fi
12043
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12046 fi
12047 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12048 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
12049 if test "$ac_test_CXXFLAGS" = set; then
12050   CXXFLAGS=$ac_save_CXXFLAGS
12051 elif test $ac_cv_prog_cxx_g = yes; then
12052   if test "$GXX" = yes; then
12053     CXXFLAGS="-g -O2"
12054   else
12055     CXXFLAGS="-g"
12056   fi
12057 else
12058   if test "$GXX" = yes; then
12059     CXXFLAGS="-O2"
12060   else
12061     CXXFLAGS=
12062   fi
12063 fi
12064 ac_ext=c
12065 ac_cpp='$CPP $CPPFLAGS'
12066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12069
12070 depcc="$CXX"  am_compiler_list=
12071
12072 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12073 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12074 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12075   echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12078   # We make a subdir and do the tests there.  Otherwise we can end up
12079   # making bogus files that we don't know about and never remove.  For
12080   # instance it was reported that on HP-UX the gcc test will end up
12081   # making a dummy file named `D' -- because `-MD' means `put the output
12082   # in D'.
12083   mkdir conftest.dir
12084   # Copy depcomp to subdir because otherwise we won't find it if we're
12085   # using a relative directory.
12086   cp "$am_depcomp" conftest.dir
12087   cd conftest.dir
12088   # We will build objects and dependencies in a subdirectory because
12089   # it helps to detect inapplicable dependency modes.  For instance
12090   # both Tru64's cc and ICC support -MD to output dependencies as a
12091   # side effect of compilation, but ICC will put the dependencies in
12092   # the current directory while Tru64 will put them in the object
12093   # directory.
12094   mkdir sub
12095
12096   am_cv_CXX_dependencies_compiler_type=none
12097   if test "$am_compiler_list" = ""; then
12098      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12099   fi
12100   for depmode in $am_compiler_list; do
12101     # Setup a source with many dependencies, because some compilers
12102     # like to wrap large dependency lists on column 80 (with \), and
12103     # we should not choose a depcomp mode which is confused by this.
12104     #
12105     # We need to recreate these files for each test, as the compiler may
12106     # overwrite some of them when testing with obscure command lines.
12107     # This happens at least with the AIX C compiler.
12108     : > sub/conftest.c
12109     for i in 1 2 3 4 5 6; do
12110       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12111       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12112       # Solaris 8's {/usr,}/bin/sh.
12113       touch sub/conftst$i.h
12114     done
12115     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12116
12117     case $depmode in
12118     nosideeffect)
12119       # after this tag, mechanisms are not by side-effect, so they'll
12120       # only be used when explicitly requested
12121       if test "x$enable_dependency_tracking" = xyes; then
12122         continue
12123       else
12124         break
12125       fi
12126       ;;
12127     none) break ;;
12128     esac
12129     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12130     # mode.  It turns out that the SunPro C++ compiler does not properly
12131     # handle `-M -o', and we need to detect this.
12132     if depmode=$depmode \
12133        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12134        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12135        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12136          >/dev/null 2>conftest.err &&
12137        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12138        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12139        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12140        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12141       # icc doesn't choke on unknown options, it will just issue warnings
12142       # or remarks (even with -Werror).  So we grep stderr for any message
12143       # that says an option was ignored or not supported.
12144       # When given -MP, icc 7.0 and 7.1 complain thusly:
12145       #   icc: Command line warning: ignoring option '-M'; no argument required
12146       # The diagnosis changed in icc 8.0:
12147       #   icc: Command line remark: option '-MP' not supported
12148       if (grep 'ignoring option' conftest.err ||
12149           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12150         am_cv_CXX_dependencies_compiler_type=$depmode
12151         break
12152       fi
12153     fi
12154   done
12155
12156   cd ..
12157   rm -rf conftest.dir
12158 else
12159   am_cv_CXX_dependencies_compiler_type=none
12160 fi
12161
12162 fi
12163 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
12164 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
12165 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12166
12167  if
12168   test "x$enable_dependency_tracking" != xno \
12169   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12170   am__fastdepCXX_TRUE=
12171   am__fastdepCXX_FALSE='#'
12172 else
12173   am__fastdepCXX_TRUE='#'
12174   am__fastdepCXX_FALSE=
12175 fi
12176
12177
12178
12179       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12180     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12181     (test "X$CXX" != "Xg++"))) ; then
12182   ac_ext=cpp
12183 ac_cpp='$CXXCPP $CPPFLAGS'
12184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12187 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12188 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12189 if test -z "$CXXCPP"; then
12190   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 else
12193       # Double quotes because CXXCPP needs to be expanded
12194     for CXXCPP in "$CXX -E" "/lib/cpp"
12195     do
12196       ac_preproc_ok=false
12197 for ac_cxx_preproc_warn_flag in '' yes
12198 do
12199   # Use a header file that comes with gcc, so configuring glibc
12200   # with a fresh cross-compiler works.
12201   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12202   # <limits.h> exists even on freestanding compilers.
12203   # On the NeXT, cc -E runs the code through the compiler's parser,
12204   # not just through cpp. "Syntax error" is here to catch this case.
12205   cat >conftest.$ac_ext <<_ACEOF
12206 /* confdefs.h.  */
12207 _ACEOF
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h.  */
12211 #ifdef __STDC__
12212 # include <limits.h>
12213 #else
12214 # include <assert.h>
12215 #endif
12216                      Syntax error
12217 _ACEOF
12218 if { (ac_try="$ac_cpp conftest.$ac_ext"
12219 case "(($ac_try" in
12220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221   *) ac_try_echo=$ac_try;;
12222 esac
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12225   ac_status=$?
12226   grep -v '^ *+' conftest.er1 >conftest.err
12227   rm -f conftest.er1
12228   cat conftest.err >&5
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); } >/dev/null && {
12231          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12232          test ! -s conftest.err
12233        }; then
12234   :
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239   # Broken: fails on valid input.
12240 continue
12241 fi
12242
12243 rm -f conftest.err conftest.$ac_ext
12244
12245   # OK, works on sane cases.  Now check whether nonexistent headers
12246   # can be detected and how.
12247   cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h.  */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h.  */
12253 #include <ac_nonexistent.h>
12254 _ACEOF
12255 if { (ac_try="$ac_cpp conftest.$ac_ext"
12256 case "(($ac_try" in
12257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258   *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12262   ac_status=$?
12263   grep -v '^ *+' conftest.er1 >conftest.err
12264   rm -f conftest.er1
12265   cat conftest.err >&5
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } >/dev/null && {
12268          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12269          test ! -s conftest.err
12270        }; then
12271   # Broken: success on invalid input.
12272 continue
12273 else
12274   echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277   # Passes both tests.
12278 ac_preproc_ok=:
12279 break
12280 fi
12281
12282 rm -f conftest.err conftest.$ac_ext
12283
12284 done
12285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12286 rm -f conftest.err conftest.$ac_ext
12287 if $ac_preproc_ok; then
12288   break
12289 fi
12290
12291     done
12292     ac_cv_prog_CXXCPP=$CXXCPP
12293
12294 fi
12295   CXXCPP=$ac_cv_prog_CXXCPP
12296 else
12297   ac_cv_prog_CXXCPP=$CXXCPP
12298 fi
12299 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12300 echo "${ECHO_T}$CXXCPP" >&6; }
12301 ac_preproc_ok=false
12302 for ac_cxx_preproc_warn_flag in '' yes
12303 do
12304   # Use a header file that comes with gcc, so configuring glibc
12305   # with a fresh cross-compiler works.
12306   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12307   # <limits.h> exists even on freestanding compilers.
12308   # On the NeXT, cc -E runs the code through the compiler's parser,
12309   # not just through cpp. "Syntax error" is here to catch this case.
12310   cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h.  */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h.  */
12316 #ifdef __STDC__
12317 # include <limits.h>
12318 #else
12319 # include <assert.h>
12320 #endif
12321                      Syntax error
12322 _ACEOF
12323 if { (ac_try="$ac_cpp conftest.$ac_ext"
12324 case "(($ac_try" in
12325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12326   *) ac_try_echo=$ac_try;;
12327 esac
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12330   ac_status=$?
12331   grep -v '^ *+' conftest.er1 >conftest.err
12332   rm -f conftest.er1
12333   cat conftest.err >&5
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); } >/dev/null && {
12336          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12337          test ! -s conftest.err
12338        }; then
12339   :
12340 else
12341   echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12343
12344   # Broken: fails on valid input.
12345 continue
12346 fi
12347
12348 rm -f conftest.err conftest.$ac_ext
12349
12350   # OK, works on sane cases.  Now check whether nonexistent headers
12351   # can be detected and how.
12352   cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h.  */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h.  */
12358 #include <ac_nonexistent.h>
12359 _ACEOF
12360 if { (ac_try="$ac_cpp conftest.$ac_ext"
12361 case "(($ac_try" in
12362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363   *) ac_try_echo=$ac_try;;
12364 esac
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12367   ac_status=$?
12368   grep -v '^ *+' conftest.er1 >conftest.err
12369   rm -f conftest.er1
12370   cat conftest.err >&5
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } >/dev/null && {
12373          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12374          test ! -s conftest.err
12375        }; then
12376   # Broken: success on invalid input.
12377 continue
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382   # Passes both tests.
12383 ac_preproc_ok=:
12384 break
12385 fi
12386
12387 rm -f conftest.err conftest.$ac_ext
12388
12389 done
12390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12391 rm -f conftest.err conftest.$ac_ext
12392 if $ac_preproc_ok; then
12393   :
12394 else
12395   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12396 See \`config.log' for more details." >&5
12397 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12398 See \`config.log' for more details." >&2;}
12399    { (exit 1); exit 1; }; }
12400 fi
12401
12402 ac_ext=c
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12407
12408 else
12409   _lt_caught_CXX_error=yes
12410 fi
12411
12412 ac_ext=cpp
12413 ac_cpp='$CXXCPP $CPPFLAGS'
12414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12417
12418 archive_cmds_need_lc_CXX=no
12419 allow_undefined_flag_CXX=
12420 always_export_symbols_CXX=no
12421 archive_expsym_cmds_CXX=
12422 compiler_needs_object_CXX=no
12423 export_dynamic_flag_spec_CXX=
12424 hardcode_direct_CXX=no
12425 hardcode_direct_absolute_CXX=no
12426 hardcode_libdir_flag_spec_CXX=
12427 hardcode_libdir_flag_spec_ld_CXX=
12428 hardcode_libdir_separator_CXX=
12429 hardcode_minus_L_CXX=no
12430 hardcode_shlibpath_var_CXX=unsupported
12431 hardcode_automatic_CXX=no
12432 inherit_rpath_CXX=no
12433 module_cmds_CXX=
12434 module_expsym_cmds_CXX=
12435 link_all_deplibs_CXX=unknown
12436 old_archive_cmds_CXX=$old_archive_cmds
12437 reload_flag_CXX=$reload_flag
12438 reload_cmds_CXX=$reload_cmds
12439 no_undefined_flag_CXX=
12440 whole_archive_flag_spec_CXX=
12441 enable_shared_with_static_runtimes_CXX=no
12442
12443 # Source file extension for C++ test sources.
12444 ac_ext=cpp
12445
12446 # Object file extension for compiled C++ test sources.
12447 objext=o
12448 objext_CXX=$objext
12449
12450 # No sense in running all these tests if we already determined that
12451 # the CXX compiler isn't working.  Some variables (like enable_shared)
12452 # are currently assumed to apply to all compilers on this platform,
12453 # and will be corrupted by setting them based on a non-working compiler.
12454 if test "$_lt_caught_CXX_error" != yes; then
12455   # Code to be used in simple compile tests
12456   lt_simple_compile_test_code="int some_variable = 0;"
12457
12458   # Code to be used in simple link tests
12459   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12460
12461   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12462
12463
12464
12465
12466
12467
12468 # If no C compiler was specified, use CC.
12469 LTCC=${LTCC-"$CC"}
12470
12471 # If no C compiler flags were specified, use CFLAGS.
12472 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12473
12474 # Allow CC to be a program name with arguments.
12475 compiler=$CC
12476
12477
12478   # save warnings/boilerplate of simple test code
12479   ac_outfile=conftest.$ac_objext
12480 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12481 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12482 _lt_compiler_boilerplate=`cat conftest.err`
12483 $RM -r conftest*
12484
12485   ac_outfile=conftest.$ac_objext
12486 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12487 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12488 _lt_linker_boilerplate=`cat conftest.err`
12489 $RM -r conftest*
12490
12491
12492   # Allow CC to be a program name with arguments.
12493   lt_save_CC=$CC
12494   lt_save_LD=$LD
12495   lt_save_GCC=$GCC
12496   GCC=$GXX
12497   lt_save_with_gnu_ld=$with_gnu_ld
12498   lt_save_path_LD=$lt_cv_path_LD
12499   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12500     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12501   else
12502     $as_unset lt_cv_prog_gnu_ld
12503   fi
12504   if test -n "${lt_cv_path_LDCXX+set}"; then
12505     lt_cv_path_LD=$lt_cv_path_LDCXX
12506   else
12507     $as_unset lt_cv_path_LD
12508   fi
12509   test -z "${LDCXX+set}" || LD=$LDCXX
12510   CC=${CXX-"c++"}
12511   compiler=$CC
12512   compiler_CXX=$CC
12513   for cc_temp in $compiler""; do
12514   case $cc_temp in
12515     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12516     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12517     \-*) ;;
12518     *) break;;
12519   esac
12520 done
12521 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12522
12523
12524   if test -n "$compiler"; then
12525     # We don't want -fno-exception when compiling C++ code, so set the
12526     # no_builtin_flag separately
12527     if test "$GXX" = yes; then
12528       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12529     else
12530       lt_prog_compiler_no_builtin_flag_CXX=
12531     fi
12532
12533     if test "$GXX" = yes; then
12534       # Set up default GNU C++ configuration
12535
12536
12537
12538 # Check whether --with-gnu-ld was given.
12539 if test "${with_gnu_ld+set}" = set; then
12540   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12541 else
12542   with_gnu_ld=no
12543 fi
12544
12545 ac_prog=ld
12546 if test "$GCC" = yes; then
12547   # Check if gcc -print-prog-name=ld gives a path.
12548   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12549 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12550   case $host in
12551   *-*-mingw*)
12552     # gcc leaves a trailing carriage return which upsets mingw
12553     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12554   *)
12555     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12556   esac
12557   case $ac_prog in
12558     # Accept absolute paths.
12559     [\\/]* | ?:[\\/]*)
12560       re_direlt='/[^/][^/]*/\.\./'
12561       # Canonicalize the pathname of ld
12562       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12563       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12564         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12565       done
12566       test -z "$LD" && LD="$ac_prog"
12567       ;;
12568   "")
12569     # If it fails, then pretend we aren't using GCC.
12570     ac_prog=ld
12571     ;;
12572   *)
12573     # If it is relative, then search for the first ld in PATH.
12574     with_gnu_ld=unknown
12575     ;;
12576   esac
12577 elif test "$with_gnu_ld" = yes; then
12578   { echo "$as_me:$LINENO: checking for GNU ld" >&5
12579 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12580 else
12581   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12582 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12583 fi
12584 if test "${lt_cv_path_LD+set}" = set; then
12585   echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587   if test -z "$LD"; then
12588   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12589   for ac_dir in $PATH; do
12590     IFS="$lt_save_ifs"
12591     test -z "$ac_dir" && ac_dir=.
12592     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12593       lt_cv_path_LD="$ac_dir/$ac_prog"
12594       # Check to see if the program is GNU ld.  I'd rather use --version,
12595       # but apparently some variants of GNU ld only accept -v.
12596       # Break only if it was the GNU/non-GNU ld that we prefer.
12597       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12598       *GNU* | *'with BFD'*)
12599         test "$with_gnu_ld" != no && break
12600         ;;
12601       *)
12602         test "$with_gnu_ld" != yes && break
12603         ;;
12604       esac
12605     fi
12606   done
12607   IFS="$lt_save_ifs"
12608 else
12609   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12610 fi
12611 fi
12612
12613 LD="$lt_cv_path_LD"
12614 if test -n "$LD"; then
12615   { echo "$as_me:$LINENO: result: $LD" >&5
12616 echo "${ECHO_T}$LD" >&6; }
12617 else
12618   { echo "$as_me:$LINENO: result: no" >&5
12619 echo "${ECHO_T}no" >&6; }
12620 fi
12621 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12622 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12623    { (exit 1); exit 1; }; }
12624 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12625 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12626 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12627   echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12630 case `$LD -v 2>&1 </dev/null` in
12631 *GNU* | *'with BFD'*)
12632   lt_cv_prog_gnu_ld=yes
12633   ;;
12634 *)
12635   lt_cv_prog_gnu_ld=no
12636   ;;
12637 esac
12638 fi
12639 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12640 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12641 with_gnu_ld=$lt_cv_prog_gnu_ld
12642
12643
12644
12645
12646
12647
12648
12649       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12650       # archiving commands below assume that GNU ld is being used.
12651       if test "$with_gnu_ld" = yes; then
12652         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12653         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'
12654
12655         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12656         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12657
12658         # If archive_cmds runs LD, not CC, wlarc should be empty
12659         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12660         #     investigate it a little bit more. (MM)
12661         wlarc='${wl}'
12662
12663         # ancient GNU ld didn't support --whole-archive et. al.
12664         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12665           $GREP 'no-whole-archive' > /dev/null; then
12666           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12667         else
12668           whole_archive_flag_spec_CXX=
12669         fi
12670       else
12671         with_gnu_ld=no
12672         wlarc=
12673
12674         # A generic and very simple default shared library creation
12675         # command for GNU C++ for the case where it uses the native
12676         # linker, instead of GNU ld.  If possible, this setting should
12677         # overridden to take advantage of the native linker features on
12678         # the platform it is being used on.
12679         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12680       fi
12681
12682       # Commands to make compiler produce verbose output that lists
12683       # what "hidden" libraries, object files and flags are used when
12684       # linking a shared library.
12685       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12686
12687     else
12688       GXX=no
12689       with_gnu_ld=no
12690       wlarc=
12691     fi
12692
12693     # PORTME: fill in a description of your system's C++ link characteristics
12694     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12695 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12696     ld_shlibs_CXX=yes
12697     case $host_os in
12698       aix3*)
12699         # FIXME: insert proper C++ library support
12700         ld_shlibs_CXX=no
12701         ;;
12702       aix[4-9]*)
12703         if test "$host_cpu" = ia64; then
12704           # On IA64, the linker does run time linking by default, so we don't
12705           # have to do anything special.
12706           aix_use_runtimelinking=no
12707           exp_sym_flag='-Bexport'
12708           no_entry_flag=""
12709         else
12710           aix_use_runtimelinking=no
12711
12712           # Test if we are trying to use run time linking or normal
12713           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12714           # need to do runtime linking.
12715           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12716             for ld_flag in $LDFLAGS; do
12717               case $ld_flag in
12718               *-brtl*)
12719                 aix_use_runtimelinking=yes
12720                 break
12721                 ;;
12722               esac
12723             done
12724             ;;
12725           esac
12726
12727           exp_sym_flag='-bexport'
12728           no_entry_flag='-bnoentry'
12729         fi
12730
12731         # When large executables or shared objects are built, AIX ld can
12732         # have problems creating the table of contents.  If linking a library
12733         # or program results in "error TOC overflow" add -mminimal-toc to
12734         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12735         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12736
12737         archive_cmds_CXX=''
12738         hardcode_direct_CXX=yes
12739         hardcode_direct_absolute_CXX=yes
12740         hardcode_libdir_separator_CXX=':'
12741         link_all_deplibs_CXX=yes
12742         file_list_spec_CXX='${wl}-f,'
12743
12744         if test "$GXX" = yes; then
12745           case $host_os in aix4.[012]|aix4.[012].*)
12746           # We only want to do this on AIX 4.2 and lower, the check
12747           # below for broken collect2 doesn't work under 4.3+
12748           collect2name=`${CC} -print-prog-name=collect2`
12749           if test -f "$collect2name" &&
12750              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12751           then
12752             # We have reworked collect2
12753             :
12754           else
12755             # We have old collect2
12756             hardcode_direct_CXX=unsupported
12757             # It fails to find uninstalled libraries when the uninstalled
12758             # path is not listed in the libpath.  Setting hardcode_minus_L
12759             # to unsupported forces relinking
12760             hardcode_minus_L_CXX=yes
12761             hardcode_libdir_flag_spec_CXX='-L$libdir'
12762             hardcode_libdir_separator_CXX=
12763           fi
12764           esac
12765           shared_flag='-shared'
12766           if test "$aix_use_runtimelinking" = yes; then
12767             shared_flag="$shared_flag "'${wl}-G'
12768           fi
12769         else
12770           # not using gcc
12771           if test "$host_cpu" = ia64; then
12772           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12773           # chokes on -Wl,-G. The following line is correct:
12774           shared_flag='-G'
12775           else
12776             if test "$aix_use_runtimelinking" = yes; then
12777               shared_flag='${wl}-G'
12778             else
12779               shared_flag='${wl}-bM:SRE'
12780             fi
12781           fi
12782         fi
12783
12784         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12785         # It seems that -bexpall does not export symbols beginning with
12786         # underscore (_), so it is better to generate a list of symbols to
12787         # export.
12788         always_export_symbols_CXX=yes
12789         if test "$aix_use_runtimelinking" = yes; then
12790           # Warning - without using the other runtime loading flags (-brtl),
12791           # -berok will link without error, but may produce a broken library.
12792           allow_undefined_flag_CXX='-berok'
12793           # Determine the default libpath from the value encoded in an empty
12794           # executable.
12795           cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801
12802 int
12803 main ()
12804 {
12805
12806   ;
12807   return 0;
12808 }
12809 _ACEOF
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (ac_try="$ac_link"
12812 case "(($ac_try" in
12813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814   *) ac_try_echo=$ac_try;;
12815 esac
12816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817   (eval "$ac_link") 2>conftest.er1
12818   ac_status=$?
12819   grep -v '^ *+' conftest.er1 >conftest.err
12820   rm -f conftest.er1
12821   cat conftest.err >&5
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } && {
12824          test -z "$ac_cxx_werror_flag" ||
12825          test ! -s conftest.err
12826        } && test -s conftest$ac_exeext &&
12827        $as_test_x conftest$ac_exeext; then
12828
12829 lt_aix_libpath_sed='
12830     /Import File Strings/,/^$/ {
12831         /^0/ {
12832             s/^0  *\(.*\)$/\1/
12833             p
12834         }
12835     }'
12836 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12837 # Check for a 64-bit object if we didn't find anything.
12838 if test -z "$aix_libpath"; then
12839   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12840 fi
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845
12846 fi
12847
12848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12849       conftest$ac_exeext conftest.$ac_ext
12850 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12851
12852           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12853
12854           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12855         else
12856           if test "$host_cpu" = ia64; then
12857             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12858             allow_undefined_flag_CXX="-z nodefs"
12859             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"
12860           else
12861             # Determine the default libpath from the value encoded in an
12862             # empty executable.
12863             cat >conftest.$ac_ext <<_ACEOF
12864 /* confdefs.h.  */
12865 _ACEOF
12866 cat confdefs.h >>conftest.$ac_ext
12867 cat >>conftest.$ac_ext <<_ACEOF
12868 /* end confdefs.h.  */
12869
12870 int
12871 main ()
12872 {
12873
12874   ;
12875   return 0;
12876 }
12877 _ACEOF
12878 rm -f conftest.$ac_objext conftest$ac_exeext
12879 if { (ac_try="$ac_link"
12880 case "(($ac_try" in
12881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882   *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885   (eval "$ac_link") 2>conftest.er1
12886   ac_status=$?
12887   grep -v '^ *+' conftest.er1 >conftest.err
12888   rm -f conftest.er1
12889   cat conftest.err >&5
12890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891   (exit $ac_status); } && {
12892          test -z "$ac_cxx_werror_flag" ||
12893          test ! -s conftest.err
12894        } && test -s conftest$ac_exeext &&
12895        $as_test_x conftest$ac_exeext; then
12896
12897 lt_aix_libpath_sed='
12898     /Import File Strings/,/^$/ {
12899         /^0/ {
12900             s/^0  *\(.*\)$/\1/
12901             p
12902         }
12903     }'
12904 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12905 # Check for a 64-bit object if we didn't find anything.
12906 if test -z "$aix_libpath"; then
12907   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12908 fi
12909 else
12910   echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12912
12913
12914 fi
12915
12916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12917       conftest$ac_exeext conftest.$ac_ext
12918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12919
12920             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12921             # Warning - without using the other run time loading flags,
12922             # -berok will link without error, but may produce a broken library.
12923             no_undefined_flag_CXX=' ${wl}-bernotok'
12924             allow_undefined_flag_CXX=' ${wl}-berok'
12925             if test "$with_gnu_ld" = yes; then
12926               # We only use this code for GNU lds that support --whole-archive.
12927               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12928             else
12929               # Exported symbols can be pulled into shared objects from archives
12930               whole_archive_flag_spec_CXX='$convenience'
12931             fi
12932             archive_cmds_need_lc_CXX=yes
12933             # This is similar to how AIX traditionally builds its shared
12934             # libraries.
12935             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'
12936           fi
12937         fi
12938         ;;
12939
12940       beos*)
12941         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12942           allow_undefined_flag_CXX=unsupported
12943           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12944           # support --undefined.  This deserves some investigation.  FIXME
12945           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12946         else
12947           ld_shlibs_CXX=no
12948         fi
12949         ;;
12950
12951       chorus*)
12952         case $cc_basename in
12953           *)
12954           # FIXME: insert proper C++ library support
12955           ld_shlibs_CXX=no
12956           ;;
12957         esac
12958         ;;
12959
12960       cygwin* | mingw* | pw32* | cegcc*)
12961         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12962         # as there is no search path for DLLs.
12963         hardcode_libdir_flag_spec_CXX='-L$libdir'
12964         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12965         allow_undefined_flag_CXX=unsupported
12966         always_export_symbols_CXX=no
12967         enable_shared_with_static_runtimes_CXX=yes
12968
12969         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12970           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'
12971           # If the export-symbols file already is a .def file (1st line
12972           # is EXPORTS), use it as is; otherwise, prepend...
12973           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12974             cp $export_symbols $output_objdir/$soname.def;
12975           else
12976             echo EXPORTS > $output_objdir/$soname.def;
12977             cat $export_symbols >> $output_objdir/$soname.def;
12978           fi~
12979           $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'
12980         else
12981           ld_shlibs_CXX=no
12982         fi
12983         ;;
12984       darwin* | rhapsody*)
12985
12986
12987   archive_cmds_need_lc_CXX=no
12988   hardcode_direct_CXX=no
12989   hardcode_automatic_CXX=yes
12990   hardcode_shlibpath_var_CXX=unsupported
12991   if test "$lt_cv_ld_force_load" = "yes"; then
12992     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12993   else
12994     whole_archive_flag_spec_CXX=''
12995   fi
12996   link_all_deplibs_CXX=yes
12997   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12998   case $cc_basename in
12999      ifort*) _lt_dar_can_shared=yes ;;
13000      *) _lt_dar_can_shared=$GCC ;;
13001   esac
13002   if test "$_lt_dar_can_shared" = "yes"; then
13003     output_verbose_link_cmd=func_echo_all
13004     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}"
13005     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13006     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}"
13007     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}"
13008        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13009       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}"
13010       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}"
13011     fi
13012
13013   else
13014   ld_shlibs_CXX=no
13015   fi
13016
13017         ;;
13018
13019       dgux*)
13020         case $cc_basename in
13021           ec++*)
13022             # FIXME: insert proper C++ library support
13023             ld_shlibs_CXX=no
13024             ;;
13025           ghcx*)
13026             # Green Hills C++ Compiler
13027             # FIXME: insert proper C++ library support
13028             ld_shlibs_CXX=no
13029             ;;
13030           *)
13031             # FIXME: insert proper C++ library support
13032             ld_shlibs_CXX=no
13033             ;;
13034         esac
13035         ;;
13036
13037       freebsd[12]*)
13038         # C++ shared libraries reported to be fairly broken before
13039         # switch to ELF
13040         ld_shlibs_CXX=no
13041         ;;
13042
13043       freebsd-elf*)
13044         archive_cmds_need_lc_CXX=no
13045         ;;
13046
13047       freebsd* | dragonfly*)
13048         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13049         # conventions
13050         ld_shlibs_CXX=yes
13051         ;;
13052
13053       gnu*)
13054         ;;
13055
13056       haiku*)
13057         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13058         link_all_deplibs_CXX=yes
13059         ;;
13060
13061       hpux9*)
13062         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13063         hardcode_libdir_separator_CXX=:
13064         export_dynamic_flag_spec_CXX='${wl}-E'
13065         hardcode_direct_CXX=yes
13066         hardcode_minus_L_CXX=yes # Not in the search PATH,
13067                                              # but as the default
13068                                              # location of the library.
13069
13070         case $cc_basename in
13071           CC*)
13072             # FIXME: insert proper C++ library support
13073             ld_shlibs_CXX=no
13074             ;;
13075           aCC*)
13076             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'
13077             # Commands to make compiler produce verbose output that lists
13078             # what "hidden" libraries, object files and flags are used when
13079             # linking a shared library.
13080             #
13081             # There doesn't appear to be a way to prevent this compiler from
13082             # explicitly linking system object files so we need to strip them
13083             # from the output so that they don't get included in the library
13084             # dependencies.
13085             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; func_echo_all "$list"'
13086             ;;
13087           *)
13088             if test "$GXX" = yes; then
13089               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'
13090             else
13091               # FIXME: insert proper C++ library support
13092               ld_shlibs_CXX=no
13093             fi
13094             ;;
13095         esac
13096         ;;
13097
13098       hpux10*|hpux11*)
13099         if test $with_gnu_ld = no; then
13100           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13101           hardcode_libdir_separator_CXX=:
13102
13103           case $host_cpu in
13104             hppa*64*|ia64*)
13105               ;;
13106             *)
13107               export_dynamic_flag_spec_CXX='${wl}-E'
13108               ;;
13109           esac
13110         fi
13111         case $host_cpu in
13112           hppa*64*|ia64*)
13113             hardcode_direct_CXX=no
13114             hardcode_shlibpath_var_CXX=no
13115             ;;
13116           *)
13117             hardcode_direct_CXX=yes
13118             hardcode_direct_absolute_CXX=yes
13119             hardcode_minus_L_CXX=yes # Not in the search PATH,
13120                                                  # but as the default
13121                                                  # location of the library.
13122             ;;
13123         esac
13124
13125         case $cc_basename in
13126           CC*)
13127             # FIXME: insert proper C++ library support
13128             ld_shlibs_CXX=no
13129             ;;
13130           aCC*)
13131             case $host_cpu in
13132               hppa*64*)
13133                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13134                 ;;
13135               ia64*)
13136                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13137                 ;;
13138               *)
13139                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13140                 ;;
13141             esac
13142             # Commands to make compiler produce verbose output that lists
13143             # what "hidden" libraries, object files and flags are used when
13144             # linking a shared library.
13145             #
13146             # There doesn't appear to be a way to prevent this compiler from
13147             # explicitly linking system object files so we need to strip them
13148             # from the output so that they don't get included in the library
13149             # dependencies.
13150             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; func_echo_all "$list"'
13151             ;;
13152           *)
13153             if test "$GXX" = yes; then
13154               if test $with_gnu_ld = no; then
13155                 case $host_cpu in
13156                   hppa*64*)
13157                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13158                     ;;
13159                   ia64*)
13160                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13161                     ;;
13162                   *)
13163                     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'
13164                     ;;
13165                 esac
13166               fi
13167             else
13168               # FIXME: insert proper C++ library support
13169               ld_shlibs_CXX=no
13170             fi
13171             ;;
13172         esac
13173         ;;
13174
13175       interix[3-9]*)
13176         hardcode_direct_CXX=no
13177         hardcode_shlibpath_var_CXX=no
13178         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13179         export_dynamic_flag_spec_CXX='${wl}-E'
13180         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13181         # Instead, shared libraries are loaded at an image base (0x10000000 by
13182         # default) and relocated if they conflict, which is a slow very memory
13183         # consuming and fragmenting process.  To avoid this, we pick a random,
13184         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13185         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13186         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'
13187         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'
13188         ;;
13189       irix5* | irix6*)
13190         case $cc_basename in
13191           CC*)
13192             # SGI C++
13193             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13194
13195             # Archives containing C++ object files must be created using
13196             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13197             # necessary to make sure instantiated templates are included
13198             # in the archive.
13199             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13200             ;;
13201           *)
13202             if test "$GXX" = yes; then
13203               if test "$with_gnu_ld" = no; then
13204                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13205               else
13206                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13207               fi
13208             fi
13209             link_all_deplibs_CXX=yes
13210             ;;
13211         esac
13212         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13213         hardcode_libdir_separator_CXX=:
13214         inherit_rpath_CXX=yes
13215         ;;
13216
13217       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13218         case $cc_basename in
13219           KCC*)
13220             # Kuck and Associates, Inc. (KAI) C++ Compiler
13221
13222             # KCC will only create a shared library if the output file
13223             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13224             # to its proper name (with version) after linking.
13225             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'
13226             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'
13227             # Commands to make compiler produce verbose output that lists
13228             # what "hidden" libraries, object files and flags are used when
13229             # linking a shared library.
13230             #
13231             # There doesn't appear to be a way to prevent this compiler from
13232             # explicitly linking system object files so we need to strip them
13233             # from the output so that they don't get included in the library
13234             # dependencies.
13235             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; func_echo_all "$list"'
13236
13237             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13238             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239
13240             # Archives containing C++ object files must be created using
13241             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13242             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13243             ;;
13244           icpc* | ecpc* )
13245             # Intel C++
13246             with_gnu_ld=yes
13247             # version 8.0 and above of icpc choke on multiply defined symbols
13248             # if we add $predep_objects and $postdep_objects, however 7.1 and
13249             # earlier do not add the objects themselves.
13250             case `$CC -V 2>&1` in
13251               *"Version 7."*)
13252                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13253                 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'
13254                 ;;
13255               *)  # Version 8.0 or newer
13256                 tmp_idyn=
13257                 case $host_cpu in
13258                   ia64*) tmp_idyn=' -i_dynamic';;
13259                 esac
13260                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261                 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'
13262                 ;;
13263             esac
13264             archive_cmds_need_lc_CXX=no
13265             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13266             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13267             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13268             ;;
13269           pgCC* | pgcpp*)
13270             # Portland Group C++ compiler
13271             case `$CC -V` in
13272             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13273               prelink_cmds_CXX='tpldir=Template.dir~
13274                 rm -rf $tpldir~
13275                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13276                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13277               old_archive_cmds_CXX='tpldir=Template.dir~
13278                 rm -rf $tpldir~
13279                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13280                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13281                 $RANLIB $oldlib'
13282               archive_cmds_CXX='tpldir=Template.dir~
13283                 rm -rf $tpldir~
13284                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13285                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13286               archive_expsym_cmds_CXX='tpldir=Template.dir~
13287                 rm -rf $tpldir~
13288                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13289                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13290               ;;
13291             *) # Version 6 and above use weak symbols
13292               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13293               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'
13294               ;;
13295             esac
13296
13297             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13298             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13299             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13300             ;;
13301           cxx*)
13302             # Compaq C++
13303             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13304             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'
13305
13306             runpath_var=LD_RUN_PATH
13307             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13308             hardcode_libdir_separator_CXX=:
13309
13310             # Commands to make compiler produce verbose output that lists
13311             # what "hidden" libraries, object files and flags are used when
13312             # linking a shared library.
13313             #
13314             # There doesn't appear to be a way to prevent this compiler from
13315             # explicitly linking system object files so we need to strip them
13316             # from the output so that they don't get included in the library
13317             # dependencies.
13318             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13319             ;;
13320           xl* | mpixl* | bgxl*)
13321             # IBM XL 8.0 on PPC, with GNU ld
13322             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13323             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13324             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13325             if test "x$supports_anon_versioning" = xyes; then
13326               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13327                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13328                 echo "local: *; };" >> $output_objdir/$libname.ver~
13329                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13330             fi
13331             ;;
13332           *)
13333             case `$CC -V 2>&1 | sed 5q` in
13334             *Sun\ C*)
13335               # Sun C++ 5.9
13336               no_undefined_flag_CXX=' -zdefs'
13337               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13338               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'
13339               hardcode_libdir_flag_spec_CXX='-R$libdir'
13340               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13341               compiler_needs_object_CXX=yes
13342
13343               # Not sure whether something based on
13344               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13345               # would be better.
13346               output_verbose_link_cmd='func_echo_all'
13347
13348               # Archives containing C++ object files must be created using
13349               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13350               # necessary to make sure instantiated templates are included
13351               # in the archive.
13352               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13353               ;;
13354             esac
13355             ;;
13356         esac
13357         ;;
13358
13359       lynxos*)
13360         # FIXME: insert proper C++ library support
13361         ld_shlibs_CXX=no
13362         ;;
13363
13364       m88k*)
13365         # FIXME: insert proper C++ library support
13366         ld_shlibs_CXX=no
13367         ;;
13368
13369       mvs*)
13370         case $cc_basename in
13371           cxx*)
13372             # FIXME: insert proper C++ library support
13373             ld_shlibs_CXX=no
13374             ;;
13375           *)
13376             # FIXME: insert proper C++ library support
13377             ld_shlibs_CXX=no
13378             ;;
13379         esac
13380         ;;
13381
13382       netbsd*)
13383         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13384           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13385           wlarc=
13386           hardcode_libdir_flag_spec_CXX='-R$libdir'
13387           hardcode_direct_CXX=yes
13388           hardcode_shlibpath_var_CXX=no
13389         fi
13390         # Workaround some broken pre-1.5 toolchains
13391         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13392         ;;
13393
13394       *nto* | *qnx*)
13395         ld_shlibs_CXX=yes
13396         ;;
13397
13398       openbsd2*)
13399         # C++ shared libraries are fairly broken
13400         ld_shlibs_CXX=no
13401         ;;
13402
13403       openbsd*)
13404         if test -f /usr/libexec/ld.so; then
13405           hardcode_direct_CXX=yes
13406           hardcode_shlibpath_var_CXX=no
13407           hardcode_direct_absolute_CXX=yes
13408           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13409           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13410           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13411             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13412             export_dynamic_flag_spec_CXX='${wl}-E'
13413             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13414           fi
13415           output_verbose_link_cmd=func_echo_all
13416         else
13417           ld_shlibs_CXX=no
13418         fi
13419         ;;
13420
13421       osf3* | osf4* | osf5*)
13422         case $cc_basename in
13423           KCC*)
13424             # Kuck and Associates, Inc. (KAI) C++ Compiler
13425
13426             # KCC will only create a shared library if the output file
13427             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13428             # to its proper name (with version) after linking.
13429             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'
13430
13431             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13432             hardcode_libdir_separator_CXX=:
13433
13434             # Archives containing C++ object files must be created using
13435             # the KAI C++ compiler.
13436             case $host in
13437               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13438               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13439             esac
13440             ;;
13441           RCC*)
13442             # Rational C++ 2.4.1
13443             # FIXME: insert proper C++ library support
13444             ld_shlibs_CXX=no
13445             ;;
13446           cxx*)
13447             case $host in
13448               osf3*)
13449                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13450                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13451                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13452                 ;;
13453               *)
13454                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13455                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13456                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13457                   echo "-hidden">> $lib.exp~
13458                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13459                   $RM $lib.exp'
13460                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13461                 ;;
13462             esac
13463
13464             hardcode_libdir_separator_CXX=:
13465
13466             # Commands to make compiler produce verbose output that lists
13467             # what "hidden" libraries, object files and flags are used when
13468             # linking a shared library.
13469             #
13470             # There doesn't appear to be a way to prevent this compiler from
13471             # explicitly linking system object files so we need to strip them
13472             # from the output so that they don't get included in the library
13473             # dependencies.
13474             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13475             ;;
13476           *)
13477             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13478               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13479               case $host in
13480                 osf3*)
13481                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13482                   ;;
13483                 *)
13484                   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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13485                   ;;
13486               esac
13487
13488               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13489               hardcode_libdir_separator_CXX=:
13490
13491               # Commands to make compiler produce verbose output that lists
13492               # what "hidden" libraries, object files and flags are used when
13493               # linking a shared library.
13494               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13495
13496             else
13497               # FIXME: insert proper C++ library support
13498               ld_shlibs_CXX=no
13499             fi
13500             ;;
13501         esac
13502         ;;
13503
13504       psos*)
13505         # FIXME: insert proper C++ library support
13506         ld_shlibs_CXX=no
13507         ;;
13508
13509       sunos4*)
13510         case $cc_basename in
13511           CC*)
13512             # Sun C++ 4.x
13513             # FIXME: insert proper C++ library support
13514             ld_shlibs_CXX=no
13515             ;;
13516           lcc*)
13517             # Lucid
13518             # FIXME: insert proper C++ library support
13519             ld_shlibs_CXX=no
13520             ;;
13521           *)
13522             # FIXME: insert proper C++ library support
13523             ld_shlibs_CXX=no
13524             ;;
13525         esac
13526         ;;
13527
13528       solaris*)
13529         case $cc_basename in
13530           CC* | sunCC*)
13531             # Sun C++ 4.2, 5.x and Centerline C++
13532             archive_cmds_need_lc_CXX=yes
13533             no_undefined_flag_CXX=' -zdefs'
13534             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13535             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13536               $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'
13537
13538             hardcode_libdir_flag_spec_CXX='-R$libdir'
13539             hardcode_shlibpath_var_CXX=no
13540             case $host_os in
13541               solaris2.[0-5] | solaris2.[0-5].*) ;;
13542               *)
13543                 # The compiler driver will combine and reorder linker options,
13544                 # but understands `-z linker_flag'.
13545                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13546                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13547                 ;;
13548             esac
13549             link_all_deplibs_CXX=yes
13550
13551             output_verbose_link_cmd='func_echo_all'
13552
13553             # Archives containing C++ object files must be created using
13554             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13555             # necessary to make sure instantiated templates are included
13556             # in the archive.
13557             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13558             ;;
13559           gcx*)
13560             # Green Hills C++ Compiler
13561             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13562
13563             # The C++ compiler must be used to create the archive.
13564             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13565             ;;
13566           *)
13567             # GNU C++ compiler with Solaris linker
13568             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13569               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13570               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13571                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13572                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13573                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13574
13575                 # Commands to make compiler produce verbose output that lists
13576                 # what "hidden" libraries, object files and flags are used when
13577                 # linking a shared library.
13578                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13579               else
13580                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13581                 # platform.
13582                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13583                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13584                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13585
13586                 # Commands to make compiler produce verbose output that lists
13587                 # what "hidden" libraries, object files and flags are used when
13588                 # linking a shared library.
13589                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13590               fi
13591
13592               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13593               case $host_os in
13594                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13595                 *)
13596                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13597                   ;;
13598               esac
13599             fi
13600             ;;
13601         esac
13602         ;;
13603
13604     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13605       no_undefined_flag_CXX='${wl}-z,text'
13606       archive_cmds_need_lc_CXX=no
13607       hardcode_shlibpath_var_CXX=no
13608       runpath_var='LD_RUN_PATH'
13609
13610       case $cc_basename in
13611         CC*)
13612           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13613           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13614           ;;
13615         *)
13616           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13617           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13618           ;;
13619       esac
13620       ;;
13621
13622       sysv5* | sco3.2v5* | sco5v6*)
13623         # Note: We can NOT use -z defs as we might desire, because we do not
13624         # link with -lc, and that would cause any symbols used from libc to
13625         # always be unresolved, which means just about no library would
13626         # ever link correctly.  If we're not using GNU ld we use -z text
13627         # though, which does catch some bad symbols but isn't as heavy-handed
13628         # as -z defs.
13629         no_undefined_flag_CXX='${wl}-z,text'
13630         allow_undefined_flag_CXX='${wl}-z,nodefs'
13631         archive_cmds_need_lc_CXX=no
13632         hardcode_shlibpath_var_CXX=no
13633         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13634         hardcode_libdir_separator_CXX=':'
13635         link_all_deplibs_CXX=yes
13636         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13637         runpath_var='LD_RUN_PATH'
13638
13639         case $cc_basename in
13640           CC*)
13641             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13642             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13644               '"$old_archive_cmds_CXX"
13645             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13646               '"$reload_cmds_CXX"
13647             ;;
13648           *)
13649             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13650             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651             ;;
13652         esac
13653       ;;
13654
13655       tandem*)
13656         case $cc_basename in
13657           NCC*)
13658             # NonStop-UX NCC 3.20
13659             # FIXME: insert proper C++ library support
13660             ld_shlibs_CXX=no
13661             ;;
13662           *)
13663             # FIXME: insert proper C++ library support
13664             ld_shlibs_CXX=no
13665             ;;
13666         esac
13667         ;;
13668
13669       vxworks*)
13670         # FIXME: insert proper C++ library support
13671         ld_shlibs_CXX=no
13672         ;;
13673
13674       *)
13675         # FIXME: insert proper C++ library support
13676         ld_shlibs_CXX=no
13677         ;;
13678     esac
13679
13680     { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13681 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13682     test "$ld_shlibs_CXX" = no && can_build_shared=no
13683
13684     GCC_CXX="$GXX"
13685     LD_CXX="$LD"
13686
13687     ## CAVEAT EMPTOR:
13688     ## There is no encapsulation within the following macros, do not change
13689     ## the running order or otherwise move them around unless you know exactly
13690     ## what you are doing...
13691     # Dependencies to place before and after the object being linked:
13692 predep_objects_CXX=
13693 postdep_objects_CXX=
13694 predeps_CXX=
13695 postdeps_CXX=
13696 compiler_lib_search_path_CXX=
13697
13698 cat > conftest.$ac_ext <<_LT_EOF
13699 class Foo
13700 {
13701 public:
13702   Foo (void) { a = 0; }
13703 private:
13704   int a;
13705 };
13706 _LT_EOF
13707
13708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13709   (eval $ac_compile) 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; then
13713   # Parse the compiler output and extract the necessary
13714   # objects, libraries and library flags.
13715
13716   # Sentinel used to keep track of whether or not we are before
13717   # the conftest object file.
13718   pre_test_object_deps_done=no
13719
13720   for p in `eval "$output_verbose_link_cmd"`; do
13721     case $p in
13722
13723     -L* | -R* | -l*)
13724        # Some compilers place space between "-{L,R}" and the path.
13725        # Remove the space.
13726        if test $p = "-L" ||
13727           test $p = "-R"; then
13728          prev=$p
13729          continue
13730        else
13731          prev=
13732        fi
13733
13734        if test "$pre_test_object_deps_done" = no; then
13735          case $p in
13736          -L* | -R*)
13737            # Internal compiler library paths should come after those
13738            # provided the user.  The postdeps already come after the
13739            # user supplied libs so there is no need to process them.
13740            if test -z "$compiler_lib_search_path_CXX"; then
13741              compiler_lib_search_path_CXX="${prev}${p}"
13742            else
13743              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13744            fi
13745            ;;
13746          # The "-l" case would never come before the object being
13747          # linked, so don't bother handling this case.
13748          esac
13749        else
13750          if test -z "$postdeps_CXX"; then
13751            postdeps_CXX="${prev}${p}"
13752          else
13753            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13754          fi
13755        fi
13756        ;;
13757
13758     *.$objext)
13759        # This assumes that the test object file only shows up
13760        # once in the compiler output.
13761        if test "$p" = "conftest.$objext"; then
13762          pre_test_object_deps_done=yes
13763          continue
13764        fi
13765
13766        if test "$pre_test_object_deps_done" = no; then
13767          if test -z "$predep_objects_CXX"; then
13768            predep_objects_CXX="$p"
13769          else
13770            predep_objects_CXX="$predep_objects_CXX $p"
13771          fi
13772        else
13773          if test -z "$postdep_objects_CXX"; then
13774            postdep_objects_CXX="$p"
13775          else
13776            postdep_objects_CXX="$postdep_objects_CXX $p"
13777          fi
13778        fi
13779        ;;
13780
13781     *) ;; # Ignore the rest.
13782
13783     esac
13784   done
13785
13786   # Clean up.
13787   rm -f a.out a.exe
13788 else
13789   echo "libtool.m4: error: problem compiling CXX test program"
13790 fi
13791
13792 $RM -f confest.$objext
13793
13794 # PORTME: override above test on systems where it is broken
13795 case $host_os in
13796 interix[3-9]*)
13797   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13798   # hack all around it, let's just trust "g++" to DTRT.
13799   predep_objects_CXX=
13800   postdep_objects_CXX=
13801   postdeps_CXX=
13802   ;;
13803
13804 linux*)
13805   case `$CC -V 2>&1 | sed 5q` in
13806   *Sun\ C*)
13807     # Sun C++ 5.9
13808
13809     # The more standards-conforming stlport4 library is
13810     # incompatible with the Cstd library. Avoid specifying
13811     # it if it's in CXXFLAGS. Ignore libCrun as
13812     # -library=stlport4 depends on it.
13813     case " $CXX $CXXFLAGS " in
13814     *" -library=stlport4 "*)
13815       solaris_use_stlport4=yes
13816       ;;
13817     esac
13818
13819     if test "$solaris_use_stlport4" != yes; then
13820       postdeps_CXX='-library=Cstd -library=Crun'
13821     fi
13822     ;;
13823   esac
13824   ;;
13825
13826 solaris*)
13827   case $cc_basename in
13828   CC* | sunCC*)
13829     # The more standards-conforming stlport4 library is
13830     # incompatible with the Cstd library. Avoid specifying
13831     # it if it's in CXXFLAGS. Ignore libCrun as
13832     # -library=stlport4 depends on it.
13833     case " $CXX $CXXFLAGS " in
13834     *" -library=stlport4 "*)
13835       solaris_use_stlport4=yes
13836       ;;
13837     esac
13838
13839     # Adding this requires a known-good setup of shared libraries for
13840     # Sun compiler versions before 5.6, else PIC objects from an old
13841     # archive will be linked into the output, leading to subtle bugs.
13842     if test "$solaris_use_stlport4" != yes; then
13843       postdeps_CXX='-library=Cstd -library=Crun'
13844     fi
13845     ;;
13846   esac
13847   ;;
13848 esac
13849
13850
13851 case " $postdeps_CXX " in
13852 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13853 esac
13854  compiler_lib_search_dirs_CXX=
13855 if test -n "${compiler_lib_search_path_CXX}"; then
13856  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13857 fi
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889     lt_prog_compiler_wl_CXX=
13890 lt_prog_compiler_pic_CXX=
13891 lt_prog_compiler_static_CXX=
13892
13893 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13895
13896   # C++ specific cases for pic, static, wl, etc.
13897   if test "$GXX" = yes; then
13898     lt_prog_compiler_wl_CXX='-Wl,'
13899     lt_prog_compiler_static_CXX='-static'
13900
13901     case $host_os in
13902     aix*)
13903       # All AIX code is PIC.
13904       if test "$host_cpu" = ia64; then
13905         # AIX 5 now supports IA64 processor
13906         lt_prog_compiler_static_CXX='-Bstatic'
13907       fi
13908       ;;
13909
13910     amigaos*)
13911       case $host_cpu in
13912       powerpc)
13913             # see comment about AmigaOS4 .so support
13914             lt_prog_compiler_pic_CXX='-fPIC'
13915         ;;
13916       m68k)
13917             # FIXME: we need at least 68020 code to build shared libraries, but
13918             # adding the `-m68020' flag to GCC prevents building anything better,
13919             # like `-m68040'.
13920             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13921         ;;
13922       esac
13923       ;;
13924
13925     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13926       # PIC is the default for these OSes.
13927       ;;
13928     mingw* | cygwin* | os2* | pw32* | cegcc*)
13929       # This hack is so that the source file can tell whether it is being
13930       # built for inclusion in a dll (and should export symbols for example).
13931       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13932       # (--disable-auto-import) libraries
13933       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13934       ;;
13935     darwin* | rhapsody*)
13936       # PIC is the default on this platform
13937       # Common symbols not allowed in MH_DYLIB files
13938       lt_prog_compiler_pic_CXX='-fno-common'
13939       ;;
13940     *djgpp*)
13941       # DJGPP does not support shared libraries at all
13942       lt_prog_compiler_pic_CXX=
13943       ;;
13944     haiku*)
13945       # PIC is the default for Haiku.
13946       # The "-static" flag exists, but is broken.
13947       lt_prog_compiler_static_CXX=
13948       ;;
13949     interix[3-9]*)
13950       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13951       # Instead, we relocate shared libraries at runtime.
13952       ;;
13953     sysv4*MP*)
13954       if test -d /usr/nec; then
13955         lt_prog_compiler_pic_CXX=-Kconform_pic
13956       fi
13957       ;;
13958     hpux*)
13959       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13960       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13961       # sets the default TLS model and affects inlining.
13962       case $host_cpu in
13963       hppa*64*)
13964         ;;
13965       *)
13966         lt_prog_compiler_pic_CXX='-fPIC'
13967         ;;
13968       esac
13969       ;;
13970     *qnx* | *nto*)
13971       # QNX uses GNU C++, but need to define -shared option too, otherwise
13972       # it will coredump.
13973       lt_prog_compiler_pic_CXX='-fPIC -shared'
13974       ;;
13975     *)
13976       lt_prog_compiler_pic_CXX='-fPIC'
13977       ;;
13978     esac
13979   else
13980     case $host_os in
13981       aix[4-9]*)
13982         # All AIX code is PIC.
13983         if test "$host_cpu" = ia64; then
13984           # AIX 5 now supports IA64 processor
13985           lt_prog_compiler_static_CXX='-Bstatic'
13986         else
13987           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13988         fi
13989         ;;
13990       chorus*)
13991         case $cc_basename in
13992         cxch68*)
13993           # Green Hills C++ Compiler
13994           # _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"
13995           ;;
13996         esac
13997         ;;
13998       dgux*)
13999         case $cc_basename in
14000           ec++*)
14001             lt_prog_compiler_pic_CXX='-KPIC'
14002             ;;
14003           ghcx*)
14004             # Green Hills C++ Compiler
14005             lt_prog_compiler_pic_CXX='-pic'
14006             ;;
14007           *)
14008             ;;
14009         esac
14010         ;;
14011       freebsd* | dragonfly*)
14012         # FreeBSD uses GNU C++
14013         ;;
14014       hpux9* | hpux10* | hpux11*)
14015         case $cc_basename in
14016           CC*)
14017             lt_prog_compiler_wl_CXX='-Wl,'
14018             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14019             if test "$host_cpu" != ia64; then
14020               lt_prog_compiler_pic_CXX='+Z'
14021             fi
14022             ;;
14023           aCC*)
14024             lt_prog_compiler_wl_CXX='-Wl,'
14025             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14026             case $host_cpu in
14027             hppa*64*|ia64*)
14028               # +Z the default
14029               ;;
14030             *)
14031               lt_prog_compiler_pic_CXX='+Z'
14032               ;;
14033             esac
14034             ;;
14035           *)
14036             ;;
14037         esac
14038         ;;
14039       interix*)
14040         # This is c89, which is MS Visual C++ (no shared libs)
14041         # Anyone wants to do a port?
14042         ;;
14043       irix5* | irix6* | nonstopux*)
14044         case $cc_basename in
14045           CC*)
14046             lt_prog_compiler_wl_CXX='-Wl,'
14047             lt_prog_compiler_static_CXX='-non_shared'
14048             # CC pic flag -KPIC is the default.
14049             ;;
14050           *)
14051             ;;
14052         esac
14053         ;;
14054       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14055         case $cc_basename in
14056           KCC*)
14057             # KAI C++ Compiler
14058             lt_prog_compiler_wl_CXX='--backend -Wl,'
14059             lt_prog_compiler_pic_CXX='-fPIC'
14060             ;;
14061           ecpc* )
14062             # old Intel C++ for x86_64 which still supported -KPIC.
14063             lt_prog_compiler_wl_CXX='-Wl,'
14064             lt_prog_compiler_pic_CXX='-KPIC'
14065             lt_prog_compiler_static_CXX='-static'
14066             ;;
14067           icpc* )
14068             # Intel C++, used to be incompatible with GCC.
14069             # ICC 10 doesn't accept -KPIC any more.
14070             lt_prog_compiler_wl_CXX='-Wl,'
14071             lt_prog_compiler_pic_CXX='-fPIC'
14072             lt_prog_compiler_static_CXX='-static'
14073             ;;
14074           pgCC* | pgcpp*)
14075             # Portland Group C++ compiler
14076             lt_prog_compiler_wl_CXX='-Wl,'
14077             lt_prog_compiler_pic_CXX='-fpic'
14078             lt_prog_compiler_static_CXX='-Bstatic'
14079             ;;
14080           cxx*)
14081             # Compaq C++
14082             # Make sure the PIC flag is empty.  It appears that all Alpha
14083             # Linux and Compaq Tru64 Unix objects are PIC.
14084             lt_prog_compiler_pic_CXX=
14085             lt_prog_compiler_static_CXX='-non_shared'
14086             ;;
14087           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14088             # IBM XL 8.0, 9.0 on PPC and BlueGene
14089             lt_prog_compiler_wl_CXX='-Wl,'
14090             lt_prog_compiler_pic_CXX='-qpic'
14091             lt_prog_compiler_static_CXX='-qstaticlink'
14092             ;;
14093           *)
14094             case `$CC -V 2>&1 | sed 5q` in
14095             *Sun\ C*)
14096               # Sun C++ 5.9
14097               lt_prog_compiler_pic_CXX='-KPIC'
14098               lt_prog_compiler_static_CXX='-Bstatic'
14099               lt_prog_compiler_wl_CXX='-Qoption ld '
14100               ;;
14101             esac
14102             ;;
14103         esac
14104         ;;
14105       lynxos*)
14106         ;;
14107       m88k*)
14108         ;;
14109       mvs*)
14110         case $cc_basename in
14111           cxx*)
14112             lt_prog_compiler_pic_CXX='-W c,exportall'
14113             ;;
14114           *)
14115             ;;
14116         esac
14117         ;;
14118       netbsd*)
14119         ;;
14120       *qnx* | *nto*)
14121         # QNX uses GNU C++, but need to define -shared option too, otherwise
14122         # it will coredump.
14123         lt_prog_compiler_pic_CXX='-fPIC -shared'
14124         ;;
14125       osf3* | osf4* | osf5*)
14126         case $cc_basename in
14127           KCC*)
14128             lt_prog_compiler_wl_CXX='--backend -Wl,'
14129             ;;
14130           RCC*)
14131             # Rational C++ 2.4.1
14132             lt_prog_compiler_pic_CXX='-pic'
14133             ;;
14134           cxx*)
14135             # Digital/Compaq C++
14136             lt_prog_compiler_wl_CXX='-Wl,'
14137             # Make sure the PIC flag is empty.  It appears that all Alpha
14138             # Linux and Compaq Tru64 Unix objects are PIC.
14139             lt_prog_compiler_pic_CXX=
14140             lt_prog_compiler_static_CXX='-non_shared'
14141             ;;
14142           *)
14143             ;;
14144         esac
14145         ;;
14146       psos*)
14147         ;;
14148       solaris*)
14149         case $cc_basename in
14150           CC* | sunCC*)
14151             # Sun C++ 4.2, 5.x and Centerline C++
14152             lt_prog_compiler_pic_CXX='-KPIC'
14153             lt_prog_compiler_static_CXX='-Bstatic'
14154             lt_prog_compiler_wl_CXX='-Qoption ld '
14155             ;;
14156           gcx*)
14157             # Green Hills C++ Compiler
14158             lt_prog_compiler_pic_CXX='-PIC'
14159             ;;
14160           *)
14161             ;;
14162         esac
14163         ;;
14164       sunos4*)
14165         case $cc_basename in
14166           CC*)
14167             # Sun C++ 4.x
14168             lt_prog_compiler_pic_CXX='-pic'
14169             lt_prog_compiler_static_CXX='-Bstatic'
14170             ;;
14171           lcc*)
14172             # Lucid
14173             lt_prog_compiler_pic_CXX='-pic'
14174             ;;
14175           *)
14176             ;;
14177         esac
14178         ;;
14179       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14180         case $cc_basename in
14181           CC*)
14182             lt_prog_compiler_wl_CXX='-Wl,'
14183             lt_prog_compiler_pic_CXX='-KPIC'
14184             lt_prog_compiler_static_CXX='-Bstatic'
14185             ;;
14186         esac
14187         ;;
14188       tandem*)
14189         case $cc_basename in
14190           NCC*)
14191             # NonStop-UX NCC 3.20
14192             lt_prog_compiler_pic_CXX='-KPIC'
14193             ;;
14194           *)
14195             ;;
14196         esac
14197         ;;
14198       vxworks*)
14199         ;;
14200       *)
14201         lt_prog_compiler_can_build_shared_CXX=no
14202         ;;
14203     esac
14204   fi
14205
14206 case $host_os in
14207   # For platforms which do not support PIC, -DPIC is meaningless:
14208   *djgpp*)
14209     lt_prog_compiler_pic_CXX=
14210     ;;
14211   *)
14212     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14213     ;;
14214 esac
14215 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14216 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14217
14218
14219
14220 #
14221 # Check to make sure the PIC flag actually works.
14222 #
14223 if test -n "$lt_prog_compiler_pic_CXX"; then
14224   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14225 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14226 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   lt_cv_prog_compiler_pic_works_CXX=no
14230    ac_outfile=conftest.$ac_objext
14231    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14232    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14233    # Insert the option either (1) after the last *FLAGS variable, or
14234    # (2) before a word containing "conftest.", or (3) at the end.
14235    # Note that $ac_compile itself does not contain backslashes and begins
14236    # with a dollar sign (not a hyphen), so the echo should work correctly.
14237    # The option is referenced via a variable to avoid confusing sed.
14238    lt_compile=`echo "$ac_compile" | $SED \
14239    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14240    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14241    -e 's:$: $lt_compiler_flag:'`
14242    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14243    (eval "$lt_compile" 2>conftest.err)
14244    ac_status=$?
14245    cat conftest.err >&5
14246    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247    if (exit $ac_status) && test -s "$ac_outfile"; then
14248      # The compiler can only warn and ignore the option if not recognized
14249      # So say no if there are warnings other than the usual output.
14250      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14251      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14252      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14253        lt_cv_prog_compiler_pic_works_CXX=yes
14254      fi
14255    fi
14256    $RM -r conftest*
14257
14258 fi
14259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14260 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14261
14262 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14263     case $lt_prog_compiler_pic_CXX in
14264      "" | " "*) ;;
14265      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14266      esac
14267 else
14268     lt_prog_compiler_pic_CXX=
14269      lt_prog_compiler_can_build_shared_CXX=no
14270 fi
14271
14272 fi
14273
14274
14275
14276 #
14277 # Check to make sure the static flag actually works.
14278 #
14279 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14280 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14281 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14282 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   lt_cv_prog_compiler_static_works_CXX=no
14286    save_LDFLAGS="$LDFLAGS"
14287    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14288    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14289    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14290      # The linker can only warn and ignore the option if not recognized
14291      # So say no if there are warnings
14292      if test -s conftest.err; then
14293        # Append any errors to the config.log.
14294        cat conftest.err 1>&5
14295        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14296        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14297        if diff conftest.exp conftest.er2 >/dev/null; then
14298          lt_cv_prog_compiler_static_works_CXX=yes
14299        fi
14300      else
14301        lt_cv_prog_compiler_static_works_CXX=yes
14302      fi
14303    fi
14304    $RM -r conftest*
14305    LDFLAGS="$save_LDFLAGS"
14306
14307 fi
14308 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14309 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14310
14311 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14312     :
14313 else
14314     lt_prog_compiler_static_CXX=
14315 fi
14316
14317
14318
14319
14320     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14321 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14322 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   lt_cv_prog_compiler_c_o_CXX=no
14326    $RM -r conftest 2>/dev/null
14327    mkdir conftest
14328    cd conftest
14329    mkdir out
14330    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14331
14332    lt_compiler_flag="-o out/conftest2.$ac_objext"
14333    # Insert the option either (1) after the last *FLAGS variable, or
14334    # (2) before a word containing "conftest.", or (3) at the end.
14335    # Note that $ac_compile itself does not contain backslashes and begins
14336    # with a dollar sign (not a hyphen), so the echo should work correctly.
14337    lt_compile=`echo "$ac_compile" | $SED \
14338    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14340    -e 's:$: $lt_compiler_flag:'`
14341    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14342    (eval "$lt_compile" 2>out/conftest.err)
14343    ac_status=$?
14344    cat out/conftest.err >&5
14345    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14347    then
14348      # The compiler can only warn and ignore the option if not recognized
14349      # So say no if there are warnings
14350      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14351      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14352      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14353        lt_cv_prog_compiler_c_o_CXX=yes
14354      fi
14355    fi
14356    chmod u+w . 2>&5
14357    $RM -r conftest*
14358    # SGI C++ compiler will create directory out/ii_files/ for
14359    # template instantiation
14360    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14361    $RM out/* && rmdir out
14362    cd ..
14363    $RM -r conftest
14364    $RM -r conftest*
14365
14366 fi
14367 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14368 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14369
14370
14371
14372     { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14374 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377   lt_cv_prog_compiler_c_o_CXX=no
14378    $RM -r conftest 2>/dev/null
14379    mkdir conftest
14380    cd conftest
14381    mkdir out
14382    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14383
14384    lt_compiler_flag="-o out/conftest2.$ac_objext"
14385    # Insert the option either (1) after the last *FLAGS variable, or
14386    # (2) before a word containing "conftest.", or (3) at the end.
14387    # Note that $ac_compile itself does not contain backslashes and begins
14388    # with a dollar sign (not a hyphen), so the echo should work correctly.
14389    lt_compile=`echo "$ac_compile" | $SED \
14390    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14391    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14392    -e 's:$: $lt_compiler_flag:'`
14393    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14394    (eval "$lt_compile" 2>out/conftest.err)
14395    ac_status=$?
14396    cat out/conftest.err >&5
14397    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14399    then
14400      # The compiler can only warn and ignore the option if not recognized
14401      # So say no if there are warnings
14402      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14403      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14404      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14405        lt_cv_prog_compiler_c_o_CXX=yes
14406      fi
14407    fi
14408    chmod u+w . 2>&5
14409    $RM -r conftest*
14410    # SGI C++ compiler will create directory out/ii_files/ for
14411    # template instantiation
14412    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14413    $RM out/* && rmdir out
14414    cd ..
14415    $RM -r conftest
14416    $RM -r conftest*
14417
14418 fi
14419 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14420 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14421
14422
14423
14424
14425 hard_links="nottested"
14426 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14427   # do not overwrite the value of need_locks provided by the user
14428   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14429 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14430   hard_links=yes
14431   $RM -r conftest*
14432   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14433   touch conftest.a
14434   ln conftest.a conftest.b 2>&5 || hard_links=no
14435   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14436   { echo "$as_me:$LINENO: result: $hard_links" >&5
14437 echo "${ECHO_T}$hard_links" >&6; }
14438   if test "$hard_links" = no; then
14439     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14440 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14441     need_locks=warn
14442   fi
14443 else
14444   need_locks=no
14445 fi
14446
14447
14448
14449     { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14450 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14451
14452   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14453   case $host_os in
14454   aix[4-9]*)
14455     # If we're using GNU nm, then we don't want the "-C" option.
14456     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14457     # Also, AIX nm treats weak defined symbols like other global defined
14458     # symbols, whereas GNU nm marks them as "W".
14459     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14460       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14461     else
14462       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'
14463     fi
14464     ;;
14465   pw32*)
14466     export_symbols_cmds_CXX="$ltdll_cmds"
14467   ;;
14468   cygwin* | mingw* | cegcc*)
14469     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'
14470   ;;
14471   *)
14472     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14473   ;;
14474   esac
14475   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14476
14477 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14478 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14479 test "$ld_shlibs_CXX" = no && can_build_shared=no
14480
14481 with_gnu_ld_CXX=$with_gnu_ld
14482
14483
14484
14485
14486
14487
14488 #
14489 # Do we need to explicitly link libc?
14490 #
14491 case "x$archive_cmds_need_lc_CXX" in
14492 x|xyes)
14493   # Assume -lc should be added
14494   archive_cmds_need_lc_CXX=yes
14495
14496   if test "$enable_shared" = yes && test "$GCC" = yes; then
14497     case $archive_cmds_CXX in
14498     *'~'*)
14499       # FIXME: we may have to deal with multi-command sequences.
14500       ;;
14501     '$CC '*)
14502       # Test whether the compiler implicitly links with -lc since on some
14503       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14504       # to ld, don't add -lc before -lgcc.
14505       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14506 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14507 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
14508   echo $ECHO_N "(cached) $ECHO_C" >&6
14509 else
14510   $RM -r conftest*
14511         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14512
14513         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514   (eval $ac_compile) 2>&5
14515   ac_status=$?
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); } 2>conftest.err; then
14518           soname=conftest
14519           lib=conftest
14520           libobjs=conftest.$ac_objext
14521           deplibs=
14522           wl=$lt_prog_compiler_wl_CXX
14523           pic_flag=$lt_prog_compiler_pic_CXX
14524           compiler_flags=-v
14525           linker_flags=-v
14526           verstring=
14527           output_objdir=.
14528           libname=conftest
14529           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14530           allow_undefined_flag_CXX=
14531           if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14532   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }
14536           then
14537             lt_cv_archive_cmds_need_lc_CXX=no
14538           else
14539             lt_cv_archive_cmds_need_lc_CXX=yes
14540           fi
14541           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14542         else
14543           cat conftest.err 1>&5
14544         fi
14545         $RM -r conftest*
14546
14547 fi
14548 { echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14549 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14550       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14551       ;;
14552     esac
14553   fi
14554   ;;
14555 esac
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620     { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14621 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14622
14623 library_names_spec=
14624 libname_spec='lib$name'
14625 soname_spec=
14626 shrext_cmds=".so"
14627 postinstall_cmds=
14628 postuninstall_cmds=
14629 finish_cmds=
14630 finish_eval=
14631 shlibpath_var=
14632 shlibpath_overrides_runpath=unknown
14633 version_type=none
14634 dynamic_linker="$host_os ld.so"
14635 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14636 need_lib_prefix=unknown
14637 hardcode_into_libs=no
14638
14639 # when you set need_version to no, make sure it does not cause -set_version
14640 # flags to be left without arguments
14641 need_version=unknown
14642
14643 case $host_os in
14644 aix3*)
14645   version_type=linux
14646   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14647   shlibpath_var=LIBPATH
14648
14649   # AIX 3 has no versioning support, so we append a major version to the name.
14650   soname_spec='${libname}${release}${shared_ext}$major'
14651   ;;
14652
14653 aix[4-9]*)
14654   version_type=linux
14655   need_lib_prefix=no
14656   need_version=no
14657   hardcode_into_libs=yes
14658   if test "$host_cpu" = ia64; then
14659     # AIX 5 supports IA64
14660     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14661     shlibpath_var=LD_LIBRARY_PATH
14662   else
14663     # With GCC up to 2.95.x, collect2 would create an import file
14664     # for dependence libraries.  The import file would start with
14665     # the line `#! .'.  This would cause the generated library to
14666     # depend on `.', always an invalid library.  This was fixed in
14667     # development snapshots of GCC prior to 3.0.
14668     case $host_os in
14669       aix4 | aix4.[01] | aix4.[01].*)
14670       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14671            echo ' yes '
14672            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14673         :
14674       else
14675         can_build_shared=no
14676       fi
14677       ;;
14678     esac
14679     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14680     # soname into executable. Probably we can add versioning support to
14681     # collect2, so additional links can be useful in future.
14682     if test "$aix_use_runtimelinking" = yes; then
14683       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14684       # instead of lib<name>.a to let people know that these are not
14685       # typical AIX shared libraries.
14686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14687     else
14688       # We preserve .a as extension for shared libraries through AIX4.2
14689       # and later when we are not doing run time linking.
14690       library_names_spec='${libname}${release}.a $libname.a'
14691       soname_spec='${libname}${release}${shared_ext}$major'
14692     fi
14693     shlibpath_var=LIBPATH
14694   fi
14695   ;;
14696
14697 amigaos*)
14698   case $host_cpu in
14699   powerpc)
14700     # Since July 2007 AmigaOS4 officially supports .so libraries.
14701     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703     ;;
14704   m68k)
14705     library_names_spec='$libname.ixlibrary $libname.a'
14706     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14707     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14708     ;;
14709   esac
14710   ;;
14711
14712 beos*)
14713   library_names_spec='${libname}${shared_ext}'
14714   dynamic_linker="$host_os ld.so"
14715   shlibpath_var=LIBRARY_PATH
14716   ;;
14717
14718 bsdi[45]*)
14719   version_type=linux
14720   need_version=no
14721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14722   soname_spec='${libname}${release}${shared_ext}$major'
14723   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14724   shlibpath_var=LD_LIBRARY_PATH
14725   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14726   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14727   # the default ld.so.conf also contains /usr/contrib/lib and
14728   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14729   # libtool to hard-code these into programs
14730   ;;
14731
14732 cygwin* | mingw* | pw32* | cegcc*)
14733   version_type=windows
14734   shrext_cmds=".dll"
14735   need_version=no
14736   need_lib_prefix=no
14737
14738   case $GCC,$host_os in
14739   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14740     library_names_spec='$libname.dll.a'
14741     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14742     postinstall_cmds='base_file=`basename \${file}`~
14743       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14744       dldir=$destdir/`dirname \$dlpath`~
14745       test -d \$dldir || mkdir -p \$dldir~
14746       $install_prog $dir/$dlname \$dldir/$dlname~
14747       chmod a+x \$dldir/$dlname~
14748       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14749         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14750       fi'
14751     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14752       dlpath=$dir/\$dldll~
14753        $RM \$dlpath'
14754     shlibpath_overrides_runpath=yes
14755
14756     case $host_os in
14757     cygwin*)
14758       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14759       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14760
14761       ;;
14762     mingw* | cegcc*)
14763       # MinGW DLLs use traditional 'lib' prefix
14764       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14765       ;;
14766     pw32*)
14767       # pw32 DLLs use 'pw' prefix rather than 'lib'
14768       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14769       ;;
14770     esac
14771     ;;
14772
14773   *)
14774     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14775     ;;
14776   esac
14777   dynamic_linker='Win32 ld.exe'
14778   # FIXME: first we should search . and the directory the executable is in
14779   shlibpath_var=PATH
14780   ;;
14781
14782 darwin* | rhapsody*)
14783   dynamic_linker="$host_os dyld"
14784   version_type=darwin
14785   need_lib_prefix=no
14786   need_version=no
14787   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
14788   soname_spec='${libname}${release}${major}$shared_ext'
14789   shlibpath_overrides_runpath=yes
14790   shlibpath_var=DYLD_LIBRARY_PATH
14791   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14792
14793   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14794   ;;
14795
14796 dgux*)
14797   version_type=linux
14798   need_lib_prefix=no
14799   need_version=no
14800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14801   soname_spec='${libname}${release}${shared_ext}$major'
14802   shlibpath_var=LD_LIBRARY_PATH
14803   ;;
14804
14805 freebsd1*)
14806   dynamic_linker=no
14807   ;;
14808
14809 freebsd* | dragonfly*)
14810   # DragonFly does not have aout.  When/if they implement a new
14811   # versioning mechanism, adjust this.
14812   if test -x /usr/bin/objformat; then
14813     objformat=`/usr/bin/objformat`
14814   else
14815     case $host_os in
14816     freebsd[123]*) objformat=aout ;;
14817     *) objformat=elf ;;
14818     esac
14819   fi
14820   version_type=freebsd-$objformat
14821   case $version_type in
14822     freebsd-elf*)
14823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14824       need_version=no
14825       need_lib_prefix=no
14826       ;;
14827     freebsd-*)
14828       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14829       need_version=yes
14830       ;;
14831   esac
14832   shlibpath_var=LD_LIBRARY_PATH
14833   case $host_os in
14834   freebsd2*)
14835     shlibpath_overrides_runpath=yes
14836     ;;
14837   freebsd3.[01]* | freebsdelf3.[01]*)
14838     shlibpath_overrides_runpath=yes
14839     hardcode_into_libs=yes
14840     ;;
14841   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14842   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14843     shlibpath_overrides_runpath=no
14844     hardcode_into_libs=yes
14845     ;;
14846   *) # from 4.6 on, and DragonFly
14847     shlibpath_overrides_runpath=yes
14848     hardcode_into_libs=yes
14849     ;;
14850   esac
14851   ;;
14852
14853 gnu*)
14854   version_type=linux
14855   need_lib_prefix=no
14856   need_version=no
14857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14858   soname_spec='${libname}${release}${shared_ext}$major'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   hardcode_into_libs=yes
14861   ;;
14862
14863 haiku*)
14864   version_type=linux
14865   need_lib_prefix=no
14866   need_version=no
14867   dynamic_linker="$host_os runtime_loader"
14868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14869   soname_spec='${libname}${release}${shared_ext}$major'
14870   shlibpath_var=LIBRARY_PATH
14871   shlibpath_overrides_runpath=yes
14872   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14873   hardcode_into_libs=yes
14874   ;;
14875
14876 hpux9* | hpux10* | hpux11*)
14877   # Give a soname corresponding to the major version so that dld.sl refuses to
14878   # link against other versions.
14879   version_type=sunos
14880   need_lib_prefix=no
14881   need_version=no
14882   case $host_cpu in
14883   ia64*)
14884     shrext_cmds='.so'
14885     hardcode_into_libs=yes
14886     dynamic_linker="$host_os dld.so"
14887     shlibpath_var=LD_LIBRARY_PATH
14888     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890     soname_spec='${libname}${release}${shared_ext}$major'
14891     if test "X$HPUX_IA64_MODE" = X32; then
14892       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14893     else
14894       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14895     fi
14896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14897     ;;
14898   hppa*64*)
14899     shrext_cmds='.sl'
14900     hardcode_into_libs=yes
14901     dynamic_linker="$host_os dld.sl"
14902     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905     soname_spec='${libname}${release}${shared_ext}$major'
14906     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14908     ;;
14909   *)
14910     shrext_cmds='.sl'
14911     dynamic_linker="$host_os dld.sl"
14912     shlibpath_var=SHLIB_PATH
14913     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14914     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915     soname_spec='${libname}${release}${shared_ext}$major'
14916     ;;
14917   esac
14918   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14919   postinstall_cmds='chmod 555 $lib'
14920   # or fails outright, so override atomically:
14921   install_override_mode=555
14922   ;;
14923
14924 interix[3-9]*)
14925   version_type=linux
14926   need_lib_prefix=no
14927   need_version=no
14928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14929   soname_spec='${libname}${release}${shared_ext}$major'
14930   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14931   shlibpath_var=LD_LIBRARY_PATH
14932   shlibpath_overrides_runpath=no
14933   hardcode_into_libs=yes
14934   ;;
14935
14936 irix5* | irix6* | nonstopux*)
14937   case $host_os in
14938     nonstopux*) version_type=nonstopux ;;
14939     *)
14940         if test "$lt_cv_prog_gnu_ld" = yes; then
14941                 version_type=linux
14942         else
14943                 version_type=irix
14944         fi ;;
14945   esac
14946   need_lib_prefix=no
14947   need_version=no
14948   soname_spec='${libname}${release}${shared_ext}$major'
14949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14950   case $host_os in
14951   irix5* | nonstopux*)
14952     libsuff= shlibsuff=
14953     ;;
14954   *)
14955     case $LD in # libtool.m4 will add one of these switches to LD
14956     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14957       libsuff= shlibsuff= libmagic=32-bit;;
14958     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14959       libsuff=32 shlibsuff=N32 libmagic=N32;;
14960     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14961       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14962     *) libsuff= shlibsuff= libmagic=never-match;;
14963     esac
14964     ;;
14965   esac
14966   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14967   shlibpath_overrides_runpath=no
14968   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14969   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14970   hardcode_into_libs=yes
14971   ;;
14972
14973 # No shared lib support for Linux oldld, aout, or coff.
14974 linux*oldld* | linux*aout* | linux*coff*)
14975   dynamic_linker=no
14976   ;;
14977
14978 # This must be Linux ELF.
14979 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14980   version_type=linux
14981   need_lib_prefix=no
14982   need_version=no
14983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984   soname_spec='${libname}${release}${shared_ext}$major'
14985   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14986   shlibpath_var=LD_LIBRARY_PATH
14987   shlibpath_overrides_runpath=no
14988
14989   # Some binutils ld are patched to set DT_RUNPATH
14990   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   lt_cv_shlibpath_overrides_runpath=no
14994     save_LDFLAGS=$LDFLAGS
14995     save_libdir=$libdir
14996     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14997          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14998     cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004
15005 int
15006 main ()
15007 {
15008
15009   ;
15010   return 0;
15011 }
15012 _ACEOF
15013 rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (ac_try="$ac_link"
15015 case "(($ac_try" in
15016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017   *) ac_try_echo=$ac_try;;
15018 esac
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020   (eval "$ac_link") 2>conftest.er1
15021   ac_status=$?
15022   grep -v '^ *+' conftest.er1 >conftest.err
15023   rm -f conftest.er1
15024   cat conftest.err >&5
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); } && {
15027          test -z "$ac_cxx_werror_flag" ||
15028          test ! -s conftest.err
15029        } && test -s conftest$ac_exeext &&
15030        $as_test_x conftest$ac_exeext; then
15031   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15032   lt_cv_shlibpath_overrides_runpath=yes
15033 fi
15034
15035 else
15036   echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039
15040 fi
15041
15042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15043       conftest$ac_exeext conftest.$ac_ext
15044     LDFLAGS=$save_LDFLAGS
15045     libdir=$save_libdir
15046
15047 fi
15048
15049   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15050
15051   # This implies no fast_install, which is unacceptable.
15052   # Some rework will be needed to allow for fast_install
15053   # before this can be enabled.
15054   hardcode_into_libs=yes
15055
15056   # Append ld.so.conf contents to the search path
15057   if test -f /etc/ld.so.conf; then
15058     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;s/"//g;/^$/d' | tr '\n' ' '`
15059     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15060   fi
15061
15062   # We used to test for /lib/ld.so.1 and disable shared libraries on
15063   # powerpc, because MkLinux only supported shared libraries with the
15064   # GNU dynamic linker.  Since this was broken with cross compilers,
15065   # most powerpc-linux boxes support dynamic linking these days and
15066   # people can always --disable-shared, the test was removed, and we
15067   # assume the GNU/Linux dynamic linker is in use.
15068   dynamic_linker='GNU/Linux ld.so'
15069   ;;
15070
15071 netbsd*)
15072   version_type=sunos
15073   need_lib_prefix=no
15074   need_version=no
15075   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15077     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15078     dynamic_linker='NetBSD (a.out) ld.so'
15079   else
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='NetBSD ld.elf_so'
15083   fi
15084   shlibpath_var=LD_LIBRARY_PATH
15085   shlibpath_overrides_runpath=yes
15086   hardcode_into_libs=yes
15087   ;;
15088
15089 newsos6)
15090   version_type=linux
15091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15092   shlibpath_var=LD_LIBRARY_PATH
15093   shlibpath_overrides_runpath=yes
15094   ;;
15095
15096 *nto* | *qnx*)
15097   version_type=qnx
15098   need_lib_prefix=no
15099   need_version=no
15100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15101   soname_spec='${libname}${release}${shared_ext}$major'
15102   shlibpath_var=LD_LIBRARY_PATH
15103   shlibpath_overrides_runpath=no
15104   hardcode_into_libs=yes
15105   dynamic_linker='ldqnx.so'
15106   ;;
15107
15108 openbsd*)
15109   version_type=sunos
15110   sys_lib_dlsearch_path_spec="/usr/lib"
15111   need_lib_prefix=no
15112   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15113   case $host_os in
15114     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15115     *)                          need_version=no  ;;
15116   esac
15117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15118   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15119   shlibpath_var=LD_LIBRARY_PATH
15120   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15121     case $host_os in
15122       openbsd2.[89] | openbsd2.[89].*)
15123         shlibpath_overrides_runpath=no
15124         ;;
15125       *)
15126         shlibpath_overrides_runpath=yes
15127         ;;
15128       esac
15129   else
15130     shlibpath_overrides_runpath=yes
15131   fi
15132   ;;
15133
15134 os2*)
15135   libname_spec='$name'
15136   shrext_cmds=".dll"
15137   need_lib_prefix=no
15138   library_names_spec='$libname${shared_ext} $libname.a'
15139   dynamic_linker='OS/2 ld.exe'
15140   shlibpath_var=LIBPATH
15141   ;;
15142
15143 osf3* | osf4* | osf5*)
15144   version_type=osf
15145   need_lib_prefix=no
15146   need_version=no
15147   soname_spec='${libname}${release}${shared_ext}$major'
15148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149   shlibpath_var=LD_LIBRARY_PATH
15150   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15151   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15152   ;;
15153
15154 rdos*)
15155   dynamic_linker=no
15156   ;;
15157
15158 solaris*)
15159   version_type=linux
15160   need_lib_prefix=no
15161   need_version=no
15162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163   soname_spec='${libname}${release}${shared_ext}$major'
15164   shlibpath_var=LD_LIBRARY_PATH
15165   shlibpath_overrides_runpath=yes
15166   hardcode_into_libs=yes
15167   # ldd complains unless libraries are executable
15168   postinstall_cmds='chmod +x $lib'
15169   ;;
15170
15171 sunos4*)
15172   version_type=sunos
15173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15174   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15175   shlibpath_var=LD_LIBRARY_PATH
15176   shlibpath_overrides_runpath=yes
15177   if test "$with_gnu_ld" = yes; then
15178     need_lib_prefix=no
15179   fi
15180   need_version=yes
15181   ;;
15182
15183 sysv4 | sysv4.3*)
15184   version_type=linux
15185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186   soname_spec='${libname}${release}${shared_ext}$major'
15187   shlibpath_var=LD_LIBRARY_PATH
15188   case $host_vendor in
15189     sni)
15190       shlibpath_overrides_runpath=no
15191       need_lib_prefix=no
15192       runpath_var=LD_RUN_PATH
15193       ;;
15194     siemens)
15195       need_lib_prefix=no
15196       ;;
15197     motorola)
15198       need_lib_prefix=no
15199       need_version=no
15200       shlibpath_overrides_runpath=no
15201       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15202       ;;
15203   esac
15204   ;;
15205
15206 sysv4*MP*)
15207   if test -d /usr/nec ;then
15208     version_type=linux
15209     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15210     soname_spec='$libname${shared_ext}.$major'
15211     shlibpath_var=LD_LIBRARY_PATH
15212   fi
15213   ;;
15214
15215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15216   version_type=freebsd-elf
15217   need_lib_prefix=no
15218   need_version=no
15219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15220   soname_spec='${libname}${release}${shared_ext}$major'
15221   shlibpath_var=LD_LIBRARY_PATH
15222   shlibpath_overrides_runpath=yes
15223   hardcode_into_libs=yes
15224   if test "$with_gnu_ld" = yes; then
15225     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15226   else
15227     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15228     case $host_os in
15229       sco3.2v5*)
15230         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15231         ;;
15232     esac
15233   fi
15234   sys_lib_dlsearch_path_spec='/usr/lib'
15235   ;;
15236
15237 tpf*)
15238   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15239   version_type=linux
15240   need_lib_prefix=no
15241   need_version=no
15242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243   shlibpath_var=LD_LIBRARY_PATH
15244   shlibpath_overrides_runpath=no
15245   hardcode_into_libs=yes
15246   ;;
15247
15248 uts4*)
15249   version_type=linux
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   ;;
15254
15255 *)
15256   dynamic_linker=no
15257   ;;
15258 esac
15259 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15260 echo "${ECHO_T}$dynamic_linker" >&6; }
15261 test "$dynamic_linker" = no && can_build_shared=no
15262
15263 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15264 if test "$GCC" = yes; then
15265   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15266 fi
15267
15268 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15269   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15270 fi
15271 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15272   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15273 fi
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312     { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15313 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15314 hardcode_action_CXX=
15315 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15316    test -n "$runpath_var_CXX" ||
15317    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15318
15319   # We can hardcode non-existent directories.
15320   if test "$hardcode_direct_CXX" != no &&
15321      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15322      # have to relink, otherwise we might link with an installed library
15323      # when we should be linking with a yet-to-be-installed one
15324      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15325      test "$hardcode_minus_L_CXX" != no; then
15326     # Linking always hardcodes the temporary library directory.
15327     hardcode_action_CXX=relink
15328   else
15329     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15330     hardcode_action_CXX=immediate
15331   fi
15332 else
15333   # We cannot hardcode anything, or else we can only hardcode existing
15334   # directories.
15335   hardcode_action_CXX=unsupported
15336 fi
15337 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15338 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15339
15340 if test "$hardcode_action_CXX" = relink ||
15341    test "$inherit_rpath_CXX" = yes; then
15342   # Fast installation is not supported
15343   enable_fast_install=no
15344 elif test "$shlibpath_overrides_runpath" = yes ||
15345      test "$enable_shared" = no; then
15346   # Fast installation is not necessary
15347   enable_fast_install=needless
15348 fi
15349
15350
15351
15352
15353
15354
15355
15356   fi # test -n "$compiler"
15357
15358   CC=$lt_save_CC
15359   LDCXX=$LD
15360   LD=$lt_save_LD
15361   GCC=$lt_save_GCC
15362   with_gnu_ld=$lt_save_with_gnu_ld
15363   lt_cv_path_LDCXX=$lt_cv_path_LD
15364   lt_cv_path_LD=$lt_save_path_LD
15365   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15366   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15367 fi # test "$_lt_caught_CXX_error" != yes
15368
15369 ac_ext=c
15370 ac_cpp='$CPP $CPPFLAGS'
15371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15374
15375
15376
15377
15378
15379   CFLAG_VISIBILITY=
15380   HAVE_VISIBILITY=0
15381   if test -n "$GCC"; then
15382                 { echo "$as_me:$LINENO: checking whether the -Werror option is usable" >&5
15383 echo $ECHO_N "checking whether the -Werror option is usable... $ECHO_C" >&6; }
15384     if test "${gl_cv_cc_vis_werror+set}" = set; then
15385   echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387
15388       gl_save_CFLAGS="$CFLAGS"
15389       CFLAGS="$CFLAGS -Werror"
15390       cat >conftest.$ac_ext <<_ACEOF
15391 /* confdefs.h.  */
15392 _ACEOF
15393 cat confdefs.h >>conftest.$ac_ext
15394 cat >>conftest.$ac_ext <<_ACEOF
15395 /* end confdefs.h.  */
15396
15397 int
15398 main ()
15399 {
15400
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 rm -f conftest.$ac_objext
15406 if { (ac_try="$ac_compile"
15407 case "(($ac_try" in
15408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409   *) ac_try_echo=$ac_try;;
15410 esac
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412   (eval "$ac_compile") 2>conftest.er1
15413   ac_status=$?
15414   grep -v '^ *+' conftest.er1 >conftest.err
15415   rm -f conftest.er1
15416   cat conftest.err >&5
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } && {
15419          test -z "$ac_c_werror_flag" ||
15420          test ! -s conftest.err
15421        } && test -s conftest.$ac_objext; then
15422   gl_cv_cc_vis_werror=yes
15423 else
15424   echo "$as_me: failed program was:" >&5
15425 sed 's/^/| /' conftest.$ac_ext >&5
15426
15427         gl_cv_cc_vis_werror=no
15428 fi
15429
15430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15431       CFLAGS="$gl_save_CFLAGS"
15432 fi
15433
15434     { echo "$as_me:$LINENO: result: $gl_cv_cc_vis_werror" >&5
15435 echo "${ECHO_T}$gl_cv_cc_vis_werror" >&6; }
15436         { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
15437 echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
15438     if test "${gl_cv_cc_visibility+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441
15442       gl_save_CFLAGS="$CFLAGS"
15443       CFLAGS="$CFLAGS -fvisibility=hidden"
15444                                     if test $gl_cv_cc_vis_werror = yes; then
15445         CFLAGS="$CFLAGS -Werror"
15446       fi
15447       cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h.  */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h.  */
15453 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
15454          extern __attribute__((__visibility__("default"))) int exportedvar;
15455          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
15456          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
15457          void dummyfunc (void) {}
15458 int
15459 main ()
15460 {
15461
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470   *) ac_try_echo=$ac_try;;
15471 esac
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473   (eval "$ac_compile") 2>conftest.er1
15474   ac_status=$?
15475   grep -v '^ *+' conftest.er1 >conftest.err
15476   rm -f conftest.er1
15477   cat conftest.err >&5
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); } && {
15480          test -z "$ac_c_werror_flag" ||
15481          test ! -s conftest.err
15482        } && test -s conftest.$ac_objext; then
15483   gl_cv_cc_visibility=yes
15484 else
15485   echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488         gl_cv_cc_visibility=no
15489 fi
15490
15491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492       CFLAGS="$gl_save_CFLAGS"
15493 fi
15494
15495     { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
15496 echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
15497     if test $gl_cv_cc_visibility = yes; then
15498       CFLAG_VISIBILITY="-fvisibility=hidden"
15499       HAVE_VISIBILITY=1
15500     fi
15501   fi
15502
15503
15504
15505 cat >>confdefs.h <<_ACEOF
15506 #define HAVE_VISIBILITY $HAVE_VISIBILITY
15507 _ACEOF
15508
15509
15510
15511
15512
15513
15514 for ac_func in gethostbyname
15515 do
15516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15520   echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15522   cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h.  */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h.  */
15528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15530 #define $ac_func innocuous_$ac_func
15531
15532 /* System header to define __stub macros and hopefully few prototypes,
15533     which can conflict with char $ac_func (); below.
15534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15535     <limits.h> exists even on freestanding compilers.  */
15536
15537 #ifdef __STDC__
15538 # include <limits.h>
15539 #else
15540 # include <assert.h>
15541 #endif
15542
15543 #undef $ac_func
15544
15545 /* Override any GCC internal prototype to avoid an error.
15546    Use char because int might match the return type of a GCC
15547    builtin and then its argument prototype would still apply.  */
15548 #ifdef __cplusplus
15549 extern "C"
15550 #endif
15551 char $ac_func ();
15552 /* The GNU C library defines this for functions which it implements
15553     to always fail with ENOSYS.  Some functions are actually named
15554     something starting with __ and the normal name is an alias.  */
15555 #if defined __stub_$ac_func || defined __stub___$ac_func
15556 choke me
15557 #endif
15558
15559 int
15560 main ()
15561 {
15562 return $ac_func ();
15563   ;
15564   return 0;
15565 }
15566 _ACEOF
15567 rm -f conftest.$ac_objext conftest$ac_exeext
15568 if { (ac_try="$ac_link"
15569 case "(($ac_try" in
15570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571   *) ac_try_echo=$ac_try;;
15572 esac
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574   (eval "$ac_link") 2>conftest.er1
15575   ac_status=$?
15576   grep -v '^ *+' conftest.er1 >conftest.err
15577   rm -f conftest.er1
15578   cat conftest.err >&5
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); } && {
15581          test -z "$ac_c_werror_flag" ||
15582          test ! -s conftest.err
15583        } && test -s conftest$ac_exeext &&
15584        $as_test_x conftest$ac_exeext; then
15585   eval "$as_ac_var=yes"
15586 else
15587   echo "$as_me: failed program was:" >&5
15588 sed 's/^/| /' conftest.$ac_ext >&5
15589
15590         eval "$as_ac_var=no"
15591 fi
15592
15593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15594       conftest$ac_exeext conftest.$ac_ext
15595 fi
15596 ac_res=`eval echo '${'$as_ac_var'}'`
15597                { echo "$as_me:$LINENO: result: $ac_res" >&5
15598 echo "${ECHO_T}$ac_res" >&6; }
15599 if test `eval echo '${'$as_ac_var'}'` = yes; then
15600   cat >>confdefs.h <<_ACEOF
15601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15602 _ACEOF
15603
15604 fi
15605 done
15606
15607
15608 for ac_func in gettimeofday
15609 do
15610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15614   echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616   cat >conftest.$ac_ext <<_ACEOF
15617 /* confdefs.h.  */
15618 _ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h.  */
15622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15624 #define $ac_func innocuous_$ac_func
15625
15626 /* System header to define __stub macros and hopefully few prototypes,
15627     which can conflict with char $ac_func (); below.
15628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15629     <limits.h> exists even on freestanding compilers.  */
15630
15631 #ifdef __STDC__
15632 # include <limits.h>
15633 #else
15634 # include <assert.h>
15635 #endif
15636
15637 #undef $ac_func
15638
15639 /* Override any GCC internal prototype to avoid an error.
15640    Use char because int might match the return type of a GCC
15641    builtin and then its argument prototype would still apply.  */
15642 #ifdef __cplusplus
15643 extern "C"
15644 #endif
15645 char $ac_func ();
15646 /* The GNU C library defines this for functions which it implements
15647     to always fail with ENOSYS.  Some functions are actually named
15648     something starting with __ and the normal name is an alias.  */
15649 #if defined __stub_$ac_func || defined __stub___$ac_func
15650 choke me
15651 #endif
15652
15653 int
15654 main ()
15655 {
15656 return $ac_func ();
15657   ;
15658   return 0;
15659 }
15660 _ACEOF
15661 rm -f conftest.$ac_objext conftest$ac_exeext
15662 if { (ac_try="$ac_link"
15663 case "(($ac_try" in
15664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665   *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668   (eval "$ac_link") 2>conftest.er1
15669   ac_status=$?
15670   grep -v '^ *+' conftest.er1 >conftest.err
15671   rm -f conftest.er1
15672   cat conftest.err >&5
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } && {
15675          test -z "$ac_c_werror_flag" ||
15676          test ! -s conftest.err
15677        } && test -s conftest$ac_exeext &&
15678        $as_test_x conftest$ac_exeext; then
15679   eval "$as_ac_var=yes"
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684         eval "$as_ac_var=no"
15685 fi
15686
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688       conftest$ac_exeext conftest.$ac_ext
15689 fi
15690 ac_res=`eval echo '${'$as_ac_var'}'`
15691                { echo "$as_me:$LINENO: result: $ac_res" >&5
15692 echo "${ECHO_T}$ac_res" >&6; }
15693 if test `eval echo '${'$as_ac_var'}'` = yes; then
15694   cat >>confdefs.h <<_ACEOF
15695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15696 _ACEOF
15697
15698 fi
15699 done
15700
15701
15702 for ac_func in inet_ntoa
15703 do
15704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h.  */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h.  */
15716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15718 #define $ac_func innocuous_$ac_func
15719
15720 /* System header to define __stub macros and hopefully few prototypes,
15721     which can conflict with char $ac_func (); below.
15722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15723     <limits.h> exists even on freestanding compilers.  */
15724
15725 #ifdef __STDC__
15726 # include <limits.h>
15727 #else
15728 # include <assert.h>
15729 #endif
15730
15731 #undef $ac_func
15732
15733 /* Override any GCC internal prototype to avoid an error.
15734    Use char because int might match the return type of a GCC
15735    builtin and then its argument prototype would still apply.  */
15736 #ifdef __cplusplus
15737 extern "C"
15738 #endif
15739 char $ac_func ();
15740 /* The GNU C library defines this for functions which it implements
15741     to always fail with ENOSYS.  Some functions are actually named
15742     something starting with __ and the normal name is an alias.  */
15743 #if defined __stub_$ac_func || defined __stub___$ac_func
15744 choke me
15745 #endif
15746
15747 int
15748 main ()
15749 {
15750 return $ac_func ();
15751   ;
15752   return 0;
15753 }
15754 _ACEOF
15755 rm -f conftest.$ac_objext conftest$ac_exeext
15756 if { (ac_try="$ac_link"
15757 case "(($ac_try" in
15758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759   *) ac_try_echo=$ac_try;;
15760 esac
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762   (eval "$ac_link") 2>conftest.er1
15763   ac_status=$?
15764   grep -v '^ *+' conftest.er1 >conftest.err
15765   rm -f conftest.er1
15766   cat conftest.err >&5
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); } && {
15769          test -z "$ac_c_werror_flag" ||
15770          test ! -s conftest.err
15771        } && test -s conftest$ac_exeext &&
15772        $as_test_x conftest$ac_exeext; then
15773   eval "$as_ac_var=yes"
15774 else
15775   echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15777
15778         eval "$as_ac_var=no"
15779 fi
15780
15781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15782       conftest$ac_exeext conftest.$ac_ext
15783 fi
15784 ac_res=`eval echo '${'$as_ac_var'}'`
15785                { echo "$as_me:$LINENO: result: $ac_res" >&5
15786 echo "${ECHO_T}$ac_res" >&6; }
15787 if test `eval echo '${'$as_ac_var'}'` = yes; then
15788   cat >>confdefs.h <<_ACEOF
15789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15790 _ACEOF
15791
15792 fi
15793 done
15794
15795
15796 for ac_func in memset
15797 do
15798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804   cat >conftest.$ac_ext <<_ACEOF
15805 /* confdefs.h.  */
15806 _ACEOF
15807 cat confdefs.h >>conftest.$ac_ext
15808 cat >>conftest.$ac_ext <<_ACEOF
15809 /* end confdefs.h.  */
15810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15812 #define $ac_func innocuous_$ac_func
15813
15814 /* System header to define __stub macros and hopefully few prototypes,
15815     which can conflict with char $ac_func (); below.
15816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15817     <limits.h> exists even on freestanding compilers.  */
15818
15819 #ifdef __STDC__
15820 # include <limits.h>
15821 #else
15822 # include <assert.h>
15823 #endif
15824
15825 #undef $ac_func
15826
15827 /* Override any GCC internal prototype to avoid an error.
15828    Use char because int might match the return type of a GCC
15829    builtin and then its argument prototype would still apply.  */
15830 #ifdef __cplusplus
15831 extern "C"
15832 #endif
15833 char $ac_func ();
15834 /* The GNU C library defines this for functions which it implements
15835     to always fail with ENOSYS.  Some functions are actually named
15836     something starting with __ and the normal name is an alias.  */
15837 #if defined __stub_$ac_func || defined __stub___$ac_func
15838 choke me
15839 #endif
15840
15841 int
15842 main ()
15843 {
15844 return $ac_func ();
15845   ;
15846   return 0;
15847 }
15848 _ACEOF
15849 rm -f conftest.$ac_objext conftest$ac_exeext
15850 if { (ac_try="$ac_link"
15851 case "(($ac_try" in
15852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15853   *) ac_try_echo=$ac_try;;
15854 esac
15855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15856   (eval "$ac_link") 2>conftest.er1
15857   ac_status=$?
15858   grep -v '^ *+' conftest.er1 >conftest.err
15859   rm -f conftest.er1
15860   cat conftest.err >&5
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } && {
15863          test -z "$ac_c_werror_flag" ||
15864          test ! -s conftest.err
15865        } && test -s conftest$ac_exeext &&
15866        $as_test_x conftest$ac_exeext; then
15867   eval "$as_ac_var=yes"
15868 else
15869   echo "$as_me: failed program was:" >&5
15870 sed 's/^/| /' conftest.$ac_ext >&5
15871
15872         eval "$as_ac_var=no"
15873 fi
15874
15875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15876       conftest$ac_exeext conftest.$ac_ext
15877 fi
15878 ac_res=`eval echo '${'$as_ac_var'}'`
15879                { echo "$as_me:$LINENO: result: $ac_res" >&5
15880 echo "${ECHO_T}$ac_res" >&6; }
15881 if test `eval echo '${'$as_ac_var'}'` = yes; then
15882   cat >>confdefs.h <<_ACEOF
15883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15884 _ACEOF
15885
15886 fi
15887 done
15888
15889
15890 for ac_func in socket
15891 do
15892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15896   echo $ECHO_N "(cached) $ECHO_C" >&6
15897 else
15898   cat >conftest.$ac_ext <<_ACEOF
15899 /* confdefs.h.  */
15900 _ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h.  */
15904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15906 #define $ac_func innocuous_$ac_func
15907
15908 /* System header to define __stub macros and hopefully few prototypes,
15909     which can conflict with char $ac_func (); below.
15910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15911     <limits.h> exists even on freestanding compilers.  */
15912
15913 #ifdef __STDC__
15914 # include <limits.h>
15915 #else
15916 # include <assert.h>
15917 #endif
15918
15919 #undef $ac_func
15920
15921 /* Override any GCC internal prototype to avoid an error.
15922    Use char because int might match the return type of a GCC
15923    builtin and then its argument prototype would still apply.  */
15924 #ifdef __cplusplus
15925 extern "C"
15926 #endif
15927 char $ac_func ();
15928 /* The GNU C library defines this for functions which it implements
15929     to always fail with ENOSYS.  Some functions are actually named
15930     something starting with __ and the normal name is an alias.  */
15931 #if defined __stub_$ac_func || defined __stub___$ac_func
15932 choke me
15933 #endif
15934
15935 int
15936 main ()
15937 {
15938 return $ac_func ();
15939   ;
15940   return 0;
15941 }
15942 _ACEOF
15943 rm -f conftest.$ac_objext conftest$ac_exeext
15944 if { (ac_try="$ac_link"
15945 case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950   (eval "$ac_link") 2>conftest.er1
15951   ac_status=$?
15952   grep -v '^ *+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } && {
15957          test -z "$ac_c_werror_flag" ||
15958          test ! -s conftest.err
15959        } && test -s conftest$ac_exeext &&
15960        $as_test_x conftest$ac_exeext; then
15961   eval "$as_ac_var=yes"
15962 else
15963   echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15965
15966         eval "$as_ac_var=no"
15967 fi
15968
15969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15970       conftest$ac_exeext conftest.$ac_ext
15971 fi
15972 ac_res=`eval echo '${'$as_ac_var'}'`
15973                { echo "$as_me:$LINENO: result: $ac_res" >&5
15974 echo "${ECHO_T}$ac_res" >&6; }
15975 if test `eval echo '${'$as_ac_var'}'` = yes; then
15976   cat >>confdefs.h <<_ACEOF
15977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15978 _ACEOF
15979
15980 fi
15981 done
15982
15983
15984 for ac_header in arpa/inet.h
15985 do
15986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15988   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15991   echo $ECHO_N "(cached) $ECHO_C" >&6
15992 fi
15993 ac_res=`eval echo '${'$as_ac_Header'}'`
15994                { echo "$as_me:$LINENO: result: $ac_res" >&5
15995 echo "${ECHO_T}$ac_res" >&6; }
15996 else
15997   # Is the header compilable?
15998 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h.  */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h.  */
16006 $ac_includes_default
16007 #include <$ac_header>
16008 _ACEOF
16009 rm -f conftest.$ac_objext
16010 if { (ac_try="$ac_compile"
16011 case "(($ac_try" in
16012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013   *) ac_try_echo=$ac_try;;
16014 esac
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016   (eval "$ac_compile") 2>conftest.er1
16017   ac_status=$?
16018   grep -v '^ *+' conftest.er1 >conftest.err
16019   rm -f conftest.er1
16020   cat conftest.err >&5
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); } && {
16023          test -z "$ac_c_werror_flag" ||
16024          test ! -s conftest.err
16025        } && test -s conftest.$ac_objext; then
16026   ac_header_compiler=yes
16027 else
16028   echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031         ac_header_compiler=no
16032 fi
16033
16034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16035 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16036 echo "${ECHO_T}$ac_header_compiler" >&6; }
16037
16038 # Is the header present?
16039 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16041 cat >conftest.$ac_ext <<_ACEOF
16042 /* confdefs.h.  */
16043 _ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h.  */
16047 #include <$ac_header>
16048 _ACEOF
16049 if { (ac_try="$ac_cpp conftest.$ac_ext"
16050 case "(($ac_try" in
16051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052   *) ac_try_echo=$ac_try;;
16053 esac
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16056   ac_status=$?
16057   grep -v '^ *+' conftest.er1 >conftest.err
16058   rm -f conftest.er1
16059   cat conftest.err >&5
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); } >/dev/null && {
16062          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16063          test ! -s conftest.err
16064        }; then
16065   ac_header_preproc=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070   ac_header_preproc=no
16071 fi
16072
16073 rm -f conftest.err conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16075 echo "${ECHO_T}$ac_header_preproc" >&6; }
16076
16077 # So?  What about this header?
16078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16079   yes:no: )
16080     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16081 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16084     ac_header_preproc=yes
16085     ;;
16086   no:yes:* )
16087     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16088 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16089     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16090 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16091     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16092 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16093     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16094 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16097     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16098 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16099     ( cat <<\_ASBOX
16100 ## ----------------------------------- ##
16101 ## Report this to http://www.yassl.com ##
16102 ## ----------------------------------- ##
16103 _ASBOX
16104      ) | sed "s/^/$as_me: WARNING:     /" >&2
16105     ;;
16106 esac
16107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16110   echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112   eval "$as_ac_Header=\$ac_header_preproc"
16113 fi
16114 ac_res=`eval echo '${'$as_ac_Header'}'`
16115                { echo "$as_me:$LINENO: result: $ac_res" >&5
16116 echo "${ECHO_T}$ac_res" >&6; }
16117
16118 fi
16119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16120   cat >>confdefs.h <<_ACEOF
16121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16122 _ACEOF
16123
16124 fi
16125
16126 done
16127
16128
16129 for ac_header in fcntl.h
16130 do
16131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16133   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136   echo $ECHO_N "(cached) $ECHO_C" >&6
16137 fi
16138 ac_res=`eval echo '${'$as_ac_Header'}'`
16139                { echo "$as_me:$LINENO: result: $ac_res" >&5
16140 echo "${ECHO_T}$ac_res" >&6; }
16141 else
16142   # Is the header compilable?
16143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16145 cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151 $ac_includes_default
16152 #include <$ac_header>
16153 _ACEOF
16154 rm -f conftest.$ac_objext
16155 if { (ac_try="$ac_compile"
16156 case "(($ac_try" in
16157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158   *) ac_try_echo=$ac_try;;
16159 esac
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161   (eval "$ac_compile") 2>conftest.er1
16162   ac_status=$?
16163   grep -v '^ *+' conftest.er1 >conftest.err
16164   rm -f conftest.er1
16165   cat conftest.err >&5
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } && {
16168          test -z "$ac_c_werror_flag" ||
16169          test ! -s conftest.err
16170        } && test -s conftest.$ac_objext; then
16171   ac_header_compiler=yes
16172 else
16173   echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16175
16176         ac_header_compiler=no
16177 fi
16178
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16181 echo "${ECHO_T}$ac_header_compiler" >&6; }
16182
16183 # Is the header present?
16184 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h.  */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h.  */
16192 #include <$ac_header>
16193 _ACEOF
16194 if { (ac_try="$ac_cpp conftest.$ac_ext"
16195 case "(($ac_try" in
16196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197   *) ac_try_echo=$ac_try;;
16198 esac
16199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16201   ac_status=$?
16202   grep -v '^ *+' conftest.er1 >conftest.err
16203   rm -f conftest.er1
16204   cat conftest.err >&5
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } >/dev/null && {
16207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16208          test ! -s conftest.err
16209        }; then
16210   ac_header_preproc=yes
16211 else
16212   echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16214
16215   ac_header_preproc=no
16216 fi
16217
16218 rm -f conftest.err conftest.$ac_ext
16219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16220 echo "${ECHO_T}$ac_header_preproc" >&6; }
16221
16222 # So?  What about this header?
16223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16224   yes:no: )
16225     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16227     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16229     ac_header_preproc=yes
16230     ;;
16231   no:yes:* )
16232     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16234     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16235 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16236     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16238     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16239 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16240     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16242     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16244     ( cat <<\_ASBOX
16245 ## ----------------------------------- ##
16246 ## Report this to http://www.yassl.com ##
16247 ## ----------------------------------- ##
16248 _ASBOX
16249      ) | sed "s/^/$as_me: WARNING:     /" >&2
16250     ;;
16251 esac
16252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   eval "$as_ac_Header=\$ac_header_preproc"
16258 fi
16259 ac_res=`eval echo '${'$as_ac_Header'}'`
16260                { echo "$as_me:$LINENO: result: $ac_res" >&5
16261 echo "${ECHO_T}$ac_res" >&6; }
16262
16263 fi
16264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16265   cat >>confdefs.h <<_ACEOF
16266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16267 _ACEOF
16268
16269 fi
16270
16271 done
16272
16273
16274 for ac_header in limits.h
16275 do
16276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16278   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16281   echo $ECHO_N "(cached) $ECHO_C" >&6
16282 fi
16283 ac_res=`eval echo '${'$as_ac_Header'}'`
16284                { echo "$as_me:$LINENO: result: $ac_res" >&5
16285 echo "${ECHO_T}$ac_res" >&6; }
16286 else
16287   # Is the header compilable?
16288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16290 cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h.  */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h.  */
16296 $ac_includes_default
16297 #include <$ac_header>
16298 _ACEOF
16299 rm -f conftest.$ac_objext
16300 if { (ac_try="$ac_compile"
16301 case "(($ac_try" in
16302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303   *) ac_try_echo=$ac_try;;
16304 esac
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306   (eval "$ac_compile") 2>conftest.er1
16307   ac_status=$?
16308   grep -v '^ *+' conftest.er1 >conftest.err
16309   rm -f conftest.er1
16310   cat conftest.err >&5
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); } && {
16313          test -z "$ac_c_werror_flag" ||
16314          test ! -s conftest.err
16315        } && test -s conftest.$ac_objext; then
16316   ac_header_compiler=yes
16317 else
16318   echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321         ac_header_compiler=no
16322 fi
16323
16324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16326 echo "${ECHO_T}$ac_header_compiler" >&6; }
16327
16328 # Is the header present?
16329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16331 cat >conftest.$ac_ext <<_ACEOF
16332 /* confdefs.h.  */
16333 _ACEOF
16334 cat confdefs.h >>conftest.$ac_ext
16335 cat >>conftest.$ac_ext <<_ACEOF
16336 /* end confdefs.h.  */
16337 #include <$ac_header>
16338 _ACEOF
16339 if { (ac_try="$ac_cpp conftest.$ac_ext"
16340 case "(($ac_try" in
16341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342   *) ac_try_echo=$ac_try;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16346   ac_status=$?
16347   grep -v '^ *+' conftest.er1 >conftest.err
16348   rm -f conftest.er1
16349   cat conftest.err >&5
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } >/dev/null && {
16352          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16353          test ! -s conftest.err
16354        }; then
16355   ac_header_preproc=yes
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360   ac_header_preproc=no
16361 fi
16362
16363 rm -f conftest.err conftest.$ac_ext
16364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16365 echo "${ECHO_T}$ac_header_preproc" >&6; }
16366
16367 # So?  What about this header?
16368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16369   yes:no: )
16370     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16374     ac_header_preproc=yes
16375     ;;
16376   no:yes:* )
16377     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16379     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16380 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16381     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16383     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16384 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16387     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16389     ( cat <<\_ASBOX
16390 ## ----------------------------------- ##
16391 ## Report this to http://www.yassl.com ##
16392 ## ----------------------------------- ##
16393 _ASBOX
16394      ) | sed "s/^/$as_me: WARNING:     /" >&2
16395     ;;
16396 esac
16397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   eval "$as_ac_Header=\$ac_header_preproc"
16403 fi
16404 ac_res=`eval echo '${'$as_ac_Header'}'`
16405                { echo "$as_me:$LINENO: result: $ac_res" >&5
16406 echo "${ECHO_T}$ac_res" >&6; }
16407
16408 fi
16409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16410   cat >>confdefs.h <<_ACEOF
16411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16412 _ACEOF
16413
16414 fi
16415
16416 done
16417
16418
16419 for ac_header in netdb.h
16420 do
16421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 fi
16428 ac_res=`eval echo '${'$as_ac_Header'}'`
16429                { echo "$as_me:$LINENO: result: $ac_res" >&5
16430 echo "${ECHO_T}$ac_res" >&6; }
16431 else
16432   # Is the header compilable?
16433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16435 cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441 $ac_includes_default
16442 #include <$ac_header>
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448   *) ac_try_echo=$ac_try;;
16449 esac
16450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16451   (eval "$ac_compile") 2>conftest.er1
16452   ac_status=$?
16453   grep -v '^ *+' conftest.er1 >conftest.err
16454   rm -f conftest.er1
16455   cat conftest.err >&5
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); } && {
16458          test -z "$ac_c_werror_flag" ||
16459          test ! -s conftest.err
16460        } && test -s conftest.$ac_objext; then
16461   ac_header_compiler=yes
16462 else
16463   echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16465
16466         ac_header_compiler=no
16467 fi
16468
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16471 echo "${ECHO_T}$ac_header_compiler" >&6; }
16472
16473 # Is the header present?
16474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h.  */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h.  */
16482 #include <$ac_header>
16483 _ACEOF
16484 if { (ac_try="$ac_cpp conftest.$ac_ext"
16485 case "(($ac_try" in
16486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487   *) ac_try_echo=$ac_try;;
16488 esac
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16491   ac_status=$?
16492   grep -v '^ *+' conftest.er1 >conftest.err
16493   rm -f conftest.er1
16494   cat conftest.err >&5
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); } >/dev/null && {
16497          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16498          test ! -s conftest.err
16499        }; then
16500   ac_header_preproc=yes
16501 else
16502   echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16504
16505   ac_header_preproc=no
16506 fi
16507
16508 rm -f conftest.err conftest.$ac_ext
16509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16510 echo "${ECHO_T}$ac_header_preproc" >&6; }
16511
16512 # So?  What about this header?
16513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16514   yes:no: )
16515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16519     ac_header_preproc=yes
16520     ;;
16521   no:yes:* )
16522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16534     ( cat <<\_ASBOX
16535 ## ----------------------------------- ##
16536 ## Report this to http://www.yassl.com ##
16537 ## ----------------------------------- ##
16538 _ASBOX
16539      ) | sed "s/^/$as_me: WARNING:     /" >&2
16540     ;;
16541 esac
16542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16545   echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547   eval "$as_ac_Header=\$ac_header_preproc"
16548 fi
16549 ac_res=`eval echo '${'$as_ac_Header'}'`
16550                { echo "$as_me:$LINENO: result: $ac_res" >&5
16551 echo "${ECHO_T}$ac_res" >&6; }
16552
16553 fi
16554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16555   cat >>confdefs.h <<_ACEOF
16556 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16557 _ACEOF
16558
16559 fi
16560
16561 done
16562
16563
16564 for ac_header in netinet/in.h
16565 do
16566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16568   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16571   echo $ECHO_N "(cached) $ECHO_C" >&6
16572 fi
16573 ac_res=`eval echo '${'$as_ac_Header'}'`
16574                { echo "$as_me:$LINENO: result: $ac_res" >&5
16575 echo "${ECHO_T}$ac_res" >&6; }
16576 else
16577   # Is the header compilable?
16578 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16579 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16580 cat >conftest.$ac_ext <<_ACEOF
16581 /* confdefs.h.  */
16582 _ACEOF
16583 cat confdefs.h >>conftest.$ac_ext
16584 cat >>conftest.$ac_ext <<_ACEOF
16585 /* end confdefs.h.  */
16586 $ac_includes_default
16587 #include <$ac_header>
16588 _ACEOF
16589 rm -f conftest.$ac_objext
16590 if { (ac_try="$ac_compile"
16591 case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_compile") 2>conftest.er1
16597   ac_status=$?
16598   grep -v '^ *+' conftest.er1 >conftest.err
16599   rm -f conftest.er1
16600   cat conftest.err >&5
16601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); } && {
16603          test -z "$ac_c_werror_flag" ||
16604          test ! -s conftest.err
16605        } && test -s conftest.$ac_objext; then
16606   ac_header_compiler=yes
16607 else
16608   echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16610
16611         ac_header_compiler=no
16612 fi
16613
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16616 echo "${ECHO_T}$ac_header_compiler" >&6; }
16617
16618 # Is the header present?
16619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16621 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627 #include <$ac_header>
16628 _ACEOF
16629 if { (ac_try="$ac_cpp conftest.$ac_ext"
16630 case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16636   ac_status=$?
16637   grep -v '^ *+' conftest.er1 >conftest.err
16638   rm -f conftest.er1
16639   cat conftest.err >&5
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); } >/dev/null && {
16642          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16643          test ! -s conftest.err
16644        }; then
16645   ac_header_preproc=yes
16646 else
16647   echo "$as_me: failed program was:" >&5
16648 sed 's/^/| /' conftest.$ac_ext >&5
16649
16650   ac_header_preproc=no
16651 fi
16652
16653 rm -f conftest.err conftest.$ac_ext
16654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16655 echo "${ECHO_T}$ac_header_preproc" >&6; }
16656
16657 # So?  What about this header?
16658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16659   yes:no: )
16660     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16662     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16664     ac_header_preproc=yes
16665     ;;
16666   no:yes:* )
16667     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16669     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16670 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16671     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16673     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16674 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16677     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16679     ( cat <<\_ASBOX
16680 ## ----------------------------------- ##
16681 ## Report this to http://www.yassl.com ##
16682 ## ----------------------------------- ##
16683 _ASBOX
16684      ) | sed "s/^/$as_me: WARNING:     /" >&2
16685     ;;
16686 esac
16687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692   eval "$as_ac_Header=\$ac_header_preproc"
16693 fi
16694 ac_res=`eval echo '${'$as_ac_Header'}'`
16695                { echo "$as_me:$LINENO: result: $ac_res" >&5
16696 echo "${ECHO_T}$ac_res" >&6; }
16697
16698 fi
16699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16700   cat >>confdefs.h <<_ACEOF
16701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16702 _ACEOF
16703
16704 fi
16705
16706 done
16707
16708
16709 for ac_header in stddef.h
16710 do
16711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16713   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16716   echo $ECHO_N "(cached) $ECHO_C" >&6
16717 fi
16718 ac_res=`eval echo '${'$as_ac_Header'}'`
16719                { echo "$as_me:$LINENO: result: $ac_res" >&5
16720 echo "${ECHO_T}$ac_res" >&6; }
16721 else
16722   # Is the header compilable?
16723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16725 cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h.  */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h.  */
16731 $ac_includes_default
16732 #include <$ac_header>
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (ac_try="$ac_compile"
16736 case "(($ac_try" in
16737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738   *) ac_try_echo=$ac_try;;
16739 esac
16740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741   (eval "$ac_compile") 2>conftest.er1
16742   ac_status=$?
16743   grep -v '^ *+' conftest.er1 >conftest.err
16744   rm -f conftest.er1
16745   cat conftest.err >&5
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); } && {
16748          test -z "$ac_c_werror_flag" ||
16749          test ! -s conftest.err
16750        } && test -s conftest.$ac_objext; then
16751   ac_header_compiler=yes
16752 else
16753   echo "$as_me: failed program was:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16755
16756         ac_header_compiler=no
16757 fi
16758
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16761 echo "${ECHO_T}$ac_header_compiler" >&6; }
16762
16763 # Is the header present?
16764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16766 cat >conftest.$ac_ext <<_ACEOF
16767 /* confdefs.h.  */
16768 _ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h.  */
16772 #include <$ac_header>
16773 _ACEOF
16774 if { (ac_try="$ac_cpp conftest.$ac_ext"
16775 case "(($ac_try" in
16776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777   *) ac_try_echo=$ac_try;;
16778 esac
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16781   ac_status=$?
16782   grep -v '^ *+' conftest.er1 >conftest.err
16783   rm -f conftest.er1
16784   cat conftest.err >&5
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); } >/dev/null && {
16787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16788          test ! -s conftest.err
16789        }; then
16790   ac_header_preproc=yes
16791 else
16792   echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795   ac_header_preproc=no
16796 fi
16797
16798 rm -f conftest.err conftest.$ac_ext
16799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16800 echo "${ECHO_T}$ac_header_preproc" >&6; }
16801
16802 # So?  What about this header?
16803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16804   yes:no: )
16805     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16809     ac_header_preproc=yes
16810     ;;
16811   no:yes:* )
16812     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16814     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16815 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16816     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16818     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16819 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16822     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16824     ( cat <<\_ASBOX
16825 ## ----------------------------------- ##
16826 ## Report this to http://www.yassl.com ##
16827 ## ----------------------------------- ##
16828 _ASBOX
16829      ) | sed "s/^/$as_me: WARNING:     /" >&2
16830     ;;
16831 esac
16832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   eval "$as_ac_Header=\$ac_header_preproc"
16838 fi
16839 ac_res=`eval echo '${'$as_ac_Header'}'`
16840                { echo "$as_me:$LINENO: result: $ac_res" >&5
16841 echo "${ECHO_T}$ac_res" >&6; }
16842
16843 fi
16844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16845   cat >>confdefs.h <<_ACEOF
16846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16847 _ACEOF
16848
16849 fi
16850
16851 done
16852
16853
16854 for ac_header in sys/ioctl.h
16855 do
16856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 fi
16863 ac_res=`eval echo '${'$as_ac_Header'}'`
16864                { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16866 else
16867   # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876 $ac_includes_default
16877 #include <$ac_header>
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_compile") 2>conftest.er1
16887   ac_status=$?
16888   grep -v '^ *+' conftest.er1 >conftest.err
16889   rm -f conftest.er1
16890   cat conftest.err >&5
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } && {
16893          test -z "$ac_c_werror_flag" ||
16894          test ! -s conftest.err
16895        } && test -s conftest.$ac_objext; then
16896   ac_header_compiler=yes
16897 else
16898   echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901         ac_header_compiler=no
16902 fi
16903
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16906 echo "${ECHO_T}$ac_header_compiler" >&6; }
16907
16908 # Is the header present?
16909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16911 cat >conftest.$ac_ext <<_ACEOF
16912 /* confdefs.h.  */
16913 _ACEOF
16914 cat confdefs.h >>conftest.$ac_ext
16915 cat >>conftest.$ac_ext <<_ACEOF
16916 /* end confdefs.h.  */
16917 #include <$ac_header>
16918 _ACEOF
16919 if { (ac_try="$ac_cpp conftest.$ac_ext"
16920 case "(($ac_try" in
16921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922   *) ac_try_echo=$ac_try;;
16923 esac
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16926   ac_status=$?
16927   grep -v '^ *+' conftest.er1 >conftest.err
16928   rm -f conftest.er1
16929   cat conftest.err >&5
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); } >/dev/null && {
16932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16933          test ! -s conftest.err
16934        }; then
16935   ac_header_preproc=yes
16936 else
16937   echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940   ac_header_preproc=no
16941 fi
16942
16943 rm -f conftest.err conftest.$ac_ext
16944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16945 echo "${ECHO_T}$ac_header_preproc" >&6; }
16946
16947 # So?  What about this header?
16948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16949   yes:no: )
16950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16954     ac_header_preproc=yes
16955     ;;
16956   no:yes:* )
16957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16969     ( cat <<\_ASBOX
16970 ## ----------------------------------- ##
16971 ## Report this to http://www.yassl.com ##
16972 ## ----------------------------------- ##
16973 _ASBOX
16974      ) | sed "s/^/$as_me: WARNING:     /" >&2
16975     ;;
16976 esac
16977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982   eval "$as_ac_Header=\$ac_header_preproc"
16983 fi
16984 ac_res=`eval echo '${'$as_ac_Header'}'`
16985                { echo "$as_me:$LINENO: result: $ac_res" >&5
16986 echo "${ECHO_T}$ac_res" >&6; }
16987
16988 fi
16989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16990   cat >>confdefs.h <<_ACEOF
16991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16992 _ACEOF
16993
16994 fi
16995
16996 done
16997
16998
16999 for ac_header in sys/socket.h
17000 do
17001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17006   echo $ECHO_N "(cached) $ECHO_C" >&6
17007 fi
17008 ac_res=`eval echo '${'$as_ac_Header'}'`
17009                { echo "$as_me:$LINENO: result: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 else
17012   # Is the header compilable?
17013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h.  */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h.  */
17021 $ac_includes_default
17022 #include <$ac_header>
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (ac_try="$ac_compile"
17026 case "(($ac_try" in
17027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17028   *) ac_try_echo=$ac_try;;
17029 esac
17030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17031   (eval "$ac_compile") 2>conftest.er1
17032   ac_status=$?
17033   grep -v '^ *+' conftest.er1 >conftest.err
17034   rm -f conftest.er1
17035   cat conftest.err >&5
17036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037   (exit $ac_status); } && {
17038          test -z "$ac_c_werror_flag" ||
17039          test ! -s conftest.err
17040        } && test -s conftest.$ac_objext; then
17041   ac_header_compiler=yes
17042 else
17043   echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17045
17046         ac_header_compiler=no
17047 fi
17048
17049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17051 echo "${ECHO_T}$ac_header_compiler" >&6; }
17052
17053 # Is the header present?
17054 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062 #include <$ac_header>
17063 _ACEOF
17064 if { (ac_try="$ac_cpp conftest.$ac_ext"
17065 case "(($ac_try" in
17066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067   *) ac_try_echo=$ac_try;;
17068 esac
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17071   ac_status=$?
17072   grep -v '^ *+' conftest.er1 >conftest.err
17073   rm -f conftest.er1
17074   cat conftest.err >&5
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); } >/dev/null && {
17077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17078          test ! -s conftest.err
17079        }; then
17080   ac_header_preproc=yes
17081 else
17082   echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17084
17085   ac_header_preproc=no
17086 fi
17087
17088 rm -f conftest.err conftest.$ac_ext
17089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 echo "${ECHO_T}$ac_header_preproc" >&6; }
17091
17092 # So?  What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17094   yes:no: )
17095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099     ac_header_preproc=yes
17100     ;;
17101   no:yes:* )
17102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17114     ( cat <<\_ASBOX
17115 ## ----------------------------------- ##
17116 ## Report this to http://www.yassl.com ##
17117 ## ----------------------------------- ##
17118 _ASBOX
17119      ) | sed "s/^/$as_me: WARNING:     /" >&2
17120     ;;
17121 esac
17122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17125   echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127   eval "$as_ac_Header=\$ac_header_preproc"
17128 fi
17129 ac_res=`eval echo '${'$as_ac_Header'}'`
17130                { echo "$as_me:$LINENO: result: $ac_res" >&5
17131 echo "${ECHO_T}$ac_res" >&6; }
17132
17133 fi
17134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17135   cat >>confdefs.h <<_ACEOF
17136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17137 _ACEOF
17138
17139 fi
17140
17141 done
17142
17143
17144 for ac_header in sys/time.h
17145 do
17146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17148   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17151   echo $ECHO_N "(cached) $ECHO_C" >&6
17152 fi
17153 ac_res=`eval echo '${'$as_ac_Header'}'`
17154                { echo "$as_me:$LINENO: result: $ac_res" >&5
17155 echo "${ECHO_T}$ac_res" >&6; }
17156 else
17157   # Is the header compilable?
17158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h.  */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h.  */
17166 $ac_includes_default
17167 #include <$ac_header>
17168 _ACEOF
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173   *) ac_try_echo=$ac_try;;
17174 esac
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176   (eval "$ac_compile") 2>conftest.er1
17177   ac_status=$?
17178   grep -v '^ *+' conftest.er1 >conftest.err
17179   rm -f conftest.er1
17180   cat conftest.err >&5
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); } && {
17183          test -z "$ac_c_werror_flag" ||
17184          test ! -s conftest.err
17185        } && test -s conftest.$ac_objext; then
17186   ac_header_compiler=yes
17187 else
17188   echo "$as_me: failed program was:" >&5
17189 sed 's/^/| /' conftest.$ac_ext >&5
17190
17191         ac_header_compiler=no
17192 fi
17193
17194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17196 echo "${ECHO_T}$ac_header_compiler" >&6; }
17197
17198 # Is the header present?
17199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207 #include <$ac_header>
17208 _ACEOF
17209 if { (ac_try="$ac_cpp conftest.$ac_ext"
17210 case "(($ac_try" in
17211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212   *) ac_try_echo=$ac_try;;
17213 esac
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17216   ac_status=$?
17217   grep -v '^ *+' conftest.er1 >conftest.err
17218   rm -f conftest.er1
17219   cat conftest.err >&5
17220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221   (exit $ac_status); } >/dev/null && {
17222          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17223          test ! -s conftest.err
17224        }; then
17225   ac_header_preproc=yes
17226 else
17227   echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230   ac_header_preproc=no
17231 fi
17232
17233 rm -f conftest.err conftest.$ac_ext
17234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17235 echo "${ECHO_T}$ac_header_preproc" >&6; }
17236
17237 # So?  What about this header?
17238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17239   yes:no: )
17240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17244     ac_header_preproc=yes
17245     ;;
17246   no:yes:* )
17247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17259     ( cat <<\_ASBOX
17260 ## ----------------------------------- ##
17261 ## Report this to http://www.yassl.com ##
17262 ## ----------------------------------- ##
17263 _ASBOX
17264      ) | sed "s/^/$as_me: WARNING:     /" >&2
17265     ;;
17266 esac
17267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272   eval "$as_ac_Header=\$ac_header_preproc"
17273 fi
17274 ac_res=`eval echo '${'$as_ac_Header'}'`
17275                { echo "$as_me:$LINENO: result: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17277
17278 fi
17279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17280   cat >>confdefs.h <<_ACEOF
17281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17282 _ACEOF
17283
17284 fi
17285
17286 done
17287
17288
17289 for ac_header in errno.h
17290 do
17291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17293   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17296   echo $ECHO_N "(cached) $ECHO_C" >&6
17297 fi
17298 ac_res=`eval echo '${'$as_ac_Header'}'`
17299                { echo "$as_me:$LINENO: result: $ac_res" >&5
17300 echo "${ECHO_T}$ac_res" >&6; }
17301 else
17302   # Is the header compilable?
17303 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17305 cat >conftest.$ac_ext <<_ACEOF
17306 /* confdefs.h.  */
17307 _ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h.  */
17311 $ac_includes_default
17312 #include <$ac_header>
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (ac_try="$ac_compile"
17316 case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_compile") 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } && {
17328          test -z "$ac_c_werror_flag" ||
17329          test ! -s conftest.err
17330        } && test -s conftest.$ac_objext; then
17331   ac_header_compiler=yes
17332 else
17333   echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17335
17336         ac_header_compiler=no
17337 fi
17338
17339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17341 echo "${ECHO_T}$ac_header_compiler" >&6; }
17342
17343 # Is the header present?
17344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17346 cat >conftest.$ac_ext <<_ACEOF
17347 /* confdefs.h.  */
17348 _ACEOF
17349 cat confdefs.h >>conftest.$ac_ext
17350 cat >>conftest.$ac_ext <<_ACEOF
17351 /* end confdefs.h.  */
17352 #include <$ac_header>
17353 _ACEOF
17354 if { (ac_try="$ac_cpp conftest.$ac_ext"
17355 case "(($ac_try" in
17356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357   *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17361   ac_status=$?
17362   grep -v '^ *+' conftest.er1 >conftest.err
17363   rm -f conftest.er1
17364   cat conftest.err >&5
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); } >/dev/null && {
17367          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17368          test ! -s conftest.err
17369        }; then
17370   ac_header_preproc=yes
17371 else
17372   echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375   ac_header_preproc=no
17376 fi
17377
17378 rm -f conftest.err conftest.$ac_ext
17379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17380 echo "${ECHO_T}$ac_header_preproc" >&6; }
17381
17382 # So?  What about this header?
17383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17384   yes:no: )
17385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17389     ac_header_preproc=yes
17390     ;;
17391   no:yes:* )
17392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17404     ( cat <<\_ASBOX
17405 ## ----------------------------------- ##
17406 ## Report this to http://www.yassl.com ##
17407 ## ----------------------------------- ##
17408 _ASBOX
17409      ) | sed "s/^/$as_me: WARNING:     /" >&2
17410     ;;
17411 esac
17412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17415   echo $ECHO_N "(cached) $ECHO_C" >&6
17416 else
17417   eval "$as_ac_Header=\$ac_header_preproc"
17418 fi
17419 ac_res=`eval echo '${'$as_ac_Header'}'`
17420                { echo "$as_me:$LINENO: result: $ac_res" >&5
17421 echo "${ECHO_T}$ac_res" >&6; }
17422
17423 fi
17424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17425   cat >>confdefs.h <<_ACEOF
17426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17427 _ACEOF
17428
17429 fi
17430
17431 done
17432
17433
17434 { echo "$as_me:$LINENO: checking for socket in -lnetwork" >&5
17435 echo $ECHO_N "checking for socket in -lnetwork... $ECHO_C" >&6; }
17436 if test "${ac_cv_lib_network_socket+set}" = set; then
17437   echo $ECHO_N "(cached) $ECHO_C" >&6
17438 else
17439   ac_check_lib_save_LIBS=$LIBS
17440 LIBS="-lnetwork  $LIBS"
17441 cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h.  */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h.  */
17447
17448 /* Override any GCC internal prototype to avoid an error.
17449    Use char because int might match the return type of a GCC
17450    builtin and then its argument prototype would still apply.  */
17451 #ifdef __cplusplus
17452 extern "C"
17453 #endif
17454 char socket ();
17455 int
17456 main ()
17457 {
17458 return socket ();
17459   ;
17460   return 0;
17461 }
17462 _ACEOF
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (ac_try="$ac_link"
17465 case "(($ac_try" in
17466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467   *) ac_try_echo=$ac_try;;
17468 esac
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470   (eval "$ac_link") 2>conftest.er1
17471   ac_status=$?
17472   grep -v '^ *+' conftest.er1 >conftest.err
17473   rm -f conftest.er1
17474   cat conftest.err >&5
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); } && {
17477          test -z "$ac_c_werror_flag" ||
17478          test ! -s conftest.err
17479        } && test -s conftest$ac_exeext &&
17480        $as_test_x conftest$ac_exeext; then
17481   ac_cv_lib_network_socket=yes
17482 else
17483   echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486         ac_cv_lib_network_socket=no
17487 fi
17488
17489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17490       conftest$ac_exeext conftest.$ac_ext
17491 LIBS=$ac_check_lib_save_LIBS
17492 fi
17493 { echo "$as_me:$LINENO: result: $ac_cv_lib_network_socket" >&5
17494 echo "${ECHO_T}$ac_cv_lib_network_socket" >&6; }
17495 if test $ac_cv_lib_network_socket = yes; then
17496   cat >>confdefs.h <<_ACEOF
17497 #define HAVE_LIBNETWORK 1
17498 _ACEOF
17499
17500   LIBS="-lnetwork $LIBS"
17501
17502 fi
17503
17504 { echo "$as_me:$LINENO: checking for long long" >&5
17505 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
17506 if test "${ac_cv_type_long_long+set}" = set; then
17507   echo $ECHO_N "(cached) $ECHO_C" >&6
17508 else
17509   cat >conftest.$ac_ext <<_ACEOF
17510 /* confdefs.h.  */
17511 _ACEOF
17512 cat confdefs.h >>conftest.$ac_ext
17513 cat >>conftest.$ac_ext <<_ACEOF
17514 /* end confdefs.h.  */
17515 $ac_includes_default
17516 typedef long long ac__type_new_;
17517 int
17518 main ()
17519 {
17520 if ((ac__type_new_ *) 0)
17521   return 0;
17522 if (sizeof (ac__type_new_))
17523   return 0;
17524   ;
17525   return 0;
17526 }
17527 _ACEOF
17528 rm -f conftest.$ac_objext
17529 if { (ac_try="$ac_compile"
17530 case "(($ac_try" in
17531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532   *) ac_try_echo=$ac_try;;
17533 esac
17534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535   (eval "$ac_compile") 2>conftest.er1
17536   ac_status=$?
17537   grep -v '^ *+' conftest.er1 >conftest.err
17538   rm -f conftest.er1
17539   cat conftest.err >&5
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); } && {
17542          test -z "$ac_c_werror_flag" ||
17543          test ! -s conftest.err
17544        } && test -s conftest.$ac_objext; then
17545   ac_cv_type_long_long=yes
17546 else
17547   echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17549
17550         ac_cv_type_long_long=no
17551 fi
17552
17553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17554 fi
17555 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17556 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
17557
17558 # The cast to long int works around a bug in the HP C Compiler
17559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17561 # This bug is HP SR number 8606223364.
17562 { echo "$as_me:$LINENO: checking size of long long" >&5
17563 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
17564 if test "${ac_cv_sizeof_long_long+set}" = set; then
17565   echo $ECHO_N "(cached) $ECHO_C" >&6
17566 else
17567   if test "$cross_compiling" = yes; then
17568   # Depending upon the size, compute the lo and hi bounds.
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575 $ac_includes_default
17576    typedef long long ac__type_sizeof_;
17577 int
17578 main ()
17579 {
17580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17581 test_array [0] = 0
17582
17583   ;
17584   return 0;
17585 }
17586 _ACEOF
17587 rm -f conftest.$ac_objext
17588 if { (ac_try="$ac_compile"
17589 case "(($ac_try" in
17590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591   *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594   (eval "$ac_compile") 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } && {
17601          test -z "$ac_c_werror_flag" ||
17602          test ! -s conftest.err
17603        } && test -s conftest.$ac_objext; then
17604   ac_lo=0 ac_mid=0
17605   while :; do
17606     cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h.  */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h.  */
17612 $ac_includes_default
17613    typedef long long ac__type_sizeof_;
17614 int
17615 main ()
17616 {
17617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17618 test_array [0] = 0
17619
17620   ;
17621   return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (ac_try="$ac_compile"
17626 case "(($ac_try" in
17627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628   *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631   (eval "$ac_compile") 2>conftest.er1
17632   ac_status=$?
17633   grep -v '^ *+' conftest.er1 >conftest.err
17634   rm -f conftest.er1
17635   cat conftest.err >&5
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); } && {
17638          test -z "$ac_c_werror_flag" ||
17639          test ! -s conftest.err
17640        } && test -s conftest.$ac_objext; then
17641   ac_hi=$ac_mid; break
17642 else
17643   echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17645
17646         ac_lo=`expr $ac_mid + 1`
17647                         if test $ac_lo -le $ac_mid; then
17648                           ac_lo= ac_hi=
17649                           break
17650                         fi
17651                         ac_mid=`expr 2 '*' $ac_mid + 1`
17652 fi
17653
17654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17655   done
17656 else
17657   echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17659
17660         cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h.  */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h.  */
17666 $ac_includes_default
17667    typedef long long ac__type_sizeof_;
17668 int
17669 main ()
17670 {
17671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
17672 test_array [0] = 0
17673
17674   ;
17675   return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest.$ac_objext
17679 if { (ac_try="$ac_compile"
17680 case "(($ac_try" in
17681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682   *) ac_try_echo=$ac_try;;
17683 esac
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685   (eval "$ac_compile") 2>conftest.er1
17686   ac_status=$?
17687   grep -v '^ *+' conftest.er1 >conftest.err
17688   rm -f conftest.er1
17689   cat conftest.err >&5
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); } && {
17692          test -z "$ac_c_werror_flag" ||
17693          test ! -s conftest.err
17694        } && test -s conftest.$ac_objext; then
17695   ac_hi=-1 ac_mid=-1
17696   while :; do
17697     cat >conftest.$ac_ext <<_ACEOF
17698 /* confdefs.h.  */
17699 _ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h.  */
17703 $ac_includes_default
17704    typedef long long ac__type_sizeof_;
17705 int
17706 main ()
17707 {
17708 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
17709 test_array [0] = 0
17710
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext
17716 if { (ac_try="$ac_compile"
17717 case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722   (eval "$ac_compile") 2>conftest.er1
17723   ac_status=$?
17724   grep -v '^ *+' conftest.er1 >conftest.err
17725   rm -f conftest.er1
17726   cat conftest.err >&5
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); } && {
17729          test -z "$ac_c_werror_flag" ||
17730          test ! -s conftest.err
17731        } && test -s conftest.$ac_objext; then
17732   ac_lo=$ac_mid; break
17733 else
17734   echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737         ac_hi=`expr '(' $ac_mid ')' - 1`
17738                         if test $ac_mid -le $ac_hi; then
17739                           ac_lo= ac_hi=
17740                           break
17741                         fi
17742                         ac_mid=`expr 2 '*' $ac_mid`
17743 fi
17744
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17746   done
17747 else
17748   echo "$as_me: failed program was:" >&5
17749 sed 's/^/| /' conftest.$ac_ext >&5
17750
17751         ac_lo= ac_hi=
17752 fi
17753
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 fi
17756
17757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17758 # Binary search between lo and hi bounds.
17759 while test "x$ac_lo" != "x$ac_hi"; do
17760   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17761   cat >conftest.$ac_ext <<_ACEOF
17762 /* confdefs.h.  */
17763 _ACEOF
17764 cat confdefs.h >>conftest.$ac_ext
17765 cat >>conftest.$ac_ext <<_ACEOF
17766 /* end confdefs.h.  */
17767 $ac_includes_default
17768    typedef long long ac__type_sizeof_;
17769 int
17770 main ()
17771 {
17772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
17773 test_array [0] = 0
17774
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext
17780 if { (ac_try="$ac_compile"
17781 case "(($ac_try" in
17782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783   *) ac_try_echo=$ac_try;;
17784 esac
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786   (eval "$ac_compile") 2>conftest.er1
17787   ac_status=$?
17788   grep -v '^ *+' conftest.er1 >conftest.err
17789   rm -f conftest.er1
17790   cat conftest.err >&5
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); } && {
17793          test -z "$ac_c_werror_flag" ||
17794          test ! -s conftest.err
17795        } && test -s conftest.$ac_objext; then
17796   ac_hi=$ac_mid
17797 else
17798   echo "$as_me: failed program was:" >&5
17799 sed 's/^/| /' conftest.$ac_ext >&5
17800
17801         ac_lo=`expr '(' $ac_mid ')' + 1`
17802 fi
17803
17804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17805 done
17806 case $ac_lo in
17807 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17808 '') if test "$ac_cv_type_long_long" = yes; then
17809      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
17810 See \`config.log' for more details." >&5
17811 echo "$as_me: error: cannot compute sizeof (long long)
17812 See \`config.log' for more details." >&2;}
17813    { (exit 77); exit 77; }; }
17814    else
17815      ac_cv_sizeof_long_long=0
17816    fi ;;
17817 esac
17818 else
17819   cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825 $ac_includes_default
17826    typedef long long ac__type_sizeof_;
17827 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
17828 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
17829 #include <stdio.h>
17830 #include <stdlib.h>
17831 int
17832 main ()
17833 {
17834
17835   FILE *f = fopen ("conftest.val", "w");
17836   if (! f)
17837     return 1;
17838   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
17839     {
17840       long int i = longval ();
17841       if (i != ((long int) (sizeof (ac__type_sizeof_))))
17842         return 1;
17843       fprintf (f, "%ld\n", i);
17844     }
17845   else
17846     {
17847       unsigned long int i = ulongval ();
17848       if (i != ((long int) (sizeof (ac__type_sizeof_))))
17849         return 1;
17850       fprintf (f, "%lu\n", i);
17851     }
17852   return ferror (f) || fclose (f) != 0;
17853
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 rm -f conftest$ac_exeext
17859 if { (ac_try="$ac_link"
17860 case "(($ac_try" in
17861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862   *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865   (eval "$ac_link") 2>&5
17866   ac_status=$?
17867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17869   { (case "(($ac_try" in
17870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871   *) ac_try_echo=$ac_try;;
17872 esac
17873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874   (eval "$ac_try") 2>&5
17875   ac_status=$?
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); }; }; then
17878   ac_cv_sizeof_long_long=`cat conftest.val`
17879 else
17880   echo "$as_me: program exited with status $ac_status" >&5
17881 echo "$as_me: failed program was:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17883
17884 ( exit $ac_status )
17885 if test "$ac_cv_type_long_long" = yes; then
17886      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
17887 See \`config.log' for more details." >&5
17888 echo "$as_me: error: cannot compute sizeof (long long)
17889 See \`config.log' for more details." >&2;}
17890    { (exit 77); exit 77; }; }
17891    else
17892      ac_cv_sizeof_long_long=0
17893    fi
17894 fi
17895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17896 fi
17897 rm -f conftest.val
17898 fi
17899 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17900 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
17901
17902
17903
17904 cat >>confdefs.h <<_ACEOF
17905 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17906 _ACEOF
17907
17908
17909 { echo "$as_me:$LINENO: checking for long" >&5
17910 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
17911 if test "${ac_cv_type_long+set}" = set; then
17912   echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914   cat >conftest.$ac_ext <<_ACEOF
17915 /* confdefs.h.  */
17916 _ACEOF
17917 cat confdefs.h >>conftest.$ac_ext
17918 cat >>conftest.$ac_ext <<_ACEOF
17919 /* end confdefs.h.  */
17920 $ac_includes_default
17921 typedef long ac__type_new_;
17922 int
17923 main ()
17924 {
17925 if ((ac__type_new_ *) 0)
17926   return 0;
17927 if (sizeof (ac__type_new_))
17928   return 0;
17929   ;
17930   return 0;
17931 }
17932 _ACEOF
17933 rm -f conftest.$ac_objext
17934 if { (ac_try="$ac_compile"
17935 case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_compile") 2>conftest.er1
17941   ac_status=$?
17942   grep -v '^ *+' conftest.er1 >conftest.err
17943   rm -f conftest.er1
17944   cat conftest.err >&5
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); } && {
17947          test -z "$ac_c_werror_flag" ||
17948          test ! -s conftest.err
17949        } && test -s conftest.$ac_objext; then
17950   ac_cv_type_long=yes
17951 else
17952   echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17954
17955         ac_cv_type_long=no
17956 fi
17957
17958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17959 fi
17960 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17961 echo "${ECHO_T}$ac_cv_type_long" >&6; }
17962
17963 # The cast to long int works around a bug in the HP C Compiler
17964 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17965 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17966 # This bug is HP SR number 8606223364.
17967 { echo "$as_me:$LINENO: checking size of long" >&5
17968 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
17969 if test "${ac_cv_sizeof_long+set}" = set; then
17970   echo $ECHO_N "(cached) $ECHO_C" >&6
17971 else
17972   if test "$cross_compiling" = yes; then
17973   # Depending upon the size, compute the lo and hi bounds.
17974 cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h.  */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h.  */
17980 $ac_includes_default
17981    typedef long ac__type_sizeof_;
17982 int
17983 main ()
17984 {
17985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
17986 test_array [0] = 0
17987
17988   ;
17989   return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext
17993 if { (ac_try="$ac_compile"
17994 case "(($ac_try" in
17995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996   *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999   (eval "$ac_compile") 2>conftest.er1
18000   ac_status=$?
18001   grep -v '^ *+' conftest.er1 >conftest.err
18002   rm -f conftest.er1
18003   cat conftest.err >&5
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); } && {
18006          test -z "$ac_c_werror_flag" ||
18007          test ! -s conftest.err
18008        } && test -s conftest.$ac_objext; then
18009   ac_lo=0 ac_mid=0
18010   while :; do
18011     cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h.  */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h.  */
18017 $ac_includes_default
18018    typedef long ac__type_sizeof_;
18019 int
18020 main ()
18021 {
18022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18023 test_array [0] = 0
18024
18025   ;
18026   return 0;
18027 }
18028 _ACEOF
18029 rm -f conftest.$ac_objext
18030 if { (ac_try="$ac_compile"
18031 case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_compile") 2>conftest.er1
18037   ac_status=$?
18038   grep -v '^ *+' conftest.er1 >conftest.err
18039   rm -f conftest.er1
18040   cat conftest.err >&5
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } && {
18043          test -z "$ac_c_werror_flag" ||
18044          test ! -s conftest.err
18045        } && test -s conftest.$ac_objext; then
18046   ac_hi=$ac_mid; break
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051         ac_lo=`expr $ac_mid + 1`
18052                         if test $ac_lo -le $ac_mid; then
18053                           ac_lo= ac_hi=
18054                           break
18055                         fi
18056                         ac_mid=`expr 2 '*' $ac_mid + 1`
18057 fi
18058
18059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060   done
18061 else
18062   echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065         cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h.  */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h.  */
18071 $ac_includes_default
18072    typedef long ac__type_sizeof_;
18073 int
18074 main ()
18075 {
18076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
18077 test_array [0] = 0
18078
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_compile") 2>conftest.er1
18091   ac_status=$?
18092   grep -v '^ *+' conftest.er1 >conftest.err
18093   rm -f conftest.er1
18094   cat conftest.err >&5
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); } && {
18097          test -z "$ac_c_werror_flag" ||
18098          test ! -s conftest.err
18099        } && test -s conftest.$ac_objext; then
18100   ac_hi=-1 ac_mid=-1
18101   while :; do
18102     cat >conftest.$ac_ext <<_ACEOF
18103 /* confdefs.h.  */
18104 _ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h.  */
18108 $ac_includes_default
18109    typedef long ac__type_sizeof_;
18110 int
18111 main ()
18112 {
18113 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
18114 test_array [0] = 0
18115
18116   ;
18117   return 0;
18118 }
18119 _ACEOF
18120 rm -f conftest.$ac_objext
18121 if { (ac_try="$ac_compile"
18122 case "(($ac_try" in
18123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124   *) ac_try_echo=$ac_try;;
18125 esac
18126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127   (eval "$ac_compile") 2>conftest.er1
18128   ac_status=$?
18129   grep -v '^ *+' conftest.er1 >conftest.err
18130   rm -f conftest.er1
18131   cat conftest.err >&5
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); } && {
18134          test -z "$ac_c_werror_flag" ||
18135          test ! -s conftest.err
18136        } && test -s conftest.$ac_objext; then
18137   ac_lo=$ac_mid; break
18138 else
18139   echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18141
18142         ac_hi=`expr '(' $ac_mid ')' - 1`
18143                         if test $ac_mid -le $ac_hi; then
18144                           ac_lo= ac_hi=
18145                           break
18146                         fi
18147                         ac_mid=`expr 2 '*' $ac_mid`
18148 fi
18149
18150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18151   done
18152 else
18153   echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156         ac_lo= ac_hi=
18157 fi
18158
18159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18160 fi
18161
18162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163 # Binary search between lo and hi bounds.
18164 while test "x$ac_lo" != "x$ac_hi"; do
18165   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18166   cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h.  */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h.  */
18172 $ac_includes_default
18173    typedef long ac__type_sizeof_;
18174 int
18175 main ()
18176 {
18177 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
18178 test_array [0] = 0
18179
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext
18185 if { (ac_try="$ac_compile"
18186 case "(($ac_try" in
18187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188   *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191   (eval "$ac_compile") 2>conftest.er1
18192   ac_status=$?
18193   grep -v '^ *+' conftest.er1 >conftest.err
18194   rm -f conftest.er1
18195   cat conftest.err >&5
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); } && {
18198          test -z "$ac_c_werror_flag" ||
18199          test ! -s conftest.err
18200        } && test -s conftest.$ac_objext; then
18201   ac_hi=$ac_mid
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206         ac_lo=`expr '(' $ac_mid ')' + 1`
18207 fi
18208
18209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18210 done
18211 case $ac_lo in
18212 ?*) ac_cv_sizeof_long=$ac_lo;;
18213 '') if test "$ac_cv_type_long" = yes; then
18214      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
18215 See \`config.log' for more details." >&5
18216 echo "$as_me: error: cannot compute sizeof (long)
18217 See \`config.log' for more details." >&2;}
18218    { (exit 77); exit 77; }; }
18219    else
18220      ac_cv_sizeof_long=0
18221    fi ;;
18222 esac
18223 else
18224   cat >conftest.$ac_ext <<_ACEOF
18225 /* confdefs.h.  */
18226 _ACEOF
18227 cat confdefs.h >>conftest.$ac_ext
18228 cat >>conftest.$ac_ext <<_ACEOF
18229 /* end confdefs.h.  */
18230 $ac_includes_default
18231    typedef long ac__type_sizeof_;
18232 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
18233 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
18234 #include <stdio.h>
18235 #include <stdlib.h>
18236 int
18237 main ()
18238 {
18239
18240   FILE *f = fopen ("conftest.val", "w");
18241   if (! f)
18242     return 1;
18243   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
18244     {
18245       long int i = longval ();
18246       if (i != ((long int) (sizeof (ac__type_sizeof_))))
18247         return 1;
18248       fprintf (f, "%ld\n", i);
18249     }
18250   else
18251     {
18252       unsigned long int i = ulongval ();
18253       if (i != ((long int) (sizeof (ac__type_sizeof_))))
18254         return 1;
18255       fprintf (f, "%lu\n", i);
18256     }
18257   return ferror (f) || fclose (f) != 0;
18258
18259   ;
18260   return 0;
18261 }
18262 _ACEOF
18263 rm -f conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270   (eval "$ac_link") 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18274   { (case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_try") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; }; then
18283   ac_cv_sizeof_long=`cat conftest.val`
18284 else
18285   echo "$as_me: program exited with status $ac_status" >&5
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289 ( exit $ac_status )
18290 if test "$ac_cv_type_long" = yes; then
18291      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
18292 See \`config.log' for more details." >&5
18293 echo "$as_me: error: cannot compute sizeof (long)
18294 See \`config.log' for more details." >&2;}
18295    { (exit 77); exit 77; }; }
18296    else
18297      ac_cv_sizeof_long=0
18298    fi
18299 fi
18300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18301 fi
18302 rm -f conftest.val
18303 fi
18304 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18305 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
18306
18307
18308
18309 cat >>confdefs.h <<_ACEOF
18310 #define SIZEOF_LONG $ac_cv_sizeof_long
18311 _ACEOF
18312
18313
18314 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18315 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
18316 if test "${ac_cv_c_bigendian+set}" = set; then
18317   echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319   # See if sys/param.h defines the BYTE_ORDER macro.
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h.  */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h.  */
18326 #include <sys/types.h>
18327 #include <sys/param.h>
18328
18329 int
18330 main ()
18331 {
18332 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
18333         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
18334  bogus endian macros
18335 #endif
18336
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest.$ac_objext
18342 if { (ac_try="$ac_compile"
18343 case "(($ac_try" in
18344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345   *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348   (eval "$ac_compile") 2>conftest.er1
18349   ac_status=$?
18350   grep -v '^ *+' conftest.er1 >conftest.err
18351   rm -f conftest.er1
18352   cat conftest.err >&5
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); } && {
18355          test -z "$ac_c_werror_flag" ||
18356          test ! -s conftest.err
18357        } && test -s conftest.$ac_objext; then
18358   # It does; now see whether it defined to BIG_ENDIAN or not.
18359 cat >conftest.$ac_ext <<_ACEOF
18360 /* confdefs.h.  */
18361 _ACEOF
18362 cat confdefs.h >>conftest.$ac_ext
18363 cat >>conftest.$ac_ext <<_ACEOF
18364 /* end confdefs.h.  */
18365 #include <sys/types.h>
18366 #include <sys/param.h>
18367
18368 int
18369 main ()
18370 {
18371 #if BYTE_ORDER != BIG_ENDIAN
18372  not big endian
18373 #endif
18374
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest.$ac_objext
18380 if { (ac_try="$ac_compile"
18381 case "(($ac_try" in
18382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383   *) ac_try_echo=$ac_try;;
18384 esac
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386   (eval "$ac_compile") 2>conftest.er1
18387   ac_status=$?
18388   grep -v '^ *+' conftest.er1 >conftest.err
18389   rm -f conftest.er1
18390   cat conftest.err >&5
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); } && {
18393          test -z "$ac_c_werror_flag" ||
18394          test ! -s conftest.err
18395        } && test -s conftest.$ac_objext; then
18396   ac_cv_c_bigendian=yes
18397 else
18398   echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18400
18401         ac_cv_c_bigendian=no
18402 fi
18403
18404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18405 else
18406   echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18408
18409         # It does not; compile a test program.
18410 if test "$cross_compiling" = yes; then
18411   # try to guess the endianness by grepping values into an object file
18412   ac_cv_c_bigendian=unknown
18413   cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h.  */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h.  */
18419 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18420 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18421 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
18422 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18423 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18424 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
18425 int
18426 main ()
18427 {
18428  _ascii (); _ebcdic ();
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 rm -f conftest.$ac_objext
18434 if { (ac_try="$ac_compile"
18435 case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_compile") 2>conftest.er1
18441   ac_status=$?
18442   grep -v '^ *+' conftest.er1 >conftest.err
18443   rm -f conftest.er1
18444   cat conftest.err >&5
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); } && {
18447          test -z "$ac_c_werror_flag" ||
18448          test ! -s conftest.err
18449        } && test -s conftest.$ac_objext; then
18450   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
18451   ac_cv_c_bigendian=yes
18452 fi
18453 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18454   if test "$ac_cv_c_bigendian" = unknown; then
18455     ac_cv_c_bigendian=no
18456   else
18457     # finding both strings is unlikely to happen, but who knows?
18458     ac_cv_c_bigendian=unknown
18459   fi
18460 fi
18461 else
18462   echo "$as_me: failed program was:" >&5
18463 sed 's/^/| /' conftest.$ac_ext >&5
18464
18465
18466 fi
18467
18468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18469 else
18470   cat >conftest.$ac_ext <<_ACEOF
18471 /* confdefs.h.  */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h.  */
18476 $ac_includes_default
18477 int
18478 main ()
18479 {
18480
18481   /* Are we little or big endian?  From Harbison&Steele.  */
18482   union
18483   {
18484     long int l;
18485     char c[sizeof (long int)];
18486   } u;
18487   u.l = 1;
18488   return u.c[sizeof (long int) - 1] == 1;
18489
18490   ;
18491   return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498   *) ac_try_echo=$ac_try;;
18499 esac
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501   (eval "$ac_link") 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18505   { (case "(($ac_try" in
18506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18507   *) ac_try_echo=$ac_try;;
18508 esac
18509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18510   (eval "$ac_try") 2>&5
18511   ac_status=$?
18512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513   (exit $ac_status); }; }; then
18514   ac_cv_c_bigendian=no
18515 else
18516   echo "$as_me: program exited with status $ac_status" >&5
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18519
18520 ( exit $ac_status )
18521 ac_cv_c_bigendian=yes
18522 fi
18523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18524 fi
18525
18526
18527 fi
18528
18529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18530 fi
18531 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18532 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
18533 case $ac_cv_c_bigendian in
18534   yes)
18535
18536 cat >>confdefs.h <<\_ACEOF
18537 #define WORDS_BIGENDIAN 1
18538 _ACEOF
18539  ;;
18540   no)
18541      ;;
18542   *)
18543     { { echo "$as_me:$LINENO: error: unknown endianness
18544 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
18545 echo "$as_me: error: unknown endianness
18546 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
18547    { (exit 1); exit 1; }; } ;;
18548 esac
18549
18550 # Check whether --enable-static was given.
18551 if test "${enable_static+set}" = set; then
18552   enableval=$enable_static; p=${PACKAGE-default}
18553     case $enableval in
18554     yes) enable_static=yes ;;
18555     no) enable_static=no ;;
18556     *)
18557      enable_static=no
18558       # Look at the argument we got.  We use all the common list separators.
18559       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18560       for pkg in $enableval; do
18561         IFS="$lt_save_ifs"
18562         if test "X$pkg" = "X$p"; then
18563           enable_static=yes
18564         fi
18565       done
18566       IFS="$lt_save_ifs"
18567       ;;
18568     esac
18569 else
18570   enable_static=no
18571 fi
18572
18573
18574
18575
18576
18577
18578 # Check whether --enable-static was given.
18579 if test "${enable_static+set}" = set; then
18580   enableval=$enable_static; p=${PACKAGE-default}
18581     case $enableval in
18582     yes) enable_static=yes ;;
18583     no) enable_static=no ;;
18584     *)
18585      enable_static=no
18586       # Look at the argument we got.  We use all the common list separators.
18587       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18588       for pkg in $enableval; do
18589         IFS="$lt_save_ifs"
18590         if test "X$pkg" = "X$p"; then
18591           enable_static=yes
18592         fi
18593       done
18594       IFS="$lt_save_ifs"
18595       ;;
18596     esac
18597 else
18598   enable_static=no
18599 fi
18600
18601
18602
18603
18604
18605
18606
18607 for ac_header in stdlib.h
18608 do
18609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18611   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18614   echo $ECHO_N "(cached) $ECHO_C" >&6
18615 fi
18616 ac_res=`eval echo '${'$as_ac_Header'}'`
18617                { echo "$as_me:$LINENO: result: $ac_res" >&5
18618 echo "${ECHO_T}$ac_res" >&6; }
18619 else
18620   # Is the header compilable?
18621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18623 cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h.  */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h.  */
18629 $ac_includes_default
18630 #include <$ac_header>
18631 _ACEOF
18632 rm -f conftest.$ac_objext
18633 if { (ac_try="$ac_compile"
18634 case "(($ac_try" in
18635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636   *) ac_try_echo=$ac_try;;
18637 esac
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639   (eval "$ac_compile") 2>conftest.er1
18640   ac_status=$?
18641   grep -v '^ *+' conftest.er1 >conftest.err
18642   rm -f conftest.er1
18643   cat conftest.err >&5
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); } && {
18646          test -z "$ac_c_werror_flag" ||
18647          test ! -s conftest.err
18648        } && test -s conftest.$ac_objext; then
18649   ac_header_compiler=yes
18650 else
18651   echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654         ac_header_compiler=no
18655 fi
18656
18657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18659 echo "${ECHO_T}$ac_header_compiler" >&6; }
18660
18661 # Is the header present?
18662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670 #include <$ac_header>
18671 _ACEOF
18672 if { (ac_try="$ac_cpp conftest.$ac_ext"
18673 case "(($ac_try" in
18674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675   *) ac_try_echo=$ac_try;;
18676 esac
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18679   ac_status=$?
18680   grep -v '^ *+' conftest.er1 >conftest.err
18681   rm -f conftest.er1
18682   cat conftest.err >&5
18683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684   (exit $ac_status); } >/dev/null && {
18685          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18686          test ! -s conftest.err
18687        }; then
18688   ac_header_preproc=yes
18689 else
18690   echo "$as_me: failed program was:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18692
18693   ac_header_preproc=no
18694 fi
18695
18696 rm -f conftest.err conftest.$ac_ext
18697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18698 echo "${ECHO_T}$ac_header_preproc" >&6; }
18699
18700 # So?  What about this header?
18701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18702   yes:no: )
18703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18707     ac_header_preproc=yes
18708     ;;
18709   no:yes:* )
18710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18722     ( cat <<\_ASBOX
18723 ## ----------------------------------- ##
18724 ## Report this to http://www.yassl.com ##
18725 ## ----------------------------------- ##
18726 _ASBOX
18727      ) | sed "s/^/$as_me: WARNING:     /" >&2
18728     ;;
18729 esac
18730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18733   echo $ECHO_N "(cached) $ECHO_C" >&6
18734 else
18735   eval "$as_ac_Header=\$ac_header_preproc"
18736 fi
18737 ac_res=`eval echo '${'$as_ac_Header'}'`
18738                { echo "$as_me:$LINENO: result: $ac_res" >&5
18739 echo "${ECHO_T}$ac_res" >&6; }
18740
18741 fi
18742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18743   cat >>confdefs.h <<_ACEOF
18744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18745 _ACEOF
18746
18747 fi
18748
18749 done
18750
18751 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18752 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
18753 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
18754   echo $ECHO_N "(cached) $ECHO_C" >&6
18755 else
18756   if test "$cross_compiling" = yes; then
18757   ac_cv_func_malloc_0_nonnull=no
18758 else
18759   cat >conftest.$ac_ext <<_ACEOF
18760 /* confdefs.h.  */
18761 _ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h.  */
18765 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18766 # include <stdlib.h>
18767 #else
18768 char *malloc ();
18769 #endif
18770
18771 int
18772 main ()
18773 {
18774 return ! malloc (0);
18775   ;
18776   return 0;
18777 }
18778 _ACEOF
18779 rm -f conftest$ac_exeext
18780 if { (ac_try="$ac_link"
18781 case "(($ac_try" in
18782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783   *) ac_try_echo=$ac_try;;
18784 esac
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786   (eval "$ac_link") 2>&5
18787   ac_status=$?
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18790   { (case "(($ac_try" in
18791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792   *) ac_try_echo=$ac_try;;
18793 esac
18794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795   (eval "$ac_try") 2>&5
18796   ac_status=$?
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); }; }; then
18799   ac_cv_func_malloc_0_nonnull=yes
18800 else
18801   echo "$as_me: program exited with status $ac_status" >&5
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 ( exit $ac_status )
18806 ac_cv_func_malloc_0_nonnull=no
18807 fi
18808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18809 fi
18810
18811
18812 fi
18813 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18814 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
18815 if test $ac_cv_func_malloc_0_nonnull = yes; then
18816
18817 cat >>confdefs.h <<\_ACEOF
18818 #define HAVE_MALLOC 1
18819 _ACEOF
18820
18821 else
18822   cat >>confdefs.h <<\_ACEOF
18823 #define HAVE_MALLOC 0
18824 _ACEOF
18825
18826    case " $LIBOBJS " in
18827   *" malloc.$ac_objext "* ) ;;
18828   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
18829  ;;
18830 esac
18831
18832
18833 cat >>confdefs.h <<\_ACEOF
18834 #define malloc rpl_malloc
18835 _ACEOF
18836
18837 fi
18838
18839
18840
18841 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18842 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
18843 if test "${ac_cv_header_time+set}" = set; then
18844   echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846   cat >conftest.$ac_ext <<_ACEOF
18847 /* confdefs.h.  */
18848 _ACEOF
18849 cat confdefs.h >>conftest.$ac_ext
18850 cat >>conftest.$ac_ext <<_ACEOF
18851 /* end confdefs.h.  */
18852 #include <sys/types.h>
18853 #include <sys/time.h>
18854 #include <time.h>
18855
18856 int
18857 main ()
18858 {
18859 if ((struct tm *) 0)
18860 return 0;
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 rm -f conftest.$ac_objext
18866 if { (ac_try="$ac_compile"
18867 case "(($ac_try" in
18868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869   *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872   (eval "$ac_compile") 2>conftest.er1
18873   ac_status=$?
18874   grep -v '^ *+' conftest.er1 >conftest.err
18875   rm -f conftest.er1
18876   cat conftest.err >&5
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); } && {
18879          test -z "$ac_c_werror_flag" ||
18880          test ! -s conftest.err
18881        } && test -s conftest.$ac_objext; then
18882   ac_cv_header_time=yes
18883 else
18884   echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18886
18887         ac_cv_header_time=no
18888 fi
18889
18890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18891 fi
18892 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18893 echo "${ECHO_T}$ac_cv_header_time" >&6; }
18894 if test $ac_cv_header_time = yes; then
18895
18896 cat >>confdefs.h <<\_ACEOF
18897 #define TIME_WITH_SYS_TIME 1
18898 _ACEOF
18899
18900 fi
18901
18902
18903
18904
18905
18906 for ac_header in $ac_header_list
18907 do
18908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18910   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18913   echo $ECHO_N "(cached) $ECHO_C" >&6
18914 fi
18915 ac_res=`eval echo '${'$as_ac_Header'}'`
18916                { echo "$as_me:$LINENO: result: $ac_res" >&5
18917 echo "${ECHO_T}$ac_res" >&6; }
18918 else
18919   # Is the header compilable?
18920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h.  */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h.  */
18928 $ac_includes_default
18929 #include <$ac_header>
18930 _ACEOF
18931 rm -f conftest.$ac_objext
18932 if { (ac_try="$ac_compile"
18933 case "(($ac_try" in
18934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935   *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938   (eval "$ac_compile") 2>conftest.er1
18939   ac_status=$?
18940   grep -v '^ *+' conftest.er1 >conftest.err
18941   rm -f conftest.er1
18942   cat conftest.err >&5
18943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944   (exit $ac_status); } && {
18945          test -z "$ac_c_werror_flag" ||
18946          test ! -s conftest.err
18947        } && test -s conftest.$ac_objext; then
18948   ac_header_compiler=yes
18949 else
18950   echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18952
18953         ac_header_compiler=no
18954 fi
18955
18956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18958 echo "${ECHO_T}$ac_header_compiler" >&6; }
18959
18960 # Is the header present?
18961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18963 cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h.  */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h.  */
18969 #include <$ac_header>
18970 _ACEOF
18971 if { (ac_try="$ac_cpp conftest.$ac_ext"
18972 case "(($ac_try" in
18973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974   *) ac_try_echo=$ac_try;;
18975 esac
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18978   ac_status=$?
18979   grep -v '^ *+' conftest.er1 >conftest.err
18980   rm -f conftest.er1
18981   cat conftest.err >&5
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); } >/dev/null && {
18984          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18985          test ! -s conftest.err
18986        }; then
18987   ac_header_preproc=yes
18988 else
18989   echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992   ac_header_preproc=no
18993 fi
18994
18995 rm -f conftest.err conftest.$ac_ext
18996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18997 echo "${ECHO_T}$ac_header_preproc" >&6; }
18998
18999 # So?  What about this header?
19000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19001   yes:no: )
19002     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19006     ac_header_preproc=yes
19007     ;;
19008   no:yes:* )
19009     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19011     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19012 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19013     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19015     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19016 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19019     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19021     ( cat <<\_ASBOX
19022 ## ----------------------------------- ##
19023 ## Report this to http://www.yassl.com ##
19024 ## ----------------------------------- ##
19025 _ASBOX
19026      ) | sed "s/^/$as_me: WARNING:     /" >&2
19027     ;;
19028 esac
19029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19032   echo $ECHO_N "(cached) $ECHO_C" >&6
19033 else
19034   eval "$as_ac_Header=\$ac_header_preproc"
19035 fi
19036 ac_res=`eval echo '${'$as_ac_Header'}'`
19037                { echo "$as_me:$LINENO: result: $ac_res" >&5
19038 echo "${ECHO_T}$ac_res" >&6; }
19039
19040 fi
19041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19042   cat >>confdefs.h <<_ACEOF
19043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19044 _ACEOF
19045
19046 fi
19047
19048 done
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058 for ac_func in $ac_func_list
19059 do
19060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19064   echo $ECHO_N "(cached) $ECHO_C" >&6
19065 else
19066   cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h.  */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h.  */
19072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19074 #define $ac_func innocuous_$ac_func
19075
19076 /* System header to define __stub macros and hopefully few prototypes,
19077     which can conflict with char $ac_func (); below.
19078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19079     <limits.h> exists even on freestanding compilers.  */
19080
19081 #ifdef __STDC__
19082 # include <limits.h>
19083 #else
19084 # include <assert.h>
19085 #endif
19086
19087 #undef $ac_func
19088
19089 /* Override any GCC internal prototype to avoid an error.
19090    Use char because int might match the return type of a GCC
19091    builtin and then its argument prototype would still apply.  */
19092 #ifdef __cplusplus
19093 extern "C"
19094 #endif
19095 char $ac_func ();
19096 /* The GNU C library defines this for functions which it implements
19097     to always fail with ENOSYS.  Some functions are actually named
19098     something starting with __ and the normal name is an alias.  */
19099 #if defined __stub_$ac_func || defined __stub___$ac_func
19100 choke me
19101 #endif
19102
19103 int
19104 main ()
19105 {
19106 return $ac_func ();
19107   ;
19108   return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext conftest$ac_exeext
19112 if { (ac_try="$ac_link"
19113 case "(($ac_try" in
19114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115   *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118   (eval "$ac_link") 2>conftest.er1
19119   ac_status=$?
19120   grep -v '^ *+' conftest.er1 >conftest.err
19121   rm -f conftest.er1
19122   cat conftest.err >&5
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); } && {
19125          test -z "$ac_c_werror_flag" ||
19126          test ! -s conftest.err
19127        } && test -s conftest$ac_exeext &&
19128        $as_test_x conftest$ac_exeext; then
19129   eval "$as_ac_var=yes"
19130 else
19131   echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19133
19134         eval "$as_ac_var=no"
19135 fi
19136
19137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19138       conftest$ac_exeext conftest.$ac_ext
19139 fi
19140 ac_res=`eval echo '${'$as_ac_var'}'`
19141                { echo "$as_me:$LINENO: result: $ac_res" >&5
19142 echo "${ECHO_T}$ac_res" >&6; }
19143 if test `eval echo '${'$as_ac_var'}'` = yes; then
19144   cat >>confdefs.h <<_ACEOF
19145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19146 _ACEOF
19147
19148 fi
19149 done
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167 { echo "$as_me:$LINENO: checking for working mktime" >&5
19168 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
19169 if test "${ac_cv_func_working_mktime+set}" = set; then
19170   echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172   if test "$cross_compiling" = yes; then
19173   ac_cv_func_working_mktime=no
19174 else
19175   cat >conftest.$ac_ext <<_ACEOF
19176 /* confdefs.h.  */
19177 _ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h.  */
19181 /* Test program from Paul Eggert and Tony Leneis.  */
19182 #ifdef TIME_WITH_SYS_TIME
19183 # include <sys/time.h>
19184 # include <time.h>
19185 #else
19186 # ifdef HAVE_SYS_TIME_H
19187 #  include <sys/time.h>
19188 # else
19189 #  include <time.h>
19190 # endif
19191 #endif
19192
19193 #include <stdlib.h>
19194
19195 #ifdef HAVE_UNISTD_H
19196 # include <unistd.h>
19197 #endif
19198
19199 #ifndef HAVE_ALARM
19200 # define alarm(X) /* empty */
19201 #endif
19202
19203 /* Work around redefinition to rpl_putenv by other config tests.  */
19204 #undef putenv
19205
19206 static time_t time_t_max;
19207 static time_t time_t_min;
19208
19209 /* Values we'll use to set the TZ environment variable.  */
19210 static char *tz_strings[] = {
19211   (char *) 0, "TZ=GMT0", "TZ=JST-9",
19212   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
19213 };
19214 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
19215
19216 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
19217    Based on a problem report from Andreas Jaeger.  */
19218 static int
19219 spring_forward_gap ()
19220 {
19221   /* glibc (up to about 1998-10-07) failed this test. */
19222   struct tm tm;
19223
19224   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19225      instead of "TZ=America/Vancouver" in order to detect the bug even
19226      on systems that don't support the Olson extension, or don't have the
19227      full zoneinfo tables installed.  */
19228   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19229
19230   tm.tm_year = 98;
19231   tm.tm_mon = 3;
19232   tm.tm_mday = 5;
19233   tm.tm_hour = 2;
19234   tm.tm_min = 0;
19235   tm.tm_sec = 0;
19236   tm.tm_isdst = -1;
19237   return mktime (&tm) != (time_t) -1;
19238 }
19239
19240 static int
19241 mktime_test1 (now)
19242      time_t now;
19243 {
19244   struct tm *lt;
19245   return ! (lt = localtime (&now)) || mktime (lt) == now;
19246 }
19247
19248 static int
19249 mktime_test (now)
19250      time_t now;
19251 {
19252   return (mktime_test1 (now)
19253           && mktime_test1 ((time_t) (time_t_max - now))
19254           && mktime_test1 ((time_t) (time_t_min + now)));
19255 }
19256
19257 static int
19258 irix_6_4_bug ()
19259 {
19260   /* Based on code from Ariel Faigon.  */
19261   struct tm tm;
19262   tm.tm_year = 96;
19263   tm.tm_mon = 3;
19264   tm.tm_mday = 0;
19265   tm.tm_hour = 0;
19266   tm.tm_min = 0;
19267   tm.tm_sec = 0;
19268   tm.tm_isdst = -1;
19269   mktime (&tm);
19270   return tm.tm_mon == 2 && tm.tm_mday == 31;
19271 }
19272
19273 static int
19274 bigtime_test (j)
19275      int j;
19276 {
19277   struct tm tm;
19278   time_t now;
19279   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
19280   now = mktime (&tm);
19281   if (now != (time_t) -1)
19282     {
19283       struct tm *lt = localtime (&now);
19284       if (! (lt
19285              && lt->tm_year == tm.tm_year
19286              && lt->tm_mon == tm.tm_mon
19287              && lt->tm_mday == tm.tm_mday
19288              && lt->tm_hour == tm.tm_hour
19289              && lt->tm_min == tm.tm_min
19290              && lt->tm_sec == tm.tm_sec
19291              && lt->tm_yday == tm.tm_yday
19292              && lt->tm_wday == tm.tm_wday
19293              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
19294                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
19295         return 0;
19296     }
19297   return 1;
19298 }
19299
19300 static int
19301 year_2050_test ()
19302 {
19303   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
19304      ignoring leap seconds.  */
19305   unsigned long int answer = 2527315200UL;
19306
19307   struct tm tm;
19308   time_t t;
19309   tm.tm_year = 2050 - 1900;
19310   tm.tm_mon = 2 - 1;
19311   tm.tm_mday = 1;
19312   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
19313   tm.tm_isdst = -1;
19314
19315   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
19316      instead of "TZ=America/Vancouver" in order to detect the bug even
19317      on systems that don't support the Olson extension, or don't have the
19318      full zoneinfo tables installed.  */
19319   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
19320
19321   t = mktime (&tm);
19322
19323   /* Check that the result is either a failure, or close enough
19324      to the correct answer that we can assume the discrepancy is
19325      due to leap seconds.  */
19326   return (t == (time_t) -1
19327           || (0 < t && answer - 120 <= t && t <= answer + 120));
19328 }
19329
19330 int
19331 main ()
19332 {
19333   time_t t, delta;
19334   int i, j;
19335
19336   /* This test makes some buggy mktime implementations loop.
19337      Give up after 60 seconds; a mktime slower than that
19338      isn't worth using anyway.  */
19339   alarm (60);
19340
19341   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
19342     continue;
19343   time_t_max--;
19344   if ((time_t) -1 < 0)
19345     for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
19346       continue;
19347   delta = time_t_max / 997; /* a suitable prime number */
19348   for (i = 0; i < N_STRINGS; i++)
19349     {
19350       if (tz_strings[i])
19351         putenv (tz_strings[i]);
19352
19353       for (t = 0; t <= time_t_max - delta; t += delta)
19354         if (! mktime_test (t))
19355           return 1;
19356       if (! (mktime_test ((time_t) 1)
19357              && mktime_test ((time_t) (60 * 60))
19358              && mktime_test ((time_t) (60 * 60 * 24))))
19359         return 1;
19360
19361       for (j = 1; 0 < j; j *= 2)
19362         if (! bigtime_test (j))
19363           return 1;
19364       if (! bigtime_test (j - 1))
19365         return 1;
19366     }
19367   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
19368 }
19369 _ACEOF
19370 rm -f conftest$ac_exeext
19371 if { (ac_try="$ac_link"
19372 case "(($ac_try" in
19373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374   *) ac_try_echo=$ac_try;;
19375 esac
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377   (eval "$ac_link") 2>&5
19378   ac_status=$?
19379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19381   { (case "(($ac_try" in
19382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383   *) ac_try_echo=$ac_try;;
19384 esac
19385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386   (eval "$ac_try") 2>&5
19387   ac_status=$?
19388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389   (exit $ac_status); }; }; then
19390   ac_cv_func_working_mktime=yes
19391 else
19392   echo "$as_me: program exited with status $ac_status" >&5
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19395
19396 ( exit $ac_status )
19397 ac_cv_func_working_mktime=no
19398 fi
19399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19400 fi
19401
19402
19403 fi
19404 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
19405 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
19406 if test $ac_cv_func_working_mktime = no; then
19407   case " $LIBOBJS " in
19408   *" mktime.$ac_objext "* ) ;;
19409   *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
19410  ;;
19411 esac
19412
19413 fi
19414
19415
19416 for ac_header in stdlib.h
19417 do
19418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19420   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19423   echo $ECHO_N "(cached) $ECHO_C" >&6
19424 fi
19425 ac_res=`eval echo '${'$as_ac_Header'}'`
19426                { echo "$as_me:$LINENO: result: $ac_res" >&5
19427 echo "${ECHO_T}$ac_res" >&6; }
19428 else
19429   # Is the header compilable?
19430 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19432 cat >conftest.$ac_ext <<_ACEOF
19433 /* confdefs.h.  */
19434 _ACEOF
19435 cat confdefs.h >>conftest.$ac_ext
19436 cat >>conftest.$ac_ext <<_ACEOF
19437 /* end confdefs.h.  */
19438 $ac_includes_default
19439 #include <$ac_header>
19440 _ACEOF
19441 rm -f conftest.$ac_objext
19442 if { (ac_try="$ac_compile"
19443 case "(($ac_try" in
19444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445   *) ac_try_echo=$ac_try;;
19446 esac
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448   (eval "$ac_compile") 2>conftest.er1
19449   ac_status=$?
19450   grep -v '^ *+' conftest.er1 >conftest.err
19451   rm -f conftest.er1
19452   cat conftest.err >&5
19453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19454   (exit $ac_status); } && {
19455          test -z "$ac_c_werror_flag" ||
19456          test ! -s conftest.err
19457        } && test -s conftest.$ac_objext; then
19458   ac_header_compiler=yes
19459 else
19460   echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463         ac_header_compiler=no
19464 fi
19465
19466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19468 echo "${ECHO_T}$ac_header_compiler" >&6; }
19469
19470 # Is the header present?
19471 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19473 cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h.  */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h.  */
19479 #include <$ac_header>
19480 _ACEOF
19481 if { (ac_try="$ac_cpp conftest.$ac_ext"
19482 case "(($ac_try" in
19483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484   *) ac_try_echo=$ac_try;;
19485 esac
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19488   ac_status=$?
19489   grep -v '^ *+' conftest.er1 >conftest.err
19490   rm -f conftest.er1
19491   cat conftest.err >&5
19492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493   (exit $ac_status); } >/dev/null && {
19494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19495          test ! -s conftest.err
19496        }; then
19497   ac_header_preproc=yes
19498 else
19499   echo "$as_me: failed program was:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19501
19502   ac_header_preproc=no
19503 fi
19504
19505 rm -f conftest.err conftest.$ac_ext
19506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19507 echo "${ECHO_T}$ac_header_preproc" >&6; }
19508
19509 # So?  What about this header?
19510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19511   yes:no: )
19512     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19516     ac_header_preproc=yes
19517     ;;
19518   no:yes:* )
19519     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19521     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19522 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19523     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19525     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19526 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19527     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19529     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19531     ( cat <<\_ASBOX
19532 ## ----------------------------------- ##
19533 ## Report this to http://www.yassl.com ##
19534 ## ----------------------------------- ##
19535 _ASBOX
19536      ) | sed "s/^/$as_me: WARNING:     /" >&2
19537     ;;
19538 esac
19539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19542   echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544   eval "$as_ac_Header=\$ac_header_preproc"
19545 fi
19546 ac_res=`eval echo '${'$as_ac_Header'}'`
19547                { echo "$as_me:$LINENO: result: $ac_res" >&5
19548 echo "${ECHO_T}$ac_res" >&6; }
19549
19550 fi
19551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19552   cat >>confdefs.h <<_ACEOF
19553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19554 _ACEOF
19555
19556 fi
19557
19558 done
19559
19560 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
19561 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
19562 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
19563   echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565   if test "$cross_compiling" = yes; then
19566   ac_cv_func_realloc_0_nonnull=no
19567 else
19568   cat >conftest.$ac_ext <<_ACEOF
19569 /* confdefs.h.  */
19570 _ACEOF
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h.  */
19574 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19575 # include <stdlib.h>
19576 #else
19577 char *realloc ();
19578 #endif
19579
19580 int
19581 main ()
19582 {
19583 return ! realloc (0, 0);
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest$ac_exeext
19589 if { (ac_try="$ac_link"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_link") 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19599   { (case "(($ac_try" in
19600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601   *) ac_try_echo=$ac_try;;
19602 esac
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604   (eval "$ac_try") 2>&5
19605   ac_status=$?
19606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607   (exit $ac_status); }; }; then
19608   ac_cv_func_realloc_0_nonnull=yes
19609 else
19610   echo "$as_me: program exited with status $ac_status" >&5
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19613
19614 ( exit $ac_status )
19615 ac_cv_func_realloc_0_nonnull=no
19616 fi
19617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19618 fi
19619
19620
19621 fi
19622 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
19623 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
19624 if test $ac_cv_func_realloc_0_nonnull = yes; then
19625
19626 cat >>confdefs.h <<\_ACEOF
19627 #define HAVE_REALLOC 1
19628 _ACEOF
19629
19630 else
19631   cat >>confdefs.h <<\_ACEOF
19632 #define HAVE_REALLOC 0
19633 _ACEOF
19634
19635    case " $LIBOBJS " in
19636   *" realloc.$ac_objext "* ) ;;
19637   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
19638  ;;
19639 esac
19640
19641
19642 cat >>confdefs.h <<\_ACEOF
19643 #define realloc rpl_realloc
19644 _ACEOF
19645
19646 fi
19647
19648
19649
19650
19651 ac_ext=c
19652 ac_cpp='$CPP $CPPFLAGS'
19653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19656 if test -n "$ac_tool_prefix"; then
19657   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19658 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19661 if test "${ac_cv_prog_CC+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664   if test -n "$CC"; then
19665   ac_cv_prog_CC="$CC" # Let the user override the test.
19666 else
19667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 for as_dir in $PATH
19669 do
19670   IFS=$as_save_IFS
19671   test -z "$as_dir" && as_dir=.
19672   for ac_exec_ext in '' $ac_executable_extensions; do
19673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19674     ac_cv_prog_CC="${ac_tool_prefix}gcc"
19675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19676     break 2
19677   fi
19678 done
19679 done
19680 IFS=$as_save_IFS
19681
19682 fi
19683 fi
19684 CC=$ac_cv_prog_CC
19685 if test -n "$CC"; then
19686   { echo "$as_me:$LINENO: result: $CC" >&5
19687 echo "${ECHO_T}$CC" >&6; }
19688 else
19689   { echo "$as_me:$LINENO: result: no" >&5
19690 echo "${ECHO_T}no" >&6; }
19691 fi
19692
19693
19694 fi
19695 if test -z "$ac_cv_prog_CC"; then
19696   ac_ct_CC=$CC
19697   # Extract the first word of "gcc", so it can be a program name with args.
19698 set dummy gcc; ac_word=$2
19699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19702   echo $ECHO_N "(cached) $ECHO_C" >&6
19703 else
19704   if test -n "$ac_ct_CC"; then
19705   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19706 else
19707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19708 for as_dir in $PATH
19709 do
19710   IFS=$as_save_IFS
19711   test -z "$as_dir" && as_dir=.
19712   for ac_exec_ext in '' $ac_executable_extensions; do
19713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19714     ac_cv_prog_ac_ct_CC="gcc"
19715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19716     break 2
19717   fi
19718 done
19719 done
19720 IFS=$as_save_IFS
19721
19722 fi
19723 fi
19724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19725 if test -n "$ac_ct_CC"; then
19726   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19727 echo "${ECHO_T}$ac_ct_CC" >&6; }
19728 else
19729   { echo "$as_me:$LINENO: result: no" >&5
19730 echo "${ECHO_T}no" >&6; }
19731 fi
19732
19733   if test "x$ac_ct_CC" = x; then
19734     CC=""
19735   else
19736     case $cross_compiling:$ac_tool_warned in
19737 yes:)
19738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19739 whose name does not start with the host triplet.  If you think this
19740 configuration is useful to you, please write to autoconf@gnu.org." >&5
19741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19742 whose name does not start with the host triplet.  If you think this
19743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19744 ac_tool_warned=yes ;;
19745 esac
19746     CC=$ac_ct_CC
19747   fi
19748 else
19749   CC="$ac_cv_prog_CC"
19750 fi
19751
19752 if test -z "$CC"; then
19753           if test -n "$ac_tool_prefix"; then
19754     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19755 set dummy ${ac_tool_prefix}cc; ac_word=$2
19756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19758 if test "${ac_cv_prog_CC+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   if test -n "$CC"; then
19762   ac_cv_prog_CC="$CC" # Let the user override the test.
19763 else
19764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19765 for as_dir in $PATH
19766 do
19767   IFS=$as_save_IFS
19768   test -z "$as_dir" && as_dir=.
19769   for ac_exec_ext in '' $ac_executable_extensions; do
19770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19771     ac_cv_prog_CC="${ac_tool_prefix}cc"
19772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19773     break 2
19774   fi
19775 done
19776 done
19777 IFS=$as_save_IFS
19778
19779 fi
19780 fi
19781 CC=$ac_cv_prog_CC
19782 if test -n "$CC"; then
19783   { echo "$as_me:$LINENO: result: $CC" >&5
19784 echo "${ECHO_T}$CC" >&6; }
19785 else
19786   { echo "$as_me:$LINENO: result: no" >&5
19787 echo "${ECHO_T}no" >&6; }
19788 fi
19789
19790
19791   fi
19792 fi
19793 if test -z "$CC"; then
19794   # Extract the first word of "cc", so it can be a program name with args.
19795 set dummy cc; ac_word=$2
19796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19798 if test "${ac_cv_prog_CC+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   if test -n "$CC"; then
19802   ac_cv_prog_CC="$CC" # Let the user override the test.
19803 else
19804   ac_prog_rejected=no
19805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19806 for as_dir in $PATH
19807 do
19808   IFS=$as_save_IFS
19809   test -z "$as_dir" && as_dir=.
19810   for ac_exec_ext in '' $ac_executable_extensions; do
19811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19812     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19813        ac_prog_rejected=yes
19814        continue
19815      fi
19816     ac_cv_prog_CC="cc"
19817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19818     break 2
19819   fi
19820 done
19821 done
19822 IFS=$as_save_IFS
19823
19824 if test $ac_prog_rejected = yes; then
19825   # We found a bogon in the path, so make sure we never use it.
19826   set dummy $ac_cv_prog_CC
19827   shift
19828   if test $# != 0; then
19829     # We chose a different compiler from the bogus one.
19830     # However, it has the same basename, so the bogon will be chosen
19831     # first if we set CC to just the basename; use the full file name.
19832     shift
19833     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19834   fi
19835 fi
19836 fi
19837 fi
19838 CC=$ac_cv_prog_CC
19839 if test -n "$CC"; then
19840   { echo "$as_me:$LINENO: result: $CC" >&5
19841 echo "${ECHO_T}$CC" >&6; }
19842 else
19843   { echo "$as_me:$LINENO: result: no" >&5
19844 echo "${ECHO_T}no" >&6; }
19845 fi
19846
19847
19848 fi
19849 if test -z "$CC"; then
19850   if test -n "$ac_tool_prefix"; then
19851   for ac_prog in cl.exe
19852   do
19853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19857 if test "${ac_cv_prog_CC+set}" = set; then
19858   echo $ECHO_N "(cached) $ECHO_C" >&6
19859 else
19860   if test -n "$CC"; then
19861   ac_cv_prog_CC="$CC" # Let the user override the test.
19862 else
19863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19864 for as_dir in $PATH
19865 do
19866   IFS=$as_save_IFS
19867   test -z "$as_dir" && as_dir=.
19868   for ac_exec_ext in '' $ac_executable_extensions; do
19869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19870     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19872     break 2
19873   fi
19874 done
19875 done
19876 IFS=$as_save_IFS
19877
19878 fi
19879 fi
19880 CC=$ac_cv_prog_CC
19881 if test -n "$CC"; then
19882   { echo "$as_me:$LINENO: result: $CC" >&5
19883 echo "${ECHO_T}$CC" >&6; }
19884 else
19885   { echo "$as_me:$LINENO: result: no" >&5
19886 echo "${ECHO_T}no" >&6; }
19887 fi
19888
19889
19890     test -n "$CC" && break
19891   done
19892 fi
19893 if test -z "$CC"; then
19894   ac_ct_CC=$CC
19895   for ac_prog in cl.exe
19896 do
19897   # Extract the first word of "$ac_prog", so it can be a program name with args.
19898 set dummy $ac_prog; ac_word=$2
19899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19901 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19902   echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904   if test -n "$ac_ct_CC"; then
19905   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19906 else
19907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19908 for as_dir in $PATH
19909 do
19910   IFS=$as_save_IFS
19911   test -z "$as_dir" && as_dir=.
19912   for ac_exec_ext in '' $ac_executable_extensions; do
19913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19914     ac_cv_prog_ac_ct_CC="$ac_prog"
19915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19916     break 2
19917   fi
19918 done
19919 done
19920 IFS=$as_save_IFS
19921
19922 fi
19923 fi
19924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19925 if test -n "$ac_ct_CC"; then
19926   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19927 echo "${ECHO_T}$ac_ct_CC" >&6; }
19928 else
19929   { echo "$as_me:$LINENO: result: no" >&5
19930 echo "${ECHO_T}no" >&6; }
19931 fi
19932
19933
19934   test -n "$ac_ct_CC" && break
19935 done
19936
19937   if test "x$ac_ct_CC" = x; then
19938     CC=""
19939   else
19940     case $cross_compiling:$ac_tool_warned in
19941 yes:)
19942 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19943 whose name does not start with the host triplet.  If you think this
19944 configuration is useful to you, please write to autoconf@gnu.org." >&5
19945 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19946 whose name does not start with the host triplet.  If you think this
19947 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19948 ac_tool_warned=yes ;;
19949 esac
19950     CC=$ac_ct_CC
19951   fi
19952 fi
19953
19954 fi
19955
19956
19957 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19958 See \`config.log' for more details." >&5
19959 echo "$as_me: error: no acceptable C compiler found in \$PATH
19960 See \`config.log' for more details." >&2;}
19961    { (exit 1); exit 1; }; }
19962
19963 # Provide some information about the compiler.
19964 echo "$as_me:$LINENO: checking for C compiler version" >&5
19965 ac_compiler=`set X $ac_compile; echo $2`
19966 { (ac_try="$ac_compiler --version >&5"
19967 case "(($ac_try" in
19968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19969   *) ac_try_echo=$ac_try;;
19970 esac
19971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19972   (eval "$ac_compiler --version >&5") 2>&5
19973   ac_status=$?
19974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19975   (exit $ac_status); }
19976 { (ac_try="$ac_compiler -v >&5"
19977 case "(($ac_try" in
19978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979   *) ac_try_echo=$ac_try;;
19980 esac
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982   (eval "$ac_compiler -v >&5") 2>&5
19983   ac_status=$?
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); }
19986 { (ac_try="$ac_compiler -V >&5"
19987 case "(($ac_try" in
19988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989   *) ac_try_echo=$ac_try;;
19990 esac
19991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992   (eval "$ac_compiler -V >&5") 2>&5
19993   ac_status=$?
19994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995   (exit $ac_status); }
19996
19997 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19998 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19999 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20000   echo $ECHO_N "(cached) $ECHO_C" >&6
20001 else
20002   cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008
20009 int
20010 main ()
20011 {
20012 #ifndef __GNUC__
20013        choke me
20014 #endif
20015
20016   ;
20017   return 0;
20018 }
20019 _ACEOF
20020 rm -f conftest.$ac_objext
20021 if { (ac_try="$ac_compile"
20022 case "(($ac_try" in
20023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024   *) ac_try_echo=$ac_try;;
20025 esac
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027   (eval "$ac_compile") 2>conftest.er1
20028   ac_status=$?
20029   grep -v '^ *+' conftest.er1 >conftest.err
20030   rm -f conftest.er1
20031   cat conftest.err >&5
20032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033   (exit $ac_status); } && {
20034          test -z "$ac_c_werror_flag" ||
20035          test ! -s conftest.err
20036        } && test -s conftest.$ac_objext; then
20037   ac_compiler_gnu=yes
20038 else
20039   echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20041
20042         ac_compiler_gnu=no
20043 fi
20044
20045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20047
20048 fi
20049 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20051 GCC=`test $ac_compiler_gnu = yes && echo yes`
20052 ac_test_CFLAGS=${CFLAGS+set}
20053 ac_save_CFLAGS=$CFLAGS
20054 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20055 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20056 if test "${ac_cv_prog_cc_g+set}" = set; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059   ac_save_c_werror_flag=$ac_c_werror_flag
20060    ac_c_werror_flag=yes
20061    ac_cv_prog_cc_g=no
20062    CFLAGS="-g"
20063    cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h.  */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h.  */
20069
20070 int
20071 main ()
20072 {
20073
20074   ;
20075   return 0;
20076 }
20077 _ACEOF
20078 rm -f conftest.$ac_objext
20079 if { (ac_try="$ac_compile"
20080 case "(($ac_try" in
20081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082   *) ac_try_echo=$ac_try;;
20083 esac
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085   (eval "$ac_compile") 2>conftest.er1
20086   ac_status=$?
20087   grep -v '^ *+' conftest.er1 >conftest.err
20088   rm -f conftest.er1
20089   cat conftest.err >&5
20090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091   (exit $ac_status); } && {
20092          test -z "$ac_c_werror_flag" ||
20093          test ! -s conftest.err
20094        } && test -s conftest.$ac_objext; then
20095   ac_cv_prog_cc_g=yes
20096 else
20097   echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20099
20100         CFLAGS=""
20101       cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107
20108 int
20109 main ()
20110 {
20111
20112   ;
20113   return 0;
20114 }
20115 _ACEOF
20116 rm -f conftest.$ac_objext
20117 if { (ac_try="$ac_compile"
20118 case "(($ac_try" in
20119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120   *) ac_try_echo=$ac_try;;
20121 esac
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123   (eval "$ac_compile") 2>conftest.er1
20124   ac_status=$?
20125   grep -v '^ *+' conftest.er1 >conftest.err
20126   rm -f conftest.er1
20127   cat conftest.err >&5
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } && {
20130          test -z "$ac_c_werror_flag" ||
20131          test ! -s conftest.err
20132        } && test -s conftest.$ac_objext; then
20133   :
20134 else
20135   echo "$as_me: failed program was:" >&5
20136 sed 's/^/| /' conftest.$ac_ext >&5
20137
20138         ac_c_werror_flag=$ac_save_c_werror_flag
20139          CFLAGS="-g"
20140          cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h.  */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h.  */
20146
20147 int
20148 main ()
20149 {
20150
20151   ;
20152   return 0;
20153 }
20154 _ACEOF
20155 rm -f conftest.$ac_objext
20156 if { (ac_try="$ac_compile"
20157 case "(($ac_try" in
20158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159   *) ac_try_echo=$ac_try;;
20160 esac
20161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20162   (eval "$ac_compile") 2>conftest.er1
20163   ac_status=$?
20164   grep -v '^ *+' conftest.er1 >conftest.err
20165   rm -f conftest.er1
20166   cat conftest.err >&5
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); } && {
20169          test -z "$ac_c_werror_flag" ||
20170          test ! -s conftest.err
20171        } && test -s conftest.$ac_objext; then
20172   ac_cv_prog_cc_g=yes
20173 else
20174   echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177
20178 fi
20179
20180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 fi
20182
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184 fi
20185
20186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20187    ac_c_werror_flag=$ac_save_c_werror_flag
20188 fi
20189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20191 if test "$ac_test_CFLAGS" = set; then
20192   CFLAGS=$ac_save_CFLAGS
20193 elif test $ac_cv_prog_cc_g = yes; then
20194   if test "$GCC" = yes; then
20195     CFLAGS="-g -O2"
20196   else
20197     CFLAGS="-g"
20198   fi
20199 else
20200   if test "$GCC" = yes; then
20201     CFLAGS="-O2"
20202   else
20203     CFLAGS=
20204   fi
20205 fi
20206 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20207 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20208 if test "${ac_cv_prog_cc_c89+set}" = set; then
20209   echo $ECHO_N "(cached) $ECHO_C" >&6
20210 else
20211   ac_cv_prog_cc_c89=no
20212 ac_save_CC=$CC
20213 cat >conftest.$ac_ext <<_ACEOF
20214 /* confdefs.h.  */
20215 _ACEOF
20216 cat confdefs.h >>conftest.$ac_ext
20217 cat >>conftest.$ac_ext <<_ACEOF
20218 /* end confdefs.h.  */
20219 #include <stdarg.h>
20220 #include <stdio.h>
20221 #include <sys/types.h>
20222 #include <sys/stat.h>
20223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20224 struct buf { int x; };
20225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20226 static char *e (p, i)
20227      char **p;
20228      int i;
20229 {
20230   return p[i];
20231 }
20232 static char *f (char * (*g) (char **, int), char **p, ...)
20233 {
20234   char *s;
20235   va_list v;
20236   va_start (v,p);
20237   s = g (p, va_arg (v,int));
20238   va_end (v);
20239   return s;
20240 }
20241
20242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20243    function prototypes and stuff, but not '\xHH' hex character constants.
20244    These don't provoke an error unfortunately, instead are silently treated
20245    as 'x'.  The following induces an error, until -std is added to get
20246    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20247    array size at least.  It's necessary to write '\x00'==0 to get something
20248    that's true only with -std.  */
20249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20250
20251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20252    inside strings and character constants.  */
20253 #define FOO(x) 'x'
20254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20255
20256 int test (int i, double x);
20257 struct s1 {int (*f) (int a);};
20258 struct s2 {int (*f) (double a);};
20259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20260 int argc;
20261 char **argv;
20262 int
20263 main ()
20264 {
20265 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20266   ;
20267   return 0;
20268 }
20269 _ACEOF
20270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20271         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20272 do
20273   CC="$ac_save_CC $ac_arg"
20274   rm -f conftest.$ac_objext
20275 if { (ac_try="$ac_compile"
20276 case "(($ac_try" in
20277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278   *) ac_try_echo=$ac_try;;
20279 esac
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281   (eval "$ac_compile") 2>conftest.er1
20282   ac_status=$?
20283   grep -v '^ *+' conftest.er1 >conftest.err
20284   rm -f conftest.er1
20285   cat conftest.err >&5
20286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287   (exit $ac_status); } && {
20288          test -z "$ac_c_werror_flag" ||
20289          test ! -s conftest.err
20290        } && test -s conftest.$ac_objext; then
20291   ac_cv_prog_cc_c89=$ac_arg
20292 else
20293   echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296
20297 fi
20298
20299 rm -f core conftest.err conftest.$ac_objext
20300   test "x$ac_cv_prog_cc_c89" != "xno" && break
20301 done
20302 rm -f conftest.$ac_ext
20303 CC=$ac_save_CC
20304
20305 fi
20306 # AC_CACHE_VAL
20307 case "x$ac_cv_prog_cc_c89" in
20308   x)
20309     { echo "$as_me:$LINENO: result: none needed" >&5
20310 echo "${ECHO_T}none needed" >&6; } ;;
20311   xno)
20312     { echo "$as_me:$LINENO: result: unsupported" >&5
20313 echo "${ECHO_T}unsupported" >&6; } ;;
20314   *)
20315     CC="$CC $ac_cv_prog_cc_c89"
20316     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20317 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20318 esac
20319
20320
20321 ac_ext=c
20322 ac_cpp='$CPP $CPPFLAGS'
20323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20326
20327 depcc="$CC"   am_compiler_list=
20328
20329 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20330 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20331 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20332   echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20335   # We make a subdir and do the tests there.  Otherwise we can end up
20336   # making bogus files that we don't know about and never remove.  For
20337   # instance it was reported that on HP-UX the gcc test will end up
20338   # making a dummy file named `D' -- because `-MD' means `put the output
20339   # in D'.
20340   mkdir conftest.dir
20341   # Copy depcomp to subdir because otherwise we won't find it if we're
20342   # using a relative directory.
20343   cp "$am_depcomp" conftest.dir
20344   cd conftest.dir
20345   # We will build objects and dependencies in a subdirectory because
20346   # it helps to detect inapplicable dependency modes.  For instance
20347   # both Tru64's cc and ICC support -MD to output dependencies as a
20348   # side effect of compilation, but ICC will put the dependencies in
20349   # the current directory while Tru64 will put them in the object
20350   # directory.
20351   mkdir sub
20352
20353   am_cv_CC_dependencies_compiler_type=none
20354   if test "$am_compiler_list" = ""; then
20355      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20356   fi
20357   for depmode in $am_compiler_list; do
20358     # Setup a source with many dependencies, because some compilers
20359     # like to wrap large dependency lists on column 80 (with \), and
20360     # we should not choose a depcomp mode which is confused by this.
20361     #
20362     # We need to recreate these files for each test, as the compiler may
20363     # overwrite some of them when testing with obscure command lines.
20364     # This happens at least with the AIX C compiler.
20365     : > sub/conftest.c
20366     for i in 1 2 3 4 5 6; do
20367       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20368       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20369       # Solaris 8's {/usr,}/bin/sh.
20370       touch sub/conftst$i.h
20371     done
20372     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20373
20374     case $depmode in
20375     nosideeffect)
20376       # after this tag, mechanisms are not by side-effect, so they'll
20377       # only be used when explicitly requested
20378       if test "x$enable_dependency_tracking" = xyes; then
20379         continue
20380       else
20381         break
20382       fi
20383       ;;
20384     none) break ;;
20385     esac
20386     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20387     # mode.  It turns out that the SunPro C++ compiler does not properly
20388     # handle `-M -o', and we need to detect this.
20389     if depmode=$depmode \
20390        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20391        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20392        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20393          >/dev/null 2>conftest.err &&
20394        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20395        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20396        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20397        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20398       # icc doesn't choke on unknown options, it will just issue warnings
20399       # or remarks (even with -Werror).  So we grep stderr for any message
20400       # that says an option was ignored or not supported.
20401       # When given -MP, icc 7.0 and 7.1 complain thusly:
20402       #   icc: Command line warning: ignoring option '-M'; no argument required
20403       # The diagnosis changed in icc 8.0:
20404       #   icc: Command line remark: option '-MP' not supported
20405       if (grep 'ignoring option' conftest.err ||
20406           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20407         am_cv_CC_dependencies_compiler_type=$depmode
20408         break
20409       fi
20410     fi
20411   done
20412
20413   cd ..
20414   rm -rf conftest.dir
20415 else
20416   am_cv_CC_dependencies_compiler_type=none
20417 fi
20418
20419 fi
20420 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20421 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20422 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20423
20424  if
20425   test "x$enable_dependency_tracking" != xno \
20426   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20427   am__fastdepCC_TRUE=
20428   am__fastdepCC_FALSE='#'
20429 else
20430   am__fastdepCC_TRUE='#'
20431   am__fastdepCC_FALSE=
20432 fi
20433
20434
20435 if test "x$CC" != xcc; then
20436   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
20437 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
20438 else
20439   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
20440 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
20441 fi
20442 set dummy $CC; ac_cc=`echo $2 |
20443                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
20444 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
20445   echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447   cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453
20454 int
20455 main ()
20456 {
20457
20458   ;
20459   return 0;
20460 }
20461 _ACEOF
20462 # Make sure it works both with $CC and with simple cc.
20463 # We do the test twice because some compilers refuse to overwrite an
20464 # existing .o file with -o, though they will create one.
20465 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20466 rm -f conftest2.*
20467 if { (case "(($ac_try" in
20468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469   *) ac_try_echo=$ac_try;;
20470 esac
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472   (eval "$ac_try") 2>&5
20473   ac_status=$?
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } &&
20476    test -f conftest2.$ac_objext && { (case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_try") 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); };
20485 then
20486   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
20487   if test "x$CC" != xcc; then
20488     # Test first that cc exists at all.
20489     if { ac_try='cc -c conftest.$ac_ext >&5'
20490   { (case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_try") 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); }; }; then
20499       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20500       rm -f conftest2.*
20501       if { (case "(($ac_try" in
20502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503   *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506   (eval "$ac_try") 2>&5
20507   ac_status=$?
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); } &&
20510          test -f conftest2.$ac_objext && { (case "(($ac_try" in
20511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20512   *) ac_try_echo=$ac_try;;
20513 esac
20514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20515   (eval "$ac_try") 2>&5
20516   ac_status=$?
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); };
20519       then
20520         # cc works too.
20521         :
20522       else
20523         # cc exists but doesn't like -o.
20524         eval ac_cv_prog_cc_${ac_cc}_c_o=no
20525       fi
20526     fi
20527   fi
20528 else
20529   eval ac_cv_prog_cc_${ac_cc}_c_o=no
20530 fi
20531 rm -f -r core conftest*
20532
20533 fi
20534 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
20535   { echo "$as_me:$LINENO: result: yes" >&5
20536 echo "${ECHO_T}yes" >&6; }
20537 else
20538   { echo "$as_me:$LINENO: result: no" >&5
20539 echo "${ECHO_T}no" >&6; }
20540
20541 cat >>confdefs.h <<\_ACEOF
20542 #define NO_MINUS_C_MINUS_O 1
20543 _ACEOF
20544
20545 fi
20546
20547 ac_ext=cpp
20548 ac_cpp='$CXXCPP $CPPFLAGS'
20549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20552 if test -z "$CXX"; then
20553   if test -n "$CCC"; then
20554     CXX=$CCC
20555   else
20556     if test -n "$ac_tool_prefix"; then
20557   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20558   do
20559     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20563 if test "${ac_cv_prog_CXX+set}" = set; then
20564   echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566   if test -n "$CXX"; then
20567   ac_cv_prog_CXX="$CXX" # Let the user override the test.
20568 else
20569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20570 for as_dir in $PATH
20571 do
20572   IFS=$as_save_IFS
20573   test -z "$as_dir" && as_dir=.
20574   for ac_exec_ext in '' $ac_executable_extensions; do
20575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20576     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20578     break 2
20579   fi
20580 done
20581 done
20582 IFS=$as_save_IFS
20583
20584 fi
20585 fi
20586 CXX=$ac_cv_prog_CXX
20587 if test -n "$CXX"; then
20588   { echo "$as_me:$LINENO: result: $CXX" >&5
20589 echo "${ECHO_T}$CXX" >&6; }
20590 else
20591   { echo "$as_me:$LINENO: result: no" >&5
20592 echo "${ECHO_T}no" >&6; }
20593 fi
20594
20595
20596     test -n "$CXX" && break
20597   done
20598 fi
20599 if test -z "$CXX"; then
20600   ac_ct_CXX=$CXX
20601   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20602 do
20603   # Extract the first word of "$ac_prog", so it can be a program name with args.
20604 set dummy $ac_prog; ac_word=$2
20605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20607 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20608   echo $ECHO_N "(cached) $ECHO_C" >&6
20609 else
20610   if test -n "$ac_ct_CXX"; then
20611   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20612 else
20613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20614 for as_dir in $PATH
20615 do
20616   IFS=$as_save_IFS
20617   test -z "$as_dir" && as_dir=.
20618   for ac_exec_ext in '' $ac_executable_extensions; do
20619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20620     ac_cv_prog_ac_ct_CXX="$ac_prog"
20621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20622     break 2
20623   fi
20624 done
20625 done
20626 IFS=$as_save_IFS
20627
20628 fi
20629 fi
20630 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20631 if test -n "$ac_ct_CXX"; then
20632   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20633 echo "${ECHO_T}$ac_ct_CXX" >&6; }
20634 else
20635   { echo "$as_me:$LINENO: result: no" >&5
20636 echo "${ECHO_T}no" >&6; }
20637 fi
20638
20639
20640   test -n "$ac_ct_CXX" && break
20641 done
20642
20643   if test "x$ac_ct_CXX" = x; then
20644     CXX="g++"
20645   else
20646     case $cross_compiling:$ac_tool_warned in
20647 yes:)
20648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20649 whose name does not start with the host triplet.  If you think this
20650 configuration is useful to you, please write to autoconf@gnu.org." >&5
20651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20652 whose name does not start with the host triplet.  If you think this
20653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20654 ac_tool_warned=yes ;;
20655 esac
20656     CXX=$ac_ct_CXX
20657   fi
20658 fi
20659
20660   fi
20661 fi
20662 # Provide some information about the compiler.
20663 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
20664 ac_compiler=`set X $ac_compile; echo $2`
20665 { (ac_try="$ac_compiler --version >&5"
20666 case "(($ac_try" in
20667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20668   *) ac_try_echo=$ac_try;;
20669 esac
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671   (eval "$ac_compiler --version >&5") 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }
20675 { (ac_try="$ac_compiler -v >&5"
20676 case "(($ac_try" in
20677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678   *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681   (eval "$ac_compiler -v >&5") 2>&5
20682   ac_status=$?
20683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684   (exit $ac_status); }
20685 { (ac_try="$ac_compiler -V >&5"
20686 case "(($ac_try" in
20687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688   *) ac_try_echo=$ac_try;;
20689 esac
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691   (eval "$ac_compiler -V >&5") 2>&5
20692   ac_status=$?
20693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694   (exit $ac_status); }
20695
20696 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20697 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
20698 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20699   echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701   cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h.  */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h.  */
20707
20708 int
20709 main ()
20710 {
20711 #ifndef __GNUC__
20712        choke me
20713 #endif
20714
20715   ;
20716   return 0;
20717 }
20718 _ACEOF
20719 rm -f conftest.$ac_objext
20720 if { (ac_try="$ac_compile"
20721 case "(($ac_try" in
20722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723   *) ac_try_echo=$ac_try;;
20724 esac
20725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20726   (eval "$ac_compile") 2>conftest.er1
20727   ac_status=$?
20728   grep -v '^ *+' conftest.er1 >conftest.err
20729   rm -f conftest.er1
20730   cat conftest.err >&5
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } && {
20733          test -z "$ac_cxx_werror_flag" ||
20734          test ! -s conftest.err
20735        } && test -s conftest.$ac_objext; then
20736   ac_compiler_gnu=yes
20737 else
20738   echo "$as_me: failed program was:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20740
20741         ac_compiler_gnu=no
20742 fi
20743
20744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20745 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20746
20747 fi
20748 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20749 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
20750 GXX=`test $ac_compiler_gnu = yes && echo yes`
20751 ac_test_CXXFLAGS=${CXXFLAGS+set}
20752 ac_save_CXXFLAGS=$CXXFLAGS
20753 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20754 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
20755 if test "${ac_cv_prog_cxx_g+set}" = set; then
20756   echo $ECHO_N "(cached) $ECHO_C" >&6
20757 else
20758   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20759    ac_cxx_werror_flag=yes
20760    ac_cv_prog_cxx_g=no
20761    CXXFLAGS="-g"
20762    cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h.  */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h.  */
20768
20769 int
20770 main ()
20771 {
20772
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784   (eval "$ac_compile") 2>conftest.er1
20785   ac_status=$?
20786   grep -v '^ *+' conftest.er1 >conftest.err
20787   rm -f conftest.er1
20788   cat conftest.err >&5
20789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790   (exit $ac_status); } && {
20791          test -z "$ac_cxx_werror_flag" ||
20792          test ! -s conftest.err
20793        } && test -s conftest.$ac_objext; then
20794   ac_cv_prog_cxx_g=yes
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799         CXXFLAGS=""
20800       cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806
20807 int
20808 main ()
20809 {
20810
20811   ;
20812   return 0;
20813 }
20814 _ACEOF
20815 rm -f conftest.$ac_objext
20816 if { (ac_try="$ac_compile"
20817 case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_compile") 2>conftest.er1
20823   ac_status=$?
20824   grep -v '^ *+' conftest.er1 >conftest.err
20825   rm -f conftest.er1
20826   cat conftest.err >&5
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } && {
20829          test -z "$ac_cxx_werror_flag" ||
20830          test ! -s conftest.err
20831        } && test -s conftest.$ac_objext; then
20832   :
20833 else
20834   echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20838          CXXFLAGS="-g"
20839          cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h.  */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h.  */
20845
20846 int
20847 main ()
20848 {
20849
20850   ;
20851   return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext
20855 if { (ac_try="$ac_compile"
20856 case "(($ac_try" in
20857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20858   *) ac_try_echo=$ac_try;;
20859 esac
20860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20861   (eval "$ac_compile") 2>conftest.er1
20862   ac_status=$?
20863   grep -v '^ *+' conftest.er1 >conftest.err
20864   rm -f conftest.er1
20865   cat conftest.err >&5
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); } && {
20868          test -z "$ac_cxx_werror_flag" ||
20869          test ! -s conftest.err
20870        } && test -s conftest.$ac_objext; then
20871   ac_cv_prog_cxx_g=yes
20872 else
20873   echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20875
20876
20877 fi
20878
20879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20880 fi
20881
20882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20883 fi
20884
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20887 fi
20888 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20889 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20890 if test "$ac_test_CXXFLAGS" = set; then
20891   CXXFLAGS=$ac_save_CXXFLAGS
20892 elif test $ac_cv_prog_cxx_g = yes; then
20893   if test "$GXX" = yes; then
20894     CXXFLAGS="-g -O2"
20895   else
20896     CXXFLAGS="-g"
20897   fi
20898 else
20899   if test "$GXX" = yes; then
20900     CXXFLAGS="-O2"
20901   else
20902     CXXFLAGS=
20903   fi
20904 fi
20905 ac_ext=c
20906 ac_cpp='$CPP $CPPFLAGS'
20907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20910
20911 depcc="$CXX"  am_compiler_list=
20912
20913 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20914 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20915 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20916   echo $ECHO_N "(cached) $ECHO_C" >&6
20917 else
20918   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20919   # We make a subdir and do the tests there.  Otherwise we can end up
20920   # making bogus files that we don't know about and never remove.  For
20921   # instance it was reported that on HP-UX the gcc test will end up
20922   # making a dummy file named `D' -- because `-MD' means `put the output
20923   # in D'.
20924   mkdir conftest.dir
20925   # Copy depcomp to subdir because otherwise we won't find it if we're
20926   # using a relative directory.
20927   cp "$am_depcomp" conftest.dir
20928   cd conftest.dir
20929   # We will build objects and dependencies in a subdirectory because
20930   # it helps to detect inapplicable dependency modes.  For instance
20931   # both Tru64's cc and ICC support -MD to output dependencies as a
20932   # side effect of compilation, but ICC will put the dependencies in
20933   # the current directory while Tru64 will put them in the object
20934   # directory.
20935   mkdir sub
20936
20937   am_cv_CXX_dependencies_compiler_type=none
20938   if test "$am_compiler_list" = ""; then
20939      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20940   fi
20941   for depmode in $am_compiler_list; do
20942     # Setup a source with many dependencies, because some compilers
20943     # like to wrap large dependency lists on column 80 (with \), and
20944     # we should not choose a depcomp mode which is confused by this.
20945     #
20946     # We need to recreate these files for each test, as the compiler may
20947     # overwrite some of them when testing with obscure command lines.
20948     # This happens at least with the AIX C compiler.
20949     : > sub/conftest.c
20950     for i in 1 2 3 4 5 6; do
20951       echo '#include "conftst'$i'.h"' >> sub/conftest.c
20952       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20953       # Solaris 8's {/usr,}/bin/sh.
20954       touch sub/conftst$i.h
20955     done
20956     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20957
20958     case $depmode in
20959     nosideeffect)
20960       # after this tag, mechanisms are not by side-effect, so they'll
20961       # only be used when explicitly requested
20962       if test "x$enable_dependency_tracking" = xyes; then
20963         continue
20964       else
20965         break
20966       fi
20967       ;;
20968     none) break ;;
20969     esac
20970     # We check with `-c' and `-o' for the sake of the "dashmstdout"
20971     # mode.  It turns out that the SunPro C++ compiler does not properly
20972     # handle `-M -o', and we need to detect this.
20973     if depmode=$depmode \
20974        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20975        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20976        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20977          >/dev/null 2>conftest.err &&
20978        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20979        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20980        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20981        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20982       # icc doesn't choke on unknown options, it will just issue warnings
20983       # or remarks (even with -Werror).  So we grep stderr for any message
20984       # that says an option was ignored or not supported.
20985       # When given -MP, icc 7.0 and 7.1 complain thusly:
20986       #   icc: Command line warning: ignoring option '-M'; no argument required
20987       # The diagnosis changed in icc 8.0:
20988       #   icc: Command line remark: option '-MP' not supported
20989       if (grep 'ignoring option' conftest.err ||
20990           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20991         am_cv_CXX_dependencies_compiler_type=$depmode
20992         break
20993       fi
20994     fi
20995   done
20996
20997   cd ..
20998   rm -rf conftest.dir
20999 else
21000   am_cv_CXX_dependencies_compiler_type=none
21001 fi
21002
21003 fi
21004 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
21005 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
21006 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
21007
21008  if
21009   test "x$enable_dependency_tracking" != xno \
21010   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21011   am__fastdepCXX_TRUE=
21012   am__fastdepCXX_FALSE='#'
21013 else
21014   am__fastdepCXX_TRUE='#'
21015   am__fastdepCXX_FALSE=
21016 fi
21017
21018
21019 # Find a good install program.  We prefer a C program (faster),
21020 # so one script is as good as another.  But avoid the broken or
21021 # incompatible versions:
21022 # SysV /etc/install, /usr/sbin/install
21023 # SunOS /usr/etc/install
21024 # IRIX /sbin/install
21025 # AIX /bin/install
21026 # AmigaOS /C/install, which installs bootblocks on floppy discs
21027 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
21028 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
21029 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
21030 # OS/2's system install, which has a completely different semantic
21031 # ./install, which can be erroneously created by make from ./install.sh.
21032 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
21033 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
21034 if test -z "$INSTALL"; then
21035 if test "${ac_cv_path_install+set}" = set; then
21036   echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21039 for as_dir in $PATH
21040 do
21041   IFS=$as_save_IFS
21042   test -z "$as_dir" && as_dir=.
21043   # Account for people who put trailing slashes in PATH elements.
21044 case $as_dir/ in
21045   ./ | .// | /cC/* | \
21046   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
21047   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
21048   /usr/ucb/* ) ;;
21049   *)
21050     # OSF1 and SCO ODT 3.0 have their own names for install.
21051     # Don't use installbsd from OSF since it installs stuff as root
21052     # by default.
21053     for ac_prog in ginstall scoinst install; do
21054       for ac_exec_ext in '' $ac_executable_extensions; do
21055         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
21056           if test $ac_prog = install &&
21057             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21058             # AIX install.  It has an incompatible calling convention.
21059             :
21060           elif test $ac_prog = install &&
21061             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
21062             # program-specific install script used by HP pwplus--don't use.
21063             :
21064           else
21065             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
21066             break 3
21067           fi
21068         fi
21069       done
21070     done
21071     ;;
21072 esac
21073 done
21074 IFS=$as_save_IFS
21075
21076
21077 fi
21078   if test "${ac_cv_path_install+set}" = set; then
21079     INSTALL=$ac_cv_path_install
21080   else
21081     # As a last resort, use the slow shell script.  Don't cache a
21082     # value for INSTALL within a source directory, because that will
21083     # break other packages using the cache if that directory is
21084     # removed, or if the value is a relative name.
21085     INSTALL=$ac_install_sh
21086   fi
21087 fi
21088 { echo "$as_me:$LINENO: result: $INSTALL" >&5
21089 echo "${ECHO_T}$INSTALL" >&6; }
21090
21091 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
21092 # It thinks the first close brace ends the variable substitution.
21093 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
21094
21095 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
21096
21097 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
21098
21099
21100 { echo "$as_me:$LINENO: checking for size_t" >&5
21101 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21102 if test "${ac_cv_type_size_t+set}" = set; then
21103   echo $ECHO_N "(cached) $ECHO_C" >&6
21104 else
21105   cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h.  */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h.  */
21111 $ac_includes_default
21112 typedef size_t ac__type_new_;
21113 int
21114 main ()
21115 {
21116 if ((ac__type_new_ *) 0)
21117   return 0;
21118 if (sizeof (ac__type_new_))
21119   return 0;
21120   ;
21121   return 0;
21122 }
21123 _ACEOF
21124 rm -f conftest.$ac_objext
21125 if { (ac_try="$ac_compile"
21126 case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_compile") 2>conftest.er1
21132   ac_status=$?
21133   grep -v '^ *+' conftest.er1 >conftest.err
21134   rm -f conftest.er1
21135   cat conftest.err >&5
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } && {
21138          test -z "$ac_c_werror_flag" ||
21139          test ! -s conftest.err
21140        } && test -s conftest.$ac_objext; then
21141   ac_cv_type_size_t=yes
21142 else
21143   echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146         ac_cv_type_size_t=no
21147 fi
21148
21149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21150 fi
21151 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21152 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21153 if test $ac_cv_type_size_t = yes; then
21154   :
21155 else
21156
21157 cat >>confdefs.h <<_ACEOF
21158 #define size_t unsigned int
21159 _ACEOF
21160
21161 fi
21162
21163
21164   { echo "$as_me:$LINENO: checking for uint8_t" >&5
21165 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
21166 if test "${ac_cv_c_uint8_t+set}" = set; then
21167   echo $ECHO_N "(cached) $ECHO_C" >&6
21168 else
21169   ac_cv_c_uint8_t=no
21170      for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
21171          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
21172        cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 $ac_includes_default
21179 int
21180 main ()
21181 {
21182 static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
21183 test_array [0] = 0
21184
21185   ;
21186   return 0;
21187 }
21188 _ACEOF
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193   *) ac_try_echo=$ac_try;;
21194 esac
21195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21196   (eval "$ac_compile") 2>conftest.er1
21197   ac_status=$?
21198   grep -v '^ *+' conftest.er1 >conftest.err
21199   rm -f conftest.er1
21200   cat conftest.err >&5
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); } && {
21203          test -z "$ac_c_werror_flag" ||
21204          test ! -s conftest.err
21205        } && test -s conftest.$ac_objext; then
21206   case $ac_type in
21207   uint8_t) ac_cv_c_uint8_t=yes ;;
21208   *) ac_cv_c_uint8_t=$ac_type ;;
21209 esac
21210
21211 else
21212   echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21214
21215
21216 fi
21217
21218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21219        test "$ac_cv_c_uint8_t" != no && break
21220      done
21221 fi
21222 { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
21223 echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
21224   case $ac_cv_c_uint8_t in #(
21225   no|yes) ;; #(
21226   *)
21227
21228 cat >>confdefs.h <<\_ACEOF
21229 #define _UINT8_T 1
21230 _ACEOF
21231
21232
21233 cat >>confdefs.h <<_ACEOF
21234 #define uint8_t $ac_cv_c_uint8_t
21235 _ACEOF
21236 ;;
21237   esac
21238
21239 # By default we simply use the C compiler to build assembly code.
21240
21241 test "${CCAS+set}" = set || CCAS=$CC
21242 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
21243
21244
21245
21246 depcc="$CCAS"   am_compiler_list=
21247
21248 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21249 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
21250 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
21251   echo $ECHO_N "(cached) $ECHO_C" >&6
21252 else
21253   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21254   # We make a subdir and do the tests there.  Otherwise we can end up
21255   # making bogus files that we don't know about and never remove.  For
21256   # instance it was reported that on HP-UX the gcc test will end up
21257   # making a dummy file named `D' -- because `-MD' means `put the output
21258   # in D'.
21259   mkdir conftest.dir
21260   # Copy depcomp to subdir because otherwise we won't find it if we're
21261   # using a relative directory.
21262   cp "$am_depcomp" conftest.dir
21263   cd conftest.dir
21264   # We will build objects and dependencies in a subdirectory because
21265   # it helps to detect inapplicable dependency modes.  For instance
21266   # both Tru64's cc and ICC support -MD to output dependencies as a
21267   # side effect of compilation, but ICC will put the dependencies in
21268   # the current directory while Tru64 will put them in the object
21269   # directory.
21270   mkdir sub
21271
21272   am_cv_CCAS_dependencies_compiler_type=none
21273   if test "$am_compiler_list" = ""; then
21274      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21275   fi
21276   for depmode in $am_compiler_list; do
21277     # Setup a source with many dependencies, because some compilers
21278     # like to wrap large dependency lists on column 80 (with \), and
21279     # we should not choose a depcomp mode which is confused by this.
21280     #
21281     # We need to recreate these files for each test, as the compiler may
21282     # overwrite some of them when testing with obscure command lines.
21283     # This happens at least with the AIX C compiler.
21284     : > sub/conftest.c
21285     for i in 1 2 3 4 5 6; do
21286       echo '#include "conftst'$i'.h"' >> sub/conftest.c
21287       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21288       # Solaris 8's {/usr,}/bin/sh.
21289       touch sub/conftst$i.h
21290     done
21291     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21292
21293     case $depmode in
21294     nosideeffect)
21295       # after this tag, mechanisms are not by side-effect, so they'll
21296       # only be used when explicitly requested
21297       if test "x$enable_dependency_tracking" = xyes; then
21298         continue
21299       else
21300         break
21301       fi
21302       ;;
21303     none) break ;;
21304     esac
21305     # We check with `-c' and `-o' for the sake of the "dashmstdout"
21306     # mode.  It turns out that the SunPro C++ compiler does not properly
21307     # handle `-M -o', and we need to detect this.
21308     if depmode=$depmode \
21309        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21310        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21311        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21312          >/dev/null 2>conftest.err &&
21313        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
21314        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21315        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21316        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21317       # icc doesn't choke on unknown options, it will just issue warnings
21318       # or remarks (even with -Werror).  So we grep stderr for any message
21319       # that says an option was ignored or not supported.
21320       # When given -MP, icc 7.0 and 7.1 complain thusly:
21321       #   icc: Command line warning: ignoring option '-M'; no argument required
21322       # The diagnosis changed in icc 8.0:
21323       #   icc: Command line remark: option '-MP' not supported
21324       if (grep 'ignoring option' conftest.err ||
21325           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21326         am_cv_CCAS_dependencies_compiler_type=$depmode
21327         break
21328       fi
21329     fi
21330   done
21331
21332   cd ..
21333   rm -rf conftest.dir
21334 else
21335   am_cv_CCAS_dependencies_compiler_type=none
21336 fi
21337
21338 fi
21339 { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
21340 echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
21341 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
21342
21343  if
21344   test "x$enable_dependency_tracking" != xno \
21345   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
21346   am__fastdepCCAS_TRUE=
21347   am__fastdepCCAS_FALSE='#'
21348 else
21349   am__fastdepCCAS_TRUE='#'
21350   am__fastdepCCAS_FALSE=
21351 fi
21352
21353
21354 # FIXME: we rely on the cache variable name because
21355 # there is no other way.
21356 set dummy $CC
21357 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
21358 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
21359    # Losing compiler, so override with the script.
21360    # FIXME: It is wrong to rewrite CC.
21361    # But if we don't then we get into trouble of one sort or another.
21362    # A longer-term fix would be to have automake use am__CC in this case,
21363    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
21364    CC="$am_aux_dir/compile $CC"
21365 fi
21366
21367
21368 LIBM=
21369 case $host in
21370 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
21371   # These system don't have libm, or don't need it
21372   ;;
21373 *-ncr-sysv4.3*)
21374   { echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
21375 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6; }
21376 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
21377   echo $ECHO_N "(cached) $ECHO_C" >&6
21378 else
21379   ac_check_lib_save_LIBS=$LIBS
21380 LIBS="-lmw  $LIBS"
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387
21388 /* Override any GCC internal prototype to avoid an error.
21389    Use char because int might match the return type of a GCC
21390    builtin and then its argument prototype would still apply.  */
21391 #ifdef __cplusplus
21392 extern "C"
21393 #endif
21394 char _mwvalidcheckl ();
21395 int
21396 main ()
21397 {
21398 return _mwvalidcheckl ();
21399   ;
21400   return 0;
21401 }
21402 _ACEOF
21403 rm -f conftest.$ac_objext conftest$ac_exeext
21404 if { (ac_try="$ac_link"
21405 case "(($ac_try" in
21406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407   *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410   (eval "$ac_link") 2>conftest.er1
21411   ac_status=$?
21412   grep -v '^ *+' conftest.er1 >conftest.err
21413   rm -f conftest.er1
21414   cat conftest.err >&5
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } && {
21417          test -z "$ac_c_werror_flag" ||
21418          test ! -s conftest.err
21419        } && test -s conftest$ac_exeext &&
21420        $as_test_x conftest$ac_exeext; then
21421   ac_cv_lib_mw__mwvalidcheckl=yes
21422 else
21423   echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21425
21426         ac_cv_lib_mw__mwvalidcheckl=no
21427 fi
21428
21429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21430       conftest$ac_exeext conftest.$ac_ext
21431 LIBS=$ac_check_lib_save_LIBS
21432 fi
21433 { echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
21434 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6; }
21435 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
21436   LIBM="-lmw"
21437 fi
21438
21439   { echo "$as_me:$LINENO: checking for cos in -lm" >&5
21440 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
21441 if test "${ac_cv_lib_m_cos+set}" = set; then
21442   echo $ECHO_N "(cached) $ECHO_C" >&6
21443 else
21444   ac_check_lib_save_LIBS=$LIBS
21445 LIBS="-lm  $LIBS"
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452
21453 /* Override any GCC internal prototype to avoid an error.
21454    Use char because int might match the return type of a GCC
21455    builtin and then its argument prototype would still apply.  */
21456 #ifdef __cplusplus
21457 extern "C"
21458 #endif
21459 char cos ();
21460 int
21461 main ()
21462 {
21463 return cos ();
21464   ;
21465   return 0;
21466 }
21467 _ACEOF
21468 rm -f conftest.$ac_objext conftest$ac_exeext
21469 if { (ac_try="$ac_link"
21470 case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_link") 2>conftest.er1
21476   ac_status=$?
21477   grep -v '^ *+' conftest.er1 >conftest.err
21478   rm -f conftest.er1
21479   cat conftest.err >&5
21480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481   (exit $ac_status); } && {
21482          test -z "$ac_c_werror_flag" ||
21483          test ! -s conftest.err
21484        } && test -s conftest$ac_exeext &&
21485        $as_test_x conftest$ac_exeext; then
21486   ac_cv_lib_m_cos=yes
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491         ac_cv_lib_m_cos=no
21492 fi
21493
21494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21495       conftest$ac_exeext conftest.$ac_ext
21496 LIBS=$ac_check_lib_save_LIBS
21497 fi
21498 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
21499 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
21500 if test $ac_cv_lib_m_cos = yes; then
21501   LIBM="$LIBM -lm"
21502 fi
21503
21504   ;;
21505 *)
21506   { echo "$as_me:$LINENO: checking for cos in -lm" >&5
21507 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6; }
21508 if test "${ac_cv_lib_m_cos+set}" = set; then
21509   echo $ECHO_N "(cached) $ECHO_C" >&6
21510 else
21511   ac_check_lib_save_LIBS=$LIBS
21512 LIBS="-lm  $LIBS"
21513 cat >conftest.$ac_ext <<_ACEOF
21514 /* confdefs.h.  */
21515 _ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h.  */
21519
21520 /* Override any GCC internal prototype to avoid an error.
21521    Use char because int might match the return type of a GCC
21522    builtin and then its argument prototype would still apply.  */
21523 #ifdef __cplusplus
21524 extern "C"
21525 #endif
21526 char cos ();
21527 int
21528 main ()
21529 {
21530 return cos ();
21531   ;
21532   return 0;
21533 }
21534 _ACEOF
21535 rm -f conftest.$ac_objext conftest$ac_exeext
21536 if { (ac_try="$ac_link"
21537 case "(($ac_try" in
21538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539   *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542   (eval "$ac_link") 2>conftest.er1
21543   ac_status=$?
21544   grep -v '^ *+' conftest.er1 >conftest.err
21545   rm -f conftest.er1
21546   cat conftest.err >&5
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); } && {
21549          test -z "$ac_c_werror_flag" ||
21550          test ! -s conftest.err
21551        } && test -s conftest$ac_exeext &&
21552        $as_test_x conftest$ac_exeext; then
21553   ac_cv_lib_m_cos=yes
21554 else
21555   echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558         ac_cv_lib_m_cos=no
21559 fi
21560
21561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21562       conftest$ac_exeext conftest.$ac_ext
21563 LIBS=$ac_check_lib_save_LIBS
21564 fi
21565 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
21566 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6; }
21567 if test $ac_cv_lib_m_cos = yes; then
21568   LIBM="-lm"
21569 fi
21570
21571   ;;
21572 esac
21573
21574
21575
21576 OPTIMIZE_CFLAGS="-Os -fomit-frame-pointer"
21577 OPTIMIZE_FAST_CFLAGS="-O3 -fomit-frame-pointer"
21578 OPTIMIZE_HUGE_CFLAGS="-funroll-loops -DTFM_SMALL_SET"
21579 DEBUG_CFLAGS="-g -DDEBUG -DDEBUG_CYASSL"
21580
21581
21582 # DEBUG
21583 # Check whether --enable-debug was given.
21584 if test "${enable_debug+set}" = set; then
21585   enableval=$enable_debug;  ENABLED_DEBUG=$enableval
21586 else
21587    ENABLED_DEBUG=no
21588
21589 fi
21590
21591 if test "$ENABLED_DEBUG" = "yes"
21592 then
21593   # Full debug. Very slow in some cases
21594   AM_CFLAGS="$DEBUG_CFLAGS $AM_CFLAGS"
21595 else
21596   # Optimized version. No debug
21597   AM_CFLAGS="$AM_CFLAGS -DNDEBUG"
21598 fi
21599
21600
21601 # SMALL BUILD
21602 # Check whether --enable-small was given.
21603 if test "${enable_small+set}" = set; then
21604   enableval=$enable_small;  ENABLED_SMALL=$enableval
21605 else
21606    ENABLED_SMALL=no
21607
21608 fi
21609
21610 if test "$ENABLED_SMALL" = "yes"
21611 then
21612   # make small no tls build with smallest cipher
21613   # if you only want server or client you can define NO_CYASSL_SERVER or
21614   # NO_CYASSL_CLIENT but then some of the examples and testsuite won't build
21615   # note that TLS needs HMAC
21616   AM_CFLAGS="-DNO_TLS -DNO_HMAC -DNO_AES -DNO_DES3 -DNO_SHA256 -DNO_ERROR_STRINGS -DNO_RABBIT -DNO_PSK -DNO_DSA -DNO_DH -DNO_PWDBASED $AM_CFLAGS"
21617 fi
21618
21619
21620 # SINGLE THREADED
21621 # Check whether --enable-singleThreaded was given.
21622 if test "${enable_singleThreaded+set}" = set; then
21623   enableval=$enable_singleThreaded;  ENABLED_SINGLETHREADED=$enableval
21624 else
21625    ENABLED_SINGLETHREADED=no
21626
21627 fi
21628
21629 if test "$ENABLED_SINGLETHREADED" = "yes"
21630 then
21631   AM_CFLAGS="-DSINGLE_THREADED $AM_CFLAGS"
21632 fi
21633
21634
21635 # DTLS
21636 # Check whether --enable-dtls was given.
21637 if test "${enable_dtls+set}" = set; then
21638   enableval=$enable_dtls;  ENABLED_DTLS=$enableval
21639 else
21640    ENABLED_DTLS=no
21641
21642 fi
21643
21644 if test "$ENABLED_DTLS" = "yes"
21645 then
21646   AM_CFLAGS="-DCYASSL_DTLS $AM_CFLAGS"
21647 fi
21648
21649
21650 # OPENSSL Extra Compatibility
21651 # Check whether --enable-opensslExtra was given.
21652 if test "${enable_opensslExtra+set}" = set; then
21653   enableval=$enable_opensslExtra;  ENABLED_OPENSSLEXTRA=$enableval
21654 else
21655    ENABLED_OPENSSLEXTRA=no
21656
21657 fi
21658
21659 if test "$ENABLED_OPENSSLEXTRA" = "yes"
21660 then
21661   AM_CFLAGS="-DOPENSSL_EXTRA $AM_CFLAGS"
21662 fi
21663
21664 if test "$ENABLED_OPENSSLEXTRA" = "yes" && test "$ENABLED_SMALL" = "yes"
21665 then
21666     { { echo "$as_me:$LINENO: error: cannot enable small and opensslExtra, only one or the other." >&5
21667 echo "$as_me: error: cannot enable small and opensslExtra, only one or the other." >&2;}
21668    { (exit 1); exit 1; }; }
21669 fi
21670
21671
21672 # IPv6 Test Apps
21673 # Check whether --enable-ipv6 was given.
21674 if test "${enable_ipv6+set}" = set; then
21675   enableval=$enable_ipv6;  ENABLED_IPV6=$enableval
21676 else
21677    ENABLED_IPV6=no
21678
21679 fi
21680
21681
21682 if test "$ENABLED_IPV6" = "yes"
21683 then
21684     AM_CFLAGS="$AM_CFLAGS -DTEST_IPV6"
21685 fi
21686
21687
21688 # Fortress build
21689 # Check whether --enable-fortress was given.
21690 if test "${enable_fortress+set}" = set; then
21691   enableval=$enable_fortress;  ENABLED_FORTRESS=$enableval
21692 else
21693    ENABLED_FORTRESS=no
21694
21695 fi
21696
21697
21698 if test "$ENABLED_FORTRESS" = "yes"
21699 then
21700     AM_CFLAGS="$AM_CFLAGS -DFORTRESS -DOPENSSL_EXTRA -DCYASSL_DES_ECB -DCYASSL_AES_COUNTER -DCYASSL_AES_DIRECT -DCYASSL_DER_LOAD -DCYASSL_SHA512 -DCYASSL_SHA384 -DCYASSL_KEY_GEN"
21701 fi
21702
21703
21704 # ssl bump build
21705 # Check whether --enable-bump was given.
21706 if test "${enable_bump+set}" = set; then
21707   enableval=$enable_bump;  ENABLED_BUMP=$enableval
21708 else
21709    ENABLED_BUMP=no
21710
21711 fi
21712
21713
21714 if test "$ENABLED_BUMP" = "yes"
21715 then
21716     AM_CFLAGS="$AM_CFLAGS -DLARGE_STATIC_BUFFERS -DCYASSL_CERT_GEN -DCYASSL_KEY_GEN -DHUGE_SESSION_CACHE -DOPENSSL_EXTRA -DFP_MAX_BITS=8192 -DCYASSL_DER_LOAD -DCYASSL_ALT_NAMES -DCYASSL_TEST_CERT"
21717 fi
21718
21719 # fastmath
21720 # Check whether --enable-fastmath was given.
21721 if test "${enable_fastmath+set}" = set; then
21722   enableval=$enable_fastmath;  ENABLED_FASTMATH=$enableval
21723 else
21724    ENABLED_FASTMATH=no
21725
21726 fi
21727
21728
21729 if test "x$ENABLED_FASTMATH" = "xyes"
21730 then
21731     AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
21732 fi
21733
21734
21735 # fast HUGE math
21736 # Check whether --enable-fasthugemath was given.
21737 if test "${enable_fasthugemath+set}" = set; then
21738   enableval=$enable_fasthugemath;  ENABLED_FASTHUGEMATH=$enableval
21739 else
21740    ENABLED_FASTHUGEMATH=no
21741
21742 fi
21743
21744
21745 if test "$ENABLED_BUMP" = "yes"
21746 then
21747     ENABLED_FASTHUGEMATH="yes"
21748 fi
21749
21750 if test "$ENABLED_FASTHUGEMATH" = "yes"
21751 then
21752     ENABLED_FASTMATH="yes"
21753     AM_CFLAGS="$AM_CFLAGS -DUSE_FAST_MATH"
21754 fi
21755
21756  if test "x$ENABLED_FASTMATH" = "xyes"; then
21757   BUILD_FASTMATH_TRUE=
21758   BUILD_FASTMATH_FALSE='#'
21759 else
21760   BUILD_FASTMATH_TRUE='#'
21761   BUILD_FASTMATH_FALSE=
21762 fi
21763
21764
21765
21766 # big cache
21767 # Check whether --enable-bigcache was given.
21768 if test "${enable_bigcache+set}" = set; then
21769   enableval=$enable_bigcache;  ENABLED_BIGCACHE=$enableval
21770 else
21771    ENABLED_BIGCACHE=no
21772
21773 fi
21774
21775
21776 if test "$ENABLED_BIGCACHE" = "yes"
21777 then
21778     AM_CFLAGS="$AM_CFLAGS -DBIG_SESSION_CACHE"
21779 fi
21780
21781
21782 # HUGE cache
21783 # Check whether --enable-hugecache was given.
21784 if test "${enable_hugecache+set}" = set; then
21785   enableval=$enable_hugecache;  ENABLED_HUGECACHE=$enableval
21786 else
21787    ENABLED_HUGECACHE=no
21788
21789 fi
21790
21791
21792 if test "$ENABLED_HUGECACHE" = "yes"
21793 then
21794     AM_CFLAGS="$AM_CFLAGS -DHUGE_SESSION_CACHE"
21795 fi
21796
21797
21798 # SMALL cache
21799 # Check whether --enable-smallcache was given.
21800 if test "${enable_smallcache+set}" = set; then
21801   enableval=$enable_smallcache;  ENABLED_SMALLCACHE=$enableval
21802 else
21803    ENABLED_SMALLCACHE=no
21804
21805 fi
21806
21807
21808 if test "$ENABLED_SMALLCACHE" = "yes"
21809 then
21810     AM_CFLAGS="$AM_CFLAGS -DSMALL_SESSION_CACHE"
21811 fi
21812
21813
21814 # SNIFFER
21815 # Check whether --enable-sniffer was given.
21816 if test "${enable_sniffer+set}" = set; then
21817   enableval=$enable_sniffer;  ENABLED_SNIFFER=$enableval
21818 else
21819    ENABLED_SNIFFER=no
21820
21821 fi
21822
21823
21824 if test "$ENABLED_SNIFFER" = "yes"
21825 then
21826     AM_CFLAGS="$AM_CFLAGS -DCYASSL_SNIFFER -DOPENSSL_EXTRA"
21827 fi
21828
21829  if test "x$ENABLED_SNIFFER" = "xyes"; then
21830   BUILD_SNIFFER_TRUE=
21831   BUILD_SNIFFER_FALSE='#'
21832 else
21833   BUILD_SNIFFER_TRUE='#'
21834   BUILD_SNIFFER_FALSE=
21835 fi
21836
21837
21838 # AES-GCM
21839 # Check whether --enable-aesgcm was given.
21840 if test "${enable_aesgcm+set}" = set; then
21841   enableval=$enable_aesgcm;  ENABLED_AESGCM=$enableval
21842 else
21843    ENABLED_AESGCM=no
21844
21845 fi
21846
21847
21848 if test "$ENABLED_AESGCM" = "word32"
21849 then
21850     AM_CFLAGS="$AM_CFLAGS -DGCM_WORD32"
21851     ENABLED_AESGCM=yes
21852 fi
21853
21854 if test "$ENABLED_AESGCM" = "small"
21855 then
21856     AM_CFLAGS="$AM_CFLAGS -DGCM_SMALL"
21857     ENABLED_AESGCM=yes
21858 fi
21859
21860 if test "$ENABLED_AESGCM" = "table"
21861 then
21862     AM_CFLAGS="$AM_CFLAGS -DGCM_TABLE"
21863     ENABLED_AESGCM=yes
21864 fi
21865
21866 if test "$ENABLED_AESGCM" = "yes"
21867 then
21868     AM_CFLAGS="$AM_CFLAGS -DHAVE_AESGCM -DCYASSL_SHA384 -DCYASSL_SHA512"
21869 fi
21870
21871  if test "x$ENABLED_AESGCM" = "xyes"; then
21872   BUILD_AESGCM_TRUE=
21873   BUILD_AESGCM_FALSE='#'
21874 else
21875   BUILD_AESGCM_TRUE='#'
21876   BUILD_AESGCM_FALSE=
21877 fi
21878
21879
21880 # AES-NI
21881 # Check whether --enable-aesni was given.
21882 if test "${enable_aesni+set}" = set; then
21883   enableval=$enable_aesni;  ENABLED_AESNI=$enableval
21884 else
21885    ENABLED_AESNI=no
21886
21887 fi
21888
21889
21890 if test "$ENABLED_AESNI" = "yes"
21891 then
21892     AM_CFLAGS="$AM_CFLAGS -DCYASSL_AESNI"
21893     if test "$GCC" = "yes"
21894     then
21895         # GCC needs these flags, icc doesn't
21896         AM_CFLAGS="$AM_CFLAGS -maes -msse4"
21897     fi
21898 fi
21899
21900  if test "x$ENABLED_AESNI" = "xyes"; then
21901   BUILD_AESNI_TRUE=
21902   BUILD_AESNI_FALSE='#'
21903 else
21904   BUILD_AESNI_TRUE='#'
21905   BUILD_AESNI_FALSE=
21906 fi
21907
21908
21909
21910 # MD2
21911 # Check whether --enable-md2 was given.
21912 if test "${enable_md2+set}" = set; then
21913   enableval=$enable_md2;  ENABLED_MD2=$enableval
21914 else
21915    ENABLED_MD2=no
21916
21917 fi
21918
21919
21920 if test "$ENABLED_BUMP" = "yes"
21921 then
21922     ENABLED_MD2="yes"
21923 fi
21924
21925 if test "$ENABLED_MD2" = "yes"
21926 then
21927     AM_CFLAGS="$AM_CFLAGS -DCYASSL_MD2"
21928 fi
21929
21930  if test "x$ENABLED_MD2" = "xyes"; then
21931   BUILD_MD2_TRUE=
21932   BUILD_MD2_FALSE='#'
21933 else
21934   BUILD_MD2_TRUE='#'
21935   BUILD_MD2_FALSE=
21936 fi
21937
21938
21939
21940 # RIPEMD
21941 # Check whether --enable-ripemd was given.
21942 if test "${enable_ripemd+set}" = set; then
21943   enableval=$enable_ripemd;  ENABLED_RIPEMD=$enableval
21944 else
21945    ENABLED_RIPEMD=no
21946
21947 fi
21948
21949
21950 if test "$ENABLED_RIPEMD" = "yes"
21951 then
21952     AM_CFLAGS="$AM_CFLAGS -DCYASSL_RIPEMD"
21953 fi
21954
21955  if test "x$ENABLED_RIPEMD" = "xyes"; then
21956   BUILD_RIPEMD_TRUE=
21957   BUILD_RIPEMD_FALSE='#'
21958 else
21959   BUILD_RIPEMD_TRUE='#'
21960   BUILD_RIPEMD_FALSE=
21961 fi
21962
21963
21964
21965 # SHA512
21966 # Check whether --enable-sha512 was given.
21967 if test "${enable_sha512+set}" = set; then
21968   enableval=$enable_sha512;  ENABLED_SHA512=$enableval
21969 else
21970    ENABLED_SHA512=no
21971
21972 fi
21973
21974
21975 if test "$ENABLED_SHA512" = "yes"
21976 then
21977     AM_CFLAGS="$AM_CFLAGS -DCYASSL_SHA512"
21978 fi
21979
21980 if test "$ENABLED_FORTRESS" = "yes"
21981 then
21982     ENABLED_SHA512="yes"
21983 fi
21984
21985 if test "$ENABLED_AESGCM" = "yes"
21986 then
21987     ENABLED_SHA512="yes"
21988 fi
21989
21990
21991  if test "x$ENABLED_SHA512" = "xyes"; then
21992   BUILD_SHA512_TRUE=
21993   BUILD_SHA512_FALSE='#'
21994 else
21995   BUILD_SHA512_TRUE='#'
21996   BUILD_SHA512_FALSE=
21997 fi
21998
21999
22000
22001 # SESSION CERTS
22002 # Check whether --enable-sessioncerts was given.
22003 if test "${enable_sessioncerts+set}" = set; then
22004   enableval=$enable_sessioncerts;  ENABLED_SESSIONCERTS=$enableval
22005 else
22006    ENABLED_SESSIONCERTS=no
22007
22008 fi
22009
22010
22011 if test "$ENABLED_SESSIONCERTS" = "yes"
22012 then
22013     AM_CFLAGS="$AM_CFLAGS -DSESSION_CERTS"
22014 fi
22015
22016
22017 # KEY GENERATION
22018 # Check whether --enable-keygen was given.
22019 if test "${enable_keygen+set}" = set; then
22020   enableval=$enable_keygen;  ENABLED_KEYGEN=$enableval
22021 else
22022    ENABLED_KEYGEN=no
22023
22024 fi
22025
22026
22027 if test "$ENABLED_KEYGEN" = "yes"
22028 then
22029     AM_CFLAGS="$AM_CFLAGS -DCYASSL_KEY_GEN"
22030 fi
22031
22032
22033 # CERT GENERATION
22034 # Check whether --enable-certgen was given.
22035 if test "${enable_certgen+set}" = set; then
22036   enableval=$enable_certgen;  ENABLED_CERTGEN=$enableval
22037 else
22038    ENABLED_CERTGEN=no
22039
22040 fi
22041
22042
22043 if test "$ENABLED_CERTGEN" = "yes"
22044 then
22045     AM_CFLAGS="$AM_CFLAGS -DCYASSL_CERT_GEN"
22046 fi
22047
22048
22049 # HC128
22050 # Check whether --enable-hc128 was given.
22051 if test "${enable_hc128+set}" = set; then
22052   enableval=$enable_hc128;  ENABLED_HC128=$enableval
22053 else
22054    ENABLED_HC128=no
22055
22056 fi
22057
22058
22059 if test "$ENABLED_HC128" = "no"
22060 then
22061     AM_CFLAGS="$AM_CFLAGS -DNO_HC128"
22062 else
22063     AM_CFLAGS="$AM_CFLAGS -DHAVE_HC128"
22064 fi
22065
22066  if test "x$ENABLED_HC128" = "xyes"; then
22067   BUILD_HC128_TRUE=
22068   BUILD_HC128_FALSE='#'
22069 else
22070   BUILD_HC128_TRUE='#'
22071   BUILD_HC128_FALSE=
22072 fi
22073
22074
22075
22076 # PSK
22077 # Check whether --enable-psk was given.
22078 if test "${enable_psk+set}" = set; then
22079   enableval=$enable_psk;  ENABLED_PSK=$enableval
22080 else
22081    ENABLED_PSK=no
22082
22083 fi
22084
22085
22086 if test "$ENABLED_PSK" = "no"
22087 then
22088     AM_CFLAGS="$AM_CFLAGS -DNO_PSK"
22089 fi
22090
22091
22092 # Web Server Build
22093 # Check whether --enable-webServer was given.
22094 if test "${enable_webServer+set}" = set; then
22095   enableval=$enable_webServer;  ENABLED_WEBSERVER=$enableval
22096 else
22097    ENABLED_WEBSERVER=no
22098
22099 fi
22100
22101
22102 if test "$ENABLED_WEBSERVER" = "yes"
22103 then
22104     AM_CFLAGS="$AM_CFLAGS -DHAVE_WEBSERVER"
22105 fi
22106
22107
22108 # No Filesystem Build
22109 # Check whether --enable-noFilesystem was given.
22110 if test "${enable_noFilesystem+set}" = set; then
22111   enableval=$enable_noFilesystem;  ENABLED_NOFILESYSTEM=$enableval
22112 else
22113    ENABLED_NOFILESYSTEM=no
22114
22115 fi
22116
22117
22118 if test "$ENABLED_NOFILESYSTEM" = "yes"
22119 then
22120     AM_CFLAGS="$AM_CFLAGS -DNO_FILESYSTEM"
22121 fi
22122
22123
22124 # No inline Build
22125 # Check whether --enable-noInline was given.
22126 if test "${enable_noInline+set}" = set; then
22127   enableval=$enable_noInline;  ENABLED_NOINLINE=$enableval
22128 else
22129    ENABLED_NOINLINE=no
22130
22131 fi
22132
22133
22134 if test "$ENABLED_NOINLINE" = "yes"
22135 then
22136     AM_CFLAGS="$AM_CFLAGS -DNO_INLINE"
22137 fi
22138
22139  if test "x$ENABLED_NOINLINE" = "xyes"; then
22140   BUILD_NOINLINE_TRUE=
22141   BUILD_NOINLINE_FALSE='#'
22142 else
22143   BUILD_NOINLINE_TRUE='#'
22144   BUILD_NOINLINE_FALSE=
22145 fi
22146
22147
22148
22149 # ECC
22150 # Check whether --enable-ecc was given.
22151 if test "${enable_ecc+set}" = set; then
22152   enableval=$enable_ecc;  ENABLED_ECC=$enableval
22153 else
22154    ENABLED_ECC=no
22155
22156 fi
22157
22158
22159 if test "$ENABLED_ECC" = "yes"
22160 then
22161     AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC"
22162 fi
22163
22164  if test "x$ENABLED_ECC" = "xyes"; then
22165   BUILD_ECC_TRUE=
22166   BUILD_ECC_FALSE='#'
22167 else
22168   BUILD_ECC_TRUE='#'
22169   BUILD_ECC_FALSE=
22170 fi
22171
22172
22173
22174 if test "$ENABLED_ECC" = "yes" && test "$ENABLED_SMALL" = "yes"
22175 then
22176     { { echo "$as_me:$LINENO: error: cannot enable ecc and small, ecc requires TLS which small turns off." >&5
22177 echo "$as_me: error: cannot enable ecc and small, ecc requires TLS which small turns off." >&2;}
22178    { (exit 1); exit 1; }; }
22179 fi
22180
22181
22182 # OCSP
22183 # Check whether --enable-ocsp was given.
22184 if test "${enable_ocsp+set}" = set; then
22185   enableval=$enable_ocsp;  ENABLED_OCSP=$enableval
22186 else
22187    ENABLED_OCSP=no
22188 fi
22189
22190
22191 if test "$ENABLED_OCSP" = "yes"
22192 then
22193     AM_CFLAGS="$AM_CFLAGS -DHAVE_OCSP"
22194 fi
22195
22196  if test "x$ENABLED_OCSP" = "xyes"; then
22197   BUILD_OCSP_TRUE=
22198   BUILD_OCSP_FALSE='#'
22199 else
22200   BUILD_OCSP_TRUE='#'
22201   BUILD_OCSP_FALSE=
22202 fi
22203
22204
22205
22206 # CRL
22207 # Check whether --enable-crl was given.
22208 if test "${enable_crl+set}" = set; then
22209   enableval=$enable_crl;  ENABLED_CRL=$enableval
22210 else
22211    ENABLED_CRL=no
22212 fi
22213
22214
22215 if test "$ENABLED_CRL" = "yes"
22216 then
22217     AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL"
22218 fi
22219
22220  if test "x$ENABLED_CRL" = "xyes"; then
22221   BUILD_CRL_TRUE=
22222   BUILD_CRL_FALSE='#'
22223 else
22224   BUILD_CRL_TRUE='#'
22225   BUILD_CRL_FALSE=
22226 fi
22227
22228
22229
22230 # CRL Monitor
22231 # Check whether --enable-crl-monitor was given.
22232 if test "${enable_crl_monitor+set}" = set; then
22233   enableval=$enable_crl_monitor;  ENABLED_CRL_MONITOR=$enableval
22234 else
22235    ENABLED_CRL_MONITOR=no
22236 fi
22237
22238
22239 if test "$ENABLED_CRL_MONITOR" = "yes"
22240 then
22241     AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_MONITOR"
22242 fi
22243
22244  if test "x$ENABLED_CRL_MONITOR" = "xyes"; then
22245   BUILD_CRL_MONITOR_TRUE=
22246   BUILD_CRL_MONITOR_FALSE='#'
22247 else
22248   BUILD_CRL_MONITOR_TRUE='#'
22249   BUILD_CRL_MONITOR_FALSE=
22250 fi
22251
22252
22253
22254 # NTRU
22255 ntruHome=`pwd`/NTRU_algorithm
22256 ntruInclude=$ntruHome/cryptolib
22257 ntruLib=$ntruHome
22258 # Check whether --enable-ntru was given.
22259 if test "${enable_ntru+set}" = set; then
22260   enableval=$enable_ntru;  ENABLED_NTRU=$enableval
22261 else
22262    ENABLED_NTRU=no
22263
22264 fi
22265
22266
22267 if test "$ENABLED_NTRU" = "yes"
22268 then
22269     AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU -I$ntruInclude"
22270     AM_LDFLAGS="$AM_LDFLAGS -L$ntruLib"
22271     LIBS="$LIBS -lntru_encrypt"
22272 fi
22273
22274  if test "x$ENABLED_NTRU" = "xyes"; then
22275   BUILD_NTRU_TRUE=
22276   BUILD_NTRU_FALSE='#'
22277 else
22278   BUILD_NTRU_TRUE='#'
22279   BUILD_NTRU_FALSE=
22280 fi
22281
22282
22283 if test "$ENABLED_NTRU" = "yes" && test "$ENABLED_SMALL" = "yes"
22284 then
22285     { { echo "$as_me:$LINENO: error: cannot enable ntru and small, ntru requires TLS which small turns off." >&5
22286 echo "$as_me: error: cannot enable ntru and small, ntru requires TLS which small turns off." >&2;}
22287    { (exit 1); exit 1; }; }
22288 fi
22289
22290
22291 # Test certs, use internal cert functions for extra testing
22292 # Check whether --enable-testcert was given.
22293 if test "${enable_testcert+set}" = set; then
22294   enableval=$enable_testcert;  ENABLED_TESTCERT=$enableval
22295 else
22296    ENABLED_TESTCERT=no
22297
22298 fi
22299
22300
22301 if test "$ENABLED_TESTCERT" = "yes"
22302 then
22303     AM_CFLAGS="$AM_CFLAGS -DCYASSL_TEST_CERT"
22304 fi
22305
22306
22307 # LIBZ
22308 trylibzdir=""
22309
22310 # Check whether --with-libz was given.
22311 if test "${with_libz+set}" = set; then
22312   withval=$with_libz;
22313         { echo "$as_me:$LINENO: checking for libz" >&5
22314 echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
22315         CPPFLAGS="$CPPFLAGS -DHAVE_LIBZ"
22316         LIBS="$LIBS -lz"
22317
22318         cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h.  */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h.  */
22324 #include <zlib.h>
22325 int
22326 main ()
22327 {
22328  deflateInit(0, 8);
22329   ;
22330   return 0;
22331 }
22332 _ACEOF
22333 rm -f conftest.$ac_objext conftest$ac_exeext
22334 if { (ac_try="$ac_link"
22335 case "(($ac_try" in
22336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337   *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340   (eval "$ac_link") 2>conftest.er1
22341   ac_status=$?
22342   grep -v '^ *+' conftest.er1 >conftest.err
22343   rm -f conftest.er1
22344   cat conftest.err >&5
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } && {
22347          test -z "$ac_c_werror_flag" ||
22348          test ! -s conftest.err
22349        } && test -s conftest$ac_exeext &&
22350        $as_test_x conftest$ac_exeext; then
22351    libz_linked=yes
22352 else
22353   echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.$ac_ext >&5
22355
22356          libz_linked=no
22357 fi
22358
22359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22360       conftest$ac_exeext conftest.$ac_ext
22361
22362         if test "x$libz_linked" == "xno" ; then
22363             if test "x$withval" != "xno" ; then
22364                 trylibzdir=$withval
22365             fi
22366             if test "x$withval" == "xyes" ; then
22367                 trylibzdir="/usr"
22368             fi
22369
22370             AM_LDFLAGS="$AM_LDFLAGS -L$trylibzdir/lib"
22371             CPPFLAGS="$CPPFLAGS -I$trylibzdir/include"
22372
22373             cat >conftest.$ac_ext <<_ACEOF
22374 /* confdefs.h.  */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h.  */
22379 #include <zlib.h>
22380 int
22381 main ()
22382 {
22383  deflateInit(0, 8);
22384   ;
22385   return 0;
22386 }
22387 _ACEOF
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392   *) ac_try_echo=$ac_try;;
22393 esac
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395   (eval "$ac_link") 2>conftest.er1
22396   ac_status=$?
22397   grep -v '^ *+' conftest.er1 >conftest.err
22398   rm -f conftest.er1
22399   cat conftest.err >&5
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); } && {
22402          test -z "$ac_c_werror_flag" ||
22403          test ! -s conftest.err
22404        } && test -s conftest$ac_exeext &&
22405        $as_test_x conftest$ac_exeext; then
22406    libz_linked=yes
22407 else
22408   echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411          libz_linked=no
22412 fi
22413
22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22415       conftest$ac_exeext conftest.$ac_ext
22416
22417             if test "x$libz_linked" == "xno" ; then
22418                 { { echo "$as_me:$LINENO: error: libz isn't found.
22419                 If it's already installed, specify its path using --with-libz=/dir/" >&5
22420 echo "$as_me: error: libz isn't found.
22421                 If it's already installed, specify its path using --with-libz=/dir/" >&2;}
22422    { (exit 1); exit 1; }; }
22423             fi
22424             { echo "$as_me:$LINENO: result: yes" >&5
22425 echo "${ECHO_T}yes" >&6; }
22426         else
22427             { echo "$as_me:$LINENO: result: yes" >&5
22428 echo "${ECHO_T}yes" >&6; }
22429         fi
22430
22431
22432
22433 fi
22434
22435
22436
22437 # OPTIMIZE FLAGS
22438 if test "$GCC" = "yes"
22439 then
22440     AM_CFLAGS="$AM_CFLAGS -Wall -Wno-unused"
22441     if test "$ENABLED_DEBUG" = "no"
22442     then
22443         if test "$ENABLED_FASTMATH" = "yes"
22444         then
22445             AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_FAST_CFLAGS"
22446             if test "$ENABLED_FASTHUGEMATH" = "yes"
22447             then
22448                 AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_HUGE_CFLAGS"
22449             fi
22450         else
22451             AM_CFLAGS="$AM_CFLAGS $OPTIMIZE_CFLAGS"
22452         fi
22453     fi
22454 fi
22455
22456
22457
22458 ac_ext=c
22459 ac_cpp='$CPP $CPPFLAGS'
22460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22463
22464 ax_pthread_ok=no
22465
22466 # We used to check for pthread.h first, but this fails if pthread.h
22467 # requires special compiler flags (e.g. on True64 or Sequent).
22468 # It gets checked for in the link test anyway.
22469
22470 # First of all, check if the user has set any of the PTHREAD_LIBS,
22471 # etcetera environment variables, and if threads linking works using
22472 # them:
22473 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22474         save_CFLAGS="$CFLAGS"
22475         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22476         save_LIBS="$LIBS"
22477         LIBS="$PTHREAD_LIBS $LIBS"
22478         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22479 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22480         cat >conftest.$ac_ext <<_ACEOF
22481 /* confdefs.h.  */
22482 _ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h.  */
22486
22487 /* Override any GCC internal prototype to avoid an error.
22488    Use char because int might match the return type of a GCC
22489    builtin and then its argument prototype would still apply.  */
22490 #ifdef __cplusplus
22491 extern "C"
22492 #endif
22493 char pthread_join ();
22494 int
22495 main ()
22496 {
22497 return pthread_join ();
22498   ;
22499   return 0;
22500 }
22501 _ACEOF
22502 rm -f conftest.$ac_objext conftest$ac_exeext
22503 if { (ac_try="$ac_link"
22504 case "(($ac_try" in
22505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506   *) ac_try_echo=$ac_try;;
22507 esac
22508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22509   (eval "$ac_link") 2>conftest.er1
22510   ac_status=$?
22511   grep -v '^ *+' conftest.er1 >conftest.err
22512   rm -f conftest.er1
22513   cat conftest.err >&5
22514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515   (exit $ac_status); } && {
22516          test -z "$ac_c_werror_flag" ||
22517          test ! -s conftest.err
22518        } && test -s conftest$ac_exeext &&
22519        $as_test_x conftest$ac_exeext; then
22520   ax_pthread_ok=yes
22521 else
22522   echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22524
22525
22526 fi
22527
22528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22529       conftest$ac_exeext conftest.$ac_ext
22530         { echo "$as_me:$LINENO: result: $ax_pthread_ok" >&5
22531 echo "${ECHO_T}$ax_pthread_ok" >&6; }
22532         if test x"$ax_pthread_ok" = xno; then
22533                 PTHREAD_LIBS=""
22534                 PTHREAD_CFLAGS=""
22535         fi
22536         LIBS="$save_LIBS"
22537         CFLAGS="$save_CFLAGS"
22538 fi
22539
22540 # We must check for the threads library under a number of different
22541 # names; the ordering is very important because some systems
22542 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22543 # libraries is broken (non-POSIX).
22544
22545 # Create a list of thread flags to try.  Items starting with a "-" are
22546 # C compiler flags, and other items are library names, except for "none"
22547 # which indicates that we try without any flags at all, and "pthread-config"
22548 # which is a program returning the flags for the Pth emulation library.
22549
22550 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22551
22552 # The ordering *is* (sometimes) important.  Some notes on the
22553 # individual items follow:
22554
22555 # pthreads: AIX (must check this before -lpthread)
22556 # none: in case threads are in libc; should be tried before -Kthread and
22557 #       other compiler flags to prevent continual compiler warnings
22558 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22559 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22560 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22561 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22562 # -pthreads: Solaris/gcc
22563 # -mthreads: Mingw32/gcc, Lynx/gcc
22564 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22565 #      doesn't hurt to check since this sometimes defines pthreads too;
22566 #      also defines -D_REENTRANT)
22567 #      ... -mt is also the pthreads flag for HP/aCC
22568 # pthread: Linux, etcetera
22569 # --thread-safe: KAI C++
22570 # pthread-config: use pthread-config program (for GNU Pth library)
22571
22572 case "${host_cpu}-${host_os}" in
22573         *solaris*)
22574
22575         # On Solaris (at least, for some versions), libc contains stubbed
22576         # (non-functional) versions of the pthreads routines, so link-based
22577         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
22578         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22579         # a function called by this macro, so we could check for that, but
22580         # who knows whether they'll stub that too in a future libc.)  So,
22581         # we'll just look for -pthreads and -lpthread first:
22582
22583         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
22584         ;;
22585
22586         *-darwin*)
22587         ax_pthread_flags="-pthread $ax_pthread_flags"
22588         ;;
22589 esac
22590
22591 if test x"$ax_pthread_ok" = xno; then
22592 for flag in $ax_pthread_flags; do
22593
22594         case $flag in
22595                 none)
22596                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22597 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22598                 ;;
22599
22600                 -*)
22601                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22602 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22603                 PTHREAD_CFLAGS="$flag"
22604                 ;;
22605
22606                 pthread-config)
22607                 # Extract the first word of "pthread-config", so it can be a program name with args.
22608 set dummy pthread-config; ac_word=$2
22609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22611 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then
22612   echo $ECHO_N "(cached) $ECHO_C" >&6
22613 else
22614   if test -n "$ax_pthread_config"; then
22615   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
22616 else
22617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22618 for as_dir in $PATH
22619 do
22620   IFS=$as_save_IFS
22621   test -z "$as_dir" && as_dir=.
22622   for ac_exec_ext in '' $ac_executable_extensions; do
22623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22624     ac_cv_prog_ax_pthread_config="yes"
22625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22626     break 2
22627   fi
22628 done
22629 done
22630 IFS=$as_save_IFS
22631
22632   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
22633 fi
22634 fi
22635 ax_pthread_config=$ac_cv_prog_ax_pthread_config
22636 if test -n "$ax_pthread_config"; then
22637   { echo "$as_me:$LINENO: result: $ax_pthread_config" >&5
22638 echo "${ECHO_T}$ax_pthread_config" >&6; }
22639 else
22640   { echo "$as_me:$LINENO: result: no" >&5
22641 echo "${ECHO_T}no" >&6; }
22642 fi
22643
22644
22645                 if test x"$ax_pthread_config" = xno; then continue; fi
22646                 PTHREAD_CFLAGS="`pthread-config --cflags`"
22647                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22648                 ;;
22649
22650                 *)
22651                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22652 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22653                 PTHREAD_LIBS="-l$flag"
22654                 ;;
22655         esac
22656
22657         save_LIBS="$LIBS"
22658         save_CFLAGS="$CFLAGS"
22659         LIBS="$PTHREAD_LIBS $LIBS"
22660         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22661
22662         # Check for various functions.  We must include pthread.h,
22663         # since some functions may be macros.  (On the Sequent, we
22664         # need a special flag -Kthread to make this header compile.)
22665         # We check for pthread_join because it is in -lpthread on IRIX
22666         # while pthread_create is in libc.  We check for pthread_attr_init
22667         # due to DEC craziness with -lpthreads.  We check for
22668         # pthread_cleanup_push because it is one of the few pthread
22669         # functions on Solaris that doesn't have a non-functional libc stub.
22670         # We try pthread_create on general principles.
22671         cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h.  */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h.  */
22677 #include <pthread.h>
22678                         static void routine(void *a) { a = 0; }
22679                         static void *start_routine(void *a) { return a; }
22680 int
22681 main ()
22682 {
22683 pthread_t th; pthread_attr_t attr;
22684                         pthread_create(&th, 0, start_routine, 0);
22685                         pthread_join(th, 0);
22686                         pthread_attr_init(&attr);
22687                         pthread_cleanup_push(routine, 0);
22688                         pthread_cleanup_pop(0) /* ; */
22689   ;
22690   return 0;
22691 }
22692 _ACEOF
22693 rm -f conftest.$ac_objext conftest$ac_exeext
22694 if { (ac_try="$ac_link"
22695 case "(($ac_try" in
22696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22697   *) ac_try_echo=$ac_try;;
22698 esac
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700   (eval "$ac_link") 2>conftest.er1
22701   ac_status=$?
22702   grep -v '^ *+' conftest.er1 >conftest.err
22703   rm -f conftest.er1
22704   cat conftest.err >&5
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); } && {
22707          test -z "$ac_c_werror_flag" ||
22708          test ! -s conftest.err
22709        } && test -s conftest$ac_exeext &&
22710        $as_test_x conftest$ac_exeext; then
22711   ax_pthread_ok=yes
22712 else
22713   echo "$as_me: failed program was:" >&5
22714 sed 's/^/| /' conftest.$ac_ext >&5
22715
22716
22717 fi
22718
22719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22720       conftest$ac_exeext conftest.$ac_ext
22721
22722         LIBS="$save_LIBS"
22723         CFLAGS="$save_CFLAGS"
22724
22725         { echo "$as_me:$LINENO: result: $ax_pthread_ok" >&5
22726 echo "${ECHO_T}$ax_pthread_ok" >&6; }
22727         if test "x$ax_pthread_ok" = xyes; then
22728                 break;
22729         fi
22730
22731         PTHREAD_LIBS=""
22732         PTHREAD_CFLAGS=""
22733 done
22734 fi
22735
22736 # Various other checks:
22737 if test "x$ax_pthread_ok" = xyes; then
22738         save_LIBS="$LIBS"
22739         LIBS="$PTHREAD_LIBS $LIBS"
22740         save_CFLAGS="$CFLAGS"
22741         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22742
22743         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22744         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22745 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22746         attr_name=unknown
22747         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22748             cat >conftest.$ac_ext <<_ACEOF
22749 /* confdefs.h.  */
22750 _ACEOF
22751 cat confdefs.h >>conftest.$ac_ext
22752 cat >>conftest.$ac_ext <<_ACEOF
22753 /* end confdefs.h.  */
22754 #include <pthread.h>
22755 int
22756 main ()
22757 {
22758 int attr = $attr; return attr /* ; */
22759   ;
22760   return 0;
22761 }
22762 _ACEOF
22763 rm -f conftest.$ac_objext conftest$ac_exeext
22764 if { (ac_try="$ac_link"
22765 case "(($ac_try" in
22766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767   *) ac_try_echo=$ac_try;;
22768 esac
22769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770   (eval "$ac_link") 2>conftest.er1
22771   ac_status=$?
22772   grep -v '^ *+' conftest.er1 >conftest.err
22773   rm -f conftest.er1
22774   cat conftest.err >&5
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); } && {
22777          test -z "$ac_c_werror_flag" ||
22778          test ! -s conftest.err
22779        } && test -s conftest$ac_exeext &&
22780        $as_test_x conftest$ac_exeext; then
22781   attr_name=$attr; break
22782 else
22783   echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786
22787 fi
22788
22789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22790       conftest$ac_exeext conftest.$ac_ext
22791         done
22792         { echo "$as_me:$LINENO: result: $attr_name" >&5
22793 echo "${ECHO_T}$attr_name" >&6; }
22794         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22795
22796 cat >>confdefs.h <<_ACEOF
22797 #define PTHREAD_CREATE_JOINABLE $attr_name
22798 _ACEOF
22799
22800         fi
22801
22802         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22803 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22804         flag=no
22805         case "${host_cpu}-${host_os}" in
22806             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22807             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22808         esac
22809         { echo "$as_me:$LINENO: result: ${flag}" >&5
22810 echo "${ECHO_T}${flag}" >&6; }
22811         if test "x$flag" != xno; then
22812             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22813         fi
22814
22815         { echo "$as_me:$LINENO: checking for PTHREAD_PRIO_INHERIT" >&5
22816 echo $ECHO_N "checking for PTHREAD_PRIO_INHERIT... $ECHO_C" >&6; }
22817 if test "${ax_cv_PTHREAD_PRIO_INHERIT+set}" = set; then
22818   echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820
22821                 cat >conftest.$ac_ext <<_ACEOF
22822
22823                     /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828 #include <pthread.h>
22829 int
22830 main ()
22831 {
22832 int i = PTHREAD_PRIO_INHERIT;
22833   ;
22834   return 0;
22835 }
22836 _ACEOF
22837 rm -f conftest.$ac_objext conftest$ac_exeext
22838 if { (ac_try="$ac_link"
22839 case "(($ac_try" in
22840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841   *) ac_try_echo=$ac_try;;
22842 esac
22843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22844   (eval "$ac_link") 2>conftest.er1
22845   ac_status=$?
22846   grep -v '^ *+' conftest.er1 >conftest.err
22847   rm -f conftest.er1
22848   cat conftest.err >&5
22849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850   (exit $ac_status); } && {
22851          test -z "$ac_c_werror_flag" ||
22852          test ! -s conftest.err
22853        } && test -s conftest$ac_exeext &&
22854        $as_test_x conftest$ac_exeext; then
22855   ax_cv_PTHREAD_PRIO_INHERIT=yes
22856 else
22857   echo "$as_me: failed program was:" >&5
22858 sed 's/^/| /' conftest.$ac_ext >&5
22859
22860         ax_cv_PTHREAD_PRIO_INHERIT=no
22861 fi
22862
22863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22864       conftest$ac_exeext conftest.$ac_ext
22865
22866 fi
22867 { echo "$as_me:$LINENO: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
22868 echo "${ECHO_T}$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
22869         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then
22870
22871 cat >>confdefs.h <<\_ACEOF
22872 #define HAVE_PTHREAD_PRIO_INHERIT 1
22873 _ACEOF
22874
22875 fi
22876
22877
22878         LIBS="$save_LIBS"
22879         CFLAGS="$save_CFLAGS"
22880
22881         # More AIX lossage: must compile with xlc_r or cc_r
22882         if test x"$GCC" != xyes; then
22883           for ac_prog in xlc_r cc_r
22884 do
22885   # Extract the first word of "$ac_prog", so it can be a program name with args.
22886 set dummy $ac_prog; ac_word=$2
22887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22889 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22890   echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892   if test -n "$PTHREAD_CC"; then
22893   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22894 else
22895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22896 for as_dir in $PATH
22897 do
22898   IFS=$as_save_IFS
22899   test -z "$as_dir" && as_dir=.
22900   for ac_exec_ext in '' $ac_executable_extensions; do
22901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22902     ac_cv_prog_PTHREAD_CC="$ac_prog"
22903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22904     break 2
22905   fi
22906 done
22907 done
22908 IFS=$as_save_IFS
22909
22910 fi
22911 fi
22912 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22913 if test -n "$PTHREAD_CC"; then
22914   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22915 echo "${ECHO_T}$PTHREAD_CC" >&6; }
22916 else
22917   { echo "$as_me:$LINENO: result: no" >&5
22918 echo "${ECHO_T}no" >&6; }
22919 fi
22920
22921
22922   test -n "$PTHREAD_CC" && break
22923 done
22924 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22925
22926         else
22927           PTHREAD_CC=$CC
22928         fi
22929 else
22930         PTHREAD_CC="$CC"
22931 fi
22932
22933
22934
22935
22936
22937 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22938 if test x"$ax_pthread_ok" = xyes; then
22939
22940
22941 cat >>confdefs.h <<\_ACEOF
22942 #define HAVE_PTHREAD 1
22943 _ACEOF
22944
22945
22946         :
22947 else
22948         ax_pthread_ok=no
22949
22950
22951 cat >>confdefs.h <<\_ACEOF
22952 #define HAVE_PTHREAD 0
22953 _ACEOF
22954
22955
22956 fi
22957 ac_ext=c
22958 ac_cpp='$CPP $CPPFLAGS'
22959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22962
22963
22964
22965
22966         { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
22967 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
22968 if test "${ac_cv_search_gethostbyname+set}" = set; then
22969   echo $ECHO_N "(cached) $ECHO_C" >&6
22970 else
22971   ac_func_search_save_LIBS=$LIBS
22972 cat >conftest.$ac_ext <<_ACEOF
22973 /* confdefs.h.  */
22974 _ACEOF
22975 cat confdefs.h >>conftest.$ac_ext
22976 cat >>conftest.$ac_ext <<_ACEOF
22977 /* end confdefs.h.  */
22978
22979 /* Override any GCC internal prototype to avoid an error.
22980    Use char because int might match the return type of a GCC
22981    builtin and then its argument prototype would still apply.  */
22982 #ifdef __cplusplus
22983 extern "C"
22984 #endif
22985 char gethostbyname ();
22986 int
22987 main ()
22988 {
22989 return gethostbyname ();
22990   ;
22991   return 0;
22992 }
22993 _ACEOF
22994 for ac_lib in '' nsl; do
22995   if test -z "$ac_lib"; then
22996     ac_res="none required"
22997   else
22998     ac_res=-l$ac_lib
22999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23000   fi
23001   rm -f conftest.$ac_objext conftest$ac_exeext
23002 if { (ac_try="$ac_link"
23003 case "(($ac_try" in
23004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005   *) ac_try_echo=$ac_try;;
23006 esac
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008   (eval "$ac_link") 2>conftest.er1
23009   ac_status=$?
23010   grep -v '^ *+' conftest.er1 >conftest.err
23011   rm -f conftest.er1
23012   cat conftest.err >&5
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); } && {
23015          test -z "$ac_c_werror_flag" ||
23016          test ! -s conftest.err
23017        } && test -s conftest$ac_exeext &&
23018        $as_test_x conftest$ac_exeext; then
23019   ac_cv_search_gethostbyname=$ac_res
23020 else
23021   echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23023
23024
23025 fi
23026
23027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23028       conftest$ac_exeext
23029   if test "${ac_cv_search_gethostbyname+set}" = set; then
23030   break
23031 fi
23032 done
23033 if test "${ac_cv_search_gethostbyname+set}" = set; then
23034   :
23035 else
23036   ac_cv_search_gethostbyname=no
23037 fi
23038 rm conftest.$ac_ext
23039 LIBS=$ac_func_search_save_LIBS
23040 fi
23041 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
23042 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
23043 ac_res=$ac_cv_search_gethostbyname
23044 if test "$ac_res" != no; then
23045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23046
23047 fi
23048
23049         { echo "$as_me:$LINENO: checking for library containing socket" >&5
23050 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
23051 if test "${ac_cv_search_socket+set}" = set; then
23052   echo $ECHO_N "(cached) $ECHO_C" >&6
23053 else
23054   ac_func_search_save_LIBS=$LIBS
23055 cat >conftest.$ac_ext <<_ACEOF
23056 /* confdefs.h.  */
23057 _ACEOF
23058 cat confdefs.h >>conftest.$ac_ext
23059 cat >>conftest.$ac_ext <<_ACEOF
23060 /* end confdefs.h.  */
23061
23062 /* Override any GCC internal prototype to avoid an error.
23063    Use char because int might match the return type of a GCC
23064    builtin and then its argument prototype would still apply.  */
23065 #ifdef __cplusplus
23066 extern "C"
23067 #endif
23068 char socket ();
23069 int
23070 main ()
23071 {
23072 return socket ();
23073   ;
23074   return 0;
23075 }
23076 _ACEOF
23077 for ac_lib in '' socket; do
23078   if test -z "$ac_lib"; then
23079     ac_res="none required"
23080   else
23081     ac_res=-l$ac_lib
23082     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23083   fi
23084   rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (ac_try="$ac_link"
23086 case "(($ac_try" in
23087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088   *) ac_try_echo=$ac_try;;
23089 esac
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091   (eval "$ac_link") 2>conftest.er1
23092   ac_status=$?
23093   grep -v '^ *+' conftest.er1 >conftest.err
23094   rm -f conftest.er1
23095   cat conftest.err >&5
23096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097   (exit $ac_status); } && {
23098          test -z "$ac_c_werror_flag" ||
23099          test ! -s conftest.err
23100        } && test -s conftest$ac_exeext &&
23101        $as_test_x conftest$ac_exeext; then
23102   ac_cv_search_socket=$ac_res
23103 else
23104   echo "$as_me: failed program was:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23106
23107
23108 fi
23109
23110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23111       conftest$ac_exeext
23112   if test "${ac_cv_search_socket+set}" = set; then
23113   break
23114 fi
23115 done
23116 if test "${ac_cv_search_socket+set}" = set; then
23117   :
23118 else
23119   ac_cv_search_socket=no
23120 fi
23121 rm conftest.$ac_ext
23122 LIBS=$ac_func_search_save_LIBS
23123 fi
23124 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
23125 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
23126 ac_res=$ac_cv_search_socket
23127 if test "$ac_res" != no; then
23128   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23129
23130 else
23131
23132                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
23133 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
23134 if test "${ac_cv_lib_socket_socket+set}" = set; then
23135   echo $ECHO_N "(cached) $ECHO_C" >&6
23136 else
23137   ac_check_lib_save_LIBS=$LIBS
23138 LIBS="-lsocket -lnsl $LIBS"
23139 cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145
23146 /* Override any GCC internal prototype to avoid an error.
23147    Use char because int might match the return type of a GCC
23148    builtin and then its argument prototype would still apply.  */
23149 #ifdef __cplusplus
23150 extern "C"
23151 #endif
23152 char socket ();
23153 int
23154 main ()
23155 {
23156 return socket ();
23157   ;
23158   return 0;
23159 }
23160 _ACEOF
23161 rm -f conftest.$ac_objext conftest$ac_exeext
23162 if { (ac_try="$ac_link"
23163 case "(($ac_try" in
23164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165   *) ac_try_echo=$ac_try;;
23166 esac
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168   (eval "$ac_link") 2>conftest.er1
23169   ac_status=$?
23170   grep -v '^ *+' conftest.er1 >conftest.err
23171   rm -f conftest.er1
23172   cat conftest.err >&5
23173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174   (exit $ac_status); } && {
23175          test -z "$ac_c_werror_flag" ||
23176          test ! -s conftest.err
23177        } && test -s conftest$ac_exeext &&
23178        $as_test_x conftest$ac_exeext; then
23179   ac_cv_lib_socket_socket=yes
23180 else
23181   echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23183
23184         ac_cv_lib_socket_socket=no
23185 fi
23186
23187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23188       conftest$ac_exeext conftest.$ac_ext
23189 LIBS=$ac_check_lib_save_LIBS
23190 fi
23191 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
23192 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
23193 if test $ac_cv_lib_socket_socket = yes; then
23194   LIBS="-lsocket -lnsl $LIBS"
23195 fi
23196
23197 fi
23198
23199
23200
23201 GCCWARNINGS="-Wall -fno-strict-aliasing -W -Wfloat-equal -Wundef          \
23202   -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes                \
23203   -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment           \
23204   -Wformat=2 -Wwrite-strings -Wmissing-declarations -Wredundant-decls     \
23205   -Wnested-externs -Wbad-function-cast -Wswitch-enum -Winit-self          \
23206   -Wmissing-field-initializers -Wdeclaration-after-statement              \
23207   -Wold-style-definition -Waddress -Wmissing-noreturn -Wnormalized=id     \
23208   -Woverride-init -Wstrict-overflow=1 -Wextra -Wstack-protector -Wformat  \
23209   -Wformat-security -Wpointer-sign -Wshadow -Wswitch-default"
23210
23211 case "$host_os" in
23212   *linux*)
23213 GCCWARNINGS="$GCCWARNINGS -Warray-bounds"
23214   ;;
23215 esac
23216
23217 # Check whether --enable-gcc-lots-o-warnings was given.
23218 if test "${enable_gcc_lots_o_warnings+set}" = set; then
23219   enableval=$enable_gcc_lots_o_warnings; if test x$enableval = xyes; then
23220     AM_CFLAGS="$AM_CFLAGS $GCCWARNINGS"
23221 fi
23222 fi
23223
23224
23225 # Check whether --enable-gcc-hardening was given.
23226 if test "${enable_gcc_hardening+set}" = set; then
23227   enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
23228     AM_CFLAGS="$AM_CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
23229     AM_CFLAGS="$AM_CFLAGS -fwrapv -fPIE -Wstack-protector"
23230     AM_CFLAGS="$AM_CFLAGS --param ssp-buffer-size=1"
23231     LDFLAGS="$LDFLAGS -pie"
23232 fi
23233 fi
23234
23235
23236 # Check whether --enable-linker-hardening was given.
23237 if test "${enable_linker_hardening+set}" = set; then
23238   enableval=$enable_linker_hardening; if test x$enableval = xyes; then
23239     LDFLAGS="$LDFLAGS -z relro -z now"
23240 fi
23241 fi
23242
23243
23244
23245
23246   HEX_VERSION=`echo $VERSION | sed 's|\-a-z0-9*$||' | \
23247     awk -F. '{printf "0x%0.2d%0.3d%0.3d", $1, $2, $3}'`
23248
23249
23250 AM_CFLAGS="$AM_CFLAGS $CFLAG_VISIBILITY"
23251
23252
23253
23254 # FINAL
23255 ac_config_files="$ac_config_files stamp-h"
23256
23257 ac_config_files="$ac_config_files Makefile"
23258
23259 ac_config_files="$ac_config_files cyassl/version.h"
23260
23261 ac_config_files="$ac_config_files support/libcyassl.pc"
23262
23263
23264 cat >confcache <<\_ACEOF
23265 # This file is a shell script that caches the results of configure
23266 # tests run on this system so they can be shared between configure
23267 # scripts and configure runs, see configure's option --config-cache.
23268 # It is not useful on other systems.  If it contains results you don't
23269 # want to keep, you may remove or edit it.
23270 #
23271 # config.status only pays attention to the cache file if you give it
23272 # the --recheck option to rerun configure.
23273 #
23274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23276 # following values.
23277
23278 _ACEOF
23279
23280 # The following way of writing the cache mishandles newlines in values,
23281 # but we know of no workaround that is simple, portable, and efficient.
23282 # So, we kill variables containing newlines.
23283 # Ultrix sh set writes to stderr and can't be redirected directly,
23284 # and sets the high bit in the cache file unless we assign to the vars.
23285 (
23286   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23287     eval ac_val=\$$ac_var
23288     case $ac_val in #(
23289     *${as_nl}*)
23290       case $ac_var in #(
23291       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23292 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23293       esac
23294       case $ac_var in #(
23295       _ | IFS | as_nl) ;; #(
23296       *) $as_unset $ac_var ;;
23297       esac ;;
23298     esac
23299   done
23300
23301   (set) 2>&1 |
23302     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23303     *${as_nl}ac_space=\ *)
23304       # `set' does not quote correctly, so add quotes (double-quote
23305       # substitution turns \\\\ into \\, and sed turns \\ into \).
23306       sed -n \
23307         "s/'/'\\\\''/g;
23308           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23309       ;; #(
23310     *)
23311       # `set' quotes correctly as required by POSIX, so do not add quotes.
23312       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23313       ;;
23314     esac |
23315     sort
23316 ) |
23317   sed '
23318      /^ac_cv_env_/b end
23319      t clear
23320      :clear
23321      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23322      t end
23323      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23324      :end' >>confcache
23325 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23326   if test -w "$cache_file"; then
23327     test "x$cache_file" != "x/dev/null" &&
23328       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23329 echo "$as_me: updating cache $cache_file" >&6;}
23330     cat confcache >$cache_file
23331   else
23332     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23333 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23334   fi
23335 fi
23336 rm -f confcache
23337
23338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23339 # Let make expand exec_prefix.
23340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23341
23342 DEFS=-DHAVE_CONFIG_H
23343
23344 ac_libobjs=
23345 ac_ltlibobjs=
23346 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23347   # 1. Remove the extension, and $U if already installed.
23348   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23349   ac_i=`echo "$ac_i" | sed "$ac_script"`
23350   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23351   #    will be set to the directory where LIBOBJS objects are built.
23352   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23353   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23354 done
23355 LIBOBJS=$ac_libobjs
23356
23357 LTLIBOBJS=$ac_ltlibobjs
23358
23359
23360 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23361   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23362 Usually this means the macro was only invoked conditionally." >&5
23363 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23364 Usually this means the macro was only invoked conditionally." >&2;}
23365    { (exit 1); exit 1; }; }
23366 fi
23367 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23368   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23369 Usually this means the macro was only invoked conditionally." >&5
23370 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23371 Usually this means the macro was only invoked conditionally." >&2;}
23372    { (exit 1); exit 1; }; }
23373 fi
23374 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23375   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23376 Usually this means the macro was only invoked conditionally." >&5
23377 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23378 Usually this means the macro was only invoked conditionally." >&2;}
23379    { (exit 1); exit 1; }; }
23380 fi
23381 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23382   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23383 Usually this means the macro was only invoked conditionally." >&5
23384 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23385 Usually this means the macro was only invoked conditionally." >&2;}
23386    { (exit 1); exit 1; }; }
23387 fi
23388 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23389   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23390 Usually this means the macro was only invoked conditionally." >&5
23391 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23392 Usually this means the macro was only invoked conditionally." >&2;}
23393    { (exit 1); exit 1; }; }
23394 fi
23395 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
23396   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
23397 Usually this means the macro was only invoked conditionally." >&5
23398 echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
23399 Usually this means the macro was only invoked conditionally." >&2;}
23400    { (exit 1); exit 1; }; }
23401 fi
23402 if test -z "${BUILD_FASTMATH_TRUE}" && test -z "${BUILD_FASTMATH_FALSE}"; then
23403   { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTMATH\" was never defined.
23404 Usually this means the macro was only invoked conditionally." >&5
23405 echo "$as_me: error: conditional \"BUILD_FASTMATH\" was never defined.
23406 Usually this means the macro was only invoked conditionally." >&2;}
23407    { (exit 1); exit 1; }; }
23408 fi
23409 if test -z "${BUILD_SNIFFER_TRUE}" && test -z "${BUILD_SNIFFER_FALSE}"; then
23410   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SNIFFER\" was never defined.
23411 Usually this means the macro was only invoked conditionally." >&5
23412 echo "$as_me: error: conditional \"BUILD_SNIFFER\" was never defined.
23413 Usually this means the macro was only invoked conditionally." >&2;}
23414    { (exit 1); exit 1; }; }
23415 fi
23416 if test -z "${BUILD_AESGCM_TRUE}" && test -z "${BUILD_AESGCM_FALSE}"; then
23417   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AESGCM\" was never defined.
23418 Usually this means the macro was only invoked conditionally." >&5
23419 echo "$as_me: error: conditional \"BUILD_AESGCM\" was never defined.
23420 Usually this means the macro was only invoked conditionally." >&2;}
23421    { (exit 1); exit 1; }; }
23422 fi
23423 if test -z "${BUILD_AESNI_TRUE}" && test -z "${BUILD_AESNI_FALSE}"; then
23424   { { echo "$as_me:$LINENO: error: conditional \"BUILD_AESNI\" was never defined.
23425 Usually this means the macro was only invoked conditionally." >&5
23426 echo "$as_me: error: conditional \"BUILD_AESNI\" was never defined.
23427 Usually this means the macro was only invoked conditionally." >&2;}
23428    { (exit 1); exit 1; }; }
23429 fi
23430 if test -z "${BUILD_MD2_TRUE}" && test -z "${BUILD_MD2_FALSE}"; then
23431   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MD2\" was never defined.
23432 Usually this means the macro was only invoked conditionally." >&5
23433 echo "$as_me: error: conditional \"BUILD_MD2\" was never defined.
23434 Usually this means the macro was only invoked conditionally." >&2;}
23435    { (exit 1); exit 1; }; }
23436 fi
23437 if test -z "${BUILD_RIPEMD_TRUE}" && test -z "${BUILD_RIPEMD_FALSE}"; then
23438   { { echo "$as_me:$LINENO: error: conditional \"BUILD_RIPEMD\" was never defined.
23439 Usually this means the macro was only invoked conditionally." >&5
23440 echo "$as_me: error: conditional \"BUILD_RIPEMD\" was never defined.
23441 Usually this means the macro was only invoked conditionally." >&2;}
23442    { (exit 1); exit 1; }; }
23443 fi
23444 if test -z "${BUILD_SHA512_TRUE}" && test -z "${BUILD_SHA512_FALSE}"; then
23445   { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHA512\" was never defined.
23446 Usually this means the macro was only invoked conditionally." >&5
23447 echo "$as_me: error: conditional \"BUILD_SHA512\" was never defined.
23448 Usually this means the macro was only invoked conditionally." >&2;}
23449    { (exit 1); exit 1; }; }
23450 fi
23451 if test -z "${BUILD_HC128_TRUE}" && test -z "${BUILD_HC128_FALSE}"; then
23452   { { echo "$as_me:$LINENO: error: conditional \"BUILD_HC128\" was never defined.
23453 Usually this means the macro was only invoked conditionally." >&5
23454 echo "$as_me: error: conditional \"BUILD_HC128\" was never defined.
23455 Usually this means the macro was only invoked conditionally." >&2;}
23456    { (exit 1); exit 1; }; }
23457 fi
23458 if test -z "${BUILD_NOINLINE_TRUE}" && test -z "${BUILD_NOINLINE_FALSE}"; then
23459   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NOINLINE\" was never defined.
23460 Usually this means the macro was only invoked conditionally." >&5
23461 echo "$as_me: error: conditional \"BUILD_NOINLINE\" was never defined.
23462 Usually this means the macro was only invoked conditionally." >&2;}
23463    { (exit 1); exit 1; }; }
23464 fi
23465 if test -z "${BUILD_ECC_TRUE}" && test -z "${BUILD_ECC_FALSE}"; then
23466   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECC\" was never defined.
23467 Usually this means the macro was only invoked conditionally." >&5
23468 echo "$as_me: error: conditional \"BUILD_ECC\" was never defined.
23469 Usually this means the macro was only invoked conditionally." >&2;}
23470    { (exit 1); exit 1; }; }
23471 fi
23472 if test -z "${BUILD_OCSP_TRUE}" && test -z "${BUILD_OCSP_FALSE}"; then
23473   { { echo "$as_me:$LINENO: error: conditional \"BUILD_OCSP\" was never defined.
23474 Usually this means the macro was only invoked conditionally." >&5
23475 echo "$as_me: error: conditional \"BUILD_OCSP\" was never defined.
23476 Usually this means the macro was only invoked conditionally." >&2;}
23477    { (exit 1); exit 1; }; }
23478 fi
23479 if test -z "${BUILD_CRL_TRUE}" && test -z "${BUILD_CRL_FALSE}"; then
23480   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CRL\" was never defined.
23481 Usually this means the macro was only invoked conditionally." >&5
23482 echo "$as_me: error: conditional \"BUILD_CRL\" was never defined.
23483 Usually this means the macro was only invoked conditionally." >&2;}
23484    { (exit 1); exit 1; }; }
23485 fi
23486 if test -z "${BUILD_CRL_MONITOR_TRUE}" && test -z "${BUILD_CRL_MONITOR_FALSE}"; then
23487   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CRL_MONITOR\" was never defined.
23488 Usually this means the macro was only invoked conditionally." >&5
23489 echo "$as_me: error: conditional \"BUILD_CRL_MONITOR\" was never defined.
23490 Usually this means the macro was only invoked conditionally." >&2;}
23491    { (exit 1); exit 1; }; }
23492 fi
23493 if test -z "${BUILD_NTRU_TRUE}" && test -z "${BUILD_NTRU_FALSE}"; then
23494   { { echo "$as_me:$LINENO: error: conditional \"BUILD_NTRU\" was never defined.
23495 Usually this means the macro was only invoked conditionally." >&5
23496 echo "$as_me: error: conditional \"BUILD_NTRU\" was never defined.
23497 Usually this means the macro was only invoked conditionally." >&2;}
23498    { (exit 1); exit 1; }; }
23499 fi
23500
23501 : ${CONFIG_STATUS=./config.status}
23502 ac_clean_files_save=$ac_clean_files
23503 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23504 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23505 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23506 cat >$CONFIG_STATUS <<_ACEOF
23507 #! $SHELL
23508 # Generated by $as_me.
23509 # Run this file to recreate the current configuration.
23510 # Compiler output produced by configure, useful for debugging
23511 # configure, is in config.log if it exists.
23512
23513 debug=false
23514 ac_cs_recheck=false
23515 ac_cs_silent=false
23516 SHELL=\${CONFIG_SHELL-$SHELL}
23517 _ACEOF
23518
23519 cat >>$CONFIG_STATUS <<\_ACEOF
23520 ## --------------------- ##
23521 ## M4sh Initialization.  ##
23522 ## --------------------- ##
23523
23524 # Be more Bourne compatible
23525 DUALCASE=1; export DUALCASE # for MKS sh
23526 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23527   emulate sh
23528   NULLCMD=:
23529   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23530   # is contrary to our usage.  Disable this feature.
23531   alias -g '${1+"$@"}'='"$@"'
23532   setopt NO_GLOB_SUBST
23533 else
23534   case `(set -o) 2>/dev/null` in
23535   *posix*) set -o posix ;;
23536 esac
23537
23538 fi
23539
23540
23541
23542
23543 # PATH needs CR
23544 # Avoid depending upon Character Ranges.
23545 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23546 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23547 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23548 as_cr_digits='0123456789'
23549 as_cr_alnum=$as_cr_Letters$as_cr_digits
23550
23551 # The user is always right.
23552 if test "${PATH_SEPARATOR+set}" != set; then
23553   echo "#! /bin/sh" >conf$$.sh
23554   echo  "exit 0"   >>conf$$.sh
23555   chmod +x conf$$.sh
23556   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23557     PATH_SEPARATOR=';'
23558   else
23559     PATH_SEPARATOR=:
23560   fi
23561   rm -f conf$$.sh
23562 fi
23563
23564 # Support unset when possible.
23565 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23566   as_unset=unset
23567 else
23568   as_unset=false
23569 fi
23570
23571
23572 # IFS
23573 # We need space, tab and new line, in precisely that order.  Quoting is
23574 # there to prevent editors from complaining about space-tab.
23575 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23576 # splitting by setting IFS to empty value.)
23577 as_nl='
23578 '
23579 IFS=" ""        $as_nl"
23580
23581 # Find who we are.  Look in the path if we contain no directory separator.
23582 case $0 in
23583   *[\\/]* ) as_myself=$0 ;;
23584   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23585 for as_dir in $PATH
23586 do
23587   IFS=$as_save_IFS
23588   test -z "$as_dir" && as_dir=.
23589   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23590 done
23591 IFS=$as_save_IFS
23592
23593      ;;
23594 esac
23595 # We did not find ourselves, most probably we were run as `sh COMMAND'
23596 # in which case we are not to be found in the path.
23597 if test "x$as_myself" = x; then
23598   as_myself=$0
23599 fi
23600 if test ! -f "$as_myself"; then
23601   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23602   { (exit 1); exit 1; }
23603 fi
23604
23605 # Work around bugs in pre-3.0 UWIN ksh.
23606 for as_var in ENV MAIL MAILPATH
23607 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23608 done
23609 PS1='$ '
23610 PS2='> '
23611 PS4='+ '
23612
23613 # NLS nuisances.
23614 for as_var in \
23615   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23616   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23617   LC_TELEPHONE LC_TIME
23618 do
23619   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23620     eval $as_var=C; export $as_var
23621   else
23622     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23623   fi
23624 done
23625
23626 # Required to use basename.
23627 if expr a : '\(a\)' >/dev/null 2>&1 &&
23628    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23629   as_expr=expr
23630 else
23631   as_expr=false
23632 fi
23633
23634 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23635   as_basename=basename
23636 else
23637   as_basename=false
23638 fi
23639
23640
23641 # Name of the executable.
23642 as_me=`$as_basename -- "$0" ||
23643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23644          X"$0" : 'X\(//\)$' \| \
23645          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23646 echo X/"$0" |
23647     sed '/^.*\/\([^/][^/]*\)\/*$/{
23648             s//\1/
23649             q
23650           }
23651           /^X\/\(\/\/\)$/{
23652             s//\1/
23653             q
23654           }
23655           /^X\/\(\/\).*/{
23656             s//\1/
23657             q
23658           }
23659           s/.*/./; q'`
23660
23661 # CDPATH.
23662 $as_unset CDPATH
23663
23664
23665
23666   as_lineno_1=$LINENO
23667   as_lineno_2=$LINENO
23668   test "x$as_lineno_1" != "x$as_lineno_2" &&
23669   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23670
23671   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23672   # uniformly replaced by the line number.  The first 'sed' inserts a
23673   # line-number line after each line using $LINENO; the second 'sed'
23674   # does the real work.  The second script uses 'N' to pair each
23675   # line-number line with the line containing $LINENO, and appends
23676   # trailing '-' during substitution so that $LINENO is not a special
23677   # case at line end.
23678   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23679   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23680   # E. McMahon (1931-1989) for sed's syntax.  :-)
23681   sed -n '
23682     p
23683     /[$]LINENO/=
23684   ' <$as_myself |
23685     sed '
23686       s/[$]LINENO.*/&-/
23687       t lineno
23688       b
23689       :lineno
23690       N
23691       :loop
23692       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23693       t loop
23694       s/-\n.*//
23695     ' >$as_me.lineno &&
23696   chmod +x "$as_me.lineno" ||
23697     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23698    { (exit 1); exit 1; }; }
23699
23700   # Don't try to exec as it changes $[0], causing all sort of problems
23701   # (the dirname of $[0] is not the place where we might find the
23702   # original and so on.  Autoconf is especially sensitive to this).
23703   . "./$as_me.lineno"
23704   # Exit status is that of the last command.
23705   exit
23706 }
23707
23708
23709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23710   as_dirname=dirname
23711 else
23712   as_dirname=false
23713 fi
23714
23715 ECHO_C= ECHO_N= ECHO_T=
23716 case `echo -n x` in
23717 -n*)
23718   case `echo 'x\c'` in
23719   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23720   *)   ECHO_C='\c';;
23721   esac;;
23722 *)
23723   ECHO_N='-n';;
23724 esac
23725
23726 if expr a : '\(a\)' >/dev/null 2>&1 &&
23727    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23728   as_expr=expr
23729 else
23730   as_expr=false
23731 fi
23732
23733 rm -f conf$$ conf$$.exe conf$$.file
23734 if test -d conf$$.dir; then
23735   rm -f conf$$.dir/conf$$.file
23736 else
23737   rm -f conf$$.dir
23738   mkdir conf$$.dir
23739 fi
23740 echo >conf$$.file
23741 if ln -s conf$$.file conf$$ 2>/dev/null; then
23742   as_ln_s='ln -s'
23743   # ... but there are two gotchas:
23744   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23745   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23746   # In both cases, we have to default to `cp -p'.
23747   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23748     as_ln_s='cp -p'
23749 elif ln conf$$.file conf$$ 2>/dev/null; then
23750   as_ln_s=ln
23751 else
23752   as_ln_s='cp -p'
23753 fi
23754 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23755 rmdir conf$$.dir 2>/dev/null
23756
23757 if mkdir -p . 2>/dev/null; then
23758   as_mkdir_p=:
23759 else
23760   test -d ./-p && rmdir ./-p
23761   as_mkdir_p=false
23762 fi
23763
23764 if test -x / >/dev/null 2>&1; then
23765   as_test_x='test -x'
23766 else
23767   if ls -dL / >/dev/null 2>&1; then
23768     as_ls_L_option=L
23769   else
23770     as_ls_L_option=
23771   fi
23772   as_test_x='
23773     eval sh -c '\''
23774       if test -d "$1"; then
23775         test -d "$1/.";
23776       else
23777         case $1 in
23778         -*)set "./$1";;
23779         esac;
23780         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23781         ???[sx]*):;;*)false;;esac;fi
23782     '\'' sh
23783   '
23784 fi
23785 as_executable_p=$as_test_x
23786
23787 # Sed expression to map a string onto a valid CPP name.
23788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23789
23790 # Sed expression to map a string onto a valid variable name.
23791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23792
23793
23794 exec 6>&1
23795
23796 # Save the log message, to keep $[0] and so on meaningful, and to
23797 # report actual input values of CONFIG_FILES etc. instead of their
23798 # values after options handling.
23799 ac_log="
23800 This file was extended by cyassl $as_me 2.3.0, which was
23801 generated by GNU Autoconf 2.61.  Invocation command line was
23802
23803   CONFIG_FILES    = $CONFIG_FILES
23804   CONFIG_HEADERS  = $CONFIG_HEADERS
23805   CONFIG_LINKS    = $CONFIG_LINKS
23806   CONFIG_COMMANDS = $CONFIG_COMMANDS
23807   $ $0 $@
23808
23809 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23810 "
23811
23812 _ACEOF
23813
23814 cat >>$CONFIG_STATUS <<_ACEOF
23815 # Files that config.status was made for.
23816 config_files="$ac_config_files"
23817 config_headers="$ac_config_headers"
23818 config_commands="$ac_config_commands"
23819
23820 _ACEOF
23821
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 ac_cs_usage="\
23824 \`$as_me' instantiates files from templates according to the
23825 current configuration.
23826
23827 Usage: $0 [OPTIONS] [FILE]...
23828
23829   -h, --help       print this help, then exit
23830   -V, --version    print version number and configuration settings, then exit
23831   -q, --quiet      do not print progress messages
23832   -d, --debug      don't remove temporary files
23833       --recheck    update $as_me by reconfiguring in the same conditions
23834   --file=FILE[:TEMPLATE]
23835                    instantiate the configuration file FILE
23836   --header=FILE[:TEMPLATE]
23837                    instantiate the configuration header FILE
23838
23839 Configuration files:
23840 $config_files
23841
23842 Configuration headers:
23843 $config_headers
23844
23845 Configuration commands:
23846 $config_commands
23847
23848 Report bugs to <bug-autoconf@gnu.org>."
23849
23850 _ACEOF
23851 cat >>$CONFIG_STATUS <<_ACEOF
23852 ac_cs_version="\\
23853 cyassl config.status 2.3.0
23854 configured by $0, generated by GNU Autoconf 2.61,
23855   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23856
23857 Copyright (C) 2006 Free Software Foundation, Inc.
23858 This config.status script is free software; the Free Software Foundation
23859 gives unlimited permission to copy, distribute and modify it."
23860
23861 ac_pwd='$ac_pwd'
23862 srcdir='$srcdir'
23863 INSTALL='$INSTALL'
23864 MKDIR_P='$MKDIR_P'
23865 _ACEOF
23866
23867 cat >>$CONFIG_STATUS <<\_ACEOF
23868 # If no file are specified by the user, then we need to provide default
23869 # value.  By we need to know if files were specified by the user.
23870 ac_need_defaults=:
23871 while test $# != 0
23872 do
23873   case $1 in
23874   --*=*)
23875     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23876     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23877     ac_shift=:
23878     ;;
23879   *)
23880     ac_option=$1
23881     ac_optarg=$2
23882     ac_shift=shift
23883     ;;
23884   esac
23885
23886   case $ac_option in
23887   # Handling of the options.
23888   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23889     ac_cs_recheck=: ;;
23890   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23891     echo "$ac_cs_version"; exit ;;
23892   --debug | --debu | --deb | --de | --d | -d )
23893     debug=: ;;
23894   --file | --fil | --fi | --f )
23895     $ac_shift
23896     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23897     ac_need_defaults=false;;
23898   --header | --heade | --head | --hea )
23899     $ac_shift
23900     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23901     ac_need_defaults=false;;
23902   --he | --h)
23903     # Conflict between --help and --header
23904     { echo "$as_me: error: ambiguous option: $1
23905 Try \`$0 --help' for more information." >&2
23906    { (exit 1); exit 1; }; };;
23907   --help | --hel | -h )
23908     echo "$ac_cs_usage"; exit ;;
23909   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23910   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23911     ac_cs_silent=: ;;
23912
23913   # This is an error.
23914   -*) { echo "$as_me: error: unrecognized option: $1
23915 Try \`$0 --help' for more information." >&2
23916    { (exit 1); exit 1; }; } ;;
23917
23918   *) ac_config_targets="$ac_config_targets $1"
23919      ac_need_defaults=false ;;
23920
23921   esac
23922   shift
23923 done
23924
23925 ac_configure_extra_args=
23926
23927 if $ac_cs_silent; then
23928   exec 6>/dev/null
23929   ac_configure_extra_args="$ac_configure_extra_args --silent"
23930 fi
23931
23932 _ACEOF
23933 cat >>$CONFIG_STATUS <<_ACEOF
23934 if \$ac_cs_recheck; then
23935   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23936   CONFIG_SHELL=$SHELL
23937   export CONFIG_SHELL
23938   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23939 fi
23940
23941 _ACEOF
23942 cat >>$CONFIG_STATUS <<\_ACEOF
23943 exec 5>>config.log
23944 {
23945   echo
23946   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23947 ## Running $as_me. ##
23948 _ASBOX
23949   echo "$ac_log"
23950 } >&5
23951
23952 _ACEOF
23953 cat >>$CONFIG_STATUS <<_ACEOF
23954 #
23955 # INIT-COMMANDS
23956 #
23957 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23958
23959
23960 # The HP-UX ksh and POSIX shell print the target directory to stdout
23961 # if CDPATH is set.
23962 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23963
23964 sed_quote_subst='$sed_quote_subst'
23965 double_quote_subst='$double_quote_subst'
23966 delay_variable_subst='$delay_variable_subst'
23967 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23968 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23969 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23970 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23971 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23972 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23973 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23974 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23975 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23976 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23977 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23978 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23979 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23980 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23981 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23982 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23983 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23984 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23985 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23986 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23987 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23988 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23989 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23990 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23991 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23992 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23993 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23994 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23995 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23996 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23997 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23998 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23999 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24000 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24001 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24002 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24003 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24004 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24005 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24006 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24007 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24008 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24009 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24010 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24011 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24012 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24013 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24014 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24015 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24016 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
24018 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24019 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24020 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24021 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24022 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24023 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24024 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24025 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24026 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24027 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24028 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24029 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24030 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24031 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24032 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24033 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24034 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24035 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24036 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24037 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24038 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24039 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24040 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24041 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24042 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24043 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24044 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24045 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24046 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24047 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24048 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24049 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
24050 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24051 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24052 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24053 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24054 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24055 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24056 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24057 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24058 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
24059 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24060 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24061 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24062 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24063 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24064 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24065 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24066 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24067 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24068 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24069 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24070 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24071 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24072 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24073 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24074 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24075 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24076 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24077 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24078 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24079 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24080 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24081 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24082 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
24083 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24084 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24085 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24086 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24087 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24088 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24089 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24090 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24091 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24092 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24093 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24094 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24095 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24096 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24097 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24098 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24099 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24100 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24101 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24102 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24103 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24104 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24105 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24106 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24107 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24108 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24109 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24110 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24111 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24112 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24113 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24114 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24115 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24116 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24117 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24118 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24119 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24120 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24121 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
24122 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24123 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24124 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24125 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24126 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24127 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24128 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24129 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24130 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
24131 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24132 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24133 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24134 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24135 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24136 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24137 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24138 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24139 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24140 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24141 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24142 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24143 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24144
24145 LTCC='$LTCC'
24146 LTCFLAGS='$LTCFLAGS'
24147 compiler='$compiler_DEFAULT'
24148
24149 # A function that is used when there is no print builtin or printf.
24150 func_fallback_echo ()
24151 {
24152   eval 'cat <<_LTECHO_EOF
24153 \$1
24154 _LTECHO_EOF'
24155 }
24156
24157 # Quote evaled strings.
24158 for var in AS \
24159 DLLTOOL \
24160 OBJDUMP \
24161 SHELL \
24162 ECHO \
24163 SED \
24164 GREP \
24165 EGREP \
24166 FGREP \
24167 LD \
24168 NM \
24169 LN_S \
24170 lt_SP2NL \
24171 lt_NL2SP \
24172 reload_flag \
24173 deplibs_check_method \
24174 file_magic_cmd \
24175 AR \
24176 AR_FLAGS \
24177 STRIP \
24178 RANLIB \
24179 CC \
24180 CFLAGS \
24181 compiler \
24182 lt_cv_sys_global_symbol_pipe \
24183 lt_cv_sys_global_symbol_to_cdecl \
24184 lt_cv_sys_global_symbol_to_c_name_address \
24185 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24186 lt_prog_compiler_no_builtin_flag \
24187 lt_prog_compiler_wl \
24188 lt_prog_compiler_pic \
24189 lt_prog_compiler_static \
24190 lt_cv_prog_compiler_c_o \
24191 need_locks \
24192 DSYMUTIL \
24193 NMEDIT \
24194 LIPO \
24195 OTOOL \
24196 OTOOL64 \
24197 shrext_cmds \
24198 export_dynamic_flag_spec \
24199 whole_archive_flag_spec \
24200 compiler_needs_object \
24201 with_gnu_ld \
24202 allow_undefined_flag \
24203 no_undefined_flag \
24204 hardcode_libdir_flag_spec \
24205 hardcode_libdir_flag_spec_ld \
24206 hardcode_libdir_separator \
24207 fix_srcfile_path \
24208 exclude_expsyms \
24209 include_expsyms \
24210 file_list_spec \
24211 variables_saved_for_relink \
24212 libname_spec \
24213 library_names_spec \
24214 soname_spec \
24215 install_override_mode \
24216 finish_eval \
24217 old_striplib \
24218 striplib \
24219 compiler_lib_search_dirs \
24220 predep_objects \
24221 postdep_objects \
24222 predeps \
24223 postdeps \
24224 compiler_lib_search_path \
24225 LD_CXX \
24226 reload_flag_CXX \
24227 compiler_CXX \
24228 lt_prog_compiler_no_builtin_flag_CXX \
24229 lt_prog_compiler_wl_CXX \
24230 lt_prog_compiler_pic_CXX \
24231 lt_prog_compiler_static_CXX \
24232 lt_cv_prog_compiler_c_o_CXX \
24233 export_dynamic_flag_spec_CXX \
24234 whole_archive_flag_spec_CXX \
24235 compiler_needs_object_CXX \
24236 with_gnu_ld_CXX \
24237 allow_undefined_flag_CXX \
24238 no_undefined_flag_CXX \
24239 hardcode_libdir_flag_spec_CXX \
24240 hardcode_libdir_flag_spec_ld_CXX \
24241 hardcode_libdir_separator_CXX \
24242 fix_srcfile_path_CXX \
24243 exclude_expsyms_CXX \
24244 include_expsyms_CXX \
24245 file_list_spec_CXX \
24246 compiler_lib_search_dirs_CXX \
24247 predep_objects_CXX \
24248 postdep_objects_CXX \
24249 predeps_CXX \
24250 postdeps_CXX \
24251 compiler_lib_search_path_CXX; do
24252     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24253     *[\\\\\\\`\\"\\\$]*)
24254       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
24255       ;;
24256     *)
24257       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24258       ;;
24259     esac
24260 done
24261
24262 # Double-quote double-evaled strings.
24263 for var in reload_cmds \
24264 old_postinstall_cmds \
24265 old_postuninstall_cmds \
24266 old_archive_cmds \
24267 extract_expsyms_cmds \
24268 old_archive_from_new_cmds \
24269 old_archive_from_expsyms_cmds \
24270 archive_cmds \
24271 archive_expsym_cmds \
24272 module_cmds \
24273 module_expsym_cmds \
24274 export_symbols_cmds \
24275 prelink_cmds \
24276 postinstall_cmds \
24277 postuninstall_cmds \
24278 finish_cmds \
24279 sys_lib_search_path_spec \
24280 sys_lib_dlsearch_path_spec \
24281 reload_cmds_CXX \
24282 old_archive_cmds_CXX \
24283 old_archive_from_new_cmds_CXX \
24284 old_archive_from_expsyms_cmds_CXX \
24285 archive_cmds_CXX \
24286 archive_expsym_cmds_CXX \
24287 module_cmds_CXX \
24288 module_expsym_cmds_CXX \
24289 export_symbols_cmds_CXX \
24290 prelink_cmds_CXX; do
24291     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24292     *[\\\\\\\`\\"\\\$]*)
24293       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24294       ;;
24295     *)
24296       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24297       ;;
24298     esac
24299 done
24300
24301 ac_aux_dir='$ac_aux_dir'
24302 xsi_shell='$xsi_shell'
24303 lt_shell_append='$lt_shell_append'
24304
24305 # See if we are running on zsh, and set the options which allow our
24306 # commands through without removal of \ escapes INIT.
24307 if test -n "\${ZSH_VERSION+set}" ; then
24308    setopt NO_GLOB_SUBST
24309 fi
24310
24311
24312     PACKAGE='$PACKAGE'
24313     VERSION='$VERSION'
24314     TIMESTAMP='$TIMESTAMP'
24315     RM='$RM'
24316     ofile='$ofile'
24317
24318
24319
24320
24321
24322
24323 _ACEOF
24324
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24326
24327 # Handling of arguments.
24328 for ac_config_target in $ac_config_targets
24329 do
24330   case $ac_config_target in
24331     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
24332     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24333     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24334     "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
24335     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24336     "cyassl/version.h") CONFIG_FILES="$CONFIG_FILES cyassl/version.h" ;;
24337     "support/libcyassl.pc") CONFIG_FILES="$CONFIG_FILES support/libcyassl.pc" ;;
24338
24339   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24340 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24341    { (exit 1); exit 1; }; };;
24342   esac
24343 done
24344
24345
24346 # If the user did not use the arguments to specify the items to instantiate,
24347 # then the envvar interface is used.  Set only those that are not.
24348 # We use the long form for the default assignment because of an extremely
24349 # bizarre bug on SunOS 4.1.3.
24350 if $ac_need_defaults; then
24351   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24352   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24353   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24354 fi
24355
24356 # Have a temporary directory for convenience.  Make it in the build tree
24357 # simply because there is no reason against having it here, and in addition,
24358 # creating and moving files from /tmp can sometimes cause problems.
24359 # Hook for its removal unless debugging.
24360 # Note that there is a small window in which the directory will not be cleaned:
24361 # after its creation but before its name has been assigned to `$tmp'.
24362 $debug ||
24363 {
24364   tmp=
24365   trap 'exit_status=$?
24366   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24367 ' 0
24368   trap '{ (exit 1); exit 1; }' 1 2 13 15
24369 }
24370 # Create a (secure) tmp directory for tmp files.
24371
24372 {
24373   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24374   test -n "$tmp" && test -d "$tmp"
24375 }  ||
24376 {
24377   tmp=./conf$$-$RANDOM
24378   (umask 077 && mkdir "$tmp")
24379 } ||
24380 {
24381    echo "$me: cannot create a temporary directory in ." >&2
24382    { (exit 1); exit 1; }
24383 }
24384
24385 #
24386 # Set up the sed scripts for CONFIG_FILES section.
24387 #
24388
24389 # No need to generate the scripts if there are no CONFIG_FILES.
24390 # This happens for instance when ./config.status config.h
24391 if test -n "$CONFIG_FILES"; then
24392
24393 _ACEOF
24394
24395
24396
24397 ac_delim='%!_!# '
24398 for ac_last_try in false false false false false :; do
24399   cat >conf$$subs.sed <<_ACEOF
24400 SHELL!$SHELL$ac_delim
24401 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24402 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24403 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24404 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24405 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24406 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24407 exec_prefix!$exec_prefix$ac_delim
24408 prefix!$prefix$ac_delim
24409 program_transform_name!$program_transform_name$ac_delim
24410 bindir!$bindir$ac_delim
24411 sbindir!$sbindir$ac_delim
24412 libexecdir!$libexecdir$ac_delim
24413 datarootdir!$datarootdir$ac_delim
24414 datadir!$datadir$ac_delim
24415 sysconfdir!$sysconfdir$ac_delim
24416 sharedstatedir!$sharedstatedir$ac_delim
24417 localstatedir!$localstatedir$ac_delim
24418 includedir!$includedir$ac_delim
24419 oldincludedir!$oldincludedir$ac_delim
24420 docdir!$docdir$ac_delim
24421 infodir!$infodir$ac_delim
24422 htmldir!$htmldir$ac_delim
24423 dvidir!$dvidir$ac_delim
24424 pdfdir!$pdfdir$ac_delim
24425 psdir!$psdir$ac_delim
24426 libdir!$libdir$ac_delim
24427 localedir!$localedir$ac_delim
24428 mandir!$mandir$ac_delim
24429 DEFS!$DEFS$ac_delim
24430 ECHO_C!$ECHO_C$ac_delim
24431 ECHO_N!$ECHO_N$ac_delim
24432 ECHO_T!$ECHO_T$ac_delim
24433 LIBS!$LIBS$ac_delim
24434 build_alias!$build_alias$ac_delim
24435 host_alias!$host_alias$ac_delim
24436 target_alias!$target_alias$ac_delim
24437 build!$build$ac_delim
24438 build_cpu!$build_cpu$ac_delim
24439 build_vendor!$build_vendor$ac_delim
24440 build_os!$build_os$ac_delim
24441 host!$host$ac_delim
24442 host_cpu!$host_cpu$ac_delim
24443 host_vendor!$host_vendor$ac_delim
24444 host_os!$host_os$ac_delim
24445 target!$target$ac_delim
24446 target_cpu!$target_cpu$ac_delim
24447 target_vendor!$target_vendor$ac_delim
24448 target_os!$target_os$ac_delim
24449 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24450 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24451 INSTALL_DATA!$INSTALL_DATA$ac_delim
24452 am__isrc!$am__isrc$ac_delim
24453 CYGPATH_W!$CYGPATH_W$ac_delim
24454 PACKAGE!$PACKAGE$ac_delim
24455 VERSION!$VERSION$ac_delim
24456 ACLOCAL!$ACLOCAL$ac_delim
24457 AUTOCONF!$AUTOCONF$ac_delim
24458 AUTOMAKE!$AUTOMAKE$ac_delim
24459 AUTOHEADER!$AUTOHEADER$ac_delim
24460 MAKEINFO!$MAKEINFO$ac_delim
24461 install_sh!$install_sh$ac_delim
24462 STRIP!$STRIP$ac_delim
24463 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24464 mkdir_p!$mkdir_p$ac_delim
24465 AWK!$AWK$ac_delim
24466 SET_MAKE!$SET_MAKE$ac_delim
24467 am__leading_dot!$am__leading_dot$ac_delim
24468 AMTAR!$AMTAR$ac_delim
24469 am__tar!$am__tar$ac_delim
24470 am__untar!$am__untar$ac_delim
24471 CYASSL_LIBRARY_VERSION!$CYASSL_LIBRARY_VERSION$ac_delim
24472 AS!$AS$ac_delim
24473 DLLTOOL!$DLLTOOL$ac_delim
24474 OBJDUMP!$OBJDUMP$ac_delim
24475 LIBTOOL!$LIBTOOL$ac_delim
24476 CC!$CC$ac_delim
24477 CFLAGS!$CFLAGS$ac_delim
24478 LDFLAGS!$LDFLAGS$ac_delim
24479 CPPFLAGS!$CPPFLAGS$ac_delim
24480 ac_ct_CC!$ac_ct_CC$ac_delim
24481 EXEEXT!$EXEEXT$ac_delim
24482 OBJEXT!$OBJEXT$ac_delim
24483 DEPDIR!$DEPDIR$ac_delim
24484 am__include!$am__include$ac_delim
24485 am__quote!$am__quote$ac_delim
24486 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24487 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24488 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24489 CCDEPMODE!$CCDEPMODE$ac_delim
24490 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24491 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24492 SED!$SED$ac_delim
24493 GREP!$GREP$ac_delim
24494 EGREP!$EGREP$ac_delim
24495 FGREP!$FGREP$ac_delim
24496 LD!$LD$ac_delim
24497 _ACEOF
24498
24499   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24500     break
24501   elif $ac_last_try; then
24502     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24503 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24504    { (exit 1); exit 1; }; }
24505   else
24506     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24507   fi
24508 done
24509
24510 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24511 if test -n "$ac_eof"; then
24512   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24513   ac_eof=`expr $ac_eof + 1`
24514 fi
24515
24516 cat >>$CONFIG_STATUS <<_ACEOF
24517 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24519 _ACEOF
24520 sed '
24521 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24522 s/^/s,@/; s/!/@,|#_!!_#|/
24523 :n
24524 t n
24525 s/'"$ac_delim"'$/,g/; t
24526 s/$/\\/; p
24527 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24528 ' >>$CONFIG_STATUS <conf$$subs.sed
24529 rm -f conf$$subs.sed
24530 cat >>$CONFIG_STATUS <<_ACEOF
24531 CEOF$ac_eof
24532 _ACEOF
24533
24534
24535 ac_delim='%!_!# '
24536 for ac_last_try in false false false false false :; do
24537   cat >conf$$subs.sed <<_ACEOF
24538 DUMPBIN!$DUMPBIN$ac_delim
24539 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
24540 NM!$NM$ac_delim
24541 LN_S!$LN_S$ac_delim
24542 AR!$AR$ac_delim
24543 RANLIB!$RANLIB$ac_delim
24544 DSYMUTIL!$DSYMUTIL$ac_delim
24545 NMEDIT!$NMEDIT$ac_delim
24546 LIPO!$LIPO$ac_delim
24547 OTOOL!$OTOOL$ac_delim
24548 OTOOL64!$OTOOL64$ac_delim
24549 CPP!$CPP$ac_delim
24550 CXX!$CXX$ac_delim
24551 CXXFLAGS!$CXXFLAGS$ac_delim
24552 ac_ct_CXX!$ac_ct_CXX$ac_delim
24553 CXXDEPMODE!$CXXDEPMODE$ac_delim
24554 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24555 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24556 CXXCPP!$CXXCPP$ac_delim
24557 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
24558 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
24559 LIBOBJS!$LIBOBJS$ac_delim
24560 CCAS!$CCAS$ac_delim
24561 CCASFLAGS!$CCASFLAGS$ac_delim
24562 CCASDEPMODE!$CCASDEPMODE$ac_delim
24563 am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
24564 am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
24565 LIBM!$LIBM$ac_delim
24566 BUILD_FASTMATH_TRUE!$BUILD_FASTMATH_TRUE$ac_delim
24567 BUILD_FASTMATH_FALSE!$BUILD_FASTMATH_FALSE$ac_delim
24568 BUILD_SNIFFER_TRUE!$BUILD_SNIFFER_TRUE$ac_delim
24569 BUILD_SNIFFER_FALSE!$BUILD_SNIFFER_FALSE$ac_delim
24570 BUILD_AESGCM_TRUE!$BUILD_AESGCM_TRUE$ac_delim
24571 BUILD_AESGCM_FALSE!$BUILD_AESGCM_FALSE$ac_delim
24572 BUILD_AESNI_TRUE!$BUILD_AESNI_TRUE$ac_delim
24573 BUILD_AESNI_FALSE!$BUILD_AESNI_FALSE$ac_delim
24574 BUILD_MD2_TRUE!$BUILD_MD2_TRUE$ac_delim
24575 BUILD_MD2_FALSE!$BUILD_MD2_FALSE$ac_delim
24576 BUILD_RIPEMD_TRUE!$BUILD_RIPEMD_TRUE$ac_delim
24577 BUILD_RIPEMD_FALSE!$BUILD_RIPEMD_FALSE$ac_delim
24578 BUILD_SHA512_TRUE!$BUILD_SHA512_TRUE$ac_delim
24579 BUILD_SHA512_FALSE!$BUILD_SHA512_FALSE$ac_delim
24580 BUILD_HC128_TRUE!$BUILD_HC128_TRUE$ac_delim
24581 BUILD_HC128_FALSE!$BUILD_HC128_FALSE$ac_delim
24582 BUILD_NOINLINE_TRUE!$BUILD_NOINLINE_TRUE$ac_delim
24583 BUILD_NOINLINE_FALSE!$BUILD_NOINLINE_FALSE$ac_delim
24584 BUILD_ECC_TRUE!$BUILD_ECC_TRUE$ac_delim
24585 BUILD_ECC_FALSE!$BUILD_ECC_FALSE$ac_delim
24586 BUILD_OCSP_TRUE!$BUILD_OCSP_TRUE$ac_delim
24587 BUILD_OCSP_FALSE!$BUILD_OCSP_FALSE$ac_delim
24588 BUILD_CRL_TRUE!$BUILD_CRL_TRUE$ac_delim
24589 BUILD_CRL_FALSE!$BUILD_CRL_FALSE$ac_delim
24590 BUILD_CRL_MONITOR_TRUE!$BUILD_CRL_MONITOR_TRUE$ac_delim
24591 BUILD_CRL_MONITOR_FALSE!$BUILD_CRL_MONITOR_FALSE$ac_delim
24592 BUILD_NTRU_TRUE!$BUILD_NTRU_TRUE$ac_delim
24593 BUILD_NTRU_FALSE!$BUILD_NTRU_FALSE$ac_delim
24594 ax_pthread_config!$ax_pthread_config$ac_delim
24595 PTHREAD_CC!$PTHREAD_CC$ac_delim
24596 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
24597 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
24598 HEX_VERSION!$HEX_VERSION$ac_delim
24599 AM_CFLAGS!$AM_CFLAGS$ac_delim
24600 AM_LDFLAGS!$AM_LDFLAGS$ac_delim
24601 LTLIBOBJS!$LTLIBOBJS$ac_delim
24602 _ACEOF
24603
24604   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
24605     break
24606   elif $ac_last_try; then
24607     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24608 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24609    { (exit 1); exit 1; }; }
24610   else
24611     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24612   fi
24613 done
24614
24615 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24616 if test -n "$ac_eof"; then
24617   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24618   ac_eof=`expr $ac_eof + 1`
24619 fi
24620
24621 cat >>$CONFIG_STATUS <<_ACEOF
24622 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24624 _ACEOF
24625 sed '
24626 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24627 s/^/s,@/; s/!/@,|#_!!_#|/
24628 :n
24629 t n
24630 s/'"$ac_delim"'$/,g/; t
24631 s/$/\\/; p
24632 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24633 ' >>$CONFIG_STATUS <conf$$subs.sed
24634 rm -f conf$$subs.sed
24635 cat >>$CONFIG_STATUS <<_ACEOF
24636 :end
24637 s/|#_!!_#|//g
24638 CEOF$ac_eof
24639 _ACEOF
24640
24641
24642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24644 # trailing colons and then remove the whole line if VPATH becomes empty
24645 # (actually we leave an empty line to preserve line numbers).
24646 if test "x$srcdir" = x.; then
24647   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24648 s/:*\$(srcdir):*/:/
24649 s/:*\${srcdir}:*/:/
24650 s/:*@srcdir@:*/:/
24651 s/^\([^=]*=[     ]*\):*/\1/
24652 s/:*$//
24653 s/^[^=]*=[       ]*$//
24654 }'
24655 fi
24656
24657 cat >>$CONFIG_STATUS <<\_ACEOF
24658 fi # test -n "$CONFIG_FILES"
24659
24660
24661 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24662 do
24663   case $ac_tag in
24664   :[FHLC]) ac_mode=$ac_tag; continue;;
24665   esac
24666   case $ac_mode$ac_tag in
24667   :[FHL]*:*);;
24668   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24669 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24670    { (exit 1); exit 1; }; };;
24671   :[FH]-) ac_tag=-:-;;
24672   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24673   esac
24674   ac_save_IFS=$IFS
24675   IFS=:
24676   set x $ac_tag
24677   IFS=$ac_save_IFS
24678   shift
24679   ac_file=$1
24680   shift
24681
24682   case $ac_mode in
24683   :L) ac_source=$1;;
24684   :[FH])
24685     ac_file_inputs=
24686     for ac_f
24687     do
24688       case $ac_f in
24689       -) ac_f="$tmp/stdin";;
24690       *) # Look for the file first in the build tree, then in the source tree
24691          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24692          # because $ac_f cannot contain `:'.
24693          test -f "$ac_f" ||
24694            case $ac_f in
24695            [\\/$]*) false;;
24696            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24697            esac ||
24698            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24699 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24700    { (exit 1); exit 1; }; };;
24701       esac
24702       ac_file_inputs="$ac_file_inputs $ac_f"
24703     done
24704
24705     # Let's still pretend it is `configure' which instantiates (i.e., don't
24706     # use $as_me), people would be surprised to read:
24707     #    /* config.h.  Generated by config.status.  */
24708     configure_input="Generated from "`IFS=:
24709           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24710     if test x"$ac_file" != x-; then
24711       configure_input="$ac_file.  $configure_input"
24712       { echo "$as_me:$LINENO: creating $ac_file" >&5
24713 echo "$as_me: creating $ac_file" >&6;}
24714     fi
24715
24716     case $ac_tag in
24717     *:-:* | *:-) cat >"$tmp/stdin";;
24718     esac
24719     ;;
24720   esac
24721
24722   ac_dir=`$as_dirname -- "$ac_file" ||
24723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24724          X"$ac_file" : 'X\(//\)[^/]' \| \
24725          X"$ac_file" : 'X\(//\)$' \| \
24726          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24727 echo X"$ac_file" |
24728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24729             s//\1/
24730             q
24731           }
24732           /^X\(\/\/\)[^/].*/{
24733             s//\1/
24734             q
24735           }
24736           /^X\(\/\/\)$/{
24737             s//\1/
24738             q
24739           }
24740           /^X\(\/\).*/{
24741             s//\1/
24742             q
24743           }
24744           s/.*/./; q'`
24745   { as_dir="$ac_dir"
24746   case $as_dir in #(
24747   -*) as_dir=./$as_dir;;
24748   esac
24749   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24750     as_dirs=
24751     while :; do
24752       case $as_dir in #(
24753       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24754       *) as_qdir=$as_dir;;
24755       esac
24756       as_dirs="'$as_qdir' $as_dirs"
24757       as_dir=`$as_dirname -- "$as_dir" ||
24758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24759          X"$as_dir" : 'X\(//\)[^/]' \| \
24760          X"$as_dir" : 'X\(//\)$' \| \
24761          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24762 echo X"$as_dir" |
24763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24764             s//\1/
24765             q
24766           }
24767           /^X\(\/\/\)[^/].*/{
24768             s//\1/
24769             q
24770           }
24771           /^X\(\/\/\)$/{
24772             s//\1/
24773             q
24774           }
24775           /^X\(\/\).*/{
24776             s//\1/
24777             q
24778           }
24779           s/.*/./; q'`
24780       test -d "$as_dir" && break
24781     done
24782     test -z "$as_dirs" || eval "mkdir $as_dirs"
24783   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24784 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24785    { (exit 1); exit 1; }; }; }
24786   ac_builddir=.
24787
24788 case "$ac_dir" in
24789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24790 *)
24791   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24792   # A ".." for each directory in $ac_dir_suffix.
24793   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24794   case $ac_top_builddir_sub in
24795   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24796   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24797   esac ;;
24798 esac
24799 ac_abs_top_builddir=$ac_pwd
24800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24801 # for backward compatibility:
24802 ac_top_builddir=$ac_top_build_prefix
24803
24804 case $srcdir in
24805   .)  # We are building in place.
24806     ac_srcdir=.
24807     ac_top_srcdir=$ac_top_builddir_sub
24808     ac_abs_top_srcdir=$ac_pwd ;;
24809   [\\/]* | ?:[\\/]* )  # Absolute name.
24810     ac_srcdir=$srcdir$ac_dir_suffix;
24811     ac_top_srcdir=$srcdir
24812     ac_abs_top_srcdir=$srcdir ;;
24813   *) # Relative name.
24814     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24815     ac_top_srcdir=$ac_top_build_prefix$srcdir
24816     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24817 esac
24818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24819
24820
24821   case $ac_mode in
24822   :F)
24823   #
24824   # CONFIG_FILE
24825   #
24826
24827   case $INSTALL in
24828   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24829   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24830   esac
24831   ac_MKDIR_P=$MKDIR_P
24832   case $MKDIR_P in
24833   [\\/$]* | ?:[\\/]* ) ;;
24834   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24835   esac
24836 _ACEOF
24837
24838 cat >>$CONFIG_STATUS <<\_ACEOF
24839 # If the template does not know about datarootdir, expand it.
24840 # FIXME: This hack should be removed a few years after 2.60.
24841 ac_datarootdir_hack=; ac_datarootdir_seen=
24842
24843 case `sed -n '/datarootdir/ {
24844   p
24845   q
24846 }
24847 /@datadir@/p
24848 /@docdir@/p
24849 /@infodir@/p
24850 /@localedir@/p
24851 /@mandir@/p
24852 ' $ac_file_inputs` in
24853 *datarootdir*) ac_datarootdir_seen=yes;;
24854 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24855   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24856 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24857 _ACEOF
24858 cat >>$CONFIG_STATUS <<_ACEOF
24859   ac_datarootdir_hack='
24860   s&@datadir@&$datadir&g
24861   s&@docdir@&$docdir&g
24862   s&@infodir@&$infodir&g
24863   s&@localedir@&$localedir&g
24864   s&@mandir@&$mandir&g
24865     s&\\\${datarootdir}&$datarootdir&g' ;;
24866 esac
24867 _ACEOF
24868
24869 # Neutralize VPATH when `$srcdir' = `.'.
24870 # Shell code in configure.ac might set extrasub.
24871 # FIXME: do we really want to maintain this feature?
24872 cat >>$CONFIG_STATUS <<_ACEOF
24873   sed "$ac_vpsub
24874 $extrasub
24875 _ACEOF
24876 cat >>$CONFIG_STATUS <<\_ACEOF
24877 :t
24878 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24879 s&@configure_input@&$configure_input&;t t
24880 s&@top_builddir@&$ac_top_builddir_sub&;t t
24881 s&@srcdir@&$ac_srcdir&;t t
24882 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24883 s&@top_srcdir@&$ac_top_srcdir&;t t
24884 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24885 s&@builddir@&$ac_builddir&;t t
24886 s&@abs_builddir@&$ac_abs_builddir&;t t
24887 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24888 s&@INSTALL@&$ac_INSTALL&;t t
24889 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24890 $ac_datarootdir_hack
24891 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24892
24893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24894   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24895   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24896   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24897 which seems to be undefined.  Please make sure it is defined." >&5
24898 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24899 which seems to be undefined.  Please make sure it is defined." >&2;}
24900
24901   rm -f "$tmp/stdin"
24902   case $ac_file in
24903   -) cat "$tmp/out"; rm -f "$tmp/out";;
24904   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24905   esac
24906  ;;
24907   :H)
24908   #
24909   # CONFIG_HEADER
24910   #
24911 _ACEOF
24912
24913 # Transform confdefs.h into a sed script `conftest.defines', that
24914 # substitutes the proper values into config.h.in to produce config.h.
24915 rm -f conftest.defines conftest.tail
24916 # First, append a space to every undef/define line, to ease matching.
24917 echo 's/$/ /' >conftest.defines
24918 # Then, protect against being on the right side of a sed subst, or in
24919 # an unquoted here document, in config.status.  If some macros were
24920 # called several times there might be several #defines for the same
24921 # symbol, which is useless.  But do not sort them, since the last
24922 # AC_DEFINE must be honored.
24923 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24924 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24925 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24926 # PARAMS is the parameter list in the macro definition--in most cases, it's
24927 # just an empty string.
24928 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24929 ac_dB='\\)[      (].*,\\1define\\2'
24930 ac_dC=' '
24931 ac_dD=' ,'
24932
24933 uniq confdefs.h |
24934   sed -n '
24935         t rset
24936         :rset
24937         s/^[     ]*#[    ]*define[       ][      ]*//
24938         t ok
24939         d
24940         :ok
24941         s/[\\&,]/\\&/g
24942         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24943         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24944   ' >>conftest.defines
24945
24946 # Remove the space that was appended to ease matching.
24947 # Then replace #undef with comments.  This is necessary, for
24948 # example, in the case of _POSIX_SOURCE, which is predefined and required
24949 # on some systems where configure will not decide to define it.
24950 # (The regexp can be short, since the line contains either #define or #undef.)
24951 echo 's/ $//
24952 s,^[     #]*u.*,/* & */,' >>conftest.defines
24953
24954 # Break up conftest.defines:
24955 ac_max_sed_lines=50
24956
24957 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24958 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24959 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24960 # et cetera.
24961 ac_in='$ac_file_inputs'
24962 ac_out='"$tmp/out1"'
24963 ac_nxt='"$tmp/out2"'
24964
24965 while :
24966 do
24967   # Write a here document:
24968     cat >>$CONFIG_STATUS <<_ACEOF
24969     # First, check the format of the line:
24970     cat >"\$tmp/defines.sed" <<\\CEOF
24971 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*/b def
24972 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24973 b
24974 :def
24975 _ACEOF
24976   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24977   echo 'CEOF
24978     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24979   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24980   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24981   grep . conftest.tail >/dev/null || break
24982   rm -f conftest.defines
24983   mv conftest.tail conftest.defines
24984 done
24985 rm -f conftest.defines conftest.tail
24986
24987 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24988 cat >>$CONFIG_STATUS <<\_ACEOF
24989   if test x"$ac_file" != x-; then
24990     echo "/* $configure_input  */" >"$tmp/config.h"
24991     cat "$ac_result" >>"$tmp/config.h"
24992     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24993       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24994 echo "$as_me: $ac_file is unchanged" >&6;}
24995     else
24996       rm -f $ac_file
24997       mv "$tmp/config.h" $ac_file
24998     fi
24999   else
25000     echo "/* $configure_input  */"
25001     cat "$ac_result"
25002   fi
25003   rm -f "$tmp/out12"
25004 # Compute $ac_file's index in $config_headers.
25005 _am_stamp_count=1
25006 for _am_header in $config_headers :; do
25007   case $_am_header in
25008     $ac_file | $ac_file:* )
25009       break ;;
25010     * )
25011       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25012   esac
25013 done
25014 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
25015 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25016          X$ac_file : 'X\(//\)[^/]' \| \
25017          X$ac_file : 'X\(//\)$' \| \
25018          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
25019 echo X$ac_file |
25020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25021             s//\1/
25022             q
25023           }
25024           /^X\(\/\/\)[^/].*/{
25025             s//\1/
25026             q
25027           }
25028           /^X\(\/\/\)$/{
25029             s//\1/
25030             q
25031           }
25032           /^X\(\/\).*/{
25033             s//\1/
25034             q
25035           }
25036           s/.*/./; q'`/stamp-h$_am_stamp_count
25037  ;;
25038
25039   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25040 echo "$as_me: executing $ac_file commands" >&6;}
25041  ;;
25042   esac
25043
25044
25045   case $ac_file$ac_mode in
25046     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25047   # Strip MF so we end up with the name of the file.
25048   mf=`echo "$mf" | sed -e 's/:.*$//'`
25049   # Check whether this is an Automake generated Makefile or not.
25050   # We used to match only the files named `Makefile.in', but
25051   # some people rename them; so instead we look at the file content.
25052   # Grep'ing the first line is not enough: some people post-process
25053   # each Makefile.in and add a new line on top of each file to say so.
25054   # Grep'ing the whole file is not good either: AIX grep has a line
25055   # limit of 2048, but all sed's we know have understand at least 4000.
25056   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
25057     dirpart=`$as_dirname -- "$mf" ||
25058 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25059          X"$mf" : 'X\(//\)[^/]' \| \
25060          X"$mf" : 'X\(//\)$' \| \
25061          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25062 echo X"$mf" |
25063     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25064             s//\1/
25065             q
25066           }
25067           /^X\(\/\/\)[^/].*/{
25068             s//\1/
25069             q
25070           }
25071           /^X\(\/\/\)$/{
25072             s//\1/
25073             q
25074           }
25075           /^X\(\/\).*/{
25076             s//\1/
25077             q
25078           }
25079           s/.*/./; q'`
25080   else
25081     continue
25082   fi
25083   # Extract the definition of DEPDIR, am__include, and am__quote
25084   # from the Makefile without running `make'.
25085   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25086   test -z "$DEPDIR" && continue
25087   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25088   test -z "am__include" && continue
25089   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25090   # When using ansi2knr, U may be empty or an underscore; expand it
25091   U=`sed -n 's/^U = //p' < "$mf"`
25092   # Find all dependency output files, they are included files with
25093   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25094   # simplest approach to changing $(DEPDIR) to its actual value in the
25095   # expansion.
25096   for file in `sed -n "
25097     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25098        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25099     # Make sure the directory exists.
25100     test -f "$dirpart/$file" && continue
25101     fdir=`$as_dirname -- "$file" ||
25102 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25103          X"$file" : 'X\(//\)[^/]' \| \
25104          X"$file" : 'X\(//\)$' \| \
25105          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25106 echo X"$file" |
25107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25108             s//\1/
25109             q
25110           }
25111           /^X\(\/\/\)[^/].*/{
25112             s//\1/
25113             q
25114           }
25115           /^X\(\/\/\)$/{
25116             s//\1/
25117             q
25118           }
25119           /^X\(\/\).*/{
25120             s//\1/
25121             q
25122           }
25123           s/.*/./; q'`
25124     { as_dir=$dirpart/$fdir
25125   case $as_dir in #(
25126   -*) as_dir=./$as_dir;;
25127   esac
25128   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25129     as_dirs=
25130     while :; do
25131       case $as_dir in #(
25132       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25133       *) as_qdir=$as_dir;;
25134       esac
25135       as_dirs="'$as_qdir' $as_dirs"
25136       as_dir=`$as_dirname -- "$as_dir" ||
25137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25138          X"$as_dir" : 'X\(//\)[^/]' \| \
25139          X"$as_dir" : 'X\(//\)$' \| \
25140          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25141 echo X"$as_dir" |
25142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25143             s//\1/
25144             q
25145           }
25146           /^X\(\/\/\)[^/].*/{
25147             s//\1/
25148             q
25149           }
25150           /^X\(\/\/\)$/{
25151             s//\1/
25152             q
25153           }
25154           /^X\(\/\).*/{
25155             s//\1/
25156             q
25157           }
25158           s/.*/./; q'`
25159       test -d "$as_dir" && break
25160     done
25161     test -z "$as_dirs" || eval "mkdir $as_dirs"
25162   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25163 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25164    { (exit 1); exit 1; }; }; }
25165     # echo "creating $dirpart/$file"
25166     echo '# dummy' > "$dirpart/$file"
25167   done
25168 done
25169  ;;
25170     "libtool":C)
25171
25172     # See if we are running on zsh, and set the options which allow our
25173     # commands through without removal of \ escapes.
25174     if test -n "${ZSH_VERSION+set}" ; then
25175       setopt NO_GLOB_SUBST
25176     fi
25177
25178     cfgfile="${ofile}T"
25179     trap "$RM -f \"$cfgfile\"; exit 1" 1 2 15
25180     $RM -f "$cfgfile"
25181
25182     cat <<_LT_EOF >> "$cfgfile"
25183 #! $SHELL
25184
25185 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
25186 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
25187 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25188 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
25189 #
25190 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25191 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
25192 #                 Inc.
25193 #   Written by Gordon Matzigkeit, 1996
25194 #
25195 #   This file is part of GNU Libtool.
25196 #
25197 # GNU Libtool is free software; you can redistribute it and/or
25198 # modify it under the terms of the GNU General Public License as
25199 # published by the Free Software Foundation; either version 2 of
25200 # the License, or (at your option) any later version.
25201 #
25202 # As a special exception to the GNU General Public License,
25203 # if you distribute this file as part of a program or library that
25204 # is built using GNU Libtool, you may include this file under the
25205 # same distribution terms that you use for the rest of that program.
25206 #
25207 # GNU Libtool is distributed in the hope that it will be useful,
25208 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25209 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25210 # GNU General Public License for more details.
25211 #
25212 # You should have received a copy of the GNU General Public License
25213 # along with GNU Libtool; see the file COPYING.  If not, a copy
25214 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
25215 # obtained by writing to the Free Software Foundation, Inc.,
25216 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25217
25218
25219 # The names of the tagged configurations supported by this script.
25220 available_tags="CXX "
25221
25222 # ### BEGIN LIBTOOL CONFIG
25223
25224 # Which release of libtool.m4 was used?
25225 macro_version=$macro_version
25226 macro_revision=$macro_revision
25227
25228 # Assembler program.
25229 AS=$lt_AS
25230
25231 # DLL creation program.
25232 DLLTOOL=$lt_DLLTOOL
25233
25234 # Object dumper program.
25235 OBJDUMP=$lt_OBJDUMP
25236
25237 # Whether or not to build shared libraries.
25238 build_libtool_libs=$enable_shared
25239
25240 # Whether or not to build static libraries.
25241 build_old_libs=$enable_static
25242
25243 # What type of objects to build.
25244 pic_mode=$pic_mode
25245
25246 # Whether or not to optimize for fast installation.
25247 fast_install=$enable_fast_install
25248
25249 # Shell to use when invoking shell scripts.
25250 SHELL=$lt_SHELL
25251
25252 # An echo program that protects backslashes.
25253 ECHO=$lt_ECHO
25254
25255 # The host system.
25256 host_alias=$host_alias
25257 host=$host
25258 host_os=$host_os
25259
25260 # The build system.
25261 build_alias=$build_alias
25262 build=$build
25263 build_os=$build_os
25264
25265 # A sed program that does not truncate output.
25266 SED=$lt_SED
25267
25268 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25269 Xsed="\$SED -e 1s/^X//"
25270
25271 # A grep program that handles long lines.
25272 GREP=$lt_GREP
25273
25274 # An ERE matcher.
25275 EGREP=$lt_EGREP
25276
25277 # A literal string matcher.
25278 FGREP=$lt_FGREP
25279
25280 # A BSD- or MS-compatible name lister.
25281 NM=$lt_NM
25282
25283 # Whether we need soft or hard links.
25284 LN_S=$lt_LN_S
25285
25286 # What is the maximum length of a command?
25287 max_cmd_len=$max_cmd_len
25288
25289 # Object file suffix (normally "o").
25290 objext=$ac_objext
25291
25292 # Executable file suffix (normally "").
25293 exeext=$exeext
25294
25295 # whether the shell understands "unset".
25296 lt_unset=$lt_unset
25297
25298 # turn spaces into newlines.
25299 SP2NL=$lt_lt_SP2NL
25300
25301 # turn newlines into spaces.
25302 NL2SP=$lt_lt_NL2SP
25303
25304 # Method to check whether dependent libraries are shared objects.
25305 deplibs_check_method=$lt_deplibs_check_method
25306
25307 # Command to use when deplibs_check_method == "file_magic".
25308 file_magic_cmd=$lt_file_magic_cmd
25309
25310 # The archiver.
25311 AR=$lt_AR
25312 AR_FLAGS=$lt_AR_FLAGS
25313
25314 # A symbol stripping program.
25315 STRIP=$lt_STRIP
25316
25317 # Commands used to install an old-style archive.
25318 RANLIB=$lt_RANLIB
25319 old_postinstall_cmds=$lt_old_postinstall_cmds
25320 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25321
25322 # Whether to use a lock for old archive extraction.
25323 lock_old_archive_extraction=$lock_old_archive_extraction
25324
25325 # A C compiler.
25326 LTCC=$lt_CC
25327
25328 # LTCC compiler flags.
25329 LTCFLAGS=$lt_CFLAGS
25330
25331 # Take the output of nm and produce a listing of raw symbols and C names.
25332 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25333
25334 # Transform the output of nm in a proper C declaration.
25335 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25336
25337 # Transform the output of nm in a C name address pair.
25338 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25339
25340 # Transform the output of nm in a C name address pair when lib prefix is needed.
25341 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25342
25343 # The name of the directory that contains temporary libtool files.
25344 objdir=$objdir
25345
25346 # Used to examine libraries when file_magic_cmd begins with "file".
25347 MAGIC_CMD=$MAGIC_CMD
25348
25349 # Must we lock files when doing compilation?
25350 need_locks=$lt_need_locks
25351
25352 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25353 DSYMUTIL=$lt_DSYMUTIL
25354
25355 # Tool to change global to local symbols on Mac OS X.
25356 NMEDIT=$lt_NMEDIT
25357
25358 # Tool to manipulate fat objects and archives on Mac OS X.
25359 LIPO=$lt_LIPO
25360
25361 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25362 OTOOL=$lt_OTOOL
25363
25364 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25365 OTOOL64=$lt_OTOOL64
25366
25367 # Old archive suffix (normally "a").
25368 libext=$libext
25369
25370 # Shared library suffix (normally ".so").
25371 shrext_cmds=$lt_shrext_cmds
25372
25373 # The commands to extract the exported symbol list from a shared archive.
25374 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25375
25376 # Variables whose values should be saved in libtool wrapper scripts and
25377 # restored at link time.
25378 variables_saved_for_relink=$lt_variables_saved_for_relink
25379
25380 # Do we need the "lib" prefix for modules?
25381 need_lib_prefix=$need_lib_prefix
25382
25383 # Do we need a version for libraries?
25384 need_version=$need_version
25385
25386 # Library versioning type.
25387 version_type=$version_type
25388
25389 # Shared library runtime path variable.
25390 runpath_var=$runpath_var
25391
25392 # Shared library path variable.
25393 shlibpath_var=$shlibpath_var
25394
25395 # Is shlibpath searched before the hard-coded library search path?
25396 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25397
25398 # Format of library name prefix.
25399 libname_spec=$lt_libname_spec
25400
25401 # List of archive names.  First name is the real one, the rest are links.
25402 # The last name is the one that the linker finds with -lNAME
25403 library_names_spec=$lt_library_names_spec
25404
25405 # The coded name of the library, if different from the real name.
25406 soname_spec=$lt_soname_spec
25407
25408 # Permission mode override for installation of shared libraries.
25409 install_override_mode=$lt_install_override_mode
25410
25411 # Command to use after installation of a shared archive.
25412 postinstall_cmds=$lt_postinstall_cmds
25413
25414 # Command to use after uninstallation of a shared archive.
25415 postuninstall_cmds=$lt_postuninstall_cmds
25416
25417 # Commands used to finish a libtool library installation in a directory.
25418 finish_cmds=$lt_finish_cmds
25419
25420 # As "finish_cmds", except a single script fragment to be evaled but
25421 # not shown.
25422 finish_eval=$lt_finish_eval
25423
25424 # Whether we should hardcode library paths into libraries.
25425 hardcode_into_libs=$hardcode_into_libs
25426
25427 # Compile-time system search path for libraries.
25428 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25429
25430 # Run-time system search path for libraries.
25431 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25432
25433 # Whether dlopen is supported.
25434 dlopen_support=$enable_dlopen
25435
25436 # Whether dlopen of programs is supported.
25437 dlopen_self=$enable_dlopen_self
25438
25439 # Whether dlopen of statically linked programs is supported.
25440 dlopen_self_static=$enable_dlopen_self_static
25441
25442 # Commands to strip libraries.
25443 old_striplib=$lt_old_striplib
25444 striplib=$lt_striplib
25445
25446
25447 # The linker used to build libraries.
25448 LD=$lt_LD
25449
25450 # How to create reloadable object files.
25451 reload_flag=$lt_reload_flag
25452 reload_cmds=$lt_reload_cmds
25453
25454 # Commands used to build an old-style archive.
25455 old_archive_cmds=$lt_old_archive_cmds
25456
25457 # A language specific compiler.
25458 CC=$lt_compiler
25459
25460 # Is the compiler the GNU compiler?
25461 with_gcc=$GCC
25462
25463 # Compiler flag to turn off builtin functions.
25464 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25465
25466 # How to pass a linker flag through the compiler.
25467 wl=$lt_lt_prog_compiler_wl
25468
25469 # Additional compiler flags for building library objects.
25470 pic_flag=$lt_lt_prog_compiler_pic
25471
25472 # Compiler flag to prevent dynamic linking.
25473 link_static_flag=$lt_lt_prog_compiler_static
25474
25475 # Does compiler simultaneously support -c and -o options?
25476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25477
25478 # Whether or not to add -lc for building shared libraries.
25479 build_libtool_need_lc=$archive_cmds_need_lc
25480
25481 # Whether or not to disallow shared libs when runtime libs are static.
25482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25483
25484 # Compiler flag to allow reflexive dlopens.
25485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25486
25487 # Compiler flag to generate shared objects directly from archives.
25488 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25489
25490 # Whether the compiler copes with passing no objects directly.
25491 compiler_needs_object=$lt_compiler_needs_object
25492
25493 # Create an old-style archive from a shared archive.
25494 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25495
25496 # Create a temporary old-style archive to link instead of a shared archive.
25497 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25498
25499 # Commands used to build a shared archive.
25500 archive_cmds=$lt_archive_cmds
25501 archive_expsym_cmds=$lt_archive_expsym_cmds
25502
25503 # Commands used to build a loadable module if different from building
25504 # a shared archive.
25505 module_cmds=$lt_module_cmds
25506 module_expsym_cmds=$lt_module_expsym_cmds
25507
25508 # Whether we are building with GNU ld or not.
25509 with_gnu_ld=$lt_with_gnu_ld
25510
25511 # Flag that allows shared libraries with undefined symbols to be built.
25512 allow_undefined_flag=$lt_allow_undefined_flag
25513
25514 # Flag that enforces no undefined symbols.
25515 no_undefined_flag=$lt_no_undefined_flag
25516
25517 # Flag to hardcode \$libdir into a binary during linking.
25518 # This must work even if \$libdir does not exist
25519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25520
25521 # If ld is used when linking, flag to hardcode \$libdir into a binary
25522 # during linking.  This must work even if \$libdir does not exist.
25523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
25524
25525 # Whether we need a single "-rpath" flag with a separated argument.
25526 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25527
25528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25529 # DIR into the resulting binary.
25530 hardcode_direct=$hardcode_direct
25531
25532 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25533 # DIR into the resulting binary and the resulting library dependency is
25534 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25535 # library is relocated.
25536 hardcode_direct_absolute=$hardcode_direct_absolute
25537
25538 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25539 # into the resulting binary.
25540 hardcode_minus_L=$hardcode_minus_L
25541
25542 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25543 # into the resulting binary.
25544 hardcode_shlibpath_var=$hardcode_shlibpath_var
25545
25546 # Set to "yes" if building a shared library automatically hardcodes DIR
25547 # into the library and all subsequent libraries and executables linked
25548 # against it.
25549 hardcode_automatic=$hardcode_automatic
25550
25551 # Set to yes if linker adds runtime paths of dependent libraries
25552 # to runtime path list.
25553 inherit_rpath=$inherit_rpath
25554
25555 # Whether libtool must link a program against all its dependency libraries.
25556 link_all_deplibs=$link_all_deplibs
25557
25558 # Fix the shell variable \$srcfile for the compiler.
25559 fix_srcfile_path=$lt_fix_srcfile_path
25560
25561 # Set to "yes" if exported symbols are required.
25562 always_export_symbols=$always_export_symbols
25563
25564 # The commands to list exported symbols.
25565 export_symbols_cmds=$lt_export_symbols_cmds
25566
25567 # Symbols that should not be listed in the preloaded symbols.
25568 exclude_expsyms=$lt_exclude_expsyms
25569
25570 # Symbols that must always be exported.
25571 include_expsyms=$lt_include_expsyms
25572
25573 # Commands necessary for linking programs (against libraries) with templates.
25574 prelink_cmds=$lt_prelink_cmds
25575
25576 # Specify filename containing input files.
25577 file_list_spec=$lt_file_list_spec
25578
25579 # How to hardcode a shared library path into an executable.
25580 hardcode_action=$hardcode_action
25581
25582 # The directories searched by this compiler when creating a shared library.
25583 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25584
25585 # Dependencies to place before and after the objects being linked to
25586 # create a shared library.
25587 predep_objects=$lt_predep_objects
25588 postdep_objects=$lt_postdep_objects
25589 predeps=$lt_predeps
25590 postdeps=$lt_postdeps
25591
25592 # The library search path used internally by the compiler when linking
25593 # a shared library.
25594 compiler_lib_search_path=$lt_compiler_lib_search_path
25595
25596 # ### END LIBTOOL CONFIG
25597
25598 _LT_EOF
25599
25600   case $host_os in
25601   aix3*)
25602     cat <<\_LT_EOF >> "$cfgfile"
25603 # AIX sometimes has problems with the GCC collect2 program.  For some
25604 # reason, if we set the COLLECT_NAMES environment variable, the problems
25605 # vanish in a puff of smoke.
25606 if test "X${COLLECT_NAMES+set}" != Xset; then
25607   COLLECT_NAMES=
25608   export COLLECT_NAMES
25609 fi
25610 _LT_EOF
25611     ;;
25612   esac
25613
25614
25615 ltmain="$ac_aux_dir/ltmain.sh"
25616
25617
25618   # We use sed instead of cat because bash on DJGPP gets confused if
25619   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25620   # text mode, it properly converts lines to CR/LF.  This bash problem
25621   # is reportedly fixed, but why not run on old versions too?
25622   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
25623     || (rm -f "$cfgfile"; exit 1)
25624
25625   case $xsi_shell in
25626   yes)
25627     cat << \_LT_EOF >> "$cfgfile"
25628
25629 # func_dirname file append nondir_replacement
25630 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25631 # otherwise set result to NONDIR_REPLACEMENT.
25632 func_dirname ()
25633 {
25634   case ${1} in
25635     */*) func_dirname_result="${1%/*}${2}" ;;
25636     *  ) func_dirname_result="${3}" ;;
25637   esac
25638 }
25639
25640 # func_basename file
25641 func_basename ()
25642 {
25643   func_basename_result="${1##*/}"
25644 }
25645
25646 # func_dirname_and_basename file append nondir_replacement
25647 # perform func_basename and func_dirname in a single function
25648 # call:
25649 #   dirname:  Compute the dirname of FILE.  If nonempty,
25650 #             add APPEND to the result, otherwise set result
25651 #             to NONDIR_REPLACEMENT.
25652 #             value returned in "$func_dirname_result"
25653 #   basename: Compute filename of FILE.
25654 #             value retuned in "$func_basename_result"
25655 # Implementation must be kept synchronized with func_dirname
25656 # and func_basename. For efficiency, we do not delegate to
25657 # those functions but instead duplicate the functionality here.
25658 func_dirname_and_basename ()
25659 {
25660   case ${1} in
25661     */*) func_dirname_result="${1%/*}${2}" ;;
25662     *  ) func_dirname_result="${3}" ;;
25663   esac
25664   func_basename_result="${1##*/}"
25665 }
25666
25667 # func_stripname prefix suffix name
25668 # strip PREFIX and SUFFIX off of NAME.
25669 # PREFIX and SUFFIX must not contain globbing or regex special
25670 # characters, hashes, percent signs, but SUFFIX may contain a leading
25671 # dot (in which case that matches only a dot).
25672 func_stripname ()
25673 {
25674   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25675   # positional parameters, so assign one to ordinary parameter first.
25676   func_stripname_result=${3}
25677   func_stripname_result=${func_stripname_result#"${1}"}
25678   func_stripname_result=${func_stripname_result%"${2}"}
25679 }
25680
25681 # func_opt_split
25682 func_opt_split ()
25683 {
25684   func_opt_split_opt=${1%%=*}
25685   func_opt_split_arg=${1#*=}
25686 }
25687
25688 # func_lo2o object
25689 func_lo2o ()
25690 {
25691   case ${1} in
25692     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25693     *)    func_lo2o_result=${1} ;;
25694   esac
25695 }
25696
25697 # func_xform libobj-or-source
25698 func_xform ()
25699 {
25700   func_xform_result=${1%.*}.lo
25701 }
25702
25703 # func_arith arithmetic-term...
25704 func_arith ()
25705 {
25706   func_arith_result=$(( $* ))
25707 }
25708
25709 # func_len string
25710 # STRING may not start with a hyphen.
25711 func_len ()
25712 {
25713   func_len_result=${#1}
25714 }
25715
25716 _LT_EOF
25717     ;;
25718   *) # Bourne compatible functions.
25719     cat << \_LT_EOF >> "$cfgfile"
25720
25721 # func_dirname file append nondir_replacement
25722 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
25723 # otherwise set result to NONDIR_REPLACEMENT.
25724 func_dirname ()
25725 {
25726   # Extract subdirectory from the argument.
25727   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
25728   if test "X$func_dirname_result" = "X${1}"; then
25729     func_dirname_result="${3}"
25730   else
25731     func_dirname_result="$func_dirname_result${2}"
25732   fi
25733 }
25734
25735 # func_basename file
25736 func_basename ()
25737 {
25738   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
25739 }
25740
25741
25742 # func_stripname prefix suffix name
25743 # strip PREFIX and SUFFIX off of NAME.
25744 # PREFIX and SUFFIX must not contain globbing or regex special
25745 # characters, hashes, percent signs, but SUFFIX may contain a leading
25746 # dot (in which case that matches only a dot).
25747 # func_strip_suffix prefix name
25748 func_stripname ()
25749 {
25750   case ${2} in
25751     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
25752     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
25753   esac
25754 }
25755
25756 # sed scripts:
25757 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
25758 my_sed_long_arg='1s/^-[^=]*=//'
25759
25760 # func_opt_split
25761 func_opt_split ()
25762 {
25763   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
25764   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
25765 }
25766
25767 # func_lo2o object
25768 func_lo2o ()
25769 {
25770   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
25771 }
25772
25773 # func_xform libobj-or-source
25774 func_xform ()
25775 {
25776   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
25777 }
25778
25779 # func_arith arithmetic-term...
25780 func_arith ()
25781 {
25782   func_arith_result=`expr "$@"`
25783 }
25784
25785 # func_len string
25786 # STRING may not start with a hyphen.
25787 func_len ()
25788 {
25789   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
25790 }
25791
25792 _LT_EOF
25793 esac
25794
25795 case $lt_shell_append in
25796   yes)
25797     cat << \_LT_EOF >> "$cfgfile"
25798
25799 # func_append var value
25800 # Append VALUE to the end of shell variable VAR.
25801 func_append ()
25802 {
25803   eval "$1+=\$2"
25804 }
25805 _LT_EOF
25806     ;;
25807   *)
25808     cat << \_LT_EOF >> "$cfgfile"
25809
25810 # func_append var value
25811 # Append VALUE to the end of shell variable VAR.
25812 func_append ()
25813 {
25814   eval "$1=\$$1\$2"
25815 }
25816
25817 _LT_EOF
25818     ;;
25819   esac
25820
25821
25822   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
25823     || (rm -f "$cfgfile"; exit 1)
25824
25825   mv -f "$cfgfile" "$ofile" ||
25826     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25827   chmod +x "$ofile"
25828
25829
25830     cat <<_LT_EOF >> "$ofile"
25831
25832 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25833
25834 # The linker used to build libraries.
25835 LD=$lt_LD_CXX
25836
25837 # How to create reloadable object files.
25838 reload_flag=$lt_reload_flag_CXX
25839 reload_cmds=$lt_reload_cmds_CXX
25840
25841 # Commands used to build an old-style archive.
25842 old_archive_cmds=$lt_old_archive_cmds_CXX
25843
25844 # A language specific compiler.
25845 CC=$lt_compiler_CXX
25846
25847 # Is the compiler the GNU compiler?
25848 with_gcc=$GCC_CXX
25849
25850 # Compiler flag to turn off builtin functions.
25851 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25852
25853 # How to pass a linker flag through the compiler.
25854 wl=$lt_lt_prog_compiler_wl_CXX
25855
25856 # Additional compiler flags for building library objects.
25857 pic_flag=$lt_lt_prog_compiler_pic_CXX
25858
25859 # Compiler flag to prevent dynamic linking.
25860 link_static_flag=$lt_lt_prog_compiler_static_CXX
25861
25862 # Does compiler simultaneously support -c and -o options?
25863 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25864
25865 # Whether or not to add -lc for building shared libraries.
25866 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25867
25868 # Whether or not to disallow shared libs when runtime libs are static.
25869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25870
25871 # Compiler flag to allow reflexive dlopens.
25872 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25873
25874 # Compiler flag to generate shared objects directly from archives.
25875 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25876
25877 # Whether the compiler copes with passing no objects directly.
25878 compiler_needs_object=$lt_compiler_needs_object_CXX
25879
25880 # Create an old-style archive from a shared archive.
25881 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25882
25883 # Create a temporary old-style archive to link instead of a shared archive.
25884 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25885
25886 # Commands used to build a shared archive.
25887 archive_cmds=$lt_archive_cmds_CXX
25888 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25889
25890 # Commands used to build a loadable module if different from building
25891 # a shared archive.
25892 module_cmds=$lt_module_cmds_CXX
25893 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25894
25895 # Whether we are building with GNU ld or not.
25896 with_gnu_ld=$lt_with_gnu_ld_CXX
25897
25898 # Flag that allows shared libraries with undefined symbols to be built.
25899 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25900
25901 # Flag that enforces no undefined symbols.
25902 no_undefined_flag=$lt_no_undefined_flag_CXX
25903
25904 # Flag to hardcode \$libdir into a binary during linking.
25905 # This must work even if \$libdir does not exist
25906 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25907
25908 # If ld is used when linking, flag to hardcode \$libdir into a binary
25909 # during linking.  This must work even if \$libdir does not exist.
25910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25911
25912 # Whether we need a single "-rpath" flag with a separated argument.
25913 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25914
25915 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25916 # DIR into the resulting binary.
25917 hardcode_direct=$hardcode_direct_CXX
25918
25919 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25920 # DIR into the resulting binary and the resulting library dependency is
25921 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25922 # library is relocated.
25923 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25924
25925 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25926 # into the resulting binary.
25927 hardcode_minus_L=$hardcode_minus_L_CXX
25928
25929 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25930 # into the resulting binary.
25931 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25932
25933 # Set to "yes" if building a shared library automatically hardcodes DIR
25934 # into the library and all subsequent libraries and executables linked
25935 # against it.
25936 hardcode_automatic=$hardcode_automatic_CXX
25937
25938 # Set to yes if linker adds runtime paths of dependent libraries
25939 # to runtime path list.
25940 inherit_rpath=$inherit_rpath_CXX
25941
25942 # Whether libtool must link a program against all its dependency libraries.
25943 link_all_deplibs=$link_all_deplibs_CXX
25944
25945 # Fix the shell variable \$srcfile for the compiler.
25946 fix_srcfile_path=$lt_fix_srcfile_path_CXX
25947
25948 # Set to "yes" if exported symbols are required.
25949 always_export_symbols=$always_export_symbols_CXX
25950
25951 # The commands to list exported symbols.
25952 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25953
25954 # Symbols that should not be listed in the preloaded symbols.
25955 exclude_expsyms=$lt_exclude_expsyms_CXX
25956
25957 # Symbols that must always be exported.
25958 include_expsyms=$lt_include_expsyms_CXX
25959
25960 # Commands necessary for linking programs (against libraries) with templates.
25961 prelink_cmds=$lt_prelink_cmds_CXX
25962
25963 # Specify filename containing input files.
25964 file_list_spec=$lt_file_list_spec_CXX
25965
25966 # How to hardcode a shared library path into an executable.
25967 hardcode_action=$hardcode_action_CXX
25968
25969 # The directories searched by this compiler when creating a shared library.
25970 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25971
25972 # Dependencies to place before and after the objects being linked to
25973 # create a shared library.
25974 predep_objects=$lt_predep_objects_CXX
25975 postdep_objects=$lt_postdep_objects_CXX
25976 predeps=$lt_predeps_CXX
25977 postdeps=$lt_postdeps_CXX
25978
25979 # The library search path used internally by the compiler when linking
25980 # a shared library.
25981 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25982
25983 # ### END LIBTOOL TAG CONFIG: CXX
25984 _LT_EOF
25985
25986  ;;
25987     "stamp-h":F) echo timestamp > stamp-h ;;
25988
25989   esac
25990 done # for ac_tag
25991
25992
25993 { (exit 0); exit 0; }
25994 _ACEOF
25995 chmod +x $CONFIG_STATUS
25996 ac_clean_files=$ac_clean_files_save
25997
25998
25999 # configure is writing to config.log, and then calls config.status.
26000 # config.status does its own redirection, appending to config.log.
26001 # Unfortunately, on DOS this fails, as config.log is still kept open
26002 # by configure, so config.status won't be able to write to it; its
26003 # output is simply discarded.  So we exec the FD to /dev/null,
26004 # effectively closing config.log, so it can be properly (re)opened and
26005 # appended to by config.status.  When coming back to configure, we
26006 # need to make the FD available again.
26007 if test "$no_create" != yes; then
26008   ac_cs_success=:
26009   ac_config_status_args=
26010   test "$silent" = yes &&
26011     ac_config_status_args="$ac_config_status_args --quiet"
26012   exec 5>/dev/null
26013   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26014   exec 5>>config.log
26015   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26016   # would make configure fail if this is the last instruction.
26017   $ac_cs_success || { (exit 1); exit 1; }
26018 fi
26019
26020