Introduce mock-log.h for unittests.
[platform/upstream/glog.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for glog 0.1.2.
4 #
5 # Report bugs to <opensource@google.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 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='glog'
730 PACKAGE_TARNAME='glog'
731 PACKAGE_VERSION='0.1.2'
732 PACKAGE_STRING='glog 0.1.2'
733 PACKAGE_BUGREPORT='opensource@google.com'
734
735 ac_unique_file="README"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 CPP
848 CXX
849 CXXFLAGS
850 ac_ct_CXX
851 CXXDEPMODE
852 am__fastdepCXX_TRUE
853 am__fastdepCXX_FALSE
854 GCC_TRUE
855 GCC_FALSE
856 build
857 build_cpu
858 build_vendor
859 build_os
860 host
861 host_cpu
862 host_vendor
863 host_os
864 SED
865 GREP
866 EGREP
867 LN_S
868 ECHO
869 AR
870 RANLIB
871 DSYMUTIL
872 NMEDIT
873 CXXCPP
874 F77
875 FFLAGS
876 ac_ct_F77
877 LIBTOOL
878 LIBTOOL_DEPS
879 ENABLE_FRAME_POINTERS_TRUE
880 ENABLE_FRAME_POINTERS_FALSE
881 X86_64_TRUE
882 X86_64_FALSE
883 acx_pthread_config
884 PTHREAD_CC
885 PTHREAD_LIBS
886 PTHREAD_CFLAGS
887 GTEST_CONFIG
888 GMOCK_CONFIG
889 HAVE_GMOCK_TRUE
890 HAVE_GMOCK_FALSE
891 UNWIND_LIBS
892 ac_google_start_namespace
893 ac_google_end_namespace
894 ac_google_namespace
895 ac_cv_cxx_using_operator
896 ac_cv___attribute___noreturn
897 ac_cv___attribute___printf_4_5
898 ac_cv_have___builtin_expect
899 ac_cv_have_stdint_h
900 ac_cv_have_systypes_h
901 ac_cv_have_inttypes_h
902 ac_cv_have_unistd_h
903 ac_cv_have_uint16_t
904 ac_cv_have_u_int16_t
905 ac_cv_have___uint16
906 ac_cv_have_libgflags
907 GFLAGS_LIBS
908 GTEST_CFLAGS
909 GMOCK_CFLAGS
910 GTEST_LIBS
911 GMOCK_LIBS
912 LIBOBJS
913 LTLIBOBJS'
914 ac_subst_files=''
915       ac_precious_vars='build_alias
916 host_alias
917 target_alias
918 CC
919 CFLAGS
920 LDFLAGS
921 LIBS
922 CPPFLAGS
923 CPP
924 CXX
925 CXXFLAGS
926 CCC
927 CXXCPP
928 F77
929 FFLAGS'
930
931
932 # Initialize some variables set by options.
933 ac_init_help=
934 ac_init_version=false
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
951
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
977
978 ac_prev=
979 ac_dashdash=
980 for ac_option
981 do
982   # If the previous option needs an argument, assign it.
983   if test -n "$ac_prev"; then
984     eval $ac_prev=\$ac_option
985     ac_prev=
986     continue
987   fi
988
989   case $ac_option in
990   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991   *)    ac_optarg=yes ;;
992   esac
993
994   # Accept the important Cygnus configure options, so we can diagnose typos.
995
996   case $ac_dashdash$ac_option in
997   --)
998     ac_dashdash=yes ;;
999
1000   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001     ac_prev=bindir ;;
1002   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1003     bindir=$ac_optarg ;;
1004
1005   -build | --build | --buil | --bui | --bu)
1006     ac_prev=build_alias ;;
1007   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1008     build_alias=$ac_optarg ;;
1009
1010   -cache-file | --cache-file | --cache-fil | --cache-fi \
1011   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1012     ac_prev=cache_file ;;
1013   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1014   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1015     cache_file=$ac_optarg ;;
1016
1017   --config-cache | -C)
1018     cache_file=config.cache ;;
1019
1020   -datadir | --datadir | --datadi | --datad)
1021     ac_prev=datadir ;;
1022   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1023     datadir=$ac_optarg ;;
1024
1025   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1026   | --dataroo | --dataro | --datar)
1027     ac_prev=datarootdir ;;
1028   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1029   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1030     datarootdir=$ac_optarg ;;
1031
1032   -disable-* | --disable-*)
1033     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034     # Reject names that are not valid shell variable names.
1035     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1037    { (exit 1); exit 1; }; }
1038     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1039     eval enable_$ac_feature=no ;;
1040
1041   -docdir | --docdir | --docdi | --doc | --do)
1042     ac_prev=docdir ;;
1043   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044     docdir=$ac_optarg ;;
1045
1046   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047     ac_prev=dvidir ;;
1048   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049     dvidir=$ac_optarg ;;
1050
1051   -enable-* | --enable-*)
1052     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1058     eval enable_$ac_feature=\$ac_optarg ;;
1059
1060   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062   | --exec | --exe | --ex)
1063     ac_prev=exec_prefix ;;
1064   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066   | --exec=* | --exe=* | --ex=*)
1067     exec_prefix=$ac_optarg ;;
1068
1069   -gas | --gas | --ga | --g)
1070     # Obsolete; use --with-gas.
1071     with_gas=yes ;;
1072
1073   -help | --help | --hel | --he | -h)
1074     ac_init_help=long ;;
1075   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076     ac_init_help=recursive ;;
1077   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078     ac_init_help=short ;;
1079
1080   -host | --host | --hos | --ho)
1081     ac_prev=host_alias ;;
1082   -host=* | --host=* | --hos=* | --ho=*)
1083     host_alias=$ac_optarg ;;
1084
1085   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086     ac_prev=htmldir ;;
1087   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088   | --ht=*)
1089     htmldir=$ac_optarg ;;
1090
1091   -includedir | --includedir | --includedi | --included | --include \
1092   | --includ | --inclu | --incl | --inc)
1093     ac_prev=includedir ;;
1094   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095   | --includ=* | --inclu=* | --incl=* | --inc=*)
1096     includedir=$ac_optarg ;;
1097
1098   -infodir | --infodir | --infodi | --infod | --info | --inf)
1099     ac_prev=infodir ;;
1100   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1101     infodir=$ac_optarg ;;
1102
1103   -libdir | --libdir | --libdi | --libd)
1104     ac_prev=libdir ;;
1105   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1106     libdir=$ac_optarg ;;
1107
1108   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109   | --libexe | --libex | --libe)
1110     ac_prev=libexecdir ;;
1111   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112   | --libexe=* | --libex=* | --libe=*)
1113     libexecdir=$ac_optarg ;;
1114
1115   -localedir | --localedir | --localedi | --localed | --locale)
1116     ac_prev=localedir ;;
1117   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118     localedir=$ac_optarg ;;
1119
1120   -localstatedir | --localstatedir | --localstatedi | --localstated \
1121   | --localstate | --localstat | --localsta | --localst | --locals)
1122     ac_prev=localstatedir ;;
1123   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1124   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1125     localstatedir=$ac_optarg ;;
1126
1127   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128     ac_prev=mandir ;;
1129   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1130     mandir=$ac_optarg ;;
1131
1132   -nfp | --nfp | --nf)
1133     # Obsolete; use --without-fp.
1134     with_fp=no ;;
1135
1136   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1137   | --no-cr | --no-c | -n)
1138     no_create=yes ;;
1139
1140   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142     no_recursion=yes ;;
1143
1144   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146   | --oldin | --oldi | --old | --ol | --o)
1147     ac_prev=oldincludedir ;;
1148   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1151     oldincludedir=$ac_optarg ;;
1152
1153   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154     ac_prev=prefix ;;
1155   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1156     prefix=$ac_optarg ;;
1157
1158   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159   | --program-pre | --program-pr | --program-p)
1160     ac_prev=program_prefix ;;
1161   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1163     program_prefix=$ac_optarg ;;
1164
1165   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166   | --program-suf | --program-su | --program-s)
1167     ac_prev=program_suffix ;;
1168   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1170     program_suffix=$ac_optarg ;;
1171
1172   -program-transform-name | --program-transform-name \
1173   | --program-transform-nam | --program-transform-na \
1174   | --program-transform-n | --program-transform- \
1175   | --program-transform | --program-transfor \
1176   | --program-transfo | --program-transf \
1177   | --program-trans | --program-tran \
1178   | --progr-tra | --program-tr | --program-t)
1179     ac_prev=program_transform_name ;;
1180   -program-transform-name=* | --program-transform-name=* \
1181   | --program-transform-nam=* | --program-transform-na=* \
1182   | --program-transform-n=* | --program-transform-=* \
1183   | --program-transform=* | --program-transfor=* \
1184   | --program-transfo=* | --program-transf=* \
1185   | --program-trans=* | --program-tran=* \
1186   | --progr-tra=* | --program-tr=* | --program-t=*)
1187     program_transform_name=$ac_optarg ;;
1188
1189   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190     ac_prev=pdfdir ;;
1191   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192     pdfdir=$ac_optarg ;;
1193
1194   -psdir | --psdir | --psdi | --psd | --ps)
1195     ac_prev=psdir ;;
1196   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197     psdir=$ac_optarg ;;
1198
1199   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200   | -silent | --silent | --silen | --sile | --sil)
1201     silent=yes ;;
1202
1203   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204     ac_prev=sbindir ;;
1205   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206   | --sbi=* | --sb=*)
1207     sbindir=$ac_optarg ;;
1208
1209   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211   | --sharedst | --shareds | --shared | --share | --shar \
1212   | --sha | --sh)
1213     ac_prev=sharedstatedir ;;
1214   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217   | --sha=* | --sh=*)
1218     sharedstatedir=$ac_optarg ;;
1219
1220   -site | --site | --sit)
1221     ac_prev=site ;;
1222   -site=* | --site=* | --sit=*)
1223     site=$ac_optarg ;;
1224
1225   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226     ac_prev=srcdir ;;
1227   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1228     srcdir=$ac_optarg ;;
1229
1230   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231   | --syscon | --sysco | --sysc | --sys | --sy)
1232     ac_prev=sysconfdir ;;
1233   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1235     sysconfdir=$ac_optarg ;;
1236
1237   -target | --target | --targe | --targ | --tar | --ta | --t)
1238     ac_prev=target_alias ;;
1239   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1240     target_alias=$ac_optarg ;;
1241
1242   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243     verbose=yes ;;
1244
1245   -version | --version | --versio | --versi | --vers | -V)
1246     ac_init_version=: ;;
1247
1248   -with-* | --with-*)
1249     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1252       { echo "$as_me: error: invalid package name: $ac_package" >&2
1253    { (exit 1); exit 1; }; }
1254     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1255     eval with_$ac_package=\$ac_optarg ;;
1256
1257   -without-* | --without-*)
1258     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       { echo "$as_me: error: invalid package name: $ac_package" >&2
1262    { (exit 1); exit 1; }; }
1263     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1264     eval with_$ac_package=no ;;
1265
1266   --x)
1267     # Obsolete; use --with-x.
1268     with_x=yes ;;
1269
1270   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271   | --x-incl | --x-inc | --x-in | --x-i)
1272     ac_prev=x_includes ;;
1273   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275     x_includes=$ac_optarg ;;
1276
1277   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279     ac_prev=x_libraries ;;
1280   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282     x_libraries=$ac_optarg ;;
1283
1284   -*) { echo "$as_me: error: unrecognized option: $ac_option
1285 Try \`$0 --help' for more information." >&2
1286    { (exit 1); exit 1; }; }
1287     ;;
1288
1289   *=*)
1290     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1293       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1294    { (exit 1); exit 1; }; }
1295     eval $ac_envvar=\$ac_optarg
1296     export $ac_envvar ;;
1297
1298   *)
1299     # FIXME: should be removed in autoconf 3.0.
1300     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304     ;;
1305
1306   esac
1307 done
1308
1309 if test -n "$ac_prev"; then
1310   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311   { echo "$as_me: error: missing argument to $ac_option" >&2
1312    { (exit 1); exit 1; }; }
1313 fi
1314
1315 # Be sure to have absolute directory names.
1316 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1317                 datadir sysconfdir sharedstatedir localstatedir includedir \
1318                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1319                 libdir localedir mandir
1320 do
1321   eval ac_val=\$$ac_var
1322   case $ac_val in
1323     [\\/$]* | ?:[\\/]* )  continue;;
1324     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325   esac
1326   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1327    { (exit 1); exit 1; }; }
1328 done
1329
1330 # There might be people who depend on the old broken behavior: `$host'
1331 # used to hold the argument of --host etc.
1332 # FIXME: To remove some day.
1333 build=$build_alias
1334 host=$host_alias
1335 target=$target_alias
1336
1337 # FIXME: To remove some day.
1338 if test "x$host_alias" != x; then
1339   if test "x$build_alias" = x; then
1340     cross_compiling=maybe
1341     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1342     If a cross compiler is detected then cross compile mode will be used." >&2
1343   elif test "x$build_alias" != "x$host_alias"; then
1344     cross_compiling=yes
1345   fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357   { echo "$as_me: error: Working directory cannot be determined" >&2
1358    { (exit 1); exit 1; }; }
1359 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1360   { echo "$as_me: error: pwd does not report name of working directory" >&2
1361    { (exit 1); exit 1; }; }
1362
1363
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366   ac_srcdir_defaulted=yes
1367   # Try the directory containing this script, then the parent directory.
1368   ac_confdir=`$as_dirname -- "$0" ||
1369 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370          X"$0" : 'X\(//\)[^/]' \| \
1371          X"$0" : 'X\(//\)$' \| \
1372          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1373 echo X"$0" |
1374     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375             s//\1/
1376             q
1377           }
1378           /^X\(\/\/\)[^/].*/{
1379             s//\1/
1380             q
1381           }
1382           /^X\(\/\/\)$/{
1383             s//\1/
1384             q
1385           }
1386           /^X\(\/\).*/{
1387             s//\1/
1388             q
1389           }
1390           s/.*/./; q'`
1391   srcdir=$ac_confdir
1392   if test ! -r "$srcdir/$ac_unique_file"; then
1393     srcdir=..
1394   fi
1395 else
1396   ac_srcdir_defaulted=no
1397 fi
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1401    { (exit 1); exit 1; }; }
1402 fi
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404 ac_abs_confdir=`(
1405         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1406    { (exit 1); exit 1; }; }
1407         pwd)`
1408 # When building in place, set srcdir=.
1409 if test "$ac_abs_confdir" = "$ac_pwd"; then
1410   srcdir=.
1411 fi
1412 # Remove unnecessary trailing slashes from srcdir.
1413 # Double slashes in file names in object file debugging info
1414 # mess up M-x gdb in Emacs.
1415 case $srcdir in
1416 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 esac
1418 for ac_var in $ac_precious_vars; do
1419   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1420   eval ac_env_${ac_var}_value=\$${ac_var}
1421   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1422   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1423 done
1424
1425 #
1426 # Report the --help message.
1427 #
1428 if test "$ac_init_help" = "long"; then
1429   # Omit some internal or obsolete options to make the list less imposing.
1430   # This message is too long to be a string in the A/UX 3.1 sh.
1431   cat <<_ACEOF
1432 \`configure' configures glog 0.1.2 to adapt to many kinds of systems.
1433
1434 Usage: $0 [OPTION]... [VAR=VALUE]...
1435
1436 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1437 VAR=VALUE.  See below for descriptions of some of the useful variables.
1438
1439 Defaults for the options are specified in brackets.
1440
1441 Configuration:
1442   -h, --help              display this help and exit
1443       --help=short        display options specific to this package
1444       --help=recursive    display the short help of all the included packages
1445   -V, --version           display version information and exit
1446   -q, --quiet, --silent   do not print \`checking...' messages
1447       --cache-file=FILE   cache test results in FILE [disabled]
1448   -C, --config-cache      alias for \`--cache-file=config.cache'
1449   -n, --no-create         do not create output files
1450       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1451
1452 Installation directories:
1453   --prefix=PREFIX         install architecture-independent files in PREFIX
1454                           [$ac_default_prefix]
1455   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1456                           [PREFIX]
1457
1458 By default, \`make install' will install all the files in
1459 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1460 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1461 for instance \`--prefix=\$HOME'.
1462
1463 For better control, use the options below.
1464
1465 Fine tuning of the installation directories:
1466   --bindir=DIR           user executables [EPREFIX/bin]
1467   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1468   --libexecdir=DIR       program executables [EPREFIX/libexec]
1469   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1470   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1471   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1472   --libdir=DIR           object code libraries [EPREFIX/lib]
1473   --includedir=DIR       C header files [PREFIX/include]
1474   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1475   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1476   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1477   --infodir=DIR          info documentation [DATAROOTDIR/info]
1478   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1479   --mandir=DIR           man documentation [DATAROOTDIR/man]
1480   --docdir=DIR           documentation root [DATAROOTDIR/doc/glog]
1481   --htmldir=DIR          html documentation [DOCDIR]
1482   --dvidir=DIR           dvi documentation [DOCDIR]
1483   --pdfdir=DIR           pdf documentation [DOCDIR]
1484   --psdir=DIR            ps documentation [DOCDIR]
1485 _ACEOF
1486
1487   cat <<\_ACEOF
1488
1489 Program names:
1490   --program-prefix=PREFIX            prepend PREFIX to installed program names
1491   --program-suffix=SUFFIX            append SUFFIX to installed program names
1492   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1493
1494 System types:
1495   --build=BUILD     configure for building on BUILD [guessed]
1496   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1497 _ACEOF
1498 fi
1499
1500 if test -n "$ac_init_help"; then
1501   case $ac_init_help in
1502      short | recursive ) echo "Configuration of glog 0.1.2:";;
1503    esac
1504   cat <<\_ACEOF
1505
1506 Optional Features:
1507   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1508   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1509   --disable-dependency-tracking  speeds up one-time build
1510   --enable-dependency-tracking   do not reject slow dependency extractors
1511   --enable-shared[=PKGS]  build shared libraries [default=yes]
1512   --enable-static[=PKGS]  build static libraries [default=yes]
1513   --enable-fast-install[=PKGS]
1514                           optimize for fast installation [default=yes]
1515   --disable-libtool-lock  avoid locking (might break parallel builds)
1516   --enable-frame-pointers On x86_64 systems, compile with
1517                           -fno-omit-frame-pointer (see INSTALL)
1518   --enable-namespace=FOO to define these Google
1519                              classes in the FOO namespace. --disable-namespace
1520                              to define them in the global namespace. Default
1521                              is to define them in namespace google.
1522
1523 Optional Packages:
1524   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1525   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1526   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1527   --with-pic              try to use only PIC/non-PIC objects [default=use
1528                           both]
1529   --with-tags[=TAGS]      include additional configurations [automatic]
1530
1531 Some influential environment variables:
1532   CC          C compiler command
1533   CFLAGS      C compiler flags
1534   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535               nonstandard directory <lib dir>
1536   LIBS        libraries to pass to the linker, e.g. -l<library>
1537   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538               you have headers in a nonstandard directory <include dir>
1539   CPP         C preprocessor
1540   CXX         C++ compiler command
1541   CXXFLAGS    C++ compiler flags
1542   CXXCPP      C++ preprocessor
1543   F77         Fortran 77 compiler command
1544   FFLAGS      Fortran 77 compiler flags
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to <opensource@google.com>.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555   # If there are subdirs, report their specific --help.
1556   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557     test -d "$ac_dir" || continue
1558     ac_builddir=.
1559
1560 case "$ac_dir" in
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *)
1563   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1564   # A ".." for each directory in $ac_dir_suffix.
1565   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1566   case $ac_top_builddir_sub in
1567   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569   esac ;;
1570 esac
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1575
1576 case $srcdir in
1577   .)  # We are building in place.
1578     ac_srcdir=.
1579     ac_top_srcdir=$ac_top_builddir_sub
1580     ac_abs_top_srcdir=$ac_pwd ;;
1581   [\\/]* | ?:[\\/]* )  # Absolute name.
1582     ac_srcdir=$srcdir$ac_dir_suffix;
1583     ac_top_srcdir=$srcdir
1584     ac_abs_top_srcdir=$srcdir ;;
1585   *) # Relative name.
1586     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587     ac_top_srcdir=$ac_top_build_prefix$srcdir
1588     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 esac
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592     cd "$ac_dir" || { ac_status=$?; continue; }
1593     # Check for guested configure.
1594     if test -f "$ac_srcdir/configure.gnu"; then
1595       echo &&
1596       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597     elif test -f "$ac_srcdir/configure"; then
1598       echo &&
1599       $SHELL "$ac_srcdir/configure" --help=recursive
1600     else
1601       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602     fi || ac_status=$?
1603     cd "$ac_pwd" || { ac_status=$?; break; }
1604   done
1605 fi
1606
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1609   cat <<\_ACEOF
1610 glog configure 0.1.2
1611 generated by GNU Autoconf 2.61
1612
1613 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1614 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618   exit
1619 fi
1620 cat >config.log <<_ACEOF
1621 This file contains any messages produced by compilers while
1622 running configure, to aid debugging if configure makes a mistake.
1623
1624 It was created by glog $as_me 0.1.2, which was
1625 generated by GNU Autoconf 2.61.  Invocation command line was
1626
1627   $ $0 $@
1628
1629 _ACEOF
1630 exec 5>>config.log
1631 {
1632 cat <<_ASUNAME
1633 ## --------- ##
1634 ## Platform. ##
1635 ## --------- ##
1636
1637 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1638 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1639 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1640 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1641 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1642
1643 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1644 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1645
1646 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1647 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1648 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1649 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1650 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1651 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1652 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1653
1654 _ASUNAME
1655
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   echo "PATH: $as_dir"
1662 done
1663 IFS=$as_save_IFS
1664
1665 } >&5
1666
1667 cat >&5 <<_ACEOF
1668
1669
1670 ## ----------- ##
1671 ## Core tests. ##
1672 ## ----------- ##
1673
1674 _ACEOF
1675
1676
1677 # Keep a trace of the command line.
1678 # Strip out --no-create and --no-recursion so they do not pile up.
1679 # Strip out --silent because we don't want to record it for future runs.
1680 # Also quote any args containing shell meta-characters.
1681 # Make two passes to allow for proper duplicate-argument suppression.
1682 ac_configure_args=
1683 ac_configure_args0=
1684 ac_configure_args1=
1685 ac_must_keep_next=false
1686 for ac_pass in 1 2
1687 do
1688   for ac_arg
1689   do
1690     case $ac_arg in
1691     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1692     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1693     | -silent | --silent | --silen | --sile | --sil)
1694       continue ;;
1695     *\'*)
1696       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1697     esac
1698     case $ac_pass in
1699     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1700     2)
1701       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1702       if test $ac_must_keep_next = true; then
1703         ac_must_keep_next=false # Got value, back to normal.
1704       else
1705         case $ac_arg in
1706           *=* | --config-cache | -C | -disable-* | --disable-* \
1707           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1708           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1709           | -with-* | --with-* | -without-* | --without-* | --x)
1710             case "$ac_configure_args0 " in
1711               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1712             esac
1713             ;;
1714           -* ) ac_must_keep_next=true ;;
1715         esac
1716       fi
1717       ac_configure_args="$ac_configure_args '$ac_arg'"
1718       ;;
1719     esac
1720   done
1721 done
1722 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1723 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1724
1725 # When interrupted or exit'd, cleanup temporary files, and complete
1726 # config.log.  We remove comments because anyway the quotes in there
1727 # would cause problems or look ugly.
1728 # WARNING: Use '\'' to represent an apostrophe within the trap.
1729 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1730 trap 'exit_status=$?
1731   # Save into config.log some information that might help in debugging.
1732   {
1733     echo
1734
1735     cat <<\_ASBOX
1736 ## ---------------- ##
1737 ## Cache variables. ##
1738 ## ---------------- ##
1739 _ASBOX
1740     echo
1741     # The following way of writing the cache mishandles newlines in values,
1742 (
1743   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1744     eval ac_val=\$$ac_var
1745     case $ac_val in #(
1746     *${as_nl}*)
1747       case $ac_var in #(
1748       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1749 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1750       esac
1751       case $ac_var in #(
1752       _ | IFS | as_nl) ;; #(
1753       *) $as_unset $ac_var ;;
1754       esac ;;
1755     esac
1756   done
1757   (set) 2>&1 |
1758     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1759     *${as_nl}ac_space=\ *)
1760       sed -n \
1761         "s/'\''/'\''\\\\'\'''\''/g;
1762           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1763       ;; #(
1764     *)
1765       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766       ;;
1767     esac |
1768     sort
1769 )
1770     echo
1771
1772     cat <<\_ASBOX
1773 ## ----------------- ##
1774 ## Output variables. ##
1775 ## ----------------- ##
1776 _ASBOX
1777     echo
1778     for ac_var in $ac_subst_vars
1779     do
1780       eval ac_val=\$$ac_var
1781       case $ac_val in
1782       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783       esac
1784       echo "$ac_var='\''$ac_val'\''"
1785     done | sort
1786     echo
1787
1788     if test -n "$ac_subst_files"; then
1789       cat <<\_ASBOX
1790 ## ------------------- ##
1791 ## File substitutions. ##
1792 ## ------------------- ##
1793 _ASBOX
1794       echo
1795       for ac_var in $ac_subst_files
1796       do
1797         eval ac_val=\$$ac_var
1798         case $ac_val in
1799         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1800         esac
1801         echo "$ac_var='\''$ac_val'\''"
1802       done | sort
1803       echo
1804     fi
1805
1806     if test -s confdefs.h; then
1807       cat <<\_ASBOX
1808 ## ----------- ##
1809 ## confdefs.h. ##
1810 ## ----------- ##
1811 _ASBOX
1812       echo
1813       cat confdefs.h
1814       echo
1815     fi
1816     test "$ac_signal" != 0 &&
1817       echo "$as_me: caught signal $ac_signal"
1818     echo "$as_me: exit $exit_status"
1819   } >&5
1820   rm -f core *.core core.conftest.* &&
1821     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1822     exit $exit_status
1823 ' 0
1824 for ac_signal in 1 2 13 15; do
1825   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1826 done
1827 ac_signal=0
1828
1829 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1830 rm -f -r conftest* confdefs.h
1831
1832 # Predefined preprocessor variables.
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_NAME "$PACKAGE_NAME"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1841 _ACEOF
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1846 _ACEOF
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_STRING "$PACKAGE_STRING"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1856 _ACEOF
1857
1858
1859 # Let the site file select an alternate cache file if it wants to.
1860 # Prefer explicitly selected file to automatically selected ones.
1861 if test -n "$CONFIG_SITE"; then
1862   set x "$CONFIG_SITE"
1863 elif test "x$prefix" != xNONE; then
1864   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1865 else
1866   set x "$ac_default_prefix/share/config.site" \
1867         "$ac_default_prefix/etc/config.site"
1868 fi
1869 shift
1870 for ac_site_file
1871 do
1872   if test -r "$ac_site_file"; then
1873     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1874 echo "$as_me: loading site script $ac_site_file" >&6;}
1875     sed 's/^/| /' "$ac_site_file" >&5
1876     . "$ac_site_file"
1877   fi
1878 done
1879
1880 if test -r "$cache_file"; then
1881   # Some versions of bash will fail to source /dev/null (special
1882   # files actually), so we avoid doing that.
1883   if test -f "$cache_file"; then
1884     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1885 echo "$as_me: loading cache $cache_file" >&6;}
1886     case $cache_file in
1887       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1888       *)                      . "./$cache_file";;
1889     esac
1890   fi
1891 else
1892   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1893 echo "$as_me: creating cache $cache_file" >&6;}
1894   >$cache_file
1895 fi
1896
1897 # Check that the precious variables saved in the cache have kept the same
1898 # value.
1899 ac_cache_corrupted=false
1900 for ac_var in $ac_precious_vars; do
1901   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1902   eval ac_new_set=\$ac_env_${ac_var}_set
1903   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1904   eval ac_new_val=\$ac_env_${ac_var}_value
1905   case $ac_old_set,$ac_new_set in
1906     set,)
1907       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1908 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1909       ac_cache_corrupted=: ;;
1910     ,set)
1911       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1912 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1913       ac_cache_corrupted=: ;;
1914     ,);;
1915     *)
1916       if test "x$ac_old_val" != "x$ac_new_val"; then
1917         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1918 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1919         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1920 echo "$as_me:   former value:  $ac_old_val" >&2;}
1921         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1922 echo "$as_me:   current value: $ac_new_val" >&2;}
1923         ac_cache_corrupted=:
1924       fi;;
1925   esac
1926   # Pass precious variables to config.status.
1927   if test "$ac_new_set" = set; then
1928     case $ac_new_val in
1929     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1930     *) ac_arg=$ac_var=$ac_new_val ;;
1931     esac
1932     case " $ac_configure_args " in
1933       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1934       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1935     esac
1936   fi
1937 done
1938 if $ac_cache_corrupted; then
1939   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1940 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1941   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1942 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970 ac_ext=c
1971 ac_cpp='$CPP $CPPFLAGS'
1972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975
1976
1977 # The argument here is just something that should be in the current directory
1978 # (for sanity checking)
1979
1980 am__api_version='1.10'
1981
1982 ac_aux_dir=
1983 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1984   if test -f "$ac_dir/install-sh"; then
1985     ac_aux_dir=$ac_dir
1986     ac_install_sh="$ac_aux_dir/install-sh -c"
1987     break
1988   elif test -f "$ac_dir/install.sh"; then
1989     ac_aux_dir=$ac_dir
1990     ac_install_sh="$ac_aux_dir/install.sh -c"
1991     break
1992   elif test -f "$ac_dir/shtool"; then
1993     ac_aux_dir=$ac_dir
1994     ac_install_sh="$ac_aux_dir/shtool install -c"
1995     break
1996   fi
1997 done
1998 if test -z "$ac_aux_dir"; then
1999   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2011
2012
2013 # Find a good install program.  We prefer a C program (faster),
2014 # so one script is as good as another.  But avoid the broken or
2015 # incompatible versions:
2016 # SysV /etc/install, /usr/sbin/install
2017 # SunOS /usr/etc/install
2018 # IRIX /sbin/install
2019 # AIX /bin/install
2020 # AmigaOS /C/install, which installs bootblocks on floppy discs
2021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2024 # OS/2's system install, which has a completely different semantic
2025 # ./install, which can be erroneously created by make from ./install.sh.
2026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2028 if test -z "$INSTALL"; then
2029 if test "${ac_cv_path_install+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   # Account for people who put trailing slashes in PATH elements.
2038 case $as_dir/ in
2039   ./ | .// | /cC/* | \
2040   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2041   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2042   /usr/ucb/* ) ;;
2043   *)
2044     # OSF1 and SCO ODT 3.0 have their own names for install.
2045     # Don't use installbsd from OSF since it installs stuff as root
2046     # by default.
2047     for ac_prog in ginstall scoinst install; do
2048       for ac_exec_ext in '' $ac_executable_extensions; do
2049         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2050           if test $ac_prog = install &&
2051             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2052             # AIX install.  It has an incompatible calling convention.
2053             :
2054           elif test $ac_prog = install &&
2055             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2056             # program-specific install script used by HP pwplus--don't use.
2057             :
2058           else
2059             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2060             break 3
2061           fi
2062         fi
2063       done
2064     done
2065     ;;
2066 esac
2067 done
2068 IFS=$as_save_IFS
2069
2070
2071 fi
2072   if test "${ac_cv_path_install+set}" = set; then
2073     INSTALL=$ac_cv_path_install
2074   else
2075     # As a last resort, use the slow shell script.  Don't cache a
2076     # value for INSTALL within a source directory, because that will
2077     # break other packages using the cache if that directory is
2078     # removed, or if the value is a relative name.
2079     INSTALL=$ac_install_sh
2080   fi
2081 fi
2082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2083 echo "${ECHO_T}$INSTALL" >&6; }
2084
2085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2086 # It thinks the first close brace ends the variable substitution.
2087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2088
2089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2090
2091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2092
2093 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2094 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2095 # Just in case
2096 sleep 1
2097 echo timestamp > conftest.file
2098 # Do `set' in a subshell so we don't clobber the current shell's
2099 # arguments.  Must try -L first in case configure is actually a
2100 # symlink; some systems play weird games with the mod time of symlinks
2101 # (eg FreeBSD returns the mod time of the symlink's containing
2102 # directory).
2103 if (
2104    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2105    if test "$*" = "X"; then
2106       # -L didn't work.
2107       set X `ls -t $srcdir/configure conftest.file`
2108    fi
2109    rm -f conftest.file
2110    if test "$*" != "X $srcdir/configure conftest.file" \
2111       && test "$*" != "X conftest.file $srcdir/configure"; then
2112
2113       # If neither matched, then we have a broken ls.  This can happen
2114       # if, for instance, CONFIG_SHELL is bash and it inherits a
2115       # broken ls alias from the environment.  This has actually
2116       # happened.  Such a system could not be considered "sane".
2117       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2118 alias in your environment" >&5
2119 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2120 alias in your environment" >&2;}
2121    { (exit 1); exit 1; }; }
2122    fi
2123
2124    test "$2" = conftest.file
2125    )
2126 then
2127    # Ok.
2128    :
2129 else
2130    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2131 Check your system clock" >&5
2132 echo "$as_me: error: newly created file is older than distributed files!
2133 Check your system clock" >&2;}
2134    { (exit 1); exit 1; }; }
2135 fi
2136 { echo "$as_me:$LINENO: result: yes" >&5
2137 echo "${ECHO_T}yes" >&6; }
2138 test "$program_prefix" != NONE &&
2139   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2140 # Use a double $ so make ignores it.
2141 test "$program_suffix" != NONE &&
2142   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2143 # Double any \ or $.  echo might interpret backslashes.
2144 # By default was `s,x,x', remove it if useless.
2145 cat <<\_ACEOF >conftest.sed
2146 s/[\\$]/&&/g;s/;s,x,x,$//
2147 _ACEOF
2148 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2149 rm -f conftest.sed
2150
2151 # expand $ac_aux_dir to an absolute path
2152 am_aux_dir=`cd $ac_aux_dir && pwd`
2153
2154 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2155 # Use eval to expand $SHELL
2156 if eval "$MISSING --run true"; then
2157   am_missing_run="$MISSING --run "
2158 else
2159   am_missing_run=
2160   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2161 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2162 fi
2163
2164 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2165 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2166 if test -z "$MKDIR_P"; then
2167   if test "${ac_cv_path_mkdir+set}" = set; then
2168   echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   for ac_prog in mkdir gmkdir; do
2176          for ac_exec_ext in '' $ac_executable_extensions; do
2177            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2178            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2179              'mkdir (GNU coreutils) '* | \
2180              'mkdir (coreutils) '* | \
2181              'mkdir (fileutils) '4.1*)
2182                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2183                break 3;;
2184            esac
2185          done
2186        done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191
2192   if test "${ac_cv_path_mkdir+set}" = set; then
2193     MKDIR_P="$ac_cv_path_mkdir -p"
2194   else
2195     # As a last resort, use the slow shell script.  Don't cache a
2196     # value for MKDIR_P within a source directory, because that will
2197     # break other packages using the cache if that directory is
2198     # removed, or if the value is a relative name.
2199     test -d ./--version && rmdir ./--version
2200     MKDIR_P="$ac_install_sh -d"
2201   fi
2202 fi
2203 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2204 echo "${ECHO_T}$MKDIR_P" >&6; }
2205
2206 mkdir_p="$MKDIR_P"
2207 case $mkdir_p in
2208   [\\/$]* | ?:[\\/]*) ;;
2209   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2210 esac
2211
2212 for ac_prog in gawk mawk nawk awk
2213 do
2214   # Extract the first word of "$ac_prog", so it can be a program name with args.
2215 set dummy $ac_prog; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_AWK+set}" = set; then
2219   echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221   if test -n "$AWK"; then
2222   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227   IFS=$as_save_IFS
2228   test -z "$as_dir" && as_dir=.
2229   for ac_exec_ext in '' $ac_executable_extensions; do
2230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231     ac_cv_prog_AWK="$ac_prog"
2232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233     break 2
2234   fi
2235 done
2236 done
2237 IFS=$as_save_IFS
2238
2239 fi
2240 fi
2241 AWK=$ac_cv_prog_AWK
2242 if test -n "$AWK"; then
2243   { echo "$as_me:$LINENO: result: $AWK" >&5
2244 echo "${ECHO_T}$AWK" >&6; }
2245 else
2246   { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2248 fi
2249
2250
2251   test -n "$AWK" && break
2252 done
2253
2254 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2256 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2257 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2258   echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260   cat >conftest.make <<\_ACEOF
2261 SHELL = /bin/sh
2262 all:
2263         @echo '@@@%%%=$(MAKE)=@@@%%%'
2264 _ACEOF
2265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2267   *@@@%%%=?*=@@@%%%*)
2268     eval ac_cv_prog_make_${ac_make}_set=yes;;
2269   *)
2270     eval ac_cv_prog_make_${ac_make}_set=no;;
2271 esac
2272 rm -f conftest.make
2273 fi
2274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2275   { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2277   SET_MAKE=
2278 else
2279   { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281   SET_MAKE="MAKE=${MAKE-make}"
2282 fi
2283
2284 rm -rf .tst 2>/dev/null
2285 mkdir .tst 2>/dev/null
2286 if test -d .tst; then
2287   am__leading_dot=.
2288 else
2289   am__leading_dot=_
2290 fi
2291 rmdir .tst 2>/dev/null
2292
2293 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2294   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2295   # is not polluted with repeated "-I."
2296   am__isrc=' -I$(srcdir)'
2297   # test to see if srcdir already configured
2298   if test -f $srcdir/config.status; then
2299     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2300 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2301    { (exit 1); exit 1; }; }
2302   fi
2303 fi
2304
2305 # test whether we have cygpath
2306 if test -z "$CYGPATH_W"; then
2307   if (cygpath --version) >/dev/null 2>/dev/null; then
2308     CYGPATH_W='cygpath -w'
2309   else
2310     CYGPATH_W=echo
2311   fi
2312 fi
2313
2314
2315 # Define the identity of the package.
2316  PACKAGE='glog'
2317  VERSION='0.1.2'
2318
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE "$PACKAGE"
2322 _ACEOF
2323
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define VERSION "$VERSION"
2327 _ACEOF
2328
2329 # Some tools Automake needs.
2330
2331 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2332
2333
2334 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2335
2336
2337 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2338
2339
2340 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2341
2342
2343 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2344
2345 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2346
2347 # Installed binaries are usually stripped using `strip' when the user
2348 # run `make install-strip'.  However `strip' might not be the right
2349 # tool to use in cross-compilation environments, therefore Automake
2350 # will honor the `STRIP' environment variable to overrule this program.
2351 if test "$cross_compiling" != no; then
2352   if test -n "$ac_tool_prefix"; then
2353   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}strip; ac_word=$2
2355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2357 if test "${ac_cv_prog_STRIP+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   if test -n "$STRIP"; then
2361   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2362 else
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 for as_dir in $PATH
2365 do
2366   IFS=$as_save_IFS
2367   test -z "$as_dir" && as_dir=.
2368   for ac_exec_ext in '' $ac_executable_extensions; do
2369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2372     break 2
2373   fi
2374 done
2375 done
2376 IFS=$as_save_IFS
2377
2378 fi
2379 fi
2380 STRIP=$ac_cv_prog_STRIP
2381 if test -n "$STRIP"; then
2382   { echo "$as_me:$LINENO: result: $STRIP" >&5
2383 echo "${ECHO_T}$STRIP" >&6; }
2384 else
2385   { echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6; }
2387 fi
2388
2389
2390 fi
2391 if test -z "$ac_cv_prog_STRIP"; then
2392   ac_ct_STRIP=$STRIP
2393   # Extract the first word of "strip", so it can be a program name with args.
2394 set dummy strip; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$ac_ct_STRIP"; then
2401   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_ac_ct_STRIP="strip"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421 if test -n "$ac_ct_STRIP"; then
2422   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2423 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429   if test "x$ac_ct_STRIP" = x; then
2430     STRIP=":"
2431   else
2432     case $cross_compiling:$ac_tool_warned in
2433 yes:)
2434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet.  If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&5
2437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet.  If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2440 ac_tool_warned=yes ;;
2441 esac
2442     STRIP=$ac_ct_STRIP
2443   fi
2444 else
2445   STRIP="$ac_cv_prog_STRIP"
2446 fi
2447
2448 fi
2449 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2450
2451 # We need awk for the "check" target.  The system "awk" is bad on
2452 # some platforms.
2453 # Always define AMTAR for backward compatibility.
2454
2455 AMTAR=${AMTAR-"${am_missing_run}tar"}
2456
2457 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2458
2459
2460
2461
2462
2463 ac_config_headers="$ac_config_headers src/config.h"
2464
2465
2466 # Checks for programs.
2467 ac_ext=c
2468 ac_cpp='$CPP $CPPFLAGS'
2469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472 if test -n "$ac_tool_prefix"; then
2473   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_CC+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   if test -n "$CC"; then
2481   ac_cv_prog_CC="$CC" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488   for ac_exec_ext in '' $ac_executable_extensions; do
2489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 CC=$ac_cv_prog_CC
2501 if test -n "$CC"; then
2502   { echo "$as_me:$LINENO: result: $CC" >&5
2503 echo "${ECHO_T}$CC" >&6; }
2504 else
2505   { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2507 fi
2508
2509
2510 fi
2511 if test -z "$ac_cv_prog_CC"; then
2512   ac_ct_CC=$CC
2513   # Extract the first word of "gcc", so it can be a program name with args.
2514 set dummy gcc; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   if test -n "$ac_ct_CC"; then
2521   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528   for ac_exec_ext in '' $ac_executable_extensions; do
2529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530     ac_cv_prog_ac_ct_CC="gcc"
2531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541 if test -n "$ac_ct_CC"; then
2542   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2543 echo "${ECHO_T}$ac_ct_CC" >&6; }
2544 else
2545   { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2547 fi
2548
2549   if test "x$ac_ct_CC" = x; then
2550     CC=""
2551   else
2552     case $cross_compiling:$ac_tool_warned in
2553 yes:)
2554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet.  If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&5
2557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2558 whose name does not start with the host triplet.  If you think this
2559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2560 ac_tool_warned=yes ;;
2561 esac
2562     CC=$ac_ct_CC
2563   fi
2564 else
2565   CC="$ac_cv_prog_CC"
2566 fi
2567
2568 if test -z "$CC"; then
2569           if test -n "$ac_tool_prefix"; then
2570     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}cc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   if test -n "$CC"; then
2578   ac_cv_prog_CC="$CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585   for ac_exec_ext in '' $ac_executable_extensions; do
2586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587     ac_cv_prog_CC="${ac_tool_prefix}cc"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 CC=$ac_cv_prog_CC
2598 if test -n "$CC"; then
2599   { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2601 else
2602   { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2604 fi
2605
2606
2607   fi
2608 fi
2609 if test -z "$CC"; then
2610   # Extract the first word of "cc", so it can be a program name with args.
2611 set dummy cc; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$CC"; then
2618   ac_cv_prog_CC="$CC" # Let the user override the test.
2619 else
2620   ac_prog_rejected=no
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626   for ac_exec_ext in '' $ac_executable_extensions; do
2627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2629        ac_prog_rejected=yes
2630        continue
2631      fi
2632     ac_cv_prog_CC="cc"
2633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634     break 2
2635   fi
2636 done
2637 done
2638 IFS=$as_save_IFS
2639
2640 if test $ac_prog_rejected = yes; then
2641   # We found a bogon in the path, so make sure we never use it.
2642   set dummy $ac_cv_prog_CC
2643   shift
2644   if test $# != 0; then
2645     # We chose a different compiler from the bogus one.
2646     # However, it has the same basename, so the bogon will be chosen
2647     # first if we set CC to just the basename; use the full file name.
2648     shift
2649     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2650   fi
2651 fi
2652 fi
2653 fi
2654 CC=$ac_cv_prog_CC
2655 if test -n "$CC"; then
2656   { echo "$as_me:$LINENO: result: $CC" >&5
2657 echo "${ECHO_T}$CC" >&6; }
2658 else
2659   { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2661 fi
2662
2663
2664 fi
2665 if test -z "$CC"; then
2666   if test -n "$ac_tool_prefix"; then
2667   for ac_prog in cl.exe
2668   do
2669     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_CC+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   if test -n "$CC"; then
2677   ac_cv_prog_CC="$CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684   for ac_exec_ext in '' $ac_executable_extensions; do
2685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691 done
2692 IFS=$as_save_IFS
2693
2694 fi
2695 fi
2696 CC=$ac_cv_prog_CC
2697 if test -n "$CC"; then
2698   { echo "$as_me:$LINENO: result: $CC" >&5
2699 echo "${ECHO_T}$CC" >&6; }
2700 else
2701   { echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6; }
2703 fi
2704
2705
2706     test -n "$CC" && break
2707   done
2708 fi
2709 if test -z "$CC"; then
2710   ac_ct_CC=$CC
2711   for ac_prog in cl.exe
2712 do
2713   # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720   if test -n "$ac_ct_CC"; then
2721   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728   for ac_exec_ext in '' $ac_executable_extensions; do
2729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730     ac_cv_prog_ac_ct_CC="$ac_prog"
2731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2732     break 2
2733   fi
2734 done
2735 done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2743 echo "${ECHO_T}$ac_ct_CC" >&6; }
2744 else
2745   { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2747 fi
2748
2749
2750   test -n "$ac_ct_CC" && break
2751 done
2752
2753   if test "x$ac_ct_CC" = x; then
2754     CC=""
2755   else
2756     case $cross_compiling:$ac_tool_warned in
2757 yes:)
2758 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2759 whose name does not start with the host triplet.  If you think this
2760 configuration is useful to you, please write to autoconf@gnu.org." >&5
2761 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2762 whose name does not start with the host triplet.  If you think this
2763 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2764 ac_tool_warned=yes ;;
2765 esac
2766     CC=$ac_ct_CC
2767   fi
2768 fi
2769
2770 fi
2771
2772
2773 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2774 See \`config.log' for more details." >&5
2775 echo "$as_me: error: no acceptable C compiler found in \$PATH
2776 See \`config.log' for more details." >&2;}
2777    { (exit 1); exit 1; }; }
2778
2779 # Provide some information about the compiler.
2780 echo "$as_me:$LINENO: checking for C compiler version" >&5
2781 ac_compiler=`set X $ac_compile; echo $2`
2782 { (ac_try="$ac_compiler --version >&5"
2783 case "(($ac_try" in
2784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785   *) ac_try_echo=$ac_try;;
2786 esac
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788   (eval "$ac_compiler --version >&5") 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }
2792 { (ac_try="$ac_compiler -v >&5"
2793 case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_compiler -v >&5") 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }
2802 { (ac_try="$ac_compiler -V >&5"
2803 case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_compiler -V >&5") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }
2812
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819
2820 int
2821 main ()
2822 {
2823
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 ac_clean_files_save=$ac_clean_files
2829 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2830 # Try to create an executable without -o first, disregard a.out.
2831 # It will help us diagnose broken compilers, and finding out an intuition
2832 # of exeext.
2833 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2834 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2835 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2836 #
2837 # List of possible output files, starting from the most likely.
2838 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2839 # only as a last resort.  b.out is created by i960 compilers.
2840 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2841 #
2842 # The IRIX 6 linker writes into existing files which may not be
2843 # executable, retaining their permissions.  Remove them first so a
2844 # subsequent execution test works.
2845 ac_rmfiles=
2846 for ac_file in $ac_files
2847 do
2848   case $ac_file in
2849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2850     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2851   esac
2852 done
2853 rm -f $ac_rmfiles
2854
2855 if { (ac_try="$ac_link_default"
2856 case "(($ac_try" in
2857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858   *) ac_try_echo=$ac_try;;
2859 esac
2860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861   (eval "$ac_link_default") 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; then
2865   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2866 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2867 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2868 # so that the user can short-circuit this test for compilers unknown to
2869 # Autoconf.
2870 for ac_file in $ac_files ''
2871 do
2872   test -f "$ac_file" || continue
2873   case $ac_file in
2874     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2875         ;;
2876     [ab].out )
2877         # We found the default executable, but exeext='' is most
2878         # certainly right.
2879         break;;
2880     *.* )
2881         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2882         then :; else
2883            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2884         fi
2885         # We set ac_cv_exeext here because the later test for it is not
2886         # safe: cross compilers may not add the suffix if given an `-o'
2887         # argument, so we may need to know it at that point already.
2888         # Even if this section looks crufty: it has the advantage of
2889         # actually working.
2890         break;;
2891     * )
2892         break;;
2893   esac
2894 done
2895 test "$ac_cv_exeext" = no && ac_cv_exeext=
2896
2897 else
2898   ac_file=''
2899 fi
2900
2901 { echo "$as_me:$LINENO: result: $ac_file" >&5
2902 echo "${ECHO_T}$ac_file" >&6; }
2903 if test -z "$ac_file"; then
2904   echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2906
2907 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2908 See \`config.log' for more details." >&5
2909 echo "$as_me: error: C compiler cannot create executables
2910 See \`config.log' for more details." >&2;}
2911    { (exit 77); exit 77; }; }
2912 fi
2913
2914 ac_exeext=$ac_cv_exeext
2915
2916 # Check that the compiler produces executables we can run.  If not, either
2917 # the compiler is broken, or we cross compile.
2918 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2919 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2920 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2921 # If not cross compiling, check that we can run a simple program.
2922 if test "$cross_compiling" != yes; then
2923   if { ac_try='./$ac_file'
2924   { (case "(($ac_try" in
2925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926   *) ac_try_echo=$ac_try;;
2927 esac
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929   (eval "$ac_try") 2>&5
2930   ac_status=$?
2931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; }; then
2933     cross_compiling=no
2934   else
2935     if test "$cross_compiling" = maybe; then
2936         cross_compiling=yes
2937     else
2938         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2939 If you meant to cross compile, use \`--host'.
2940 See \`config.log' for more details." >&5
2941 echo "$as_me: error: cannot run C compiled programs.
2942 If you meant to cross compile, use \`--host'.
2943 See \`config.log' for more details." >&2;}
2944    { (exit 1); exit 1; }; }
2945     fi
2946   fi
2947 fi
2948 { echo "$as_me:$LINENO: result: yes" >&5
2949 echo "${ECHO_T}yes" >&6; }
2950
2951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2952 ac_clean_files=$ac_clean_files_save
2953 # Check that the compiler produces executables we can run.  If not, either
2954 # the compiler is broken, or we cross compile.
2955 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2957 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2958 echo "${ECHO_T}$cross_compiling" >&6; }
2959
2960 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2962 if { (ac_try="$ac_link"
2963 case "(($ac_try" in
2964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965   *) ac_try_echo=$ac_try;;
2966 esac
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968   (eval "$ac_link") 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); }; then
2972   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2974 # work properly (i.e., refer to `conftest.exe'), while it won't with
2975 # `rm'.
2976 for ac_file in conftest.exe conftest conftest.*; do
2977   test -f "$ac_file" || continue
2978   case $ac_file in
2979     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2980     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2981           break;;
2982     * ) break;;
2983   esac
2984 done
2985 else
2986   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details." >&5
2988 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2989 See \`config.log' for more details." >&2;}
2990    { (exit 1); exit 1; }; }
2991 fi
2992
2993 rm -f conftest$ac_cv_exeext
2994 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2995 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2996
2997 rm -f conftest.$ac_ext
2998 EXEEXT=$ac_cv_exeext
2999 ac_exeext=$EXEEXT
3000 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3001 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3002 if test "${ac_cv_objext+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   cat >conftest.$ac_ext <<_ACEOF
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011
3012 int
3013 main ()
3014 {
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.o conftest.obj
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }; then
3031   for ac_file in conftest.o conftest.obj conftest.*; do
3032   test -f "$ac_file" || continue;
3033   case $ac_file in
3034     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3035     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3036        break;;
3037   esac
3038 done
3039 else
3040   echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3044 See \`config.log' for more details." >&5
3045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details." >&2;}
3047    { (exit 1); exit 1; }; }
3048 fi
3049
3050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3051 fi
3052 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3053 echo "${ECHO_T}$ac_cv_objext" >&6; }
3054 OBJEXT=$ac_cv_objext
3055 ac_objext=$OBJEXT
3056 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   cat >conftest.$ac_ext <<_ACEOF
3062 /* confdefs.h.  */
3063 _ACEOF
3064 cat confdefs.h >>conftest.$ac_ext
3065 cat >>conftest.$ac_ext <<_ACEOF
3066 /* end confdefs.h.  */
3067
3068 int
3069 main ()
3070 {
3071 #ifndef __GNUC__
3072        choke me
3073 #endif
3074
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (ac_try="$ac_compile"
3081 case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_compile") 2>conftest.er1
3087   ac_status=$?
3088   grep -v '^ *+' conftest.er1 >conftest.err
3089   rm -f conftest.er1
3090   cat conftest.err >&5
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); } && {
3093          test -z "$ac_c_werror_flag" ||
3094          test ! -s conftest.err
3095        } && test -s conftest.$ac_objext; then
3096   ac_compiler_gnu=yes
3097 else
3098   echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3100
3101         ac_compiler_gnu=no
3102 fi
3103
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3106
3107 fi
3108 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3109 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3110 GCC=`test $ac_compiler_gnu = yes && echo yes`
3111 ac_test_CFLAGS=${CFLAGS+set}
3112 ac_save_CFLAGS=$CFLAGS
3113 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3114 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_cc_g+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   ac_save_c_werror_flag=$ac_c_werror_flag
3119    ac_c_werror_flag=yes
3120    ac_cv_prog_cc_g=no
3121    CFLAGS="-g"
3122    cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compile") 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } && {
3151          test -z "$ac_c_werror_flag" ||
3152          test ! -s conftest.err
3153        } && test -s conftest.$ac_objext; then
3154   ac_cv_prog_cc_g=yes
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159         CFLAGS=""
3160       cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } && {
3189          test -z "$ac_c_werror_flag" ||
3190          test ! -s conftest.err
3191        } && test -s conftest.$ac_objext; then
3192   :
3193 else
3194   echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197         ac_c_werror_flag=$ac_save_c_werror_flag
3198          CFLAGS="-g"
3199          cat >conftest.$ac_ext <<_ACEOF
3200 /* confdefs.h.  */
3201 _ACEOF
3202 cat confdefs.h >>conftest.$ac_ext
3203 cat >>conftest.$ac_ext <<_ACEOF
3204 /* end confdefs.h.  */
3205
3206 int
3207 main ()
3208 {
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_compile") 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } && {
3228          test -z "$ac_c_werror_flag" ||
3229          test ! -s conftest.err
3230        } && test -s conftest.$ac_objext; then
3231   ac_cv_prog_cc_g=yes
3232 else
3233   echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246    ac_c_werror_flag=$ac_save_c_werror_flag
3247 fi
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251   CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253   if test "$GCC" = yes; then
3254     CFLAGS="-g -O2"
3255   else
3256     CFLAGS="-g"
3257   fi
3258 else
3259   if test "$GCC" = yes; then
3260     CFLAGS="-O2"
3261   else
3262     CFLAGS=
3263   fi
3264 fi
3265 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268   echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270   ac_cv_prog_cc_c89=no
3271 ac_save_CC=$CC
3272 cat >conftest.$ac_ext <<_ACEOF
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278 #include <stdarg.h>
3279 #include <stdio.h>
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3286      char **p;
3287      int i;
3288 {
3289   return p[i];
3290 }
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3292 {
3293   char *s;
3294   va_list v;
3295   va_start (v,p);
3296   s = g (p, va_arg (v,int));
3297   va_end (v);
3298   return s;
3299 }
3300
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3302    function prototypes and stuff, but not '\xHH' hex character constants.
3303    These don't provoke an error unfortunately, instead are silently treated
3304    as 'x'.  The following induces an error, until -std is added to get
3305    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3306    array size at least.  It's necessary to write '\x00'==0 to get something
3307    that's true only with -std.  */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311    inside strings and character constants.  */
3312 #define FOO(x) 'x'
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 int argc;
3320 char **argv;
3321 int
3322 main ()
3323 {
3324 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332   CC="$ac_save_CC $ac_arg"
3333   rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3335 case "(($ac_try" in
3336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337   *) ac_try_echo=$ac_try;;
3338 esac
3339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340   (eval "$ac_compile") 2>conftest.er1
3341   ac_status=$?
3342   grep -v '^ *+' conftest.er1 >conftest.err
3343   rm -f conftest.er1
3344   cat conftest.err >&5
3345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346   (exit $ac_status); } && {
3347          test -z "$ac_c_werror_flag" ||
3348          test ! -s conftest.err
3349        } && test -s conftest.$ac_objext; then
3350   ac_cv_prog_cc_c89=$ac_arg
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext
3359   test "x$ac_cv_prog_cc_c89" != "xno" && break
3360 done
3361 rm -f conftest.$ac_ext
3362 CC=$ac_save_CC
3363
3364 fi
3365 # AC_CACHE_VAL
3366 case "x$ac_cv_prog_cc_c89" in
3367   x)
3368     { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3370   xno)
3371     { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3373   *)
3374     CC="$CC $ac_cv_prog_cc_c89"
3375     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3377 esac
3378
3379
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385 DEPDIR="${am__leading_dot}deps"
3386
3387 ac_config_commands="$ac_config_commands depfiles"
3388
3389
3390 am_make=${MAKE-make}
3391 cat > confinc << 'END'
3392 am__doit:
3393         @echo done
3394 .PHONY: am__doit
3395 END
3396 # If we don't find an include directive, just comment out the code.
3397 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3398 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3399 am__include="#"
3400 am__quote=
3401 _am_result=none
3402 # First try GNU make style include.
3403 echo "include confinc" > confmf
3404 # We grep out `Entering directory' and `Leaving directory'
3405 # messages which can occur if `w' ends up in MAKEFLAGS.
3406 # In particular we don't look at `^make:' because GNU make might
3407 # be invoked under some other name (usually "gmake"), in which
3408 # case it prints its new name instead of `make'.
3409 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3410    am__include=include
3411    am__quote=
3412    _am_result=GNU
3413 fi
3414 # Now try BSD make style include.
3415 if test "$am__include" = "#"; then
3416    echo '.include "confinc"' > confmf
3417    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3418       am__include=.include
3419       am__quote="\""
3420       _am_result=BSD
3421    fi
3422 fi
3423
3424
3425 { echo "$as_me:$LINENO: result: $_am_result" >&5
3426 echo "${ECHO_T}$_am_result" >&6; }
3427 rm -f confinc confmf
3428
3429 # Check whether --enable-dependency-tracking was given.
3430 if test "${enable_dependency_tracking+set}" = set; then
3431   enableval=$enable_dependency_tracking;
3432 fi
3433
3434 if test "x$enable_dependency_tracking" != xno; then
3435   am_depcomp="$ac_aux_dir/depcomp"
3436   AMDEPBACKSLASH='\'
3437 fi
3438  if test "x$enable_dependency_tracking" != xno; then
3439   AMDEP_TRUE=
3440   AMDEP_FALSE='#'
3441 else
3442   AMDEP_TRUE='#'
3443   AMDEP_FALSE=
3444 fi
3445
3446
3447
3448 depcc="$CC"   am_compiler_list=
3449
3450 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3451 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3452 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3456   # We make a subdir and do the tests there.  Otherwise we can end up
3457   # making bogus files that we don't know about and never remove.  For
3458   # instance it was reported that on HP-UX the gcc test will end up
3459   # making a dummy file named `D' -- because `-MD' means `put the output
3460   # in D'.
3461   mkdir conftest.dir
3462   # Copy depcomp to subdir because otherwise we won't find it if we're
3463   # using a relative directory.
3464   cp "$am_depcomp" conftest.dir
3465   cd conftest.dir
3466   # We will build objects and dependencies in a subdirectory because
3467   # it helps to detect inapplicable dependency modes.  For instance
3468   # both Tru64's cc and ICC support -MD to output dependencies as a
3469   # side effect of compilation, but ICC will put the dependencies in
3470   # the current directory while Tru64 will put them in the object
3471   # directory.
3472   mkdir sub
3473
3474   am_cv_CC_dependencies_compiler_type=none
3475   if test "$am_compiler_list" = ""; then
3476      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3477   fi
3478   for depmode in $am_compiler_list; do
3479     # Setup a source with many dependencies, because some compilers
3480     # like to wrap large dependency lists on column 80 (with \), and
3481     # we should not choose a depcomp mode which is confused by this.
3482     #
3483     # We need to recreate these files for each test, as the compiler may
3484     # overwrite some of them when testing with obscure command lines.
3485     # This happens at least with the AIX C compiler.
3486     : > sub/conftest.c
3487     for i in 1 2 3 4 5 6; do
3488       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3489       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3490       # Solaris 8's {/usr,}/bin/sh.
3491       touch sub/conftst$i.h
3492     done
3493     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3494
3495     case $depmode in
3496     nosideeffect)
3497       # after this tag, mechanisms are not by side-effect, so they'll
3498       # only be used when explicitly requested
3499       if test "x$enable_dependency_tracking" = xyes; then
3500         continue
3501       else
3502         break
3503       fi
3504       ;;
3505     none) break ;;
3506     esac
3507     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508     # mode.  It turns out that the SunPro C++ compiler does not properly
3509     # handle `-M -o', and we need to detect this.
3510     if depmode=$depmode \
3511        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3512        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3513        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3514          >/dev/null 2>conftest.err &&
3515        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3516        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3517        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3518        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3519       # icc doesn't choke on unknown options, it will just issue warnings
3520       # or remarks (even with -Werror).  So we grep stderr for any message
3521       # that says an option was ignored or not supported.
3522       # When given -MP, icc 7.0 and 7.1 complain thusly:
3523       #   icc: Command line warning: ignoring option '-M'; no argument required
3524       # The diagnosis changed in icc 8.0:
3525       #   icc: Command line remark: option '-MP' not supported
3526       if (grep 'ignoring option' conftest.err ||
3527           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3528         am_cv_CC_dependencies_compiler_type=$depmode
3529         break
3530       fi
3531     fi
3532   done
3533
3534   cd ..
3535   rm -rf conftest.dir
3536 else
3537   am_cv_CC_dependencies_compiler_type=none
3538 fi
3539
3540 fi
3541 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3542 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3543 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3544
3545  if
3546   test "x$enable_dependency_tracking" != xno \
3547   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3548   am__fastdepCC_TRUE=
3549   am__fastdepCC_FALSE='#'
3550 else
3551   am__fastdepCC_TRUE='#'
3552   am__fastdepCC_FALSE=
3553 fi
3554
3555
3556 ac_ext=c
3557 ac_cpp='$CPP $CPPFLAGS'
3558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3562 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3563 # On Suns, sometimes $CPP names a directory.
3564 if test -n "$CPP" && test -d "$CPP"; then
3565   CPP=
3566 fi
3567 if test -z "$CPP"; then
3568   if test "${ac_cv_prog_CPP+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571       # Double quotes because CPP needs to be expanded
3572     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3573     do
3574       ac_preproc_ok=false
3575 for ac_c_preproc_warn_flag in '' yes
3576 do
3577   # Use a header file that comes with gcc, so configuring glibc
3578   # with a fresh cross-compiler works.
3579   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3580   # <limits.h> exists even on freestanding compilers.
3581   # On the NeXT, cc -E runs the code through the compiler's parser,
3582   # not just through cpp. "Syntax error" is here to catch this case.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #ifdef __STDC__
3590 # include <limits.h>
3591 #else
3592 # include <assert.h>
3593 #endif
3594                      Syntax error
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } >/dev/null && {
3609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3610          test ! -s conftest.err
3611        }; then
3612   :
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617   # Broken: fails on valid input.
3618 continue
3619 fi
3620
3621 rm -f conftest.err conftest.$ac_ext
3622
3623   # OK, works on sane cases.  Now check whether nonexistent headers
3624   # can be detected and how.
3625   cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h.  */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h.  */
3631 #include <ac_nonexistent.h>
3632 _ACEOF
3633 if { (ac_try="$ac_cpp conftest.$ac_ext"
3634 case "(($ac_try" in
3635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636   *) ac_try_echo=$ac_try;;
3637 esac
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3640   ac_status=$?
3641   grep -v '^ *+' conftest.er1 >conftest.err
3642   rm -f conftest.er1
3643   cat conftest.err >&5
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); } >/dev/null && {
3646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3647          test ! -s conftest.err
3648        }; then
3649   # Broken: success on invalid input.
3650 continue
3651 else
3652   echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3654
3655   # Passes both tests.
3656 ac_preproc_ok=:
3657 break
3658 fi
3659
3660 rm -f conftest.err conftest.$ac_ext
3661
3662 done
3663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3664 rm -f conftest.err conftest.$ac_ext
3665 if $ac_preproc_ok; then
3666   break
3667 fi
3668
3669     done
3670     ac_cv_prog_CPP=$CPP
3671
3672 fi
3673   CPP=$ac_cv_prog_CPP
3674 else
3675   ac_cv_prog_CPP=$CPP
3676 fi
3677 { echo "$as_me:$LINENO: result: $CPP" >&5
3678 echo "${ECHO_T}$CPP" >&6; }
3679 ac_preproc_ok=false
3680 for ac_c_preproc_warn_flag in '' yes
3681 do
3682   # Use a header file that comes with gcc, so configuring glibc
3683   # with a fresh cross-compiler works.
3684   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685   # <limits.h> exists even on freestanding compilers.
3686   # On the NeXT, cc -E runs the code through the compiler's parser,
3687   # not just through cpp. "Syntax error" is here to catch this case.
3688   cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h.  */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h.  */
3694 #ifdef __STDC__
3695 # include <limits.h>
3696 #else
3697 # include <assert.h>
3698 #endif
3699                      Syntax error
3700 _ACEOF
3701 if { (ac_try="$ac_cpp conftest.$ac_ext"
3702 case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } >/dev/null && {
3714          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3715          test ! -s conftest.err
3716        }; then
3717   :
3718 else
3719   echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722   # Broken: fails on valid input.
3723 continue
3724 fi
3725
3726 rm -f conftest.err conftest.$ac_ext
3727
3728   # OK, works on sane cases.  Now check whether nonexistent headers
3729   # can be detected and how.
3730   cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h.  */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h.  */
3736 #include <ac_nonexistent.h>
3737 _ACEOF
3738 if { (ac_try="$ac_cpp conftest.$ac_ext"
3739 case "(($ac_try" in
3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741   *) ac_try_echo=$ac_try;;
3742 esac
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3745   ac_status=$?
3746   grep -v '^ *+' conftest.er1 >conftest.err
3747   rm -f conftest.er1
3748   cat conftest.err >&5
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); } >/dev/null && {
3751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3752          test ! -s conftest.err
3753        }; then
3754   # Broken: success on invalid input.
3755 continue
3756 else
3757   echo "$as_me: failed program was:" >&5
3758 sed 's/^/| /' conftest.$ac_ext >&5
3759
3760   # Passes both tests.
3761 ac_preproc_ok=:
3762 break
3763 fi
3764
3765 rm -f conftest.err conftest.$ac_ext
3766
3767 done
3768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3769 rm -f conftest.err conftest.$ac_ext
3770 if $ac_preproc_ok; then
3771   :
3772 else
3773   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3774 See \`config.log' for more details." >&5
3775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3776 See \`config.log' for more details." >&2;}
3777    { (exit 1); exit 1; }; }
3778 fi
3779
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
3786 ac_ext=cpp
3787 ac_cpp='$CXXCPP $CPPFLAGS'
3788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3791 if test -z "$CXX"; then
3792   if test -n "$CCC"; then
3793     CXX=$CCC
3794   else
3795     if test -n "$ac_tool_prefix"; then
3796   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3797   do
3798     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3799 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3802 if test "${ac_cv_prog_CXX+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   if test -n "$CXX"; then
3806   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811   IFS=$as_save_IFS
3812   test -z "$as_dir" && as_dir=.
3813   for ac_exec_ext in '' $ac_executable_extensions; do
3814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817     break 2
3818   fi
3819 done
3820 done
3821 IFS=$as_save_IFS
3822
3823 fi
3824 fi
3825 CXX=$ac_cv_prog_CXX
3826 if test -n "$CXX"; then
3827   { echo "$as_me:$LINENO: result: $CXX" >&5
3828 echo "${ECHO_T}$CXX" >&6; }
3829 else
3830   { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3832 fi
3833
3834
3835     test -n "$CXX" && break
3836   done
3837 fi
3838 if test -z "$CXX"; then
3839   ac_ct_CXX=$CXX
3840   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3841 do
3842   # Extract the first word of "$ac_prog", so it can be a program name with args.
3843 set dummy $ac_prog; ac_word=$2
3844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3846 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   if test -n "$ac_ct_CXX"; then
3850   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857   for ac_exec_ext in '' $ac_executable_extensions; do
3858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859     ac_cv_prog_ac_ct_CXX="$ac_prog"
3860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864 done
3865 IFS=$as_save_IFS
3866
3867 fi
3868 fi
3869 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3870 if test -n "$ac_ct_CXX"; then
3871   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3872 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3873 else
3874   { echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6; }
3876 fi
3877
3878
3879   test -n "$ac_ct_CXX" && break
3880 done
3881
3882   if test "x$ac_ct_CXX" = x; then
3883     CXX="g++"
3884   else
3885     case $cross_compiling:$ac_tool_warned in
3886 yes:)
3887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3888 whose name does not start with the host triplet.  If you think this
3889 configuration is useful to you, please write to autoconf@gnu.org." >&5
3890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3891 whose name does not start with the host triplet.  If you think this
3892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3893 ac_tool_warned=yes ;;
3894 esac
3895     CXX=$ac_ct_CXX
3896   fi
3897 fi
3898
3899   fi
3900 fi
3901 # Provide some information about the compiler.
3902 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3903 ac_compiler=`set X $ac_compile; echo $2`
3904 { (ac_try="$ac_compiler --version >&5"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_compiler --version >&5") 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }
3914 { (ac_try="$ac_compiler -v >&5"
3915 case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920   (eval "$ac_compiler -v >&5") 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); }
3924 { (ac_try="$ac_compiler -V >&5"
3925 case "(($ac_try" in
3926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927   *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930   (eval "$ac_compiler -V >&5") 2>&5
3931   ac_status=$?
3932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933   (exit $ac_status); }
3934
3935 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3936 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3937 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h.  */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950 #ifndef __GNUC__
3951        choke me
3952 #endif
3953
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (ac_try="$ac_compile"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_compile") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } && {
3972          test -z "$ac_cxx_werror_flag" ||
3973          test ! -s conftest.err
3974        } && test -s conftest.$ac_objext; then
3975   ac_compiler_gnu=yes
3976 else
3977   echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980         ac_compiler_gnu=no
3981 fi
3982
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3985
3986 fi
3987 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3988 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3989 GXX=`test $ac_compiler_gnu = yes && echo yes`
3990 ac_test_CXXFLAGS=${CXXFLAGS+set}
3991 ac_save_CXXFLAGS=$CXXFLAGS
3992 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3993 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3994 if test "${ac_cv_prog_cxx_g+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3998    ac_cxx_werror_flag=yes
3999    ac_cv_prog_cxx_g=no
4000    CXXFLAGS="-g"
4001    cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007
4008 int
4009 main ()
4010 {
4011
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4018 case "(($ac_try" in
4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020   *) ac_try_echo=$ac_try;;
4021 esac
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023   (eval "$ac_compile") 2>conftest.er1
4024   ac_status=$?
4025   grep -v '^ *+' conftest.er1 >conftest.err
4026   rm -f conftest.er1
4027   cat conftest.err >&5
4028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029   (exit $ac_status); } && {
4030          test -z "$ac_cxx_werror_flag" ||
4031          test ! -s conftest.err
4032        } && test -s conftest.$ac_objext; then
4033   ac_cv_prog_cxx_g=yes
4034 else
4035   echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4037
4038         CXXFLAGS=""
4039       cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h.  */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h.  */
4045
4046 int
4047 main ()
4048 {
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4056 case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061   (eval "$ac_compile") 2>conftest.er1
4062   ac_status=$?
4063   grep -v '^ *+' conftest.er1 >conftest.err
4064   rm -f conftest.er1
4065   cat conftest.err >&5
4066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067   (exit $ac_status); } && {
4068          test -z "$ac_cxx_werror_flag" ||
4069          test ! -s conftest.err
4070        } && test -s conftest.$ac_objext; then
4071   :
4072 else
4073   echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4077          CXXFLAGS="-g"
4078          cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084
4085 int
4086 main ()
4087 {
4088
4089   ;
4090   return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (ac_try="$ac_compile"
4095 case "(($ac_try" in
4096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097   *) ac_try_echo=$ac_try;;
4098 esac
4099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4100   (eval "$ac_compile") 2>conftest.er1
4101   ac_status=$?
4102   grep -v '^ *+' conftest.er1 >conftest.err
4103   rm -f conftest.er1
4104   cat conftest.err >&5
4105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106   (exit $ac_status); } && {
4107          test -z "$ac_cxx_werror_flag" ||
4108          test ! -s conftest.err
4109        } && test -s conftest.$ac_objext; then
4110   ac_cv_prog_cxx_g=yes
4111 else
4112   echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4114
4115
4116 fi
4117
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 fi
4120
4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 fi
4123
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4126 fi
4127 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4128 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4129 if test "$ac_test_CXXFLAGS" = set; then
4130   CXXFLAGS=$ac_save_CXXFLAGS
4131 elif test $ac_cv_prog_cxx_g = yes; then
4132   if test "$GXX" = yes; then
4133     CXXFLAGS="-g -O2"
4134   else
4135     CXXFLAGS="-g"
4136   fi
4137 else
4138   if test "$GXX" = yes; then
4139     CXXFLAGS="-O2"
4140   else
4141     CXXFLAGS=
4142   fi
4143 fi
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149
4150 depcc="$CXX"  am_compiler_list=
4151
4152 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4153 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4154 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4158   # We make a subdir and do the tests there.  Otherwise we can end up
4159   # making bogus files that we don't know about and never remove.  For
4160   # instance it was reported that on HP-UX the gcc test will end up
4161   # making a dummy file named `D' -- because `-MD' means `put the output
4162   # in D'.
4163   mkdir conftest.dir
4164   # Copy depcomp to subdir because otherwise we won't find it if we're
4165   # using a relative directory.
4166   cp "$am_depcomp" conftest.dir
4167   cd conftest.dir
4168   # We will build objects and dependencies in a subdirectory because
4169   # it helps to detect inapplicable dependency modes.  For instance
4170   # both Tru64's cc and ICC support -MD to output dependencies as a
4171   # side effect of compilation, but ICC will put the dependencies in
4172   # the current directory while Tru64 will put them in the object
4173   # directory.
4174   mkdir sub
4175
4176   am_cv_CXX_dependencies_compiler_type=none
4177   if test "$am_compiler_list" = ""; then
4178      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4179   fi
4180   for depmode in $am_compiler_list; do
4181     # Setup a source with many dependencies, because some compilers
4182     # like to wrap large dependency lists on column 80 (with \), and
4183     # we should not choose a depcomp mode which is confused by this.
4184     #
4185     # We need to recreate these files for each test, as the compiler may
4186     # overwrite some of them when testing with obscure command lines.
4187     # This happens at least with the AIX C compiler.
4188     : > sub/conftest.c
4189     for i in 1 2 3 4 5 6; do
4190       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4191       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4192       # Solaris 8's {/usr,}/bin/sh.
4193       touch sub/conftst$i.h
4194     done
4195     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4196
4197     case $depmode in
4198     nosideeffect)
4199       # after this tag, mechanisms are not by side-effect, so they'll
4200       # only be used when explicitly requested
4201       if test "x$enable_dependency_tracking" = xyes; then
4202         continue
4203       else
4204         break
4205       fi
4206       ;;
4207     none) break ;;
4208     esac
4209     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4210     # mode.  It turns out that the SunPro C++ compiler does not properly
4211     # handle `-M -o', and we need to detect this.
4212     if depmode=$depmode \
4213        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4214        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4215        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4216          >/dev/null 2>conftest.err &&
4217        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4218        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4219        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4220        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4221       # icc doesn't choke on unknown options, it will just issue warnings
4222       # or remarks (even with -Werror).  So we grep stderr for any message
4223       # that says an option was ignored or not supported.
4224       # When given -MP, icc 7.0 and 7.1 complain thusly:
4225       #   icc: Command line warning: ignoring option '-M'; no argument required
4226       # The diagnosis changed in icc 8.0:
4227       #   icc: Command line remark: option '-MP' not supported
4228       if (grep 'ignoring option' conftest.err ||
4229           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4230         am_cv_CXX_dependencies_compiler_type=$depmode
4231         break
4232       fi
4233     fi
4234   done
4235
4236   cd ..
4237   rm -rf conftest.dir
4238 else
4239   am_cv_CXX_dependencies_compiler_type=none
4240 fi
4241
4242 fi
4243 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4244 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4245 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4246
4247  if
4248   test "x$enable_dependency_tracking" != xno \
4249   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4250   am__fastdepCXX_TRUE=
4251   am__fastdepCXX_FALSE='#'
4252 else
4253   am__fastdepCXX_TRUE='#'
4254   am__fastdepCXX_FALSE=
4255 fi
4256
4257
4258  if test "$GCC" = yes; then
4259   GCC_TRUE=
4260   GCC_FALSE='#'
4261 else
4262   GCC_TRUE='#'
4263   GCC_FALSE=
4264 fi
4265    # let the Makefile know if we're gcc
4266
4267 # Check whether --enable-shared was given.
4268 if test "${enable_shared+set}" = set; then
4269   enableval=$enable_shared; p=${PACKAGE-default}
4270     case $enableval in
4271     yes) enable_shared=yes ;;
4272     no) enable_shared=no ;;
4273     *)
4274       enable_shared=no
4275       # Look at the argument we got.  We use all the common list separators.
4276       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4277       for pkg in $enableval; do
4278         IFS="$lt_save_ifs"
4279         if test "X$pkg" = "X$p"; then
4280           enable_shared=yes
4281         fi
4282       done
4283       IFS="$lt_save_ifs"
4284       ;;
4285     esac
4286 else
4287   enable_shared=yes
4288 fi
4289
4290
4291 # Check whether --enable-static was given.
4292 if test "${enable_static+set}" = set; then
4293   enableval=$enable_static; p=${PACKAGE-default}
4294     case $enableval in
4295     yes) enable_static=yes ;;
4296     no) enable_static=no ;;
4297     *)
4298      enable_static=no
4299       # Look at the argument we got.  We use all the common list separators.
4300       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4301       for pkg in $enableval; do
4302         IFS="$lt_save_ifs"
4303         if test "X$pkg" = "X$p"; then
4304           enable_static=yes
4305         fi
4306       done
4307       IFS="$lt_save_ifs"
4308       ;;
4309     esac
4310 else
4311   enable_static=yes
4312 fi
4313
4314
4315 # Check whether --enable-fast-install was given.
4316 if test "${enable_fast_install+set}" = set; then
4317   enableval=$enable_fast_install; p=${PACKAGE-default}
4318     case $enableval in
4319     yes) enable_fast_install=yes ;;
4320     no) enable_fast_install=no ;;
4321     *)
4322       enable_fast_install=no
4323       # Look at the argument we got.  We use all the common list separators.
4324       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4325       for pkg in $enableval; do
4326         IFS="$lt_save_ifs"
4327         if test "X$pkg" = "X$p"; then
4328           enable_fast_install=yes
4329         fi
4330       done
4331       IFS="$lt_save_ifs"
4332       ;;
4333     esac
4334 else
4335   enable_fast_install=yes
4336 fi
4337
4338
4339 # Make sure we can run config.sub.
4340 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4341   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4342 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4343    { (exit 1); exit 1; }; }
4344
4345 { echo "$as_me:$LINENO: checking build system type" >&5
4346 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4347 if test "${ac_cv_build+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   ac_build_alias=$build_alias
4351 test "x$ac_build_alias" = x &&
4352   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4353 test "x$ac_build_alias" = x &&
4354   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4355 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4356    { (exit 1); exit 1; }; }
4357 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4358   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4359 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4360    { (exit 1); exit 1; }; }
4361
4362 fi
4363 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4364 echo "${ECHO_T}$ac_cv_build" >&6; }
4365 case $ac_cv_build in
4366 *-*-*) ;;
4367 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4368 echo "$as_me: error: invalid value of canonical build" >&2;}
4369    { (exit 1); exit 1; }; };;
4370 esac
4371 build=$ac_cv_build
4372 ac_save_IFS=$IFS; IFS='-'
4373 set x $ac_cv_build
4374 shift
4375 build_cpu=$1
4376 build_vendor=$2
4377 shift; shift
4378 # Remember, the first character of IFS is used to create $*,
4379 # except with old shells:
4380 build_os=$*
4381 IFS=$ac_save_IFS
4382 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4383
4384
4385 { echo "$as_me:$LINENO: checking host system type" >&5
4386 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4387 if test "${ac_cv_host+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if test "x$host_alias" = x; then
4391   ac_cv_host=$ac_cv_build
4392 else
4393   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4394     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4395 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4396    { (exit 1); exit 1; }; }
4397 fi
4398
4399 fi
4400 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4401 echo "${ECHO_T}$ac_cv_host" >&6; }
4402 case $ac_cv_host in
4403 *-*-*) ;;
4404 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4405 echo "$as_me: error: invalid value of canonical host" >&2;}
4406    { (exit 1); exit 1; }; };;
4407 esac
4408 host=$ac_cv_host
4409 ac_save_IFS=$IFS; IFS='-'
4410 set x $ac_cv_host
4411 shift
4412 host_cpu=$1
4413 host_vendor=$2
4414 shift; shift
4415 # Remember, the first character of IFS is used to create $*,
4416 # except with old shells:
4417 host_os=$*
4418 IFS=$ac_save_IFS
4419 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4420
4421
4422 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4423 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4424 if test "${lt_cv_path_SED+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   # Loop through the user's path and test for sed and gsed.
4428 # Then use that list of sed's as ones to test for truncation.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432   IFS=$as_save_IFS
4433   test -z "$as_dir" && as_dir=.
4434   for lt_ac_prog in sed gsed; do
4435     for ac_exec_ext in '' $ac_executable_extensions; do
4436       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4437         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4438       fi
4439     done
4440   done
4441 done
4442 IFS=$as_save_IFS
4443 lt_ac_max=0
4444 lt_ac_count=0
4445 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4446 # along with /bin/sed that truncates output.
4447 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4448   test ! -f $lt_ac_sed && continue
4449   cat /dev/null > conftest.in
4450   lt_ac_count=0
4451   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4452   # Check for GNU sed and select it if it is found.
4453   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4454     lt_cv_path_SED=$lt_ac_sed
4455     break
4456   fi
4457   while true; do
4458     cat conftest.in conftest.in >conftest.tmp
4459     mv conftest.tmp conftest.in
4460     cp conftest.in conftest.nl
4461     echo >>conftest.nl
4462     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4463     cmp -s conftest.out conftest.nl || break
4464     # 10000 chars as input seems more than enough
4465     test $lt_ac_count -gt 10 && break
4466     lt_ac_count=`expr $lt_ac_count + 1`
4467     if test $lt_ac_count -gt $lt_ac_max; then
4468       lt_ac_max=$lt_ac_count
4469       lt_cv_path_SED=$lt_ac_sed
4470     fi
4471   done
4472 done
4473
4474 fi
4475
4476 SED=$lt_cv_path_SED
4477
4478 { echo "$as_me:$LINENO: result: $SED" >&5
4479 echo "${ECHO_T}$SED" >&6; }
4480
4481 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4482 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4483 if test "${ac_cv_path_GREP+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   # Extract the first word of "grep ggrep" to use in msg output
4487 if test -z "$GREP"; then
4488 set dummy grep ggrep; ac_prog_name=$2
4489 if test "${ac_cv_path_GREP+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   ac_path_GREP_found=false
4493 # Loop through the user's path and test for each of PROGNAME-LIST
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4496 do
4497   IFS=$as_save_IFS
4498   test -z "$as_dir" && as_dir=.
4499   for ac_prog in grep ggrep; do
4500   for ac_exec_ext in '' $ac_executable_extensions; do
4501     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4502     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4503     # Check for GNU ac_path_GREP and select it if it is found.
4504   # Check for GNU $ac_path_GREP
4505 case `"$ac_path_GREP" --version 2>&1` in
4506 *GNU*)
4507   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4508 *)
4509   ac_count=0
4510   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4511   while :
4512   do
4513     cat "conftest.in" "conftest.in" >"conftest.tmp"
4514     mv "conftest.tmp" "conftest.in"
4515     cp "conftest.in" "conftest.nl"
4516     echo 'GREP' >> "conftest.nl"
4517     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519     ac_count=`expr $ac_count + 1`
4520     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4521       # Best one so far, save it but keep looking for a better one
4522       ac_cv_path_GREP="$ac_path_GREP"
4523       ac_path_GREP_max=$ac_count
4524     fi
4525     # 10*(2^10) chars as input seems more than enough
4526     test $ac_count -gt 10 && break
4527   done
4528   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529 esac
4530
4531
4532     $ac_path_GREP_found && break 3
4533   done
4534 done
4535
4536 done
4537 IFS=$as_save_IFS
4538
4539
4540 fi
4541
4542 GREP="$ac_cv_path_GREP"
4543 if test -z "$GREP"; then
4544   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4545 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4546    { (exit 1); exit 1; }; }
4547 fi
4548
4549 else
4550   ac_cv_path_GREP=$GREP
4551 fi
4552
4553
4554 fi
4555 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4556 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4557  GREP="$ac_cv_path_GREP"
4558
4559
4560 { echo "$as_me:$LINENO: checking for egrep" >&5
4561 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4562 if test "${ac_cv_path_EGREP+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4566    then ac_cv_path_EGREP="$GREP -E"
4567    else
4568      # Extract the first word of "egrep" to use in msg output
4569 if test -z "$EGREP"; then
4570 set dummy egrep; ac_prog_name=$2
4571 if test "${ac_cv_path_EGREP+set}" = set; then
4572   echo $ECHO_N "(cached) $ECHO_C" >&6
4573 else
4574   ac_path_EGREP_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4578 do
4579   IFS=$as_save_IFS
4580   test -z "$as_dir" && as_dir=.
4581   for ac_prog in egrep; do
4582   for ac_exec_ext in '' $ac_executable_extensions; do
4583     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4584     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4585     # Check for GNU ac_path_EGREP and select it if it is found.
4586   # Check for GNU $ac_path_EGREP
4587 case `"$ac_path_EGREP" --version 2>&1` in
4588 *GNU*)
4589   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4590 *)
4591   ac_count=0
4592   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4593   while :
4594   do
4595     cat "conftest.in" "conftest.in" >"conftest.tmp"
4596     mv "conftest.tmp" "conftest.in"
4597     cp "conftest.in" "conftest.nl"
4598     echo 'EGREP' >> "conftest.nl"
4599     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601     ac_count=`expr $ac_count + 1`
4602     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4603       # Best one so far, save it but keep looking for a better one
4604       ac_cv_path_EGREP="$ac_path_EGREP"
4605       ac_path_EGREP_max=$ac_count
4606     fi
4607     # 10*(2^10) chars as input seems more than enough
4608     test $ac_count -gt 10 && break
4609   done
4610   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4611 esac
4612
4613
4614     $ac_path_EGREP_found && break 3
4615   done
4616 done
4617
4618 done
4619 IFS=$as_save_IFS
4620
4621
4622 fi
4623
4624 EGREP="$ac_cv_path_EGREP"
4625 if test -z "$EGREP"; then
4626   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4627 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4628    { (exit 1); exit 1; }; }
4629 fi
4630
4631 else
4632   ac_cv_path_EGREP=$EGREP
4633 fi
4634
4635
4636    fi
4637 fi
4638 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4639 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4640  EGREP="$ac_cv_path_EGREP"
4641
4642
4643
4644 # Check whether --with-gnu-ld was given.
4645 if test "${with_gnu_ld+set}" = set; then
4646   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4647 else
4648   with_gnu_ld=no
4649 fi
4650
4651 ac_prog=ld
4652 if test "$GCC" = yes; then
4653   # Check if gcc -print-prog-name=ld gives a path.
4654   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4655 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4656   case $host in
4657   *-*-mingw*)
4658     # gcc leaves a trailing carriage return which upsets mingw
4659     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4660   *)
4661     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4662   esac
4663   case $ac_prog in
4664     # Accept absolute paths.
4665     [\\/]* | ?:[\\/]*)
4666       re_direlt='/[^/][^/]*/\.\./'
4667       # Canonicalize the pathname of ld
4668       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4669       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4670         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4671       done
4672       test -z "$LD" && LD="$ac_prog"
4673       ;;
4674   "")
4675     # If it fails, then pretend we aren't using GCC.
4676     ac_prog=ld
4677     ;;
4678   *)
4679     # If it is relative, then search for the first ld in PATH.
4680     with_gnu_ld=unknown
4681     ;;
4682   esac
4683 elif test "$with_gnu_ld" = yes; then
4684   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4686 else
4687   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4689 fi
4690 if test "${lt_cv_path_LD+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   if test -z "$LD"; then
4694   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4695   for ac_dir in $PATH; do
4696     IFS="$lt_save_ifs"
4697     test -z "$ac_dir" && ac_dir=.
4698     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4699       lt_cv_path_LD="$ac_dir/$ac_prog"
4700       # Check to see if the program is GNU ld.  I'd rather use --version,
4701       # but apparently some variants of GNU ld only accept -v.
4702       # Break only if it was the GNU/non-GNU ld that we prefer.
4703       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4704       *GNU* | *'with BFD'*)
4705         test "$with_gnu_ld" != no && break
4706         ;;
4707       *)
4708         test "$with_gnu_ld" != yes && break
4709         ;;
4710       esac
4711     fi
4712   done
4713   IFS="$lt_save_ifs"
4714 else
4715   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4716 fi
4717 fi
4718
4719 LD="$lt_cv_path_LD"
4720 if test -n "$LD"; then
4721   { echo "$as_me:$LINENO: result: $LD" >&5
4722 echo "${ECHO_T}$LD" >&6; }
4723 else
4724   { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4726 fi
4727 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4728 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4729    { (exit 1); exit 1; }; }
4730 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4731 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4732 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4736 case `$LD -v 2>&1 </dev/null` in
4737 *GNU* | *'with BFD'*)
4738   lt_cv_prog_gnu_ld=yes
4739   ;;
4740 *)
4741   lt_cv_prog_gnu_ld=no
4742   ;;
4743 esac
4744 fi
4745 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4746 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4747 with_gnu_ld=$lt_cv_prog_gnu_ld
4748
4749
4750 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4751 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4752 if test "${lt_cv_ld_reload_flag+set}" = set; then
4753   echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755   lt_cv_ld_reload_flag='-r'
4756 fi
4757 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4758 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4759 reload_flag=$lt_cv_ld_reload_flag
4760 case $reload_flag in
4761 "" | " "*) ;;
4762 *) reload_flag=" $reload_flag" ;;
4763 esac
4764 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4765 case $host_os in
4766   darwin*)
4767     if test "$GCC" = yes; then
4768       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4769     else
4770       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4771     fi
4772     ;;
4773 esac
4774
4775 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4776 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4777 if test "${lt_cv_path_NM+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   if test -n "$NM"; then
4781   # Let the user override the test.
4782   lt_cv_path_NM="$NM"
4783 else
4784   lt_nm_to_check="${ac_tool_prefix}nm"
4785   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4786     lt_nm_to_check="$lt_nm_to_check nm"
4787   fi
4788   for lt_tmp_nm in $lt_nm_to_check; do
4789     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4790     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4791       IFS="$lt_save_ifs"
4792       test -z "$ac_dir" && ac_dir=.
4793       tmp_nm="$ac_dir/$lt_tmp_nm"
4794       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4795         # Check to see if the nm accepts a BSD-compat flag.
4796         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4797         #   nm: unknown option "B" ignored
4798         # Tru64's nm complains that /dev/null is an invalid object file
4799         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4800         */dev/null* | *'Invalid file or object type'*)
4801           lt_cv_path_NM="$tmp_nm -B"
4802           break
4803           ;;
4804         *)
4805           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4806           */dev/null*)
4807             lt_cv_path_NM="$tmp_nm -p"
4808             break
4809             ;;
4810           *)
4811             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4812             continue # so that we can try to find one that supports BSD flags
4813             ;;
4814           esac
4815           ;;
4816         esac
4817       fi
4818     done
4819     IFS="$lt_save_ifs"
4820   done
4821   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4822 fi
4823 fi
4824 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4825 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4826 NM="$lt_cv_path_NM"
4827
4828 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4829 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4830 LN_S=$as_ln_s
4831 if test "$LN_S" = "ln -s"; then
4832   { echo "$as_me:$LINENO: result: yes" >&5
4833 echo "${ECHO_T}yes" >&6; }
4834 else
4835   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4836 echo "${ECHO_T}no, using $LN_S" >&6; }
4837 fi
4838
4839 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4840 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4841 if test "${lt_cv_deplibs_check_method+set}" = set; then
4842   echo $ECHO_N "(cached) $ECHO_C" >&6
4843 else
4844   lt_cv_file_magic_cmd='$MAGIC_CMD'
4845 lt_cv_file_magic_test_file=
4846 lt_cv_deplibs_check_method='unknown'
4847 # Need to set the preceding variable on all platforms that support
4848 # interlibrary dependencies.
4849 # 'none' -- dependencies not supported.
4850 # `unknown' -- same as none, but documents that we really don't know.
4851 # 'pass_all' -- all dependencies passed with no checks.
4852 # 'test_compile' -- check by making test program.
4853 # 'file_magic [[regex]]' -- check by looking for files in library path
4854 # which responds to the $file_magic_cmd with a given extended regex.
4855 # If you have `file' or equivalent on your system and you're not sure
4856 # whether `pass_all' will *always* work, you probably want this one.
4857
4858 case $host_os in
4859 aix[4-9]*)
4860   lt_cv_deplibs_check_method=pass_all
4861   ;;
4862
4863 beos*)
4864   lt_cv_deplibs_check_method=pass_all
4865   ;;
4866
4867 bsdi[45]*)
4868   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4869   lt_cv_file_magic_cmd='/usr/bin/file -L'
4870   lt_cv_file_magic_test_file=/shlib/libc.so
4871   ;;
4872
4873 cygwin*)
4874   # func_win32_libid is a shell function defined in ltmain.sh
4875   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4876   lt_cv_file_magic_cmd='func_win32_libid'
4877   ;;
4878
4879 mingw* | pw32*)
4880   # Base MSYS/MinGW do not provide the 'file' command needed by
4881   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4882   # unless we find 'file', for example because we are cross-compiling.
4883   if ( file / ) >/dev/null 2>&1; then
4884     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4885     lt_cv_file_magic_cmd='func_win32_libid'
4886   else
4887     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4888     lt_cv_file_magic_cmd='$OBJDUMP -f'
4889   fi
4890   ;;
4891
4892 darwin* | rhapsody*)
4893   lt_cv_deplibs_check_method=pass_all
4894   ;;
4895
4896 freebsd* | dragonfly*)
4897   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4898     case $host_cpu in
4899     i*86 )
4900       # Not sure whether the presence of OpenBSD here was a mistake.
4901       # Let's accept both of them until this is cleared up.
4902       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4903       lt_cv_file_magic_cmd=/usr/bin/file
4904       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4905       ;;
4906     esac
4907   else
4908     lt_cv_deplibs_check_method=pass_all
4909   fi
4910   ;;
4911
4912 gnu*)
4913   lt_cv_deplibs_check_method=pass_all
4914   ;;
4915
4916 hpux10.20* | hpux11*)
4917   lt_cv_file_magic_cmd=/usr/bin/file
4918   case $host_cpu in
4919   ia64*)
4920     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4921     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4922     ;;
4923   hppa*64*)
4924     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4925     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4926     ;;
4927   *)
4928     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4929     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4930     ;;
4931   esac
4932   ;;
4933
4934 interix[3-9]*)
4935   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4936   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4937   ;;
4938
4939 irix5* | irix6* | nonstopux*)
4940   case $LD in
4941   *-32|*"-32 ") libmagic=32-bit;;
4942   *-n32|*"-n32 ") libmagic=N32;;
4943   *-64|*"-64 ") libmagic=64-bit;;
4944   *) libmagic=never-match;;
4945   esac
4946   lt_cv_deplibs_check_method=pass_all
4947   ;;
4948
4949 # This must be Linux ELF.
4950 linux* | k*bsd*-gnu)
4951   lt_cv_deplibs_check_method=pass_all
4952   ;;
4953
4954 netbsd* | netbsdelf*-gnu)
4955   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4956     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4957   else
4958     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4959   fi
4960   ;;
4961
4962 newos6*)
4963   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4964   lt_cv_file_magic_cmd=/usr/bin/file
4965   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4966   ;;
4967
4968 nto-qnx*)
4969   lt_cv_deplibs_check_method=unknown
4970   ;;
4971
4972 openbsd*)
4973   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4974     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4975   else
4976     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4977   fi
4978   ;;
4979
4980 osf3* | osf4* | osf5*)
4981   lt_cv_deplibs_check_method=pass_all
4982   ;;
4983
4984 rdos*)
4985   lt_cv_deplibs_check_method=pass_all
4986   ;;
4987
4988 solaris*)
4989   lt_cv_deplibs_check_method=pass_all
4990   ;;
4991
4992 sysv4 | sysv4.3*)
4993   case $host_vendor in
4994   motorola)
4995     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]'
4996     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4997     ;;
4998   ncr)
4999     lt_cv_deplibs_check_method=pass_all
5000     ;;
5001   sequent)
5002     lt_cv_file_magic_cmd='/bin/file'
5003     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5004     ;;
5005   sni)
5006     lt_cv_file_magic_cmd='/bin/file'
5007     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5008     lt_cv_file_magic_test_file=/lib/libc.so
5009     ;;
5010   siemens)
5011     lt_cv_deplibs_check_method=pass_all
5012     ;;
5013   pc)
5014     lt_cv_deplibs_check_method=pass_all
5015     ;;
5016   esac
5017   ;;
5018
5019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5020   lt_cv_deplibs_check_method=pass_all
5021   ;;
5022 esac
5023
5024 fi
5025 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5026 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5027 file_magic_cmd=$lt_cv_file_magic_cmd
5028 deplibs_check_method=$lt_cv_deplibs_check_method
5029 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5030
5031
5032
5033
5034 # If no C compiler was specified, use CC.
5035 LTCC=${LTCC-"$CC"}
5036
5037 # If no C compiler flags were specified, use CFLAGS.
5038 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5039
5040 # Allow CC to be a program name with arguments.
5041 compiler=$CC
5042
5043
5044 # Check whether --enable-libtool-lock was given.
5045 if test "${enable_libtool_lock+set}" = set; then
5046   enableval=$enable_libtool_lock;
5047 fi
5048
5049 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5050
5051 # Some flags need to be propagated to the compiler or linker for good
5052 # libtool support.
5053 case $host in
5054 ia64-*-hpux*)
5055   # Find out which ABI we are using.
5056   echo 'int i;' > conftest.$ac_ext
5057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5058   (eval $ac_compile) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; then
5062     case `/usr/bin/file conftest.$ac_objext` in
5063     *ELF-32*)
5064       HPUX_IA64_MODE="32"
5065       ;;
5066     *ELF-64*)
5067       HPUX_IA64_MODE="64"
5068       ;;
5069     esac
5070   fi
5071   rm -rf conftest*
5072   ;;
5073 *-*-irix6*)
5074   # Find out which ABI we are using.
5075   echo '#line 5075 "configure"' > conftest.$ac_ext
5076   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5077   (eval $ac_compile) 2>&5
5078   ac_status=$?
5079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080   (exit $ac_status); }; then
5081    if test "$lt_cv_prog_gnu_ld" = yes; then
5082     case `/usr/bin/file conftest.$ac_objext` in
5083     *32-bit*)
5084       LD="${LD-ld} -melf32bsmip"
5085       ;;
5086     *N32*)
5087       LD="${LD-ld} -melf32bmipn32"
5088       ;;
5089     *64-bit*)
5090       LD="${LD-ld} -melf64bmip"
5091       ;;
5092     esac
5093    else
5094     case `/usr/bin/file conftest.$ac_objext` in
5095     *32-bit*)
5096       LD="${LD-ld} -32"
5097       ;;
5098     *N32*)
5099       LD="${LD-ld} -n32"
5100       ;;
5101     *64-bit*)
5102       LD="${LD-ld} -64"
5103       ;;
5104     esac
5105    fi
5106   fi
5107   rm -rf conftest*
5108   ;;
5109
5110 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5111 s390*-*linux*|sparc*-*linux*)
5112   # Find out which ABI we are using.
5113   echo 'int i;' > conftest.$ac_ext
5114   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5115   (eval $ac_compile) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; then
5119     case `/usr/bin/file conftest.o` in
5120     *32-bit*)
5121       case $host in
5122         x86_64-*kfreebsd*-gnu)
5123           LD="${LD-ld} -m elf_i386_fbsd"
5124           ;;
5125         x86_64-*linux*)
5126           LD="${LD-ld} -m elf_i386"
5127           ;;
5128         ppc64-*linux*|powerpc64-*linux*)
5129           LD="${LD-ld} -m elf32ppclinux"
5130           ;;
5131         s390x-*linux*)
5132           LD="${LD-ld} -m elf_s390"
5133           ;;
5134         sparc64-*linux*)
5135           LD="${LD-ld} -m elf32_sparc"
5136           ;;
5137       esac
5138       ;;
5139     *64-bit*)
5140       case $host in
5141         x86_64-*kfreebsd*-gnu)
5142           LD="${LD-ld} -m elf_x86_64_fbsd"
5143           ;;
5144         x86_64-*linux*)
5145           LD="${LD-ld} -m elf_x86_64"
5146           ;;
5147         ppc*-*linux*|powerpc*-*linux*)
5148           LD="${LD-ld} -m elf64ppc"
5149           ;;
5150         s390*-*linux*)
5151           LD="${LD-ld} -m elf64_s390"
5152           ;;
5153         sparc*-*linux*)
5154           LD="${LD-ld} -m elf64_sparc"
5155           ;;
5156       esac
5157       ;;
5158     esac
5159   fi
5160   rm -rf conftest*
5161   ;;
5162
5163 *-*-sco3.2v5*)
5164   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5165   SAVE_CFLAGS="$CFLAGS"
5166   CFLAGS="$CFLAGS -belf"
5167   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5168 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5169 if test "${lt_cv_cc_needs_belf+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   ac_ext=c
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177
5178      cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h.  */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h.  */
5184
5185 int
5186 main ()
5187 {
5188
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (ac_try="$ac_link"
5195 case "(($ac_try" in
5196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197   *) ac_try_echo=$ac_try;;
5198 esac
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200   (eval "$ac_link") 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } && {
5207          test -z "$ac_c_werror_flag" ||
5208          test ! -s conftest.err
5209        } && test -s conftest$ac_exeext &&
5210        $as_test_x conftest$ac_exeext; then
5211   lt_cv_cc_needs_belf=yes
5212 else
5213   echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5215
5216         lt_cv_cc_needs_belf=no
5217 fi
5218
5219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5220       conftest$ac_exeext conftest.$ac_ext
5221      ac_ext=c
5222 ac_cpp='$CPP $CPPFLAGS'
5223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226
5227 fi
5228 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5229 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5230   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5231     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5232     CFLAGS="$SAVE_CFLAGS"
5233   fi
5234   ;;
5235 sparc*-*solaris*)
5236   # Find out which ABI we are using.
5237   echo 'int i;' > conftest.$ac_ext
5238   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5239   (eval $ac_compile) 2>&5
5240   ac_status=$?
5241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242   (exit $ac_status); }; then
5243     case `/usr/bin/file conftest.o` in
5244     *64-bit*)
5245       case $lt_cv_prog_gnu_ld in
5246       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5247       *)
5248         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5249           LD="${LD-ld} -64"
5250         fi
5251         ;;
5252       esac
5253       ;;
5254     esac
5255   fi
5256   rm -rf conftest*
5257   ;;
5258
5259
5260 esac
5261
5262 need_locks="$enable_libtool_lock"
5263
5264
5265
5266 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5267 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5268 if test "${ac_cv_header_stdc+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277 #include <stdlib.h>
5278 #include <stdarg.h>
5279 #include <string.h>
5280 #include <float.h>
5281
5282 int
5283 main ()
5284 {
5285
5286   ;
5287   return 0;
5288 }
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (ac_try="$ac_compile"
5292 case "(($ac_try" in
5293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294   *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297   (eval "$ac_compile") 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } && {
5304          test -z "$ac_c_werror_flag" ||
5305          test ! -s conftest.err
5306        } && test -s conftest.$ac_objext; then
5307   ac_cv_header_stdc=yes
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312         ac_cv_header_stdc=no
5313 fi
5314
5315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5316
5317 if test $ac_cv_header_stdc = yes; then
5318   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5319   cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #include <string.h>
5326
5327 _ACEOF
5328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329   $EGREP "memchr" >/dev/null 2>&1; then
5330   :
5331 else
5332   ac_cv_header_stdc=no
5333 fi
5334 rm -f conftest*
5335
5336 fi
5337
5338 if test $ac_cv_header_stdc = yes; then
5339   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5340   cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h.  */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h.  */
5346 #include <stdlib.h>
5347
5348 _ACEOF
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350   $EGREP "free" >/dev/null 2>&1; then
5351   :
5352 else
5353   ac_cv_header_stdc=no
5354 fi
5355 rm -f conftest*
5356
5357 fi
5358
5359 if test $ac_cv_header_stdc = yes; then
5360   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5361   if test "$cross_compiling" = yes; then
5362   :
5363 else
5364   cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #include <ctype.h>
5371 #include <stdlib.h>
5372 #if ((' ' & 0x0FF) == 0x020)
5373 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5374 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5375 #else
5376 # define ISLOWER(c) \
5377                    (('a' <= (c) && (c) <= 'i') \
5378                      || ('j' <= (c) && (c) <= 'r') \
5379                      || ('s' <= (c) && (c) <= 'z'))
5380 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5381 #endif
5382
5383 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5384 int
5385 main ()
5386 {
5387   int i;
5388   for (i = 0; i < 256; i++)
5389     if (XOR (islower (i), ISLOWER (i))
5390         || toupper (i) != TOUPPER (i))
5391       return 2;
5392   return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest$ac_exeext
5396 if { (ac_try="$ac_link"
5397 case "(($ac_try" in
5398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399   *) ac_try_echo=$ac_try;;
5400 esac
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402   (eval "$ac_link") 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5406   { (case "(($ac_try" in
5407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408   *) ac_try_echo=$ac_try;;
5409 esac
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411   (eval "$ac_try") 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; }; then
5415   :
5416 else
5417   echo "$as_me: program exited with status $ac_status" >&5
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 ( exit $ac_status )
5422 ac_cv_header_stdc=no
5423 fi
5424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5425 fi
5426
5427
5428 fi
5429 fi
5430 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5431 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5432 if test $ac_cv_header_stdc = yes; then
5433
5434 cat >>confdefs.h <<\_ACEOF
5435 #define STDC_HEADERS 1
5436 _ACEOF
5437
5438 fi
5439
5440 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5451                   inttypes.h stdint.h unistd.h
5452 do
5453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5457   echo $ECHO_N "(cached) $ECHO_C" >&6
5458 else
5459   cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h.  */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h.  */
5465 $ac_includes_default
5466
5467 #include <$ac_header>
5468 _ACEOF
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5471 case "(($ac_try" in
5472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473   *) ac_try_echo=$ac_try;;
5474 esac
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476   (eval "$ac_compile") 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } && {
5483          test -z "$ac_c_werror_flag" ||
5484          test ! -s conftest.err
5485        } && test -s conftest.$ac_objext; then
5486   eval "$as_ac_Header=yes"
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491         eval "$as_ac_Header=no"
5492 fi
5493
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 fi
5496 ac_res=`eval echo '${'$as_ac_Header'}'`
5497                { echo "$as_me:$LINENO: result: $ac_res" >&5
5498 echo "${ECHO_T}$ac_res" >&6; }
5499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5500   cat >>confdefs.h <<_ACEOF
5501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5502 _ACEOF
5503
5504 fi
5505
5506 done
5507
5508
5509
5510 for ac_header in dlfcn.h
5511 do
5512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5514   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5517   echo $ECHO_N "(cached) $ECHO_C" >&6
5518 fi
5519 ac_res=`eval echo '${'$as_ac_Header'}'`
5520                { echo "$as_me:$LINENO: result: $ac_res" >&5
5521 echo "${ECHO_T}$ac_res" >&6; }
5522 else
5523   # Is the header compilable?
5524 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5526 cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h.  */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h.  */
5532 $ac_includes_default
5533 #include <$ac_header>
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539   *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542   (eval "$ac_compile") 2>conftest.er1
5543   ac_status=$?
5544   grep -v '^ *+' conftest.er1 >conftest.err
5545   rm -f conftest.er1
5546   cat conftest.err >&5
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); } && {
5549          test -z "$ac_c_werror_flag" ||
5550          test ! -s conftest.err
5551        } && test -s conftest.$ac_objext; then
5552   ac_header_compiler=yes
5553 else
5554   echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5556
5557         ac_header_compiler=no
5558 fi
5559
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5562 echo "${ECHO_T}$ac_header_compiler" >&6; }
5563
5564 # Is the header present?
5565 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5567 cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h.  */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h.  */
5573 #include <$ac_header>
5574 _ACEOF
5575 if { (ac_try="$ac_cpp conftest.$ac_ext"
5576 case "(($ac_try" in
5577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578   *) ac_try_echo=$ac_try;;
5579 esac
5580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5582   ac_status=$?
5583   grep -v '^ *+' conftest.er1 >conftest.err
5584   rm -f conftest.er1
5585   cat conftest.err >&5
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } >/dev/null && {
5588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5589          test ! -s conftest.err
5590        }; then
5591   ac_header_preproc=yes
5592 else
5593   echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596   ac_header_preproc=no
5597 fi
5598
5599 rm -f conftest.err conftest.$ac_ext
5600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5601 echo "${ECHO_T}$ac_header_preproc" >&6; }
5602
5603 # So?  What about this header?
5604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5605   yes:no: )
5606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5610     ac_header_preproc=yes
5611     ;;
5612   no:yes:* )
5613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5625     ( cat <<\_ASBOX
5626 ## ------------------------------------ ##
5627 ## Report this to opensource@google.com ##
5628 ## ------------------------------------ ##
5629 _ASBOX
5630      ) | sed "s/^/$as_me: WARNING:     /" >&2
5631     ;;
5632 esac
5633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   eval "$as_ac_Header=\$ac_header_preproc"
5639 fi
5640 ac_res=`eval echo '${'$as_ac_Header'}'`
5641                { echo "$as_me:$LINENO: result: $ac_res" >&5
5642 echo "${ECHO_T}$ac_res" >&6; }
5643
5644 fi
5645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5646   cat >>confdefs.h <<_ACEOF
5647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5648 _ACEOF
5649
5650 fi
5651
5652 done
5653
5654
5655
5656 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5657     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5658     (test "X$CXX" != "Xg++"))) ; then
5659   ac_ext=cpp
5660 ac_cpp='$CXXCPP $CPPFLAGS'
5661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5665 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5666 if test -z "$CXXCPP"; then
5667   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670       # Double quotes because CXXCPP needs to be expanded
5671     for CXXCPP in "$CXX -E" "/lib/cpp"
5672     do
5673       ac_preproc_ok=false
5674 for ac_cxx_preproc_warn_flag in '' yes
5675 do
5676   # Use a header file that comes with gcc, so configuring glibc
5677   # with a fresh cross-compiler works.
5678   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679   # <limits.h> exists even on freestanding compilers.
5680   # On the NeXT, cc -E runs the code through the compiler's parser,
5681   # not just through cpp. "Syntax error" is here to catch this case.
5682   cat >conftest.$ac_ext <<_ACEOF
5683 /* confdefs.h.  */
5684 _ACEOF
5685 cat confdefs.h >>conftest.$ac_ext
5686 cat >>conftest.$ac_ext <<_ACEOF
5687 /* end confdefs.h.  */
5688 #ifdef __STDC__
5689 # include <limits.h>
5690 #else
5691 # include <assert.h>
5692 #endif
5693                      Syntax error
5694 _ACEOF
5695 if { (ac_try="$ac_cpp conftest.$ac_ext"
5696 case "(($ac_try" in
5697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5698   *) ac_try_echo=$ac_try;;
5699 esac
5700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5702   ac_status=$?
5703   grep -v '^ *+' conftest.er1 >conftest.err
5704   rm -f conftest.er1
5705   cat conftest.err >&5
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); } >/dev/null && {
5708          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5709          test ! -s conftest.err
5710        }; then
5711   :
5712 else
5713   echo "$as_me: failed program was:" >&5
5714 sed 's/^/| /' conftest.$ac_ext >&5
5715
5716   # Broken: fails on valid input.
5717 continue
5718 fi
5719
5720 rm -f conftest.err conftest.$ac_ext
5721
5722   # OK, works on sane cases.  Now check whether nonexistent headers
5723   # can be detected and how.
5724   cat >conftest.$ac_ext <<_ACEOF
5725 /* confdefs.h.  */
5726 _ACEOF
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h.  */
5730 #include <ac_nonexistent.h>
5731 _ACEOF
5732 if { (ac_try="$ac_cpp conftest.$ac_ext"
5733 case "(($ac_try" in
5734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735   *) ac_try_echo=$ac_try;;
5736 esac
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } >/dev/null && {
5745          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5746          test ! -s conftest.err
5747        }; then
5748   # Broken: success on invalid input.
5749 continue
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754   # Passes both tests.
5755 ac_preproc_ok=:
5756 break
5757 fi
5758
5759 rm -f conftest.err conftest.$ac_ext
5760
5761 done
5762 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5763 rm -f conftest.err conftest.$ac_ext
5764 if $ac_preproc_ok; then
5765   break
5766 fi
5767
5768     done
5769     ac_cv_prog_CXXCPP=$CXXCPP
5770
5771 fi
5772   CXXCPP=$ac_cv_prog_CXXCPP
5773 else
5774   ac_cv_prog_CXXCPP=$CXXCPP
5775 fi
5776 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5777 echo "${ECHO_T}$CXXCPP" >&6; }
5778 ac_preproc_ok=false
5779 for ac_cxx_preproc_warn_flag in '' yes
5780 do
5781   # Use a header file that comes with gcc, so configuring glibc
5782   # with a fresh cross-compiler works.
5783   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5784   # <limits.h> exists even on freestanding compilers.
5785   # On the NeXT, cc -E runs the code through the compiler's parser,
5786   # not just through cpp. "Syntax error" is here to catch this case.
5787   cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793 #ifdef __STDC__
5794 # include <limits.h>
5795 #else
5796 # include <assert.h>
5797 #endif
5798                      Syntax error
5799 _ACEOF
5800 if { (ac_try="$ac_cpp conftest.$ac_ext"
5801 case "(($ac_try" in
5802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803   *) ac_try_echo=$ac_try;;
5804 esac
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } >/dev/null && {
5813          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5814          test ! -s conftest.err
5815        }; then
5816   :
5817 else
5818   echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821   # Broken: fails on valid input.
5822 continue
5823 fi
5824
5825 rm -f conftest.err conftest.$ac_ext
5826
5827   # OK, works on sane cases.  Now check whether nonexistent headers
5828   # can be detected and how.
5829   cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h.  */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h.  */
5835 #include <ac_nonexistent.h>
5836 _ACEOF
5837 if { (ac_try="$ac_cpp conftest.$ac_ext"
5838 case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5844   ac_status=$?
5845   grep -v '^ *+' conftest.er1 >conftest.err
5846   rm -f conftest.er1
5847   cat conftest.err >&5
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } >/dev/null && {
5850          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5851          test ! -s conftest.err
5852        }; then
5853   # Broken: success on invalid input.
5854 continue
5855 else
5856   echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859   # Passes both tests.
5860 ac_preproc_ok=:
5861 break
5862 fi
5863
5864 rm -f conftest.err conftest.$ac_ext
5865
5866 done
5867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5868 rm -f conftest.err conftest.$ac_ext
5869 if $ac_preproc_ok; then
5870   :
5871 else
5872   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5873 See \`config.log' for more details." >&5
5874 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5875 See \`config.log' for more details." >&2;}
5876    { (exit 1); exit 1; }; }
5877 fi
5878
5879 ac_ext=cpp
5880 ac_cpp='$CXXCPP $CPPFLAGS'
5881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5884
5885 fi
5886
5887
5888 ac_ext=f
5889 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5890 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5892 if test -n "$ac_tool_prefix"; then
5893   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5894   do
5895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5899 if test "${ac_cv_prog_F77+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   if test -n "$F77"; then
5903   ac_cv_prog_F77="$F77" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910   for ac_exec_ext in '' $ac_executable_extensions; do
5911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5912     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917 done
5918 IFS=$as_save_IFS
5919
5920 fi
5921 fi
5922 F77=$ac_cv_prog_F77
5923 if test -n "$F77"; then
5924   { echo "$as_me:$LINENO: result: $F77" >&5
5925 echo "${ECHO_T}$F77" >&6; }
5926 else
5927   { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930
5931
5932     test -n "$F77" && break
5933   done
5934 fi
5935 if test -z "$F77"; then
5936   ac_ct_F77=$F77
5937   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5938 do
5939   # Extract the first word of "$ac_prog", so it can be a program name with args.
5940 set dummy $ac_prog; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5944   echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946   if test -n "$ac_ct_F77"; then
5947   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5951 do
5952   IFS=$as_save_IFS
5953   test -z "$as_dir" && as_dir=.
5954   for ac_exec_ext in '' $ac_executable_extensions; do
5955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956     ac_cv_prog_ac_ct_F77="$ac_prog"
5957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958     break 2
5959   fi
5960 done
5961 done
5962 IFS=$as_save_IFS
5963
5964 fi
5965 fi
5966 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5967 if test -n "$ac_ct_F77"; then
5968   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5969 echo "${ECHO_T}$ac_ct_F77" >&6; }
5970 else
5971   { echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6; }
5973 fi
5974
5975
5976   test -n "$ac_ct_F77" && break
5977 done
5978
5979   if test "x$ac_ct_F77" = x; then
5980     F77=""
5981   else
5982     case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5985 whose name does not start with the host triplet.  If you think this
5986 configuration is useful to you, please write to autoconf@gnu.org." >&5
5987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5988 whose name does not start with the host triplet.  If you think this
5989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992     F77=$ac_ct_F77
5993   fi
5994 fi
5995
5996
5997 # Provide some information about the compiler.
5998 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5999 ac_compiler=`set X $ac_compile; echo $2`
6000 { (ac_try="$ac_compiler --version >&5"
6001 case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006   (eval "$ac_compiler --version >&5") 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }
6010 { (ac_try="$ac_compiler -v >&5"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_compiler -v >&5") 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }
6020 { (ac_try="$ac_compiler -V >&5"
6021 case "(($ac_try" in
6022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023   *) ac_try_echo=$ac_try;;
6024 esac
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026   (eval "$ac_compiler -V >&5") 2>&5
6027   ac_status=$?
6028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029   (exit $ac_status); }
6030 rm -f a.out
6031
6032 # If we don't use `.F' as extension, the preprocessor is not run on the
6033 # input file.  (Note that this only needs to work for GNU compilers.)
6034 ac_save_ext=$ac_ext
6035 ac_ext=F
6036 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6037 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6038 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6039   echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041   cat >conftest.$ac_ext <<_ACEOF
6042       program main
6043 #ifndef __GNUC__
6044        choke me
6045 #endif
6046
6047       end
6048 _ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (ac_try="$ac_compile"
6051 case "(($ac_try" in
6052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053   *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056   (eval "$ac_compile") 2>conftest.er1
6057   ac_status=$?
6058   grep -v '^ *+' conftest.er1 >conftest.err
6059   rm -f conftest.er1
6060   cat conftest.err >&5
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); } && {
6063          test -z "$ac_f77_werror_flag" ||
6064          test ! -s conftest.err
6065        } && test -s conftest.$ac_objext; then
6066   ac_compiler_gnu=yes
6067 else
6068   echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6070
6071         ac_compiler_gnu=no
6072 fi
6073
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6076
6077 fi
6078 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6079 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6080 ac_ext=$ac_save_ext
6081 ac_test_FFLAGS=${FFLAGS+set}
6082 ac_save_FFLAGS=$FFLAGS
6083 FFLAGS=
6084 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6085 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6086 if test "${ac_cv_prog_f77_g+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   FFLAGS=-g
6090 cat >conftest.$ac_ext <<_ACEOF
6091       program main
6092
6093       end
6094 _ACEOF
6095 rm -f conftest.$ac_objext
6096 if { (ac_try="$ac_compile"
6097 case "(($ac_try" in
6098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6099   *) ac_try_echo=$ac_try;;
6100 esac
6101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6102   (eval "$ac_compile") 2>conftest.er1
6103   ac_status=$?
6104   grep -v '^ *+' conftest.er1 >conftest.err
6105   rm -f conftest.er1
6106   cat conftest.err >&5
6107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108   (exit $ac_status); } && {
6109          test -z "$ac_f77_werror_flag" ||
6110          test ! -s conftest.err
6111        } && test -s conftest.$ac_objext; then
6112   ac_cv_prog_f77_g=yes
6113 else
6114   echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117         ac_cv_prog_f77_g=no
6118 fi
6119
6120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121
6122 fi
6123 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6124 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6125 if test "$ac_test_FFLAGS" = set; then
6126   FFLAGS=$ac_save_FFLAGS
6127 elif test $ac_cv_prog_f77_g = yes; then
6128   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6129     FFLAGS="-g -O2"
6130   else
6131     FFLAGS="-g"
6132   fi
6133 else
6134   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6135     FFLAGS="-O2"
6136   else
6137     FFLAGS=
6138   fi
6139 fi
6140
6141 G77=`test $ac_compiler_gnu = yes && echo yes`
6142 ac_ext=c
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
6148
6149
6150 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6151 # find the maximum length of command line arguments
6152 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6153 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6154 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6155   echo $ECHO_N "(cached) $ECHO_C" >&6
6156 else
6157     i=0
6158   teststring="ABCD"
6159
6160   case $build_os in
6161   msdosdjgpp*)
6162     # On DJGPP, this test can blow up pretty badly due to problems in libc
6163     # (any single argument exceeding 2000 bytes causes a buffer overrun
6164     # during glob expansion).  Even if it were fixed, the result of this
6165     # check would be larger than it should be.
6166     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6167     ;;
6168
6169   gnu*)
6170     # Under GNU Hurd, this test is not required because there is
6171     # no limit to the length of command line arguments.
6172     # Libtool will interpret -1 as no limit whatsoever
6173     lt_cv_sys_max_cmd_len=-1;
6174     ;;
6175
6176   cygwin* | mingw*)
6177     # On Win9x/ME, this test blows up -- it succeeds, but takes
6178     # about 5 minutes as the teststring grows exponentially.
6179     # Worse, since 9x/ME are not pre-emptively multitasking,
6180     # you end up with a "frozen" computer, even though with patience
6181     # the test eventually succeeds (with a max line length of 256k).
6182     # Instead, let's just punt: use the minimum linelength reported by
6183     # all of the supported platforms: 8192 (on NT/2K/XP).
6184     lt_cv_sys_max_cmd_len=8192;
6185     ;;
6186
6187   amigaos*)
6188     # On AmigaOS with pdksh, this test takes hours, literally.
6189     # So we just punt and use a minimum line length of 8192.
6190     lt_cv_sys_max_cmd_len=8192;
6191     ;;
6192
6193   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6194     # This has been around since 386BSD, at least.  Likely further.
6195     if test -x /sbin/sysctl; then
6196       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6197     elif test -x /usr/sbin/sysctl; then
6198       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6199     else
6200       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6201     fi
6202     # And add a safety zone
6203     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6204     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6205     ;;
6206
6207   interix*)
6208     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6209     lt_cv_sys_max_cmd_len=196608
6210     ;;
6211
6212   osf*)
6213     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6214     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6215     # nice to cause kernel panics so lets avoid the loop below.
6216     # First set a reasonable default.
6217     lt_cv_sys_max_cmd_len=16384
6218     #
6219     if test -x /sbin/sysconfig; then
6220       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6221         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6222       esac
6223     fi
6224     ;;
6225   sco3.2v5*)
6226     lt_cv_sys_max_cmd_len=102400
6227     ;;
6228   sysv5* | sco5v6* | sysv4.2uw2*)
6229     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6230     if test -n "$kargmax"; then
6231       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6232     else
6233       lt_cv_sys_max_cmd_len=32768
6234     fi
6235     ;;
6236   *)
6237     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6238     if test -n "$lt_cv_sys_max_cmd_len"; then
6239       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6240       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6241     else
6242       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6243       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6244                = "XX$teststring") >/dev/null 2>&1 &&
6245               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6246               lt_cv_sys_max_cmd_len=$new_result &&
6247               test $i != 17 # 1/2 MB should be enough
6248       do
6249         i=`expr $i + 1`
6250         teststring=$teststring$teststring
6251       done
6252       teststring=
6253       # Add a significant safety factor because C++ compilers can tack on massive
6254       # amounts of additional arguments before passing them to the linker.
6255       # It appears as though 1/2 is a usable value.
6256       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6257     fi
6258     ;;
6259   esac
6260
6261 fi
6262
6263 if test -n $lt_cv_sys_max_cmd_len ; then
6264   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6265 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6266 else
6267   { echo "$as_me:$LINENO: result: none" >&5
6268 echo "${ECHO_T}none" >&6; }
6269 fi
6270
6271
6272
6273
6274
6275 # Check for command to grab the raw symbol name followed by C symbol from nm.
6276 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6277 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6278 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6279   echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281
6282 # These are sane defaults that work on at least a few old systems.
6283 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6284
6285 # Character class describing NM global symbol codes.
6286 symcode='[BCDEGRST]'
6287
6288 # Regexp to match symbols that can be accessed directly from C.
6289 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6290
6291 # Transform an extracted symbol line into a proper C declaration
6292 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6293
6294 # Transform an extracted symbol line into symbol name and symbol address
6295 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6296
6297 # Define system-specific variables.
6298 case $host_os in
6299 aix*)
6300   symcode='[BCDT]'
6301   ;;
6302 cygwin* | mingw* | pw32*)
6303   symcode='[ABCDGISTW]'
6304   ;;
6305 hpux*) # Its linker distinguishes data from code symbols
6306   if test "$host_cpu" = ia64; then
6307     symcode='[ABCDEGRST]'
6308   fi
6309   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6310   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6311   ;;
6312 linux* | k*bsd*-gnu)
6313   if test "$host_cpu" = ia64; then
6314     symcode='[ABCDGIRSTW]'
6315     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6316     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6317   fi
6318   ;;
6319 irix* | nonstopux*)
6320   symcode='[BCDEGRST]'
6321   ;;
6322 osf*)
6323   symcode='[BCDEGQRST]'
6324   ;;
6325 solaris*)
6326   symcode='[BDRT]'
6327   ;;
6328 sco3.2v5*)
6329   symcode='[DT]'
6330   ;;
6331 sysv4.2uw2*)
6332   symcode='[DT]'
6333   ;;
6334 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6335   symcode='[ABDT]'
6336   ;;
6337 sysv4)
6338   symcode='[DFNSTU]'
6339   ;;
6340 esac
6341
6342 # Handle CRLF in mingw tool chain
6343 opt_cr=
6344 case $build_os in
6345 mingw*)
6346   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6347   ;;
6348 esac
6349
6350 # If we're using GNU nm, then use its standard symbol codes.
6351 case `$NM -V 2>&1` in
6352 *GNU* | *'with BFD'*)
6353   symcode='[ABCDGIRSTW]' ;;
6354 esac
6355
6356 # Try without a prefix undercore, then with it.
6357 for ac_symprfx in "" "_"; do
6358
6359   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6360   symxfrm="\\1 $ac_symprfx\\2 \\2"
6361
6362   # Write the raw and C identifiers.
6363   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6364
6365   # Check to see that the pipe works correctly.
6366   pipe_works=no
6367
6368   rm -f conftest*
6369   cat > conftest.$ac_ext <<EOF
6370 #ifdef __cplusplus
6371 extern "C" {
6372 #endif
6373 char nm_test_var;
6374 void nm_test_func(){}
6375 #ifdef __cplusplus
6376 }
6377 #endif
6378 int main(){nm_test_var='a';nm_test_func();return(0);}
6379 EOF
6380
6381   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382   (eval $ac_compile) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; then
6386     # Now try to grab the symbols.
6387     nlist=conftest.nm
6388     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6389   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); } && test -s "$nlist"; then
6393       # Try sorting and uniquifying the output.
6394       if sort "$nlist" | uniq > "$nlist"T; then
6395         mv -f "$nlist"T "$nlist"
6396       else
6397         rm -f "$nlist"T
6398       fi
6399
6400       # Make sure that we snagged all the symbols we need.
6401       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6402         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6403           cat <<EOF > conftest.$ac_ext
6404 #ifdef __cplusplus
6405 extern "C" {
6406 #endif
6407
6408 EOF
6409           # Now generate the symbol file.
6410           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6411
6412           cat <<EOF >> conftest.$ac_ext
6413 #if defined (__STDC__) && __STDC__
6414 # define lt_ptr_t void *
6415 #else
6416 # define lt_ptr_t char *
6417 # define const
6418 #endif
6419
6420 /* The mapping between symbol names and symbols. */
6421 const struct {
6422   const char *name;
6423   lt_ptr_t address;
6424 }
6425 lt_preloaded_symbols[] =
6426 {
6427 EOF
6428           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6429           cat <<\EOF >> conftest.$ac_ext
6430   {0, (lt_ptr_t) 0}
6431 };
6432
6433 #ifdef __cplusplus
6434 }
6435 #endif
6436 EOF
6437           # Now try linking the two files.
6438           mv conftest.$ac_objext conftstm.$ac_objext
6439           lt_save_LIBS="$LIBS"
6440           lt_save_CFLAGS="$CFLAGS"
6441           LIBS="conftstm.$ac_objext"
6442           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6443           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6444   (eval $ac_link) 2>&5
6445   ac_status=$?
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6448             pipe_works=yes
6449           fi
6450           LIBS="$lt_save_LIBS"
6451           CFLAGS="$lt_save_CFLAGS"
6452         else
6453           echo "cannot find nm_test_func in $nlist" >&5
6454         fi
6455       else
6456         echo "cannot find nm_test_var in $nlist" >&5
6457       fi
6458     else
6459       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6460     fi
6461   else
6462     echo "$progname: failed program was:" >&5
6463     cat conftest.$ac_ext >&5
6464   fi
6465   rm -rf conftest* conftst*
6466
6467   # Do not use the global_symbol_pipe unless it works.
6468   if test "$pipe_works" = yes; then
6469     break
6470   else
6471     lt_cv_sys_global_symbol_pipe=
6472   fi
6473 done
6474
6475 fi
6476
6477 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6478   lt_cv_sys_global_symbol_to_cdecl=
6479 fi
6480 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6481   { echo "$as_me:$LINENO: result: failed" >&5
6482 echo "${ECHO_T}failed" >&6; }
6483 else
6484   { echo "$as_me:$LINENO: result: ok" >&5
6485 echo "${ECHO_T}ok" >&6; }
6486 fi
6487
6488 { echo "$as_me:$LINENO: checking for objdir" >&5
6489 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6490 if test "${lt_cv_objdir+set}" = set; then
6491   echo $ECHO_N "(cached) $ECHO_C" >&6
6492 else
6493   rm -f .libs 2>/dev/null
6494 mkdir .libs 2>/dev/null
6495 if test -d .libs; then
6496   lt_cv_objdir=.libs
6497 else
6498   # MS-DOS does not allow filenames that begin with a dot.
6499   lt_cv_objdir=_libs
6500 fi
6501 rmdir .libs 2>/dev/null
6502 fi
6503 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6504 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6505 objdir=$lt_cv_objdir
6506
6507
6508
6509
6510
6511 case $host_os in
6512 aix3*)
6513   # AIX sometimes has problems with the GCC collect2 program.  For some
6514   # reason, if we set the COLLECT_NAMES environment variable, the problems
6515   # vanish in a puff of smoke.
6516   if test "X${COLLECT_NAMES+set}" != Xset; then
6517     COLLECT_NAMES=
6518     export COLLECT_NAMES
6519   fi
6520   ;;
6521 esac
6522
6523 # Sed substitution that helps us do robust quoting.  It backslashifies
6524 # metacharacters that are still active within double-quoted strings.
6525 Xsed='sed -e 1s/^X//'
6526 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6527
6528 # Same as above, but do not quote variable references.
6529 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6530
6531 # Sed substitution to delay expansion of an escaped shell variable in a
6532 # double_quote_subst'ed string.
6533 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6534
6535 # Sed substitution to avoid accidental globbing in evaled expressions
6536 no_glob_subst='s/\*/\\\*/g'
6537
6538 # Constants:
6539 rm="rm -f"
6540
6541 # Global variables:
6542 default_ofile=libtool
6543 can_build_shared=yes
6544
6545 # All known linkers require a `.a' archive for static linking (except MSVC,
6546 # which needs '.lib').
6547 libext=a
6548 ltmain="$ac_aux_dir/ltmain.sh"
6549 ofile="$default_ofile"
6550 with_gnu_ld="$lt_cv_prog_gnu_ld"
6551
6552 if test -n "$ac_tool_prefix"; then
6553   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6554 set dummy ${ac_tool_prefix}ar; ac_word=$2
6555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557 if test "${ac_cv_prog_AR+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   if test -n "$AR"; then
6561   ac_cv_prog_AR="$AR" # Let the user override the test.
6562 else
6563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 for as_dir in $PATH
6565 do
6566   IFS=$as_save_IFS
6567   test -z "$as_dir" && as_dir=.
6568   for ac_exec_ext in '' $ac_executable_extensions; do
6569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6570     ac_cv_prog_AR="${ac_tool_prefix}ar"
6571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6572     break 2
6573   fi
6574 done
6575 done
6576 IFS=$as_save_IFS
6577
6578 fi
6579 fi
6580 AR=$ac_cv_prog_AR
6581 if test -n "$AR"; then
6582   { echo "$as_me:$LINENO: result: $AR" >&5
6583 echo "${ECHO_T}$AR" >&6; }
6584 else
6585   { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6587 fi
6588
6589
6590 fi
6591 if test -z "$ac_cv_prog_AR"; then
6592   ac_ct_AR=$AR
6593   # Extract the first word of "ar", so it can be a program name with args.
6594 set dummy ar; ac_word=$2
6595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6597 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6598   echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600   if test -n "$ac_ct_AR"; then
6601   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6605 do
6606   IFS=$as_save_IFS
6607   test -z "$as_dir" && as_dir=.
6608   for ac_exec_ext in '' $ac_executable_extensions; do
6609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610     ac_cv_prog_ac_ct_AR="ar"
6611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612     break 2
6613   fi
6614 done
6615 done
6616 IFS=$as_save_IFS
6617
6618 fi
6619 fi
6620 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6621 if test -n "$ac_ct_AR"; then
6622   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6623 echo "${ECHO_T}$ac_ct_AR" >&6; }
6624 else
6625   { echo "$as_me:$LINENO: result: no" >&5
6626 echo "${ECHO_T}no" >&6; }
6627 fi
6628
6629   if test "x$ac_ct_AR" = x; then
6630     AR="false"
6631   else
6632     case $cross_compiling:$ac_tool_warned in
6633 yes:)
6634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6635 whose name does not start with the host triplet.  If you think this
6636 configuration is useful to you, please write to autoconf@gnu.org." >&5
6637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6638 whose name does not start with the host triplet.  If you think this
6639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6640 ac_tool_warned=yes ;;
6641 esac
6642     AR=$ac_ct_AR
6643   fi
6644 else
6645   AR="$ac_cv_prog_AR"
6646 fi
6647
6648 if test -n "$ac_tool_prefix"; then
6649   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6653 if test "${ac_cv_prog_RANLIB+set}" = set; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 else
6656   if test -n "$RANLIB"; then
6657   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664   for ac_exec_ext in '' $ac_executable_extensions; do
6665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671 done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 RANLIB=$ac_cv_prog_RANLIB
6677 if test -n "$RANLIB"; then
6678   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6679 echo "${ECHO_T}$RANLIB" >&6; }
6680 else
6681   { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6683 fi
6684
6685
6686 fi
6687 if test -z "$ac_cv_prog_RANLIB"; then
6688   ac_ct_RANLIB=$RANLIB
6689   # Extract the first word of "ranlib", so it can be a program name with args.
6690 set dummy ranlib; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   if test -n "$ac_ct_RANLIB"; then
6697   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702   IFS=$as_save_IFS
6703   test -z "$as_dir" && as_dir=.
6704   for ac_exec_ext in '' $ac_executable_extensions; do
6705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706     ac_cv_prog_ac_ct_RANLIB="ranlib"
6707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708     break 2
6709   fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6717 if test -n "$ac_ct_RANLIB"; then
6718   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6719 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6720 else
6721   { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6723 fi
6724
6725   if test "x$ac_ct_RANLIB" = x; then
6726     RANLIB=":"
6727   else
6728     case $cross_compiling:$ac_tool_warned in
6729 yes:)
6730 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6731 whose name does not start with the host triplet.  If you think this
6732 configuration is useful to you, please write to autoconf@gnu.org." >&5
6733 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6734 whose name does not start with the host triplet.  If you think this
6735 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738     RANLIB=$ac_ct_RANLIB
6739   fi
6740 else
6741   RANLIB="$ac_cv_prog_RANLIB"
6742 fi
6743
6744 if test -n "$ac_tool_prefix"; then
6745   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}strip; ac_word=$2
6747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749 if test "${ac_cv_prog_STRIP+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   if test -n "$STRIP"; then
6753   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758   IFS=$as_save_IFS
6759   test -z "$as_dir" && as_dir=.
6760   for ac_exec_ext in '' $ac_executable_extensions; do
6761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764     break 2
6765   fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 STRIP=$ac_cv_prog_STRIP
6773 if test -n "$STRIP"; then
6774   { echo "$as_me:$LINENO: result: $STRIP" >&5
6775 echo "${ECHO_T}$STRIP" >&6; }
6776 else
6777   { echo "$as_me:$LINENO: result: no" >&5
6778 echo "${ECHO_T}no" >&6; }
6779 fi
6780
6781
6782 fi
6783 if test -z "$ac_cv_prog_STRIP"; then
6784   ac_ct_STRIP=$STRIP
6785   # Extract the first word of "strip", so it can be a program name with args.
6786 set dummy strip; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   if test -n "$ac_ct_STRIP"; then
6793   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_ac_ct_STRIP="strip"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6813 if test -n "$ac_ct_STRIP"; then
6814   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6815 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821   if test "x$ac_ct_STRIP" = x; then
6822     STRIP=":"
6823   else
6824     case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6827 whose name does not start with the host triplet.  If you think this
6828 configuration is useful to you, please write to autoconf@gnu.org." >&5
6829 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6830 whose name does not start with the host triplet.  If you think this
6831 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6832 ac_tool_warned=yes ;;
6833 esac
6834     STRIP=$ac_ct_STRIP
6835   fi
6836 else
6837   STRIP="$ac_cv_prog_STRIP"
6838 fi
6839
6840
6841 old_CC="$CC"
6842 old_CFLAGS="$CFLAGS"
6843
6844 # Set sane defaults for various variables
6845 test -z "$AR" && AR=ar
6846 test -z "$AR_FLAGS" && AR_FLAGS=cru
6847 test -z "$AS" && AS=as
6848 test -z "$CC" && CC=cc
6849 test -z "$LTCC" && LTCC=$CC
6850 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6851 test -z "$DLLTOOL" && DLLTOOL=dlltool
6852 test -z "$LD" && LD=ld
6853 test -z "$LN_S" && LN_S="ln -s"
6854 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6855 test -z "$NM" && NM=nm
6856 test -z "$SED" && SED=sed
6857 test -z "$OBJDUMP" && OBJDUMP=objdump
6858 test -z "$RANLIB" && RANLIB=:
6859 test -z "$STRIP" && STRIP=:
6860 test -z "$ac_objext" && ac_objext=o
6861
6862 # Determine commands to create old-style static archives.
6863 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6864 old_postinstall_cmds='chmod 644 $oldlib'
6865 old_postuninstall_cmds=
6866
6867 if test -n "$RANLIB"; then
6868   case $host_os in
6869   openbsd*)
6870     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6871     ;;
6872   *)
6873     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6874     ;;
6875   esac
6876   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6877 fi
6878
6879 for cc_temp in $compiler""; do
6880   case $cc_temp in
6881     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6882     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6883     \-*) ;;
6884     *) break;;
6885   esac
6886 done
6887 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6888
6889
6890 # Only perform the check for file, if the check method requires it
6891 case $deplibs_check_method in
6892 file_magic*)
6893   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6894     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6895 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6896 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   case $MAGIC_CMD in
6900 [\\/*] |  ?:[\\/]*)
6901   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6902   ;;
6903 *)
6904   lt_save_MAGIC_CMD="$MAGIC_CMD"
6905   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6906   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6907   for ac_dir in $ac_dummy; do
6908     IFS="$lt_save_ifs"
6909     test -z "$ac_dir" && ac_dir=.
6910     if test -f $ac_dir/${ac_tool_prefix}file; then
6911       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6912       if test -n "$file_magic_test_file"; then
6913         case $deplibs_check_method in
6914         "file_magic "*)
6915           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6916           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6917           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6918             $EGREP "$file_magic_regex" > /dev/null; then
6919             :
6920           else
6921             cat <<EOF 1>&2
6922
6923 *** Warning: the command libtool uses to detect shared libraries,
6924 *** $file_magic_cmd, produces output that libtool cannot recognize.
6925 *** The result is that libtool may fail to recognize shared libraries
6926 *** as such.  This will affect the creation of libtool libraries that
6927 *** depend on shared libraries, but programs linked with such libtool
6928 *** libraries will work regardless of this problem.  Nevertheless, you
6929 *** may want to report the problem to your system manager and/or to
6930 *** bug-libtool@gnu.org
6931
6932 EOF
6933           fi ;;
6934         esac
6935       fi
6936       break
6937     fi
6938   done
6939   IFS="$lt_save_ifs"
6940   MAGIC_CMD="$lt_save_MAGIC_CMD"
6941   ;;
6942 esac
6943 fi
6944
6945 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6946 if test -n "$MAGIC_CMD"; then
6947   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6948 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6949 else
6950   { echo "$as_me:$LINENO: result: no" >&5
6951 echo "${ECHO_T}no" >&6; }
6952 fi
6953
6954 if test -z "$lt_cv_path_MAGIC_CMD"; then
6955   if test -n "$ac_tool_prefix"; then
6956     { echo "$as_me:$LINENO: checking for file" >&5
6957 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6958 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   case $MAGIC_CMD in
6962 [\\/*] |  ?:[\\/]*)
6963   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6964   ;;
6965 *)
6966   lt_save_MAGIC_CMD="$MAGIC_CMD"
6967   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6968   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6969   for ac_dir in $ac_dummy; do
6970     IFS="$lt_save_ifs"
6971     test -z "$ac_dir" && ac_dir=.
6972     if test -f $ac_dir/file; then
6973       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6974       if test -n "$file_magic_test_file"; then
6975         case $deplibs_check_method in
6976         "file_magic "*)
6977           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6978           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6979           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6980             $EGREP "$file_magic_regex" > /dev/null; then
6981             :
6982           else
6983             cat <<EOF 1>&2
6984
6985 *** Warning: the command libtool uses to detect shared libraries,
6986 *** $file_magic_cmd, produces output that libtool cannot recognize.
6987 *** The result is that libtool may fail to recognize shared libraries
6988 *** as such.  This will affect the creation of libtool libraries that
6989 *** depend on shared libraries, but programs linked with such libtool
6990 *** libraries will work regardless of this problem.  Nevertheless, you
6991 *** may want to report the problem to your system manager and/or to
6992 *** bug-libtool@gnu.org
6993
6994 EOF
6995           fi ;;
6996         esac
6997       fi
6998       break
6999     fi
7000   done
7001   IFS="$lt_save_ifs"
7002   MAGIC_CMD="$lt_save_MAGIC_CMD"
7003   ;;
7004 esac
7005 fi
7006
7007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7008 if test -n "$MAGIC_CMD"; then
7009   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7010 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7011 else
7012   { echo "$as_me:$LINENO: result: no" >&5
7013 echo "${ECHO_T}no" >&6; }
7014 fi
7015
7016   else
7017     MAGIC_CMD=:
7018   fi
7019 fi
7020
7021   fi
7022   ;;
7023 esac
7024
7025
7026   case $host_os in
7027     rhapsody* | darwin*)
7028     if test -n "$ac_tool_prefix"; then
7029   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   if test -n "$DSYMUTIL"; then
7037   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7057 if test -n "$DSYMUTIL"; then
7058   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7059 echo "${ECHO_T}$DSYMUTIL" >&6; }
7060 else
7061   { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063 fi
7064
7065
7066 fi
7067 if test -z "$ac_cv_prog_DSYMUTIL"; then
7068   ac_ct_DSYMUTIL=$DSYMUTIL
7069   # Extract the first word of "dsymutil", so it can be a program name with args.
7070 set dummy dsymutil; ac_word=$2
7071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7074   echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076   if test -n "$ac_ct_DSYMUTIL"; then
7077   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082   IFS=$as_save_IFS
7083   test -z "$as_dir" && as_dir=.
7084   for ac_exec_ext in '' $ac_executable_extensions; do
7085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088     break 2
7089   fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7097 if test -n "$ac_ct_DSYMUTIL"; then
7098   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7099 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7100 else
7101   { echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6; }
7103 fi
7104
7105   if test "x$ac_ct_DSYMUTIL" = x; then
7106     DSYMUTIL=":"
7107   else
7108     case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7111 whose name does not start with the host triplet.  If you think this
7112 configuration is useful to you, please write to autoconf@gnu.org." >&5
7113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7114 whose name does not start with the host triplet.  If you think this
7115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118     DSYMUTIL=$ac_ct_DSYMUTIL
7119   fi
7120 else
7121   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7122 fi
7123
7124     if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   if test -n "$NMEDIT"; then
7133   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 NMEDIT=$ac_cv_prog_NMEDIT
7153 if test -n "$NMEDIT"; then
7154   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7155 echo "${ECHO_T}$NMEDIT" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_NMEDIT"; then
7164   ac_ct_NMEDIT=$NMEDIT
7165   # Extract the first word of "nmedit", so it can be a program name with args.
7166 set dummy nmedit; ac_word=$2
7167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7169 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   if test -n "$ac_ct_NMEDIT"; then
7173   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7193 if test -n "$ac_ct_NMEDIT"; then
7194   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7195 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201   if test "x$ac_ct_NMEDIT" = x; then
7202     NMEDIT=":"
7203   else
7204     case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7207 whose name does not start with the host triplet.  If you think this
7208 configuration is useful to you, please write to autoconf@gnu.org." >&5
7209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7210 whose name does not start with the host triplet.  If you think this
7211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214     NMEDIT=$ac_ct_NMEDIT
7215   fi
7216 else
7217   NMEDIT="$ac_cv_prog_NMEDIT"
7218 fi
7219
7220
7221     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7222 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7223 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   lt_cv_apple_cc_single_mod=no
7227       if test -z "${LT_MULTI_MODULE}"; then
7228    # By default we will add the -single_module flag. You can override
7229    # by either setting the environment variable LT_MULTI_MODULE
7230    # non-empty at configure time, or by adding -multi_module to the
7231    # link flags.
7232    echo "int foo(void){return 1;}" > conftest.c
7233    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7234      -dynamiclib ${wl}-single_module conftest.c
7235    if test -f libconftest.dylib; then
7236      lt_cv_apple_cc_single_mod=yes
7237      rm -rf libconftest.dylib*
7238    fi
7239    rm conftest.c
7240       fi
7241 fi
7242 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7243 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7244     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7245 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7246 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   lt_cv_ld_exported_symbols_list=no
7250       save_LDFLAGS=$LDFLAGS
7251       echo "_main" > conftest.sym
7252       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7253       cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h.  */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h.  */
7259
7260 int
7261 main ()
7262 {
7263
7264   ;
7265   return 0;
7266 }
7267 _ACEOF
7268 rm -f conftest.$ac_objext conftest$ac_exeext
7269 if { (ac_try="$ac_link"
7270 case "(($ac_try" in
7271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7272   *) ac_try_echo=$ac_try;;
7273 esac
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275   (eval "$ac_link") 2>conftest.er1
7276   ac_status=$?
7277   grep -v '^ *+' conftest.er1 >conftest.err
7278   rm -f conftest.er1
7279   cat conftest.err >&5
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); } && {
7282          test -z "$ac_c_werror_flag" ||
7283          test ! -s conftest.err
7284        } && test -s conftest$ac_exeext &&
7285        $as_test_x conftest$ac_exeext; then
7286   lt_cv_ld_exported_symbols_list=yes
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291         lt_cv_ld_exported_symbols_list=no
7292 fi
7293
7294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7295       conftest$ac_exeext conftest.$ac_ext
7296    LDFLAGS="$save_LDFLAGS"
7297
7298 fi
7299 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7300 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7301     case $host_os in
7302     rhapsody* | darwin1.[0123])
7303       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7304     darwin1.*)
7305      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7306     darwin*)
7307       # if running on 10.5 or later, the deployment target defaults
7308       # to the OS version, if on x86, and 10.4, the deployment
7309       # target defaults to 10.4. Don't you love it?
7310       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7311    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7312      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7313    10.[012]*)
7314      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7315    10.*)
7316      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7317       esac
7318     ;;
7319   esac
7320     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7321       _lt_dar_single_mod='$single_module'
7322     fi
7323     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7324       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7325     else
7326       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7327     fi
7328     if test "$DSYMUTIL" != ":"; then
7329       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7330     else
7331       _lt_dsymutil=
7332     fi
7333     ;;
7334   esac
7335
7336
7337 enable_dlopen=no
7338 enable_win32_dll=no
7339
7340 # Check whether --enable-libtool-lock was given.
7341 if test "${enable_libtool_lock+set}" = set; then
7342   enableval=$enable_libtool_lock;
7343 fi
7344
7345 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7346
7347
7348 # Check whether --with-pic was given.
7349 if test "${with_pic+set}" = set; then
7350   withval=$with_pic; pic_mode="$withval"
7351 else
7352   pic_mode=default
7353 fi
7354
7355 test -z "$pic_mode" && pic_mode=default
7356
7357 # Use C for the default configuration in the libtool script
7358 tagname=
7359 lt_save_CC="$CC"
7360 ac_ext=c
7361 ac_cpp='$CPP $CPPFLAGS'
7362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7365
7366
7367 # Source file extension for C test sources.
7368 ac_ext=c
7369
7370 # Object file extension for compiled C test sources.
7371 objext=o
7372 objext=$objext
7373
7374 # Code to be used in simple compile tests
7375 lt_simple_compile_test_code="int some_variable = 0;"
7376
7377 # Code to be used in simple link tests
7378 lt_simple_link_test_code='int main(){return(0);}'
7379
7380
7381 # If no C compiler was specified, use CC.
7382 LTCC=${LTCC-"$CC"}
7383
7384 # If no C compiler flags were specified, use CFLAGS.
7385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7386
7387 # Allow CC to be a program name with arguments.
7388 compiler=$CC
7389
7390
7391 # save warnings/boilerplate of simple test code
7392 ac_outfile=conftest.$ac_objext
7393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7395 _lt_compiler_boilerplate=`cat conftest.err`
7396 $rm conftest*
7397
7398 ac_outfile=conftest.$ac_objext
7399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7401 _lt_linker_boilerplate=`cat conftest.err`
7402 $rm -r conftest*
7403
7404
7405
7406 lt_prog_compiler_no_builtin_flag=
7407
7408 if test "$GCC" = yes; then
7409   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7410
7411
7412 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7413 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7414 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   lt_cv_prog_compiler_rtti_exceptions=no
7418   ac_outfile=conftest.$ac_objext
7419    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7420    lt_compiler_flag="-fno-rtti -fno-exceptions"
7421    # Insert the option either (1) after the last *FLAGS variable, or
7422    # (2) before a word containing "conftest.", or (3) at the end.
7423    # Note that $ac_compile itself does not contain backslashes and begins
7424    # with a dollar sign (not a hyphen), so the echo should work correctly.
7425    # The option is referenced via a variable to avoid confusing sed.
7426    lt_compile=`echo "$ac_compile" | $SED \
7427    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7429    -e 's:$: $lt_compiler_flag:'`
7430    (eval echo "\"\$as_me:7430: $lt_compile\"" >&5)
7431    (eval "$lt_compile" 2>conftest.err)
7432    ac_status=$?
7433    cat conftest.err >&5
7434    echo "$as_me:7434: \$? = $ac_status" >&5
7435    if (exit $ac_status) && test -s "$ac_outfile"; then
7436      # The compiler can only warn and ignore the option if not recognized
7437      # So say no if there are warnings other than the usual output.
7438      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7439      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7440      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7441        lt_cv_prog_compiler_rtti_exceptions=yes
7442      fi
7443    fi
7444    $rm conftest*
7445
7446 fi
7447 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7448 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7449
7450 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7451     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7452 else
7453     :
7454 fi
7455
7456 fi
7457
7458 lt_prog_compiler_wl=
7459 lt_prog_compiler_pic=
7460 lt_prog_compiler_static=
7461
7462 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7463 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7464
7465   if test "$GCC" = yes; then
7466     lt_prog_compiler_wl='-Wl,'
7467     lt_prog_compiler_static='-static'
7468
7469     case $host_os in
7470       aix*)
7471       # All AIX code is PIC.
7472       if test "$host_cpu" = ia64; then
7473         # AIX 5 now supports IA64 processor
7474         lt_prog_compiler_static='-Bstatic'
7475       fi
7476       ;;
7477
7478     amigaos*)
7479       # FIXME: we need at least 68020 code to build shared libraries, but
7480       # adding the `-m68020' flag to GCC prevents building anything better,
7481       # like `-m68040'.
7482       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7483       ;;
7484
7485     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7486       # PIC is the default for these OSes.
7487       ;;
7488
7489     mingw* | cygwin* | pw32* | os2*)
7490       # This hack is so that the source file can tell whether it is being
7491       # built for inclusion in a dll (and should export symbols for example).
7492       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7493       # (--disable-auto-import) libraries
7494       lt_prog_compiler_pic='-DDLL_EXPORT'
7495       ;;
7496
7497     darwin* | rhapsody*)
7498       # PIC is the default on this platform
7499       # Common symbols not allowed in MH_DYLIB files
7500       lt_prog_compiler_pic='-fno-common'
7501       ;;
7502
7503     interix[3-9]*)
7504       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7505       # Instead, we relocate shared libraries at runtime.
7506       ;;
7507
7508     msdosdjgpp*)
7509       # Just because we use GCC doesn't mean we suddenly get shared libraries
7510       # on systems that don't support them.
7511       lt_prog_compiler_can_build_shared=no
7512       enable_shared=no
7513       ;;
7514
7515     sysv4*MP*)
7516       if test -d /usr/nec; then
7517         lt_prog_compiler_pic=-Kconform_pic
7518       fi
7519       ;;
7520
7521     hpux*)
7522       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7523       # not for PA HP-UX.
7524       case $host_cpu in
7525       hppa*64*|ia64*)
7526         # +Z the default
7527         ;;
7528       *)
7529         lt_prog_compiler_pic='-fPIC'
7530         ;;
7531       esac
7532       ;;
7533
7534     *)
7535       lt_prog_compiler_pic='-fPIC'
7536       ;;
7537     esac
7538   else
7539     # PORTME Check for flag to pass linker flags through the system compiler.
7540     case $host_os in
7541     aix*)
7542       lt_prog_compiler_wl='-Wl,'
7543       if test "$host_cpu" = ia64; then
7544         # AIX 5 now supports IA64 processor
7545         lt_prog_compiler_static='-Bstatic'
7546       else
7547         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7548       fi
7549       ;;
7550       darwin*)
7551         # PIC is the default on this platform
7552         # Common symbols not allowed in MH_DYLIB files
7553        case $cc_basename in
7554          xlc*)
7555          lt_prog_compiler_pic='-qnocommon'
7556          lt_prog_compiler_wl='-Wl,'
7557          ;;
7558        esac
7559        ;;
7560
7561     mingw* | cygwin* | pw32* | os2*)
7562       # This hack is so that the source file can tell whether it is being
7563       # built for inclusion in a dll (and should export symbols for example).
7564       lt_prog_compiler_pic='-DDLL_EXPORT'
7565       ;;
7566
7567     hpux9* | hpux10* | hpux11*)
7568       lt_prog_compiler_wl='-Wl,'
7569       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7570       # not for PA HP-UX.
7571       case $host_cpu in
7572       hppa*64*|ia64*)
7573         # +Z the default
7574         ;;
7575       *)
7576         lt_prog_compiler_pic='+Z'
7577         ;;
7578       esac
7579       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7580       lt_prog_compiler_static='${wl}-a ${wl}archive'
7581       ;;
7582
7583     irix5* | irix6* | nonstopux*)
7584       lt_prog_compiler_wl='-Wl,'
7585       # PIC (with -KPIC) is the default.
7586       lt_prog_compiler_static='-non_shared'
7587       ;;
7588
7589     newsos6)
7590       lt_prog_compiler_pic='-KPIC'
7591       lt_prog_compiler_static='-Bstatic'
7592       ;;
7593
7594     linux* | k*bsd*-gnu)
7595       case $cc_basename in
7596       icc* | ecc*)
7597         lt_prog_compiler_wl='-Wl,'
7598         lt_prog_compiler_pic='-KPIC'
7599         lt_prog_compiler_static='-static'
7600         ;;
7601       pgcc* | pgf77* | pgf90* | pgf95*)
7602         # Portland Group compilers (*not* the Pentium gcc compiler,
7603         # which looks to be a dead project)
7604         lt_prog_compiler_wl='-Wl,'
7605         lt_prog_compiler_pic='-fpic'
7606         lt_prog_compiler_static='-Bstatic'
7607         ;;
7608       ccc*)
7609         lt_prog_compiler_wl='-Wl,'
7610         # All Alpha code is PIC.
7611         lt_prog_compiler_static='-non_shared'
7612         ;;
7613       *)
7614         case `$CC -V 2>&1 | sed 5q` in
7615         *Sun\ C*)
7616           # Sun C 5.9
7617           lt_prog_compiler_pic='-KPIC'
7618           lt_prog_compiler_static='-Bstatic'
7619           lt_prog_compiler_wl='-Wl,'
7620           ;;
7621         *Sun\ F*)
7622           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7623           lt_prog_compiler_pic='-KPIC'
7624           lt_prog_compiler_static='-Bstatic'
7625           lt_prog_compiler_wl=''
7626           ;;
7627         esac
7628         ;;
7629       esac
7630       ;;
7631
7632     osf3* | osf4* | osf5*)
7633       lt_prog_compiler_wl='-Wl,'
7634       # All OSF/1 code is PIC.
7635       lt_prog_compiler_static='-non_shared'
7636       ;;
7637
7638     rdos*)
7639       lt_prog_compiler_static='-non_shared'
7640       ;;
7641
7642     solaris*)
7643       lt_prog_compiler_pic='-KPIC'
7644       lt_prog_compiler_static='-Bstatic'
7645       case $cc_basename in
7646       f77* | f90* | f95*)
7647         lt_prog_compiler_wl='-Qoption ld ';;
7648       *)
7649         lt_prog_compiler_wl='-Wl,';;
7650       esac
7651       ;;
7652
7653     sunos4*)
7654       lt_prog_compiler_wl='-Qoption ld '
7655       lt_prog_compiler_pic='-PIC'
7656       lt_prog_compiler_static='-Bstatic'
7657       ;;
7658
7659     sysv4 | sysv4.2uw2* | sysv4.3*)
7660       lt_prog_compiler_wl='-Wl,'
7661       lt_prog_compiler_pic='-KPIC'
7662       lt_prog_compiler_static='-Bstatic'
7663       ;;
7664
7665     sysv4*MP*)
7666       if test -d /usr/nec ;then
7667         lt_prog_compiler_pic='-Kconform_pic'
7668         lt_prog_compiler_static='-Bstatic'
7669       fi
7670       ;;
7671
7672     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7673       lt_prog_compiler_wl='-Wl,'
7674       lt_prog_compiler_pic='-KPIC'
7675       lt_prog_compiler_static='-Bstatic'
7676       ;;
7677
7678     unicos*)
7679       lt_prog_compiler_wl='-Wl,'
7680       lt_prog_compiler_can_build_shared=no
7681       ;;
7682
7683     uts4*)
7684       lt_prog_compiler_pic='-pic'
7685       lt_prog_compiler_static='-Bstatic'
7686       ;;
7687
7688     *)
7689       lt_prog_compiler_can_build_shared=no
7690       ;;
7691     esac
7692   fi
7693
7694 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7695 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7696
7697 #
7698 # Check to make sure the PIC flag actually works.
7699 #
7700 if test -n "$lt_prog_compiler_pic"; then
7701
7702 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7703 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7704 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7705   echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707   lt_cv_prog_compiler_pic_works=no
7708   ac_outfile=conftest.$ac_objext
7709    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7710    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7711    # Insert the option either (1) after the last *FLAGS variable, or
7712    # (2) before a word containing "conftest.", or (3) at the end.
7713    # Note that $ac_compile itself does not contain backslashes and begins
7714    # with a dollar sign (not a hyphen), so the echo should work correctly.
7715    # The option is referenced via a variable to avoid confusing sed.
7716    lt_compile=`echo "$ac_compile" | $SED \
7717    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7718    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7719    -e 's:$: $lt_compiler_flag:'`
7720    (eval echo "\"\$as_me:7720: $lt_compile\"" >&5)
7721    (eval "$lt_compile" 2>conftest.err)
7722    ac_status=$?
7723    cat conftest.err >&5
7724    echo "$as_me:7724: \$? = $ac_status" >&5
7725    if (exit $ac_status) && test -s "$ac_outfile"; then
7726      # The compiler can only warn and ignore the option if not recognized
7727      # So say no if there are warnings other than the usual output.
7728      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7729      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7730      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7731        lt_cv_prog_compiler_pic_works=yes
7732      fi
7733    fi
7734    $rm conftest*
7735
7736 fi
7737 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7738 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7739
7740 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7741     case $lt_prog_compiler_pic in
7742      "" | " "*) ;;
7743      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7744      esac
7745 else
7746     lt_prog_compiler_pic=
7747      lt_prog_compiler_can_build_shared=no
7748 fi
7749
7750 fi
7751 case $host_os in
7752   # For platforms which do not support PIC, -DPIC is meaningless:
7753   *djgpp*)
7754     lt_prog_compiler_pic=
7755     ;;
7756   *)
7757     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7758     ;;
7759 esac
7760
7761 #
7762 # Check to make sure the static flag actually works.
7763 #
7764 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7765 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7766 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7767 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   lt_cv_prog_compiler_static_works=no
7771    save_LDFLAGS="$LDFLAGS"
7772    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7773    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7774    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7775      # The linker can only warn and ignore the option if not recognized
7776      # So say no if there are warnings
7777      if test -s conftest.err; then
7778        # Append any errors to the config.log.
7779        cat conftest.err 1>&5
7780        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7781        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7782        if diff conftest.exp conftest.er2 >/dev/null; then
7783          lt_cv_prog_compiler_static_works=yes
7784        fi
7785      else
7786        lt_cv_prog_compiler_static_works=yes
7787      fi
7788    fi
7789    $rm -r conftest*
7790    LDFLAGS="$save_LDFLAGS"
7791
7792 fi
7793 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7794 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7795
7796 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7797     :
7798 else
7799     lt_prog_compiler_static=
7800 fi
7801
7802
7803 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7804 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7805 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   lt_cv_prog_compiler_c_o=no
7809    $rm -r conftest 2>/dev/null
7810    mkdir conftest
7811    cd conftest
7812    mkdir out
7813    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7814
7815    lt_compiler_flag="-o out/conftest2.$ac_objext"
7816    # Insert the option either (1) after the last *FLAGS variable, or
7817    # (2) before a word containing "conftest.", or (3) at the end.
7818    # Note that $ac_compile itself does not contain backslashes and begins
7819    # with a dollar sign (not a hyphen), so the echo should work correctly.
7820    lt_compile=`echo "$ac_compile" | $SED \
7821    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7822    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7823    -e 's:$: $lt_compiler_flag:'`
7824    (eval echo "\"\$as_me:7824: $lt_compile\"" >&5)
7825    (eval "$lt_compile" 2>out/conftest.err)
7826    ac_status=$?
7827    cat out/conftest.err >&5
7828    echo "$as_me:7828: \$? = $ac_status" >&5
7829    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7830    then
7831      # The compiler can only warn and ignore the option if not recognized
7832      # So say no if there are warnings
7833      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7834      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7835      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7836        lt_cv_prog_compiler_c_o=yes
7837      fi
7838    fi
7839    chmod u+w . 2>&5
7840    $rm conftest*
7841    # SGI C++ compiler will create directory out/ii_files/ for
7842    # template instantiation
7843    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7844    $rm out/* && rmdir out
7845    cd ..
7846    rmdir conftest
7847    $rm conftest*
7848
7849 fi
7850 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7851 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7852
7853
7854 hard_links="nottested"
7855 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7856   # do not overwrite the value of need_locks provided by the user
7857   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7858 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7859   hard_links=yes
7860   $rm conftest*
7861   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7862   touch conftest.a
7863   ln conftest.a conftest.b 2>&5 || hard_links=no
7864   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7865   { echo "$as_me:$LINENO: result: $hard_links" >&5
7866 echo "${ECHO_T}$hard_links" >&6; }
7867   if test "$hard_links" = no; then
7868     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7869 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7870     need_locks=warn
7871   fi
7872 else
7873   need_locks=no
7874 fi
7875
7876 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7877 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7878
7879   runpath_var=
7880   allow_undefined_flag=
7881   enable_shared_with_static_runtimes=no
7882   archive_cmds=
7883   archive_expsym_cmds=
7884   old_archive_From_new_cmds=
7885   old_archive_from_expsyms_cmds=
7886   export_dynamic_flag_spec=
7887   whole_archive_flag_spec=
7888   thread_safe_flag_spec=
7889   hardcode_libdir_flag_spec=
7890   hardcode_libdir_flag_spec_ld=
7891   hardcode_libdir_separator=
7892   hardcode_direct=no
7893   hardcode_minus_L=no
7894   hardcode_shlibpath_var=unsupported
7895   link_all_deplibs=unknown
7896   hardcode_automatic=no
7897   module_cmds=
7898   module_expsym_cmds=
7899   always_export_symbols=no
7900   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7901   # include_expsyms should be a list of space-separated symbols to be *always*
7902   # included in the symbol list
7903   include_expsyms=
7904   # exclude_expsyms can be an extended regexp of symbols to exclude
7905   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7906   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7907   # as well as any symbol that contains `d'.
7908   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7909   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7910   # platforms (ab)use it in PIC code, but their linkers get confused if
7911   # the symbol is explicitly referenced.  Since portable code cannot
7912   # rely on this symbol name, it's probably fine to never include it in
7913   # preloaded symbol tables.
7914   # Exclude shared library initialization/finalization symbols.
7915   extract_expsyms_cmds=
7916   # Just being paranoid about ensuring that cc_basename is set.
7917   for cc_temp in $compiler""; do
7918   case $cc_temp in
7919     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7920     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7921     \-*) ;;
7922     *) break;;
7923   esac
7924 done
7925 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7926
7927   case $host_os in
7928   cygwin* | mingw* | pw32*)
7929     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7930     # When not using gcc, we currently assume that we are using
7931     # Microsoft Visual C++.
7932     if test "$GCC" != yes; then
7933       with_gnu_ld=no
7934     fi
7935     ;;
7936   interix*)
7937     # we just hope/assume this is gcc and not c89 (= MSVC++)
7938     with_gnu_ld=yes
7939     ;;
7940   openbsd*)
7941     with_gnu_ld=no
7942     ;;
7943   esac
7944
7945   ld_shlibs=yes
7946   if test "$with_gnu_ld" = yes; then
7947     # If archive_cmds runs LD, not CC, wlarc should be empty
7948     wlarc='${wl}'
7949
7950     # Set some defaults for GNU ld with shared library support. These
7951     # are reset later if shared libraries are not supported. Putting them
7952     # here allows them to be overridden if necessary.
7953     runpath_var=LD_RUN_PATH
7954     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7955     export_dynamic_flag_spec='${wl}--export-dynamic'
7956     # ancient GNU ld didn't support --whole-archive et. al.
7957     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7958         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7959       else
7960         whole_archive_flag_spec=
7961     fi
7962     supports_anon_versioning=no
7963     case `$LD -v 2>/dev/null` in
7964       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7965       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7966       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7967       *\ 2.11.*) ;; # other 2.11 versions
7968       *) supports_anon_versioning=yes ;;
7969     esac
7970
7971     # See if GNU ld supports shared libraries.
7972     case $host_os in
7973     aix[3-9]*)
7974       # On AIX/PPC, the GNU linker is very broken
7975       if test "$host_cpu" != ia64; then
7976         ld_shlibs=no
7977         cat <<EOF 1>&2
7978
7979 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7980 *** to be unable to reliably create shared libraries on AIX.
7981 *** Therefore, libtool is disabling shared libraries support.  If you
7982 *** really care for shared libraries, you may want to modify your PATH
7983 *** so that a non-GNU linker is found, and then restart.
7984
7985 EOF
7986       fi
7987       ;;
7988
7989     amigaos*)
7990       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)'
7991       hardcode_libdir_flag_spec='-L$libdir'
7992       hardcode_minus_L=yes
7993
7994       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7995       # that the semantics of dynamic libraries on AmigaOS, at least up
7996       # to version 4, is to share data among multiple programs linked
7997       # with the same dynamic library.  Since this doesn't match the
7998       # behavior of shared libraries on other platforms, we can't use
7999       # them.
8000       ld_shlibs=no
8001       ;;
8002
8003     beos*)
8004       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8005         allow_undefined_flag=unsupported
8006         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8007         # support --undefined.  This deserves some investigation.  FIXME
8008         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8009       else
8010         ld_shlibs=no
8011       fi
8012       ;;
8013
8014     cygwin* | mingw* | pw32*)
8015       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8016       # as there is no search path for DLLs.
8017       hardcode_libdir_flag_spec='-L$libdir'
8018       allow_undefined_flag=unsupported
8019       always_export_symbols=no
8020       enable_shared_with_static_runtimes=yes
8021       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8022
8023       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8024         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8025         # If the export-symbols file already is a .def file (1st line
8026         # is EXPORTS), use it as is; otherwise, prepend...
8027         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8028           cp $export_symbols $output_objdir/$soname.def;
8029         else
8030           echo EXPORTS > $output_objdir/$soname.def;
8031           cat $export_symbols >> $output_objdir/$soname.def;
8032         fi~
8033         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8034       else
8035         ld_shlibs=no
8036       fi
8037       ;;
8038
8039     interix[3-9]*)
8040       hardcode_direct=no
8041       hardcode_shlibpath_var=no
8042       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8043       export_dynamic_flag_spec='${wl}-E'
8044       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8045       # Instead, shared libraries are loaded at an image base (0x10000000 by
8046       # default) and relocated if they conflict, which is a slow very memory
8047       # consuming and fragmenting process.  To avoid this, we pick a random,
8048       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8049       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8050       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8051       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'
8052       ;;
8053
8054     gnu* | linux* | k*bsd*-gnu)
8055       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8056         tmp_addflag=
8057         case $cc_basename,$host_cpu in
8058         pgcc*)                          # Portland Group C compiler
8059           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8060           tmp_addflag=' $pic_flag'
8061           ;;
8062         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8063           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8064           tmp_addflag=' $pic_flag -Mnomain' ;;
8065         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8066           tmp_addflag=' -i_dynamic' ;;
8067         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8068           tmp_addflag=' -i_dynamic -nofor_main' ;;
8069         ifc* | ifort*)                  # Intel Fortran compiler
8070           tmp_addflag=' -nofor_main' ;;
8071         esac
8072         case `$CC -V 2>&1 | sed 5q` in
8073         *Sun\ C*)                       # Sun C 5.9
8074           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8075           tmp_sharedflag='-G' ;;
8076         *Sun\ F*)                       # Sun Fortran 8.3
8077           tmp_sharedflag='-G' ;;
8078         *)
8079           tmp_sharedflag='-shared' ;;
8080         esac
8081         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8082
8083         if test $supports_anon_versioning = yes; then
8084           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8085   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8086   $echo "local: *; };" >> $output_objdir/$libname.ver~
8087           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8088         fi
8089         link_all_deplibs=no
8090       else
8091         ld_shlibs=no
8092       fi
8093       ;;
8094
8095     netbsd* | netbsdelf*-gnu)
8096       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8097         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8098         wlarc=
8099       else
8100         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8101         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8102       fi
8103       ;;
8104
8105     solaris*)
8106       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8107         ld_shlibs=no
8108         cat <<EOF 1>&2
8109
8110 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8111 *** create shared libraries on Solaris systems.  Therefore, libtool
8112 *** is disabling shared libraries support.  We urge you to upgrade GNU
8113 *** binutils to release 2.9.1 or newer.  Another option is to modify
8114 *** your PATH or compiler configuration so that the native linker is
8115 *** used, and then restart.
8116
8117 EOF
8118       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8119         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8120         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8121       else
8122         ld_shlibs=no
8123       fi
8124       ;;
8125
8126     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8127       case `$LD -v 2>&1` in
8128         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8129         ld_shlibs=no
8130         cat <<_LT_EOF 1>&2
8131
8132 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8133 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8134 *** is disabling shared libraries support.  We urge you to upgrade GNU
8135 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8136 *** your PATH or compiler configuration so that the native linker is
8137 *** used, and then restart.
8138
8139 _LT_EOF
8140         ;;
8141         *)
8142           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8143             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8144             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8145             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8146           else
8147             ld_shlibs=no
8148           fi
8149         ;;
8150       esac
8151       ;;
8152
8153     sunos4*)
8154       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8155       wlarc=
8156       hardcode_direct=yes
8157       hardcode_shlibpath_var=no
8158       ;;
8159
8160     *)
8161       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8162         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8163         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8164       else
8165         ld_shlibs=no
8166       fi
8167       ;;
8168     esac
8169
8170     if test "$ld_shlibs" = no; then
8171       runpath_var=
8172       hardcode_libdir_flag_spec=
8173       export_dynamic_flag_spec=
8174       whole_archive_flag_spec=
8175     fi
8176   else
8177     # PORTME fill in a description of your system's linker (not GNU ld)
8178     case $host_os in
8179     aix3*)
8180       allow_undefined_flag=unsupported
8181       always_export_symbols=yes
8182       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'
8183       # Note: this linker hardcodes the directories in LIBPATH if there
8184       # are no directories specified by -L.
8185       hardcode_minus_L=yes
8186       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8187         # Neither direct hardcoding nor static linking is supported with a
8188         # broken collect2.
8189         hardcode_direct=unsupported
8190       fi
8191       ;;
8192
8193     aix[4-9]*)
8194       if test "$host_cpu" = ia64; then
8195         # On IA64, the linker does run time linking by default, so we don't
8196         # have to do anything special.
8197         aix_use_runtimelinking=no
8198         exp_sym_flag='-Bexport'
8199         no_entry_flag=""
8200       else
8201         # If we're using GNU nm, then we don't want the "-C" option.
8202         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8203         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8204           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8205         else
8206           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'
8207         fi
8208         aix_use_runtimelinking=no
8209
8210         # Test if we are trying to use run time linking or normal
8211         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8212         # need to do runtime linking.
8213         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8214           for ld_flag in $LDFLAGS; do
8215           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8216             aix_use_runtimelinking=yes
8217             break
8218           fi
8219           done
8220           ;;
8221         esac
8222
8223         exp_sym_flag='-bexport'
8224         no_entry_flag='-bnoentry'
8225       fi
8226
8227       # When large executables or shared objects are built, AIX ld can
8228       # have problems creating the table of contents.  If linking a library
8229       # or program results in "error TOC overflow" add -mminimal-toc to
8230       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8231       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8232
8233       archive_cmds=''
8234       hardcode_direct=yes
8235       hardcode_libdir_separator=':'
8236       link_all_deplibs=yes
8237
8238       if test "$GCC" = yes; then
8239         case $host_os in aix4.[012]|aix4.[012].*)
8240         # We only want to do this on AIX 4.2 and lower, the check
8241         # below for broken collect2 doesn't work under 4.3+
8242           collect2name=`${CC} -print-prog-name=collect2`
8243           if test -f "$collect2name" && \
8244            strings "$collect2name" | grep resolve_lib_name >/dev/null
8245           then
8246           # We have reworked collect2
8247           :
8248           else
8249           # We have old collect2
8250           hardcode_direct=unsupported
8251           # It fails to find uninstalled libraries when the uninstalled
8252           # path is not listed in the libpath.  Setting hardcode_minus_L
8253           # to unsupported forces relinking
8254           hardcode_minus_L=yes
8255           hardcode_libdir_flag_spec='-L$libdir'
8256           hardcode_libdir_separator=
8257           fi
8258           ;;
8259         esac
8260         shared_flag='-shared'
8261         if test "$aix_use_runtimelinking" = yes; then
8262           shared_flag="$shared_flag "'${wl}-G'
8263         fi
8264       else
8265         # not using gcc
8266         if test "$host_cpu" = ia64; then
8267         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8268         # chokes on -Wl,-G. The following line is correct:
8269           shared_flag='-G'
8270         else
8271           if test "$aix_use_runtimelinking" = yes; then
8272             shared_flag='${wl}-G'
8273           else
8274             shared_flag='${wl}-bM:SRE'
8275           fi
8276         fi
8277       fi
8278
8279       # It seems that -bexpall does not export symbols beginning with
8280       # underscore (_), so it is better to generate a list of symbols to export.
8281       always_export_symbols=yes
8282       if test "$aix_use_runtimelinking" = yes; then
8283         # Warning - without using the other runtime loading flags (-brtl),
8284         # -berok will link without error, but may produce a broken library.
8285         allow_undefined_flag='-berok'
8286        # Determine the default libpath from the value encoded in an empty executable.
8287        cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h.  */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h.  */
8293
8294 int
8295 main ()
8296 {
8297
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8304 case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_link") 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } && {
8316          test -z "$ac_c_werror_flag" ||
8317          test ! -s conftest.err
8318        } && test -s conftest$ac_exeext &&
8319        $as_test_x conftest$ac_exeext; then
8320
8321 lt_aix_libpath_sed='
8322     /Import File Strings/,/^$/ {
8323         /^0/ {
8324             s/^0  *\(.*\)$/\1/
8325             p
8326         }
8327     }'
8328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8329 # Check for a 64-bit object if we didn't find anything.
8330 if test -z "$aix_libpath"; then
8331   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8332 fi
8333 else
8334   echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337
8338 fi
8339
8340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8341       conftest$ac_exeext conftest.$ac_ext
8342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8343
8344        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8345         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8346        else
8347         if test "$host_cpu" = ia64; then
8348           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8349           allow_undefined_flag="-z nodefs"
8350           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"
8351         else
8352          # Determine the default libpath from the value encoded in an empty executable.
8353          cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359
8360 int
8361 main ()
8362 {
8363
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (ac_try="$ac_link"
8370 case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375   (eval "$ac_link") 2>conftest.er1
8376   ac_status=$?
8377   grep -v '^ *+' conftest.er1 >conftest.err
8378   rm -f conftest.er1
8379   cat conftest.err >&5
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); } && {
8382          test -z "$ac_c_werror_flag" ||
8383          test ! -s conftest.err
8384        } && test -s conftest$ac_exeext &&
8385        $as_test_x conftest$ac_exeext; then
8386
8387 lt_aix_libpath_sed='
8388     /Import File Strings/,/^$/ {
8389         /^0/ {
8390             s/^0  *\(.*\)$/\1/
8391             p
8392         }
8393     }'
8394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8395 # Check for a 64-bit object if we didn't find anything.
8396 if test -z "$aix_libpath"; then
8397   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8398 fi
8399 else
8400   echo "$as_me: failed program was:" >&5
8401 sed 's/^/| /' conftest.$ac_ext >&5
8402
8403
8404 fi
8405
8406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8407       conftest$ac_exeext conftest.$ac_ext
8408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8409
8410          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8411           # Warning - without using the other run time loading flags,
8412           # -berok will link without error, but may produce a broken library.
8413           no_undefined_flag=' ${wl}-bernotok'
8414           allow_undefined_flag=' ${wl}-berok'
8415           # Exported symbols can be pulled into shared objects from archives
8416           whole_archive_flag_spec='$convenience'
8417           archive_cmds_need_lc=yes
8418           # This is similar to how AIX traditionally builds its shared libraries.
8419           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'
8420         fi
8421       fi
8422       ;;
8423
8424     amigaos*)
8425       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)'
8426       hardcode_libdir_flag_spec='-L$libdir'
8427       hardcode_minus_L=yes
8428       # see comment about different semantics on the GNU ld section
8429       ld_shlibs=no
8430       ;;
8431
8432     bsdi[45]*)
8433       export_dynamic_flag_spec=-rdynamic
8434       ;;
8435
8436     cygwin* | mingw* | pw32*)
8437       # When not using gcc, we currently assume that we are using
8438       # Microsoft Visual C++.
8439       # hardcode_libdir_flag_spec is actually meaningless, as there is
8440       # no search path for DLLs.
8441       hardcode_libdir_flag_spec=' '
8442       allow_undefined_flag=unsupported
8443       # Tell ltmain to make .lib files, not .a files.
8444       libext=lib
8445       # Tell ltmain to make .dll files, not .so files.
8446       shrext_cmds=".dll"
8447       # FIXME: Setting linknames here is a bad hack.
8448       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8449       # The linker will automatically build a .lib file if we build a DLL.
8450       old_archive_From_new_cmds='true'
8451       # FIXME: Should let the user specify the lib program.
8452       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8453       fix_srcfile_path='`cygpath -w "$srcfile"`'
8454       enable_shared_with_static_runtimes=yes
8455       ;;
8456
8457     darwin* | rhapsody*)
8458       case $host_os in
8459         rhapsody* | darwin1.[012])
8460          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8461          ;;
8462        *) # Darwin 1.3 on
8463          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8464            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8465          else
8466            case ${MACOSX_DEPLOYMENT_TARGET} in
8467              10.[012])
8468                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8469                ;;
8470              10.*)
8471                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8472                ;;
8473            esac
8474          fi
8475          ;;
8476       esac
8477       archive_cmds_need_lc=no
8478       hardcode_direct=no
8479       hardcode_automatic=yes
8480       hardcode_shlibpath_var=unsupported
8481       whole_archive_flag_spec=''
8482       link_all_deplibs=yes
8483     if test "$GCC" = yes ; then
8484         output_verbose_link_cmd='echo'
8485         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8486         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8487         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}"
8488         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}"
8489     else
8490       case $cc_basename in
8491         xlc*)
8492          output_verbose_link_cmd='echo'
8493          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8494          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8495           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8496          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8497           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8498           ;;
8499        *)
8500          ld_shlibs=no
8501           ;;
8502       esac
8503     fi
8504       ;;
8505
8506     dgux*)
8507       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508       hardcode_libdir_flag_spec='-L$libdir'
8509       hardcode_shlibpath_var=no
8510       ;;
8511
8512     freebsd1*)
8513       ld_shlibs=no
8514       ;;
8515
8516     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8517     # support.  Future versions do this automatically, but an explicit c++rt0.o
8518     # does not break anything, and helps significantly (at the cost of a little
8519     # extra space).
8520     freebsd2.2*)
8521       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8522       hardcode_libdir_flag_spec='-R$libdir'
8523       hardcode_direct=yes
8524       hardcode_shlibpath_var=no
8525       ;;
8526
8527     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8528     freebsd2*)
8529       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8530       hardcode_direct=yes
8531       hardcode_minus_L=yes
8532       hardcode_shlibpath_var=no
8533       ;;
8534
8535     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8536     freebsd* | dragonfly*)
8537       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8538       hardcode_libdir_flag_spec='-R$libdir'
8539       hardcode_direct=yes
8540       hardcode_shlibpath_var=no
8541       ;;
8542
8543     hpux9*)
8544       if test "$GCC" = yes; then
8545         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'
8546       else
8547         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'
8548       fi
8549       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8550       hardcode_libdir_separator=:
8551       hardcode_direct=yes
8552
8553       # hardcode_minus_L: Not really in the search PATH,
8554       # but as the default location of the library.
8555       hardcode_minus_L=yes
8556       export_dynamic_flag_spec='${wl}-E'
8557       ;;
8558
8559     hpux10*)
8560       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8561         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8562       else
8563         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8564       fi
8565       if test "$with_gnu_ld" = no; then
8566         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8567         hardcode_libdir_separator=:
8568
8569         hardcode_direct=yes
8570         export_dynamic_flag_spec='${wl}-E'
8571
8572         # hardcode_minus_L: Not really in the search PATH,
8573         # but as the default location of the library.
8574         hardcode_minus_L=yes
8575       fi
8576       ;;
8577
8578     hpux11*)
8579       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8580         case $host_cpu in
8581         hppa*64*)
8582           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8583           ;;
8584         ia64*)
8585           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8586           ;;
8587         *)
8588           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8589           ;;
8590         esac
8591       else
8592         case $host_cpu in
8593         hppa*64*)
8594           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8595           ;;
8596         ia64*)
8597           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8598           ;;
8599         *)
8600           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8601           ;;
8602         esac
8603       fi
8604       if test "$with_gnu_ld" = no; then
8605         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8606         hardcode_libdir_separator=:
8607
8608         case $host_cpu in
8609         hppa*64*|ia64*)
8610           hardcode_libdir_flag_spec_ld='+b $libdir'
8611           hardcode_direct=no
8612           hardcode_shlibpath_var=no
8613           ;;
8614         *)
8615           hardcode_direct=yes
8616           export_dynamic_flag_spec='${wl}-E'
8617
8618           # hardcode_minus_L: Not really in the search PATH,
8619           # but as the default location of the library.
8620           hardcode_minus_L=yes
8621           ;;
8622         esac
8623       fi
8624       ;;
8625
8626     irix5* | irix6* | nonstopux*)
8627       if test "$GCC" = yes; then
8628         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8629       else
8630         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8631         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8632       fi
8633       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8634       hardcode_libdir_separator=:
8635       link_all_deplibs=yes
8636       ;;
8637
8638     netbsd* | netbsdelf*-gnu)
8639       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8640         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8641       else
8642         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8643       fi
8644       hardcode_libdir_flag_spec='-R$libdir'
8645       hardcode_direct=yes
8646       hardcode_shlibpath_var=no
8647       ;;
8648
8649     newsos6)
8650       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8651       hardcode_direct=yes
8652       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653       hardcode_libdir_separator=:
8654       hardcode_shlibpath_var=no
8655       ;;
8656
8657     openbsd*)
8658       if test -f /usr/libexec/ld.so; then
8659         hardcode_direct=yes
8660         hardcode_shlibpath_var=no
8661         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8662           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8663           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8664           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665           export_dynamic_flag_spec='${wl}-E'
8666         else
8667           case $host_os in
8668            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8669              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670              hardcode_libdir_flag_spec='-R$libdir'
8671              ;;
8672            *)
8673              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8674              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8675              ;;
8676           esac
8677         fi
8678       else
8679         ld_shlibs=no
8680       fi
8681       ;;
8682
8683     os2*)
8684       hardcode_libdir_flag_spec='-L$libdir'
8685       hardcode_minus_L=yes
8686       allow_undefined_flag=unsupported
8687       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'
8688       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8689       ;;
8690
8691     osf3*)
8692       if test "$GCC" = yes; then
8693         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8694         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8695       else
8696         allow_undefined_flag=' -expect_unresolved \*'
8697         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8698       fi
8699       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700       hardcode_libdir_separator=:
8701       ;;
8702
8703     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8704       if test "$GCC" = yes; then
8705         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8706         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8707         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8708       else
8709         allow_undefined_flag=' -expect_unresolved \*'
8710         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8711         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8712         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8713
8714         # Both c and cxx compiler support -rpath directly
8715         hardcode_libdir_flag_spec='-rpath $libdir'
8716       fi
8717       hardcode_libdir_separator=:
8718       ;;
8719
8720     solaris*)
8721       no_undefined_flag=' -z text'
8722       if test "$GCC" = yes; then
8723         wlarc='${wl}'
8724         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8726           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8727       else
8728         wlarc=''
8729         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8730         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8731         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8732       fi
8733       hardcode_libdir_flag_spec='-R$libdir'
8734       hardcode_shlibpath_var=no
8735       case $host_os in
8736       solaris2.[0-5] | solaris2.[0-5].*) ;;
8737       *)
8738         # The compiler driver will combine and reorder linker options,
8739         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8740         # but is careful enough not to reorder.
8741         # Supported since Solaris 2.6 (maybe 2.5.1?)
8742         if test "$GCC" = yes; then
8743           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8744         else
8745           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8746         fi
8747         ;;
8748       esac
8749       link_all_deplibs=yes
8750       ;;
8751
8752     sunos4*)
8753       if test "x$host_vendor" = xsequent; then
8754         # Use $CC to link under sequent, because it throws in some extra .o
8755         # files that make .init and .fini sections work.
8756         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8757       else
8758         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8759       fi
8760       hardcode_libdir_flag_spec='-L$libdir'
8761       hardcode_direct=yes
8762       hardcode_minus_L=yes
8763       hardcode_shlibpath_var=no
8764       ;;
8765
8766     sysv4)
8767       case $host_vendor in
8768         sni)
8769           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770           hardcode_direct=yes # is this really true???
8771         ;;
8772         siemens)
8773           ## LD is ld it makes a PLAMLIB
8774           ## CC just makes a GrossModule.
8775           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8776           reload_cmds='$CC -r -o $output$reload_objs'
8777           hardcode_direct=no
8778         ;;
8779         motorola)
8780           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8782         ;;
8783       esac
8784       runpath_var='LD_RUN_PATH'
8785       hardcode_shlibpath_var=no
8786       ;;
8787
8788     sysv4.3*)
8789       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790       hardcode_shlibpath_var=no
8791       export_dynamic_flag_spec='-Bexport'
8792       ;;
8793
8794     sysv4*MP*)
8795       if test -d /usr/nec; then
8796         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797         hardcode_shlibpath_var=no
8798         runpath_var=LD_RUN_PATH
8799         hardcode_runpath_var=yes
8800         ld_shlibs=yes
8801       fi
8802       ;;
8803
8804     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8805       no_undefined_flag='${wl}-z,text'
8806       archive_cmds_need_lc=no
8807       hardcode_shlibpath_var=no
8808       runpath_var='LD_RUN_PATH'
8809
8810       if test "$GCC" = yes; then
8811         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8812         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8813       else
8814         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8816       fi
8817       ;;
8818
8819     sysv5* | sco3.2v5* | sco5v6*)
8820       # Note: We can NOT use -z defs as we might desire, because we do not
8821       # link with -lc, and that would cause any symbols used from libc to
8822       # always be unresolved, which means just about no library would
8823       # ever link correctly.  If we're not using GNU ld we use -z text
8824       # though, which does catch some bad symbols but isn't as heavy-handed
8825       # as -z defs.
8826       no_undefined_flag='${wl}-z,text'
8827       allow_undefined_flag='${wl}-z,nodefs'
8828       archive_cmds_need_lc=no
8829       hardcode_shlibpath_var=no
8830       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8831       hardcode_libdir_separator=':'
8832       link_all_deplibs=yes
8833       export_dynamic_flag_spec='${wl}-Bexport'
8834       runpath_var='LD_RUN_PATH'
8835
8836       if test "$GCC" = yes; then
8837         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8838         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839       else
8840         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8841         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842       fi
8843       ;;
8844
8845     uts4*)
8846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847       hardcode_libdir_flag_spec='-L$libdir'
8848       hardcode_shlibpath_var=no
8849       ;;
8850
8851     *)
8852       ld_shlibs=no
8853       ;;
8854     esac
8855   fi
8856
8857 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8858 echo "${ECHO_T}$ld_shlibs" >&6; }
8859 test "$ld_shlibs" = no && can_build_shared=no
8860
8861 #
8862 # Do we need to explicitly link libc?
8863 #
8864 case "x$archive_cmds_need_lc" in
8865 x|xyes)
8866   # Assume -lc should be added
8867   archive_cmds_need_lc=yes
8868
8869   if test "$enable_shared" = yes && test "$GCC" = yes; then
8870     case $archive_cmds in
8871     *'~'*)
8872       # FIXME: we may have to deal with multi-command sequences.
8873       ;;
8874     '$CC '*)
8875       # Test whether the compiler implicitly links with -lc since on some
8876       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8877       # to ld, don't add -lc before -lgcc.
8878       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8879 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8880       $rm conftest*
8881       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884   (eval $ac_compile) 2>&5
8885   ac_status=$?
8886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887   (exit $ac_status); } 2>conftest.err; then
8888         soname=conftest
8889         lib=conftest
8890         libobjs=conftest.$ac_objext
8891         deplibs=
8892         wl=$lt_prog_compiler_wl
8893         pic_flag=$lt_prog_compiler_pic
8894         compiler_flags=-v
8895         linker_flags=-v
8896         verstring=
8897         output_objdir=.
8898         libname=conftest
8899         lt_save_allow_undefined_flag=$allow_undefined_flag
8900         allow_undefined_flag=
8901         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8902   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }
8906         then
8907           archive_cmds_need_lc=no
8908         else
8909           archive_cmds_need_lc=yes
8910         fi
8911         allow_undefined_flag=$lt_save_allow_undefined_flag
8912       else
8913         cat conftest.err 1>&5
8914       fi
8915       $rm conftest*
8916       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8917 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8918       ;;
8919     esac
8920   fi
8921   ;;
8922 esac
8923
8924 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8925 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8926 library_names_spec=
8927 libname_spec='lib$name'
8928 soname_spec=
8929 shrext_cmds=".so"
8930 postinstall_cmds=
8931 postuninstall_cmds=
8932 finish_cmds=
8933 finish_eval=
8934 shlibpath_var=
8935 shlibpath_overrides_runpath=unknown
8936 version_type=none
8937 dynamic_linker="$host_os ld.so"
8938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8939
8940 if test "$GCC" = yes; then
8941   case $host_os in
8942     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8943     *) lt_awk_arg="/^libraries:/" ;;
8944   esac
8945   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8946   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8947     # if the path contains ";" then we assume it to be the separator
8948     # otherwise default to the standard path separator (i.e. ":") - it is
8949     # assumed that no part of a normal pathname contains ";" but that should
8950     # okay in the real world where ";" in dirpaths is itself problematic.
8951     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8952   else
8953     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8954   fi
8955   # Ok, now we have the path, separated by spaces, we can step through it
8956   # and add multilib dir if necessary.
8957   lt_tmp_lt_search_path_spec=
8958   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8959   for lt_sys_path in $lt_search_path_spec; do
8960     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8961       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8962     else
8963       test -d "$lt_sys_path" && \
8964         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8965     fi
8966   done
8967   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8968 BEGIN {RS=" "; FS="/|\n";} {
8969   lt_foo="";
8970   lt_count=0;
8971   for (lt_i = NF; lt_i > 0; lt_i--) {
8972     if ($lt_i != "" && $lt_i != ".") {
8973       if ($lt_i == "..") {
8974         lt_count++;
8975       } else {
8976         if (lt_count == 0) {
8977           lt_foo="/" $lt_i lt_foo;
8978         } else {
8979           lt_count--;
8980         }
8981       }
8982     }
8983   }
8984   if (lt_foo != "") { lt_freq[lt_foo]++; }
8985   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8986 }'`
8987   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8988 else
8989   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8990 fi
8991 need_lib_prefix=unknown
8992 hardcode_into_libs=no
8993
8994 # when you set need_version to no, make sure it does not cause -set_version
8995 # flags to be left without arguments
8996 need_version=unknown
8997
8998 case $host_os in
8999 aix3*)
9000   version_type=linux
9001   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9002   shlibpath_var=LIBPATH
9003
9004   # AIX 3 has no versioning support, so we append a major version to the name.
9005   soname_spec='${libname}${release}${shared_ext}$major'
9006   ;;
9007
9008 aix[4-9]*)
9009   version_type=linux
9010   need_lib_prefix=no
9011   need_version=no
9012   hardcode_into_libs=yes
9013   if test "$host_cpu" = ia64; then
9014     # AIX 5 supports IA64
9015     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9016     shlibpath_var=LD_LIBRARY_PATH
9017   else
9018     # With GCC up to 2.95.x, collect2 would create an import file
9019     # for dependence libraries.  The import file would start with
9020     # the line `#! .'.  This would cause the generated library to
9021     # depend on `.', always an invalid library.  This was fixed in
9022     # development snapshots of GCC prior to 3.0.
9023     case $host_os in
9024       aix4 | aix4.[01] | aix4.[01].*)
9025       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9026            echo ' yes '
9027            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9028         :
9029       else
9030         can_build_shared=no
9031       fi
9032       ;;
9033     esac
9034     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9035     # soname into executable. Probably we can add versioning support to
9036     # collect2, so additional links can be useful in future.
9037     if test "$aix_use_runtimelinking" = yes; then
9038       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9039       # instead of lib<name>.a to let people know that these are not
9040       # typical AIX shared libraries.
9041       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042     else
9043       # We preserve .a as extension for shared libraries through AIX4.2
9044       # and later when we are not doing run time linking.
9045       library_names_spec='${libname}${release}.a $libname.a'
9046       soname_spec='${libname}${release}${shared_ext}$major'
9047     fi
9048     shlibpath_var=LIBPATH
9049   fi
9050   ;;
9051
9052 amigaos*)
9053   library_names_spec='$libname.ixlibrary $libname.a'
9054   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9055   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9056   ;;
9057
9058 beos*)
9059   library_names_spec='${libname}${shared_ext}'
9060   dynamic_linker="$host_os ld.so"
9061   shlibpath_var=LIBRARY_PATH
9062   ;;
9063
9064 bsdi[45]*)
9065   version_type=linux
9066   need_version=no
9067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068   soname_spec='${libname}${release}${shared_ext}$major'
9069   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9070   shlibpath_var=LD_LIBRARY_PATH
9071   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9072   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9073   # the default ld.so.conf also contains /usr/contrib/lib and
9074   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9075   # libtool to hard-code these into programs
9076   ;;
9077
9078 cygwin* | mingw* | pw32*)
9079   version_type=windows
9080   shrext_cmds=".dll"
9081   need_version=no
9082   need_lib_prefix=no
9083
9084   case $GCC,$host_os in
9085   yes,cygwin* | yes,mingw* | yes,pw32*)
9086     library_names_spec='$libname.dll.a'
9087     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9088     postinstall_cmds='base_file=`basename \${file}`~
9089       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9090       dldir=$destdir/`dirname \$dlpath`~
9091       test -d \$dldir || mkdir -p \$dldir~
9092       $install_prog $dir/$dlname \$dldir/$dlname~
9093       chmod a+x \$dldir/$dlname'
9094     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9095       dlpath=$dir/\$dldll~
9096        $rm \$dlpath'
9097     shlibpath_overrides_runpath=yes
9098
9099     case $host_os in
9100     cygwin*)
9101       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9102       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9103       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9104       ;;
9105     mingw*)
9106       # MinGW DLLs use traditional 'lib' prefix
9107       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9108       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9109       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9110         # It is most probably a Windows format PATH printed by
9111         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9112         # path with ; separators, and with drive letters. We can handle the
9113         # drive letters (cygwin fileutils understands them), so leave them,
9114         # especially as we might pass files found there to a mingw objdump,
9115         # which wouldn't understand a cygwinified path. Ahh.
9116         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9117       else
9118         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9119       fi
9120       ;;
9121     pw32*)
9122       # pw32 DLLs use 'pw' prefix rather than 'lib'
9123       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9124       ;;
9125     esac
9126     ;;
9127
9128   *)
9129     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9130     ;;
9131   esac
9132   dynamic_linker='Win32 ld.exe'
9133   # FIXME: first we should search . and the directory the executable is in
9134   shlibpath_var=PATH
9135   ;;
9136
9137 darwin* | rhapsody*)
9138   dynamic_linker="$host_os dyld"
9139   version_type=darwin
9140   need_lib_prefix=no
9141   need_version=no
9142   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9143   soname_spec='${libname}${release}${major}$shared_ext'
9144   shlibpath_overrides_runpath=yes
9145   shlibpath_var=DYLD_LIBRARY_PATH
9146   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9147
9148   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9149   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9150   ;;
9151
9152 dgux*)
9153   version_type=linux
9154   need_lib_prefix=no
9155   need_version=no
9156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9157   soname_spec='${libname}${release}${shared_ext}$major'
9158   shlibpath_var=LD_LIBRARY_PATH
9159   ;;
9160
9161 freebsd1*)
9162   dynamic_linker=no
9163   ;;
9164
9165 freebsd* | dragonfly*)
9166   # DragonFly does not have aout.  When/if they implement a new
9167   # versioning mechanism, adjust this.
9168   if test -x /usr/bin/objformat; then
9169     objformat=`/usr/bin/objformat`
9170   else
9171     case $host_os in
9172     freebsd[123]*) objformat=aout ;;
9173     *) objformat=elf ;;
9174     esac
9175   fi
9176   version_type=freebsd-$objformat
9177   case $version_type in
9178     freebsd-elf*)
9179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9180       need_version=no
9181       need_lib_prefix=no
9182       ;;
9183     freebsd-*)
9184       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9185       need_version=yes
9186       ;;
9187   esac
9188   shlibpath_var=LD_LIBRARY_PATH
9189   case $host_os in
9190   freebsd2*)
9191     shlibpath_overrides_runpath=yes
9192     ;;
9193   freebsd3.[01]* | freebsdelf3.[01]*)
9194     shlibpath_overrides_runpath=yes
9195     hardcode_into_libs=yes
9196     ;;
9197   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9198   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9199     shlibpath_overrides_runpath=no
9200     hardcode_into_libs=yes
9201     ;;
9202   *) # from 4.6 on, and DragonFly
9203     shlibpath_overrides_runpath=yes
9204     hardcode_into_libs=yes
9205     ;;
9206   esac
9207   ;;
9208
9209 gnu*)
9210   version_type=linux
9211   need_lib_prefix=no
9212   need_version=no
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9214   soname_spec='${libname}${release}${shared_ext}$major'
9215   shlibpath_var=LD_LIBRARY_PATH
9216   hardcode_into_libs=yes
9217   ;;
9218
9219 hpux9* | hpux10* | hpux11*)
9220   # Give a soname corresponding to the major version so that dld.sl refuses to
9221   # link against other versions.
9222   version_type=sunos
9223   need_lib_prefix=no
9224   need_version=no
9225   case $host_cpu in
9226   ia64*)
9227     shrext_cmds='.so'
9228     hardcode_into_libs=yes
9229     dynamic_linker="$host_os dld.so"
9230     shlibpath_var=LD_LIBRARY_PATH
9231     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9232     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233     soname_spec='${libname}${release}${shared_ext}$major'
9234     if test "X$HPUX_IA64_MODE" = X32; then
9235       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9236     else
9237       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9238     fi
9239     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9240     ;;
9241    hppa*64*)
9242      shrext_cmds='.sl'
9243      hardcode_into_libs=yes
9244      dynamic_linker="$host_os dld.sl"
9245      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9246      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9247      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248      soname_spec='${libname}${release}${shared_ext}$major'
9249      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9250      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9251      ;;
9252    *)
9253     shrext_cmds='.sl'
9254     dynamic_linker="$host_os dld.sl"
9255     shlibpath_var=SHLIB_PATH
9256     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9258     soname_spec='${libname}${release}${shared_ext}$major'
9259     ;;
9260   esac
9261   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9262   postinstall_cmds='chmod 555 $lib'
9263   ;;
9264
9265 interix[3-9]*)
9266   version_type=linux
9267   need_lib_prefix=no
9268   need_version=no
9269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9270   soname_spec='${libname}${release}${shared_ext}$major'
9271   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9272   shlibpath_var=LD_LIBRARY_PATH
9273   shlibpath_overrides_runpath=no
9274   hardcode_into_libs=yes
9275   ;;
9276
9277 irix5* | irix6* | nonstopux*)
9278   case $host_os in
9279     nonstopux*) version_type=nonstopux ;;
9280     *)
9281         if test "$lt_cv_prog_gnu_ld" = yes; then
9282                 version_type=linux
9283         else
9284                 version_type=irix
9285         fi ;;
9286   esac
9287   need_lib_prefix=no
9288   need_version=no
9289   soname_spec='${libname}${release}${shared_ext}$major'
9290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9291   case $host_os in
9292   irix5* | nonstopux*)
9293     libsuff= shlibsuff=
9294     ;;
9295   *)
9296     case $LD in # libtool.m4 will add one of these switches to LD
9297     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9298       libsuff= shlibsuff= libmagic=32-bit;;
9299     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9300       libsuff=32 shlibsuff=N32 libmagic=N32;;
9301     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9302       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9303     *) libsuff= shlibsuff= libmagic=never-match;;
9304     esac
9305     ;;
9306   esac
9307   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9308   shlibpath_overrides_runpath=no
9309   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9310   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9311   hardcode_into_libs=yes
9312   ;;
9313
9314 # No shared lib support for Linux oldld, aout, or coff.
9315 linux*oldld* | linux*aout* | linux*coff*)
9316   dynamic_linker=no
9317   ;;
9318
9319 # This must be Linux ELF.
9320 linux* | k*bsd*-gnu)
9321   version_type=linux
9322   need_lib_prefix=no
9323   need_version=no
9324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9325   soname_spec='${libname}${release}${shared_ext}$major'
9326   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9327   shlibpath_var=LD_LIBRARY_PATH
9328   shlibpath_overrides_runpath=no
9329   # This implies no fast_install, which is unacceptable.
9330   # Some rework will be needed to allow for fast_install
9331   # before this can be enabled.
9332   hardcode_into_libs=yes
9333
9334   # Append ld.so.conf contents to the search path
9335   if test -f /etc/ld.so.conf; then
9336     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9337     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9338   fi
9339
9340   # We used to test for /lib/ld.so.1 and disable shared libraries on
9341   # powerpc, because MkLinux only supported shared libraries with the
9342   # GNU dynamic linker.  Since this was broken with cross compilers,
9343   # most powerpc-linux boxes support dynamic linking these days and
9344   # people can always --disable-shared, the test was removed, and we
9345   # assume the GNU/Linux dynamic linker is in use.
9346   dynamic_linker='GNU/Linux ld.so'
9347   ;;
9348
9349 netbsdelf*-gnu)
9350   version_type=linux
9351   need_lib_prefix=no
9352   need_version=no
9353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9354   soname_spec='${libname}${release}${shared_ext}$major'
9355   shlibpath_var=LD_LIBRARY_PATH
9356   shlibpath_overrides_runpath=no
9357   hardcode_into_libs=yes
9358   dynamic_linker='NetBSD ld.elf_so'
9359   ;;
9360
9361 netbsd*)
9362   version_type=sunos
9363   need_lib_prefix=no
9364   need_version=no
9365   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9367     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9368     dynamic_linker='NetBSD (a.out) ld.so'
9369   else
9370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9371     soname_spec='${libname}${release}${shared_ext}$major'
9372     dynamic_linker='NetBSD ld.elf_so'
9373   fi
9374   shlibpath_var=LD_LIBRARY_PATH
9375   shlibpath_overrides_runpath=yes
9376   hardcode_into_libs=yes
9377   ;;
9378
9379 newsos6)
9380   version_type=linux
9381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382   shlibpath_var=LD_LIBRARY_PATH
9383   shlibpath_overrides_runpath=yes
9384   ;;
9385
9386 nto-qnx*)
9387   version_type=linux
9388   need_lib_prefix=no
9389   need_version=no
9390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9391   soname_spec='${libname}${release}${shared_ext}$major'
9392   shlibpath_var=LD_LIBRARY_PATH
9393   shlibpath_overrides_runpath=yes
9394   ;;
9395
9396 openbsd*)
9397   version_type=sunos
9398   sys_lib_dlsearch_path_spec="/usr/lib"
9399   need_lib_prefix=no
9400   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9401   case $host_os in
9402     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9403     *)                         need_version=no  ;;
9404   esac
9405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9406   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9409     case $host_os in
9410       openbsd2.[89] | openbsd2.[89].*)
9411         shlibpath_overrides_runpath=no
9412         ;;
9413       *)
9414         shlibpath_overrides_runpath=yes
9415         ;;
9416       esac
9417   else
9418     shlibpath_overrides_runpath=yes
9419   fi
9420   ;;
9421
9422 os2*)
9423   libname_spec='$name'
9424   shrext_cmds=".dll"
9425   need_lib_prefix=no
9426   library_names_spec='$libname${shared_ext} $libname.a'
9427   dynamic_linker='OS/2 ld.exe'
9428   shlibpath_var=LIBPATH
9429   ;;
9430
9431 osf3* | osf4* | osf5*)
9432   version_type=osf
9433   need_lib_prefix=no
9434   need_version=no
9435   soname_spec='${libname}${release}${shared_ext}$major'
9436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9437   shlibpath_var=LD_LIBRARY_PATH
9438   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9439   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9440   ;;
9441
9442 rdos*)
9443   dynamic_linker=no
9444   ;;
9445
9446 solaris*)
9447   version_type=linux
9448   need_lib_prefix=no
9449   need_version=no
9450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9451   soname_spec='${libname}${release}${shared_ext}$major'
9452   shlibpath_var=LD_LIBRARY_PATH
9453   shlibpath_overrides_runpath=yes
9454   hardcode_into_libs=yes
9455   # ldd complains unless libraries are executable
9456   postinstall_cmds='chmod +x $lib'
9457   ;;
9458
9459 sunos4*)
9460   version_type=sunos
9461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9462   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9463   shlibpath_var=LD_LIBRARY_PATH
9464   shlibpath_overrides_runpath=yes
9465   if test "$with_gnu_ld" = yes; then
9466     need_lib_prefix=no
9467   fi
9468   need_version=yes
9469   ;;
9470
9471 sysv4 | sysv4.3*)
9472   version_type=linux
9473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474   soname_spec='${libname}${release}${shared_ext}$major'
9475   shlibpath_var=LD_LIBRARY_PATH
9476   case $host_vendor in
9477     sni)
9478       shlibpath_overrides_runpath=no
9479       need_lib_prefix=no
9480       export_dynamic_flag_spec='${wl}-Blargedynsym'
9481       runpath_var=LD_RUN_PATH
9482       ;;
9483     siemens)
9484       need_lib_prefix=no
9485       ;;
9486     motorola)
9487       need_lib_prefix=no
9488       need_version=no
9489       shlibpath_overrides_runpath=no
9490       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9491       ;;
9492   esac
9493   ;;
9494
9495 sysv4*MP*)
9496   if test -d /usr/nec ;then
9497     version_type=linux
9498     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9499     soname_spec='$libname${shared_ext}.$major'
9500     shlibpath_var=LD_LIBRARY_PATH
9501   fi
9502   ;;
9503
9504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9505   version_type=freebsd-elf
9506   need_lib_prefix=no
9507   need_version=no
9508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9509   soname_spec='${libname}${release}${shared_ext}$major'
9510   shlibpath_var=LD_LIBRARY_PATH
9511   hardcode_into_libs=yes
9512   if test "$with_gnu_ld" = yes; then
9513     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9514     shlibpath_overrides_runpath=no
9515   else
9516     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9517     shlibpath_overrides_runpath=yes
9518     case $host_os in
9519       sco3.2v5*)
9520         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9521         ;;
9522     esac
9523   fi
9524   sys_lib_dlsearch_path_spec='/usr/lib'
9525   ;;
9526
9527 uts4*)
9528   version_type=linux
9529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530   soname_spec='${libname}${release}${shared_ext}$major'
9531   shlibpath_var=LD_LIBRARY_PATH
9532   ;;
9533
9534 *)
9535   dynamic_linker=no
9536   ;;
9537 esac
9538 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9539 echo "${ECHO_T}$dynamic_linker" >&6; }
9540 test "$dynamic_linker" = no && can_build_shared=no
9541
9542 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 else
9545   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9546 fi
9547
9548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9549 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9550   echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9553 fi
9554
9555 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9556
9557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9558 if test "$GCC" = yes; then
9559   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9560 fi
9561
9562 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9564 hardcode_action=
9565 if test -n "$hardcode_libdir_flag_spec" || \
9566    test -n "$runpath_var" || \
9567    test "X$hardcode_automatic" = "Xyes" ; then
9568
9569   # We can hardcode non-existant directories.
9570   if test "$hardcode_direct" != no &&
9571      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9572      # have to relink, otherwise we might link with an installed library
9573      # when we should be linking with a yet-to-be-installed one
9574      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9575      test "$hardcode_minus_L" != no; then
9576     # Linking always hardcodes the temporary library directory.
9577     hardcode_action=relink
9578   else
9579     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9580     hardcode_action=immediate
9581   fi
9582 else
9583   # We cannot hardcode anything, or else we can only hardcode existing
9584   # directories.
9585   hardcode_action=unsupported
9586 fi
9587 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9588 echo "${ECHO_T}$hardcode_action" >&6; }
9589
9590 if test "$hardcode_action" = relink; then
9591   # Fast installation is not supported
9592   enable_fast_install=no
9593 elif test "$shlibpath_overrides_runpath" = yes ||
9594      test "$enable_shared" = no; then
9595   # Fast installation is not necessary
9596   enable_fast_install=needless
9597 fi
9598
9599 striplib=
9600 old_striplib=
9601 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9602 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9604   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9605   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9606   { echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6; }
9608 else
9609 # FIXME - insert some real tests, host_os isn't really good enough
9610   case $host_os in
9611    darwin*)
9612        if test -n "$STRIP" ; then
9613          striplib="$STRIP -x"
9614          old_striplib="$STRIP -S"
9615          { echo "$as_me:$LINENO: result: yes" >&5
9616 echo "${ECHO_T}yes" >&6; }
9617        else
9618   { echo "$as_me:$LINENO: result: no" >&5
9619 echo "${ECHO_T}no" >&6; }
9620 fi
9621        ;;
9622    *)
9623   { echo "$as_me:$LINENO: result: no" >&5
9624 echo "${ECHO_T}no" >&6; }
9625     ;;
9626   esac
9627 fi
9628
9629 if test "x$enable_dlopen" != xyes; then
9630   enable_dlopen=unknown
9631   enable_dlopen_self=unknown
9632   enable_dlopen_self_static=unknown
9633 else
9634   lt_cv_dlopen=no
9635   lt_cv_dlopen_libs=
9636
9637   case $host_os in
9638   beos*)
9639     lt_cv_dlopen="load_add_on"
9640     lt_cv_dlopen_libs=
9641     lt_cv_dlopen_self=yes
9642     ;;
9643
9644   mingw* | pw32*)
9645     lt_cv_dlopen="LoadLibrary"
9646     lt_cv_dlopen_libs=
9647    ;;
9648
9649   cygwin*)
9650     lt_cv_dlopen="dlopen"
9651     lt_cv_dlopen_libs=
9652    ;;
9653
9654   darwin*)
9655   # if libdl is installed we need to link against it
9656     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9657 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9658 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9659   echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661   ac_check_lib_save_LIBS=$LIBS
9662 LIBS="-ldl  $LIBS"
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h.  */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h.  */
9669
9670 /* Override any GCC internal prototype to avoid an error.
9671    Use char because int might match the return type of a GCC
9672    builtin and then its argument prototype would still apply.  */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 char dlopen ();
9677 int
9678 main ()
9679 {
9680 return dlopen ();
9681   ;
9682   return 0;
9683 }
9684 _ACEOF
9685 rm -f conftest.$ac_objext conftest$ac_exeext
9686 if { (ac_try="$ac_link"
9687 case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_link") 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } && {
9699          test -z "$ac_c_werror_flag" ||
9700          test ! -s conftest.err
9701        } && test -s conftest$ac_exeext &&
9702        $as_test_x conftest$ac_exeext; then
9703   ac_cv_lib_dl_dlopen=yes
9704 else
9705   echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9707
9708         ac_cv_lib_dl_dlopen=no
9709 fi
9710
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712       conftest$ac_exeext conftest.$ac_ext
9713 LIBS=$ac_check_lib_save_LIBS
9714 fi
9715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9716 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9717 if test $ac_cv_lib_dl_dlopen = yes; then
9718   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9719 else
9720
9721     lt_cv_dlopen="dyld"
9722     lt_cv_dlopen_libs=
9723     lt_cv_dlopen_self=yes
9724
9725 fi
9726
9727    ;;
9728
9729   *)
9730     { echo "$as_me:$LINENO: checking for shl_load" >&5
9731 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9732 if test "${ac_cv_func_shl_load+set}" = set; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9743 #define shl_load innocuous_shl_load
9744
9745 /* System header to define __stub macros and hopefully few prototypes,
9746     which can conflict with char shl_load (); below.
9747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748     <limits.h> exists even on freestanding compilers.  */
9749
9750 #ifdef __STDC__
9751 # include <limits.h>
9752 #else
9753 # include <assert.h>
9754 #endif
9755
9756 #undef shl_load
9757
9758 /* Override any GCC internal prototype to avoid an error.
9759    Use char because int might match the return type of a GCC
9760    builtin and then its argument prototype would still apply.  */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char shl_load ();
9765 /* The GNU C library defines this for functions which it implements
9766     to always fail with ENOSYS.  Some functions are actually named
9767     something starting with __ and the normal name is an alias.  */
9768 #if defined __stub_shl_load || defined __stub___shl_load
9769 choke me
9770 #endif
9771
9772 int
9773 main ()
9774 {
9775 return shl_load ();
9776   ;
9777   return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9782 case "(($ac_try" in
9783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784   *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787   (eval "$ac_link") 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } && {
9794          test -z "$ac_c_werror_flag" ||
9795          test ! -s conftest.err
9796        } && test -s conftest$ac_exeext &&
9797        $as_test_x conftest$ac_exeext; then
9798   ac_cv_func_shl_load=yes
9799 else
9800   echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803         ac_cv_func_shl_load=no
9804 fi
9805
9806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807       conftest$ac_exeext conftest.$ac_ext
9808 fi
9809 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9810 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9811 if test $ac_cv_func_shl_load = yes; then
9812   lt_cv_dlopen="shl_load"
9813 else
9814   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9815 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9816 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-ldld  $LIBS"
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h.  */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h.  */
9827
9828 /* Override any GCC internal prototype to avoid an error.
9829    Use char because int might match the return type of a GCC
9830    builtin and then its argument prototype would still apply.  */
9831 #ifdef __cplusplus
9832 extern "C"
9833 #endif
9834 char shl_load ();
9835 int
9836 main ()
9837 {
9838 return shl_load ();
9839   ;
9840   return 0;
9841 }
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850   (eval "$ac_link") 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } && {
9857          test -z "$ac_c_werror_flag" ||
9858          test ! -s conftest.err
9859        } && test -s conftest$ac_exeext &&
9860        $as_test_x conftest$ac_exeext; then
9861   ac_cv_lib_dld_shl_load=yes
9862 else
9863   echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866         ac_cv_lib_dld_shl_load=no
9867 fi
9868
9869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9870       conftest$ac_exeext conftest.$ac_ext
9871 LIBS=$ac_check_lib_save_LIBS
9872 fi
9873 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9874 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9875 if test $ac_cv_lib_dld_shl_load = yes; then
9876   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9877 else
9878   { echo "$as_me:$LINENO: checking for dlopen" >&5
9879 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9880 if test "${ac_cv_func_dlopen+set}" = set; then
9881   echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883   cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9891 #define dlopen innocuous_dlopen
9892
9893 /* System header to define __stub macros and hopefully few prototypes,
9894     which can conflict with char dlopen (); below.
9895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896     <limits.h> exists even on freestanding compilers.  */
9897
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9903
9904 #undef dlopen
9905
9906 /* Override any GCC internal prototype to avoid an error.
9907    Use char because int might match the return type of a GCC
9908    builtin and then its argument prototype would still apply.  */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 char dlopen ();
9913 /* The GNU C library defines this for functions which it implements
9914     to always fail with ENOSYS.  Some functions are actually named
9915     something starting with __ and the normal name is an alias.  */
9916 #if defined __stub_dlopen || defined __stub___dlopen
9917 choke me
9918 #endif
9919
9920 int
9921 main ()
9922 {
9923 return dlopen ();
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9930 case "(($ac_try" in
9931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932   *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935   (eval "$ac_link") 2>conftest.er1
9936   ac_status=$?
9937   grep -v '^ *+' conftest.er1 >conftest.err
9938   rm -f conftest.er1
9939   cat conftest.err >&5
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); } && {
9942          test -z "$ac_c_werror_flag" ||
9943          test ! -s conftest.err
9944        } && test -s conftest$ac_exeext &&
9945        $as_test_x conftest$ac_exeext; then
9946   ac_cv_func_dlopen=yes
9947 else
9948   echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9950
9951         ac_cv_func_dlopen=no
9952 fi
9953
9954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955       conftest$ac_exeext conftest.$ac_ext
9956 fi
9957 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9958 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9959 if test $ac_cv_func_dlopen = yes; then
9960   lt_cv_dlopen="dlopen"
9961 else
9962   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9963 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9964 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   ac_check_lib_save_LIBS=$LIBS
9968 LIBS="-ldl  $LIBS"
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h.  */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h.  */
9975
9976 /* Override any GCC internal prototype to avoid an error.
9977    Use char because int might match the return type of a GCC
9978    builtin and then its argument prototype would still apply.  */
9979 #ifdef __cplusplus
9980 extern "C"
9981 #endif
9982 char dlopen ();
9983 int
9984 main ()
9985 {
9986 return dlopen ();
9987   ;
9988   return 0;
9989 }
9990 _ACEOF
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (ac_try="$ac_link"
9993 case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_link") 2>conftest.er1
9999   ac_status=$?
10000   grep -v '^ *+' conftest.er1 >conftest.err
10001   rm -f conftest.er1
10002   cat conftest.err >&5
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); } && {
10005          test -z "$ac_c_werror_flag" ||
10006          test ! -s conftest.err
10007        } && test -s conftest$ac_exeext &&
10008        $as_test_x conftest$ac_exeext; then
10009   ac_cv_lib_dl_dlopen=yes
10010 else
10011   echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014         ac_cv_lib_dl_dlopen=no
10015 fi
10016
10017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10018       conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS
10020 fi
10021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10022 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10023 if test $ac_cv_lib_dl_dlopen = yes; then
10024   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10025 else
10026   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10027 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10028 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10029   echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031   ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-lsvld  $LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10034 /* confdefs.h.  */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h.  */
10039
10040 /* Override any GCC internal prototype to avoid an error.
10041    Use char because int might match the return type of a GCC
10042    builtin and then its argument prototype would still apply.  */
10043 #ifdef __cplusplus
10044 extern "C"
10045 #endif
10046 char dlopen ();
10047 int
10048 main ()
10049 {
10050 return dlopen ();
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (ac_try="$ac_link"
10057 case "(($ac_try" in
10058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059   *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062   (eval "$ac_link") 2>conftest.er1
10063   ac_status=$?
10064   grep -v '^ *+' conftest.er1 >conftest.err
10065   rm -f conftest.er1
10066   cat conftest.err >&5
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); } && {
10069          test -z "$ac_c_werror_flag" ||
10070          test ! -s conftest.err
10071        } && test -s conftest$ac_exeext &&
10072        $as_test_x conftest$ac_exeext; then
10073   ac_cv_lib_svld_dlopen=yes
10074 else
10075   echo "$as_me: failed program was:" >&5
10076 sed 's/^/| /' conftest.$ac_ext >&5
10077
10078         ac_cv_lib_svld_dlopen=no
10079 fi
10080
10081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082       conftest$ac_exeext conftest.$ac_ext
10083 LIBS=$ac_check_lib_save_LIBS
10084 fi
10085 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10087 if test $ac_cv_lib_svld_dlopen = yes; then
10088   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10089 else
10090   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10093   echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095   ac_check_lib_save_LIBS=$LIBS
10096 LIBS="-ldld  $LIBS"
10097 cat >conftest.$ac_ext <<_ACEOF
10098 /* confdefs.h.  */
10099 _ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h.  */
10103
10104 /* Override any GCC internal prototype to avoid an error.
10105    Use char because int might match the return type of a GCC
10106    builtin and then its argument prototype would still apply.  */
10107 #ifdef __cplusplus
10108 extern "C"
10109 #endif
10110 char dld_link ();
10111 int
10112 main ()
10113 {
10114 return dld_link ();
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest.$ac_objext conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_link") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } && {
10133          test -z "$ac_c_werror_flag" ||
10134          test ! -s conftest.err
10135        } && test -s conftest$ac_exeext &&
10136        $as_test_x conftest$ac_exeext; then
10137   ac_cv_lib_dld_dld_link=yes
10138 else
10139   echo "$as_me: failed program was:" >&5
10140 sed 's/^/| /' conftest.$ac_ext >&5
10141
10142         ac_cv_lib_dld_dld_link=no
10143 fi
10144
10145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10146       conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_check_lib_save_LIBS
10148 fi
10149 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10150 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10151 if test $ac_cv_lib_dld_dld_link = yes; then
10152   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10153 fi
10154
10155
10156 fi
10157
10158
10159 fi
10160
10161
10162 fi
10163
10164
10165 fi
10166
10167
10168 fi
10169
10170     ;;
10171   esac
10172
10173   if test "x$lt_cv_dlopen" != xno; then
10174     enable_dlopen=yes
10175   else
10176     enable_dlopen=no
10177   fi
10178
10179   case $lt_cv_dlopen in
10180   dlopen)
10181     save_CPPFLAGS="$CPPFLAGS"
10182     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10183
10184     save_LDFLAGS="$LDFLAGS"
10185     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10186
10187     save_LIBS="$LIBS"
10188     LIBS="$lt_cv_dlopen_libs $LIBS"
10189
10190     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10191 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10192 if test "${lt_cv_dlopen_self+set}" = set; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 else
10195           if test "$cross_compiling" = yes; then :
10196   lt_cv_dlopen_self=cross
10197 else
10198   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10199   lt_status=$lt_dlunknown
10200   cat > conftest.$ac_ext <<EOF
10201 #line 10201 "configure"
10202 #include "confdefs.h"
10203
10204 #if HAVE_DLFCN_H
10205 #include <dlfcn.h>
10206 #endif
10207
10208 #include <stdio.h>
10209
10210 #ifdef RTLD_GLOBAL
10211 #  define LT_DLGLOBAL           RTLD_GLOBAL
10212 #else
10213 #  ifdef DL_GLOBAL
10214 #    define LT_DLGLOBAL         DL_GLOBAL
10215 #  else
10216 #    define LT_DLGLOBAL         0
10217 #  endif
10218 #endif
10219
10220 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10221    find out it does not work in some platform. */
10222 #ifndef LT_DLLAZY_OR_NOW
10223 #  ifdef RTLD_LAZY
10224 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10225 #  else
10226 #    ifdef DL_LAZY
10227 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10228 #    else
10229 #      ifdef RTLD_NOW
10230 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10231 #      else
10232 #        ifdef DL_NOW
10233 #          define LT_DLLAZY_OR_NOW      DL_NOW
10234 #        else
10235 #          define LT_DLLAZY_OR_NOW      0
10236 #        endif
10237 #      endif
10238 #    endif
10239 #  endif
10240 #endif
10241
10242 #ifdef __cplusplus
10243 extern "C" void exit (int);
10244 #endif
10245
10246 void fnord() { int i=42;}
10247 int main ()
10248 {
10249   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10250   int status = $lt_dlunknown;
10251
10252   if (self)
10253     {
10254       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10255       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10256       /* dlclose (self); */
10257     }
10258   else
10259     puts (dlerror ());
10260
10261     exit (status);
10262 }
10263 EOF
10264   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265   (eval $ac_link) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10269     (./conftest; exit; ) >&5 2>/dev/null
10270     lt_status=$?
10271     case x$lt_status in
10272       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10273       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10274       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10275     esac
10276   else :
10277     # compilation failed
10278     lt_cv_dlopen_self=no
10279   fi
10280 fi
10281 rm -fr conftest*
10282
10283
10284 fi
10285 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10286 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10287
10288     if test "x$lt_cv_dlopen_self" = xyes; then
10289       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10290       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10291 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10292 if test "${lt_cv_dlopen_self_static+set}" = set; then
10293   echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295           if test "$cross_compiling" = yes; then :
10296   lt_cv_dlopen_self_static=cross
10297 else
10298   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10299   lt_status=$lt_dlunknown
10300   cat > conftest.$ac_ext <<EOF
10301 #line 10301 "configure"
10302 #include "confdefs.h"
10303
10304 #if HAVE_DLFCN_H
10305 #include <dlfcn.h>
10306 #endif
10307
10308 #include <stdio.h>
10309
10310 #ifdef RTLD_GLOBAL
10311 #  define LT_DLGLOBAL           RTLD_GLOBAL
10312 #else
10313 #  ifdef DL_GLOBAL
10314 #    define LT_DLGLOBAL         DL_GLOBAL
10315 #  else
10316 #    define LT_DLGLOBAL         0
10317 #  endif
10318 #endif
10319
10320 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10321    find out it does not work in some platform. */
10322 #ifndef LT_DLLAZY_OR_NOW
10323 #  ifdef RTLD_LAZY
10324 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10325 #  else
10326 #    ifdef DL_LAZY
10327 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10328 #    else
10329 #      ifdef RTLD_NOW
10330 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10331 #      else
10332 #        ifdef DL_NOW
10333 #          define LT_DLLAZY_OR_NOW      DL_NOW
10334 #        else
10335 #          define LT_DLLAZY_OR_NOW      0
10336 #        endif
10337 #      endif
10338 #    endif
10339 #  endif
10340 #endif
10341
10342 #ifdef __cplusplus
10343 extern "C" void exit (int);
10344 #endif
10345
10346 void fnord() { int i=42;}
10347 int main ()
10348 {
10349   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10350   int status = $lt_dlunknown;
10351
10352   if (self)
10353     {
10354       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10355       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10356       /* dlclose (self); */
10357     }
10358   else
10359     puts (dlerror ());
10360
10361     exit (status);
10362 }
10363 EOF
10364   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365   (eval $ac_link) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10369     (./conftest; exit; ) >&5 2>/dev/null
10370     lt_status=$?
10371     case x$lt_status in
10372       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10373       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10374       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10375     esac
10376   else :
10377     # compilation failed
10378     lt_cv_dlopen_self_static=no
10379   fi
10380 fi
10381 rm -fr conftest*
10382
10383
10384 fi
10385 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10386 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10387     fi
10388
10389     CPPFLAGS="$save_CPPFLAGS"
10390     LDFLAGS="$save_LDFLAGS"
10391     LIBS="$save_LIBS"
10392     ;;
10393   esac
10394
10395   case $lt_cv_dlopen_self in
10396   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10397   *) enable_dlopen_self=unknown ;;
10398   esac
10399
10400   case $lt_cv_dlopen_self_static in
10401   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10402   *) enable_dlopen_self_static=unknown ;;
10403   esac
10404 fi
10405
10406
10407 # Report which library types will actually be built
10408 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10409 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10410 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10411 echo "${ECHO_T}$can_build_shared" >&6; }
10412
10413 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10414 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10415 test "$can_build_shared" = "no" && enable_shared=no
10416
10417 # On AIX, shared libraries and static libraries use the same namespace, and
10418 # are all built from PIC.
10419 case $host_os in
10420 aix3*)
10421   test "$enable_shared" = yes && enable_static=no
10422   if test -n "$RANLIB"; then
10423     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10424     postinstall_cmds='$RANLIB $lib'
10425   fi
10426   ;;
10427
10428 aix[4-9]*)
10429   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10430     test "$enable_shared" = yes && enable_static=no
10431   fi
10432     ;;
10433 esac
10434 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10435 echo "${ECHO_T}$enable_shared" >&6; }
10436
10437 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10438 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10439 # Make sure either enable_shared or enable_static is yes.
10440 test "$enable_shared" = yes || enable_static=yes
10441 { echo "$as_me:$LINENO: result: $enable_static" >&5
10442 echo "${ECHO_T}$enable_static" >&6; }
10443
10444 # The else clause should only fire when bootstrapping the
10445 # libtool distribution, otherwise you forgot to ship ltmain.sh
10446 # with your package, and you will get complaints that there are
10447 # no rules to generate ltmain.sh.
10448 if test -f "$ltmain"; then
10449   # See if we are running on zsh, and set the options which allow our commands through
10450   # without removal of \ escapes.
10451   if test -n "${ZSH_VERSION+set}" ; then
10452     setopt NO_GLOB_SUBST
10453   fi
10454   # Now quote all the things that may contain metacharacters while being
10455   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10456   # variables and quote the copies for generation of the libtool script.
10457   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10458     SED SHELL STRIP \
10459     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10460     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10461     deplibs_check_method reload_flag reload_cmds need_locks \
10462     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10463     lt_cv_sys_global_symbol_to_c_name_address \
10464     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10465     old_postinstall_cmds old_postuninstall_cmds \
10466     compiler \
10467     CC \
10468     LD \
10469     lt_prog_compiler_wl \
10470     lt_prog_compiler_pic \
10471     lt_prog_compiler_static \
10472     lt_prog_compiler_no_builtin_flag \
10473     export_dynamic_flag_spec \
10474     thread_safe_flag_spec \
10475     whole_archive_flag_spec \
10476     enable_shared_with_static_runtimes \
10477     old_archive_cmds \
10478     old_archive_from_new_cmds \
10479     predep_objects \
10480     postdep_objects \
10481     predeps \
10482     postdeps \
10483     compiler_lib_search_path \
10484     compiler_lib_search_dirs \
10485     archive_cmds \
10486     archive_expsym_cmds \
10487     postinstall_cmds \
10488     postuninstall_cmds \
10489     old_archive_from_expsyms_cmds \
10490     allow_undefined_flag \
10491     no_undefined_flag \
10492     export_symbols_cmds \
10493     hardcode_libdir_flag_spec \
10494     hardcode_libdir_flag_spec_ld \
10495     hardcode_libdir_separator \
10496     hardcode_automatic \
10497     module_cmds \
10498     module_expsym_cmds \
10499     lt_cv_prog_compiler_c_o \
10500     fix_srcfile_path \
10501     exclude_expsyms \
10502     include_expsyms; do
10503
10504     case $var in
10505     old_archive_cmds | \
10506     old_archive_from_new_cmds | \
10507     archive_cmds | \
10508     archive_expsym_cmds | \
10509     module_cmds | \
10510     module_expsym_cmds | \
10511     old_archive_from_expsyms_cmds | \
10512     export_symbols_cmds | \
10513     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10514     postinstall_cmds | postuninstall_cmds | \
10515     old_postinstall_cmds | old_postuninstall_cmds | \
10516     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10517       # Double-quote double-evaled strings.
10518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10519       ;;
10520     *)
10521       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10522       ;;
10523     esac
10524   done
10525
10526   case $lt_echo in
10527   *'\$0 --fallback-echo"')
10528     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10529     ;;
10530   esac
10531
10532 cfgfile="${ofile}T"
10533   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10534   $rm -f "$cfgfile"
10535   { echo "$as_me:$LINENO: creating $ofile" >&5
10536 echo "$as_me: creating $ofile" >&6;}
10537
10538   cat <<__EOF__ >> "$cfgfile"
10539 #! $SHELL
10540
10541 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10542 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10543 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10544 #
10545 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10546 # Free Software Foundation, Inc.
10547 #
10548 # This file is part of GNU Libtool:
10549 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10550 #
10551 # This program is free software; you can redistribute it and/or modify
10552 # it under the terms of the GNU General Public License as published by
10553 # the Free Software Foundation; either version 2 of the License, or
10554 # (at your option) any later version.
10555 #
10556 # This program is distributed in the hope that it will be useful, but
10557 # WITHOUT ANY WARRANTY; without even the implied warranty of
10558 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10559 # General Public License for more details.
10560 #
10561 # You should have received a copy of the GNU General Public License
10562 # along with this program; if not, write to the Free Software
10563 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10564 #
10565 # As a special exception to the GNU General Public License, if you
10566 # distribute this file as part of a program that contains a
10567 # configuration script generated by Autoconf, you may include it under
10568 # the same distribution terms that you use for the rest of that program.
10569
10570 # A sed program that does not truncate output.
10571 SED=$lt_SED
10572
10573 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10574 Xsed="$SED -e 1s/^X//"
10575
10576 # The HP-UX ksh and POSIX shell print the target directory to stdout
10577 # if CDPATH is set.
10578 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10579
10580 # The names of the tagged configurations supported by this script.
10581 available_tags=
10582
10583 # ### BEGIN LIBTOOL CONFIG
10584
10585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10586
10587 # Shell to use when invoking shell scripts.
10588 SHELL=$lt_SHELL
10589
10590 # Whether or not to build shared libraries.
10591 build_libtool_libs=$enable_shared
10592
10593 # Whether or not to build static libraries.
10594 build_old_libs=$enable_static
10595
10596 # Whether or not to add -lc for building shared libraries.
10597 build_libtool_need_lc=$archive_cmds_need_lc
10598
10599 # Whether or not to disallow shared libs when runtime libs are static
10600 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10601
10602 # Whether or not to optimize for fast installation.
10603 fast_install=$enable_fast_install
10604
10605 # The host system.
10606 host_alias=$host_alias
10607 host=$host
10608 host_os=$host_os
10609
10610 # The build system.
10611 build_alias=$build_alias
10612 build=$build
10613 build_os=$build_os
10614
10615 # An echo program that does not interpret backslashes.
10616 echo=$lt_echo
10617
10618 # The archiver.
10619 AR=$lt_AR
10620 AR_FLAGS=$lt_AR_FLAGS
10621
10622 # A C compiler.
10623 LTCC=$lt_LTCC
10624
10625 # LTCC compiler flags.
10626 LTCFLAGS=$lt_LTCFLAGS
10627
10628 # A language-specific compiler.
10629 CC=$lt_compiler
10630
10631 # Is the compiler the GNU C compiler?
10632 with_gcc=$GCC
10633
10634 # An ERE matcher.
10635 EGREP=$lt_EGREP
10636
10637 # The linker used to build libraries.
10638 LD=$lt_LD
10639
10640 # Whether we need hard or soft links.
10641 LN_S=$lt_LN_S
10642
10643 # A BSD-compatible nm program.
10644 NM=$lt_NM
10645
10646 # A symbol stripping program
10647 STRIP=$lt_STRIP
10648
10649 # Used to examine libraries when file_magic_cmd begins "file"
10650 MAGIC_CMD=$MAGIC_CMD
10651
10652 # Used on cygwin: DLL creation program.
10653 DLLTOOL="$DLLTOOL"
10654
10655 # Used on cygwin: object dumper.
10656 OBJDUMP="$OBJDUMP"
10657
10658 # Used on cygwin: assembler.
10659 AS="$AS"
10660
10661 # The name of the directory that contains temporary libtool files.
10662 objdir=$objdir
10663
10664 # How to create reloadable object files.
10665 reload_flag=$lt_reload_flag
10666 reload_cmds=$lt_reload_cmds
10667
10668 # How to pass a linker flag through the compiler.
10669 wl=$lt_lt_prog_compiler_wl
10670
10671 # Object file suffix (normally "o").
10672 objext="$ac_objext"
10673
10674 # Old archive suffix (normally "a").
10675 libext="$libext"
10676
10677 # Shared library suffix (normally ".so").
10678 shrext_cmds='$shrext_cmds'
10679
10680 # Executable file suffix (normally "").
10681 exeext="$exeext"
10682
10683 # Additional compiler flags for building library objects.
10684 pic_flag=$lt_lt_prog_compiler_pic
10685 pic_mode=$pic_mode
10686
10687 # What is the maximum length of a command?
10688 max_cmd_len=$lt_cv_sys_max_cmd_len
10689
10690 # Does compiler simultaneously support -c and -o options?
10691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10692
10693 # Must we lock files when doing compilation?
10694 need_locks=$lt_need_locks
10695
10696 # Do we need the lib prefix for modules?
10697 need_lib_prefix=$need_lib_prefix
10698
10699 # Do we need a version for libraries?
10700 need_version=$need_version
10701
10702 # Whether dlopen is supported.
10703 dlopen_support=$enable_dlopen
10704
10705 # Whether dlopen of programs is supported.
10706 dlopen_self=$enable_dlopen_self
10707
10708 # Whether dlopen of statically linked programs is supported.
10709 dlopen_self_static=$enable_dlopen_self_static
10710
10711 # Compiler flag to prevent dynamic linking.
10712 link_static_flag=$lt_lt_prog_compiler_static
10713
10714 # Compiler flag to turn off builtin functions.
10715 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10716
10717 # Compiler flag to allow reflexive dlopens.
10718 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10719
10720 # Compiler flag to generate shared objects directly from archives.
10721 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10722
10723 # Compiler flag to generate thread-safe objects.
10724 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10725
10726 # Library versioning type.
10727 version_type=$version_type
10728
10729 # Format of library name prefix.
10730 libname_spec=$lt_libname_spec
10731
10732 # List of archive names.  First name is the real one, the rest are links.
10733 # The last name is the one that the linker finds with -lNAME.
10734 library_names_spec=$lt_library_names_spec
10735
10736 # The coded name of the library, if different from the real name.
10737 soname_spec=$lt_soname_spec
10738
10739 # Commands used to build and install an old-style archive.
10740 RANLIB=$lt_RANLIB
10741 old_archive_cmds=$lt_old_archive_cmds
10742 old_postinstall_cmds=$lt_old_postinstall_cmds
10743 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10744
10745 # Create an old-style archive from a shared archive.
10746 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10747
10748 # Create a temporary old-style archive to link instead of a shared archive.
10749 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10750
10751 # Commands used to build and install a shared archive.
10752 archive_cmds=$lt_archive_cmds
10753 archive_expsym_cmds=$lt_archive_expsym_cmds
10754 postinstall_cmds=$lt_postinstall_cmds
10755 postuninstall_cmds=$lt_postuninstall_cmds
10756
10757 # Commands used to build a loadable module (assumed same as above if empty)
10758 module_cmds=$lt_module_cmds
10759 module_expsym_cmds=$lt_module_expsym_cmds
10760
10761 # Commands to strip libraries.
10762 old_striplib=$lt_old_striplib
10763 striplib=$lt_striplib
10764
10765 # Dependencies to place before the objects being linked to create a
10766 # shared library.
10767 predep_objects=$lt_predep_objects
10768
10769 # Dependencies to place after the objects being linked to create a
10770 # shared library.
10771 postdep_objects=$lt_postdep_objects
10772
10773 # Dependencies to place before the objects being linked to create a
10774 # shared library.
10775 predeps=$lt_predeps
10776
10777 # Dependencies to place after the objects being linked to create a
10778 # shared library.
10779 postdeps=$lt_postdeps
10780
10781 # The directories searched by this compiler when creating a shared
10782 # library
10783 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10784
10785 # The library search path used internally by the compiler when linking
10786 # a shared library.
10787 compiler_lib_search_path=$lt_compiler_lib_search_path
10788
10789 # Method to check whether dependent libraries are shared objects.
10790 deplibs_check_method=$lt_deplibs_check_method
10791
10792 # Command to use when deplibs_check_method == file_magic.
10793 file_magic_cmd=$lt_file_magic_cmd
10794
10795 # Flag that allows shared libraries with undefined symbols to be built.
10796 allow_undefined_flag=$lt_allow_undefined_flag
10797
10798 # Flag that forces no undefined symbols.
10799 no_undefined_flag=$lt_no_undefined_flag
10800
10801 # Commands used to finish a libtool library installation in a directory.
10802 finish_cmds=$lt_finish_cmds
10803
10804 # Same as above, but a single script fragment to be evaled but not shown.
10805 finish_eval=$lt_finish_eval
10806
10807 # Take the output of nm and produce a listing of raw symbols and C names.
10808 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10809
10810 # Transform the output of nm in a proper C declaration
10811 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10812
10813 # Transform the output of nm in a C name address pair
10814 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10815
10816 # This is the shared library runtime path variable.
10817 runpath_var=$runpath_var
10818
10819 # This is the shared library path variable.
10820 shlibpath_var=$shlibpath_var
10821
10822 # Is shlibpath searched before the hard-coded library search path?
10823 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10824
10825 # How to hardcode a shared library path into an executable.
10826 hardcode_action=$hardcode_action
10827
10828 # Whether we should hardcode library paths into libraries.
10829 hardcode_into_libs=$hardcode_into_libs
10830
10831 # Flag to hardcode \$libdir into a binary during linking.
10832 # This must work even if \$libdir does not exist.
10833 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10834
10835 # If ld is used when linking, flag to hardcode \$libdir into
10836 # a binary during linking. This must work even if \$libdir does
10837 # not exist.
10838 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10839
10840 # Whether we need a single -rpath flag with a separated argument.
10841 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10842
10843 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10844 # resulting binary.
10845 hardcode_direct=$hardcode_direct
10846
10847 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10848 # resulting binary.
10849 hardcode_minus_L=$hardcode_minus_L
10850
10851 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10852 # the resulting binary.
10853 hardcode_shlibpath_var=$hardcode_shlibpath_var
10854
10855 # Set to yes if building a shared library automatically hardcodes DIR into the library
10856 # and all subsequent libraries and executables linked against it.
10857 hardcode_automatic=$hardcode_automatic
10858
10859 # Variables whose values should be saved in libtool wrapper scripts and
10860 # restored at relink time.
10861 variables_saved_for_relink="$variables_saved_for_relink"
10862
10863 # Whether libtool must link a program against all its dependency libraries.
10864 link_all_deplibs=$link_all_deplibs
10865
10866 # Compile-time system search path for libraries
10867 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10868
10869 # Run-time system search path for libraries
10870 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10871
10872 # Fix the shell variable \$srcfile for the compiler.
10873 fix_srcfile_path=$lt_fix_srcfile_path
10874
10875 # Set to yes if exported symbols are required.
10876 always_export_symbols=$always_export_symbols
10877
10878 # The commands to list exported symbols.
10879 export_symbols_cmds=$lt_export_symbols_cmds
10880
10881 # The commands to extract the exported symbol list from a shared archive.
10882 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10883
10884 # Symbols that should not be listed in the preloaded symbols.
10885 exclude_expsyms=$lt_exclude_expsyms
10886
10887 # Symbols that must always be exported.
10888 include_expsyms=$lt_include_expsyms
10889
10890 # ### END LIBTOOL CONFIG
10891
10892 __EOF__
10893
10894
10895   case $host_os in
10896   aix3*)
10897     cat <<\EOF >> "$cfgfile"
10898
10899 # AIX sometimes has problems with the GCC collect2 program.  For some
10900 # reason, if we set the COLLECT_NAMES environment variable, the problems
10901 # vanish in a puff of smoke.
10902 if test "X${COLLECT_NAMES+set}" != Xset; then
10903   COLLECT_NAMES=
10904   export COLLECT_NAMES
10905 fi
10906 EOF
10907     ;;
10908   esac
10909
10910   # We use sed instead of cat because bash on DJGPP gets confused if
10911   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10912   # text mode, it properly converts lines to CR/LF.  This bash problem
10913   # is reportedly fixed, but why not run on old versions too?
10914   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10915
10916   mv -f "$cfgfile" "$ofile" || \
10917     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10918   chmod +x "$ofile"
10919
10920 else
10921   # If there is no Makefile yet, we rely on a make rule to execute
10922   # `config.status --recheck' to rerun these tests and create the
10923   # libtool script then.
10924   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10925   if test -f "$ltmain_in"; then
10926     test -f Makefile && make "$ltmain"
10927   fi
10928 fi
10929
10930
10931 ac_ext=c
10932 ac_cpp='$CPP $CPPFLAGS'
10933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10936
10937 CC="$lt_save_CC"
10938
10939
10940 # Check whether --with-tags was given.
10941 if test "${with_tags+set}" = set; then
10942   withval=$with_tags; tagnames="$withval"
10943 fi
10944
10945
10946 if test -f "$ltmain" && test -n "$tagnames"; then
10947   if test ! -f "${ofile}"; then
10948     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10949 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10950   fi
10951
10952   if test -z "$LTCC"; then
10953     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10954     if test -z "$LTCC"; then
10955       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10956 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10957     else
10958       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10959 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10960     fi
10961   fi
10962   if test -z "$LTCFLAGS"; then
10963     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10964   fi
10965
10966   # Extract list of available tagged configurations in $ofile.
10967   # Note that this assumes the entire list is on one line.
10968   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10969
10970   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10971   for tagname in $tagnames; do
10972     IFS="$lt_save_ifs"
10973     # Check whether tagname contains only valid characters
10974     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10975     "") ;;
10976     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10977 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10978    { (exit 1); exit 1; }; }
10979         ;;
10980     esac
10981
10982     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10983     then
10984       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10985 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10986    { (exit 1); exit 1; }; }
10987     fi
10988
10989     # Update the list of available tags.
10990     if test -n "$tagname"; then
10991       echo appending configuration tag \"$tagname\" to $ofile
10992
10993       case $tagname in
10994       CXX)
10995         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10996             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10997             (test "X$CXX" != "Xg++"))) ; then
10998           ac_ext=cpp
10999 ac_cpp='$CXXCPP $CPPFLAGS'
11000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11003
11004
11005
11006
11007 archive_cmds_need_lc_CXX=no
11008 allow_undefined_flag_CXX=
11009 always_export_symbols_CXX=no
11010 archive_expsym_cmds_CXX=
11011 export_dynamic_flag_spec_CXX=
11012 hardcode_direct_CXX=no
11013 hardcode_libdir_flag_spec_CXX=
11014 hardcode_libdir_flag_spec_ld_CXX=
11015 hardcode_libdir_separator_CXX=
11016 hardcode_minus_L_CXX=no
11017 hardcode_shlibpath_var_CXX=unsupported
11018 hardcode_automatic_CXX=no
11019 module_cmds_CXX=
11020 module_expsym_cmds_CXX=
11021 link_all_deplibs_CXX=unknown
11022 old_archive_cmds_CXX=$old_archive_cmds
11023 no_undefined_flag_CXX=
11024 whole_archive_flag_spec_CXX=
11025 enable_shared_with_static_runtimes_CXX=no
11026
11027 # Dependencies to place before and after the object being linked:
11028 predep_objects_CXX=
11029 postdep_objects_CXX=
11030 predeps_CXX=
11031 postdeps_CXX=
11032 compiler_lib_search_path_CXX=
11033 compiler_lib_search_dirs_CXX=
11034
11035 # Source file extension for C++ test sources.
11036 ac_ext=cpp
11037
11038 # Object file extension for compiled C++ test sources.
11039 objext=o
11040 objext_CXX=$objext
11041
11042 # Code to be used in simple compile tests
11043 lt_simple_compile_test_code="int some_variable = 0;"
11044
11045 # Code to be used in simple link tests
11046 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11047
11048 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11049
11050 # If no C compiler was specified, use CC.
11051 LTCC=${LTCC-"$CC"}
11052
11053 # If no C compiler flags were specified, use CFLAGS.
11054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11055
11056 # Allow CC to be a program name with arguments.
11057 compiler=$CC
11058
11059
11060 # save warnings/boilerplate of simple test code
11061 ac_outfile=conftest.$ac_objext
11062 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11064 _lt_compiler_boilerplate=`cat conftest.err`
11065 $rm conftest*
11066
11067 ac_outfile=conftest.$ac_objext
11068 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11070 _lt_linker_boilerplate=`cat conftest.err`
11071 $rm -r conftest*
11072
11073
11074 # Allow CC to be a program name with arguments.
11075 lt_save_CC=$CC
11076 lt_save_LD=$LD
11077 lt_save_GCC=$GCC
11078 GCC=$GXX
11079 lt_save_with_gnu_ld=$with_gnu_ld
11080 lt_save_path_LD=$lt_cv_path_LD
11081 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11082   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11083 else
11084   $as_unset lt_cv_prog_gnu_ld
11085 fi
11086 if test -n "${lt_cv_path_LDCXX+set}"; then
11087   lt_cv_path_LD=$lt_cv_path_LDCXX
11088 else
11089   $as_unset lt_cv_path_LD
11090 fi
11091 test -z "${LDCXX+set}" || LD=$LDCXX
11092 CC=${CXX-"c++"}
11093 compiler=$CC
11094 compiler_CXX=$CC
11095 for cc_temp in $compiler""; do
11096   case $cc_temp in
11097     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11098     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11099     \-*) ;;
11100     *) break;;
11101   esac
11102 done
11103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11104
11105
11106 # We don't want -fno-exception wen compiling C++ code, so set the
11107 # no_builtin_flag separately
11108 if test "$GXX" = yes; then
11109   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11110 else
11111   lt_prog_compiler_no_builtin_flag_CXX=
11112 fi
11113
11114 if test "$GXX" = yes; then
11115   # Set up default GNU C++ configuration
11116
11117
11118 # Check whether --with-gnu-ld was given.
11119 if test "${with_gnu_ld+set}" = set; then
11120   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11121 else
11122   with_gnu_ld=no
11123 fi
11124
11125 ac_prog=ld
11126 if test "$GCC" = yes; then
11127   # Check if gcc -print-prog-name=ld gives a path.
11128   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11129 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11130   case $host in
11131   *-*-mingw*)
11132     # gcc leaves a trailing carriage return which upsets mingw
11133     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11134   *)
11135     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11136   esac
11137   case $ac_prog in
11138     # Accept absolute paths.
11139     [\\/]* | ?:[\\/]*)
11140       re_direlt='/[^/][^/]*/\.\./'
11141       # Canonicalize the pathname of ld
11142       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11143       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11144         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11145       done
11146       test -z "$LD" && LD="$ac_prog"
11147       ;;
11148   "")
11149     # If it fails, then pretend we aren't using GCC.
11150     ac_prog=ld
11151     ;;
11152   *)
11153     # If it is relative, then search for the first ld in PATH.
11154     with_gnu_ld=unknown
11155     ;;
11156   esac
11157 elif test "$with_gnu_ld" = yes; then
11158   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11159 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11160 else
11161   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11162 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11163 fi
11164 if test "${lt_cv_path_LD+set}" = set; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   if test -z "$LD"; then
11168   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11169   for ac_dir in $PATH; do
11170     IFS="$lt_save_ifs"
11171     test -z "$ac_dir" && ac_dir=.
11172     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11173       lt_cv_path_LD="$ac_dir/$ac_prog"
11174       # Check to see if the program is GNU ld.  I'd rather use --version,
11175       # but apparently some variants of GNU ld only accept -v.
11176       # Break only if it was the GNU/non-GNU ld that we prefer.
11177       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11178       *GNU* | *'with BFD'*)
11179         test "$with_gnu_ld" != no && break
11180         ;;
11181       *)
11182         test "$with_gnu_ld" != yes && break
11183         ;;
11184       esac
11185     fi
11186   done
11187   IFS="$lt_save_ifs"
11188 else
11189   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11190 fi
11191 fi
11192
11193 LD="$lt_cv_path_LD"
11194 if test -n "$LD"; then
11195   { echo "$as_me:$LINENO: result: $LD" >&5
11196 echo "${ECHO_T}$LD" >&6; }
11197 else
11198   { echo "$as_me:$LINENO: result: no" >&5
11199 echo "${ECHO_T}no" >&6; }
11200 fi
11201 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11202 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11203    { (exit 1); exit 1; }; }
11204 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11205 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11206 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11207   echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11210 case `$LD -v 2>&1 </dev/null` in
11211 *GNU* | *'with BFD'*)
11212   lt_cv_prog_gnu_ld=yes
11213   ;;
11214 *)
11215   lt_cv_prog_gnu_ld=no
11216   ;;
11217 esac
11218 fi
11219 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11220 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11221 with_gnu_ld=$lt_cv_prog_gnu_ld
11222
11223
11224
11225   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11226   # archiving commands below assume that GNU ld is being used.
11227   if test "$with_gnu_ld" = yes; then
11228     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11229     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'
11230
11231     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11232     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11233
11234     # If archive_cmds runs LD, not CC, wlarc should be empty
11235     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11236     #     investigate it a little bit more. (MM)
11237     wlarc='${wl}'
11238
11239     # ancient GNU ld didn't support --whole-archive et. al.
11240     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11241         grep 'no-whole-archive' > /dev/null; then
11242       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11243     else
11244       whole_archive_flag_spec_CXX=
11245     fi
11246   else
11247     with_gnu_ld=no
11248     wlarc=
11249
11250     # A generic and very simple default shared library creation
11251     # command for GNU C++ for the case where it uses the native
11252     # linker, instead of GNU ld.  If possible, this setting should
11253     # overridden to take advantage of the native linker features on
11254     # the platform it is being used on.
11255     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11256   fi
11257
11258   # Commands to make compiler produce verbose output that lists
11259   # what "hidden" libraries, object files and flags are used when
11260   # linking a shared library.
11261   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11262
11263 else
11264   GXX=no
11265   with_gnu_ld=no
11266   wlarc=
11267 fi
11268
11269 # PORTME: fill in a description of your system's C++ link characteristics
11270 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11271 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11272 ld_shlibs_CXX=yes
11273 case $host_os in
11274   aix3*)
11275     # FIXME: insert proper C++ library support
11276     ld_shlibs_CXX=no
11277     ;;
11278   aix[4-9]*)
11279     if test "$host_cpu" = ia64; then
11280       # On IA64, the linker does run time linking by default, so we don't
11281       # have to do anything special.
11282       aix_use_runtimelinking=no
11283       exp_sym_flag='-Bexport'
11284       no_entry_flag=""
11285     else
11286       aix_use_runtimelinking=no
11287
11288       # Test if we are trying to use run time linking or normal
11289       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11290       # need to do runtime linking.
11291       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11292         for ld_flag in $LDFLAGS; do
11293           case $ld_flag in
11294           *-brtl*)
11295             aix_use_runtimelinking=yes
11296             break
11297             ;;
11298           esac
11299         done
11300         ;;
11301       esac
11302
11303       exp_sym_flag='-bexport'
11304       no_entry_flag='-bnoentry'
11305     fi
11306
11307     # When large executables or shared objects are built, AIX ld can
11308     # have problems creating the table of contents.  If linking a library
11309     # or program results in "error TOC overflow" add -mminimal-toc to
11310     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11311     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11312
11313     archive_cmds_CXX=''
11314     hardcode_direct_CXX=yes
11315     hardcode_libdir_separator_CXX=':'
11316     link_all_deplibs_CXX=yes
11317
11318     if test "$GXX" = yes; then
11319       case $host_os in aix4.[012]|aix4.[012].*)
11320       # We only want to do this on AIX 4.2 and lower, the check
11321       # below for broken collect2 doesn't work under 4.3+
11322         collect2name=`${CC} -print-prog-name=collect2`
11323         if test -f "$collect2name" && \
11324            strings "$collect2name" | grep resolve_lib_name >/dev/null
11325         then
11326           # We have reworked collect2
11327           :
11328         else
11329           # We have old collect2
11330           hardcode_direct_CXX=unsupported
11331           # It fails to find uninstalled libraries when the uninstalled
11332           # path is not listed in the libpath.  Setting hardcode_minus_L
11333           # to unsupported forces relinking
11334           hardcode_minus_L_CXX=yes
11335           hardcode_libdir_flag_spec_CXX='-L$libdir'
11336           hardcode_libdir_separator_CXX=
11337         fi
11338         ;;
11339       esac
11340       shared_flag='-shared'
11341       if test "$aix_use_runtimelinking" = yes; then
11342         shared_flag="$shared_flag "'${wl}-G'
11343       fi
11344     else
11345       # not using gcc
11346       if test "$host_cpu" = ia64; then
11347         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11348         # chokes on -Wl,-G. The following line is correct:
11349         shared_flag='-G'
11350       else
11351         if test "$aix_use_runtimelinking" = yes; then
11352           shared_flag='${wl}-G'
11353         else
11354           shared_flag='${wl}-bM:SRE'
11355         fi
11356       fi
11357     fi
11358
11359     # It seems that -bexpall does not export symbols beginning with
11360     # underscore (_), so it is better to generate a list of symbols to export.
11361     always_export_symbols_CXX=yes
11362     if test "$aix_use_runtimelinking" = yes; then
11363       # Warning - without using the other runtime loading flags (-brtl),
11364       # -berok will link without error, but may produce a broken library.
11365       allow_undefined_flag_CXX='-berok'
11366       # Determine the default libpath from the value encoded in an empty executable.
11367       cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h.  */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h.  */
11373
11374 int
11375 main ()
11376 {
11377
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext conftest$ac_exeext
11383 if { (ac_try="$ac_link"
11384 case "(($ac_try" in
11385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386   *) ac_try_echo=$ac_try;;
11387 esac
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389   (eval "$ac_link") 2>conftest.er1
11390   ac_status=$?
11391   grep -v '^ *+' conftest.er1 >conftest.err
11392   rm -f conftest.er1
11393   cat conftest.err >&5
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); } && {
11396          test -z "$ac_cxx_werror_flag" ||
11397          test ! -s conftest.err
11398        } && test -s conftest$ac_exeext &&
11399        $as_test_x conftest$ac_exeext; then
11400
11401 lt_aix_libpath_sed='
11402     /Import File Strings/,/^$/ {
11403         /^0/ {
11404             s/^0  *\(.*\)$/\1/
11405             p
11406         }
11407     }'
11408 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11409 # Check for a 64-bit object if we didn't find anything.
11410 if test -z "$aix_libpath"; then
11411   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11412 fi
11413 else
11414   echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417
11418 fi
11419
11420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11421       conftest$ac_exeext conftest.$ac_ext
11422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11423
11424       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11425
11426       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11427      else
11428       if test "$host_cpu" = ia64; then
11429         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11430         allow_undefined_flag_CXX="-z nodefs"
11431         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"
11432       else
11433         # Determine the default libpath from the value encoded in an empty executable.
11434         cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440
11441 int
11442 main ()
11443 {
11444
11445   ;
11446   return 0;
11447 }
11448 _ACEOF
11449 rm -f conftest.$ac_objext conftest$ac_exeext
11450 if { (ac_try="$ac_link"
11451 case "(($ac_try" in
11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453   *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456   (eval "$ac_link") 2>conftest.er1
11457   ac_status=$?
11458   grep -v '^ *+' conftest.er1 >conftest.err
11459   rm -f conftest.er1
11460   cat conftest.err >&5
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); } && {
11463          test -z "$ac_cxx_werror_flag" ||
11464          test ! -s conftest.err
11465        } && test -s conftest$ac_exeext &&
11466        $as_test_x conftest$ac_exeext; then
11467
11468 lt_aix_libpath_sed='
11469     /Import File Strings/,/^$/ {
11470         /^0/ {
11471             s/^0  *\(.*\)$/\1/
11472             p
11473         }
11474     }'
11475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11476 # Check for a 64-bit object if we didn't find anything.
11477 if test -z "$aix_libpath"; then
11478   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11479 fi
11480 else
11481   echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11483
11484
11485 fi
11486
11487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11488       conftest$ac_exeext conftest.$ac_ext
11489 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11490
11491         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11492         # Warning - without using the other run time loading flags,
11493         # -berok will link without error, but may produce a broken library.
11494         no_undefined_flag_CXX=' ${wl}-bernotok'
11495         allow_undefined_flag_CXX=' ${wl}-berok'
11496         # Exported symbols can be pulled into shared objects from archives
11497         whole_archive_flag_spec_CXX='$convenience'
11498         archive_cmds_need_lc_CXX=yes
11499         # This is similar to how AIX traditionally builds its shared libraries.
11500         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'
11501       fi
11502     fi
11503     ;;
11504
11505   beos*)
11506     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11507       allow_undefined_flag_CXX=unsupported
11508       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11509       # support --undefined.  This deserves some investigation.  FIXME
11510       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11511     else
11512       ld_shlibs_CXX=no
11513     fi
11514     ;;
11515
11516   chorus*)
11517     case $cc_basename in
11518       *)
11519         # FIXME: insert proper C++ library support
11520         ld_shlibs_CXX=no
11521         ;;
11522     esac
11523     ;;
11524
11525   cygwin* | mingw* | pw32*)
11526     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11527     # as there is no search path for DLLs.
11528     hardcode_libdir_flag_spec_CXX='-L$libdir'
11529     allow_undefined_flag_CXX=unsupported
11530     always_export_symbols_CXX=no
11531     enable_shared_with_static_runtimes_CXX=yes
11532
11533     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11534       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'
11535       # If the export-symbols file already is a .def file (1st line
11536       # is EXPORTS), use it as is; otherwise, prepend...
11537       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11538         cp $export_symbols $output_objdir/$soname.def;
11539       else
11540         echo EXPORTS > $output_objdir/$soname.def;
11541         cat $export_symbols >> $output_objdir/$soname.def;
11542       fi~
11543       $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'
11544     else
11545       ld_shlibs_CXX=no
11546     fi
11547   ;;
11548       darwin* | rhapsody*)
11549       archive_cmds_need_lc_CXX=no
11550       hardcode_direct_CXX=no
11551       hardcode_automatic_CXX=yes
11552       hardcode_shlibpath_var_CXX=unsupported
11553       whole_archive_flag_spec_CXX=''
11554       link_all_deplibs_CXX=yes
11555       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11556       if test "$GXX" = yes ; then
11557       output_verbose_link_cmd='echo'
11558       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}"
11559       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11560       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}"
11561       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}"
11562       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11563         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}"
11564         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}"
11565       fi
11566       else
11567       case $cc_basename in
11568         xlc*)
11569          output_verbose_link_cmd='echo'
11570           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11571           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11572           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11573           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11574           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11575           ;;
11576        *)
11577          ld_shlibs_CXX=no
11578           ;;
11579       esac
11580       fi
11581         ;;
11582
11583   dgux*)
11584     case $cc_basename in
11585       ec++*)
11586         # FIXME: insert proper C++ library support
11587         ld_shlibs_CXX=no
11588         ;;
11589       ghcx*)
11590         # Green Hills C++ Compiler
11591         # FIXME: insert proper C++ library support
11592         ld_shlibs_CXX=no
11593         ;;
11594       *)
11595         # FIXME: insert proper C++ library support
11596         ld_shlibs_CXX=no
11597         ;;
11598     esac
11599     ;;
11600   freebsd[12]*)
11601     # C++ shared libraries reported to be fairly broken before switch to ELF
11602     ld_shlibs_CXX=no
11603     ;;
11604   freebsd-elf*)
11605     archive_cmds_need_lc_CXX=no
11606     ;;
11607   freebsd* | dragonfly*)
11608     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11609     # conventions
11610     ld_shlibs_CXX=yes
11611     ;;
11612   gnu*)
11613     ;;
11614   hpux9*)
11615     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11616     hardcode_libdir_separator_CXX=:
11617     export_dynamic_flag_spec_CXX='${wl}-E'
11618     hardcode_direct_CXX=yes
11619     hardcode_minus_L_CXX=yes # Not in the search PATH,
11620                                 # but as the default
11621                                 # location of the library.
11622
11623     case $cc_basename in
11624     CC*)
11625       # FIXME: insert proper C++ library support
11626       ld_shlibs_CXX=no
11627       ;;
11628     aCC*)
11629       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'
11630       # Commands to make compiler produce verbose output that lists
11631       # what "hidden" libraries, object files and flags are used when
11632       # linking a shared library.
11633       #
11634       # There doesn't appear to be a way to prevent this compiler from
11635       # explicitly linking system object files so we need to strip them
11636       # from the output so that they don't get included in the library
11637       # dependencies.
11638       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11639       ;;
11640     *)
11641       if test "$GXX" = yes; then
11642         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'
11643       else
11644         # FIXME: insert proper C++ library support
11645         ld_shlibs_CXX=no
11646       fi
11647       ;;
11648     esac
11649     ;;
11650   hpux10*|hpux11*)
11651     if test $with_gnu_ld = no; then
11652       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11653       hardcode_libdir_separator_CXX=:
11654
11655       case $host_cpu in
11656       hppa*64*|ia64*) ;;
11657       *)
11658         export_dynamic_flag_spec_CXX='${wl}-E'
11659         ;;
11660       esac
11661     fi
11662     case $host_cpu in
11663     hppa*64*|ia64*)
11664       hardcode_direct_CXX=no
11665       hardcode_shlibpath_var_CXX=no
11666       ;;
11667     *)
11668       hardcode_direct_CXX=yes
11669       hardcode_minus_L_CXX=yes # Not in the search PATH,
11670                                               # but as the default
11671                                               # location of the library.
11672       ;;
11673     esac
11674
11675     case $cc_basename in
11676       CC*)
11677         # FIXME: insert proper C++ library support
11678         ld_shlibs_CXX=no
11679         ;;
11680       aCC*)
11681         case $host_cpu in
11682         hppa*64*)
11683           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11684           ;;
11685         ia64*)
11686           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11687           ;;
11688         *)
11689           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11690           ;;
11691         esac
11692         # Commands to make compiler produce verbose output that lists
11693         # what "hidden" libraries, object files and flags are used when
11694         # linking a shared library.
11695         #
11696         # There doesn't appear to be a way to prevent this compiler from
11697         # explicitly linking system object files so we need to strip them
11698         # from the output so that they don't get included in the library
11699         # dependencies.
11700         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11701         ;;
11702       *)
11703         if test "$GXX" = yes; then
11704           if test $with_gnu_ld = no; then
11705             case $host_cpu in
11706             hppa*64*)
11707               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11708               ;;
11709             ia64*)
11710               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11711               ;;
11712             *)
11713               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'
11714               ;;
11715             esac
11716           fi
11717         else
11718           # FIXME: insert proper C++ library support
11719           ld_shlibs_CXX=no
11720         fi
11721         ;;
11722     esac
11723     ;;
11724   interix[3-9]*)
11725     hardcode_direct_CXX=no
11726     hardcode_shlibpath_var_CXX=no
11727     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11728     export_dynamic_flag_spec_CXX='${wl}-E'
11729     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11730     # Instead, shared libraries are loaded at an image base (0x10000000 by
11731     # default) and relocated if they conflict, which is a slow very memory
11732     # consuming and fragmenting process.  To avoid this, we pick a random,
11733     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11734     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11735     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'
11736     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'
11737     ;;
11738   irix5* | irix6*)
11739     case $cc_basename in
11740       CC*)
11741         # SGI C++
11742         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11743
11744         # Archives containing C++ object files must be created using
11745         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11746         # necessary to make sure instantiated templates are included
11747         # in the archive.
11748         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11749         ;;
11750       *)
11751         if test "$GXX" = yes; then
11752           if test "$with_gnu_ld" = no; then
11753             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11754           else
11755             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11756           fi
11757         fi
11758         link_all_deplibs_CXX=yes
11759         ;;
11760     esac
11761     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11762     hardcode_libdir_separator_CXX=:
11763     ;;
11764   linux* | k*bsd*-gnu)
11765     case $cc_basename in
11766       KCC*)
11767         # Kuck and Associates, Inc. (KAI) C++ Compiler
11768
11769         # KCC will only create a shared library if the output file
11770         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11771         # to its proper name (with version) after linking.
11772         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'
11773         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'
11774         # Commands to make compiler produce verbose output that lists
11775         # what "hidden" libraries, object files and flags are used when
11776         # linking a shared library.
11777         #
11778         # There doesn't appear to be a way to prevent this compiler from
11779         # explicitly linking system object files so we need to strip them
11780         # from the output so that they don't get included in the library
11781         # dependencies.
11782         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11783
11784         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11785         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11786
11787         # Archives containing C++ object files must be created using
11788         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11789         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11790         ;;
11791       icpc*)
11792         # Intel C++
11793         with_gnu_ld=yes
11794         # version 8.0 and above of icpc choke on multiply defined symbols
11795         # if we add $predep_objects and $postdep_objects, however 7.1 and
11796         # earlier do not add the objects themselves.
11797         case `$CC -V 2>&1` in
11798         *"Version 7."*)
11799           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11800           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'
11801           ;;
11802         *)  # Version 8.0 or newer
11803           tmp_idyn=
11804           case $host_cpu in
11805             ia64*) tmp_idyn=' -i_dynamic';;
11806           esac
11807           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11808           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'
11809           ;;
11810         esac
11811         archive_cmds_need_lc_CXX=no
11812         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11813         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11814         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11815         ;;
11816       pgCC* | pgcpp*)
11817         # Portland Group C++ compiler
11818         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11819         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'
11820
11821         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11822         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11823         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11824         ;;
11825       cxx*)
11826         # Compaq C++
11827         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11828         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'
11829
11830         runpath_var=LD_RUN_PATH
11831         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11832         hardcode_libdir_separator_CXX=:
11833
11834         # Commands to make compiler produce verbose output that lists
11835         # what "hidden" libraries, object files and flags are used when
11836         # linking a shared library.
11837         #
11838         # There doesn't appear to be a way to prevent this compiler from
11839         # explicitly linking system object files so we need to strip them
11840         # from the output so that they don't get included in the library
11841         # dependencies.
11842         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11843         ;;
11844       *)
11845         case `$CC -V 2>&1 | sed 5q` in
11846         *Sun\ C*)
11847           # Sun C++ 5.9
11848           no_undefined_flag_CXX=' -zdefs'
11849           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11850           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'
11851           hardcode_libdir_flag_spec_CXX='-R$libdir'
11852           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11853
11854           # Not sure whether something based on
11855           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11856           # would be better.
11857           output_verbose_link_cmd='echo'
11858
11859           # Archives containing C++ object files must be created using
11860           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11861           # necessary to make sure instantiated templates are included
11862           # in the archive.
11863           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11864           ;;
11865         esac
11866         ;;
11867     esac
11868     ;;
11869   lynxos*)
11870     # FIXME: insert proper C++ library support
11871     ld_shlibs_CXX=no
11872     ;;
11873   m88k*)
11874     # FIXME: insert proper C++ library support
11875     ld_shlibs_CXX=no
11876     ;;
11877   mvs*)
11878     case $cc_basename in
11879       cxx*)
11880         # FIXME: insert proper C++ library support
11881         ld_shlibs_CXX=no
11882         ;;
11883       *)
11884         # FIXME: insert proper C++ library support
11885         ld_shlibs_CXX=no
11886         ;;
11887     esac
11888     ;;
11889   netbsd* | netbsdelf*-gnu)
11890     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11891       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11892       wlarc=
11893       hardcode_libdir_flag_spec_CXX='-R$libdir'
11894       hardcode_direct_CXX=yes
11895       hardcode_shlibpath_var_CXX=no
11896     fi
11897     # Workaround some broken pre-1.5 toolchains
11898     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11899     ;;
11900   openbsd2*)
11901     # C++ shared libraries are fairly broken
11902     ld_shlibs_CXX=no
11903     ;;
11904   openbsd*)
11905     if test -f /usr/libexec/ld.so; then
11906       hardcode_direct_CXX=yes
11907       hardcode_shlibpath_var_CXX=no
11908       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11909       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11910       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11911         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11912         export_dynamic_flag_spec_CXX='${wl}-E'
11913         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11914       fi
11915       output_verbose_link_cmd='echo'
11916     else
11917       ld_shlibs_CXX=no
11918     fi
11919     ;;
11920   osf3*)
11921     case $cc_basename in
11922       KCC*)
11923         # Kuck and Associates, Inc. (KAI) C++ Compiler
11924
11925         # KCC will only create a shared library if the output file
11926         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11927         # to its proper name (with version) after linking.
11928         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'
11929
11930         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11931         hardcode_libdir_separator_CXX=:
11932
11933         # Archives containing C++ object files must be created using
11934         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11935         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11936
11937         ;;
11938       RCC*)
11939         # Rational C++ 2.4.1
11940         # FIXME: insert proper C++ library support
11941         ld_shlibs_CXX=no
11942         ;;
11943       cxx*)
11944         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11945         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11946
11947         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11948         hardcode_libdir_separator_CXX=:
11949
11950         # Commands to make compiler produce verbose output that lists
11951         # what "hidden" libraries, object files and flags are used when
11952         # linking a shared library.
11953         #
11954         # There doesn't appear to be a way to prevent this compiler from
11955         # explicitly linking system object files so we need to strip them
11956         # from the output so that they don't get included in the library
11957         # dependencies.
11958         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11959         ;;
11960       *)
11961         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11962           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11963           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11964
11965           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11966           hardcode_libdir_separator_CXX=:
11967
11968           # Commands to make compiler produce verbose output that lists
11969           # what "hidden" libraries, object files and flags are used when
11970           # linking a shared library.
11971           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11972
11973         else
11974           # FIXME: insert proper C++ library support
11975           ld_shlibs_CXX=no
11976         fi
11977         ;;
11978     esac
11979     ;;
11980   osf4* | osf5*)
11981     case $cc_basename in
11982       KCC*)
11983         # Kuck and Associates, Inc. (KAI) C++ Compiler
11984
11985         # KCC will only create a shared library if the output file
11986         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11987         # to its proper name (with version) after linking.
11988         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'
11989
11990         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11991         hardcode_libdir_separator_CXX=:
11992
11993         # Archives containing C++ object files must be created using
11994         # the KAI C++ compiler.
11995         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11996         ;;
11997       RCC*)
11998         # Rational C++ 2.4.1
11999         # FIXME: insert proper C++ library support
12000         ld_shlibs_CXX=no
12001         ;;
12002       cxx*)
12003         allow_undefined_flag_CXX=' -expect_unresolved \*'
12004         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12005         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12006           echo "-hidden">> $lib.exp~
12007           $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~
12008           $rm $lib.exp'
12009
12010         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12011         hardcode_libdir_separator_CXX=:
12012
12013         # Commands to make compiler produce verbose output that lists
12014         # what "hidden" libraries, object files and flags are used when
12015         # linking a shared library.
12016         #
12017         # There doesn't appear to be a way to prevent this compiler from
12018         # explicitly linking system object files so we need to strip them
12019         # from the output so that they don't get included in the library
12020         # dependencies.
12021         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12022         ;;
12023       *)
12024         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12025           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12026          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12027
12028           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12029           hardcode_libdir_separator_CXX=:
12030
12031           # Commands to make compiler produce verbose output that lists
12032           # what "hidden" libraries, object files and flags are used when
12033           # linking a shared library.
12034           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12035
12036         else
12037           # FIXME: insert proper C++ library support
12038           ld_shlibs_CXX=no
12039         fi
12040         ;;
12041     esac
12042     ;;
12043   psos*)
12044     # FIXME: insert proper C++ library support
12045     ld_shlibs_CXX=no
12046     ;;
12047   sunos4*)
12048     case $cc_basename in
12049       CC*)
12050         # Sun C++ 4.x
12051         # FIXME: insert proper C++ library support
12052         ld_shlibs_CXX=no
12053         ;;
12054       lcc*)
12055         # Lucid
12056         # FIXME: insert proper C++ library support
12057         ld_shlibs_CXX=no
12058         ;;
12059       *)
12060         # FIXME: insert proper C++ library support
12061         ld_shlibs_CXX=no
12062         ;;
12063     esac
12064     ;;
12065   solaris*)
12066     case $cc_basename in
12067       CC*)
12068         # Sun C++ 4.2, 5.x and Centerline C++
12069         archive_cmds_need_lc_CXX=yes
12070         no_undefined_flag_CXX=' -zdefs'
12071         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12072         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12073         $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'
12074
12075         hardcode_libdir_flag_spec_CXX='-R$libdir'
12076         hardcode_shlibpath_var_CXX=no
12077         case $host_os in
12078           solaris2.[0-5] | solaris2.[0-5].*) ;;
12079           *)
12080             # The compiler driver will combine and reorder linker options,
12081             # but understands `-z linker_flag'.
12082             # Supported since Solaris 2.6 (maybe 2.5.1?)
12083             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12084             ;;
12085         esac
12086         link_all_deplibs_CXX=yes
12087
12088         output_verbose_link_cmd='echo'
12089
12090         # Archives containing C++ object files must be created using
12091         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12092         # necessary to make sure instantiated templates are included
12093         # in the archive.
12094         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12095         ;;
12096       gcx*)
12097         # Green Hills C++ Compiler
12098         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12099
12100         # The C++ compiler must be used to create the archive.
12101         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12102         ;;
12103       *)
12104         # GNU C++ compiler with Solaris linker
12105         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12106           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12107           if $CC --version | grep -v '^2\.7' > /dev/null; then
12108             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12109             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12110                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12111
12112             # Commands to make compiler produce verbose output that lists
12113             # what "hidden" libraries, object files and flags are used when
12114             # linking a shared library.
12115             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12116           else
12117             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12118             # platform.
12119             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12120             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12121                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12122
12123             # Commands to make compiler produce verbose output that lists
12124             # what "hidden" libraries, object files and flags are used when
12125             # linking a shared library.
12126             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12127           fi
12128
12129           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12130           case $host_os in
12131           solaris2.[0-5] | solaris2.[0-5].*) ;;
12132           *)
12133             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12134             ;;
12135           esac
12136         fi
12137         ;;
12138     esac
12139     ;;
12140   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12141     no_undefined_flag_CXX='${wl}-z,text'
12142     archive_cmds_need_lc_CXX=no
12143     hardcode_shlibpath_var_CXX=no
12144     runpath_var='LD_RUN_PATH'
12145
12146     case $cc_basename in
12147       CC*)
12148         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12150         ;;
12151       *)
12152         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12153         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12154         ;;
12155     esac
12156     ;;
12157   sysv5* | sco3.2v5* | sco5v6*)
12158     # Note: We can NOT use -z defs as we might desire, because we do not
12159     # link with -lc, and that would cause any symbols used from libc to
12160     # always be unresolved, which means just about no library would
12161     # ever link correctly.  If we're not using GNU ld we use -z text
12162     # though, which does catch some bad symbols but isn't as heavy-handed
12163     # as -z defs.
12164     # For security reasons, it is highly recommended that you always
12165     # use absolute paths for naming shared libraries, and exclude the
12166     # DT_RUNPATH tag from executables and libraries.  But doing so
12167     # requires that you compile everything twice, which is a pain.
12168     # So that behaviour is only enabled if SCOABSPATH is set to a
12169     # non-empty value in the environment.  Most likely only useful for
12170     # creating official distributions of packages.
12171     # This is a hack until libtool officially supports absolute path
12172     # names for shared libraries.
12173     no_undefined_flag_CXX='${wl}-z,text'
12174     allow_undefined_flag_CXX='${wl}-z,nodefs'
12175     archive_cmds_need_lc_CXX=no
12176     hardcode_shlibpath_var_CXX=no
12177     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12178     hardcode_libdir_separator_CXX=':'
12179     link_all_deplibs_CXX=yes
12180     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12181     runpath_var='LD_RUN_PATH'
12182
12183     case $cc_basename in
12184       CC*)
12185         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12186         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12187         ;;
12188       *)
12189         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12190         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12191         ;;
12192     esac
12193     ;;
12194   tandem*)
12195     case $cc_basename in
12196       NCC*)
12197         # NonStop-UX NCC 3.20
12198         # FIXME: insert proper C++ library support
12199         ld_shlibs_CXX=no
12200         ;;
12201       *)
12202         # FIXME: insert proper C++ library support
12203         ld_shlibs_CXX=no
12204         ;;
12205     esac
12206     ;;
12207   vxworks*)
12208     # FIXME: insert proper C++ library support
12209     ld_shlibs_CXX=no
12210     ;;
12211   *)
12212     # FIXME: insert proper C++ library support
12213     ld_shlibs_CXX=no
12214     ;;
12215 esac
12216 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12217 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12218 test "$ld_shlibs_CXX" = no && can_build_shared=no
12219
12220 GCC_CXX="$GXX"
12221 LD_CXX="$LD"
12222
12223 cat > conftest.$ac_ext <<EOF
12224 class Foo
12225 {
12226 public:
12227   Foo (void) { a = 0; }
12228 private:
12229   int a;
12230 };
12231 EOF
12232
12233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12234   (eval $ac_compile) 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; then
12238   # Parse the compiler output and extract the necessary
12239   # objects, libraries and library flags.
12240
12241   # Sentinel used to keep track of whether or not we are before
12242   # the conftest object file.
12243   pre_test_object_deps_done=no
12244
12245   # The `*' in the case matches for architectures that use `case' in
12246   # $output_verbose_cmd can trigger glob expansion during the loop
12247   # eval without this substitution.
12248   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12249
12250   for p in `eval $output_verbose_link_cmd`; do
12251     case $p in
12252
12253     -L* | -R* | -l*)
12254        # Some compilers place space between "-{L,R}" and the path.
12255        # Remove the space.
12256        if test $p = "-L" \
12257           || test $p = "-R"; then
12258          prev=$p
12259          continue
12260        else
12261          prev=
12262        fi
12263
12264        if test "$pre_test_object_deps_done" = no; then
12265          case $p in
12266          -L* | -R*)
12267            # Internal compiler library paths should come after those
12268            # provided the user.  The postdeps already come after the
12269            # user supplied libs so there is no need to process them.
12270            if test -z "$compiler_lib_search_path_CXX"; then
12271              compiler_lib_search_path_CXX="${prev}${p}"
12272            else
12273              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12274            fi
12275            ;;
12276          # The "-l" case would never come before the object being
12277          # linked, so don't bother handling this case.
12278          esac
12279        else
12280          if test -z "$postdeps_CXX"; then
12281            postdeps_CXX="${prev}${p}"
12282          else
12283            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12284          fi
12285        fi
12286        ;;
12287
12288     *.$objext)
12289        # This assumes that the test object file only shows up
12290        # once in the compiler output.
12291        if test "$p" = "conftest.$objext"; then
12292          pre_test_object_deps_done=yes
12293          continue
12294        fi
12295
12296        if test "$pre_test_object_deps_done" = no; then
12297          if test -z "$predep_objects_CXX"; then
12298            predep_objects_CXX="$p"
12299          else
12300            predep_objects_CXX="$predep_objects_CXX $p"
12301          fi
12302        else
12303          if test -z "$postdep_objects_CXX"; then
12304            postdep_objects_CXX="$p"
12305          else
12306            postdep_objects_CXX="$postdep_objects_CXX $p"
12307          fi
12308        fi
12309        ;;
12310
12311     *) ;; # Ignore the rest.
12312
12313     esac
12314   done
12315
12316   # Clean up.
12317   rm -f a.out a.exe
12318 else
12319   echo "libtool.m4: error: problem compiling CXX test program"
12320 fi
12321
12322 $rm -f confest.$objext
12323
12324 compiler_lib_search_dirs_CXX=
12325 if test -n "$compiler_lib_search_path_CXX"; then
12326   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12327 fi
12328
12329 # PORTME: override above test on systems where it is broken
12330 case $host_os in
12331 interix[3-9]*)
12332   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12333   # hack all around it, let's just trust "g++" to DTRT.
12334   predep_objects_CXX=
12335   postdep_objects_CXX=
12336   postdeps_CXX=
12337   ;;
12338
12339 linux*)
12340   case `$CC -V 2>&1 | sed 5q` in
12341   *Sun\ C*)
12342     # Sun C++ 5.9
12343     #
12344     # The more standards-conforming stlport4 library is
12345     # incompatible with the Cstd library. Avoid specifying
12346     # it if it's in CXXFLAGS. Ignore libCrun as
12347     # -library=stlport4 depends on it.
12348     case " $CXX $CXXFLAGS " in
12349     *" -library=stlport4 "*)
12350       solaris_use_stlport4=yes
12351       ;;
12352     esac
12353     if test "$solaris_use_stlport4" != yes; then
12354       postdeps_CXX='-library=Cstd -library=Crun'
12355     fi
12356     ;;
12357   esac
12358   ;;
12359
12360 solaris*)
12361   case $cc_basename in
12362   CC*)
12363     # The more standards-conforming stlport4 library is
12364     # incompatible with the Cstd library. Avoid specifying
12365     # it if it's in CXXFLAGS. Ignore libCrun as
12366     # -library=stlport4 depends on it.
12367     case " $CXX $CXXFLAGS " in
12368     *" -library=stlport4 "*)
12369       solaris_use_stlport4=yes
12370       ;;
12371     esac
12372
12373     # Adding this requires a known-good setup of shared libraries for
12374     # Sun compiler versions before 5.6, else PIC objects from an old
12375     # archive will be linked into the output, leading to subtle bugs.
12376     if test "$solaris_use_stlport4" != yes; then
12377       postdeps_CXX='-library=Cstd -library=Crun'
12378     fi
12379     ;;
12380   esac
12381   ;;
12382 esac
12383
12384 case " $postdeps_CXX " in
12385 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12386 esac
12387
12388 lt_prog_compiler_wl_CXX=
12389 lt_prog_compiler_pic_CXX=
12390 lt_prog_compiler_static_CXX=
12391
12392 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12393 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12394
12395   # C++ specific cases for pic, static, wl, etc.
12396   if test "$GXX" = yes; then
12397     lt_prog_compiler_wl_CXX='-Wl,'
12398     lt_prog_compiler_static_CXX='-static'
12399
12400     case $host_os in
12401     aix*)
12402       # All AIX code is PIC.
12403       if test "$host_cpu" = ia64; then
12404         # AIX 5 now supports IA64 processor
12405         lt_prog_compiler_static_CXX='-Bstatic'
12406       fi
12407       ;;
12408     amigaos*)
12409       # FIXME: we need at least 68020 code to build shared libraries, but
12410       # adding the `-m68020' flag to GCC prevents building anything better,
12411       # like `-m68040'.
12412       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12413       ;;
12414     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12415       # PIC is the default for these OSes.
12416       ;;
12417     mingw* | cygwin* | os2* | pw32*)
12418       # This hack is so that the source file can tell whether it is being
12419       # built for inclusion in a dll (and should export symbols for example).
12420       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12421       # (--disable-auto-import) libraries
12422       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12423       ;;
12424     darwin* | rhapsody*)
12425       # PIC is the default on this platform
12426       # Common symbols not allowed in MH_DYLIB files
12427       lt_prog_compiler_pic_CXX='-fno-common'
12428       ;;
12429     *djgpp*)
12430       # DJGPP does not support shared libraries at all
12431       lt_prog_compiler_pic_CXX=
12432       ;;
12433     interix[3-9]*)
12434       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12435       # Instead, we relocate shared libraries at runtime.
12436       ;;
12437     sysv4*MP*)
12438       if test -d /usr/nec; then
12439         lt_prog_compiler_pic_CXX=-Kconform_pic
12440       fi
12441       ;;
12442     hpux*)
12443       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12444       # not for PA HP-UX.
12445       case $host_cpu in
12446       hppa*64*|ia64*)
12447         ;;
12448       *)
12449         lt_prog_compiler_pic_CXX='-fPIC'
12450         ;;
12451       esac
12452       ;;
12453     *)
12454       lt_prog_compiler_pic_CXX='-fPIC'
12455       ;;
12456     esac
12457   else
12458     case $host_os in
12459       aix[4-9]*)
12460         # All AIX code is PIC.
12461         if test "$host_cpu" = ia64; then
12462           # AIX 5 now supports IA64 processor
12463           lt_prog_compiler_static_CXX='-Bstatic'
12464         else
12465           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12466         fi
12467         ;;
12468       chorus*)
12469         case $cc_basename in
12470         cxch68*)
12471           # Green Hills C++ Compiler
12472           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12473           ;;
12474         esac
12475         ;;
12476        darwin*)
12477          # PIC is the default on this platform
12478          # Common symbols not allowed in MH_DYLIB files
12479          case $cc_basename in
12480            xlc*)
12481            lt_prog_compiler_pic_CXX='-qnocommon'
12482            lt_prog_compiler_wl_CXX='-Wl,'
12483            ;;
12484          esac
12485        ;;
12486       dgux*)
12487         case $cc_basename in
12488           ec++*)
12489             lt_prog_compiler_pic_CXX='-KPIC'
12490             ;;
12491           ghcx*)
12492             # Green Hills C++ Compiler
12493             lt_prog_compiler_pic_CXX='-pic'
12494             ;;
12495           *)
12496             ;;
12497         esac
12498         ;;
12499       freebsd* | dragonfly*)
12500         # FreeBSD uses GNU C++
12501         ;;
12502       hpux9* | hpux10* | hpux11*)
12503         case $cc_basename in
12504           CC*)
12505             lt_prog_compiler_wl_CXX='-Wl,'
12506             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12507             if test "$host_cpu" != ia64; then
12508               lt_prog_compiler_pic_CXX='+Z'
12509             fi
12510             ;;
12511           aCC*)
12512             lt_prog_compiler_wl_CXX='-Wl,'
12513             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12514             case $host_cpu in
12515             hppa*64*|ia64*)
12516               # +Z the default
12517               ;;
12518             *)
12519               lt_prog_compiler_pic_CXX='+Z'
12520               ;;
12521             esac
12522             ;;
12523           *)
12524             ;;
12525         esac
12526         ;;
12527       interix*)
12528         # This is c89, which is MS Visual C++ (no shared libs)
12529         # Anyone wants to do a port?
12530         ;;
12531       irix5* | irix6* | nonstopux*)
12532         case $cc_basename in
12533           CC*)
12534             lt_prog_compiler_wl_CXX='-Wl,'
12535             lt_prog_compiler_static_CXX='-non_shared'
12536             # CC pic flag -KPIC is the default.
12537             ;;
12538           *)
12539             ;;
12540         esac
12541         ;;
12542       linux* | k*bsd*-gnu)
12543         case $cc_basename in
12544           KCC*)
12545             # KAI C++ Compiler
12546             lt_prog_compiler_wl_CXX='--backend -Wl,'
12547             lt_prog_compiler_pic_CXX='-fPIC'
12548             ;;
12549           icpc* | ecpc*)
12550             # Intel C++
12551             lt_prog_compiler_wl_CXX='-Wl,'
12552             lt_prog_compiler_pic_CXX='-KPIC'
12553             lt_prog_compiler_static_CXX='-static'
12554             ;;
12555           pgCC* | pgcpp*)
12556             # Portland Group C++ compiler.
12557             lt_prog_compiler_wl_CXX='-Wl,'
12558             lt_prog_compiler_pic_CXX='-fpic'
12559             lt_prog_compiler_static_CXX='-Bstatic'
12560             ;;
12561           cxx*)
12562             # Compaq C++
12563             # Make sure the PIC flag is empty.  It appears that all Alpha
12564             # Linux and Compaq Tru64 Unix objects are PIC.
12565             lt_prog_compiler_pic_CXX=
12566             lt_prog_compiler_static_CXX='-non_shared'
12567             ;;
12568           *)
12569             case `$CC -V 2>&1 | sed 5q` in
12570             *Sun\ C*)
12571               # Sun C++ 5.9
12572               lt_prog_compiler_pic_CXX='-KPIC'
12573               lt_prog_compiler_static_CXX='-Bstatic'
12574               lt_prog_compiler_wl_CXX='-Qoption ld '
12575               ;;
12576             esac
12577             ;;
12578         esac
12579         ;;
12580       lynxos*)
12581         ;;
12582       m88k*)
12583         ;;
12584       mvs*)
12585         case $cc_basename in
12586           cxx*)
12587             lt_prog_compiler_pic_CXX='-W c,exportall'
12588             ;;
12589           *)
12590             ;;
12591         esac
12592         ;;
12593       netbsd* | netbsdelf*-gnu)
12594         ;;
12595       osf3* | osf4* | osf5*)
12596         case $cc_basename in
12597           KCC*)
12598             lt_prog_compiler_wl_CXX='--backend -Wl,'
12599             ;;
12600           RCC*)
12601             # Rational C++ 2.4.1
12602             lt_prog_compiler_pic_CXX='-pic'
12603             ;;
12604           cxx*)
12605             # Digital/Compaq C++
12606             lt_prog_compiler_wl_CXX='-Wl,'
12607             # Make sure the PIC flag is empty.  It appears that all Alpha
12608             # Linux and Compaq Tru64 Unix objects are PIC.
12609             lt_prog_compiler_pic_CXX=
12610             lt_prog_compiler_static_CXX='-non_shared'
12611             ;;
12612           *)
12613             ;;
12614         esac
12615         ;;
12616       psos*)
12617         ;;
12618       solaris*)
12619         case $cc_basename in
12620           CC*)
12621             # Sun C++ 4.2, 5.x and Centerline C++
12622             lt_prog_compiler_pic_CXX='-KPIC'
12623             lt_prog_compiler_static_CXX='-Bstatic'
12624             lt_prog_compiler_wl_CXX='-Qoption ld '
12625             ;;
12626           gcx*)
12627             # Green Hills C++ Compiler
12628             lt_prog_compiler_pic_CXX='-PIC'
12629             ;;
12630           *)
12631             ;;
12632         esac
12633         ;;
12634       sunos4*)
12635         case $cc_basename in
12636           CC*)
12637             # Sun C++ 4.x
12638             lt_prog_compiler_pic_CXX='-pic'
12639             lt_prog_compiler_static_CXX='-Bstatic'
12640             ;;
12641           lcc*)
12642             # Lucid
12643             lt_prog_compiler_pic_CXX='-pic'
12644             ;;
12645           *)
12646             ;;
12647         esac
12648         ;;
12649       tandem*)
12650         case $cc_basename in
12651           NCC*)
12652             # NonStop-UX NCC 3.20
12653             lt_prog_compiler_pic_CXX='-KPIC'
12654             ;;
12655           *)
12656             ;;
12657         esac
12658         ;;
12659       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12660         case $cc_basename in
12661           CC*)
12662             lt_prog_compiler_wl_CXX='-Wl,'
12663             lt_prog_compiler_pic_CXX='-KPIC'
12664             lt_prog_compiler_static_CXX='-Bstatic'
12665             ;;
12666         esac
12667         ;;
12668       vxworks*)
12669         ;;
12670       *)
12671         lt_prog_compiler_can_build_shared_CXX=no
12672         ;;
12673     esac
12674   fi
12675
12676 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12677 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12678
12679 #
12680 # Check to make sure the PIC flag actually works.
12681 #
12682 if test -n "$lt_prog_compiler_pic_CXX"; then
12683
12684 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12686 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12687   echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689   lt_cv_prog_compiler_pic_works_CXX=no
12690   ac_outfile=conftest.$ac_objext
12691    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12692    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12693    # Insert the option either (1) after the last *FLAGS variable, or
12694    # (2) before a word containing "conftest.", or (3) at the end.
12695    # Note that $ac_compile itself does not contain backslashes and begins
12696    # with a dollar sign (not a hyphen), so the echo should work correctly.
12697    # The option is referenced via a variable to avoid confusing sed.
12698    lt_compile=`echo "$ac_compile" | $SED \
12699    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12701    -e 's:$: $lt_compiler_flag:'`
12702    (eval echo "\"\$as_me:12702: $lt_compile\"" >&5)
12703    (eval "$lt_compile" 2>conftest.err)
12704    ac_status=$?
12705    cat conftest.err >&5
12706    echo "$as_me:12706: \$? = $ac_status" >&5
12707    if (exit $ac_status) && test -s "$ac_outfile"; then
12708      # The compiler can only warn and ignore the option if not recognized
12709      # So say no if there are warnings other than the usual output.
12710      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12711      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12712      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12713        lt_cv_prog_compiler_pic_works_CXX=yes
12714      fi
12715    fi
12716    $rm conftest*
12717
12718 fi
12719 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12720 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12721
12722 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12723     case $lt_prog_compiler_pic_CXX in
12724      "" | " "*) ;;
12725      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12726      esac
12727 else
12728     lt_prog_compiler_pic_CXX=
12729      lt_prog_compiler_can_build_shared_CXX=no
12730 fi
12731
12732 fi
12733 case $host_os in
12734   # For platforms which do not support PIC, -DPIC is meaningless:
12735   *djgpp*)
12736     lt_prog_compiler_pic_CXX=
12737     ;;
12738   *)
12739     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12740     ;;
12741 esac
12742
12743 #
12744 # Check to make sure the static flag actually works.
12745 #
12746 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12747 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12748 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12749 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12750   echo $ECHO_N "(cached) $ECHO_C" >&6
12751 else
12752   lt_cv_prog_compiler_static_works_CXX=no
12753    save_LDFLAGS="$LDFLAGS"
12754    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12755    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12756    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12757      # The linker can only warn and ignore the option if not recognized
12758      # So say no if there are warnings
12759      if test -s conftest.err; then
12760        # Append any errors to the config.log.
12761        cat conftest.err 1>&5
12762        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12763        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12764        if diff conftest.exp conftest.er2 >/dev/null; then
12765          lt_cv_prog_compiler_static_works_CXX=yes
12766        fi
12767      else
12768        lt_cv_prog_compiler_static_works_CXX=yes
12769      fi
12770    fi
12771    $rm -r conftest*
12772    LDFLAGS="$save_LDFLAGS"
12773
12774 fi
12775 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12776 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12777
12778 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12779     :
12780 else
12781     lt_prog_compiler_static_CXX=
12782 fi
12783
12784
12785 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12786 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12787 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12788   echo $ECHO_N "(cached) $ECHO_C" >&6
12789 else
12790   lt_cv_prog_compiler_c_o_CXX=no
12791    $rm -r conftest 2>/dev/null
12792    mkdir conftest
12793    cd conftest
12794    mkdir out
12795    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12796
12797    lt_compiler_flag="-o out/conftest2.$ac_objext"
12798    # Insert the option either (1) after the last *FLAGS variable, or
12799    # (2) before a word containing "conftest.", or (3) at the end.
12800    # Note that $ac_compile itself does not contain backslashes and begins
12801    # with a dollar sign (not a hyphen), so the echo should work correctly.
12802    lt_compile=`echo "$ac_compile" | $SED \
12803    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12804    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12805    -e 's:$: $lt_compiler_flag:'`
12806    (eval echo "\"\$as_me:12806: $lt_compile\"" >&5)
12807    (eval "$lt_compile" 2>out/conftest.err)
12808    ac_status=$?
12809    cat out/conftest.err >&5
12810    echo "$as_me:12810: \$? = $ac_status" >&5
12811    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12812    then
12813      # The compiler can only warn and ignore the option if not recognized
12814      # So say no if there are warnings
12815      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12816      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12817      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12818        lt_cv_prog_compiler_c_o_CXX=yes
12819      fi
12820    fi
12821    chmod u+w . 2>&5
12822    $rm conftest*
12823    # SGI C++ compiler will create directory out/ii_files/ for
12824    # template instantiation
12825    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12826    $rm out/* && rmdir out
12827    cd ..
12828    rmdir conftest
12829    $rm conftest*
12830
12831 fi
12832 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12833 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12834
12835
12836 hard_links="nottested"
12837 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12838   # do not overwrite the value of need_locks provided by the user
12839   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12840 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12841   hard_links=yes
12842   $rm conftest*
12843   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12844   touch conftest.a
12845   ln conftest.a conftest.b 2>&5 || hard_links=no
12846   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12847   { echo "$as_me:$LINENO: result: $hard_links" >&5
12848 echo "${ECHO_T}$hard_links" >&6; }
12849   if test "$hard_links" = no; then
12850     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12851 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12852     need_locks=warn
12853   fi
12854 else
12855   need_locks=no
12856 fi
12857
12858 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12859 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12860
12861   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12862   case $host_os in
12863   aix[4-9]*)
12864     # If we're using GNU nm, then we don't want the "-C" option.
12865     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12866     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12867       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12868     else
12869       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'
12870     fi
12871     ;;
12872   pw32*)
12873     export_symbols_cmds_CXX="$ltdll_cmds"
12874   ;;
12875   cygwin* | mingw*)
12876     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'
12877   ;;
12878   linux* | k*bsd*-gnu)
12879     link_all_deplibs_CXX=no
12880   ;;
12881   *)
12882     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12883   ;;
12884   esac
12885   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12886
12887 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12888 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12889 test "$ld_shlibs_CXX" = no && can_build_shared=no
12890
12891 #
12892 # Do we need to explicitly link libc?
12893 #
12894 case "x$archive_cmds_need_lc_CXX" in
12895 x|xyes)
12896   # Assume -lc should be added
12897   archive_cmds_need_lc_CXX=yes
12898
12899   if test "$enable_shared" = yes && test "$GCC" = yes; then
12900     case $archive_cmds_CXX in
12901     *'~'*)
12902       # FIXME: we may have to deal with multi-command sequences.
12903       ;;
12904     '$CC '*)
12905       # Test whether the compiler implicitly links with -lc since on some
12906       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12907       # to ld, don't add -lc before -lgcc.
12908       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12909 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12910       $rm conftest*
12911       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12912
12913       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914   (eval $ac_compile) 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); } 2>conftest.err; then
12918         soname=conftest
12919         lib=conftest
12920         libobjs=conftest.$ac_objext
12921         deplibs=
12922         wl=$lt_prog_compiler_wl_CXX
12923         pic_flag=$lt_prog_compiler_pic_CXX
12924         compiler_flags=-v
12925         linker_flags=-v
12926         verstring=
12927         output_objdir=.
12928         libname=conftest
12929         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12930         allow_undefined_flag_CXX=
12931         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12932   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); }
12936         then
12937           archive_cmds_need_lc_CXX=no
12938         else
12939           archive_cmds_need_lc_CXX=yes
12940         fi
12941         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12942       else
12943         cat conftest.err 1>&5
12944       fi
12945       $rm conftest*
12946       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12947 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12948       ;;
12949     esac
12950   fi
12951   ;;
12952 esac
12953
12954 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12955 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12956 library_names_spec=
12957 libname_spec='lib$name'
12958 soname_spec=
12959 shrext_cmds=".so"
12960 postinstall_cmds=
12961 postuninstall_cmds=
12962 finish_cmds=
12963 finish_eval=
12964 shlibpath_var=
12965 shlibpath_overrides_runpath=unknown
12966 version_type=none
12967 dynamic_linker="$host_os ld.so"
12968 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12969
12970 need_lib_prefix=unknown
12971 hardcode_into_libs=no
12972
12973 # when you set need_version to no, make sure it does not cause -set_version
12974 # flags to be left without arguments
12975 need_version=unknown
12976
12977 case $host_os in
12978 aix3*)
12979   version_type=linux
12980   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12981   shlibpath_var=LIBPATH
12982
12983   # AIX 3 has no versioning support, so we append a major version to the name.
12984   soname_spec='${libname}${release}${shared_ext}$major'
12985   ;;
12986
12987 aix[4-9]*)
12988   version_type=linux
12989   need_lib_prefix=no
12990   need_version=no
12991   hardcode_into_libs=yes
12992   if test "$host_cpu" = ia64; then
12993     # AIX 5 supports IA64
12994     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12995     shlibpath_var=LD_LIBRARY_PATH
12996   else
12997     # With GCC up to 2.95.x, collect2 would create an import file
12998     # for dependence libraries.  The import file would start with
12999     # the line `#! .'.  This would cause the generated library to
13000     # depend on `.', always an invalid library.  This was fixed in
13001     # development snapshots of GCC prior to 3.0.
13002     case $host_os in
13003       aix4 | aix4.[01] | aix4.[01].*)
13004       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13005            echo ' yes '
13006            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13007         :
13008       else
13009         can_build_shared=no
13010       fi
13011       ;;
13012     esac
13013     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13014     # soname into executable. Probably we can add versioning support to
13015     # collect2, so additional links can be useful in future.
13016     if test "$aix_use_runtimelinking" = yes; then
13017       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13018       # instead of lib<name>.a to let people know that these are not
13019       # typical AIX shared libraries.
13020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13021     else
13022       # We preserve .a as extension for shared libraries through AIX4.2
13023       # and later when we are not doing run time linking.
13024       library_names_spec='${libname}${release}.a $libname.a'
13025       soname_spec='${libname}${release}${shared_ext}$major'
13026     fi
13027     shlibpath_var=LIBPATH
13028   fi
13029   ;;
13030
13031 amigaos*)
13032   library_names_spec='$libname.ixlibrary $libname.a'
13033   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13034   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13035   ;;
13036
13037 beos*)
13038   library_names_spec='${libname}${shared_ext}'
13039   dynamic_linker="$host_os ld.so"
13040   shlibpath_var=LIBRARY_PATH
13041   ;;
13042
13043 bsdi[45]*)
13044   version_type=linux
13045   need_version=no
13046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047   soname_spec='${libname}${release}${shared_ext}$major'
13048   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13049   shlibpath_var=LD_LIBRARY_PATH
13050   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13051   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13052   # the default ld.so.conf also contains /usr/contrib/lib and
13053   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13054   # libtool to hard-code these into programs
13055   ;;
13056
13057 cygwin* | mingw* | pw32*)
13058   version_type=windows
13059   shrext_cmds=".dll"
13060   need_version=no
13061   need_lib_prefix=no
13062
13063   case $GCC,$host_os in
13064   yes,cygwin* | yes,mingw* | yes,pw32*)
13065     library_names_spec='$libname.dll.a'
13066     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13067     postinstall_cmds='base_file=`basename \${file}`~
13068       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13069       dldir=$destdir/`dirname \$dlpath`~
13070       test -d \$dldir || mkdir -p \$dldir~
13071       $install_prog $dir/$dlname \$dldir/$dlname~
13072       chmod a+x \$dldir/$dlname'
13073     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13074       dlpath=$dir/\$dldll~
13075        $rm \$dlpath'
13076     shlibpath_overrides_runpath=yes
13077
13078     case $host_os in
13079     cygwin*)
13080       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13081       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13082       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13083       ;;
13084     mingw*)
13085       # MinGW DLLs use traditional 'lib' prefix
13086       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13087       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13088       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13089         # It is most probably a Windows format PATH printed by
13090         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13091         # path with ; separators, and with drive letters. We can handle the
13092         # drive letters (cygwin fileutils understands them), so leave them,
13093         # especially as we might pass files found there to a mingw objdump,
13094         # which wouldn't understand a cygwinified path. Ahh.
13095         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13096       else
13097         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13098       fi
13099       ;;
13100     pw32*)
13101       # pw32 DLLs use 'pw' prefix rather than 'lib'
13102       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13103       ;;
13104     esac
13105     ;;
13106
13107   *)
13108     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13109     ;;
13110   esac
13111   dynamic_linker='Win32 ld.exe'
13112   # FIXME: first we should search . and the directory the executable is in
13113   shlibpath_var=PATH
13114   ;;
13115
13116 darwin* | rhapsody*)
13117   dynamic_linker="$host_os dyld"
13118   version_type=darwin
13119   need_lib_prefix=no
13120   need_version=no
13121   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13122   soname_spec='${libname}${release}${major}$shared_ext'
13123   shlibpath_overrides_runpath=yes
13124   shlibpath_var=DYLD_LIBRARY_PATH
13125   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13126
13127   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13128   ;;
13129
13130 dgux*)
13131   version_type=linux
13132   need_lib_prefix=no
13133   need_version=no
13134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13135   soname_spec='${libname}${release}${shared_ext}$major'
13136   shlibpath_var=LD_LIBRARY_PATH
13137   ;;
13138
13139 freebsd1*)
13140   dynamic_linker=no
13141   ;;
13142
13143 freebsd* | dragonfly*)
13144   # DragonFly does not have aout.  When/if they implement a new
13145   # versioning mechanism, adjust this.
13146   if test -x /usr/bin/objformat; then
13147     objformat=`/usr/bin/objformat`
13148   else
13149     case $host_os in
13150     freebsd[123]*) objformat=aout ;;
13151     *) objformat=elf ;;
13152     esac
13153   fi
13154   version_type=freebsd-$objformat
13155   case $version_type in
13156     freebsd-elf*)
13157       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13158       need_version=no
13159       need_lib_prefix=no
13160       ;;
13161     freebsd-*)
13162       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13163       need_version=yes
13164       ;;
13165   esac
13166   shlibpath_var=LD_LIBRARY_PATH
13167   case $host_os in
13168   freebsd2*)
13169     shlibpath_overrides_runpath=yes
13170     ;;
13171   freebsd3.[01]* | freebsdelf3.[01]*)
13172     shlibpath_overrides_runpath=yes
13173     hardcode_into_libs=yes
13174     ;;
13175   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13176   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13177     shlibpath_overrides_runpath=no
13178     hardcode_into_libs=yes
13179     ;;
13180   *) # from 4.6 on, and DragonFly
13181     shlibpath_overrides_runpath=yes
13182     hardcode_into_libs=yes
13183     ;;
13184   esac
13185   ;;
13186
13187 gnu*)
13188   version_type=linux
13189   need_lib_prefix=no
13190   need_version=no
13191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13192   soname_spec='${libname}${release}${shared_ext}$major'
13193   shlibpath_var=LD_LIBRARY_PATH
13194   hardcode_into_libs=yes
13195   ;;
13196
13197 hpux9* | hpux10* | hpux11*)
13198   # Give a soname corresponding to the major version so that dld.sl refuses to
13199   # link against other versions.
13200   version_type=sunos
13201   need_lib_prefix=no
13202   need_version=no
13203   case $host_cpu in
13204   ia64*)
13205     shrext_cmds='.so'
13206     hardcode_into_libs=yes
13207     dynamic_linker="$host_os dld.so"
13208     shlibpath_var=LD_LIBRARY_PATH
13209     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13211     soname_spec='${libname}${release}${shared_ext}$major'
13212     if test "X$HPUX_IA64_MODE" = X32; then
13213       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13214     else
13215       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13216     fi
13217     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13218     ;;
13219    hppa*64*)
13220      shrext_cmds='.sl'
13221      hardcode_into_libs=yes
13222      dynamic_linker="$host_os dld.sl"
13223      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13224      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13225      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226      soname_spec='${libname}${release}${shared_ext}$major'
13227      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13228      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13229      ;;
13230    *)
13231     shrext_cmds='.sl'
13232     dynamic_linker="$host_os dld.sl"
13233     shlibpath_var=SHLIB_PATH
13234     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13236     soname_spec='${libname}${release}${shared_ext}$major'
13237     ;;
13238   esac
13239   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13240   postinstall_cmds='chmod 555 $lib'
13241   ;;
13242
13243 interix[3-9]*)
13244   version_type=linux
13245   need_lib_prefix=no
13246   need_version=no
13247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13248   soname_spec='${libname}${release}${shared_ext}$major'
13249   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13250   shlibpath_var=LD_LIBRARY_PATH
13251   shlibpath_overrides_runpath=no
13252   hardcode_into_libs=yes
13253   ;;
13254
13255 irix5* | irix6* | nonstopux*)
13256   case $host_os in
13257     nonstopux*) version_type=nonstopux ;;
13258     *)
13259         if test "$lt_cv_prog_gnu_ld" = yes; then
13260                 version_type=linux
13261         else
13262                 version_type=irix
13263         fi ;;
13264   esac
13265   need_lib_prefix=no
13266   need_version=no
13267   soname_spec='${libname}${release}${shared_ext}$major'
13268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13269   case $host_os in
13270   irix5* | nonstopux*)
13271     libsuff= shlibsuff=
13272     ;;
13273   *)
13274     case $LD in # libtool.m4 will add one of these switches to LD
13275     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13276       libsuff= shlibsuff= libmagic=32-bit;;
13277     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13278       libsuff=32 shlibsuff=N32 libmagic=N32;;
13279     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13280       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13281     *) libsuff= shlibsuff= libmagic=never-match;;
13282     esac
13283     ;;
13284   esac
13285   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13286   shlibpath_overrides_runpath=no
13287   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13288   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13289   hardcode_into_libs=yes
13290   ;;
13291
13292 # No shared lib support for Linux oldld, aout, or coff.
13293 linux*oldld* | linux*aout* | linux*coff*)
13294   dynamic_linker=no
13295   ;;
13296
13297 # This must be Linux ELF.
13298 linux* | k*bsd*-gnu)
13299   version_type=linux
13300   need_lib_prefix=no
13301   need_version=no
13302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13303   soname_spec='${libname}${release}${shared_ext}$major'
13304   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13305   shlibpath_var=LD_LIBRARY_PATH
13306   shlibpath_overrides_runpath=no
13307   # This implies no fast_install, which is unacceptable.
13308   # Some rework will be needed to allow for fast_install
13309   # before this can be enabled.
13310   hardcode_into_libs=yes
13311
13312   # Append ld.so.conf contents to the search path
13313   if test -f /etc/ld.so.conf; then
13314     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13315     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13316   fi
13317
13318   # We used to test for /lib/ld.so.1 and disable shared libraries on
13319   # powerpc, because MkLinux only supported shared libraries with the
13320   # GNU dynamic linker.  Since this was broken with cross compilers,
13321   # most powerpc-linux boxes support dynamic linking these days and
13322   # people can always --disable-shared, the test was removed, and we
13323   # assume the GNU/Linux dynamic linker is in use.
13324   dynamic_linker='GNU/Linux ld.so'
13325   ;;
13326
13327 netbsdelf*-gnu)
13328   version_type=linux
13329   need_lib_prefix=no
13330   need_version=no
13331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13332   soname_spec='${libname}${release}${shared_ext}$major'
13333   shlibpath_var=LD_LIBRARY_PATH
13334   shlibpath_overrides_runpath=no
13335   hardcode_into_libs=yes
13336   dynamic_linker='NetBSD ld.elf_so'
13337   ;;
13338
13339 netbsd*)
13340   version_type=sunos
13341   need_lib_prefix=no
13342   need_version=no
13343   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13344     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13345     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13346     dynamic_linker='NetBSD (a.out) ld.so'
13347   else
13348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13349     soname_spec='${libname}${release}${shared_ext}$major'
13350     dynamic_linker='NetBSD ld.elf_so'
13351   fi
13352   shlibpath_var=LD_LIBRARY_PATH
13353   shlibpath_overrides_runpath=yes
13354   hardcode_into_libs=yes
13355   ;;
13356
13357 newsos6)
13358   version_type=linux
13359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13360   shlibpath_var=LD_LIBRARY_PATH
13361   shlibpath_overrides_runpath=yes
13362   ;;
13363
13364 nto-qnx*)
13365   version_type=linux
13366   need_lib_prefix=no
13367   need_version=no
13368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369   soname_spec='${libname}${release}${shared_ext}$major'
13370   shlibpath_var=LD_LIBRARY_PATH
13371   shlibpath_overrides_runpath=yes
13372   ;;
13373
13374 openbsd*)
13375   version_type=sunos
13376   sys_lib_dlsearch_path_spec="/usr/lib"
13377   need_lib_prefix=no
13378   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13379   case $host_os in
13380     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13381     *)                         need_version=no  ;;
13382   esac
13383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13384   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13385   shlibpath_var=LD_LIBRARY_PATH
13386   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13387     case $host_os in
13388       openbsd2.[89] | openbsd2.[89].*)
13389         shlibpath_overrides_runpath=no
13390         ;;
13391       *)
13392         shlibpath_overrides_runpath=yes
13393         ;;
13394       esac
13395   else
13396     shlibpath_overrides_runpath=yes
13397   fi
13398   ;;
13399
13400 os2*)
13401   libname_spec='$name'
13402   shrext_cmds=".dll"
13403   need_lib_prefix=no
13404   library_names_spec='$libname${shared_ext} $libname.a'
13405   dynamic_linker='OS/2 ld.exe'
13406   shlibpath_var=LIBPATH
13407   ;;
13408
13409 osf3* | osf4* | osf5*)
13410   version_type=osf
13411   need_lib_prefix=no
13412   need_version=no
13413   soname_spec='${libname}${release}${shared_ext}$major'
13414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13415   shlibpath_var=LD_LIBRARY_PATH
13416   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13417   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13418   ;;
13419
13420 rdos*)
13421   dynamic_linker=no
13422   ;;
13423
13424 solaris*)
13425   version_type=linux
13426   need_lib_prefix=no
13427   need_version=no
13428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429   soname_spec='${libname}${release}${shared_ext}$major'
13430   shlibpath_var=LD_LIBRARY_PATH
13431   shlibpath_overrides_runpath=yes
13432   hardcode_into_libs=yes
13433   # ldd complains unless libraries are executable
13434   postinstall_cmds='chmod +x $lib'
13435   ;;
13436
13437 sunos4*)
13438   version_type=sunos
13439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13440   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13441   shlibpath_var=LD_LIBRARY_PATH
13442   shlibpath_overrides_runpath=yes
13443   if test "$with_gnu_ld" = yes; then
13444     need_lib_prefix=no
13445   fi
13446   need_version=yes
13447   ;;
13448
13449 sysv4 | sysv4.3*)
13450   version_type=linux
13451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13452   soname_spec='${libname}${release}${shared_ext}$major'
13453   shlibpath_var=LD_LIBRARY_PATH
13454   case $host_vendor in
13455     sni)
13456       shlibpath_overrides_runpath=no
13457       need_lib_prefix=no
13458       export_dynamic_flag_spec='${wl}-Blargedynsym'
13459       runpath_var=LD_RUN_PATH
13460       ;;
13461     siemens)
13462       need_lib_prefix=no
13463       ;;
13464     motorola)
13465       need_lib_prefix=no
13466       need_version=no
13467       shlibpath_overrides_runpath=no
13468       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13469       ;;
13470   esac
13471   ;;
13472
13473 sysv4*MP*)
13474   if test -d /usr/nec ;then
13475     version_type=linux
13476     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13477     soname_spec='$libname${shared_ext}.$major'
13478     shlibpath_var=LD_LIBRARY_PATH
13479   fi
13480   ;;
13481
13482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13483   version_type=freebsd-elf
13484   need_lib_prefix=no
13485   need_version=no
13486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13487   soname_spec='${libname}${release}${shared_ext}$major'
13488   shlibpath_var=LD_LIBRARY_PATH
13489   hardcode_into_libs=yes
13490   if test "$with_gnu_ld" = yes; then
13491     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13492     shlibpath_overrides_runpath=no
13493   else
13494     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13495     shlibpath_overrides_runpath=yes
13496     case $host_os in
13497       sco3.2v5*)
13498         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13499         ;;
13500     esac
13501   fi
13502   sys_lib_dlsearch_path_spec='/usr/lib'
13503   ;;
13504
13505 uts4*)
13506   version_type=linux
13507   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508   soname_spec='${libname}${release}${shared_ext}$major'
13509   shlibpath_var=LD_LIBRARY_PATH
13510   ;;
13511
13512 *)
13513   dynamic_linker=no
13514   ;;
13515 esac
13516 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13517 echo "${ECHO_T}$dynamic_linker" >&6; }
13518 test "$dynamic_linker" = no && can_build_shared=no
13519
13520 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13524 fi
13525
13526 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13527 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13528   echo $ECHO_N "(cached) $ECHO_C" >&6
13529 else
13530   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13531 fi
13532
13533 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13534
13535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13536 if test "$GCC" = yes; then
13537   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13538 fi
13539
13540 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13541 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13542 hardcode_action_CXX=
13543 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13544    test -n "$runpath_var_CXX" || \
13545    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13546
13547   # We can hardcode non-existant directories.
13548   if test "$hardcode_direct_CXX" != no &&
13549      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13550      # have to relink, otherwise we might link with an installed library
13551      # when we should be linking with a yet-to-be-installed one
13552      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13553      test "$hardcode_minus_L_CXX" != no; then
13554     # Linking always hardcodes the temporary library directory.
13555     hardcode_action_CXX=relink
13556   else
13557     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13558     hardcode_action_CXX=immediate
13559   fi
13560 else
13561   # We cannot hardcode anything, or else we can only hardcode existing
13562   # directories.
13563   hardcode_action_CXX=unsupported
13564 fi
13565 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13566 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13567
13568 if test "$hardcode_action_CXX" = relink; then
13569   # Fast installation is not supported
13570   enable_fast_install=no
13571 elif test "$shlibpath_overrides_runpath" = yes ||
13572      test "$enable_shared" = no; then
13573   # Fast installation is not necessary
13574   enable_fast_install=needless
13575 fi
13576
13577
13578 # The else clause should only fire when bootstrapping the
13579 # libtool distribution, otherwise you forgot to ship ltmain.sh
13580 # with your package, and you will get complaints that there are
13581 # no rules to generate ltmain.sh.
13582 if test -f "$ltmain"; then
13583   # See if we are running on zsh, and set the options which allow our commands through
13584   # without removal of \ escapes.
13585   if test -n "${ZSH_VERSION+set}" ; then
13586     setopt NO_GLOB_SUBST
13587   fi
13588   # Now quote all the things that may contain metacharacters while being
13589   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13590   # variables and quote the copies for generation of the libtool script.
13591   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13592     SED SHELL STRIP \
13593     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13594     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13595     deplibs_check_method reload_flag reload_cmds need_locks \
13596     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13597     lt_cv_sys_global_symbol_to_c_name_address \
13598     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13599     old_postinstall_cmds old_postuninstall_cmds \
13600     compiler_CXX \
13601     CC_CXX \
13602     LD_CXX \
13603     lt_prog_compiler_wl_CXX \
13604     lt_prog_compiler_pic_CXX \
13605     lt_prog_compiler_static_CXX \
13606     lt_prog_compiler_no_builtin_flag_CXX \
13607     export_dynamic_flag_spec_CXX \
13608     thread_safe_flag_spec_CXX \
13609     whole_archive_flag_spec_CXX \
13610     enable_shared_with_static_runtimes_CXX \
13611     old_archive_cmds_CXX \
13612     old_archive_from_new_cmds_CXX \
13613     predep_objects_CXX \
13614     postdep_objects_CXX \
13615     predeps_CXX \
13616     postdeps_CXX \
13617     compiler_lib_search_path_CXX \
13618     compiler_lib_search_dirs_CXX \
13619     archive_cmds_CXX \
13620     archive_expsym_cmds_CXX \
13621     postinstall_cmds_CXX \
13622     postuninstall_cmds_CXX \
13623     old_archive_from_expsyms_cmds_CXX \
13624     allow_undefined_flag_CXX \
13625     no_undefined_flag_CXX \
13626     export_symbols_cmds_CXX \
13627     hardcode_libdir_flag_spec_CXX \
13628     hardcode_libdir_flag_spec_ld_CXX \
13629     hardcode_libdir_separator_CXX \
13630     hardcode_automatic_CXX \
13631     module_cmds_CXX \
13632     module_expsym_cmds_CXX \
13633     lt_cv_prog_compiler_c_o_CXX \
13634     fix_srcfile_path_CXX \
13635     exclude_expsyms_CXX \
13636     include_expsyms_CXX; do
13637
13638     case $var in
13639     old_archive_cmds_CXX | \
13640     old_archive_from_new_cmds_CXX | \
13641     archive_cmds_CXX | \
13642     archive_expsym_cmds_CXX | \
13643     module_cmds_CXX | \
13644     module_expsym_cmds_CXX | \
13645     old_archive_from_expsyms_cmds_CXX | \
13646     export_symbols_cmds_CXX | \
13647     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13648     postinstall_cmds | postuninstall_cmds | \
13649     old_postinstall_cmds | old_postuninstall_cmds | \
13650     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13651       # Double-quote double-evaled strings.
13652       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13653       ;;
13654     *)
13655       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13656       ;;
13657     esac
13658   done
13659
13660   case $lt_echo in
13661   *'\$0 --fallback-echo"')
13662     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13663     ;;
13664   esac
13665
13666 cfgfile="$ofile"
13667
13668   cat <<__EOF__ >> "$cfgfile"
13669 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13670
13671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13672
13673 # Shell to use when invoking shell scripts.
13674 SHELL=$lt_SHELL
13675
13676 # Whether or not to build shared libraries.
13677 build_libtool_libs=$enable_shared
13678
13679 # Whether or not to build static libraries.
13680 build_old_libs=$enable_static
13681
13682 # Whether or not to add -lc for building shared libraries.
13683 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13684
13685 # Whether or not to disallow shared libs when runtime libs are static
13686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13687
13688 # Whether or not to optimize for fast installation.
13689 fast_install=$enable_fast_install
13690
13691 # The host system.
13692 host_alias=$host_alias
13693 host=$host
13694 host_os=$host_os
13695
13696 # The build system.
13697 build_alias=$build_alias
13698 build=$build
13699 build_os=$build_os
13700
13701 # An echo program that does not interpret backslashes.
13702 echo=$lt_echo
13703
13704 # The archiver.
13705 AR=$lt_AR
13706 AR_FLAGS=$lt_AR_FLAGS
13707
13708 # A C compiler.
13709 LTCC=$lt_LTCC
13710
13711 # LTCC compiler flags.
13712 LTCFLAGS=$lt_LTCFLAGS
13713
13714 # A language-specific compiler.
13715 CC=$lt_compiler_CXX
13716
13717 # Is the compiler the GNU C compiler?
13718 with_gcc=$GCC_CXX
13719
13720 # An ERE matcher.
13721 EGREP=$lt_EGREP
13722
13723 # The linker used to build libraries.
13724 LD=$lt_LD_CXX
13725
13726 # Whether we need hard or soft links.
13727 LN_S=$lt_LN_S
13728
13729 # A BSD-compatible nm program.
13730 NM=$lt_NM
13731
13732 # A symbol stripping program
13733 STRIP=$lt_STRIP
13734
13735 # Used to examine libraries when file_magic_cmd begins "file"
13736 MAGIC_CMD=$MAGIC_CMD
13737
13738 # Used on cygwin: DLL creation program.
13739 DLLTOOL="$DLLTOOL"
13740
13741 # Used on cygwin: object dumper.
13742 OBJDUMP="$OBJDUMP"
13743
13744 # Used on cygwin: assembler.
13745 AS="$AS"
13746
13747 # The name of the directory that contains temporary libtool files.
13748 objdir=$objdir
13749
13750 # How to create reloadable object files.
13751 reload_flag=$lt_reload_flag
13752 reload_cmds=$lt_reload_cmds
13753
13754 # How to pass a linker flag through the compiler.
13755 wl=$lt_lt_prog_compiler_wl_CXX
13756
13757 # Object file suffix (normally "o").
13758 objext="$ac_objext"
13759
13760 # Old archive suffix (normally "a").
13761 libext="$libext"
13762
13763 # Shared library suffix (normally ".so").
13764 shrext_cmds='$shrext_cmds'
13765
13766 # Executable file suffix (normally "").
13767 exeext="$exeext"
13768
13769 # Additional compiler flags for building library objects.
13770 pic_flag=$lt_lt_prog_compiler_pic_CXX
13771 pic_mode=$pic_mode
13772
13773 # What is the maximum length of a command?
13774 max_cmd_len=$lt_cv_sys_max_cmd_len
13775
13776 # Does compiler simultaneously support -c and -o options?
13777 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13778
13779 # Must we lock files when doing compilation?
13780 need_locks=$lt_need_locks
13781
13782 # Do we need the lib prefix for modules?
13783 need_lib_prefix=$need_lib_prefix
13784
13785 # Do we need a version for libraries?
13786 need_version=$need_version
13787
13788 # Whether dlopen is supported.
13789 dlopen_support=$enable_dlopen
13790
13791 # Whether dlopen of programs is supported.
13792 dlopen_self=$enable_dlopen_self
13793
13794 # Whether dlopen of statically linked programs is supported.
13795 dlopen_self_static=$enable_dlopen_self_static
13796
13797 # Compiler flag to prevent dynamic linking.
13798 link_static_flag=$lt_lt_prog_compiler_static_CXX
13799
13800 # Compiler flag to turn off builtin functions.
13801 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13802
13803 # Compiler flag to allow reflexive dlopens.
13804 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13805
13806 # Compiler flag to generate shared objects directly from archives.
13807 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13808
13809 # Compiler flag to generate thread-safe objects.
13810 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13811
13812 # Library versioning type.
13813 version_type=$version_type
13814
13815 # Format of library name prefix.
13816 libname_spec=$lt_libname_spec
13817
13818 # List of archive names.  First name is the real one, the rest are links.
13819 # The last name is the one that the linker finds with -lNAME.
13820 library_names_spec=$lt_library_names_spec
13821
13822 # The coded name of the library, if different from the real name.
13823 soname_spec=$lt_soname_spec
13824
13825 # Commands used to build and install an old-style archive.
13826 RANLIB=$lt_RANLIB
13827 old_archive_cmds=$lt_old_archive_cmds_CXX
13828 old_postinstall_cmds=$lt_old_postinstall_cmds
13829 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13830
13831 # Create an old-style archive from a shared archive.
13832 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13833
13834 # Create a temporary old-style archive to link instead of a shared archive.
13835 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13836
13837 # Commands used to build and install a shared archive.
13838 archive_cmds=$lt_archive_cmds_CXX
13839 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13840 postinstall_cmds=$lt_postinstall_cmds
13841 postuninstall_cmds=$lt_postuninstall_cmds
13842
13843 # Commands used to build a loadable module (assumed same as above if empty)
13844 module_cmds=$lt_module_cmds_CXX
13845 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13846
13847 # Commands to strip libraries.
13848 old_striplib=$lt_old_striplib
13849 striplib=$lt_striplib
13850
13851 # Dependencies to place before the objects being linked to create a
13852 # shared library.
13853 predep_objects=$lt_predep_objects_CXX
13854
13855 # Dependencies to place after the objects being linked to create a
13856 # shared library.
13857 postdep_objects=$lt_postdep_objects_CXX
13858
13859 # Dependencies to place before the objects being linked to create a
13860 # shared library.
13861 predeps=$lt_predeps_CXX
13862
13863 # Dependencies to place after the objects being linked to create a
13864 # shared library.
13865 postdeps=$lt_postdeps_CXX
13866
13867 # The directories searched by this compiler when creating a shared
13868 # library
13869 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13870
13871 # The library search path used internally by the compiler when linking
13872 # a shared library.
13873 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13874
13875 # Method to check whether dependent libraries are shared objects.
13876 deplibs_check_method=$lt_deplibs_check_method
13877
13878 # Command to use when deplibs_check_method == file_magic.
13879 file_magic_cmd=$lt_file_magic_cmd
13880
13881 # Flag that allows shared libraries with undefined symbols to be built.
13882 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13883
13884 # Flag that forces no undefined symbols.
13885 no_undefined_flag=$lt_no_undefined_flag_CXX
13886
13887 # Commands used to finish a libtool library installation in a directory.
13888 finish_cmds=$lt_finish_cmds
13889
13890 # Same as above, but a single script fragment to be evaled but not shown.
13891 finish_eval=$lt_finish_eval
13892
13893 # Take the output of nm and produce a listing of raw symbols and C names.
13894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13895
13896 # Transform the output of nm in a proper C declaration
13897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13898
13899 # Transform the output of nm in a C name address pair
13900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13901
13902 # This is the shared library runtime path variable.
13903 runpath_var=$runpath_var
13904
13905 # This is the shared library path variable.
13906 shlibpath_var=$shlibpath_var
13907
13908 # Is shlibpath searched before the hard-coded library search path?
13909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13910
13911 # How to hardcode a shared library path into an executable.
13912 hardcode_action=$hardcode_action_CXX
13913
13914 # Whether we should hardcode library paths into libraries.
13915 hardcode_into_libs=$hardcode_into_libs
13916
13917 # Flag to hardcode \$libdir into a binary during linking.
13918 # This must work even if \$libdir does not exist.
13919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13920
13921 # If ld is used when linking, flag to hardcode \$libdir into
13922 # a binary during linking. This must work even if \$libdir does
13923 # not exist.
13924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13925
13926 # Whether we need a single -rpath flag with a separated argument.
13927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13928
13929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13930 # resulting binary.
13931 hardcode_direct=$hardcode_direct_CXX
13932
13933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13934 # resulting binary.
13935 hardcode_minus_L=$hardcode_minus_L_CXX
13936
13937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13938 # the resulting binary.
13939 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13940
13941 # Set to yes if building a shared library automatically hardcodes DIR into the library
13942 # and all subsequent libraries and executables linked against it.
13943 hardcode_automatic=$hardcode_automatic_CXX
13944
13945 # Variables whose values should be saved in libtool wrapper scripts and
13946 # restored at relink time.
13947 variables_saved_for_relink="$variables_saved_for_relink"
13948
13949 # Whether libtool must link a program against all its dependency libraries.
13950 link_all_deplibs=$link_all_deplibs_CXX
13951
13952 # Compile-time system search path for libraries
13953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13954
13955 # Run-time system search path for libraries
13956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13957
13958 # Fix the shell variable \$srcfile for the compiler.
13959 fix_srcfile_path=$lt_fix_srcfile_path
13960
13961 # Set to yes if exported symbols are required.
13962 always_export_symbols=$always_export_symbols_CXX
13963
13964 # The commands to list exported symbols.
13965 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13966
13967 # The commands to extract the exported symbol list from a shared archive.
13968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13969
13970 # Symbols that should not be listed in the preloaded symbols.
13971 exclude_expsyms=$lt_exclude_expsyms_CXX
13972
13973 # Symbols that must always be exported.
13974 include_expsyms=$lt_include_expsyms_CXX
13975
13976 # ### END LIBTOOL TAG CONFIG: $tagname
13977
13978 __EOF__
13979
13980
13981 else
13982   # If there is no Makefile yet, we rely on a make rule to execute
13983   # `config.status --recheck' to rerun these tests and create the
13984   # libtool script then.
13985   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13986   if test -f "$ltmain_in"; then
13987     test -f Makefile && make "$ltmain"
13988   fi
13989 fi
13990
13991
13992 ac_ext=c
13993 ac_cpp='$CPP $CPPFLAGS'
13994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13997
13998 CC=$lt_save_CC
13999 LDCXX=$LD
14000 LD=$lt_save_LD
14001 GCC=$lt_save_GCC
14002 with_gnu_ldcxx=$with_gnu_ld
14003 with_gnu_ld=$lt_save_with_gnu_ld
14004 lt_cv_path_LDCXX=$lt_cv_path_LD
14005 lt_cv_path_LD=$lt_save_path_LD
14006 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14007 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14008
14009         else
14010           tagname=""
14011         fi
14012         ;;
14013
14014       F77)
14015         if test -n "$F77" && test "X$F77" != "Xno"; then
14016
14017 ac_ext=f
14018 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14019 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14020 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14021
14022
14023 archive_cmds_need_lc_F77=no
14024 allow_undefined_flag_F77=
14025 always_export_symbols_F77=no
14026 archive_expsym_cmds_F77=
14027 export_dynamic_flag_spec_F77=
14028 hardcode_direct_F77=no
14029 hardcode_libdir_flag_spec_F77=
14030 hardcode_libdir_flag_spec_ld_F77=
14031 hardcode_libdir_separator_F77=
14032 hardcode_minus_L_F77=no
14033 hardcode_automatic_F77=no
14034 module_cmds_F77=
14035 module_expsym_cmds_F77=
14036 link_all_deplibs_F77=unknown
14037 old_archive_cmds_F77=$old_archive_cmds
14038 no_undefined_flag_F77=
14039 whole_archive_flag_spec_F77=
14040 enable_shared_with_static_runtimes_F77=no
14041
14042 # Source file extension for f77 test sources.
14043 ac_ext=f
14044
14045 # Object file extension for compiled f77 test sources.
14046 objext=o
14047 objext_F77=$objext
14048
14049 # Code to be used in simple compile tests
14050 lt_simple_compile_test_code="\
14051       subroutine t
14052       return
14053       end
14054 "
14055
14056 # Code to be used in simple link tests
14057 lt_simple_link_test_code="\
14058       program t
14059       end
14060 "
14061
14062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14063
14064 # If no C compiler was specified, use CC.
14065 LTCC=${LTCC-"$CC"}
14066
14067 # If no C compiler flags were specified, use CFLAGS.
14068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14069
14070 # Allow CC to be a program name with arguments.
14071 compiler=$CC
14072
14073
14074 # save warnings/boilerplate of simple test code
14075 ac_outfile=conftest.$ac_objext
14076 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14078 _lt_compiler_boilerplate=`cat conftest.err`
14079 $rm conftest*
14080
14081 ac_outfile=conftest.$ac_objext
14082 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14084 _lt_linker_boilerplate=`cat conftest.err`
14085 $rm -r conftest*
14086
14087
14088 # Allow CC to be a program name with arguments.
14089 lt_save_CC="$CC"
14090 CC=${F77-"f77"}
14091 compiler=$CC
14092 compiler_F77=$CC
14093 for cc_temp in $compiler""; do
14094   case $cc_temp in
14095     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14096     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14097     \-*) ;;
14098     *) break;;
14099   esac
14100 done
14101 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14102
14103
14104 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14105 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14106 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14107 echo "${ECHO_T}$can_build_shared" >&6; }
14108
14109 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14110 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14111 test "$can_build_shared" = "no" && enable_shared=no
14112
14113 # On AIX, shared libraries and static libraries use the same namespace, and
14114 # are all built from PIC.
14115 case $host_os in
14116 aix3*)
14117   test "$enable_shared" = yes && enable_static=no
14118   if test -n "$RANLIB"; then
14119     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14120     postinstall_cmds='$RANLIB $lib'
14121   fi
14122   ;;
14123 aix[4-9]*)
14124   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14125     test "$enable_shared" = yes && enable_static=no
14126   fi
14127   ;;
14128 esac
14129 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14130 echo "${ECHO_T}$enable_shared" >&6; }
14131
14132 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14133 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14134 # Make sure either enable_shared or enable_static is yes.
14135 test "$enable_shared" = yes || enable_static=yes
14136 { echo "$as_me:$LINENO: result: $enable_static" >&5
14137 echo "${ECHO_T}$enable_static" >&6; }
14138
14139 GCC_F77="$G77"
14140 LD_F77="$LD"
14141
14142 lt_prog_compiler_wl_F77=
14143 lt_prog_compiler_pic_F77=
14144 lt_prog_compiler_static_F77=
14145
14146 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14147 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14148
14149   if test "$GCC" = yes; then
14150     lt_prog_compiler_wl_F77='-Wl,'
14151     lt_prog_compiler_static_F77='-static'
14152
14153     case $host_os in
14154       aix*)
14155       # All AIX code is PIC.
14156       if test "$host_cpu" = ia64; then
14157         # AIX 5 now supports IA64 processor
14158         lt_prog_compiler_static_F77='-Bstatic'
14159       fi
14160       ;;
14161
14162     amigaos*)
14163       # FIXME: we need at least 68020 code to build shared libraries, but
14164       # adding the `-m68020' flag to GCC prevents building anything better,
14165       # like `-m68040'.
14166       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14167       ;;
14168
14169     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14170       # PIC is the default for these OSes.
14171       ;;
14172
14173     mingw* | cygwin* | pw32* | os2*)
14174       # This hack is so that the source file can tell whether it is being
14175       # built for inclusion in a dll (and should export symbols for example).
14176       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14177       # (--disable-auto-import) libraries
14178       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14179       ;;
14180
14181     darwin* | rhapsody*)
14182       # PIC is the default on this platform
14183       # Common symbols not allowed in MH_DYLIB files
14184       lt_prog_compiler_pic_F77='-fno-common'
14185       ;;
14186
14187     interix[3-9]*)
14188       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14189       # Instead, we relocate shared libraries at runtime.
14190       ;;
14191
14192     msdosdjgpp*)
14193       # Just because we use GCC doesn't mean we suddenly get shared libraries
14194       # on systems that don't support them.
14195       lt_prog_compiler_can_build_shared_F77=no
14196       enable_shared=no
14197       ;;
14198
14199     sysv4*MP*)
14200       if test -d /usr/nec; then
14201         lt_prog_compiler_pic_F77=-Kconform_pic
14202       fi
14203       ;;
14204
14205     hpux*)
14206       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14207       # not for PA HP-UX.
14208       case $host_cpu in
14209       hppa*64*|ia64*)
14210         # +Z the default
14211         ;;
14212       *)
14213         lt_prog_compiler_pic_F77='-fPIC'
14214         ;;
14215       esac
14216       ;;
14217
14218     *)
14219       lt_prog_compiler_pic_F77='-fPIC'
14220       ;;
14221     esac
14222   else
14223     # PORTME Check for flag to pass linker flags through the system compiler.
14224     case $host_os in
14225     aix*)
14226       lt_prog_compiler_wl_F77='-Wl,'
14227       if test "$host_cpu" = ia64; then
14228         # AIX 5 now supports IA64 processor
14229         lt_prog_compiler_static_F77='-Bstatic'
14230       else
14231         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14232       fi
14233       ;;
14234       darwin*)
14235         # PIC is the default on this platform
14236         # Common symbols not allowed in MH_DYLIB files
14237        case $cc_basename in
14238          xlc*)
14239          lt_prog_compiler_pic_F77='-qnocommon'
14240          lt_prog_compiler_wl_F77='-Wl,'
14241          ;;
14242        esac
14243        ;;
14244
14245     mingw* | cygwin* | pw32* | os2*)
14246       # This hack is so that the source file can tell whether it is being
14247       # built for inclusion in a dll (and should export symbols for example).
14248       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14249       ;;
14250
14251     hpux9* | hpux10* | hpux11*)
14252       lt_prog_compiler_wl_F77='-Wl,'
14253       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14254       # not for PA HP-UX.
14255       case $host_cpu in
14256       hppa*64*|ia64*)
14257         # +Z the default
14258         ;;
14259       *)
14260         lt_prog_compiler_pic_F77='+Z'
14261         ;;
14262       esac
14263       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14264       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14265       ;;
14266
14267     irix5* | irix6* | nonstopux*)
14268       lt_prog_compiler_wl_F77='-Wl,'
14269       # PIC (with -KPIC) is the default.
14270       lt_prog_compiler_static_F77='-non_shared'
14271       ;;
14272
14273     newsos6)
14274       lt_prog_compiler_pic_F77='-KPIC'
14275       lt_prog_compiler_static_F77='-Bstatic'
14276       ;;
14277
14278     linux* | k*bsd*-gnu)
14279       case $cc_basename in
14280       icc* | ecc*)
14281         lt_prog_compiler_wl_F77='-Wl,'
14282         lt_prog_compiler_pic_F77='-KPIC'
14283         lt_prog_compiler_static_F77='-static'
14284         ;;
14285       pgcc* | pgf77* | pgf90* | pgf95*)
14286         # Portland Group compilers (*not* the Pentium gcc compiler,
14287         # which looks to be a dead project)
14288         lt_prog_compiler_wl_F77='-Wl,'
14289         lt_prog_compiler_pic_F77='-fpic'
14290         lt_prog_compiler_static_F77='-Bstatic'
14291         ;;
14292       ccc*)
14293         lt_prog_compiler_wl_F77='-Wl,'
14294         # All Alpha code is PIC.
14295         lt_prog_compiler_static_F77='-non_shared'
14296         ;;
14297       *)
14298         case `$CC -V 2>&1 | sed 5q` in
14299         *Sun\ C*)
14300           # Sun C 5.9
14301           lt_prog_compiler_pic_F77='-KPIC'
14302           lt_prog_compiler_static_F77='-Bstatic'
14303           lt_prog_compiler_wl_F77='-Wl,'
14304           ;;
14305         *Sun\ F*)
14306           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14307           lt_prog_compiler_pic_F77='-KPIC'
14308           lt_prog_compiler_static_F77='-Bstatic'
14309           lt_prog_compiler_wl_F77=''
14310           ;;
14311         esac
14312         ;;
14313       esac
14314       ;;
14315
14316     osf3* | osf4* | osf5*)
14317       lt_prog_compiler_wl_F77='-Wl,'
14318       # All OSF/1 code is PIC.
14319       lt_prog_compiler_static_F77='-non_shared'
14320       ;;
14321
14322     rdos*)
14323       lt_prog_compiler_static_F77='-non_shared'
14324       ;;
14325
14326     solaris*)
14327       lt_prog_compiler_pic_F77='-KPIC'
14328       lt_prog_compiler_static_F77='-Bstatic'
14329       case $cc_basename in
14330       f77* | f90* | f95*)
14331         lt_prog_compiler_wl_F77='-Qoption ld ';;
14332       *)
14333         lt_prog_compiler_wl_F77='-Wl,';;
14334       esac
14335       ;;
14336
14337     sunos4*)
14338       lt_prog_compiler_wl_F77='-Qoption ld '
14339       lt_prog_compiler_pic_F77='-PIC'
14340       lt_prog_compiler_static_F77='-Bstatic'
14341       ;;
14342
14343     sysv4 | sysv4.2uw2* | sysv4.3*)
14344       lt_prog_compiler_wl_F77='-Wl,'
14345       lt_prog_compiler_pic_F77='-KPIC'
14346       lt_prog_compiler_static_F77='-Bstatic'
14347       ;;
14348
14349     sysv4*MP*)
14350       if test -d /usr/nec ;then
14351         lt_prog_compiler_pic_F77='-Kconform_pic'
14352         lt_prog_compiler_static_F77='-Bstatic'
14353       fi
14354       ;;
14355
14356     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14357       lt_prog_compiler_wl_F77='-Wl,'
14358       lt_prog_compiler_pic_F77='-KPIC'
14359       lt_prog_compiler_static_F77='-Bstatic'
14360       ;;
14361
14362     unicos*)
14363       lt_prog_compiler_wl_F77='-Wl,'
14364       lt_prog_compiler_can_build_shared_F77=no
14365       ;;
14366
14367     uts4*)
14368       lt_prog_compiler_pic_F77='-pic'
14369       lt_prog_compiler_static_F77='-Bstatic'
14370       ;;
14371
14372     *)
14373       lt_prog_compiler_can_build_shared_F77=no
14374       ;;
14375     esac
14376   fi
14377
14378 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14379 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14380
14381 #
14382 # Check to make sure the PIC flag actually works.
14383 #
14384 if test -n "$lt_prog_compiler_pic_F77"; then
14385
14386 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14387 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14388 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14389   echo $ECHO_N "(cached) $ECHO_C" >&6
14390 else
14391   lt_cv_prog_compiler_pic_works_F77=no
14392   ac_outfile=conftest.$ac_objext
14393    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14394    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14395    # Insert the option either (1) after the last *FLAGS variable, or
14396    # (2) before a word containing "conftest.", or (3) at the end.
14397    # Note that $ac_compile itself does not contain backslashes and begins
14398    # with a dollar sign (not a hyphen), so the echo should work correctly.
14399    # The option is referenced via a variable to avoid confusing sed.
14400    lt_compile=`echo "$ac_compile" | $SED \
14401    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14402    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14403    -e 's:$: $lt_compiler_flag:'`
14404    (eval echo "\"\$as_me:14404: $lt_compile\"" >&5)
14405    (eval "$lt_compile" 2>conftest.err)
14406    ac_status=$?
14407    cat conftest.err >&5
14408    echo "$as_me:14408: \$? = $ac_status" >&5
14409    if (exit $ac_status) && test -s "$ac_outfile"; then
14410      # The compiler can only warn and ignore the option if not recognized
14411      # So say no if there are warnings other than the usual output.
14412      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14413      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14414      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14415        lt_cv_prog_compiler_pic_works_F77=yes
14416      fi
14417    fi
14418    $rm conftest*
14419
14420 fi
14421 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14422 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14423
14424 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14425     case $lt_prog_compiler_pic_F77 in
14426      "" | " "*) ;;
14427      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14428      esac
14429 else
14430     lt_prog_compiler_pic_F77=
14431      lt_prog_compiler_can_build_shared_F77=no
14432 fi
14433
14434 fi
14435 case $host_os in
14436   # For platforms which do not support PIC, -DPIC is meaningless:
14437   *djgpp*)
14438     lt_prog_compiler_pic_F77=
14439     ;;
14440   *)
14441     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14442     ;;
14443 esac
14444
14445 #
14446 # Check to make sure the static flag actually works.
14447 #
14448 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14449 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14450 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14451 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454   lt_cv_prog_compiler_static_works_F77=no
14455    save_LDFLAGS="$LDFLAGS"
14456    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14457    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14458    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14459      # The linker can only warn and ignore the option if not recognized
14460      # So say no if there are warnings
14461      if test -s conftest.err; then
14462        # Append any errors to the config.log.
14463        cat conftest.err 1>&5
14464        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14465        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14466        if diff conftest.exp conftest.er2 >/dev/null; then
14467          lt_cv_prog_compiler_static_works_F77=yes
14468        fi
14469      else
14470        lt_cv_prog_compiler_static_works_F77=yes
14471      fi
14472    fi
14473    $rm -r conftest*
14474    LDFLAGS="$save_LDFLAGS"
14475
14476 fi
14477 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14478 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14479
14480 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14481     :
14482 else
14483     lt_prog_compiler_static_F77=
14484 fi
14485
14486
14487 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14488 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14489 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14490   echo $ECHO_N "(cached) $ECHO_C" >&6
14491 else
14492   lt_cv_prog_compiler_c_o_F77=no
14493    $rm -r conftest 2>/dev/null
14494    mkdir conftest
14495    cd conftest
14496    mkdir out
14497    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14498
14499    lt_compiler_flag="-o out/conftest2.$ac_objext"
14500    # Insert the option either (1) after the last *FLAGS variable, or
14501    # (2) before a word containing "conftest.", or (3) at the end.
14502    # Note that $ac_compile itself does not contain backslashes and begins
14503    # with a dollar sign (not a hyphen), so the echo should work correctly.
14504    lt_compile=`echo "$ac_compile" | $SED \
14505    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14507    -e 's:$: $lt_compiler_flag:'`
14508    (eval echo "\"\$as_me:14508: $lt_compile\"" >&5)
14509    (eval "$lt_compile" 2>out/conftest.err)
14510    ac_status=$?
14511    cat out/conftest.err >&5
14512    echo "$as_me:14512: \$? = $ac_status" >&5
14513    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14514    then
14515      # The compiler can only warn and ignore the option if not recognized
14516      # So say no if there are warnings
14517      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14518      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14519      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14520        lt_cv_prog_compiler_c_o_F77=yes
14521      fi
14522    fi
14523    chmod u+w . 2>&5
14524    $rm conftest*
14525    # SGI C++ compiler will create directory out/ii_files/ for
14526    # template instantiation
14527    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14528    $rm out/* && rmdir out
14529    cd ..
14530    rmdir conftest
14531    $rm conftest*
14532
14533 fi
14534 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14535 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14536
14537
14538 hard_links="nottested"
14539 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14540   # do not overwrite the value of need_locks provided by the user
14541   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14542 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14543   hard_links=yes
14544   $rm conftest*
14545   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14546   touch conftest.a
14547   ln conftest.a conftest.b 2>&5 || hard_links=no
14548   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14549   { echo "$as_me:$LINENO: result: $hard_links" >&5
14550 echo "${ECHO_T}$hard_links" >&6; }
14551   if test "$hard_links" = no; then
14552     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14553 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14554     need_locks=warn
14555   fi
14556 else
14557   need_locks=no
14558 fi
14559
14560 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14561 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14562
14563   runpath_var=
14564   allow_undefined_flag_F77=
14565   enable_shared_with_static_runtimes_F77=no
14566   archive_cmds_F77=
14567   archive_expsym_cmds_F77=
14568   old_archive_From_new_cmds_F77=
14569   old_archive_from_expsyms_cmds_F77=
14570   export_dynamic_flag_spec_F77=
14571   whole_archive_flag_spec_F77=
14572   thread_safe_flag_spec_F77=
14573   hardcode_libdir_flag_spec_F77=
14574   hardcode_libdir_flag_spec_ld_F77=
14575   hardcode_libdir_separator_F77=
14576   hardcode_direct_F77=no
14577   hardcode_minus_L_F77=no
14578   hardcode_shlibpath_var_F77=unsupported
14579   link_all_deplibs_F77=unknown
14580   hardcode_automatic_F77=no
14581   module_cmds_F77=
14582   module_expsym_cmds_F77=
14583   always_export_symbols_F77=no
14584   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14585   # include_expsyms should be a list of space-separated symbols to be *always*
14586   # included in the symbol list
14587   include_expsyms_F77=
14588   # exclude_expsyms can be an extended regexp of symbols to exclude
14589   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14590   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14591   # as well as any symbol that contains `d'.
14592   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14593   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14594   # platforms (ab)use it in PIC code, but their linkers get confused if
14595   # the symbol is explicitly referenced.  Since portable code cannot
14596   # rely on this symbol name, it's probably fine to never include it in
14597   # preloaded symbol tables.
14598   # Exclude shared library initialization/finalization symbols.
14599   extract_expsyms_cmds=
14600   # Just being paranoid about ensuring that cc_basename is set.
14601   for cc_temp in $compiler""; do
14602   case $cc_temp in
14603     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14604     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14605     \-*) ;;
14606     *) break;;
14607   esac
14608 done
14609 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14610
14611   case $host_os in
14612   cygwin* | mingw* | pw32*)
14613     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14614     # When not using gcc, we currently assume that we are using
14615     # Microsoft Visual C++.
14616     if test "$GCC" != yes; then
14617       with_gnu_ld=no
14618     fi
14619     ;;
14620   interix*)
14621     # we just hope/assume this is gcc and not c89 (= MSVC++)
14622     with_gnu_ld=yes
14623     ;;
14624   openbsd*)
14625     with_gnu_ld=no
14626     ;;
14627   esac
14628
14629   ld_shlibs_F77=yes
14630   if test "$with_gnu_ld" = yes; then
14631     # If archive_cmds runs LD, not CC, wlarc should be empty
14632     wlarc='${wl}'
14633
14634     # Set some defaults for GNU ld with shared library support. These
14635     # are reset later if shared libraries are not supported. Putting them
14636     # here allows them to be overridden if necessary.
14637     runpath_var=LD_RUN_PATH
14638     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14639     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14640     # ancient GNU ld didn't support --whole-archive et. al.
14641     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14642         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14643       else
14644         whole_archive_flag_spec_F77=
14645     fi
14646     supports_anon_versioning=no
14647     case `$LD -v 2>/dev/null` in
14648       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14649       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14650       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14651       *\ 2.11.*) ;; # other 2.11 versions
14652       *) supports_anon_versioning=yes ;;
14653     esac
14654
14655     # See if GNU ld supports shared libraries.
14656     case $host_os in
14657     aix[3-9]*)
14658       # On AIX/PPC, the GNU linker is very broken
14659       if test "$host_cpu" != ia64; then
14660         ld_shlibs_F77=no
14661         cat <<EOF 1>&2
14662
14663 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14664 *** to be unable to reliably create shared libraries on AIX.
14665 *** Therefore, libtool is disabling shared libraries support.  If you
14666 *** really care for shared libraries, you may want to modify your PATH
14667 *** so that a non-GNU linker is found, and then restart.
14668
14669 EOF
14670       fi
14671       ;;
14672
14673     amigaos*)
14674       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14675       hardcode_libdir_flag_spec_F77='-L$libdir'
14676       hardcode_minus_L_F77=yes
14677
14678       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14679       # that the semantics of dynamic libraries on AmigaOS, at least up
14680       # to version 4, is to share data among multiple programs linked
14681       # with the same dynamic library.  Since this doesn't match the
14682       # behavior of shared libraries on other platforms, we can't use
14683       # them.
14684       ld_shlibs_F77=no
14685       ;;
14686
14687     beos*)
14688       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14689         allow_undefined_flag_F77=unsupported
14690         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14691         # support --undefined.  This deserves some investigation.  FIXME
14692         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14693       else
14694         ld_shlibs_F77=no
14695       fi
14696       ;;
14697
14698     cygwin* | mingw* | pw32*)
14699       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14700       # as there is no search path for DLLs.
14701       hardcode_libdir_flag_spec_F77='-L$libdir'
14702       allow_undefined_flag_F77=unsupported
14703       always_export_symbols_F77=no
14704       enable_shared_with_static_runtimes_F77=yes
14705       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14706
14707       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14708         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14709         # If the export-symbols file already is a .def file (1st line
14710         # is EXPORTS), use it as is; otherwise, prepend...
14711         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14712           cp $export_symbols $output_objdir/$soname.def;
14713         else
14714           echo EXPORTS > $output_objdir/$soname.def;
14715           cat $export_symbols >> $output_objdir/$soname.def;
14716         fi~
14717         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718       else
14719         ld_shlibs_F77=no
14720       fi
14721       ;;
14722
14723     interix[3-9]*)
14724       hardcode_direct_F77=no
14725       hardcode_shlibpath_var_F77=no
14726       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14727       export_dynamic_flag_spec_F77='${wl}-E'
14728       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14729       # Instead, shared libraries are loaded at an image base (0x10000000 by
14730       # default) and relocated if they conflict, which is a slow very memory
14731       # consuming and fragmenting process.  To avoid this, we pick a random,
14732       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14733       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14734       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14735       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14736       ;;
14737
14738     gnu* | linux* | k*bsd*-gnu)
14739       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14740         tmp_addflag=
14741         case $cc_basename,$host_cpu in
14742         pgcc*)                          # Portland Group C compiler
14743           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14744           tmp_addflag=' $pic_flag'
14745           ;;
14746         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14747           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14748           tmp_addflag=' $pic_flag -Mnomain' ;;
14749         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14750           tmp_addflag=' -i_dynamic' ;;
14751         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14752           tmp_addflag=' -i_dynamic -nofor_main' ;;
14753         ifc* | ifort*)                  # Intel Fortran compiler
14754           tmp_addflag=' -nofor_main' ;;
14755         esac
14756         case `$CC -V 2>&1 | sed 5q` in
14757         *Sun\ C*)                       # Sun C 5.9
14758           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14759           tmp_sharedflag='-G' ;;
14760         *Sun\ F*)                       # Sun Fortran 8.3
14761           tmp_sharedflag='-G' ;;
14762         *)
14763           tmp_sharedflag='-shared' ;;
14764         esac
14765         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14766
14767         if test $supports_anon_versioning = yes; then
14768           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14769   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14770   $echo "local: *; };" >> $output_objdir/$libname.ver~
14771           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14772         fi
14773         link_all_deplibs_F77=no
14774       else
14775         ld_shlibs_F77=no
14776       fi
14777       ;;
14778
14779     netbsd* | netbsdelf*-gnu)
14780       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14781         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14782         wlarc=
14783       else
14784         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14785         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14786       fi
14787       ;;
14788
14789     solaris*)
14790       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14791         ld_shlibs_F77=no
14792         cat <<EOF 1>&2
14793
14794 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14795 *** create shared libraries on Solaris systems.  Therefore, libtool
14796 *** is disabling shared libraries support.  We urge you to upgrade GNU
14797 *** binutils to release 2.9.1 or newer.  Another option is to modify
14798 *** your PATH or compiler configuration so that the native linker is
14799 *** used, and then restart.
14800
14801 EOF
14802       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14803         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14804         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14805       else
14806         ld_shlibs_F77=no
14807       fi
14808       ;;
14809
14810     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14811       case `$LD -v 2>&1` in
14812         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14813         ld_shlibs_F77=no
14814         cat <<_LT_EOF 1>&2
14815
14816 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14817 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14818 *** is disabling shared libraries support.  We urge you to upgrade GNU
14819 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14820 *** your PATH or compiler configuration so that the native linker is
14821 *** used, and then restart.
14822
14823 _LT_EOF
14824         ;;
14825         *)
14826           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14827             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14828             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14829             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14830           else
14831             ld_shlibs_F77=no
14832           fi
14833         ;;
14834       esac
14835       ;;
14836
14837     sunos4*)
14838       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14839       wlarc=
14840       hardcode_direct_F77=yes
14841       hardcode_shlibpath_var_F77=no
14842       ;;
14843
14844     *)
14845       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14846         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14847         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14848       else
14849         ld_shlibs_F77=no
14850       fi
14851       ;;
14852     esac
14853
14854     if test "$ld_shlibs_F77" = no; then
14855       runpath_var=
14856       hardcode_libdir_flag_spec_F77=
14857       export_dynamic_flag_spec_F77=
14858       whole_archive_flag_spec_F77=
14859     fi
14860   else
14861     # PORTME fill in a description of your system's linker (not GNU ld)
14862     case $host_os in
14863     aix3*)
14864       allow_undefined_flag_F77=unsupported
14865       always_export_symbols_F77=yes
14866       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14867       # Note: this linker hardcodes the directories in LIBPATH if there
14868       # are no directories specified by -L.
14869       hardcode_minus_L_F77=yes
14870       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14871         # Neither direct hardcoding nor static linking is supported with a
14872         # broken collect2.
14873         hardcode_direct_F77=unsupported
14874       fi
14875       ;;
14876
14877     aix[4-9]*)
14878       if test "$host_cpu" = ia64; then
14879         # On IA64, the linker does run time linking by default, so we don't
14880         # have to do anything special.
14881         aix_use_runtimelinking=no
14882         exp_sym_flag='-Bexport'
14883         no_entry_flag=""
14884       else
14885         # If we're using GNU nm, then we don't want the "-C" option.
14886         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14887         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14888           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14889         else
14890           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14891         fi
14892         aix_use_runtimelinking=no
14893
14894         # Test if we are trying to use run time linking or normal
14895         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14896         # need to do runtime linking.
14897         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14898           for ld_flag in $LDFLAGS; do
14899           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14900             aix_use_runtimelinking=yes
14901             break
14902           fi
14903           done
14904           ;;
14905         esac
14906
14907         exp_sym_flag='-bexport'
14908         no_entry_flag='-bnoentry'
14909       fi
14910
14911       # When large executables or shared objects are built, AIX ld can
14912       # have problems creating the table of contents.  If linking a library
14913       # or program results in "error TOC overflow" add -mminimal-toc to
14914       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14915       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14916
14917       archive_cmds_F77=''
14918       hardcode_direct_F77=yes
14919       hardcode_libdir_separator_F77=':'
14920       link_all_deplibs_F77=yes
14921
14922       if test "$GCC" = yes; then
14923         case $host_os in aix4.[012]|aix4.[012].*)
14924         # We only want to do this on AIX 4.2 and lower, the check
14925         # below for broken collect2 doesn't work under 4.3+
14926           collect2name=`${CC} -print-prog-name=collect2`
14927           if test -f "$collect2name" && \
14928            strings "$collect2name" | grep resolve_lib_name >/dev/null
14929           then
14930           # We have reworked collect2
14931           :
14932           else
14933           # We have old collect2
14934           hardcode_direct_F77=unsupported
14935           # It fails to find uninstalled libraries when the uninstalled
14936           # path is not listed in the libpath.  Setting hardcode_minus_L
14937           # to unsupported forces relinking
14938           hardcode_minus_L_F77=yes
14939           hardcode_libdir_flag_spec_F77='-L$libdir'
14940           hardcode_libdir_separator_F77=
14941           fi
14942           ;;
14943         esac
14944         shared_flag='-shared'
14945         if test "$aix_use_runtimelinking" = yes; then
14946           shared_flag="$shared_flag "'${wl}-G'
14947         fi
14948       else
14949         # not using gcc
14950         if test "$host_cpu" = ia64; then
14951         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14952         # chokes on -Wl,-G. The following line is correct:
14953           shared_flag='-G'
14954         else
14955           if test "$aix_use_runtimelinking" = yes; then
14956             shared_flag='${wl}-G'
14957           else
14958             shared_flag='${wl}-bM:SRE'
14959           fi
14960         fi
14961       fi
14962
14963       # It seems that -bexpall does not export symbols beginning with
14964       # underscore (_), so it is better to generate a list of symbols to export.
14965       always_export_symbols_F77=yes
14966       if test "$aix_use_runtimelinking" = yes; then
14967         # Warning - without using the other runtime loading flags (-brtl),
14968         # -berok will link without error, but may produce a broken library.
14969         allow_undefined_flag_F77='-berok'
14970        # Determine the default libpath from the value encoded in an empty executable.
14971        cat >conftest.$ac_ext <<_ACEOF
14972       program main
14973
14974       end
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_link") 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } && {
14990          test -z "$ac_f77_werror_flag" ||
14991          test ! -s conftest.err
14992        } && test -s conftest$ac_exeext &&
14993        $as_test_x conftest$ac_exeext; then
14994
14995 lt_aix_libpath_sed='
14996     /Import File Strings/,/^$/ {
14997         /^0/ {
14998             s/^0  *\(.*\)$/\1/
14999             p
15000         }
15001     }'
15002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15003 # Check for a 64-bit object if we didn't find anything.
15004 if test -z "$aix_libpath"; then
15005   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15006 fi
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011
15012 fi
15013
15014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15015       conftest$ac_exeext conftest.$ac_ext
15016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15017
15018        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15019         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15020        else
15021         if test "$host_cpu" = ia64; then
15022           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15023           allow_undefined_flag_F77="-z nodefs"
15024           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15025         else
15026          # Determine the default libpath from the value encoded in an empty executable.
15027          cat >conftest.$ac_ext <<_ACEOF
15028       program main
15029
15030       end
15031 _ACEOF
15032 rm -f conftest.$ac_objext conftest$ac_exeext
15033 if { (ac_try="$ac_link"
15034 case "(($ac_try" in
15035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15036   *) ac_try_echo=$ac_try;;
15037 esac
15038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15039   (eval "$ac_link") 2>conftest.er1
15040   ac_status=$?
15041   grep -v '^ *+' conftest.er1 >conftest.err
15042   rm -f conftest.er1
15043   cat conftest.err >&5
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); } && {
15046          test -z "$ac_f77_werror_flag" ||
15047          test ! -s conftest.err
15048        } && test -s conftest$ac_exeext &&
15049        $as_test_x conftest$ac_exeext; then
15050
15051 lt_aix_libpath_sed='
15052     /Import File Strings/,/^$/ {
15053         /^0/ {
15054             s/^0  *\(.*\)$/\1/
15055             p
15056         }
15057     }'
15058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15059 # Check for a 64-bit object if we didn't find anything.
15060 if test -z "$aix_libpath"; then
15061   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15062 fi
15063 else
15064   echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067
15068 fi
15069
15070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15071       conftest$ac_exeext conftest.$ac_ext
15072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15073
15074          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15075           # Warning - without using the other run time loading flags,
15076           # -berok will link without error, but may produce a broken library.
15077           no_undefined_flag_F77=' ${wl}-bernotok'
15078           allow_undefined_flag_F77=' ${wl}-berok'
15079           # Exported symbols can be pulled into shared objects from archives
15080           whole_archive_flag_spec_F77='$convenience'
15081           archive_cmds_need_lc_F77=yes
15082           # This is similar to how AIX traditionally builds its shared libraries.
15083           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15084         fi
15085       fi
15086       ;;
15087
15088     amigaos*)
15089       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15090       hardcode_libdir_flag_spec_F77='-L$libdir'
15091       hardcode_minus_L_F77=yes
15092       # see comment about different semantics on the GNU ld section
15093       ld_shlibs_F77=no
15094       ;;
15095
15096     bsdi[45]*)
15097       export_dynamic_flag_spec_F77=-rdynamic
15098       ;;
15099
15100     cygwin* | mingw* | pw32*)
15101       # When not using gcc, we currently assume that we are using
15102       # Microsoft Visual C++.
15103       # hardcode_libdir_flag_spec is actually meaningless, as there is
15104       # no search path for DLLs.
15105       hardcode_libdir_flag_spec_F77=' '
15106       allow_undefined_flag_F77=unsupported
15107       # Tell ltmain to make .lib files, not .a files.
15108       libext=lib
15109       # Tell ltmain to make .dll files, not .so files.
15110       shrext_cmds=".dll"
15111       # FIXME: Setting linknames here is a bad hack.
15112       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15113       # The linker will automatically build a .lib file if we build a DLL.
15114       old_archive_From_new_cmds_F77='true'
15115       # FIXME: Should let the user specify the lib program.
15116       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15117       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15118       enable_shared_with_static_runtimes_F77=yes
15119       ;;
15120
15121     darwin* | rhapsody*)
15122       case $host_os in
15123         rhapsody* | darwin1.[012])
15124          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15125          ;;
15126        *) # Darwin 1.3 on
15127          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15128            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15129          else
15130            case ${MACOSX_DEPLOYMENT_TARGET} in
15131              10.[012])
15132                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15133                ;;
15134              10.*)
15135                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15136                ;;
15137            esac
15138          fi
15139          ;;
15140       esac
15141       archive_cmds_need_lc_F77=no
15142       hardcode_direct_F77=no
15143       hardcode_automatic_F77=yes
15144       hardcode_shlibpath_var_F77=unsupported
15145       whole_archive_flag_spec_F77=''
15146       link_all_deplibs_F77=yes
15147     if test "$GCC" = yes ; then
15148         output_verbose_link_cmd='echo'
15149         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15150         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15151         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15152         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15153     else
15154       case $cc_basename in
15155         xlc*)
15156          output_verbose_link_cmd='echo'
15157          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15158          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15159           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15160          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15161           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15162           ;;
15163        *)
15164          ld_shlibs_F77=no
15165           ;;
15166       esac
15167     fi
15168       ;;
15169
15170     dgux*)
15171       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15172       hardcode_libdir_flag_spec_F77='-L$libdir'
15173       hardcode_shlibpath_var_F77=no
15174       ;;
15175
15176     freebsd1*)
15177       ld_shlibs_F77=no
15178       ;;
15179
15180     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15181     # support.  Future versions do this automatically, but an explicit c++rt0.o
15182     # does not break anything, and helps significantly (at the cost of a little
15183     # extra space).
15184     freebsd2.2*)
15185       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15186       hardcode_libdir_flag_spec_F77='-R$libdir'
15187       hardcode_direct_F77=yes
15188       hardcode_shlibpath_var_F77=no
15189       ;;
15190
15191     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15192     freebsd2*)
15193       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15194       hardcode_direct_F77=yes
15195       hardcode_minus_L_F77=yes
15196       hardcode_shlibpath_var_F77=no
15197       ;;
15198
15199     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15200     freebsd* | dragonfly*)
15201       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15202       hardcode_libdir_flag_spec_F77='-R$libdir'
15203       hardcode_direct_F77=yes
15204       hardcode_shlibpath_var_F77=no
15205       ;;
15206
15207     hpux9*)
15208       if test "$GCC" = yes; then
15209         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15210       else
15211         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15212       fi
15213       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15214       hardcode_libdir_separator_F77=:
15215       hardcode_direct_F77=yes
15216
15217       # hardcode_minus_L: Not really in the search PATH,
15218       # but as the default location of the library.
15219       hardcode_minus_L_F77=yes
15220       export_dynamic_flag_spec_F77='${wl}-E'
15221       ;;
15222
15223     hpux10*)
15224       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15225         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15226       else
15227         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15228       fi
15229       if test "$with_gnu_ld" = no; then
15230         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15231         hardcode_libdir_separator_F77=:
15232
15233         hardcode_direct_F77=yes
15234         export_dynamic_flag_spec_F77='${wl}-E'
15235
15236         # hardcode_minus_L: Not really in the search PATH,
15237         # but as the default location of the library.
15238         hardcode_minus_L_F77=yes
15239       fi
15240       ;;
15241
15242     hpux11*)
15243       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15244         case $host_cpu in
15245         hppa*64*)
15246           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15247           ;;
15248         ia64*)
15249           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15250           ;;
15251         *)
15252           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15253           ;;
15254         esac
15255       else
15256         case $host_cpu in
15257         hppa*64*)
15258           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15259           ;;
15260         ia64*)
15261           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15262           ;;
15263         *)
15264           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15265           ;;
15266         esac
15267       fi
15268       if test "$with_gnu_ld" = no; then
15269         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15270         hardcode_libdir_separator_F77=:
15271
15272         case $host_cpu in
15273         hppa*64*|ia64*)
15274           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15275           hardcode_direct_F77=no
15276           hardcode_shlibpath_var_F77=no
15277           ;;
15278         *)
15279           hardcode_direct_F77=yes
15280           export_dynamic_flag_spec_F77='${wl}-E'
15281
15282           # hardcode_minus_L: Not really in the search PATH,
15283           # but as the default location of the library.
15284           hardcode_minus_L_F77=yes
15285           ;;
15286         esac
15287       fi
15288       ;;
15289
15290     irix5* | irix6* | nonstopux*)
15291       if test "$GCC" = yes; then
15292         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15293       else
15294         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15295         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15296       fi
15297       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15298       hardcode_libdir_separator_F77=:
15299       link_all_deplibs_F77=yes
15300       ;;
15301
15302     netbsd* | netbsdelf*-gnu)
15303       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15304         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15305       else
15306         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15307       fi
15308       hardcode_libdir_flag_spec_F77='-R$libdir'
15309       hardcode_direct_F77=yes
15310       hardcode_shlibpath_var_F77=no
15311       ;;
15312
15313     newsos6)
15314       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15315       hardcode_direct_F77=yes
15316       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15317       hardcode_libdir_separator_F77=:
15318       hardcode_shlibpath_var_F77=no
15319       ;;
15320
15321     openbsd*)
15322       if test -f /usr/libexec/ld.so; then
15323         hardcode_direct_F77=yes
15324         hardcode_shlibpath_var_F77=no
15325         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15326           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15327           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15328           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15329           export_dynamic_flag_spec_F77='${wl}-E'
15330         else
15331           case $host_os in
15332            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15333              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15334              hardcode_libdir_flag_spec_F77='-R$libdir'
15335              ;;
15336            *)
15337              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15338              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15339              ;;
15340           esac
15341         fi
15342       else
15343         ld_shlibs_F77=no
15344       fi
15345       ;;
15346
15347     os2*)
15348       hardcode_libdir_flag_spec_F77='-L$libdir'
15349       hardcode_minus_L_F77=yes
15350       allow_undefined_flag_F77=unsupported
15351       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15352       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15353       ;;
15354
15355     osf3*)
15356       if test "$GCC" = yes; then
15357         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15358         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15359       else
15360         allow_undefined_flag_F77=' -expect_unresolved \*'
15361         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15362       fi
15363       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15364       hardcode_libdir_separator_F77=:
15365       ;;
15366
15367     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15368       if test "$GCC" = yes; then
15369         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15370         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15371         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15372       else
15373         allow_undefined_flag_F77=' -expect_unresolved \*'
15374         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15375         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15376         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15377
15378         # Both c and cxx compiler support -rpath directly
15379         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15380       fi
15381       hardcode_libdir_separator_F77=:
15382       ;;
15383
15384     solaris*)
15385       no_undefined_flag_F77=' -z text'
15386       if test "$GCC" = yes; then
15387         wlarc='${wl}'
15388         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15389         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15390           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15391       else
15392         wlarc=''
15393         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15394         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15395         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15396       fi
15397       hardcode_libdir_flag_spec_F77='-R$libdir'
15398       hardcode_shlibpath_var_F77=no
15399       case $host_os in
15400       solaris2.[0-5] | solaris2.[0-5].*) ;;
15401       *)
15402         # The compiler driver will combine and reorder linker options,
15403         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15404         # but is careful enough not to reorder.
15405         # Supported since Solaris 2.6 (maybe 2.5.1?)
15406         if test "$GCC" = yes; then
15407           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15408         else
15409           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15410         fi
15411         ;;
15412       esac
15413       link_all_deplibs_F77=yes
15414       ;;
15415
15416     sunos4*)
15417       if test "x$host_vendor" = xsequent; then
15418         # Use $CC to link under sequent, because it throws in some extra .o
15419         # files that make .init and .fini sections work.
15420         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15421       else
15422         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15423       fi
15424       hardcode_libdir_flag_spec_F77='-L$libdir'
15425       hardcode_direct_F77=yes
15426       hardcode_minus_L_F77=yes
15427       hardcode_shlibpath_var_F77=no
15428       ;;
15429
15430     sysv4)
15431       case $host_vendor in
15432         sni)
15433           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15434           hardcode_direct_F77=yes # is this really true???
15435         ;;
15436         siemens)
15437           ## LD is ld it makes a PLAMLIB
15438           ## CC just makes a GrossModule.
15439           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15440           reload_cmds_F77='$CC -r -o $output$reload_objs'
15441           hardcode_direct_F77=no
15442         ;;
15443         motorola)
15444           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15446         ;;
15447       esac
15448       runpath_var='LD_RUN_PATH'
15449       hardcode_shlibpath_var_F77=no
15450       ;;
15451
15452     sysv4.3*)
15453       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15454       hardcode_shlibpath_var_F77=no
15455       export_dynamic_flag_spec_F77='-Bexport'
15456       ;;
15457
15458     sysv4*MP*)
15459       if test -d /usr/nec; then
15460         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15461         hardcode_shlibpath_var_F77=no
15462         runpath_var=LD_RUN_PATH
15463         hardcode_runpath_var=yes
15464         ld_shlibs_F77=yes
15465       fi
15466       ;;
15467
15468     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15469       no_undefined_flag_F77='${wl}-z,text'
15470       archive_cmds_need_lc_F77=no
15471       hardcode_shlibpath_var_F77=no
15472       runpath_var='LD_RUN_PATH'
15473
15474       if test "$GCC" = yes; then
15475         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15476         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15477       else
15478         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15479         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15480       fi
15481       ;;
15482
15483     sysv5* | sco3.2v5* | sco5v6*)
15484       # Note: We can NOT use -z defs as we might desire, because we do not
15485       # link with -lc, and that would cause any symbols used from libc to
15486       # always be unresolved, which means just about no library would
15487       # ever link correctly.  If we're not using GNU ld we use -z text
15488       # though, which does catch some bad symbols but isn't as heavy-handed
15489       # as -z defs.
15490       no_undefined_flag_F77='${wl}-z,text'
15491       allow_undefined_flag_F77='${wl}-z,nodefs'
15492       archive_cmds_need_lc_F77=no
15493       hardcode_shlibpath_var_F77=no
15494       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15495       hardcode_libdir_separator_F77=':'
15496       link_all_deplibs_F77=yes
15497       export_dynamic_flag_spec_F77='${wl}-Bexport'
15498       runpath_var='LD_RUN_PATH'
15499
15500       if test "$GCC" = yes; then
15501         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15502         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15503       else
15504         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15505         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15506       fi
15507       ;;
15508
15509     uts4*)
15510       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15511       hardcode_libdir_flag_spec_F77='-L$libdir'
15512       hardcode_shlibpath_var_F77=no
15513       ;;
15514
15515     *)
15516       ld_shlibs_F77=no
15517       ;;
15518     esac
15519   fi
15520
15521 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15522 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15523 test "$ld_shlibs_F77" = no && can_build_shared=no
15524
15525 #
15526 # Do we need to explicitly link libc?
15527 #
15528 case "x$archive_cmds_need_lc_F77" in
15529 x|xyes)
15530   # Assume -lc should be added
15531   archive_cmds_need_lc_F77=yes
15532
15533   if test "$enable_shared" = yes && test "$GCC" = yes; then
15534     case $archive_cmds_F77 in
15535     *'~'*)
15536       # FIXME: we may have to deal with multi-command sequences.
15537       ;;
15538     '$CC '*)
15539       # Test whether the compiler implicitly links with -lc since on some
15540       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15541       # to ld, don't add -lc before -lgcc.
15542       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15544       $rm conftest*
15545       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15546
15547       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15548   (eval $ac_compile) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } 2>conftest.err; then
15552         soname=conftest
15553         lib=conftest
15554         libobjs=conftest.$ac_objext
15555         deplibs=
15556         wl=$lt_prog_compiler_wl_F77
15557         pic_flag=$lt_prog_compiler_pic_F77
15558         compiler_flags=-v
15559         linker_flags=-v
15560         verstring=
15561         output_objdir=.
15562         libname=conftest
15563         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15564         allow_undefined_flag_F77=
15565         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15566   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }
15570         then
15571           archive_cmds_need_lc_F77=no
15572         else
15573           archive_cmds_need_lc_F77=yes
15574         fi
15575         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15576       else
15577         cat conftest.err 1>&5
15578       fi
15579       $rm conftest*
15580       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15581 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15582       ;;
15583     esac
15584   fi
15585   ;;
15586 esac
15587
15588 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15590 library_names_spec=
15591 libname_spec='lib$name'
15592 soname_spec=
15593 shrext_cmds=".so"
15594 postinstall_cmds=
15595 postuninstall_cmds=
15596 finish_cmds=
15597 finish_eval=
15598 shlibpath_var=
15599 shlibpath_overrides_runpath=unknown
15600 version_type=none
15601 dynamic_linker="$host_os ld.so"
15602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15603
15604 need_lib_prefix=unknown
15605 hardcode_into_libs=no
15606
15607 # when you set need_version to no, make sure it does not cause -set_version
15608 # flags to be left without arguments
15609 need_version=unknown
15610
15611 case $host_os in
15612 aix3*)
15613   version_type=linux
15614   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15615   shlibpath_var=LIBPATH
15616
15617   # AIX 3 has no versioning support, so we append a major version to the name.
15618   soname_spec='${libname}${release}${shared_ext}$major'
15619   ;;
15620
15621 aix[4-9]*)
15622   version_type=linux
15623   need_lib_prefix=no
15624   need_version=no
15625   hardcode_into_libs=yes
15626   if test "$host_cpu" = ia64; then
15627     # AIX 5 supports IA64
15628     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15629     shlibpath_var=LD_LIBRARY_PATH
15630   else
15631     # With GCC up to 2.95.x, collect2 would create an import file
15632     # for dependence libraries.  The import file would start with
15633     # the line `#! .'.  This would cause the generated library to
15634     # depend on `.', always an invalid library.  This was fixed in
15635     # development snapshots of GCC prior to 3.0.
15636     case $host_os in
15637       aix4 | aix4.[01] | aix4.[01].*)
15638       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15639            echo ' yes '
15640            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15641         :
15642       else
15643         can_build_shared=no
15644       fi
15645       ;;
15646     esac
15647     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15648     # soname into executable. Probably we can add versioning support to
15649     # collect2, so additional links can be useful in future.
15650     if test "$aix_use_runtimelinking" = yes; then
15651       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15652       # instead of lib<name>.a to let people know that these are not
15653       # typical AIX shared libraries.
15654       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15655     else
15656       # We preserve .a as extension for shared libraries through AIX4.2
15657       # and later when we are not doing run time linking.
15658       library_names_spec='${libname}${release}.a $libname.a'
15659       soname_spec='${libname}${release}${shared_ext}$major'
15660     fi
15661     shlibpath_var=LIBPATH
15662   fi
15663   ;;
15664
15665 amigaos*)
15666   library_names_spec='$libname.ixlibrary $libname.a'
15667   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15668   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15669   ;;
15670
15671 beos*)
15672   library_names_spec='${libname}${shared_ext}'
15673   dynamic_linker="$host_os ld.so"
15674   shlibpath_var=LIBRARY_PATH
15675   ;;
15676
15677 bsdi[45]*)
15678   version_type=linux
15679   need_version=no
15680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681   soname_spec='${libname}${release}${shared_ext}$major'
15682   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15683   shlibpath_var=LD_LIBRARY_PATH
15684   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15685   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15686   # the default ld.so.conf also contains /usr/contrib/lib and
15687   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15688   # libtool to hard-code these into programs
15689   ;;
15690
15691 cygwin* | mingw* | pw32*)
15692   version_type=windows
15693   shrext_cmds=".dll"
15694   need_version=no
15695   need_lib_prefix=no
15696
15697   case $GCC,$host_os in
15698   yes,cygwin* | yes,mingw* | yes,pw32*)
15699     library_names_spec='$libname.dll.a'
15700     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15701     postinstall_cmds='base_file=`basename \${file}`~
15702       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15703       dldir=$destdir/`dirname \$dlpath`~
15704       test -d \$dldir || mkdir -p \$dldir~
15705       $install_prog $dir/$dlname \$dldir/$dlname~
15706       chmod a+x \$dldir/$dlname'
15707     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15708       dlpath=$dir/\$dldll~
15709        $rm \$dlpath'
15710     shlibpath_overrides_runpath=yes
15711
15712     case $host_os in
15713     cygwin*)
15714       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15715       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15716       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15717       ;;
15718     mingw*)
15719       # MinGW DLLs use traditional 'lib' prefix
15720       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15722       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15723         # It is most probably a Windows format PATH printed by
15724         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15725         # path with ; separators, and with drive letters. We can handle the
15726         # drive letters (cygwin fileutils understands them), so leave them,
15727         # especially as we might pass files found there to a mingw objdump,
15728         # which wouldn't understand a cygwinified path. Ahh.
15729         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15730       else
15731         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15732       fi
15733       ;;
15734     pw32*)
15735       # pw32 DLLs use 'pw' prefix rather than 'lib'
15736       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15737       ;;
15738     esac
15739     ;;
15740
15741   *)
15742     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15743     ;;
15744   esac
15745   dynamic_linker='Win32 ld.exe'
15746   # FIXME: first we should search . and the directory the executable is in
15747   shlibpath_var=PATH
15748   ;;
15749
15750 darwin* | rhapsody*)
15751   dynamic_linker="$host_os dyld"
15752   version_type=darwin
15753   need_lib_prefix=no
15754   need_version=no
15755   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15756   soname_spec='${libname}${release}${major}$shared_ext'
15757   shlibpath_overrides_runpath=yes
15758   shlibpath_var=DYLD_LIBRARY_PATH
15759   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15760
15761   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15762   ;;
15763
15764 dgux*)
15765   version_type=linux
15766   need_lib_prefix=no
15767   need_version=no
15768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15769   soname_spec='${libname}${release}${shared_ext}$major'
15770   shlibpath_var=LD_LIBRARY_PATH
15771   ;;
15772
15773 freebsd1*)
15774   dynamic_linker=no
15775   ;;
15776
15777 freebsd* | dragonfly*)
15778   # DragonFly does not have aout.  When/if they implement a new
15779   # versioning mechanism, adjust this.
15780   if test -x /usr/bin/objformat; then
15781     objformat=`/usr/bin/objformat`
15782   else
15783     case $host_os in
15784     freebsd[123]*) objformat=aout ;;
15785     *) objformat=elf ;;
15786     esac
15787   fi
15788   version_type=freebsd-$objformat
15789   case $version_type in
15790     freebsd-elf*)
15791       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15792       need_version=no
15793       need_lib_prefix=no
15794       ;;
15795     freebsd-*)
15796       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15797       need_version=yes
15798       ;;
15799   esac
15800   shlibpath_var=LD_LIBRARY_PATH
15801   case $host_os in
15802   freebsd2*)
15803     shlibpath_overrides_runpath=yes
15804     ;;
15805   freebsd3.[01]* | freebsdelf3.[01]*)
15806     shlibpath_overrides_runpath=yes
15807     hardcode_into_libs=yes
15808     ;;
15809   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15810   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15811     shlibpath_overrides_runpath=no
15812     hardcode_into_libs=yes
15813     ;;
15814   *) # from 4.6 on, and DragonFly
15815     shlibpath_overrides_runpath=yes
15816     hardcode_into_libs=yes
15817     ;;
15818   esac
15819   ;;
15820
15821 gnu*)
15822   version_type=linux
15823   need_lib_prefix=no
15824   need_version=no
15825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15826   soname_spec='${libname}${release}${shared_ext}$major'
15827   shlibpath_var=LD_LIBRARY_PATH
15828   hardcode_into_libs=yes
15829   ;;
15830
15831 hpux9* | hpux10* | hpux11*)
15832   # Give a soname corresponding to the major version so that dld.sl refuses to
15833   # link against other versions.
15834   version_type=sunos
15835   need_lib_prefix=no
15836   need_version=no
15837   case $host_cpu in
15838   ia64*)
15839     shrext_cmds='.so'
15840     hardcode_into_libs=yes
15841     dynamic_linker="$host_os dld.so"
15842     shlibpath_var=LD_LIBRARY_PATH
15843     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845     soname_spec='${libname}${release}${shared_ext}$major'
15846     if test "X$HPUX_IA64_MODE" = X32; then
15847       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15848     else
15849       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15850     fi
15851     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15852     ;;
15853    hppa*64*)
15854      shrext_cmds='.sl'
15855      hardcode_into_libs=yes
15856      dynamic_linker="$host_os dld.sl"
15857      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15858      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15859      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860      soname_spec='${libname}${release}${shared_ext}$major'
15861      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15862      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15863      ;;
15864    *)
15865     shrext_cmds='.sl'
15866     dynamic_linker="$host_os dld.sl"
15867     shlibpath_var=SHLIB_PATH
15868     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870     soname_spec='${libname}${release}${shared_ext}$major'
15871     ;;
15872   esac
15873   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15874   postinstall_cmds='chmod 555 $lib'
15875   ;;
15876
15877 interix[3-9]*)
15878   version_type=linux
15879   need_lib_prefix=no
15880   need_version=no
15881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15882   soname_spec='${libname}${release}${shared_ext}$major'
15883   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15884   shlibpath_var=LD_LIBRARY_PATH
15885   shlibpath_overrides_runpath=no
15886   hardcode_into_libs=yes
15887   ;;
15888
15889 irix5* | irix6* | nonstopux*)
15890   case $host_os in
15891     nonstopux*) version_type=nonstopux ;;
15892     *)
15893         if test "$lt_cv_prog_gnu_ld" = yes; then
15894                 version_type=linux
15895         else
15896                 version_type=irix
15897         fi ;;
15898   esac
15899   need_lib_prefix=no
15900   need_version=no
15901   soname_spec='${libname}${release}${shared_ext}$major'
15902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15903   case $host_os in
15904   irix5* | nonstopux*)
15905     libsuff= shlibsuff=
15906     ;;
15907   *)
15908     case $LD in # libtool.m4 will add one of these switches to LD
15909     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15910       libsuff= shlibsuff= libmagic=32-bit;;
15911     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15912       libsuff=32 shlibsuff=N32 libmagic=N32;;
15913     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15914       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15915     *) libsuff= shlibsuff= libmagic=never-match;;
15916     esac
15917     ;;
15918   esac
15919   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15920   shlibpath_overrides_runpath=no
15921   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15922   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15923   hardcode_into_libs=yes
15924   ;;
15925
15926 # No shared lib support for Linux oldld, aout, or coff.
15927 linux*oldld* | linux*aout* | linux*coff*)
15928   dynamic_linker=no
15929   ;;
15930
15931 # This must be Linux ELF.
15932 linux* | k*bsd*-gnu)
15933   version_type=linux
15934   need_lib_prefix=no
15935   need_version=no
15936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937   soname_spec='${libname}${release}${shared_ext}$major'
15938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15939   shlibpath_var=LD_LIBRARY_PATH
15940   shlibpath_overrides_runpath=no
15941   # This implies no fast_install, which is unacceptable.
15942   # Some rework will be needed to allow for fast_install
15943   # before this can be enabled.
15944   hardcode_into_libs=yes
15945
15946   # Append ld.so.conf contents to the search path
15947   if test -f /etc/ld.so.conf; then
15948     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15949     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15950   fi
15951
15952   # We used to test for /lib/ld.so.1 and disable shared libraries on
15953   # powerpc, because MkLinux only supported shared libraries with the
15954   # GNU dynamic linker.  Since this was broken with cross compilers,
15955   # most powerpc-linux boxes support dynamic linking these days and
15956   # people can always --disable-shared, the test was removed, and we
15957   # assume the GNU/Linux dynamic linker is in use.
15958   dynamic_linker='GNU/Linux ld.so'
15959   ;;
15960
15961 netbsdelf*-gnu)
15962   version_type=linux
15963   need_lib_prefix=no
15964   need_version=no
15965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15966   soname_spec='${libname}${release}${shared_ext}$major'
15967   shlibpath_var=LD_LIBRARY_PATH
15968   shlibpath_overrides_runpath=no
15969   hardcode_into_libs=yes
15970   dynamic_linker='NetBSD ld.elf_so'
15971   ;;
15972
15973 netbsd*)
15974   version_type=sunos
15975   need_lib_prefix=no
15976   need_version=no
15977   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15979     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15980     dynamic_linker='NetBSD (a.out) ld.so'
15981   else
15982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15983     soname_spec='${libname}${release}${shared_ext}$major'
15984     dynamic_linker='NetBSD ld.elf_so'
15985   fi
15986   shlibpath_var=LD_LIBRARY_PATH
15987   shlibpath_overrides_runpath=yes
15988   hardcode_into_libs=yes
15989   ;;
15990
15991 newsos6)
15992   version_type=linux
15993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994   shlibpath_var=LD_LIBRARY_PATH
15995   shlibpath_overrides_runpath=yes
15996   ;;
15997
15998 nto-qnx*)
15999   version_type=linux
16000   need_lib_prefix=no
16001   need_version=no
16002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16003   soname_spec='${libname}${release}${shared_ext}$major'
16004   shlibpath_var=LD_LIBRARY_PATH
16005   shlibpath_overrides_runpath=yes
16006   ;;
16007
16008 openbsd*)
16009   version_type=sunos
16010   sys_lib_dlsearch_path_spec="/usr/lib"
16011   need_lib_prefix=no
16012   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16013   case $host_os in
16014     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16015     *)                         need_version=no  ;;
16016   esac
16017   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16018   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16019   shlibpath_var=LD_LIBRARY_PATH
16020   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16021     case $host_os in
16022       openbsd2.[89] | openbsd2.[89].*)
16023         shlibpath_overrides_runpath=no
16024         ;;
16025       *)
16026         shlibpath_overrides_runpath=yes
16027         ;;
16028       esac
16029   else
16030     shlibpath_overrides_runpath=yes
16031   fi
16032   ;;
16033
16034 os2*)
16035   libname_spec='$name'
16036   shrext_cmds=".dll"
16037   need_lib_prefix=no
16038   library_names_spec='$libname${shared_ext} $libname.a'
16039   dynamic_linker='OS/2 ld.exe'
16040   shlibpath_var=LIBPATH
16041   ;;
16042
16043 osf3* | osf4* | osf5*)
16044   version_type=osf
16045   need_lib_prefix=no
16046   need_version=no
16047   soname_spec='${libname}${release}${shared_ext}$major'
16048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049   shlibpath_var=LD_LIBRARY_PATH
16050   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16051   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16052   ;;
16053
16054 rdos*)
16055   dynamic_linker=no
16056   ;;
16057
16058 solaris*)
16059   version_type=linux
16060   need_lib_prefix=no
16061   need_version=no
16062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063   soname_spec='${libname}${release}${shared_ext}$major'
16064   shlibpath_var=LD_LIBRARY_PATH
16065   shlibpath_overrides_runpath=yes
16066   hardcode_into_libs=yes
16067   # ldd complains unless libraries are executable
16068   postinstall_cmds='chmod +x $lib'
16069   ;;
16070
16071 sunos4*)
16072   version_type=sunos
16073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16074   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16075   shlibpath_var=LD_LIBRARY_PATH
16076   shlibpath_overrides_runpath=yes
16077   if test "$with_gnu_ld" = yes; then
16078     need_lib_prefix=no
16079   fi
16080   need_version=yes
16081   ;;
16082
16083 sysv4 | sysv4.3*)
16084   version_type=linux
16085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086   soname_spec='${libname}${release}${shared_ext}$major'
16087   shlibpath_var=LD_LIBRARY_PATH
16088   case $host_vendor in
16089     sni)
16090       shlibpath_overrides_runpath=no
16091       need_lib_prefix=no
16092       export_dynamic_flag_spec='${wl}-Blargedynsym'
16093       runpath_var=LD_RUN_PATH
16094       ;;
16095     siemens)
16096       need_lib_prefix=no
16097       ;;
16098     motorola)
16099       need_lib_prefix=no
16100       need_version=no
16101       shlibpath_overrides_runpath=no
16102       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16103       ;;
16104   esac
16105   ;;
16106
16107 sysv4*MP*)
16108   if test -d /usr/nec ;then
16109     version_type=linux
16110     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16111     soname_spec='$libname${shared_ext}.$major'
16112     shlibpath_var=LD_LIBRARY_PATH
16113   fi
16114   ;;
16115
16116 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16117   version_type=freebsd-elf
16118   need_lib_prefix=no
16119   need_version=no
16120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16121   soname_spec='${libname}${release}${shared_ext}$major'
16122   shlibpath_var=LD_LIBRARY_PATH
16123   hardcode_into_libs=yes
16124   if test "$with_gnu_ld" = yes; then
16125     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16126     shlibpath_overrides_runpath=no
16127   else
16128     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16129     shlibpath_overrides_runpath=yes
16130     case $host_os in
16131       sco3.2v5*)
16132         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16133         ;;
16134     esac
16135   fi
16136   sys_lib_dlsearch_path_spec='/usr/lib'
16137   ;;
16138
16139 uts4*)
16140   version_type=linux
16141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142   soname_spec='${libname}${release}${shared_ext}$major'
16143   shlibpath_var=LD_LIBRARY_PATH
16144   ;;
16145
16146 *)
16147   dynamic_linker=no
16148   ;;
16149 esac
16150 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16151 echo "${ECHO_T}$dynamic_linker" >&6; }
16152 test "$dynamic_linker" = no && can_build_shared=no
16153
16154 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16155   echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16158 fi
16159
16160 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16161 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16162   echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16165 fi
16166
16167 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16168
16169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16170 if test "$GCC" = yes; then
16171   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16172 fi
16173
16174 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16175 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16176 hardcode_action_F77=
16177 if test -n "$hardcode_libdir_flag_spec_F77" || \
16178    test -n "$runpath_var_F77" || \
16179    test "X$hardcode_automatic_F77" = "Xyes" ; then
16180
16181   # We can hardcode non-existant directories.
16182   if test "$hardcode_direct_F77" != no &&
16183      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16184      # have to relink, otherwise we might link with an installed library
16185      # when we should be linking with a yet-to-be-installed one
16186      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16187      test "$hardcode_minus_L_F77" != no; then
16188     # Linking always hardcodes the temporary library directory.
16189     hardcode_action_F77=relink
16190   else
16191     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16192     hardcode_action_F77=immediate
16193   fi
16194 else
16195   # We cannot hardcode anything, or else we can only hardcode existing
16196   # directories.
16197   hardcode_action_F77=unsupported
16198 fi
16199 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16200 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16201
16202 if test "$hardcode_action_F77" = relink; then
16203   # Fast installation is not supported
16204   enable_fast_install=no
16205 elif test "$shlibpath_overrides_runpath" = yes ||
16206      test "$enable_shared" = no; then
16207   # Fast installation is not necessary
16208   enable_fast_install=needless
16209 fi
16210
16211
16212 # The else clause should only fire when bootstrapping the
16213 # libtool distribution, otherwise you forgot to ship ltmain.sh
16214 # with your package, and you will get complaints that there are
16215 # no rules to generate ltmain.sh.
16216 if test -f "$ltmain"; then
16217   # See if we are running on zsh, and set the options which allow our commands through
16218   # without removal of \ escapes.
16219   if test -n "${ZSH_VERSION+set}" ; then
16220     setopt NO_GLOB_SUBST
16221   fi
16222   # Now quote all the things that may contain metacharacters while being
16223   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16224   # variables and quote the copies for generation of the libtool script.
16225   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16226     SED SHELL STRIP \
16227     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16228     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16229     deplibs_check_method reload_flag reload_cmds need_locks \
16230     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16231     lt_cv_sys_global_symbol_to_c_name_address \
16232     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16233     old_postinstall_cmds old_postuninstall_cmds \
16234     compiler_F77 \
16235     CC_F77 \
16236     LD_F77 \
16237     lt_prog_compiler_wl_F77 \
16238     lt_prog_compiler_pic_F77 \
16239     lt_prog_compiler_static_F77 \
16240     lt_prog_compiler_no_builtin_flag_F77 \
16241     export_dynamic_flag_spec_F77 \
16242     thread_safe_flag_spec_F77 \
16243     whole_archive_flag_spec_F77 \
16244     enable_shared_with_static_runtimes_F77 \
16245     old_archive_cmds_F77 \
16246     old_archive_from_new_cmds_F77 \
16247     predep_objects_F77 \
16248     postdep_objects_F77 \
16249     predeps_F77 \
16250     postdeps_F77 \
16251     compiler_lib_search_path_F77 \
16252     compiler_lib_search_dirs_F77 \
16253     archive_cmds_F77 \
16254     archive_expsym_cmds_F77 \
16255     postinstall_cmds_F77 \
16256     postuninstall_cmds_F77 \
16257     old_archive_from_expsyms_cmds_F77 \
16258     allow_undefined_flag_F77 \
16259     no_undefined_flag_F77 \
16260     export_symbols_cmds_F77 \
16261     hardcode_libdir_flag_spec_F77 \
16262     hardcode_libdir_flag_spec_ld_F77 \
16263     hardcode_libdir_separator_F77 \
16264     hardcode_automatic_F77 \
16265     module_cmds_F77 \
16266     module_expsym_cmds_F77 \
16267     lt_cv_prog_compiler_c_o_F77 \
16268     fix_srcfile_path_F77 \
16269     exclude_expsyms_F77 \
16270     include_expsyms_F77; do
16271
16272     case $var in
16273     old_archive_cmds_F77 | \
16274     old_archive_from_new_cmds_F77 | \
16275     archive_cmds_F77 | \
16276     archive_expsym_cmds_F77 | \
16277     module_cmds_F77 | \
16278     module_expsym_cmds_F77 | \
16279     old_archive_from_expsyms_cmds_F77 | \
16280     export_symbols_cmds_F77 | \
16281     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16282     postinstall_cmds | postuninstall_cmds | \
16283     old_postinstall_cmds | old_postuninstall_cmds | \
16284     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16285       # Double-quote double-evaled strings.
16286       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16287       ;;
16288     *)
16289       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16290       ;;
16291     esac
16292   done
16293
16294   case $lt_echo in
16295   *'\$0 --fallback-echo"')
16296     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16297     ;;
16298   esac
16299
16300 cfgfile="$ofile"
16301
16302   cat <<__EOF__ >> "$cfgfile"
16303 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16304
16305 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16306
16307 # Shell to use when invoking shell scripts.
16308 SHELL=$lt_SHELL
16309
16310 # Whether or not to build shared libraries.
16311 build_libtool_libs=$enable_shared
16312
16313 # Whether or not to build static libraries.
16314 build_old_libs=$enable_static
16315
16316 # Whether or not to add -lc for building shared libraries.
16317 build_libtool_need_lc=$archive_cmds_need_lc_F77
16318
16319 # Whether or not to disallow shared libs when runtime libs are static
16320 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16321
16322 # Whether or not to optimize for fast installation.
16323 fast_install=$enable_fast_install
16324
16325 # The host system.
16326 host_alias=$host_alias
16327 host=$host
16328 host_os=$host_os
16329
16330 # The build system.
16331 build_alias=$build_alias
16332 build=$build
16333 build_os=$build_os
16334
16335 # An echo program that does not interpret backslashes.
16336 echo=$lt_echo
16337
16338 # The archiver.
16339 AR=$lt_AR
16340 AR_FLAGS=$lt_AR_FLAGS
16341
16342 # A C compiler.
16343 LTCC=$lt_LTCC
16344
16345 # LTCC compiler flags.
16346 LTCFLAGS=$lt_LTCFLAGS
16347
16348 # A language-specific compiler.
16349 CC=$lt_compiler_F77
16350
16351 # Is the compiler the GNU C compiler?
16352 with_gcc=$GCC_F77
16353
16354 # An ERE matcher.
16355 EGREP=$lt_EGREP
16356
16357 # The linker used to build libraries.
16358 LD=$lt_LD_F77
16359
16360 # Whether we need hard or soft links.
16361 LN_S=$lt_LN_S
16362
16363 # A BSD-compatible nm program.
16364 NM=$lt_NM
16365
16366 # A symbol stripping program
16367 STRIP=$lt_STRIP
16368
16369 # Used to examine libraries when file_magic_cmd begins "file"
16370 MAGIC_CMD=$MAGIC_CMD
16371
16372 # Used on cygwin: DLL creation program.
16373 DLLTOOL="$DLLTOOL"
16374
16375 # Used on cygwin: object dumper.
16376 OBJDUMP="$OBJDUMP"
16377
16378 # Used on cygwin: assembler.
16379 AS="$AS"
16380
16381 # The name of the directory that contains temporary libtool files.
16382 objdir=$objdir
16383
16384 # How to create reloadable object files.
16385 reload_flag=$lt_reload_flag
16386 reload_cmds=$lt_reload_cmds
16387
16388 # How to pass a linker flag through the compiler.
16389 wl=$lt_lt_prog_compiler_wl_F77
16390
16391 # Object file suffix (normally "o").
16392 objext="$ac_objext"
16393
16394 # Old archive suffix (normally "a").
16395 libext="$libext"
16396
16397 # Shared library suffix (normally ".so").
16398 shrext_cmds='$shrext_cmds'
16399
16400 # Executable file suffix (normally "").
16401 exeext="$exeext"
16402
16403 # Additional compiler flags for building library objects.
16404 pic_flag=$lt_lt_prog_compiler_pic_F77
16405 pic_mode=$pic_mode
16406
16407 # What is the maximum length of a command?
16408 max_cmd_len=$lt_cv_sys_max_cmd_len
16409
16410 # Does compiler simultaneously support -c and -o options?
16411 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16412
16413 # Must we lock files when doing compilation?
16414 need_locks=$lt_need_locks
16415
16416 # Do we need the lib prefix for modules?
16417 need_lib_prefix=$need_lib_prefix
16418
16419 # Do we need a version for libraries?
16420 need_version=$need_version
16421
16422 # Whether dlopen is supported.
16423 dlopen_support=$enable_dlopen
16424
16425 # Whether dlopen of programs is supported.
16426 dlopen_self=$enable_dlopen_self
16427
16428 # Whether dlopen of statically linked programs is supported.
16429 dlopen_self_static=$enable_dlopen_self_static
16430
16431 # Compiler flag to prevent dynamic linking.
16432 link_static_flag=$lt_lt_prog_compiler_static_F77
16433
16434 # Compiler flag to turn off builtin functions.
16435 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16436
16437 # Compiler flag to allow reflexive dlopens.
16438 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16439
16440 # Compiler flag to generate shared objects directly from archives.
16441 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16442
16443 # Compiler flag to generate thread-safe objects.
16444 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16445
16446 # Library versioning type.
16447 version_type=$version_type
16448
16449 # Format of library name prefix.
16450 libname_spec=$lt_libname_spec
16451
16452 # List of archive names.  First name is the real one, the rest are links.
16453 # The last name is the one that the linker finds with -lNAME.
16454 library_names_spec=$lt_library_names_spec
16455
16456 # The coded name of the library, if different from the real name.
16457 soname_spec=$lt_soname_spec
16458
16459 # Commands used to build and install an old-style archive.
16460 RANLIB=$lt_RANLIB
16461 old_archive_cmds=$lt_old_archive_cmds_F77
16462 old_postinstall_cmds=$lt_old_postinstall_cmds
16463 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16464
16465 # Create an old-style archive from a shared archive.
16466 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16467
16468 # Create a temporary old-style archive to link instead of a shared archive.
16469 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16470
16471 # Commands used to build and install a shared archive.
16472 archive_cmds=$lt_archive_cmds_F77
16473 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16474 postinstall_cmds=$lt_postinstall_cmds
16475 postuninstall_cmds=$lt_postuninstall_cmds
16476
16477 # Commands used to build a loadable module (assumed same as above if empty)
16478 module_cmds=$lt_module_cmds_F77
16479 module_expsym_cmds=$lt_module_expsym_cmds_F77
16480
16481 # Commands to strip libraries.
16482 old_striplib=$lt_old_striplib
16483 striplib=$lt_striplib
16484
16485 # Dependencies to place before the objects being linked to create a
16486 # shared library.
16487 predep_objects=$lt_predep_objects_F77
16488
16489 # Dependencies to place after the objects being linked to create a
16490 # shared library.
16491 postdep_objects=$lt_postdep_objects_F77
16492
16493 # Dependencies to place before the objects being linked to create a
16494 # shared library.
16495 predeps=$lt_predeps_F77
16496
16497 # Dependencies to place after the objects being linked to create a
16498 # shared library.
16499 postdeps=$lt_postdeps_F77
16500
16501 # The directories searched by this compiler when creating a shared
16502 # library
16503 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16504
16505 # The library search path used internally by the compiler when linking
16506 # a shared library.
16507 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16508
16509 # Method to check whether dependent libraries are shared objects.
16510 deplibs_check_method=$lt_deplibs_check_method
16511
16512 # Command to use when deplibs_check_method == file_magic.
16513 file_magic_cmd=$lt_file_magic_cmd
16514
16515 # Flag that allows shared libraries with undefined symbols to be built.
16516 allow_undefined_flag=$lt_allow_undefined_flag_F77
16517
16518 # Flag that forces no undefined symbols.
16519 no_undefined_flag=$lt_no_undefined_flag_F77
16520
16521 # Commands used to finish a libtool library installation in a directory.
16522 finish_cmds=$lt_finish_cmds
16523
16524 # Same as above, but a single script fragment to be evaled but not shown.
16525 finish_eval=$lt_finish_eval
16526
16527 # Take the output of nm and produce a listing of raw symbols and C names.
16528 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16529
16530 # Transform the output of nm in a proper C declaration
16531 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16532
16533 # Transform the output of nm in a C name address pair
16534 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16535
16536 # This is the shared library runtime path variable.
16537 runpath_var=$runpath_var
16538
16539 # This is the shared library path variable.
16540 shlibpath_var=$shlibpath_var
16541
16542 # Is shlibpath searched before the hard-coded library search path?
16543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16544
16545 # How to hardcode a shared library path into an executable.
16546 hardcode_action=$hardcode_action_F77
16547
16548 # Whether we should hardcode library paths into libraries.
16549 hardcode_into_libs=$hardcode_into_libs
16550
16551 # Flag to hardcode \$libdir into a binary during linking.
16552 # This must work even if \$libdir does not exist.
16553 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16554
16555 # If ld is used when linking, flag to hardcode \$libdir into
16556 # a binary during linking. This must work even if \$libdir does
16557 # not exist.
16558 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16559
16560 # Whether we need a single -rpath flag with a separated argument.
16561 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16562
16563 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16564 # resulting binary.
16565 hardcode_direct=$hardcode_direct_F77
16566
16567 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16568 # resulting binary.
16569 hardcode_minus_L=$hardcode_minus_L_F77
16570
16571 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16572 # the resulting binary.
16573 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16574
16575 # Set to yes if building a shared library automatically hardcodes DIR into the library
16576 # and all subsequent libraries and executables linked against it.
16577 hardcode_automatic=$hardcode_automatic_F77
16578
16579 # Variables whose values should be saved in libtool wrapper scripts and
16580 # restored at relink time.
16581 variables_saved_for_relink="$variables_saved_for_relink"
16582
16583 # Whether libtool must link a program against all its dependency libraries.
16584 link_all_deplibs=$link_all_deplibs_F77
16585
16586 # Compile-time system search path for libraries
16587 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16588
16589 # Run-time system search path for libraries
16590 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16591
16592 # Fix the shell variable \$srcfile for the compiler.
16593 fix_srcfile_path=$lt_fix_srcfile_path
16594
16595 # Set to yes if exported symbols are required.
16596 always_export_symbols=$always_export_symbols_F77
16597
16598 # The commands to list exported symbols.
16599 export_symbols_cmds=$lt_export_symbols_cmds_F77
16600
16601 # The commands to extract the exported symbol list from a shared archive.
16602 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16603
16604 # Symbols that should not be listed in the preloaded symbols.
16605 exclude_expsyms=$lt_exclude_expsyms_F77
16606
16607 # Symbols that must always be exported.
16608 include_expsyms=$lt_include_expsyms_F77
16609
16610 # ### END LIBTOOL TAG CONFIG: $tagname
16611
16612 __EOF__
16613
16614
16615 else
16616   # If there is no Makefile yet, we rely on a make rule to execute
16617   # `config.status --recheck' to rerun these tests and create the
16618   # libtool script then.
16619   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16620   if test -f "$ltmain_in"; then
16621     test -f Makefile && make "$ltmain"
16622   fi
16623 fi
16624
16625
16626 ac_ext=c
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16631
16632 CC="$lt_save_CC"
16633
16634         else
16635           tagname=""
16636         fi
16637         ;;
16638
16639       GCJ)
16640         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16641
16642
16643 # Source file extension for Java test sources.
16644 ac_ext=java
16645
16646 # Object file extension for compiled Java test sources.
16647 objext=o
16648 objext_GCJ=$objext
16649
16650 # Code to be used in simple compile tests
16651 lt_simple_compile_test_code="class foo {}"
16652
16653 # Code to be used in simple link tests
16654 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16655
16656 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16657
16658 # If no C compiler was specified, use CC.
16659 LTCC=${LTCC-"$CC"}
16660
16661 # If no C compiler flags were specified, use CFLAGS.
16662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16663
16664 # Allow CC to be a program name with arguments.
16665 compiler=$CC
16666
16667
16668 # save warnings/boilerplate of simple test code
16669 ac_outfile=conftest.$ac_objext
16670 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16672 _lt_compiler_boilerplate=`cat conftest.err`
16673 $rm conftest*
16674
16675 ac_outfile=conftest.$ac_objext
16676 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16678 _lt_linker_boilerplate=`cat conftest.err`
16679 $rm -r conftest*
16680
16681
16682 # Allow CC to be a program name with arguments.
16683 lt_save_CC="$CC"
16684 CC=${GCJ-"gcj"}
16685 compiler=$CC
16686 compiler_GCJ=$CC
16687 for cc_temp in $compiler""; do
16688   case $cc_temp in
16689     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16690     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16691     \-*) ;;
16692     *) break;;
16693   esac
16694 done
16695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16696
16697
16698 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16699 archive_cmds_need_lc_GCJ=no
16700
16701 old_archive_cmds_GCJ=$old_archive_cmds
16702
16703
16704 lt_prog_compiler_no_builtin_flag_GCJ=
16705
16706 if test "$GCC" = yes; then
16707   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16708
16709
16710 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16711 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16712 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715   lt_cv_prog_compiler_rtti_exceptions=no
16716   ac_outfile=conftest.$ac_objext
16717    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16718    lt_compiler_flag="-fno-rtti -fno-exceptions"
16719    # Insert the option either (1) after the last *FLAGS variable, or
16720    # (2) before a word containing "conftest.", or (3) at the end.
16721    # Note that $ac_compile itself does not contain backslashes and begins
16722    # with a dollar sign (not a hyphen), so the echo should work correctly.
16723    # The option is referenced via a variable to avoid confusing sed.
16724    lt_compile=`echo "$ac_compile" | $SED \
16725    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16726    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16727    -e 's:$: $lt_compiler_flag:'`
16728    (eval echo "\"\$as_me:16728: $lt_compile\"" >&5)
16729    (eval "$lt_compile" 2>conftest.err)
16730    ac_status=$?
16731    cat conftest.err >&5
16732    echo "$as_me:16732: \$? = $ac_status" >&5
16733    if (exit $ac_status) && test -s "$ac_outfile"; then
16734      # The compiler can only warn and ignore the option if not recognized
16735      # So say no if there are warnings other than the usual output.
16736      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16737      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16738      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16739        lt_cv_prog_compiler_rtti_exceptions=yes
16740      fi
16741    fi
16742    $rm conftest*
16743
16744 fi
16745 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16746 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16747
16748 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16749     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16750 else
16751     :
16752 fi
16753
16754 fi
16755
16756 lt_prog_compiler_wl_GCJ=
16757 lt_prog_compiler_pic_GCJ=
16758 lt_prog_compiler_static_GCJ=
16759
16760 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16761 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16762
16763   if test "$GCC" = yes; then
16764     lt_prog_compiler_wl_GCJ='-Wl,'
16765     lt_prog_compiler_static_GCJ='-static'
16766
16767     case $host_os in
16768       aix*)
16769       # All AIX code is PIC.
16770       if test "$host_cpu" = ia64; then
16771         # AIX 5 now supports IA64 processor
16772         lt_prog_compiler_static_GCJ='-Bstatic'
16773       fi
16774       ;;
16775
16776     amigaos*)
16777       # FIXME: we need at least 68020 code to build shared libraries, but
16778       # adding the `-m68020' flag to GCC prevents building anything better,
16779       # like `-m68040'.
16780       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16781       ;;
16782
16783     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16784       # PIC is the default for these OSes.
16785       ;;
16786
16787     mingw* | cygwin* | pw32* | os2*)
16788       # This hack is so that the source file can tell whether it is being
16789       # built for inclusion in a dll (and should export symbols for example).
16790       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16791       # (--disable-auto-import) libraries
16792
16793       ;;
16794
16795     darwin* | rhapsody*)
16796       # PIC is the default on this platform
16797       # Common symbols not allowed in MH_DYLIB files
16798       lt_prog_compiler_pic_GCJ='-fno-common'
16799       ;;
16800
16801     interix[3-9]*)
16802       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16803       # Instead, we relocate shared libraries at runtime.
16804       ;;
16805
16806     msdosdjgpp*)
16807       # Just because we use GCC doesn't mean we suddenly get shared libraries
16808       # on systems that don't support them.
16809       lt_prog_compiler_can_build_shared_GCJ=no
16810       enable_shared=no
16811       ;;
16812
16813     sysv4*MP*)
16814       if test -d /usr/nec; then
16815         lt_prog_compiler_pic_GCJ=-Kconform_pic
16816       fi
16817       ;;
16818
16819     hpux*)
16820       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16821       # not for PA HP-UX.
16822       case $host_cpu in
16823       hppa*64*|ia64*)
16824         # +Z the default
16825         ;;
16826       *)
16827         lt_prog_compiler_pic_GCJ='-fPIC'
16828         ;;
16829       esac
16830       ;;
16831
16832     *)
16833       lt_prog_compiler_pic_GCJ='-fPIC'
16834       ;;
16835     esac
16836   else
16837     # PORTME Check for flag to pass linker flags through the system compiler.
16838     case $host_os in
16839     aix*)
16840       lt_prog_compiler_wl_GCJ='-Wl,'
16841       if test "$host_cpu" = ia64; then
16842         # AIX 5 now supports IA64 processor
16843         lt_prog_compiler_static_GCJ='-Bstatic'
16844       else
16845         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16846       fi
16847       ;;
16848       darwin*)
16849         # PIC is the default on this platform
16850         # Common symbols not allowed in MH_DYLIB files
16851        case $cc_basename in
16852          xlc*)
16853          lt_prog_compiler_pic_GCJ='-qnocommon'
16854          lt_prog_compiler_wl_GCJ='-Wl,'
16855          ;;
16856        esac
16857        ;;
16858
16859     mingw* | cygwin* | pw32* | os2*)
16860       # This hack is so that the source file can tell whether it is being
16861       # built for inclusion in a dll (and should export symbols for example).
16862
16863       ;;
16864
16865     hpux9* | hpux10* | hpux11*)
16866       lt_prog_compiler_wl_GCJ='-Wl,'
16867       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16868       # not for PA HP-UX.
16869       case $host_cpu in
16870       hppa*64*|ia64*)
16871         # +Z the default
16872         ;;
16873       *)
16874         lt_prog_compiler_pic_GCJ='+Z'
16875         ;;
16876       esac
16877       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16878       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16879       ;;
16880
16881     irix5* | irix6* | nonstopux*)
16882       lt_prog_compiler_wl_GCJ='-Wl,'
16883       # PIC (with -KPIC) is the default.
16884       lt_prog_compiler_static_GCJ='-non_shared'
16885       ;;
16886
16887     newsos6)
16888       lt_prog_compiler_pic_GCJ='-KPIC'
16889       lt_prog_compiler_static_GCJ='-Bstatic'
16890       ;;
16891
16892     linux* | k*bsd*-gnu)
16893       case $cc_basename in
16894       icc* | ecc*)
16895         lt_prog_compiler_wl_GCJ='-Wl,'
16896         lt_prog_compiler_pic_GCJ='-KPIC'
16897         lt_prog_compiler_static_GCJ='-static'
16898         ;;
16899       pgcc* | pgf77* | pgf90* | pgf95*)
16900         # Portland Group compilers (*not* the Pentium gcc compiler,
16901         # which looks to be a dead project)
16902         lt_prog_compiler_wl_GCJ='-Wl,'
16903         lt_prog_compiler_pic_GCJ='-fpic'
16904         lt_prog_compiler_static_GCJ='-Bstatic'
16905         ;;
16906       ccc*)
16907         lt_prog_compiler_wl_GCJ='-Wl,'
16908         # All Alpha code is PIC.
16909         lt_prog_compiler_static_GCJ='-non_shared'
16910         ;;
16911       *)
16912         case `$CC -V 2>&1 | sed 5q` in
16913         *Sun\ C*)
16914           # Sun C 5.9
16915           lt_prog_compiler_pic_GCJ='-KPIC'
16916           lt_prog_compiler_static_GCJ='-Bstatic'
16917           lt_prog_compiler_wl_GCJ='-Wl,'
16918           ;;
16919         *Sun\ F*)
16920           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16921           lt_prog_compiler_pic_GCJ='-KPIC'
16922           lt_prog_compiler_static_GCJ='-Bstatic'
16923           lt_prog_compiler_wl_GCJ=''
16924           ;;
16925         esac
16926         ;;
16927       esac
16928       ;;
16929
16930     osf3* | osf4* | osf5*)
16931       lt_prog_compiler_wl_GCJ='-Wl,'
16932       # All OSF/1 code is PIC.
16933       lt_prog_compiler_static_GCJ='-non_shared'
16934       ;;
16935
16936     rdos*)
16937       lt_prog_compiler_static_GCJ='-non_shared'
16938       ;;
16939
16940     solaris*)
16941       lt_prog_compiler_pic_GCJ='-KPIC'
16942       lt_prog_compiler_static_GCJ='-Bstatic'
16943       case $cc_basename in
16944       f77* | f90* | f95*)
16945         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16946       *)
16947         lt_prog_compiler_wl_GCJ='-Wl,';;
16948       esac
16949       ;;
16950
16951     sunos4*)
16952       lt_prog_compiler_wl_GCJ='-Qoption ld '
16953       lt_prog_compiler_pic_GCJ='-PIC'
16954       lt_prog_compiler_static_GCJ='-Bstatic'
16955       ;;
16956
16957     sysv4 | sysv4.2uw2* | sysv4.3*)
16958       lt_prog_compiler_wl_GCJ='-Wl,'
16959       lt_prog_compiler_pic_GCJ='-KPIC'
16960       lt_prog_compiler_static_GCJ='-Bstatic'
16961       ;;
16962
16963     sysv4*MP*)
16964       if test -d /usr/nec ;then
16965         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16966         lt_prog_compiler_static_GCJ='-Bstatic'
16967       fi
16968       ;;
16969
16970     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16971       lt_prog_compiler_wl_GCJ='-Wl,'
16972       lt_prog_compiler_pic_GCJ='-KPIC'
16973       lt_prog_compiler_static_GCJ='-Bstatic'
16974       ;;
16975
16976     unicos*)
16977       lt_prog_compiler_wl_GCJ='-Wl,'
16978       lt_prog_compiler_can_build_shared_GCJ=no
16979       ;;
16980
16981     uts4*)
16982       lt_prog_compiler_pic_GCJ='-pic'
16983       lt_prog_compiler_static_GCJ='-Bstatic'
16984       ;;
16985
16986     *)
16987       lt_prog_compiler_can_build_shared_GCJ=no
16988       ;;
16989     esac
16990   fi
16991
16992 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16993 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16994
16995 #
16996 # Check to make sure the PIC flag actually works.
16997 #
16998 if test -n "$lt_prog_compiler_pic_GCJ"; then
16999
17000 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17001 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17002 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17003   echo $ECHO_N "(cached) $ECHO_C" >&6
17004 else
17005   lt_cv_prog_compiler_pic_works_GCJ=no
17006   ac_outfile=conftest.$ac_objext
17007    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17008    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17009    # Insert the option either (1) after the last *FLAGS variable, or
17010    # (2) before a word containing "conftest.", or (3) at the end.
17011    # Note that $ac_compile itself does not contain backslashes and begins
17012    # with a dollar sign (not a hyphen), so the echo should work correctly.
17013    # The option is referenced via a variable to avoid confusing sed.
17014    lt_compile=`echo "$ac_compile" | $SED \
17015    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17016    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17017    -e 's:$: $lt_compiler_flag:'`
17018    (eval echo "\"\$as_me:17018: $lt_compile\"" >&5)
17019    (eval "$lt_compile" 2>conftest.err)
17020    ac_status=$?
17021    cat conftest.err >&5
17022    echo "$as_me:17022: \$? = $ac_status" >&5
17023    if (exit $ac_status) && test -s "$ac_outfile"; then
17024      # The compiler can only warn and ignore the option if not recognized
17025      # So say no if there are warnings other than the usual output.
17026      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17027      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17028      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17029        lt_cv_prog_compiler_pic_works_GCJ=yes
17030      fi
17031    fi
17032    $rm conftest*
17033
17034 fi
17035 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17036 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17037
17038 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17039     case $lt_prog_compiler_pic_GCJ in
17040      "" | " "*) ;;
17041      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17042      esac
17043 else
17044     lt_prog_compiler_pic_GCJ=
17045      lt_prog_compiler_can_build_shared_GCJ=no
17046 fi
17047
17048 fi
17049 case $host_os in
17050   # For platforms which do not support PIC, -DPIC is meaningless:
17051   *djgpp*)
17052     lt_prog_compiler_pic_GCJ=
17053     ;;
17054   *)
17055     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17056     ;;
17057 esac
17058
17059 #
17060 # Check to make sure the static flag actually works.
17061 #
17062 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17063 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17064 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17065 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17066   echo $ECHO_N "(cached) $ECHO_C" >&6
17067 else
17068   lt_cv_prog_compiler_static_works_GCJ=no
17069    save_LDFLAGS="$LDFLAGS"
17070    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17071    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17072    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17073      # The linker can only warn and ignore the option if not recognized
17074      # So say no if there are warnings
17075      if test -s conftest.err; then
17076        # Append any errors to the config.log.
17077        cat conftest.err 1>&5
17078        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17079        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17080        if diff conftest.exp conftest.er2 >/dev/null; then
17081          lt_cv_prog_compiler_static_works_GCJ=yes
17082        fi
17083      else
17084        lt_cv_prog_compiler_static_works_GCJ=yes
17085      fi
17086    fi
17087    $rm -r conftest*
17088    LDFLAGS="$save_LDFLAGS"
17089
17090 fi
17091 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17092 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17093
17094 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17095     :
17096 else
17097     lt_prog_compiler_static_GCJ=
17098 fi
17099
17100
17101 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17102 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17103 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17104   echo $ECHO_N "(cached) $ECHO_C" >&6
17105 else
17106   lt_cv_prog_compiler_c_o_GCJ=no
17107    $rm -r conftest 2>/dev/null
17108    mkdir conftest
17109    cd conftest
17110    mkdir out
17111    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17112
17113    lt_compiler_flag="-o out/conftest2.$ac_objext"
17114    # Insert the option either (1) after the last *FLAGS variable, or
17115    # (2) before a word containing "conftest.", or (3) at the end.
17116    # Note that $ac_compile itself does not contain backslashes and begins
17117    # with a dollar sign (not a hyphen), so the echo should work correctly.
17118    lt_compile=`echo "$ac_compile" | $SED \
17119    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17120    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17121    -e 's:$: $lt_compiler_flag:'`
17122    (eval echo "\"\$as_me:17122: $lt_compile\"" >&5)
17123    (eval "$lt_compile" 2>out/conftest.err)
17124    ac_status=$?
17125    cat out/conftest.err >&5
17126    echo "$as_me:17126: \$? = $ac_status" >&5
17127    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17128    then
17129      # The compiler can only warn and ignore the option if not recognized
17130      # So say no if there are warnings
17131      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17132      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17133      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17134        lt_cv_prog_compiler_c_o_GCJ=yes
17135      fi
17136    fi
17137    chmod u+w . 2>&5
17138    $rm conftest*
17139    # SGI C++ compiler will create directory out/ii_files/ for
17140    # template instantiation
17141    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17142    $rm out/* && rmdir out
17143    cd ..
17144    rmdir conftest
17145    $rm conftest*
17146
17147 fi
17148 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17150
17151
17152 hard_links="nottested"
17153 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17154   # do not overwrite the value of need_locks provided by the user
17155   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17157   hard_links=yes
17158   $rm conftest*
17159   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17160   touch conftest.a
17161   ln conftest.a conftest.b 2>&5 || hard_links=no
17162   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17163   { echo "$as_me:$LINENO: result: $hard_links" >&5
17164 echo "${ECHO_T}$hard_links" >&6; }
17165   if test "$hard_links" = no; then
17166     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17168     need_locks=warn
17169   fi
17170 else
17171   need_locks=no
17172 fi
17173
17174 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17176
17177   runpath_var=
17178   allow_undefined_flag_GCJ=
17179   enable_shared_with_static_runtimes_GCJ=no
17180   archive_cmds_GCJ=
17181   archive_expsym_cmds_GCJ=
17182   old_archive_From_new_cmds_GCJ=
17183   old_archive_from_expsyms_cmds_GCJ=
17184   export_dynamic_flag_spec_GCJ=
17185   whole_archive_flag_spec_GCJ=
17186   thread_safe_flag_spec_GCJ=
17187   hardcode_libdir_flag_spec_GCJ=
17188   hardcode_libdir_flag_spec_ld_GCJ=
17189   hardcode_libdir_separator_GCJ=
17190   hardcode_direct_GCJ=no
17191   hardcode_minus_L_GCJ=no
17192   hardcode_shlibpath_var_GCJ=unsupported
17193   link_all_deplibs_GCJ=unknown
17194   hardcode_automatic_GCJ=no
17195   module_cmds_GCJ=
17196   module_expsym_cmds_GCJ=
17197   always_export_symbols_GCJ=no
17198   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17199   # include_expsyms should be a list of space-separated symbols to be *always*
17200   # included in the symbol list
17201   include_expsyms_GCJ=
17202   # exclude_expsyms can be an extended regexp of symbols to exclude
17203   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17204   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17205   # as well as any symbol that contains `d'.
17206   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17207   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17208   # platforms (ab)use it in PIC code, but their linkers get confused if
17209   # the symbol is explicitly referenced.  Since portable code cannot
17210   # rely on this symbol name, it's probably fine to never include it in
17211   # preloaded symbol tables.
17212   # Exclude shared library initialization/finalization symbols.
17213   extract_expsyms_cmds=
17214   # Just being paranoid about ensuring that cc_basename is set.
17215   for cc_temp in $compiler""; do
17216   case $cc_temp in
17217     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17218     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17219     \-*) ;;
17220     *) break;;
17221   esac
17222 done
17223 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17224
17225   case $host_os in
17226   cygwin* | mingw* | pw32*)
17227     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17228     # When not using gcc, we currently assume that we are using
17229     # Microsoft Visual C++.
17230     if test "$GCC" != yes; then
17231       with_gnu_ld=no
17232     fi
17233     ;;
17234   interix*)
17235     # we just hope/assume this is gcc and not c89 (= MSVC++)
17236     with_gnu_ld=yes
17237     ;;
17238   openbsd*)
17239     with_gnu_ld=no
17240     ;;
17241   esac
17242
17243   ld_shlibs_GCJ=yes
17244   if test "$with_gnu_ld" = yes; then
17245     # If archive_cmds runs LD, not CC, wlarc should be empty
17246     wlarc='${wl}'
17247
17248     # Set some defaults for GNU ld with shared library support. These
17249     # are reset later if shared libraries are not supported. Putting them
17250     # here allows them to be overridden if necessary.
17251     runpath_var=LD_RUN_PATH
17252     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17253     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17254     # ancient GNU ld didn't support --whole-archive et. al.
17255     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17256         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17257       else
17258         whole_archive_flag_spec_GCJ=
17259     fi
17260     supports_anon_versioning=no
17261     case `$LD -v 2>/dev/null` in
17262       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17263       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17264       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17265       *\ 2.11.*) ;; # other 2.11 versions
17266       *) supports_anon_versioning=yes ;;
17267     esac
17268
17269     # See if GNU ld supports shared libraries.
17270     case $host_os in
17271     aix[3-9]*)
17272       # On AIX/PPC, the GNU linker is very broken
17273       if test "$host_cpu" != ia64; then
17274         ld_shlibs_GCJ=no
17275         cat <<EOF 1>&2
17276
17277 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17278 *** to be unable to reliably create shared libraries on AIX.
17279 *** Therefore, libtool is disabling shared libraries support.  If you
17280 *** really care for shared libraries, you may want to modify your PATH
17281 *** so that a non-GNU linker is found, and then restart.
17282
17283 EOF
17284       fi
17285       ;;
17286
17287     amigaos*)
17288       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17289       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290       hardcode_minus_L_GCJ=yes
17291
17292       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17293       # that the semantics of dynamic libraries on AmigaOS, at least up
17294       # to version 4, is to share data among multiple programs linked
17295       # with the same dynamic library.  Since this doesn't match the
17296       # behavior of shared libraries on other platforms, we can't use
17297       # them.
17298       ld_shlibs_GCJ=no
17299       ;;
17300
17301     beos*)
17302       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17303         allow_undefined_flag_GCJ=unsupported
17304         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17305         # support --undefined.  This deserves some investigation.  FIXME
17306         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17307       else
17308         ld_shlibs_GCJ=no
17309       fi
17310       ;;
17311
17312     cygwin* | mingw* | pw32*)
17313       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17314       # as there is no search path for DLLs.
17315       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17316       allow_undefined_flag_GCJ=unsupported
17317       always_export_symbols_GCJ=no
17318       enable_shared_with_static_runtimes_GCJ=yes
17319       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17320
17321       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17322         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17323         # If the export-symbols file already is a .def file (1st line
17324         # is EXPORTS), use it as is; otherwise, prepend...
17325         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17326           cp $export_symbols $output_objdir/$soname.def;
17327         else
17328           echo EXPORTS > $output_objdir/$soname.def;
17329           cat $export_symbols >> $output_objdir/$soname.def;
17330         fi~
17331         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17332       else
17333         ld_shlibs_GCJ=no
17334       fi
17335       ;;
17336
17337     interix[3-9]*)
17338       hardcode_direct_GCJ=no
17339       hardcode_shlibpath_var_GCJ=no
17340       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17341       export_dynamic_flag_spec_GCJ='${wl}-E'
17342       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17343       # Instead, shared libraries are loaded at an image base (0x10000000 by
17344       # default) and relocated if they conflict, which is a slow very memory
17345       # consuming and fragmenting process.  To avoid this, we pick a random,
17346       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17347       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17348       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17349       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17350       ;;
17351
17352     gnu* | linux* | k*bsd*-gnu)
17353       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17354         tmp_addflag=
17355         case $cc_basename,$host_cpu in
17356         pgcc*)                          # Portland Group C compiler
17357           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17358           tmp_addflag=' $pic_flag'
17359           ;;
17360         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17361           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17362           tmp_addflag=' $pic_flag -Mnomain' ;;
17363         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17364           tmp_addflag=' -i_dynamic' ;;
17365         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17366           tmp_addflag=' -i_dynamic -nofor_main' ;;
17367         ifc* | ifort*)                  # Intel Fortran compiler
17368           tmp_addflag=' -nofor_main' ;;
17369         esac
17370         case `$CC -V 2>&1 | sed 5q` in
17371         *Sun\ C*)                       # Sun C 5.9
17372           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17373           tmp_sharedflag='-G' ;;
17374         *Sun\ F*)                       # Sun Fortran 8.3
17375           tmp_sharedflag='-G' ;;
17376         *)
17377           tmp_sharedflag='-shared' ;;
17378         esac
17379         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17380
17381         if test $supports_anon_versioning = yes; then
17382           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17383   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17384   $echo "local: *; };" >> $output_objdir/$libname.ver~
17385           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17386         fi
17387         link_all_deplibs_GCJ=no
17388       else
17389         ld_shlibs_GCJ=no
17390       fi
17391       ;;
17392
17393     netbsd* | netbsdelf*-gnu)
17394       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17395         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17396         wlarc=
17397       else
17398         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17399         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17400       fi
17401       ;;
17402
17403     solaris*)
17404       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17405         ld_shlibs_GCJ=no
17406         cat <<EOF 1>&2
17407
17408 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17409 *** create shared libraries on Solaris systems.  Therefore, libtool
17410 *** is disabling shared libraries support.  We urge you to upgrade GNU
17411 *** binutils to release 2.9.1 or newer.  Another option is to modify
17412 *** your PATH or compiler configuration so that the native linker is
17413 *** used, and then restart.
17414
17415 EOF
17416       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17417         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17418         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17419       else
17420         ld_shlibs_GCJ=no
17421       fi
17422       ;;
17423
17424     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17425       case `$LD -v 2>&1` in
17426         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17427         ld_shlibs_GCJ=no
17428         cat <<_LT_EOF 1>&2
17429
17430 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17431 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17432 *** is disabling shared libraries support.  We urge you to upgrade GNU
17433 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17434 *** your PATH or compiler configuration so that the native linker is
17435 *** used, and then restart.
17436
17437 _LT_EOF
17438         ;;
17439         *)
17440           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17441             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17442             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17443             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17444           else
17445             ld_shlibs_GCJ=no
17446           fi
17447         ;;
17448       esac
17449       ;;
17450
17451     sunos4*)
17452       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17453       wlarc=
17454       hardcode_direct_GCJ=yes
17455       hardcode_shlibpath_var_GCJ=no
17456       ;;
17457
17458     *)
17459       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17460         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17461         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17462       else
17463         ld_shlibs_GCJ=no
17464       fi
17465       ;;
17466     esac
17467
17468     if test "$ld_shlibs_GCJ" = no; then
17469       runpath_var=
17470       hardcode_libdir_flag_spec_GCJ=
17471       export_dynamic_flag_spec_GCJ=
17472       whole_archive_flag_spec_GCJ=
17473     fi
17474   else
17475     # PORTME fill in a description of your system's linker (not GNU ld)
17476     case $host_os in
17477     aix3*)
17478       allow_undefined_flag_GCJ=unsupported
17479       always_export_symbols_GCJ=yes
17480       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17481       # Note: this linker hardcodes the directories in LIBPATH if there
17482       # are no directories specified by -L.
17483       hardcode_minus_L_GCJ=yes
17484       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17485         # Neither direct hardcoding nor static linking is supported with a
17486         # broken collect2.
17487         hardcode_direct_GCJ=unsupported
17488       fi
17489       ;;
17490
17491     aix[4-9]*)
17492       if test "$host_cpu" = ia64; then
17493         # On IA64, the linker does run time linking by default, so we don't
17494         # have to do anything special.
17495         aix_use_runtimelinking=no
17496         exp_sym_flag='-Bexport'
17497         no_entry_flag=""
17498       else
17499         # If we're using GNU nm, then we don't want the "-C" option.
17500         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17501         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17502           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17503         else
17504           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17505         fi
17506         aix_use_runtimelinking=no
17507
17508         # Test if we are trying to use run time linking or normal
17509         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17510         # need to do runtime linking.
17511         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17512           for ld_flag in $LDFLAGS; do
17513           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17514             aix_use_runtimelinking=yes
17515             break
17516           fi
17517           done
17518           ;;
17519         esac
17520
17521         exp_sym_flag='-bexport'
17522         no_entry_flag='-bnoentry'
17523       fi
17524
17525       # When large executables or shared objects are built, AIX ld can
17526       # have problems creating the table of contents.  If linking a library
17527       # or program results in "error TOC overflow" add -mminimal-toc to
17528       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17529       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17530
17531       archive_cmds_GCJ=''
17532       hardcode_direct_GCJ=yes
17533       hardcode_libdir_separator_GCJ=':'
17534       link_all_deplibs_GCJ=yes
17535
17536       if test "$GCC" = yes; then
17537         case $host_os in aix4.[012]|aix4.[012].*)
17538         # We only want to do this on AIX 4.2 and lower, the check
17539         # below for broken collect2 doesn't work under 4.3+
17540           collect2name=`${CC} -print-prog-name=collect2`
17541           if test -f "$collect2name" && \
17542            strings "$collect2name" | grep resolve_lib_name >/dev/null
17543           then
17544           # We have reworked collect2
17545           :
17546           else
17547           # We have old collect2
17548           hardcode_direct_GCJ=unsupported
17549           # It fails to find uninstalled libraries when the uninstalled
17550           # path is not listed in the libpath.  Setting hardcode_minus_L
17551           # to unsupported forces relinking
17552           hardcode_minus_L_GCJ=yes
17553           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17554           hardcode_libdir_separator_GCJ=
17555           fi
17556           ;;
17557         esac
17558         shared_flag='-shared'
17559         if test "$aix_use_runtimelinking" = yes; then
17560           shared_flag="$shared_flag "'${wl}-G'
17561         fi
17562       else
17563         # not using gcc
17564         if test "$host_cpu" = ia64; then
17565         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17566         # chokes on -Wl,-G. The following line is correct:
17567           shared_flag='-G'
17568         else
17569           if test "$aix_use_runtimelinking" = yes; then
17570             shared_flag='${wl}-G'
17571           else
17572             shared_flag='${wl}-bM:SRE'
17573           fi
17574         fi
17575       fi
17576
17577       # It seems that -bexpall does not export symbols beginning with
17578       # underscore (_), so it is better to generate a list of symbols to export.
17579       always_export_symbols_GCJ=yes
17580       if test "$aix_use_runtimelinking" = yes; then
17581         # Warning - without using the other runtime loading flags (-brtl),
17582         # -berok will link without error, but may produce a broken library.
17583         allow_undefined_flag_GCJ='-berok'
17584        # Determine the default libpath from the value encoded in an empty executable.
17585        cat >conftest.$ac_ext <<_ACEOF
17586 /* confdefs.h.  */
17587 _ACEOF
17588 cat confdefs.h >>conftest.$ac_ext
17589 cat >>conftest.$ac_ext <<_ACEOF
17590 /* end confdefs.h.  */
17591
17592 int
17593 main ()
17594 {
17595
17596   ;
17597   return 0;
17598 }
17599 _ACEOF
17600 rm -f conftest.$ac_objext conftest$ac_exeext
17601 if { (ac_try="$ac_link"
17602 case "(($ac_try" in
17603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17604   *) ac_try_echo=$ac_try;;
17605 esac
17606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17607   (eval "$ac_link") 2>conftest.er1
17608   ac_status=$?
17609   grep -v '^ *+' conftest.er1 >conftest.err
17610   rm -f conftest.er1
17611   cat conftest.err >&5
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); } && {
17614          test -z "$ac_c_werror_flag" ||
17615          test ! -s conftest.err
17616        } && test -s conftest$ac_exeext &&
17617        $as_test_x conftest$ac_exeext; then
17618
17619 lt_aix_libpath_sed='
17620     /Import File Strings/,/^$/ {
17621         /^0/ {
17622             s/^0  *\(.*\)$/\1/
17623             p
17624         }
17625     }'
17626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17627 # Check for a 64-bit object if we didn't find anything.
17628 if test -z "$aix_libpath"; then
17629   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17630 fi
17631 else
17632   echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635
17636 fi
17637
17638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17639       conftest$ac_exeext conftest.$ac_ext
17640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17641
17642        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17643         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17644        else
17645         if test "$host_cpu" = ia64; then
17646           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17647           allow_undefined_flag_GCJ="-z nodefs"
17648           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17649         else
17650          # Determine the default libpath from the value encoded in an empty executable.
17651          cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h.  */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h.  */
17657
17658 int
17659 main ()
17660 {
17661
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest.$ac_objext conftest$ac_exeext
17667 if { (ac_try="$ac_link"
17668 case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_link") 2>conftest.er1
17674   ac_status=$?
17675   grep -v '^ *+' conftest.er1 >conftest.err
17676   rm -f conftest.er1
17677   cat conftest.err >&5
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); } && {
17680          test -z "$ac_c_werror_flag" ||
17681          test ! -s conftest.err
17682        } && test -s conftest$ac_exeext &&
17683        $as_test_x conftest$ac_exeext; then
17684
17685 lt_aix_libpath_sed='
17686     /Import File Strings/,/^$/ {
17687         /^0/ {
17688             s/^0  *\(.*\)$/\1/
17689             p
17690         }
17691     }'
17692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17693 # Check for a 64-bit object if we didn't find anything.
17694 if test -z "$aix_libpath"; then
17695   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17696 fi
17697 else
17698   echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17700
17701
17702 fi
17703
17704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17705       conftest$ac_exeext conftest.$ac_ext
17706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17707
17708          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17709           # Warning - without using the other run time loading flags,
17710           # -berok will link without error, but may produce a broken library.
17711           no_undefined_flag_GCJ=' ${wl}-bernotok'
17712           allow_undefined_flag_GCJ=' ${wl}-berok'
17713           # Exported symbols can be pulled into shared objects from archives
17714           whole_archive_flag_spec_GCJ='$convenience'
17715           archive_cmds_need_lc_GCJ=yes
17716           # This is similar to how AIX traditionally builds its shared libraries.
17717           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17718         fi
17719       fi
17720       ;;
17721
17722     amigaos*)
17723       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17724       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17725       hardcode_minus_L_GCJ=yes
17726       # see comment about different semantics on the GNU ld section
17727       ld_shlibs_GCJ=no
17728       ;;
17729
17730     bsdi[45]*)
17731       export_dynamic_flag_spec_GCJ=-rdynamic
17732       ;;
17733
17734     cygwin* | mingw* | pw32*)
17735       # When not using gcc, we currently assume that we are using
17736       # Microsoft Visual C++.
17737       # hardcode_libdir_flag_spec is actually meaningless, as there is
17738       # no search path for DLLs.
17739       hardcode_libdir_flag_spec_GCJ=' '
17740       allow_undefined_flag_GCJ=unsupported
17741       # Tell ltmain to make .lib files, not .a files.
17742       libext=lib
17743       # Tell ltmain to make .dll files, not .so files.
17744       shrext_cmds=".dll"
17745       # FIXME: Setting linknames here is a bad hack.
17746       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17747       # The linker will automatically build a .lib file if we build a DLL.
17748       old_archive_From_new_cmds_GCJ='true'
17749       # FIXME: Should let the user specify the lib program.
17750       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17751       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17752       enable_shared_with_static_runtimes_GCJ=yes
17753       ;;
17754
17755     darwin* | rhapsody*)
17756       case $host_os in
17757         rhapsody* | darwin1.[012])
17758          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17759          ;;
17760        *) # Darwin 1.3 on
17761          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17762            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17763          else
17764            case ${MACOSX_DEPLOYMENT_TARGET} in
17765              10.[012])
17766                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17767                ;;
17768              10.*)
17769                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17770                ;;
17771            esac
17772          fi
17773          ;;
17774       esac
17775       archive_cmds_need_lc_GCJ=no
17776       hardcode_direct_GCJ=no
17777       hardcode_automatic_GCJ=yes
17778       hardcode_shlibpath_var_GCJ=unsupported
17779       whole_archive_flag_spec_GCJ=''
17780       link_all_deplibs_GCJ=yes
17781     if test "$GCC" = yes ; then
17782         output_verbose_link_cmd='echo'
17783         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17784         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17785         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17786         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17787     else
17788       case $cc_basename in
17789         xlc*)
17790          output_verbose_link_cmd='echo'
17791          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17792          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17793           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17794          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17795           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17796           ;;
17797        *)
17798          ld_shlibs_GCJ=no
17799           ;;
17800       esac
17801     fi
17802       ;;
17803
17804     dgux*)
17805       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17806       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17807       hardcode_shlibpath_var_GCJ=no
17808       ;;
17809
17810     freebsd1*)
17811       ld_shlibs_GCJ=no
17812       ;;
17813
17814     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17815     # support.  Future versions do this automatically, but an explicit c++rt0.o
17816     # does not break anything, and helps significantly (at the cost of a little
17817     # extra space).
17818     freebsd2.2*)
17819       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17820       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17821       hardcode_direct_GCJ=yes
17822       hardcode_shlibpath_var_GCJ=no
17823       ;;
17824
17825     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17826     freebsd2*)
17827       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17828       hardcode_direct_GCJ=yes
17829       hardcode_minus_L_GCJ=yes
17830       hardcode_shlibpath_var_GCJ=no
17831       ;;
17832
17833     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17834     freebsd* | dragonfly*)
17835       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17836       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17837       hardcode_direct_GCJ=yes
17838       hardcode_shlibpath_var_GCJ=no
17839       ;;
17840
17841     hpux9*)
17842       if test "$GCC" = yes; then
17843         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17844       else
17845         archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17846       fi
17847       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17848       hardcode_libdir_separator_GCJ=:
17849       hardcode_direct_GCJ=yes
17850
17851       # hardcode_minus_L: Not really in the search PATH,
17852       # but as the default location of the library.
17853       hardcode_minus_L_GCJ=yes
17854       export_dynamic_flag_spec_GCJ='${wl}-E'
17855       ;;
17856
17857     hpux10*)
17858       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17859         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17860       else
17861         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17862       fi
17863       if test "$with_gnu_ld" = no; then
17864         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17865         hardcode_libdir_separator_GCJ=:
17866
17867         hardcode_direct_GCJ=yes
17868         export_dynamic_flag_spec_GCJ='${wl}-E'
17869
17870         # hardcode_minus_L: Not really in the search PATH,
17871         # but as the default location of the library.
17872         hardcode_minus_L_GCJ=yes
17873       fi
17874       ;;
17875
17876     hpux11*)
17877       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17878         case $host_cpu in
17879         hppa*64*)
17880           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17881           ;;
17882         ia64*)
17883           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17884           ;;
17885         *)
17886           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17887           ;;
17888         esac
17889       else
17890         case $host_cpu in
17891         hppa*64*)
17892           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17893           ;;
17894         ia64*)
17895           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17896           ;;
17897         *)
17898           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17899           ;;
17900         esac
17901       fi
17902       if test "$with_gnu_ld" = no; then
17903         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17904         hardcode_libdir_separator_GCJ=:
17905
17906         case $host_cpu in
17907         hppa*64*|ia64*)
17908           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17909           hardcode_direct_GCJ=no
17910           hardcode_shlibpath_var_GCJ=no
17911           ;;
17912         *)
17913           hardcode_direct_GCJ=yes
17914           export_dynamic_flag_spec_GCJ='${wl}-E'
17915
17916           # hardcode_minus_L: Not really in the search PATH,
17917           # but as the default location of the library.
17918           hardcode_minus_L_GCJ=yes
17919           ;;
17920         esac
17921       fi
17922       ;;
17923
17924     irix5* | irix6* | nonstopux*)
17925       if test "$GCC" = yes; then
17926         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17927       else
17928         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17929         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17930       fi
17931       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17932       hardcode_libdir_separator_GCJ=:
17933       link_all_deplibs_GCJ=yes
17934       ;;
17935
17936     netbsd* | netbsdelf*-gnu)
17937       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17938         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17939       else
17940         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17941       fi
17942       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17943       hardcode_direct_GCJ=yes
17944       hardcode_shlibpath_var_GCJ=no
17945       ;;
17946
17947     newsos6)
17948       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17949       hardcode_direct_GCJ=yes
17950       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17951       hardcode_libdir_separator_GCJ=:
17952       hardcode_shlibpath_var_GCJ=no
17953       ;;
17954
17955     openbsd*)
17956       if test -f /usr/libexec/ld.so; then
17957         hardcode_direct_GCJ=yes
17958         hardcode_shlibpath_var_GCJ=no
17959         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17960           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17961           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17962           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17963           export_dynamic_flag_spec_GCJ='${wl}-E'
17964         else
17965           case $host_os in
17966            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17967              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17968              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17969              ;;
17970            *)
17971              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17972              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17973              ;;
17974           esac
17975         fi
17976       else
17977         ld_shlibs_GCJ=no
17978       fi
17979       ;;
17980
17981     os2*)
17982       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17983       hardcode_minus_L_GCJ=yes
17984       allow_undefined_flag_GCJ=unsupported
17985       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17986       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17987       ;;
17988
17989     osf3*)
17990       if test "$GCC" = yes; then
17991         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17992         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17993       else
17994         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17995         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17996       fi
17997       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17998       hardcode_libdir_separator_GCJ=:
17999       ;;
18000
18001     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18002       if test "$GCC" = yes; then
18003         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18004         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18005         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18006       else
18007         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18008         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18009         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18010         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18011
18012         # Both c and cxx compiler support -rpath directly
18013         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18014       fi
18015       hardcode_libdir_separator_GCJ=:
18016       ;;
18017
18018     solaris*)
18019       no_undefined_flag_GCJ=' -z text'
18020       if test "$GCC" = yes; then
18021         wlarc='${wl}'
18022         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18023         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18024           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18025       else
18026         wlarc=''
18027         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18028         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18029         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18030       fi
18031       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18032       hardcode_shlibpath_var_GCJ=no
18033       case $host_os in
18034       solaris2.[0-5] | solaris2.[0-5].*) ;;
18035       *)
18036         # The compiler driver will combine and reorder linker options,
18037         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18038         # but is careful enough not to reorder.
18039         # Supported since Solaris 2.6 (maybe 2.5.1?)
18040         if test "$GCC" = yes; then
18041           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18042         else
18043           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18044         fi
18045         ;;
18046       esac
18047       link_all_deplibs_GCJ=yes
18048       ;;
18049
18050     sunos4*)
18051       if test "x$host_vendor" = xsequent; then
18052         # Use $CC to link under sequent, because it throws in some extra .o
18053         # files that make .init and .fini sections work.
18054         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18055       else
18056         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18057       fi
18058       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18059       hardcode_direct_GCJ=yes
18060       hardcode_minus_L_GCJ=yes
18061       hardcode_shlibpath_var_GCJ=no
18062       ;;
18063
18064     sysv4)
18065       case $host_vendor in
18066         sni)
18067           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18068           hardcode_direct_GCJ=yes # is this really true???
18069         ;;
18070         siemens)
18071           ## LD is ld it makes a PLAMLIB
18072           ## CC just makes a GrossModule.
18073           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18074           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18075           hardcode_direct_GCJ=no
18076         ;;
18077         motorola)
18078           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18079           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18080         ;;
18081       esac
18082       runpath_var='LD_RUN_PATH'
18083       hardcode_shlibpath_var_GCJ=no
18084       ;;
18085
18086     sysv4.3*)
18087       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088       hardcode_shlibpath_var_GCJ=no
18089       export_dynamic_flag_spec_GCJ='-Bexport'
18090       ;;
18091
18092     sysv4*MP*)
18093       if test -d /usr/nec; then
18094         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095         hardcode_shlibpath_var_GCJ=no
18096         runpath_var=LD_RUN_PATH
18097         hardcode_runpath_var=yes
18098         ld_shlibs_GCJ=yes
18099       fi
18100       ;;
18101
18102     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18103       no_undefined_flag_GCJ='${wl}-z,text'
18104       archive_cmds_need_lc_GCJ=no
18105       hardcode_shlibpath_var_GCJ=no
18106       runpath_var='LD_RUN_PATH'
18107
18108       if test "$GCC" = yes; then
18109         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18110         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18111       else
18112         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18113         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18114       fi
18115       ;;
18116
18117     sysv5* | sco3.2v5* | sco5v6*)
18118       # Note: We can NOT use -z defs as we might desire, because we do not
18119       # link with -lc, and that would cause any symbols used from libc to
18120       # always be unresolved, which means just about no library would
18121       # ever link correctly.  If we're not using GNU ld we use -z text
18122       # though, which does catch some bad symbols but isn't as heavy-handed
18123       # as -z defs.
18124       no_undefined_flag_GCJ='${wl}-z,text'
18125       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18126       archive_cmds_need_lc_GCJ=no
18127       hardcode_shlibpath_var_GCJ=no
18128       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18129       hardcode_libdir_separator_GCJ=':'
18130       link_all_deplibs_GCJ=yes
18131       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18132       runpath_var='LD_RUN_PATH'
18133
18134       if test "$GCC" = yes; then
18135         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18136         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18137       else
18138         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18139         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18140       fi
18141       ;;
18142
18143     uts4*)
18144       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18145       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18146       hardcode_shlibpath_var_GCJ=no
18147       ;;
18148
18149     *)
18150       ld_shlibs_GCJ=no
18151       ;;
18152     esac
18153   fi
18154
18155 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18156 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18157 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18158
18159 #
18160 # Do we need to explicitly link libc?
18161 #
18162 case "x$archive_cmds_need_lc_GCJ" in
18163 x|xyes)
18164   # Assume -lc should be added
18165   archive_cmds_need_lc_GCJ=yes
18166
18167   if test "$enable_shared" = yes && test "$GCC" = yes; then
18168     case $archive_cmds_GCJ in
18169     *'~'*)
18170       # FIXME: we may have to deal with multi-command sequences.
18171       ;;
18172     '$CC '*)
18173       # Test whether the compiler implicitly links with -lc since on some
18174       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18175       # to ld, don't add -lc before -lgcc.
18176       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18177 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18178       $rm conftest*
18179       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18180
18181       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18182   (eval $ac_compile) 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } 2>conftest.err; then
18186         soname=conftest
18187         lib=conftest
18188         libobjs=conftest.$ac_objext
18189         deplibs=
18190         wl=$lt_prog_compiler_wl_GCJ
18191         pic_flag=$lt_prog_compiler_pic_GCJ
18192         compiler_flags=-v
18193         linker_flags=-v
18194         verstring=
18195         output_objdir=.
18196         libname=conftest
18197         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18198         allow_undefined_flag_GCJ=
18199         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18200   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }
18204         then
18205           archive_cmds_need_lc_GCJ=no
18206         else
18207           archive_cmds_need_lc_GCJ=yes
18208         fi
18209         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18210       else
18211         cat conftest.err 1>&5
18212       fi
18213       $rm conftest*
18214       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18215 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18216       ;;
18217     esac
18218   fi
18219   ;;
18220 esac
18221
18222 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18223 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18224 library_names_spec=
18225 libname_spec='lib$name'
18226 soname_spec=
18227 shrext_cmds=".so"
18228 postinstall_cmds=
18229 postuninstall_cmds=
18230 finish_cmds=
18231 finish_eval=
18232 shlibpath_var=
18233 shlibpath_overrides_runpath=unknown
18234 version_type=none
18235 dynamic_linker="$host_os ld.so"
18236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18237
18238 need_lib_prefix=unknown
18239 hardcode_into_libs=no
18240
18241 # when you set need_version to no, make sure it does not cause -set_version
18242 # flags to be left without arguments
18243 need_version=unknown
18244
18245 case $host_os in
18246 aix3*)
18247   version_type=linux
18248   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18249   shlibpath_var=LIBPATH
18250
18251   # AIX 3 has no versioning support, so we append a major version to the name.
18252   soname_spec='${libname}${release}${shared_ext}$major'
18253   ;;
18254
18255 aix[4-9]*)
18256   version_type=linux
18257   need_lib_prefix=no
18258   need_version=no
18259   hardcode_into_libs=yes
18260   if test "$host_cpu" = ia64; then
18261     # AIX 5 supports IA64
18262     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18263     shlibpath_var=LD_LIBRARY_PATH
18264   else
18265     # With GCC up to 2.95.x, collect2 would create an import file
18266     # for dependence libraries.  The import file would start with
18267     # the line `#! .'.  This would cause the generated library to
18268     # depend on `.', always an invalid library.  This was fixed in
18269     # development snapshots of GCC prior to 3.0.
18270     case $host_os in
18271       aix4 | aix4.[01] | aix4.[01].*)
18272       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18273            echo ' yes '
18274            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18275         :
18276       else
18277         can_build_shared=no
18278       fi
18279       ;;
18280     esac
18281     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18282     # soname into executable. Probably we can add versioning support to
18283     # collect2, so additional links can be useful in future.
18284     if test "$aix_use_runtimelinking" = yes; then
18285       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18286       # instead of lib<name>.a to let people know that these are not
18287       # typical AIX shared libraries.
18288       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289     else
18290       # We preserve .a as extension for shared libraries through AIX4.2
18291       # and later when we are not doing run time linking.
18292       library_names_spec='${libname}${release}.a $libname.a'
18293       soname_spec='${libname}${release}${shared_ext}$major'
18294     fi
18295     shlibpath_var=LIBPATH
18296   fi
18297   ;;
18298
18299 amigaos*)
18300   library_names_spec='$libname.ixlibrary $libname.a'
18301   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18302   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18303   ;;
18304
18305 beos*)
18306   library_names_spec='${libname}${shared_ext}'
18307   dynamic_linker="$host_os ld.so"
18308   shlibpath_var=LIBRARY_PATH
18309   ;;
18310
18311 bsdi[45]*)
18312   version_type=linux
18313   need_version=no
18314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315   soname_spec='${libname}${release}${shared_ext}$major'
18316   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18317   shlibpath_var=LD_LIBRARY_PATH
18318   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18319   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18320   # the default ld.so.conf also contains /usr/contrib/lib and
18321   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18322   # libtool to hard-code these into programs
18323   ;;
18324
18325 cygwin* | mingw* | pw32*)
18326   version_type=windows
18327   shrext_cmds=".dll"
18328   need_version=no
18329   need_lib_prefix=no
18330
18331   case $GCC,$host_os in
18332   yes,cygwin* | yes,mingw* | yes,pw32*)
18333     library_names_spec='$libname.dll.a'
18334     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18335     postinstall_cmds='base_file=`basename \${file}`~
18336       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18337       dldir=$destdir/`dirname \$dlpath`~
18338       test -d \$dldir || mkdir -p \$dldir~
18339       $install_prog $dir/$dlname \$dldir/$dlname~
18340       chmod a+x \$dldir/$dlname'
18341     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18342       dlpath=$dir/\$dldll~
18343        $rm \$dlpath'
18344     shlibpath_overrides_runpath=yes
18345
18346     case $host_os in
18347     cygwin*)
18348       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18349       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18350       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18351       ;;
18352     mingw*)
18353       # MinGW DLLs use traditional 'lib' prefix
18354       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18355       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18356       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18357         # It is most probably a Windows format PATH printed by
18358         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18359         # path with ; separators, and with drive letters. We can handle the
18360         # drive letters (cygwin fileutils understands them), so leave them,
18361         # especially as we might pass files found there to a mingw objdump,
18362         # which wouldn't understand a cygwinified path. Ahh.
18363         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18364       else
18365         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18366       fi
18367       ;;
18368     pw32*)
18369       # pw32 DLLs use 'pw' prefix rather than 'lib'
18370       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18371       ;;
18372     esac
18373     ;;
18374
18375   *)
18376     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18377     ;;
18378   esac
18379   dynamic_linker='Win32 ld.exe'
18380   # FIXME: first we should search . and the directory the executable is in
18381   shlibpath_var=PATH
18382   ;;
18383
18384 darwin* | rhapsody*)
18385   dynamic_linker="$host_os dyld"
18386   version_type=darwin
18387   need_lib_prefix=no
18388   need_version=no
18389   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18390   soname_spec='${libname}${release}${major}$shared_ext'
18391   shlibpath_overrides_runpath=yes
18392   shlibpath_var=DYLD_LIBRARY_PATH
18393   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18394
18395   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18396   ;;
18397
18398 dgux*)
18399   version_type=linux
18400   need_lib_prefix=no
18401   need_version=no
18402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18403   soname_spec='${libname}${release}${shared_ext}$major'
18404   shlibpath_var=LD_LIBRARY_PATH
18405   ;;
18406
18407 freebsd1*)
18408   dynamic_linker=no
18409   ;;
18410
18411 freebsd* | dragonfly*)
18412   # DragonFly does not have aout.  When/if they implement a new
18413   # versioning mechanism, adjust this.
18414   if test -x /usr/bin/objformat; then
18415     objformat=`/usr/bin/objformat`
18416   else
18417     case $host_os in
18418     freebsd[123]*) objformat=aout ;;
18419     *) objformat=elf ;;
18420     esac
18421   fi
18422   version_type=freebsd-$objformat
18423   case $version_type in
18424     freebsd-elf*)
18425       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18426       need_version=no
18427       need_lib_prefix=no
18428       ;;
18429     freebsd-*)
18430       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18431       need_version=yes
18432       ;;
18433   esac
18434   shlibpath_var=LD_LIBRARY_PATH
18435   case $host_os in
18436   freebsd2*)
18437     shlibpath_overrides_runpath=yes
18438     ;;
18439   freebsd3.[01]* | freebsdelf3.[01]*)
18440     shlibpath_overrides_runpath=yes
18441     hardcode_into_libs=yes
18442     ;;
18443   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18444   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18445     shlibpath_overrides_runpath=no
18446     hardcode_into_libs=yes
18447     ;;
18448   *) # from 4.6 on, and DragonFly
18449     shlibpath_overrides_runpath=yes
18450     hardcode_into_libs=yes
18451     ;;
18452   esac
18453   ;;
18454
18455 gnu*)
18456   version_type=linux
18457   need_lib_prefix=no
18458   need_version=no
18459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18460   soname_spec='${libname}${release}${shared_ext}$major'
18461   shlibpath_var=LD_LIBRARY_PATH
18462   hardcode_into_libs=yes
18463   ;;
18464
18465 hpux9* | hpux10* | hpux11*)
18466   # Give a soname corresponding to the major version so that dld.sl refuses to
18467   # link against other versions.
18468   version_type=sunos
18469   need_lib_prefix=no
18470   need_version=no
18471   case $host_cpu in
18472   ia64*)
18473     shrext_cmds='.so'
18474     hardcode_into_libs=yes
18475     dynamic_linker="$host_os dld.so"
18476     shlibpath_var=LD_LIBRARY_PATH
18477     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18478     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18479     soname_spec='${libname}${release}${shared_ext}$major'
18480     if test "X$HPUX_IA64_MODE" = X32; then
18481       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18482     else
18483       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18484     fi
18485     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18486     ;;
18487    hppa*64*)
18488      shrext_cmds='.sl'
18489      hardcode_into_libs=yes
18490      dynamic_linker="$host_os dld.sl"
18491      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18492      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18493      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494      soname_spec='${libname}${release}${shared_ext}$major'
18495      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18496      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18497      ;;
18498    *)
18499     shrext_cmds='.sl'
18500     dynamic_linker="$host_os dld.sl"
18501     shlibpath_var=SHLIB_PATH
18502     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504     soname_spec='${libname}${release}${shared_ext}$major'
18505     ;;
18506   esac
18507   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18508   postinstall_cmds='chmod 555 $lib'
18509   ;;
18510
18511 interix[3-9]*)
18512   version_type=linux
18513   need_lib_prefix=no
18514   need_version=no
18515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18516   soname_spec='${libname}${release}${shared_ext}$major'
18517   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18518   shlibpath_var=LD_LIBRARY_PATH
18519   shlibpath_overrides_runpath=no
18520   hardcode_into_libs=yes
18521   ;;
18522
18523 irix5* | irix6* | nonstopux*)
18524   case $host_os in
18525     nonstopux*) version_type=nonstopux ;;
18526     *)
18527         if test "$lt_cv_prog_gnu_ld" = yes; then
18528                 version_type=linux
18529         else
18530                 version_type=irix
18531         fi ;;
18532   esac
18533   need_lib_prefix=no
18534   need_version=no
18535   soname_spec='${libname}${release}${shared_ext}$major'
18536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18537   case $host_os in
18538   irix5* | nonstopux*)
18539     libsuff= shlibsuff=
18540     ;;
18541   *)
18542     case $LD in # libtool.m4 will add one of these switches to LD
18543     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18544       libsuff= shlibsuff= libmagic=32-bit;;
18545     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18546       libsuff=32 shlibsuff=N32 libmagic=N32;;
18547     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18548       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18549     *) libsuff= shlibsuff= libmagic=never-match;;
18550     esac
18551     ;;
18552   esac
18553   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18554   shlibpath_overrides_runpath=no
18555   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18556   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18557   hardcode_into_libs=yes
18558   ;;
18559
18560 # No shared lib support for Linux oldld, aout, or coff.
18561 linux*oldld* | linux*aout* | linux*coff*)
18562   dynamic_linker=no
18563   ;;
18564
18565 # This must be Linux ELF.
18566 linux* | k*bsd*-gnu)
18567   version_type=linux
18568   need_lib_prefix=no
18569   need_version=no
18570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18571   soname_spec='${libname}${release}${shared_ext}$major'
18572   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18573   shlibpath_var=LD_LIBRARY_PATH
18574   shlibpath_overrides_runpath=no
18575   # This implies no fast_install, which is unacceptable.
18576   # Some rework will be needed to allow for fast_install
18577   # before this can be enabled.
18578   hardcode_into_libs=yes
18579
18580   # Append ld.so.conf contents to the search path
18581   if test -f /etc/ld.so.conf; then
18582     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18583     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18584   fi
18585
18586   # We used to test for /lib/ld.so.1 and disable shared libraries on
18587   # powerpc, because MkLinux only supported shared libraries with the
18588   # GNU dynamic linker.  Since this was broken with cross compilers,
18589   # most powerpc-linux boxes support dynamic linking these days and
18590   # people can always --disable-shared, the test was removed, and we
18591   # assume the GNU/Linux dynamic linker is in use.
18592   dynamic_linker='GNU/Linux ld.so'
18593   ;;
18594
18595 netbsdelf*-gnu)
18596   version_type=linux
18597   need_lib_prefix=no
18598   need_version=no
18599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18600   soname_spec='${libname}${release}${shared_ext}$major'
18601   shlibpath_var=LD_LIBRARY_PATH
18602   shlibpath_overrides_runpath=no
18603   hardcode_into_libs=yes
18604   dynamic_linker='NetBSD ld.elf_so'
18605   ;;
18606
18607 netbsd*)
18608   version_type=sunos
18609   need_lib_prefix=no
18610   need_version=no
18611   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18612     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18613     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18614     dynamic_linker='NetBSD (a.out) ld.so'
18615   else
18616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18617     soname_spec='${libname}${release}${shared_ext}$major'
18618     dynamic_linker='NetBSD ld.elf_so'
18619   fi
18620   shlibpath_var=LD_LIBRARY_PATH
18621   shlibpath_overrides_runpath=yes
18622   hardcode_into_libs=yes
18623   ;;
18624
18625 newsos6)
18626   version_type=linux
18627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628   shlibpath_var=LD_LIBRARY_PATH
18629   shlibpath_overrides_runpath=yes
18630   ;;
18631
18632 nto-qnx*)
18633   version_type=linux
18634   need_lib_prefix=no
18635   need_version=no
18636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18637   soname_spec='${libname}${release}${shared_ext}$major'
18638   shlibpath_var=LD_LIBRARY_PATH
18639   shlibpath_overrides_runpath=yes
18640   ;;
18641
18642 openbsd*)
18643   version_type=sunos
18644   sys_lib_dlsearch_path_spec="/usr/lib"
18645   need_lib_prefix=no
18646   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18647   case $host_os in
18648     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18649     *)                         need_version=no  ;;
18650   esac
18651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18653   shlibpath_var=LD_LIBRARY_PATH
18654   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18655     case $host_os in
18656       openbsd2.[89] | openbsd2.[89].*)
18657         shlibpath_overrides_runpath=no
18658         ;;
18659       *)
18660         shlibpath_overrides_runpath=yes
18661         ;;
18662       esac
18663   else
18664     shlibpath_overrides_runpath=yes
18665   fi
18666   ;;
18667
18668 os2*)
18669   libname_spec='$name'
18670   shrext_cmds=".dll"
18671   need_lib_prefix=no
18672   library_names_spec='$libname${shared_ext} $libname.a'
18673   dynamic_linker='OS/2 ld.exe'
18674   shlibpath_var=LIBPATH
18675   ;;
18676
18677 osf3* | osf4* | osf5*)
18678   version_type=osf
18679   need_lib_prefix=no
18680   need_version=no
18681   soname_spec='${libname}${release}${shared_ext}$major'
18682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18683   shlibpath_var=LD_LIBRARY_PATH
18684   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18685   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18686   ;;
18687
18688 rdos*)
18689   dynamic_linker=no
18690   ;;
18691
18692 solaris*)
18693   version_type=linux
18694   need_lib_prefix=no
18695   need_version=no
18696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18697   soname_spec='${libname}${release}${shared_ext}$major'
18698   shlibpath_var=LD_LIBRARY_PATH
18699   shlibpath_overrides_runpath=yes
18700   hardcode_into_libs=yes
18701   # ldd complains unless libraries are executable
18702   postinstall_cmds='chmod +x $lib'
18703   ;;
18704
18705 sunos4*)
18706   version_type=sunos
18707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18708   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18709   shlibpath_var=LD_LIBRARY_PATH
18710   shlibpath_overrides_runpath=yes
18711   if test "$with_gnu_ld" = yes; then
18712     need_lib_prefix=no
18713   fi
18714   need_version=yes
18715   ;;
18716
18717 sysv4 | sysv4.3*)
18718   version_type=linux
18719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18720   soname_spec='${libname}${release}${shared_ext}$major'
18721   shlibpath_var=LD_LIBRARY_PATH
18722   case $host_vendor in
18723     sni)
18724       shlibpath_overrides_runpath=no
18725       need_lib_prefix=no
18726       export_dynamic_flag_spec='${wl}-Blargedynsym'
18727       runpath_var=LD_RUN_PATH
18728       ;;
18729     siemens)
18730       need_lib_prefix=no
18731       ;;
18732     motorola)
18733       need_lib_prefix=no
18734       need_version=no
18735       shlibpath_overrides_runpath=no
18736       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18737       ;;
18738   esac
18739   ;;
18740
18741 sysv4*MP*)
18742   if test -d /usr/nec ;then
18743     version_type=linux
18744     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18745     soname_spec='$libname${shared_ext}.$major'
18746     shlibpath_var=LD_LIBRARY_PATH
18747   fi
18748   ;;
18749
18750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18751   version_type=freebsd-elf
18752   need_lib_prefix=no
18753   need_version=no
18754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18755   soname_spec='${libname}${release}${shared_ext}$major'
18756   shlibpath_var=LD_LIBRARY_PATH
18757   hardcode_into_libs=yes
18758   if test "$with_gnu_ld" = yes; then
18759     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18760     shlibpath_overrides_runpath=no
18761   else
18762     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18763     shlibpath_overrides_runpath=yes
18764     case $host_os in
18765       sco3.2v5*)
18766         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18767         ;;
18768     esac
18769   fi
18770   sys_lib_dlsearch_path_spec='/usr/lib'
18771   ;;
18772
18773 uts4*)
18774   version_type=linux
18775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776   soname_spec='${libname}${release}${shared_ext}$major'
18777   shlibpath_var=LD_LIBRARY_PATH
18778   ;;
18779
18780 *)
18781   dynamic_linker=no
18782   ;;
18783 esac
18784 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18785 echo "${ECHO_T}$dynamic_linker" >&6; }
18786 test "$dynamic_linker" = no && can_build_shared=no
18787
18788 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18789   echo $ECHO_N "(cached) $ECHO_C" >&6
18790 else
18791   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18792 fi
18793
18794 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18795 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18796   echo $ECHO_N "(cached) $ECHO_C" >&6
18797 else
18798   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18799 fi
18800
18801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18802
18803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18804 if test "$GCC" = yes; then
18805   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18806 fi
18807
18808 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18809 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18810 hardcode_action_GCJ=
18811 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18812    test -n "$runpath_var_GCJ" || \
18813    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18814
18815   # We can hardcode non-existant directories.
18816   if test "$hardcode_direct_GCJ" != no &&
18817      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18818      # have to relink, otherwise we might link with an installed library
18819      # when we should be linking with a yet-to-be-installed one
18820      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18821      test "$hardcode_minus_L_GCJ" != no; then
18822     # Linking always hardcodes the temporary library directory.
18823     hardcode_action_GCJ=relink
18824   else
18825     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18826     hardcode_action_GCJ=immediate
18827   fi
18828 else
18829   # We cannot hardcode anything, or else we can only hardcode existing
18830   # directories.
18831   hardcode_action_GCJ=unsupported
18832 fi
18833 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18834 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18835
18836 if test "$hardcode_action_GCJ" = relink; then
18837   # Fast installation is not supported
18838   enable_fast_install=no
18839 elif test "$shlibpath_overrides_runpath" = yes ||
18840      test "$enable_shared" = no; then
18841   # Fast installation is not necessary
18842   enable_fast_install=needless
18843 fi
18844
18845
18846 # The else clause should only fire when bootstrapping the
18847 # libtool distribution, otherwise you forgot to ship ltmain.sh
18848 # with your package, and you will get complaints that there are
18849 # no rules to generate ltmain.sh.
18850 if test -f "$ltmain"; then
18851   # See if we are running on zsh, and set the options which allow our commands through
18852   # without removal of \ escapes.
18853   if test -n "${ZSH_VERSION+set}" ; then
18854     setopt NO_GLOB_SUBST
18855   fi
18856   # Now quote all the things that may contain metacharacters while being
18857   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18858   # variables and quote the copies for generation of the libtool script.
18859   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18860     SED SHELL STRIP \
18861     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18862     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18863     deplibs_check_method reload_flag reload_cmds need_locks \
18864     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18865     lt_cv_sys_global_symbol_to_c_name_address \
18866     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18867     old_postinstall_cmds old_postuninstall_cmds \
18868     compiler_GCJ \
18869     CC_GCJ \
18870     LD_GCJ \
18871     lt_prog_compiler_wl_GCJ \
18872     lt_prog_compiler_pic_GCJ \
18873     lt_prog_compiler_static_GCJ \
18874     lt_prog_compiler_no_builtin_flag_GCJ \
18875     export_dynamic_flag_spec_GCJ \
18876     thread_safe_flag_spec_GCJ \
18877     whole_archive_flag_spec_GCJ \
18878     enable_shared_with_static_runtimes_GCJ \
18879     old_archive_cmds_GCJ \
18880     old_archive_from_new_cmds_GCJ \
18881     predep_objects_GCJ \
18882     postdep_objects_GCJ \
18883     predeps_GCJ \
18884     postdeps_GCJ \
18885     compiler_lib_search_path_GCJ \
18886     compiler_lib_search_dirs_GCJ \
18887     archive_cmds_GCJ \
18888     archive_expsym_cmds_GCJ \
18889     postinstall_cmds_GCJ \
18890     postuninstall_cmds_GCJ \
18891     old_archive_from_expsyms_cmds_GCJ \
18892     allow_undefined_flag_GCJ \
18893     no_undefined_flag_GCJ \
18894     export_symbols_cmds_GCJ \
18895     hardcode_libdir_flag_spec_GCJ \
18896     hardcode_libdir_flag_spec_ld_GCJ \
18897     hardcode_libdir_separator_GCJ \
18898     hardcode_automatic_GCJ \
18899     module_cmds_GCJ \
18900     module_expsym_cmds_GCJ \
18901     lt_cv_prog_compiler_c_o_GCJ \
18902     fix_srcfile_path_GCJ \
18903     exclude_expsyms_GCJ \
18904     include_expsyms_GCJ; do
18905
18906     case $var in
18907     old_archive_cmds_GCJ | \
18908     old_archive_from_new_cmds_GCJ | \
18909     archive_cmds_GCJ | \
18910     archive_expsym_cmds_GCJ | \
18911     module_cmds_GCJ | \
18912     module_expsym_cmds_GCJ | \
18913     old_archive_from_expsyms_cmds_GCJ | \
18914     export_symbols_cmds_GCJ | \
18915     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18916     postinstall_cmds | postuninstall_cmds | \
18917     old_postinstall_cmds | old_postuninstall_cmds | \
18918     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18919       # Double-quote double-evaled strings.
18920       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18921       ;;
18922     *)
18923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18924       ;;
18925     esac
18926   done
18927
18928   case $lt_echo in
18929   *'\$0 --fallback-echo"')
18930     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18931     ;;
18932   esac
18933
18934 cfgfile="$ofile"
18935
18936   cat <<__EOF__ >> "$cfgfile"
18937 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18938
18939 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18940
18941 # Shell to use when invoking shell scripts.
18942 SHELL=$lt_SHELL
18943
18944 # Whether or not to build shared libraries.
18945 build_libtool_libs=$enable_shared
18946
18947 # Whether or not to build static libraries.
18948 build_old_libs=$enable_static
18949
18950 # Whether or not to add -lc for building shared libraries.
18951 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18952
18953 # Whether or not to disallow shared libs when runtime libs are static
18954 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18955
18956 # Whether or not to optimize for fast installation.
18957 fast_install=$enable_fast_install
18958
18959 # The host system.
18960 host_alias=$host_alias
18961 host=$host
18962 host_os=$host_os
18963
18964 # The build system.
18965 build_alias=$build_alias
18966 build=$build
18967 build_os=$build_os
18968
18969 # An echo program that does not interpret backslashes.
18970 echo=$lt_echo
18971
18972 # The archiver.
18973 AR=$lt_AR
18974 AR_FLAGS=$lt_AR_FLAGS
18975
18976 # A C compiler.
18977 LTCC=$lt_LTCC
18978
18979 # LTCC compiler flags.
18980 LTCFLAGS=$lt_LTCFLAGS
18981
18982 # A language-specific compiler.
18983 CC=$lt_compiler_GCJ
18984
18985 # Is the compiler the GNU C compiler?
18986 with_gcc=$GCC_GCJ
18987
18988 # An ERE matcher.
18989 EGREP=$lt_EGREP
18990
18991 # The linker used to build libraries.
18992 LD=$lt_LD_GCJ
18993
18994 # Whether we need hard or soft links.
18995 LN_S=$lt_LN_S
18996
18997 # A BSD-compatible nm program.
18998 NM=$lt_NM
18999
19000 # A symbol stripping program
19001 STRIP=$lt_STRIP
19002
19003 # Used to examine libraries when file_magic_cmd begins "file"
19004 MAGIC_CMD=$MAGIC_CMD
19005
19006 # Used on cygwin: DLL creation program.
19007 DLLTOOL="$DLLTOOL"
19008
19009 # Used on cygwin: object dumper.
19010 OBJDUMP="$OBJDUMP"
19011
19012 # Used on cygwin: assembler.
19013 AS="$AS"
19014
19015 # The name of the directory that contains temporary libtool files.
19016 objdir=$objdir
19017
19018 # How to create reloadable object files.
19019 reload_flag=$lt_reload_flag
19020 reload_cmds=$lt_reload_cmds
19021
19022 # How to pass a linker flag through the compiler.
19023 wl=$lt_lt_prog_compiler_wl_GCJ
19024
19025 # Object file suffix (normally "o").
19026 objext="$ac_objext"
19027
19028 # Old archive suffix (normally "a").
19029 libext="$libext"
19030
19031 # Shared library suffix (normally ".so").
19032 shrext_cmds='$shrext_cmds'
19033
19034 # Executable file suffix (normally "").
19035 exeext="$exeext"
19036
19037 # Additional compiler flags for building library objects.
19038 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19039 pic_mode=$pic_mode
19040
19041 # What is the maximum length of a command?
19042 max_cmd_len=$lt_cv_sys_max_cmd_len
19043
19044 # Does compiler simultaneously support -c and -o options?
19045 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19046
19047 # Must we lock files when doing compilation?
19048 need_locks=$lt_need_locks
19049
19050 # Do we need the lib prefix for modules?
19051 need_lib_prefix=$need_lib_prefix
19052
19053 # Do we need a version for libraries?
19054 need_version=$need_version
19055
19056 # Whether dlopen is supported.
19057 dlopen_support=$enable_dlopen
19058
19059 # Whether dlopen of programs is supported.
19060 dlopen_self=$enable_dlopen_self
19061
19062 # Whether dlopen of statically linked programs is supported.
19063 dlopen_self_static=$enable_dlopen_self_static
19064
19065 # Compiler flag to prevent dynamic linking.
19066 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19067
19068 # Compiler flag to turn off builtin functions.
19069 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19070
19071 # Compiler flag to allow reflexive dlopens.
19072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19073
19074 # Compiler flag to generate shared objects directly from archives.
19075 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19076
19077 # Compiler flag to generate thread-safe objects.
19078 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19079
19080 # Library versioning type.
19081 version_type=$version_type
19082
19083 # Format of library name prefix.
19084 libname_spec=$lt_libname_spec
19085
19086 # List of archive names.  First name is the real one, the rest are links.
19087 # The last name is the one that the linker finds with -lNAME.
19088 library_names_spec=$lt_library_names_spec
19089
19090 # The coded name of the library, if different from the real name.
19091 soname_spec=$lt_soname_spec
19092
19093 # Commands used to build and install an old-style archive.
19094 RANLIB=$lt_RANLIB
19095 old_archive_cmds=$lt_old_archive_cmds_GCJ
19096 old_postinstall_cmds=$lt_old_postinstall_cmds
19097 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19098
19099 # Create an old-style archive from a shared archive.
19100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19101
19102 # Create a temporary old-style archive to link instead of a shared archive.
19103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19104
19105 # Commands used to build and install a shared archive.
19106 archive_cmds=$lt_archive_cmds_GCJ
19107 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19108 postinstall_cmds=$lt_postinstall_cmds
19109 postuninstall_cmds=$lt_postuninstall_cmds
19110
19111 # Commands used to build a loadable module (assumed same as above if empty)
19112 module_cmds=$lt_module_cmds_GCJ
19113 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19114
19115 # Commands to strip libraries.
19116 old_striplib=$lt_old_striplib
19117 striplib=$lt_striplib
19118
19119 # Dependencies to place before the objects being linked to create a
19120 # shared library.
19121 predep_objects=$lt_predep_objects_GCJ
19122
19123 # Dependencies to place after the objects being linked to create a
19124 # shared library.
19125 postdep_objects=$lt_postdep_objects_GCJ
19126
19127 # Dependencies to place before the objects being linked to create a
19128 # shared library.
19129 predeps=$lt_predeps_GCJ
19130
19131 # Dependencies to place after the objects being linked to create a
19132 # shared library.
19133 postdeps=$lt_postdeps_GCJ
19134
19135 # The directories searched by this compiler when creating a shared
19136 # library
19137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19138
19139 # The library search path used internally by the compiler when linking
19140 # a shared library.
19141 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19142
19143 # Method to check whether dependent libraries are shared objects.
19144 deplibs_check_method=$lt_deplibs_check_method
19145
19146 # Command to use when deplibs_check_method == file_magic.
19147 file_magic_cmd=$lt_file_magic_cmd
19148
19149 # Flag that allows shared libraries with undefined symbols to be built.
19150 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19151
19152 # Flag that forces no undefined symbols.
19153 no_undefined_flag=$lt_no_undefined_flag_GCJ
19154
19155 # Commands used to finish a libtool library installation in a directory.
19156 finish_cmds=$lt_finish_cmds
19157
19158 # Same as above, but a single script fragment to be evaled but not shown.
19159 finish_eval=$lt_finish_eval
19160
19161 # Take the output of nm and produce a listing of raw symbols and C names.
19162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19163
19164 # Transform the output of nm in a proper C declaration
19165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19166
19167 # Transform the output of nm in a C name address pair
19168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19169
19170 # This is the shared library runtime path variable.
19171 runpath_var=$runpath_var
19172
19173 # This is the shared library path variable.
19174 shlibpath_var=$shlibpath_var
19175
19176 # Is shlibpath searched before the hard-coded library search path?
19177 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19178
19179 # How to hardcode a shared library path into an executable.
19180 hardcode_action=$hardcode_action_GCJ
19181
19182 # Whether we should hardcode library paths into libraries.
19183 hardcode_into_libs=$hardcode_into_libs
19184
19185 # Flag to hardcode \$libdir into a binary during linking.
19186 # This must work even if \$libdir does not exist.
19187 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19188
19189 # If ld is used when linking, flag to hardcode \$libdir into
19190 # a binary during linking. This must work even if \$libdir does
19191 # not exist.
19192 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19193
19194 # Whether we need a single -rpath flag with a separated argument.
19195 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19196
19197 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19198 # resulting binary.
19199 hardcode_direct=$hardcode_direct_GCJ
19200
19201 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19202 # resulting binary.
19203 hardcode_minus_L=$hardcode_minus_L_GCJ
19204
19205 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19206 # the resulting binary.
19207 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19208
19209 # Set to yes if building a shared library automatically hardcodes DIR into the library
19210 # and all subsequent libraries and executables linked against it.
19211 hardcode_automatic=$hardcode_automatic_GCJ
19212
19213 # Variables whose values should be saved in libtool wrapper scripts and
19214 # restored at relink time.
19215 variables_saved_for_relink="$variables_saved_for_relink"
19216
19217 # Whether libtool must link a program against all its dependency libraries.
19218 link_all_deplibs=$link_all_deplibs_GCJ
19219
19220 # Compile-time system search path for libraries
19221 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19222
19223 # Run-time system search path for libraries
19224 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19225
19226 # Fix the shell variable \$srcfile for the compiler.
19227 fix_srcfile_path=$lt_fix_srcfile_path
19228
19229 # Set to yes if exported symbols are required.
19230 always_export_symbols=$always_export_symbols_GCJ
19231
19232 # The commands to list exported symbols.
19233 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19234
19235 # The commands to extract the exported symbol list from a shared archive.
19236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19237
19238 # Symbols that should not be listed in the preloaded symbols.
19239 exclude_expsyms=$lt_exclude_expsyms_GCJ
19240
19241 # Symbols that must always be exported.
19242 include_expsyms=$lt_include_expsyms_GCJ
19243
19244 # ### END LIBTOOL TAG CONFIG: $tagname
19245
19246 __EOF__
19247
19248
19249 else
19250   # If there is no Makefile yet, we rely on a make rule to execute
19251   # `config.status --recheck' to rerun these tests and create the
19252   # libtool script then.
19253   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19254   if test -f "$ltmain_in"; then
19255     test -f Makefile && make "$ltmain"
19256   fi
19257 fi
19258
19259
19260 ac_ext=c
19261 ac_cpp='$CPP $CPPFLAGS'
19262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19265
19266 CC="$lt_save_CC"
19267
19268         else
19269           tagname=""
19270         fi
19271         ;;
19272
19273       RC)
19274
19275
19276 # Source file extension for RC test sources.
19277 ac_ext=rc
19278
19279 # Object file extension for compiled RC test sources.
19280 objext=o
19281 objext_RC=$objext
19282
19283 # Code to be used in simple compile tests
19284 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19285
19286 # Code to be used in simple link tests
19287 lt_simple_link_test_code="$lt_simple_compile_test_code"
19288
19289 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19290
19291 # If no C compiler was specified, use CC.
19292 LTCC=${LTCC-"$CC"}
19293
19294 # If no C compiler flags were specified, use CFLAGS.
19295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19296
19297 # Allow CC to be a program name with arguments.
19298 compiler=$CC
19299
19300
19301 # save warnings/boilerplate of simple test code
19302 ac_outfile=conftest.$ac_objext
19303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19305 _lt_compiler_boilerplate=`cat conftest.err`
19306 $rm conftest*
19307
19308 ac_outfile=conftest.$ac_objext
19309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19311 _lt_linker_boilerplate=`cat conftest.err`
19312 $rm -r conftest*
19313
19314
19315 # Allow CC to be a program name with arguments.
19316 lt_save_CC="$CC"
19317 CC=${RC-"windres"}
19318 compiler=$CC
19319 compiler_RC=$CC
19320 for cc_temp in $compiler""; do
19321   case $cc_temp in
19322     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19323     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19324     \-*) ;;
19325     *) break;;
19326   esac
19327 done
19328 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19329
19330 lt_cv_prog_compiler_c_o_RC=yes
19331
19332 # The else clause should only fire when bootstrapping the
19333 # libtool distribution, otherwise you forgot to ship ltmain.sh
19334 # with your package, and you will get complaints that there are
19335 # no rules to generate ltmain.sh.
19336 if test -f "$ltmain"; then
19337   # See if we are running on zsh, and set the options which allow our commands through
19338   # without removal of \ escapes.
19339   if test -n "${ZSH_VERSION+set}" ; then
19340     setopt NO_GLOB_SUBST
19341   fi
19342   # Now quote all the things that may contain metacharacters while being
19343   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19344   # variables and quote the copies for generation of the libtool script.
19345   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19346     SED SHELL STRIP \
19347     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19348     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19349     deplibs_check_method reload_flag reload_cmds need_locks \
19350     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19351     lt_cv_sys_global_symbol_to_c_name_address \
19352     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19353     old_postinstall_cmds old_postuninstall_cmds \
19354     compiler_RC \
19355     CC_RC \
19356     LD_RC \
19357     lt_prog_compiler_wl_RC \
19358     lt_prog_compiler_pic_RC \
19359     lt_prog_compiler_static_RC \
19360     lt_prog_compiler_no_builtin_flag_RC \
19361     export_dynamic_flag_spec_RC \
19362     thread_safe_flag_spec_RC \
19363     whole_archive_flag_spec_RC \
19364     enable_shared_with_static_runtimes_RC \
19365     old_archive_cmds_RC \
19366     old_archive_from_new_cmds_RC \
19367     predep_objects_RC \
19368     postdep_objects_RC \
19369     predeps_RC \
19370     postdeps_RC \
19371     compiler_lib_search_path_RC \
19372     compiler_lib_search_dirs_RC \
19373     archive_cmds_RC \
19374     archive_expsym_cmds_RC \
19375     postinstall_cmds_RC \
19376     postuninstall_cmds_RC \
19377     old_archive_from_expsyms_cmds_RC \
19378     allow_undefined_flag_RC \
19379     no_undefined_flag_RC \
19380     export_symbols_cmds_RC \
19381     hardcode_libdir_flag_spec_RC \
19382     hardcode_libdir_flag_spec_ld_RC \
19383     hardcode_libdir_separator_RC \
19384     hardcode_automatic_RC \
19385     module_cmds_RC \
19386     module_expsym_cmds_RC \
19387     lt_cv_prog_compiler_c_o_RC \
19388     fix_srcfile_path_RC \
19389     exclude_expsyms_RC \
19390     include_expsyms_RC; do
19391
19392     case $var in
19393     old_archive_cmds_RC | \
19394     old_archive_from_new_cmds_RC | \
19395     archive_cmds_RC | \
19396     archive_expsym_cmds_RC | \
19397     module_cmds_RC | \
19398     module_expsym_cmds_RC | \
19399     old_archive_from_expsyms_cmds_RC | \
19400     export_symbols_cmds_RC | \
19401     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19402     postinstall_cmds | postuninstall_cmds | \
19403     old_postinstall_cmds | old_postuninstall_cmds | \
19404     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19405       # Double-quote double-evaled strings.
19406       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19407       ;;
19408     *)
19409       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19410       ;;
19411     esac
19412   done
19413
19414   case $lt_echo in
19415   *'\$0 --fallback-echo"')
19416     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19417     ;;
19418   esac
19419
19420 cfgfile="$ofile"
19421
19422   cat <<__EOF__ >> "$cfgfile"
19423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19424
19425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19426
19427 # Shell to use when invoking shell scripts.
19428 SHELL=$lt_SHELL
19429
19430 # Whether or not to build shared libraries.
19431 build_libtool_libs=$enable_shared
19432
19433 # Whether or not to build static libraries.
19434 build_old_libs=$enable_static
19435
19436 # Whether or not to add -lc for building shared libraries.
19437 build_libtool_need_lc=$archive_cmds_need_lc_RC
19438
19439 # Whether or not to disallow shared libs when runtime libs are static
19440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19441
19442 # Whether or not to optimize for fast installation.
19443 fast_install=$enable_fast_install
19444
19445 # The host system.
19446 host_alias=$host_alias
19447 host=$host
19448 host_os=$host_os
19449
19450 # The build system.
19451 build_alias=$build_alias
19452 build=$build
19453 build_os=$build_os
19454
19455 # An echo program that does not interpret backslashes.
19456 echo=$lt_echo
19457
19458 # The archiver.
19459 AR=$lt_AR
19460 AR_FLAGS=$lt_AR_FLAGS
19461
19462 # A C compiler.
19463 LTCC=$lt_LTCC
19464
19465 # LTCC compiler flags.
19466 LTCFLAGS=$lt_LTCFLAGS
19467
19468 # A language-specific compiler.
19469 CC=$lt_compiler_RC
19470
19471 # Is the compiler the GNU C compiler?
19472 with_gcc=$GCC_RC
19473
19474 # An ERE matcher.
19475 EGREP=$lt_EGREP
19476
19477 # The linker used to build libraries.
19478 LD=$lt_LD_RC
19479
19480 # Whether we need hard or soft links.
19481 LN_S=$lt_LN_S
19482
19483 # A BSD-compatible nm program.
19484 NM=$lt_NM
19485
19486 # A symbol stripping program
19487 STRIP=$lt_STRIP
19488
19489 # Used to examine libraries when file_magic_cmd begins "file"
19490 MAGIC_CMD=$MAGIC_CMD
19491
19492 # Used on cygwin: DLL creation program.
19493 DLLTOOL="$DLLTOOL"
19494
19495 # Used on cygwin: object dumper.
19496 OBJDUMP="$OBJDUMP"
19497
19498 # Used on cygwin: assembler.
19499 AS="$AS"
19500
19501 # The name of the directory that contains temporary libtool files.
19502 objdir=$objdir
19503
19504 # How to create reloadable object files.
19505 reload_flag=$lt_reload_flag
19506 reload_cmds=$lt_reload_cmds
19507
19508 # How to pass a linker flag through the compiler.
19509 wl=$lt_lt_prog_compiler_wl_RC
19510
19511 # Object file suffix (normally "o").
19512 objext="$ac_objext"
19513
19514 # Old archive suffix (normally "a").
19515 libext="$libext"
19516
19517 # Shared library suffix (normally ".so").
19518 shrext_cmds='$shrext_cmds'
19519
19520 # Executable file suffix (normally "").
19521 exeext="$exeext"
19522
19523 # Additional compiler flags for building library objects.
19524 pic_flag=$lt_lt_prog_compiler_pic_RC
19525 pic_mode=$pic_mode
19526
19527 # What is the maximum length of a command?
19528 max_cmd_len=$lt_cv_sys_max_cmd_len
19529
19530 # Does compiler simultaneously support -c and -o options?
19531 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19532
19533 # Must we lock files when doing compilation?
19534 need_locks=$lt_need_locks
19535
19536 # Do we need the lib prefix for modules?
19537 need_lib_prefix=$need_lib_prefix
19538
19539 # Do we need a version for libraries?
19540 need_version=$need_version
19541
19542 # Whether dlopen is supported.
19543 dlopen_support=$enable_dlopen
19544
19545 # Whether dlopen of programs is supported.
19546 dlopen_self=$enable_dlopen_self
19547
19548 # Whether dlopen of statically linked programs is supported.
19549 dlopen_self_static=$enable_dlopen_self_static
19550
19551 # Compiler flag to prevent dynamic linking.
19552 link_static_flag=$lt_lt_prog_compiler_static_RC
19553
19554 # Compiler flag to turn off builtin functions.
19555 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19556
19557 # Compiler flag to allow reflexive dlopens.
19558 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19559
19560 # Compiler flag to generate shared objects directly from archives.
19561 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19562
19563 # Compiler flag to generate thread-safe objects.
19564 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19565
19566 # Library versioning type.
19567 version_type=$version_type
19568
19569 # Format of library name prefix.
19570 libname_spec=$lt_libname_spec
19571
19572 # List of archive names.  First name is the real one, the rest are links.
19573 # The last name is the one that the linker finds with -lNAME.
19574 library_names_spec=$lt_library_names_spec
19575
19576 # The coded name of the library, if different from the real name.
19577 soname_spec=$lt_soname_spec
19578
19579 # Commands used to build and install an old-style archive.
19580 RANLIB=$lt_RANLIB
19581 old_archive_cmds=$lt_old_archive_cmds_RC
19582 old_postinstall_cmds=$lt_old_postinstall_cmds
19583 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19584
19585 # Create an old-style archive from a shared archive.
19586 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19587
19588 # Create a temporary old-style archive to link instead of a shared archive.
19589 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19590
19591 # Commands used to build and install a shared archive.
19592 archive_cmds=$lt_archive_cmds_RC
19593 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19594 postinstall_cmds=$lt_postinstall_cmds
19595 postuninstall_cmds=$lt_postuninstall_cmds
19596
19597 # Commands used to build a loadable module (assumed same as above if empty)
19598 module_cmds=$lt_module_cmds_RC
19599 module_expsym_cmds=$lt_module_expsym_cmds_RC
19600
19601 # Commands to strip libraries.
19602 old_striplib=$lt_old_striplib
19603 striplib=$lt_striplib
19604
19605 # Dependencies to place before the objects being linked to create a
19606 # shared library.
19607 predep_objects=$lt_predep_objects_RC
19608
19609 # Dependencies to place after the objects being linked to create a
19610 # shared library.
19611 postdep_objects=$lt_postdep_objects_RC
19612
19613 # Dependencies to place before the objects being linked to create a
19614 # shared library.
19615 predeps=$lt_predeps_RC
19616
19617 # Dependencies to place after the objects being linked to create a
19618 # shared library.
19619 postdeps=$lt_postdeps_RC
19620
19621 # The directories searched by this compiler when creating a shared
19622 # library
19623 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19624
19625 # The library search path used internally by the compiler when linking
19626 # a shared library.
19627 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19628
19629 # Method to check whether dependent libraries are shared objects.
19630 deplibs_check_method=$lt_deplibs_check_method
19631
19632 # Command to use when deplibs_check_method == file_magic.
19633 file_magic_cmd=$lt_file_magic_cmd
19634
19635 # Flag that allows shared libraries with undefined symbols to be built.
19636 allow_undefined_flag=$lt_allow_undefined_flag_RC
19637
19638 # Flag that forces no undefined symbols.
19639 no_undefined_flag=$lt_no_undefined_flag_RC
19640
19641 # Commands used to finish a libtool library installation in a directory.
19642 finish_cmds=$lt_finish_cmds
19643
19644 # Same as above, but a single script fragment to be evaled but not shown.
19645 finish_eval=$lt_finish_eval
19646
19647 # Take the output of nm and produce a listing of raw symbols and C names.
19648 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19649
19650 # Transform the output of nm in a proper C declaration
19651 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19652
19653 # Transform the output of nm in a C name address pair
19654 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19655
19656 # This is the shared library runtime path variable.
19657 runpath_var=$runpath_var
19658
19659 # This is the shared library path variable.
19660 shlibpath_var=$shlibpath_var
19661
19662 # Is shlibpath searched before the hard-coded library search path?
19663 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19664
19665 # How to hardcode a shared library path into an executable.
19666 hardcode_action=$hardcode_action_RC
19667
19668 # Whether we should hardcode library paths into libraries.
19669 hardcode_into_libs=$hardcode_into_libs
19670
19671 # Flag to hardcode \$libdir into a binary during linking.
19672 # This must work even if \$libdir does not exist.
19673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19674
19675 # If ld is used when linking, flag to hardcode \$libdir into
19676 # a binary during linking. This must work even if \$libdir does
19677 # not exist.
19678 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19679
19680 # Whether we need a single -rpath flag with a separated argument.
19681 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19682
19683 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19684 # resulting binary.
19685 hardcode_direct=$hardcode_direct_RC
19686
19687 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19688 # resulting binary.
19689 hardcode_minus_L=$hardcode_minus_L_RC
19690
19691 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19692 # the resulting binary.
19693 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19694
19695 # Set to yes if building a shared library automatically hardcodes DIR into the library
19696 # and all subsequent libraries and executables linked against it.
19697 hardcode_automatic=$hardcode_automatic_RC
19698
19699 # Variables whose values should be saved in libtool wrapper scripts and
19700 # restored at relink time.
19701 variables_saved_for_relink="$variables_saved_for_relink"
19702
19703 # Whether libtool must link a program against all its dependency libraries.
19704 link_all_deplibs=$link_all_deplibs_RC
19705
19706 # Compile-time system search path for libraries
19707 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19708
19709 # Run-time system search path for libraries
19710 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19711
19712 # Fix the shell variable \$srcfile for the compiler.
19713 fix_srcfile_path=$lt_fix_srcfile_path
19714
19715 # Set to yes if exported symbols are required.
19716 always_export_symbols=$always_export_symbols_RC
19717
19718 # The commands to list exported symbols.
19719 export_symbols_cmds=$lt_export_symbols_cmds_RC
19720
19721 # The commands to extract the exported symbol list from a shared archive.
19722 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19723
19724 # Symbols that should not be listed in the preloaded symbols.
19725 exclude_expsyms=$lt_exclude_expsyms_RC
19726
19727 # Symbols that must always be exported.
19728 include_expsyms=$lt_include_expsyms_RC
19729
19730 # ### END LIBTOOL TAG CONFIG: $tagname
19731
19732 __EOF__
19733
19734
19735 else
19736   # If there is no Makefile yet, we rely on a make rule to execute
19737   # `config.status --recheck' to rerun these tests and create the
19738   # libtool script then.
19739   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19740   if test -f "$ltmain_in"; then
19741     test -f Makefile && make "$ltmain"
19742   fi
19743 fi
19744
19745
19746 ac_ext=c
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751
19752 CC="$lt_save_CC"
19753
19754         ;;
19755
19756       *)
19757         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19758 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19759    { (exit 1); exit 1; }; }
19760         ;;
19761       esac
19762
19763       # Append the new tag name to the list of available tags.
19764       if test -n "$tagname" ; then
19765       available_tags="$available_tags $tagname"
19766     fi
19767     fi
19768   done
19769   IFS="$lt_save_ifs"
19770
19771   # Now substitute the updated list of available tags.
19772   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19773     mv "${ofile}T" "$ofile"
19774     chmod +x "$ofile"
19775   else
19776     rm -f "${ofile}T"
19777     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19778 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19779    { (exit 1); exit 1; }; }
19780   fi
19781 fi
19782
19783
19784
19785 # This can be used to rebuild libtool when needed
19786 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19787
19788 # Always use our own libtool.
19789 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19790
19791 # Prevent multiple expansion
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814 # Check whether some low-level functions/files are available
19815 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19817 if test "${ac_cv_header_stdc+set}" = set; then
19818   echo $ECHO_N "(cached) $ECHO_C" >&6
19819 else
19820   cat >conftest.$ac_ext <<_ACEOF
19821 /* confdefs.h.  */
19822 _ACEOF
19823 cat confdefs.h >>conftest.$ac_ext
19824 cat >>conftest.$ac_ext <<_ACEOF
19825 /* end confdefs.h.  */
19826 #include <stdlib.h>
19827 #include <stdarg.h>
19828 #include <string.h>
19829 #include <float.h>
19830
19831 int
19832 main ()
19833 {
19834
19835   ;
19836   return 0;
19837 }
19838 _ACEOF
19839 rm -f conftest.$ac_objext
19840 if { (ac_try="$ac_compile"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_compile") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } && {
19853          test -z "$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        } && test -s conftest.$ac_objext; then
19856   ac_cv_header_stdc=yes
19857 else
19858   echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861         ac_cv_header_stdc=no
19862 fi
19863
19864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19865
19866 if test $ac_cv_header_stdc = yes; then
19867   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19868   cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h.  */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h.  */
19874 #include <string.h>
19875
19876 _ACEOF
19877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19878   $EGREP "memchr" >/dev/null 2>&1; then
19879   :
19880 else
19881   ac_cv_header_stdc=no
19882 fi
19883 rm -f conftest*
19884
19885 fi
19886
19887 if test $ac_cv_header_stdc = yes; then
19888   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19889   cat >conftest.$ac_ext <<_ACEOF
19890 /* confdefs.h.  */
19891 _ACEOF
19892 cat confdefs.h >>conftest.$ac_ext
19893 cat >>conftest.$ac_ext <<_ACEOF
19894 /* end confdefs.h.  */
19895 #include <stdlib.h>
19896
19897 _ACEOF
19898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19899   $EGREP "free" >/dev/null 2>&1; then
19900   :
19901 else
19902   ac_cv_header_stdc=no
19903 fi
19904 rm -f conftest*
19905
19906 fi
19907
19908 if test $ac_cv_header_stdc = yes; then
19909   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19910   if test "$cross_compiling" = yes; then
19911   :
19912 else
19913   cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h.  */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h.  */
19919 #include <ctype.h>
19920 #include <stdlib.h>
19921 #if ((' ' & 0x0FF) == 0x020)
19922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19924 #else
19925 # define ISLOWER(c) \
19926                    (('a' <= (c) && (c) <= 'i') \
19927                      || ('j' <= (c) && (c) <= 'r') \
19928                      || ('s' <= (c) && (c) <= 'z'))
19929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19930 #endif
19931
19932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19933 int
19934 main ()
19935 {
19936   int i;
19937   for (i = 0; i < 256; i++)
19938     if (XOR (islower (i), ISLOWER (i))
19939         || toupper (i) != TOUPPER (i))
19940       return 2;
19941   return 0;
19942 }
19943 _ACEOF
19944 rm -f conftest$ac_exeext
19945 if { (ac_try="$ac_link"
19946 case "(($ac_try" in
19947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948   *) ac_try_echo=$ac_try;;
19949 esac
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951   (eval "$ac_link") 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19955   { (case "(($ac_try" in
19956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957   *) ac_try_echo=$ac_try;;
19958 esac
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960   (eval "$ac_try") 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; }; then
19964   :
19965 else
19966   echo "$as_me: program exited with status $ac_status" >&5
19967 echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970 ( exit $ac_status )
19971 ac_cv_header_stdc=no
19972 fi
19973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19974 fi
19975
19976
19977 fi
19978 fi
19979 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19980 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19981 if test $ac_cv_header_stdc = yes; then
19982
19983 cat >>confdefs.h <<\_ACEOF
19984 #define STDC_HEADERS 1
19985 _ACEOF
19986
19987 fi
19988
19989
19990 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19991 if test "${ac_cv_header_stdint_h+set}" = set; then
19992   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19993 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19994 if test "${ac_cv_header_stdint_h+set}" = set; then
19995   echo $ECHO_N "(cached) $ECHO_C" >&6
19996 fi
19997 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19998 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19999 else
20000   # Is the header compilable?
20001 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
20002 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009 $ac_includes_default
20010 #include <stdint.h>
20011 _ACEOF
20012 rm -f conftest.$ac_objext
20013 if { (ac_try="$ac_compile"
20014 case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019   (eval "$ac_compile") 2>conftest.er1
20020   ac_status=$?
20021   grep -v '^ *+' conftest.er1 >conftest.err
20022   rm -f conftest.er1
20023   cat conftest.err >&5
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); } && {
20026          test -z "$ac_c_werror_flag" ||
20027          test ! -s conftest.err
20028        } && test -s conftest.$ac_objext; then
20029   ac_header_compiler=yes
20030 else
20031   echo "$as_me: failed program was:" >&5
20032 sed 's/^/| /' conftest.$ac_ext >&5
20033
20034         ac_header_compiler=no
20035 fi
20036
20037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20039 echo "${ECHO_T}$ac_header_compiler" >&6; }
20040
20041 # Is the header present?
20042 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20043 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h.  */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h.  */
20050 #include <stdint.h>
20051 _ACEOF
20052 if { (ac_try="$ac_cpp conftest.$ac_ext"
20053 case "(($ac_try" in
20054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055   *) ac_try_echo=$ac_try;;
20056 esac
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } >/dev/null && {
20065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20066          test ! -s conftest.err
20067        }; then
20068   ac_header_preproc=yes
20069 else
20070   echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20072
20073   ac_header_preproc=no
20074 fi
20075
20076 rm -f conftest.err conftest.$ac_ext
20077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20078 echo "${ECHO_T}$ac_header_preproc" >&6; }
20079
20080 # So?  What about this header?
20081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20082   yes:no: )
20083     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20084 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20085     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20086 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20087     ac_header_preproc=yes
20088     ;;
20089   no:yes:* )
20090     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20091 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20092     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20093 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20094     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20095 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20096     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20097 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20098     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20099 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20100     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20101 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20102     ( cat <<\_ASBOX
20103 ## ------------------------------------ ##
20104 ## Report this to opensource@google.com ##
20105 ## ------------------------------------ ##
20106 _ASBOX
20107      ) | sed "s/^/$as_me: WARNING:     /" >&2
20108     ;;
20109 esac
20110 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20111 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20112 if test "${ac_cv_header_stdint_h+set}" = set; then
20113   echo $ECHO_N "(cached) $ECHO_C" >&6
20114 else
20115   ac_cv_header_stdint_h=$ac_header_preproc
20116 fi
20117 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20118 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20119
20120 fi
20121 if test $ac_cv_header_stdint_h = yes; then
20122   ac_cv_have_stdint_h=1
20123 else
20124   ac_cv_have_stdint_h=0
20125 fi
20126
20127
20128 if test "${ac_cv_header_sys_types_h+set}" = set; then
20129   { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20130 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20131 if test "${ac_cv_header_sys_types_h+set}" = set; then
20132   echo $ECHO_N "(cached) $ECHO_C" >&6
20133 fi
20134 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20135 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20136 else
20137   # Is the header compilable?
20138 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20139 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
20147 #include <sys/types.h>
20148 _ACEOF
20149 rm -f conftest.$ac_objext
20150 if { (ac_try="$ac_compile"
20151 case "(($ac_try" in
20152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153   *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156   (eval "$ac_compile") 2>conftest.er1
20157   ac_status=$?
20158   grep -v '^ *+' conftest.er1 >conftest.err
20159   rm -f conftest.er1
20160   cat conftest.err >&5
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } && {
20163          test -z "$ac_c_werror_flag" ||
20164          test ! -s conftest.err
20165        } && test -s conftest.$ac_objext; then
20166   ac_header_compiler=yes
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171         ac_header_compiler=no
20172 fi
20173
20174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20176 echo "${ECHO_T}$ac_header_compiler" >&6; }
20177
20178 # Is the header present?
20179 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20180 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20181 cat >conftest.$ac_ext <<_ACEOF
20182 /* confdefs.h.  */
20183 _ACEOF
20184 cat confdefs.h >>conftest.$ac_ext
20185 cat >>conftest.$ac_ext <<_ACEOF
20186 /* end confdefs.h.  */
20187 #include <sys/types.h>
20188 _ACEOF
20189 if { (ac_try="$ac_cpp conftest.$ac_ext"
20190 case "(($ac_try" in
20191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20192   *) ac_try_echo=$ac_try;;
20193 esac
20194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20196   ac_status=$?
20197   grep -v '^ *+' conftest.er1 >conftest.err
20198   rm -f conftest.er1
20199   cat conftest.err >&5
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); } >/dev/null && {
20202          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20203          test ! -s conftest.err
20204        }; then
20205   ac_header_preproc=yes
20206 else
20207   echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210   ac_header_preproc=no
20211 fi
20212
20213 rm -f conftest.err conftest.$ac_ext
20214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20215 echo "${ECHO_T}$ac_header_preproc" >&6; }
20216
20217 # So?  What about this header?
20218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20219   yes:no: )
20220     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20221 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20222     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20223 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20224     ac_header_preproc=yes
20225     ;;
20226   no:yes:* )
20227     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20228 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20229     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20230 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20231     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20232 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20233     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20234 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20235     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20236 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20237     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20238 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20239     ( cat <<\_ASBOX
20240 ## ------------------------------------ ##
20241 ## Report this to opensource@google.com ##
20242 ## ------------------------------------ ##
20243 _ASBOX
20244      ) | sed "s/^/$as_me: WARNING:     /" >&2
20245     ;;
20246 esac
20247 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20248 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20249 if test "${ac_cv_header_sys_types_h+set}" = set; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252   ac_cv_header_sys_types_h=$ac_header_preproc
20253 fi
20254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20255 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20256
20257 fi
20258 if test $ac_cv_header_sys_types_h = yes; then
20259   ac_cv_have_systypes_h=1
20260 else
20261   ac_cv_have_systypes_h=0
20262 fi
20263
20264
20265 if test "${ac_cv_header_inttypes_h+set}" = set; then
20266   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20267 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20268 if test "${ac_cv_header_inttypes_h+set}" = set; then
20269   echo $ECHO_N "(cached) $ECHO_C" >&6
20270 fi
20271 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20272 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20273 else
20274   # Is the header compilable?
20275 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20276 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20277 cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283 $ac_includes_default
20284 #include <inttypes.h>
20285 _ACEOF
20286 rm -f conftest.$ac_objext
20287 if { (ac_try="$ac_compile"
20288 case "(($ac_try" in
20289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290   *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293   (eval "$ac_compile") 2>conftest.er1
20294   ac_status=$?
20295   grep -v '^ *+' conftest.er1 >conftest.err
20296   rm -f conftest.er1
20297   cat conftest.err >&5
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); } && {
20300          test -z "$ac_c_werror_flag" ||
20301          test ! -s conftest.err
20302        } && test -s conftest.$ac_objext; then
20303   ac_header_compiler=yes
20304 else
20305   echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20307
20308         ac_header_compiler=no
20309 fi
20310
20311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20313 echo "${ECHO_T}$ac_header_compiler" >&6; }
20314
20315 # Is the header present?
20316 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20317 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20318 cat >conftest.$ac_ext <<_ACEOF
20319 /* confdefs.h.  */
20320 _ACEOF
20321 cat confdefs.h >>conftest.$ac_ext
20322 cat >>conftest.$ac_ext <<_ACEOF
20323 /* end confdefs.h.  */
20324 #include <inttypes.h>
20325 _ACEOF
20326 if { (ac_try="$ac_cpp conftest.$ac_ext"
20327 case "(($ac_try" in
20328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329   *) ac_try_echo=$ac_try;;
20330 esac
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20333   ac_status=$?
20334   grep -v '^ *+' conftest.er1 >conftest.err
20335   rm -f conftest.er1
20336   cat conftest.err >&5
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } >/dev/null && {
20339          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20340          test ! -s conftest.err
20341        }; then
20342   ac_header_preproc=yes
20343 else
20344   echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347   ac_header_preproc=no
20348 fi
20349
20350 rm -f conftest.err conftest.$ac_ext
20351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20352 echo "${ECHO_T}$ac_header_preproc" >&6; }
20353
20354 # So?  What about this header?
20355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20356   yes:no: )
20357     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20358 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20359     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20360 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20361     ac_header_preproc=yes
20362     ;;
20363   no:yes:* )
20364     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20365 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20366     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20367 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20368     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20369 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20370     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20371 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20372     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20373 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20374     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20375 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20376     ( cat <<\_ASBOX
20377 ## ------------------------------------ ##
20378 ## Report this to opensource@google.com ##
20379 ## ------------------------------------ ##
20380 _ASBOX
20381      ) | sed "s/^/$as_me: WARNING:     /" >&2
20382     ;;
20383 esac
20384 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20385 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20386 if test "${ac_cv_header_inttypes_h+set}" = set; then
20387   echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389   ac_cv_header_inttypes_h=$ac_header_preproc
20390 fi
20391 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20392 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20393
20394 fi
20395 if test $ac_cv_header_inttypes_h = yes; then
20396   ac_cv_have_inttypes_h=1
20397 else
20398   ac_cv_have_inttypes_h=0
20399 fi
20400
20401
20402
20403 for ac_header in unistd.h
20404 do
20405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20407   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20410   echo $ECHO_N "(cached) $ECHO_C" >&6
20411 fi
20412 ac_res=`eval echo '${'$as_ac_Header'}'`
20413                { echo "$as_me:$LINENO: result: $ac_res" >&5
20414 echo "${ECHO_T}$ac_res" >&6; }
20415 else
20416   # Is the header compilable?
20417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h.  */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h.  */
20425 $ac_includes_default
20426 #include <$ac_header>
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432   *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435   (eval "$ac_compile") 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } && {
20442          test -z "$ac_c_werror_flag" ||
20443          test ! -s conftest.err
20444        } && test -s conftest.$ac_objext; then
20445   ac_header_compiler=yes
20446 else
20447   echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450         ac_header_compiler=no
20451 fi
20452
20453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20455 echo "${ECHO_T}$ac_header_compiler" >&6; }
20456
20457 # Is the header present?
20458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20460 cat >conftest.$ac_ext <<_ACEOF
20461 /* confdefs.h.  */
20462 _ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h.  */
20466 #include <$ac_header>
20467 _ACEOF
20468 if { (ac_try="$ac_cpp conftest.$ac_ext"
20469 case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } >/dev/null && {
20481          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20482          test ! -s conftest.err
20483        }; then
20484   ac_header_preproc=yes
20485 else
20486   echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489   ac_header_preproc=no
20490 fi
20491
20492 rm -f conftest.err conftest.$ac_ext
20493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20494 echo "${ECHO_T}$ac_header_preproc" >&6; }
20495
20496 # So?  What about this header?
20497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20498   yes:no: )
20499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20503     ac_header_preproc=yes
20504     ;;
20505   no:yes:* )
20506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20508     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20509 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20510     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20512     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20513 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20516     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20518     ( cat <<\_ASBOX
20519 ## ------------------------------------ ##
20520 ## Report this to opensource@google.com ##
20521 ## ------------------------------------ ##
20522 _ASBOX
20523      ) | sed "s/^/$as_me: WARNING:     /" >&2
20524     ;;
20525 esac
20526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531   eval "$as_ac_Header=\$ac_header_preproc"
20532 fi
20533 ac_res=`eval echo '${'$as_ac_Header'}'`
20534                { echo "$as_me:$LINENO: result: $ac_res" >&5
20535 echo "${ECHO_T}$ac_res" >&6; }
20536
20537 fi
20538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20539   cat >>confdefs.h <<_ACEOF
20540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20541 _ACEOF
20542  ac_cv_have_unistd_h=1
20543 else
20544   ac_cv_have_unistd_h=0
20545 fi
20546
20547 done
20548
20549
20550 for ac_header in syscall.h
20551 do
20552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20554   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20557   echo $ECHO_N "(cached) $ECHO_C" >&6
20558 fi
20559 ac_res=`eval echo '${'$as_ac_Header'}'`
20560                { echo "$as_me:$LINENO: result: $ac_res" >&5
20561 echo "${ECHO_T}$ac_res" >&6; }
20562 else
20563   # Is the header compilable?
20564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20566 cat >conftest.$ac_ext <<_ACEOF
20567 /* confdefs.h.  */
20568 _ACEOF
20569 cat confdefs.h >>conftest.$ac_ext
20570 cat >>conftest.$ac_ext <<_ACEOF
20571 /* end confdefs.h.  */
20572 $ac_includes_default
20573 #include <$ac_header>
20574 _ACEOF
20575 rm -f conftest.$ac_objext
20576 if { (ac_try="$ac_compile"
20577 case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_compile") 2>conftest.er1
20583   ac_status=$?
20584   grep -v '^ *+' conftest.er1 >conftest.err
20585   rm -f conftest.er1
20586   cat conftest.err >&5
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); } && {
20589          test -z "$ac_c_werror_flag" ||
20590          test ! -s conftest.err
20591        } && test -s conftest.$ac_objext; then
20592   ac_header_compiler=yes
20593 else
20594   echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20596
20597         ac_header_compiler=no
20598 fi
20599
20600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20602 echo "${ECHO_T}$ac_header_compiler" >&6; }
20603
20604 # Is the header present?
20605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20607 cat >conftest.$ac_ext <<_ACEOF
20608 /* confdefs.h.  */
20609 _ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h.  */
20613 #include <$ac_header>
20614 _ACEOF
20615 if { (ac_try="$ac_cpp conftest.$ac_ext"
20616 case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } >/dev/null && {
20628          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20629          test ! -s conftest.err
20630        }; then
20631   ac_header_preproc=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636   ac_header_preproc=no
20637 fi
20638
20639 rm -f conftest.err conftest.$ac_ext
20640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20641 echo "${ECHO_T}$ac_header_preproc" >&6; }
20642
20643 # So?  What about this header?
20644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20645   yes:no: )
20646     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20650     ac_header_preproc=yes
20651     ;;
20652   no:yes:* )
20653     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20655     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20656 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20657     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20659     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20660 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20663     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20665     ( cat <<\_ASBOX
20666 ## ------------------------------------ ##
20667 ## Report this to opensource@google.com ##
20668 ## ------------------------------------ ##
20669 _ASBOX
20670      ) | sed "s/^/$as_me: WARNING:     /" >&2
20671     ;;
20672 esac
20673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20676   echo $ECHO_N "(cached) $ECHO_C" >&6
20677 else
20678   eval "$as_ac_Header=\$ac_header_preproc"
20679 fi
20680 ac_res=`eval echo '${'$as_ac_Header'}'`
20681                { echo "$as_me:$LINENO: result: $ac_res" >&5
20682 echo "${ECHO_T}$ac_res" >&6; }
20683
20684 fi
20685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20686   cat >>confdefs.h <<_ACEOF
20687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20688 _ACEOF
20689
20690 fi
20691
20692 done
20693
20694
20695 for ac_header in sys/syscall.h
20696 do
20697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20702   echo $ECHO_N "(cached) $ECHO_C" >&6
20703 fi
20704 ac_res=`eval echo '${'$as_ac_Header'}'`
20705                { echo "$as_me:$LINENO: result: $ac_res" >&5
20706 echo "${ECHO_T}$ac_res" >&6; }
20707 else
20708   # Is the header compilable?
20709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20711 cat >conftest.$ac_ext <<_ACEOF
20712 /* confdefs.h.  */
20713 _ACEOF
20714 cat confdefs.h >>conftest.$ac_ext
20715 cat >>conftest.$ac_ext <<_ACEOF
20716 /* end confdefs.h.  */
20717 $ac_includes_default
20718 #include <$ac_header>
20719 _ACEOF
20720 rm -f conftest.$ac_objext
20721 if { (ac_try="$ac_compile"
20722 case "(($ac_try" in
20723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724   *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727   (eval "$ac_compile") 2>conftest.er1
20728   ac_status=$?
20729   grep -v '^ *+' conftest.er1 >conftest.err
20730   rm -f conftest.er1
20731   cat conftest.err >&5
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); } && {
20734          test -z "$ac_c_werror_flag" ||
20735          test ! -s conftest.err
20736        } && test -s conftest.$ac_objext; then
20737   ac_header_compiler=yes
20738 else
20739   echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20741
20742         ac_header_compiler=no
20743 fi
20744
20745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20747 echo "${ECHO_T}$ac_header_compiler" >&6; }
20748
20749 # Is the header present?
20750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758 #include <$ac_header>
20759 _ACEOF
20760 if { (ac_try="$ac_cpp conftest.$ac_ext"
20761 case "(($ac_try" in
20762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763   *) ac_try_echo=$ac_try;;
20764 esac
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20767   ac_status=$?
20768   grep -v '^ *+' conftest.er1 >conftest.err
20769   rm -f conftest.er1
20770   cat conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); } >/dev/null && {
20773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20774          test ! -s conftest.err
20775        }; then
20776   ac_header_preproc=yes
20777 else
20778   echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20780
20781   ac_header_preproc=no
20782 fi
20783
20784 rm -f conftest.err conftest.$ac_ext
20785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20786 echo "${ECHO_T}$ac_header_preproc" >&6; }
20787
20788 # So?  What about this header?
20789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20790   yes:no: )
20791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20795     ac_header_preproc=yes
20796     ;;
20797   no:yes:* )
20798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20810     ( cat <<\_ASBOX
20811 ## ------------------------------------ ##
20812 ## Report this to opensource@google.com ##
20813 ## ------------------------------------ ##
20814 _ASBOX
20815      ) | sed "s/^/$as_me: WARNING:     /" >&2
20816     ;;
20817 esac
20818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20821   echo $ECHO_N "(cached) $ECHO_C" >&6
20822 else
20823   eval "$as_ac_Header=\$ac_header_preproc"
20824 fi
20825 ac_res=`eval echo '${'$as_ac_Header'}'`
20826                { echo "$as_me:$LINENO: result: $ac_res" >&5
20827 echo "${ECHO_T}$ac_res" >&6; }
20828
20829 fi
20830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20831   cat >>confdefs.h <<_ACEOF
20832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20833 _ACEOF
20834
20835 fi
20836
20837 done
20838
20839 # For backtrace with glibc.
20840
20841 for ac_header in execinfo.h
20842 do
20843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20848   echo $ECHO_N "(cached) $ECHO_C" >&6
20849 fi
20850 ac_res=`eval echo '${'$as_ac_Header'}'`
20851                { echo "$as_me:$LINENO: result: $ac_res" >&5
20852 echo "${ECHO_T}$ac_res" >&6; }
20853 else
20854   # Is the header compilable?
20855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20857 cat >conftest.$ac_ext <<_ACEOF
20858 /* confdefs.h.  */
20859 _ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h.  */
20863 $ac_includes_default
20864 #include <$ac_header>
20865 _ACEOF
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870   *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873   (eval "$ac_compile") 2>conftest.er1
20874   ac_status=$?
20875   grep -v '^ *+' conftest.er1 >conftest.err
20876   rm -f conftest.er1
20877   cat conftest.err >&5
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } && {
20880          test -z "$ac_c_werror_flag" ||
20881          test ! -s conftest.err
20882        } && test -s conftest.$ac_objext; then
20883   ac_header_compiler=yes
20884 else
20885   echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20887
20888         ac_header_compiler=no
20889 fi
20890
20891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20893 echo "${ECHO_T}$ac_header_compiler" >&6; }
20894
20895 # Is the header present?
20896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20898 cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904 #include <$ac_header>
20905 _ACEOF
20906 if { (ac_try="$ac_cpp conftest.$ac_ext"
20907 case "(($ac_try" in
20908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909   *) ac_try_echo=$ac_try;;
20910 esac
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20913   ac_status=$?
20914   grep -v '^ *+' conftest.er1 >conftest.err
20915   rm -f conftest.er1
20916   cat conftest.err >&5
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); } >/dev/null && {
20919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20920          test ! -s conftest.err
20921        }; then
20922   ac_header_preproc=yes
20923 else
20924   echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927   ac_header_preproc=no
20928 fi
20929
20930 rm -f conftest.err conftest.$ac_ext
20931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20932 echo "${ECHO_T}$ac_header_preproc" >&6; }
20933
20934 # So?  What about this header?
20935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20936   yes:no: )
20937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20941     ac_header_preproc=yes
20942     ;;
20943   no:yes:* )
20944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20956     ( cat <<\_ASBOX
20957 ## ------------------------------------ ##
20958 ## Report this to opensource@google.com ##
20959 ## ------------------------------------ ##
20960 _ASBOX
20961      ) | sed "s/^/$as_me: WARNING:     /" >&2
20962     ;;
20963 esac
20964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20967   echo $ECHO_N "(cached) $ECHO_C" >&6
20968 else
20969   eval "$as_ac_Header=\$ac_header_preproc"
20970 fi
20971 ac_res=`eval echo '${'$as_ac_Header'}'`
20972                { echo "$as_me:$LINENO: result: $ac_res" >&5
20973 echo "${ECHO_T}$ac_res" >&6; }
20974
20975 fi
20976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20977   cat >>confdefs.h <<_ACEOF
20978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979 _ACEOF
20980
20981 fi
20982
20983 done
20984
20985 # For backtrace with libunwind.
20986
20987 for ac_header in libunwind.h
20988 do
20989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20991   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20994   echo $ECHO_N "(cached) $ECHO_C" >&6
20995 fi
20996 ac_res=`eval echo '${'$as_ac_Header'}'`
20997                { echo "$as_me:$LINENO: result: $ac_res" >&5
20998 echo "${ECHO_T}$ac_res" >&6; }
20999 else
21000   # Is the header compilable?
21001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21003 cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h.  */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h.  */
21009 $ac_includes_default
21010 #include <$ac_header>
21011 _ACEOF
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016   *) ac_try_echo=$ac_try;;
21017 esac
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019   (eval "$ac_compile") 2>conftest.er1
21020   ac_status=$?
21021   grep -v '^ *+' conftest.er1 >conftest.err
21022   rm -f conftest.er1
21023   cat conftest.err >&5
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); } && {
21026          test -z "$ac_c_werror_flag" ||
21027          test ! -s conftest.err
21028        } && test -s conftest.$ac_objext; then
21029   ac_header_compiler=yes
21030 else
21031   echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21033
21034         ac_header_compiler=no
21035 fi
21036
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21039 echo "${ECHO_T}$ac_header_compiler" >&6; }
21040
21041 # Is the header present?
21042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21044 cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h.  */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h.  */
21050 #include <$ac_header>
21051 _ACEOF
21052 if { (ac_try="$ac_cpp conftest.$ac_ext"
21053 case "(($ac_try" in
21054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055   *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21059   ac_status=$?
21060   grep -v '^ *+' conftest.er1 >conftest.err
21061   rm -f conftest.er1
21062   cat conftest.err >&5
21063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064   (exit $ac_status); } >/dev/null && {
21065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21066          test ! -s conftest.err
21067        }; then
21068   ac_header_preproc=yes
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073   ac_header_preproc=no
21074 fi
21075
21076 rm -f conftest.err conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21078 echo "${ECHO_T}$ac_header_preproc" >&6; }
21079
21080 # So?  What about this header?
21081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21082   yes:no: )
21083     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21087     ac_header_preproc=yes
21088     ;;
21089   no:yes:* )
21090     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21092     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21093 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21094     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21096     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21097 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21100     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21102     ( cat <<\_ASBOX
21103 ## ------------------------------------ ##
21104 ## Report this to opensource@google.com ##
21105 ## ------------------------------------ ##
21106 _ASBOX
21107      ) | sed "s/^/$as_me: WARNING:     /" >&2
21108     ;;
21109 esac
21110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21113   echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115   eval "$as_ac_Header=\$ac_header_preproc"
21116 fi
21117 ac_res=`eval echo '${'$as_ac_Header'}'`
21118                { echo "$as_me:$LINENO: result: $ac_res" >&5
21119 echo "${ECHO_T}$ac_res" >&6; }
21120
21121 fi
21122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21123   cat >>confdefs.h <<_ACEOF
21124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21125 _ACEOF
21126
21127 fi
21128
21129 done
21130
21131
21132 for ac_header in ucontext.h
21133 do
21134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21136   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21139   echo $ECHO_N "(cached) $ECHO_C" >&6
21140 fi
21141 ac_res=`eval echo '${'$as_ac_Header'}'`
21142                { echo "$as_me:$LINENO: result: $ac_res" >&5
21143 echo "${ECHO_T}$ac_res" >&6; }
21144 else
21145   # Is the header compilable?
21146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21148 cat >conftest.$ac_ext <<_ACEOF
21149 /* confdefs.h.  */
21150 _ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h.  */
21154 $ac_includes_default
21155 #include <$ac_header>
21156 _ACEOF
21157 rm -f conftest.$ac_objext
21158 if { (ac_try="$ac_compile"
21159 case "(($ac_try" in
21160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161   *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164   (eval "$ac_compile") 2>conftest.er1
21165   ac_status=$?
21166   grep -v '^ *+' conftest.er1 >conftest.err
21167   rm -f conftest.er1
21168   cat conftest.err >&5
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } && {
21171          test -z "$ac_c_werror_flag" ||
21172          test ! -s conftest.err
21173        } && test -s conftest.$ac_objext; then
21174   ac_header_compiler=yes
21175 else
21176   echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179         ac_header_compiler=no
21180 fi
21181
21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21184 echo "${ECHO_T}$ac_header_compiler" >&6; }
21185
21186 # Is the header present?
21187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21189 cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h.  */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h.  */
21195 #include <$ac_header>
21196 _ACEOF
21197 if { (ac_try="$ac_cpp conftest.$ac_ext"
21198 case "(($ac_try" in
21199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200   *) ac_try_echo=$ac_try;;
21201 esac
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21204   ac_status=$?
21205   grep -v '^ *+' conftest.er1 >conftest.err
21206   rm -f conftest.er1
21207   cat conftest.err >&5
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } >/dev/null && {
21210          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21211          test ! -s conftest.err
21212        }; then
21213   ac_header_preproc=yes
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218   ac_header_preproc=no
21219 fi
21220
21221 rm -f conftest.err conftest.$ac_ext
21222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21223 echo "${ECHO_T}$ac_header_preproc" >&6; }
21224
21225 # So?  What about this header?
21226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21227   yes:no: )
21228     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21229 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21231 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21232     ac_header_preproc=yes
21233     ;;
21234   no:yes:* )
21235     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21237     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21238 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21239     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21240 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21241     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21242 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21244 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21245     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21246 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21247     ( cat <<\_ASBOX
21248 ## ------------------------------------ ##
21249 ## Report this to opensource@google.com ##
21250 ## ------------------------------------ ##
21251 _ASBOX
21252      ) | sed "s/^/$as_me: WARNING:     /" >&2
21253     ;;
21254 esac
21255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21258   echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260   eval "$as_ac_Header=\$ac_header_preproc"
21261 fi
21262 ac_res=`eval echo '${'$as_ac_Header'}'`
21263                { echo "$as_me:$LINENO: result: $ac_res" >&5
21264 echo "${ECHO_T}$ac_res" >&6; }
21265
21266 fi
21267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21268   cat >>confdefs.h <<_ACEOF
21269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21270 _ACEOF
21271
21272 fi
21273
21274 done
21275
21276
21277 for ac_header in sys/utsname.h
21278 do
21279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21281   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21284   echo $ECHO_N "(cached) $ECHO_C" >&6
21285 fi
21286 ac_res=`eval echo '${'$as_ac_Header'}'`
21287                { echo "$as_me:$LINENO: result: $ac_res" >&5
21288 echo "${ECHO_T}$ac_res" >&6; }
21289 else
21290   # Is the header compilable?
21291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21293 cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h.  */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h.  */
21299 $ac_includes_default
21300 #include <$ac_header>
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306   *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309   (eval "$ac_compile") 2>conftest.er1
21310   ac_status=$?
21311   grep -v '^ *+' conftest.er1 >conftest.err
21312   rm -f conftest.er1
21313   cat conftest.err >&5
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); } && {
21316          test -z "$ac_c_werror_flag" ||
21317          test ! -s conftest.err
21318        } && test -s conftest.$ac_objext; then
21319   ac_header_compiler=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324         ac_header_compiler=no
21325 fi
21326
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21329 echo "${ECHO_T}$ac_header_compiler" >&6; }
21330
21331 # Is the header present?
21332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21334 cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h.  */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h.  */
21340 #include <$ac_header>
21341 _ACEOF
21342 if { (ac_try="$ac_cpp conftest.$ac_ext"
21343 case "(($ac_try" in
21344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345   *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21349   ac_status=$?
21350   grep -v '^ *+' conftest.er1 >conftest.err
21351   rm -f conftest.er1
21352   cat conftest.err >&5
21353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354   (exit $ac_status); } >/dev/null && {
21355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21356          test ! -s conftest.err
21357        }; then
21358   ac_header_preproc=yes
21359 else
21360   echo "$as_me: failed program was:" >&5
21361 sed 's/^/| /' conftest.$ac_ext >&5
21362
21363   ac_header_preproc=no
21364 fi
21365
21366 rm -f conftest.err conftest.$ac_ext
21367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21368 echo "${ECHO_T}$ac_header_preproc" >&6; }
21369
21370 # So?  What about this header?
21371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21372   yes:no: )
21373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21377     ac_header_preproc=yes
21378     ;;
21379   no:yes:* )
21380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21392     ( cat <<\_ASBOX
21393 ## ------------------------------------ ##
21394 ## Report this to opensource@google.com ##
21395 ## ------------------------------------ ##
21396 _ASBOX
21397      ) | sed "s/^/$as_me: WARNING:     /" >&2
21398     ;;
21399 esac
21400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21403   echo $ECHO_N "(cached) $ECHO_C" >&6
21404 else
21405   eval "$as_ac_Header=\$ac_header_preproc"
21406 fi
21407 ac_res=`eval echo '${'$as_ac_Header'}'`
21408                { echo "$as_me:$LINENO: result: $ac_res" >&5
21409 echo "${ECHO_T}$ac_res" >&6; }
21410
21411 fi
21412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21413   cat >>confdefs.h <<_ACEOF
21414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21415 _ACEOF
21416
21417 fi
21418
21419 done
21420
21421
21422 for ac_header in pwd.h
21423 do
21424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21426   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21429   echo $ECHO_N "(cached) $ECHO_C" >&6
21430 fi
21431 ac_res=`eval echo '${'$as_ac_Header'}'`
21432                { echo "$as_me:$LINENO: result: $ac_res" >&5
21433 echo "${ECHO_T}$ac_res" >&6; }
21434 else
21435   # Is the header compilable?
21436 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21438 cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444 $ac_includes_default
21445 #include <$ac_header>
21446 _ACEOF
21447 rm -f conftest.$ac_objext
21448 if { (ac_try="$ac_compile"
21449 case "(($ac_try" in
21450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451   *) ac_try_echo=$ac_try;;
21452 esac
21453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454   (eval "$ac_compile") 2>conftest.er1
21455   ac_status=$?
21456   grep -v '^ *+' conftest.er1 >conftest.err
21457   rm -f conftest.er1
21458   cat conftest.err >&5
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); } && {
21461          test -z "$ac_c_werror_flag" ||
21462          test ! -s conftest.err
21463        } && test -s conftest.$ac_objext; then
21464   ac_header_compiler=yes
21465 else
21466   echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         ac_header_compiler=no
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21473 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21474 echo "${ECHO_T}$ac_header_compiler" >&6; }
21475
21476 # Is the header present?
21477 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21478 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h.  */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h.  */
21485 #include <$ac_header>
21486 _ACEOF
21487 if { (ac_try="$ac_cpp conftest.$ac_ext"
21488 case "(($ac_try" in
21489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490   *) ac_try_echo=$ac_try;;
21491 esac
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21494   ac_status=$?
21495   grep -v '^ *+' conftest.er1 >conftest.err
21496   rm -f conftest.er1
21497   cat conftest.err >&5
21498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499   (exit $ac_status); } >/dev/null && {
21500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21501          test ! -s conftest.err
21502        }; then
21503   ac_header_preproc=yes
21504 else
21505   echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21507
21508   ac_header_preproc=no
21509 fi
21510
21511 rm -f conftest.err conftest.$ac_ext
21512 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21513 echo "${ECHO_T}$ac_header_preproc" >&6; }
21514
21515 # So?  What about this header?
21516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21517   yes:no: )
21518     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21520     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21522     ac_header_preproc=yes
21523     ;;
21524   no:yes:* )
21525     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21527     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21528 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21529     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21531     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21532 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21535     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21537     ( cat <<\_ASBOX
21538 ## ------------------------------------ ##
21539 ## Report this to opensource@google.com ##
21540 ## ------------------------------------ ##
21541 _ASBOX
21542      ) | sed "s/^/$as_me: WARNING:     /" >&2
21543     ;;
21544 esac
21545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550   eval "$as_ac_Header=\$ac_header_preproc"
21551 fi
21552 ac_res=`eval echo '${'$as_ac_Header'}'`
21553                { echo "$as_me:$LINENO: result: $ac_res" >&5
21554 echo "${ECHO_T}$ac_res" >&6; }
21555
21556 fi
21557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21558   cat >>confdefs.h <<_ACEOF
21559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21560 _ACEOF
21561
21562 fi
21563
21564 done
21565
21566
21567 for ac_header in syslog.h
21568 do
21569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21571   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21574   echo $ECHO_N "(cached) $ECHO_C" >&6
21575 fi
21576 ac_res=`eval echo '${'$as_ac_Header'}'`
21577                { echo "$as_me:$LINENO: result: $ac_res" >&5
21578 echo "${ECHO_T}$ac_res" >&6; }
21579 else
21580   # Is the header compilable?
21581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21583 cat >conftest.$ac_ext <<_ACEOF
21584 /* confdefs.h.  */
21585 _ACEOF
21586 cat confdefs.h >>conftest.$ac_ext
21587 cat >>conftest.$ac_ext <<_ACEOF
21588 /* end confdefs.h.  */
21589 $ac_includes_default
21590 #include <$ac_header>
21591 _ACEOF
21592 rm -f conftest.$ac_objext
21593 if { (ac_try="$ac_compile"
21594 case "(($ac_try" in
21595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596   *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599   (eval "$ac_compile") 2>conftest.er1
21600   ac_status=$?
21601   grep -v '^ *+' conftest.er1 >conftest.err
21602   rm -f conftest.er1
21603   cat conftest.err >&5
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); } && {
21606          test -z "$ac_c_werror_flag" ||
21607          test ! -s conftest.err
21608        } && test -s conftest.$ac_objext; then
21609   ac_header_compiler=yes
21610 else
21611   echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614         ac_header_compiler=no
21615 fi
21616
21617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21619 echo "${ECHO_T}$ac_header_compiler" >&6; }
21620
21621 # Is the header present?
21622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21624 cat >conftest.$ac_ext <<_ACEOF
21625 /* confdefs.h.  */
21626 _ACEOF
21627 cat confdefs.h >>conftest.$ac_ext
21628 cat >>conftest.$ac_ext <<_ACEOF
21629 /* end confdefs.h.  */
21630 #include <$ac_header>
21631 _ACEOF
21632 if { (ac_try="$ac_cpp conftest.$ac_ext"
21633 case "(($ac_try" in
21634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21635   *) ac_try_echo=$ac_try;;
21636 esac
21637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21639   ac_status=$?
21640   grep -v '^ *+' conftest.er1 >conftest.err
21641   rm -f conftest.er1
21642   cat conftest.err >&5
21643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644   (exit $ac_status); } >/dev/null && {
21645          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21646          test ! -s conftest.err
21647        }; then
21648   ac_header_preproc=yes
21649 else
21650   echo "$as_me: failed program was:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21652
21653   ac_header_preproc=no
21654 fi
21655
21656 rm -f conftest.err conftest.$ac_ext
21657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21658 echo "${ECHO_T}$ac_header_preproc" >&6; }
21659
21660 # So?  What about this header?
21661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21662   yes:no: )
21663     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21667     ac_header_preproc=yes
21668     ;;
21669   no:yes:* )
21670     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21672     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21673 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21674     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21676     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21677 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21680     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21682     ( cat <<\_ASBOX
21683 ## ------------------------------------ ##
21684 ## Report this to opensource@google.com ##
21685 ## ------------------------------------ ##
21686 _ASBOX
21687      ) | sed "s/^/$as_me: WARNING:     /" >&2
21688     ;;
21689 esac
21690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21693   echo $ECHO_N "(cached) $ECHO_C" >&6
21694 else
21695   eval "$as_ac_Header=\$ac_header_preproc"
21696 fi
21697 ac_res=`eval echo '${'$as_ac_Header'}'`
21698                { echo "$as_me:$LINENO: result: $ac_res" >&5
21699 echo "${ECHO_T}$ac_res" >&6; }
21700
21701 fi
21702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21703   cat >>confdefs.h <<_ACEOF
21704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21705 _ACEOF
21706
21707 fi
21708
21709 done
21710
21711
21712 for ac_header in sys/time.h
21713 do
21714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21719   echo $ECHO_N "(cached) $ECHO_C" >&6
21720 fi
21721 ac_res=`eval echo '${'$as_ac_Header'}'`
21722                { echo "$as_me:$LINENO: result: $ac_res" >&5
21723 echo "${ECHO_T}$ac_res" >&6; }
21724 else
21725   # Is the header compilable?
21726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21728 cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 $ac_includes_default
21735 #include <$ac_header>
21736 _ACEOF
21737 rm -f conftest.$ac_objext
21738 if { (ac_try="$ac_compile"
21739 case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_compile") 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } && {
21751          test -z "$ac_c_werror_flag" ||
21752          test ! -s conftest.err
21753        } && test -s conftest.$ac_objext; then
21754   ac_header_compiler=yes
21755 else
21756   echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759         ac_header_compiler=no
21760 fi
21761
21762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21764 echo "${ECHO_T}$ac_header_compiler" >&6; }
21765
21766 # Is the header present?
21767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21769 cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h.  */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h.  */
21775 #include <$ac_header>
21776 _ACEOF
21777 if { (ac_try="$ac_cpp conftest.$ac_ext"
21778 case "(($ac_try" in
21779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780   *) ac_try_echo=$ac_try;;
21781 esac
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21784   ac_status=$?
21785   grep -v '^ *+' conftest.er1 >conftest.err
21786   rm -f conftest.er1
21787   cat conftest.err >&5
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); } >/dev/null && {
21790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21791          test ! -s conftest.err
21792        }; then
21793   ac_header_preproc=yes
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798   ac_header_preproc=no
21799 fi
21800
21801 rm -f conftest.err conftest.$ac_ext
21802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21803 echo "${ECHO_T}$ac_header_preproc" >&6; }
21804
21805 # So?  What about this header?
21806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21807   yes:no: )
21808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21812     ac_header_preproc=yes
21813     ;;
21814   no:yes:* )
21815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21827     ( cat <<\_ASBOX
21828 ## ------------------------------------ ##
21829 ## Report this to opensource@google.com ##
21830 ## ------------------------------------ ##
21831 _ASBOX
21832      ) | sed "s/^/$as_me: WARNING:     /" >&2
21833     ;;
21834 esac
21835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   eval "$as_ac_Header=\$ac_header_preproc"
21841 fi
21842 ac_res=`eval echo '${'$as_ac_Header'}'`
21843                { echo "$as_me:$LINENO: result: $ac_res" >&5
21844 echo "${ECHO_T}$ac_res" >&6; }
21845
21846 fi
21847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21848   cat >>confdefs.h <<_ACEOF
21849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21850 _ACEOF
21851
21852 fi
21853
21854 done
21855
21856
21857 for ac_header in glob.h
21858 do
21859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21861   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21864   echo $ECHO_N "(cached) $ECHO_C" >&6
21865 fi
21866 ac_res=`eval echo '${'$as_ac_Header'}'`
21867                { echo "$as_me:$LINENO: result: $ac_res" >&5
21868 echo "${ECHO_T}$ac_res" >&6; }
21869 else
21870   # Is the header compilable?
21871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21873 cat >conftest.$ac_ext <<_ACEOF
21874 /* confdefs.h.  */
21875 _ACEOF
21876 cat confdefs.h >>conftest.$ac_ext
21877 cat >>conftest.$ac_ext <<_ACEOF
21878 /* end confdefs.h.  */
21879 $ac_includes_default
21880 #include <$ac_header>
21881 _ACEOF
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886   *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889   (eval "$ac_compile") 2>conftest.er1
21890   ac_status=$?
21891   grep -v '^ *+' conftest.er1 >conftest.err
21892   rm -f conftest.er1
21893   cat conftest.err >&5
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); } && {
21896          test -z "$ac_c_werror_flag" ||
21897          test ! -s conftest.err
21898        } && test -s conftest.$ac_objext; then
21899   ac_header_compiler=yes
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904         ac_header_compiler=no
21905 fi
21906
21907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21909 echo "${ECHO_T}$ac_header_compiler" >&6; }
21910
21911 # Is the header present?
21912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21914 cat >conftest.$ac_ext <<_ACEOF
21915 /* confdefs.h.  */
21916 _ACEOF
21917 cat confdefs.h >>conftest.$ac_ext
21918 cat >>conftest.$ac_ext <<_ACEOF
21919 /* end confdefs.h.  */
21920 #include <$ac_header>
21921 _ACEOF
21922 if { (ac_try="$ac_cpp conftest.$ac_ext"
21923 case "(($ac_try" in
21924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925   *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21929   ac_status=$?
21930   grep -v '^ *+' conftest.er1 >conftest.err
21931   rm -f conftest.er1
21932   cat conftest.err >&5
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); } >/dev/null && {
21935          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21936          test ! -s conftest.err
21937        }; then
21938   ac_header_preproc=yes
21939 else
21940   echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943   ac_header_preproc=no
21944 fi
21945
21946 rm -f conftest.err conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21948 echo "${ECHO_T}$ac_header_preproc" >&6; }
21949
21950 # So?  What about this header?
21951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21952   yes:no: )
21953     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21957     ac_header_preproc=yes
21958     ;;
21959   no:yes:* )
21960     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21962     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21963 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21964     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21966     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21967 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21968     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21970     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21972     ( cat <<\_ASBOX
21973 ## ------------------------------------ ##
21974 ## Report this to opensource@google.com ##
21975 ## ------------------------------------ ##
21976 _ASBOX
21977      ) | sed "s/^/$as_me: WARNING:     /" >&2
21978     ;;
21979 esac
21980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21983   echo $ECHO_N "(cached) $ECHO_C" >&6
21984 else
21985   eval "$as_ac_Header=\$ac_header_preproc"
21986 fi
21987 ac_res=`eval echo '${'$as_ac_Header'}'`
21988                { echo "$as_me:$LINENO: result: $ac_res" >&5
21989 echo "${ECHO_T}$ac_res" >&6; }
21990
21991 fi
21992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21993   cat >>confdefs.h <<_ACEOF
21994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21995 _ACEOF
21996
21997 fi
21998
21999 done
22000
22001
22002 { echo "$as_me:$LINENO: checking for void *" >&5
22003 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22004 if test "${ac_cv_type_void_p+set}" = set; then
22005   echo $ECHO_N "(cached) $ECHO_C" >&6
22006 else
22007   cat >conftest.$ac_ext <<_ACEOF
22008 /* confdefs.h.  */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h.  */
22013 $ac_includes_default
22014 typedef void * ac__type_new_;
22015 int
22016 main ()
22017 {
22018 if ((ac__type_new_ *) 0)
22019   return 0;
22020 if (sizeof (ac__type_new_))
22021   return 0;
22022   ;
22023   return 0;
22024 }
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030   *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033   (eval "$ac_compile") 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } && {
22040          test -z "$ac_c_werror_flag" ||
22041          test ! -s conftest.err
22042        } && test -s conftest.$ac_objext; then
22043   ac_cv_type_void_p=yes
22044 else
22045   echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048         ac_cv_type_void_p=no
22049 fi
22050
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 fi
22053 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22054 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22055
22056 # The cast to long int works around a bug in the HP C Compiler
22057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22059 # This bug is HP SR number 8606223364.
22060 { echo "$as_me:$LINENO: checking size of void *" >&5
22061 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22062 if test "${ac_cv_sizeof_void_p+set}" = set; then
22063   echo $ECHO_N "(cached) $ECHO_C" >&6
22064 else
22065   if test "$cross_compiling" = yes; then
22066   # Depending upon the size, compute the lo and hi bounds.
22067 cat >conftest.$ac_ext <<_ACEOF
22068 /* confdefs.h.  */
22069 _ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h.  */
22073 $ac_includes_default
22074    typedef void * ac__type_sizeof_;
22075 int
22076 main ()
22077 {
22078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22079 test_array [0] = 0
22080
22081   ;
22082   return 0;
22083 }
22084 _ACEOF
22085 rm -f conftest.$ac_objext
22086 if { (ac_try="$ac_compile"
22087 case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092   (eval "$ac_compile") 2>conftest.er1
22093   ac_status=$?
22094   grep -v '^ *+' conftest.er1 >conftest.err
22095   rm -f conftest.er1
22096   cat conftest.err >&5
22097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098   (exit $ac_status); } && {
22099          test -z "$ac_c_werror_flag" ||
22100          test ! -s conftest.err
22101        } && test -s conftest.$ac_objext; then
22102   ac_lo=0 ac_mid=0
22103   while :; do
22104     cat >conftest.$ac_ext <<_ACEOF
22105 /* confdefs.h.  */
22106 _ACEOF
22107 cat confdefs.h >>conftest.$ac_ext
22108 cat >>conftest.$ac_ext <<_ACEOF
22109 /* end confdefs.h.  */
22110 $ac_includes_default
22111    typedef void * ac__type_sizeof_;
22112 int
22113 main ()
22114 {
22115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22116 test_array [0] = 0
22117
22118   ;
22119   return 0;
22120 }
22121 _ACEOF
22122 rm -f conftest.$ac_objext
22123 if { (ac_try="$ac_compile"
22124 case "(($ac_try" in
22125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22126   *) ac_try_echo=$ac_try;;
22127 esac
22128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22129   (eval "$ac_compile") 2>conftest.er1
22130   ac_status=$?
22131   grep -v '^ *+' conftest.er1 >conftest.err
22132   rm -f conftest.er1
22133   cat conftest.err >&5
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); } && {
22136          test -z "$ac_c_werror_flag" ||
22137          test ! -s conftest.err
22138        } && test -s conftest.$ac_objext; then
22139   ac_hi=$ac_mid; break
22140 else
22141   echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144         ac_lo=`expr $ac_mid + 1`
22145                         if test $ac_lo -le $ac_mid; then
22146                           ac_lo= ac_hi=
22147                           break
22148                         fi
22149                         ac_mid=`expr 2 '*' $ac_mid + 1`
22150 fi
22151
22152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22153   done
22154 else
22155   echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22157
22158         cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 $ac_includes_default
22165    typedef void * ac__type_sizeof_;
22166 int
22167 main ()
22168 {
22169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22170 test_array [0] = 0
22171
22172   ;
22173   return 0;
22174 }
22175 _ACEOF
22176 rm -f conftest.$ac_objext
22177 if { (ac_try="$ac_compile"
22178 case "(($ac_try" in
22179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180   *) ac_try_echo=$ac_try;;
22181 esac
22182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22183   (eval "$ac_compile") 2>conftest.er1
22184   ac_status=$?
22185   grep -v '^ *+' conftest.er1 >conftest.err
22186   rm -f conftest.er1
22187   cat conftest.err >&5
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); } && {
22190          test -z "$ac_c_werror_flag" ||
22191          test ! -s conftest.err
22192        } && test -s conftest.$ac_objext; then
22193   ac_hi=-1 ac_mid=-1
22194   while :; do
22195     cat >conftest.$ac_ext <<_ACEOF
22196 /* confdefs.h.  */
22197 _ACEOF
22198 cat confdefs.h >>conftest.$ac_ext
22199 cat >>conftest.$ac_ext <<_ACEOF
22200 /* end confdefs.h.  */
22201 $ac_includes_default
22202    typedef void * ac__type_sizeof_;
22203 int
22204 main ()
22205 {
22206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22207 test_array [0] = 0
22208
22209   ;
22210   return 0;
22211 }
22212 _ACEOF
22213 rm -f conftest.$ac_objext
22214 if { (ac_try="$ac_compile"
22215 case "(($ac_try" in
22216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22217   *) ac_try_echo=$ac_try;;
22218 esac
22219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22220   (eval "$ac_compile") 2>conftest.er1
22221   ac_status=$?
22222   grep -v '^ *+' conftest.er1 >conftest.err
22223   rm -f conftest.er1
22224   cat conftest.err >&5
22225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226   (exit $ac_status); } && {
22227          test -z "$ac_c_werror_flag" ||
22228          test ! -s conftest.err
22229        } && test -s conftest.$ac_objext; then
22230   ac_lo=$ac_mid; break
22231 else
22232   echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235         ac_hi=`expr '(' $ac_mid ')' - 1`
22236                         if test $ac_mid -le $ac_hi; then
22237                           ac_lo= ac_hi=
22238                           break
22239                         fi
22240                         ac_mid=`expr 2 '*' $ac_mid`
22241 fi
22242
22243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22244   done
22245 else
22246   echo "$as_me: failed program was:" >&5
22247 sed 's/^/| /' conftest.$ac_ext >&5
22248
22249         ac_lo= ac_hi=
22250 fi
22251
22252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22253 fi
22254
22255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22256 # Binary search between lo and hi bounds.
22257 while test "x$ac_lo" != "x$ac_hi"; do
22258   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22259   cat >conftest.$ac_ext <<_ACEOF
22260 /* confdefs.h.  */
22261 _ACEOF
22262 cat confdefs.h >>conftest.$ac_ext
22263 cat >>conftest.$ac_ext <<_ACEOF
22264 /* end confdefs.h.  */
22265 $ac_includes_default
22266    typedef void * ac__type_sizeof_;
22267 int
22268 main ()
22269 {
22270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22271 test_array [0] = 0
22272
22273   ;
22274   return 0;
22275 }
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281   *) ac_try_echo=$ac_try;;
22282 esac
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284   (eval "$ac_compile") 2>conftest.er1
22285   ac_status=$?
22286   grep -v '^ *+' conftest.er1 >conftest.err
22287   rm -f conftest.er1
22288   cat conftest.err >&5
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } && {
22291          test -z "$ac_c_werror_flag" ||
22292          test ! -s conftest.err
22293        } && test -s conftest.$ac_objext; then
22294   ac_hi=$ac_mid
22295 else
22296   echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22298
22299         ac_lo=`expr '(' $ac_mid ')' + 1`
22300 fi
22301
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 done
22304 case $ac_lo in
22305 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22306 '') if test "$ac_cv_type_void_p" = yes; then
22307      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22308 See \`config.log' for more details." >&5
22309 echo "$as_me: error: cannot compute sizeof (void *)
22310 See \`config.log' for more details." >&2;}
22311    { (exit 77); exit 77; }; }
22312    else
22313      ac_cv_sizeof_void_p=0
22314    fi ;;
22315 esac
22316 else
22317   cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 $ac_includes_default
22324    typedef void * ac__type_sizeof_;
22325 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22326 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22327 #include <stdio.h>
22328 #include <stdlib.h>
22329 int
22330 main ()
22331 {
22332
22333   FILE *f = fopen ("conftest.val", "w");
22334   if (! f)
22335     return 1;
22336   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22337     {
22338       long int i = longval ();
22339       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22340         return 1;
22341       fprintf (f, "%ld\n", i);
22342     }
22343   else
22344     {
22345       unsigned long int i = ulongval ();
22346       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22347         return 1;
22348       fprintf (f, "%lu\n", i);
22349     }
22350   return ferror (f) || fclose (f) != 0;
22351
22352   ;
22353   return 0;
22354 }
22355 _ACEOF
22356 rm -f conftest$ac_exeext
22357 if { (ac_try="$ac_link"
22358 case "(($ac_try" in
22359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360   *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363   (eval "$ac_link") 2>&5
22364   ac_status=$?
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22367   { (case "(($ac_try" in
22368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369   *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372   (eval "$ac_try") 2>&5
22373   ac_status=$?
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); }; }; then
22376   ac_cv_sizeof_void_p=`cat conftest.val`
22377 else
22378   echo "$as_me: program exited with status $ac_status" >&5
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22381
22382 ( exit $ac_status )
22383 if test "$ac_cv_type_void_p" = yes; then
22384      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22385 See \`config.log' for more details." >&5
22386 echo "$as_me: error: cannot compute sizeof (void *)
22387 See \`config.log' for more details." >&2;}
22388    { (exit 77); exit 77; }; }
22389    else
22390      ac_cv_sizeof_void_p=0
22391    fi
22392 fi
22393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22394 fi
22395 rm -f conftest.val
22396 fi
22397 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22398 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22399
22400
22401
22402 cat >>confdefs.h <<_ACEOF
22403 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22404 _ACEOF
22405
22406
22407
22408 # These are the types I need.  We look for them in either stdint.h,
22409 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
22410 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22411 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22412 if test "${ac_cv_type_uint16_t+set}" = set; then
22413   echo $ECHO_N "(cached) $ECHO_C" >&6
22414 else
22415   cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h.  */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h.  */
22421 $ac_includes_default
22422 typedef uint16_t ac__type_new_;
22423 int
22424 main ()
22425 {
22426 if ((ac__type_new_ *) 0)
22427   return 0;
22428 if (sizeof (ac__type_new_))
22429   return 0;
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438   *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441   (eval "$ac_compile") 2>conftest.er1
22442   ac_status=$?
22443   grep -v '^ *+' conftest.er1 >conftest.err
22444   rm -f conftest.er1
22445   cat conftest.err >&5
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } && {
22448          test -z "$ac_c_werror_flag" ||
22449          test ! -s conftest.err
22450        } && test -s conftest.$ac_objext; then
22451   ac_cv_type_uint16_t=yes
22452 else
22453   echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456         ac_cv_type_uint16_t=no
22457 fi
22458
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 fi
22461 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22462 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22463 if test $ac_cv_type_uint16_t = yes; then
22464   ac_cv_have_uint16_t=1
22465 else
22466   ac_cv_have_uint16_t=0
22467 fi
22468
22469 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
22470 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
22471 if test "${ac_cv_type_u_int16_t+set}" = set; then
22472   echo $ECHO_N "(cached) $ECHO_C" >&6
22473 else
22474   cat >conftest.$ac_ext <<_ACEOF
22475 /* confdefs.h.  */
22476 _ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h.  */
22480 $ac_includes_default
22481 typedef u_int16_t ac__type_new_;
22482 int
22483 main ()
22484 {
22485 if ((ac__type_new_ *) 0)
22486   return 0;
22487 if (sizeof (ac__type_new_))
22488   return 0;
22489   ;
22490   return 0;
22491 }
22492 _ACEOF
22493 rm -f conftest.$ac_objext
22494 if { (ac_try="$ac_compile"
22495 case "(($ac_try" in
22496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497   *) ac_try_echo=$ac_try;;
22498 esac
22499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22500   (eval "$ac_compile") 2>conftest.er1
22501   ac_status=$?
22502   grep -v '^ *+' conftest.er1 >conftest.err
22503   rm -f conftest.er1
22504   cat conftest.err >&5
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); } && {
22507          test -z "$ac_c_werror_flag" ||
22508          test ! -s conftest.err
22509        } && test -s conftest.$ac_objext; then
22510   ac_cv_type_u_int16_t=yes
22511 else
22512   echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22514
22515         ac_cv_type_u_int16_t=no
22516 fi
22517
22518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519 fi
22520 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
22521 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
22522 if test $ac_cv_type_u_int16_t = yes; then
22523   ac_cv_have_u_int16_t=1
22524 else
22525   ac_cv_have_u_int16_t=0
22526 fi
22527
22528 { echo "$as_me:$LINENO: checking for __uint16" >&5
22529 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
22530 if test "${ac_cv_type___uint16+set}" = set; then
22531   echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533   cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h.  */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h.  */
22539 $ac_includes_default
22540 typedef __uint16 ac__type_new_;
22541 int
22542 main ()
22543 {
22544 if ((ac__type_new_ *) 0)
22545   return 0;
22546 if (sizeof (ac__type_new_))
22547   return 0;
22548   ;
22549   return 0;
22550 }
22551 _ACEOF
22552 rm -f conftest.$ac_objext
22553 if { (ac_try="$ac_compile"
22554 case "(($ac_try" in
22555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556   *) ac_try_echo=$ac_try;;
22557 esac
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559   (eval "$ac_compile") 2>conftest.er1
22560   ac_status=$?
22561   grep -v '^ *+' conftest.er1 >conftest.err
22562   rm -f conftest.er1
22563   cat conftest.err >&5
22564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565   (exit $ac_status); } && {
22566          test -z "$ac_c_werror_flag" ||
22567          test ! -s conftest.err
22568        } && test -s conftest.$ac_objext; then
22569   ac_cv_type___uint16=yes
22570 else
22571   echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574         ac_cv_type___uint16=no
22575 fi
22576
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 fi
22579 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
22580 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
22581 if test $ac_cv_type___uint16 = yes; then
22582   ac_cv_have___uint16=1
22583 else
22584   ac_cv_have___uint16=0
22585 fi
22586
22587
22588 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
22589 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
22590 if test "${ac_cv_func_sigaltstack+set}" = set; then
22591   echo $ECHO_N "(cached) $ECHO_C" >&6
22592 else
22593   cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h.  */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h.  */
22599 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
22600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22601 #define sigaltstack innocuous_sigaltstack
22602
22603 /* System header to define __stub macros and hopefully few prototypes,
22604     which can conflict with char sigaltstack (); below.
22605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22606     <limits.h> exists even on freestanding compilers.  */
22607
22608 #ifdef __STDC__
22609 # include <limits.h>
22610 #else
22611 # include <assert.h>
22612 #endif
22613
22614 #undef sigaltstack
22615
22616 /* Override any GCC internal prototype to avoid an error.
22617    Use char because int might match the return type of a GCC
22618    builtin and then its argument prototype would still apply.  */
22619 #ifdef __cplusplus
22620 extern "C"
22621 #endif
22622 char sigaltstack ();
22623 /* The GNU C library defines this for functions which it implements
22624     to always fail with ENOSYS.  Some functions are actually named
22625     something starting with __ and the normal name is an alias.  */
22626 #if defined __stub_sigaltstack || defined __stub___sigaltstack
22627 choke me
22628 #endif
22629
22630 int
22631 main ()
22632 {
22633 return sigaltstack ();
22634   ;
22635   return 0;
22636 }
22637 _ACEOF
22638 rm -f conftest.$ac_objext conftest$ac_exeext
22639 if { (ac_try="$ac_link"
22640 case "(($ac_try" in
22641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22642   *) ac_try_echo=$ac_try;;
22643 esac
22644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22645   (eval "$ac_link") 2>conftest.er1
22646   ac_status=$?
22647   grep -v '^ *+' conftest.er1 >conftest.err
22648   rm -f conftest.er1
22649   cat conftest.err >&5
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); } && {
22652          test -z "$ac_c_werror_flag" ||
22653          test ! -s conftest.err
22654        } && test -s conftest$ac_exeext &&
22655        $as_test_x conftest$ac_exeext; then
22656   ac_cv_func_sigaltstack=yes
22657 else
22658   echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22660
22661         ac_cv_func_sigaltstack=no
22662 fi
22663
22664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22665       conftest$ac_exeext conftest.$ac_ext
22666 fi
22667 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
22668 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
22669 if test $ac_cv_func_sigaltstack = yes; then
22670
22671 cat >>confdefs.h <<\_ACEOF
22672 #define HAVE_SIGALTSTACK 1
22673 _ACEOF
22674
22675 fi
22676
22677 { echo "$as_me:$LINENO: checking for dladdr" >&5
22678 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
22679 if test "${ac_cv_func_dladdr+set}" = set; then
22680   echo $ECHO_N "(cached) $ECHO_C" >&6
22681 else
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
22689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22690 #define dladdr innocuous_dladdr
22691
22692 /* System header to define __stub macros and hopefully few prototypes,
22693     which can conflict with char dladdr (); below.
22694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22695     <limits.h> exists even on freestanding compilers.  */
22696
22697 #ifdef __STDC__
22698 # include <limits.h>
22699 #else
22700 # include <assert.h>
22701 #endif
22702
22703 #undef dladdr
22704
22705 /* Override any GCC internal prototype to avoid an error.
22706    Use char because int might match the return type of a GCC
22707    builtin and then its argument prototype would still apply.  */
22708 #ifdef __cplusplus
22709 extern "C"
22710 #endif
22711 char dladdr ();
22712 /* The GNU C library defines this for functions which it implements
22713     to always fail with ENOSYS.  Some functions are actually named
22714     something starting with __ and the normal name is an alias.  */
22715 #if defined __stub_dladdr || defined __stub___dladdr
22716 choke me
22717 #endif
22718
22719 int
22720 main ()
22721 {
22722 return dladdr ();
22723   ;
22724   return 0;
22725 }
22726 _ACEOF
22727 rm -f conftest.$ac_objext conftest$ac_exeext
22728 if { (ac_try="$ac_link"
22729 case "(($ac_try" in
22730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731   *) ac_try_echo=$ac_try;;
22732 esac
22733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734   (eval "$ac_link") 2>conftest.er1
22735   ac_status=$?
22736   grep -v '^ *+' conftest.er1 >conftest.err
22737   rm -f conftest.er1
22738   cat conftest.err >&5
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); } && {
22741          test -z "$ac_c_werror_flag" ||
22742          test ! -s conftest.err
22743        } && test -s conftest$ac_exeext &&
22744        $as_test_x conftest$ac_exeext; then
22745   ac_cv_func_dladdr=yes
22746 else
22747   echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22749
22750         ac_cv_func_dladdr=no
22751 fi
22752
22753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22754       conftest$ac_exeext conftest.$ac_ext
22755 fi
22756 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
22757 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
22758 if test $ac_cv_func_dladdr = yes; then
22759
22760 cat >>confdefs.h <<\_ACEOF
22761 #define HAVE_DLADDR 1
22762 _ACEOF
22763
22764 fi
22765
22766 { echo "$as_me:$LINENO: checking for fcntl" >&5
22767 echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
22768 if test "${ac_cv_func_fcntl+set}" = set; then
22769   echo $ECHO_N "(cached) $ECHO_C" >&6
22770 else
22771   cat >conftest.$ac_ext <<_ACEOF
22772 /* confdefs.h.  */
22773 _ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h.  */
22777 /* Define fcntl to an innocuous variant, in case <limits.h> declares fcntl.
22778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22779 #define fcntl innocuous_fcntl
22780
22781 /* System header to define __stub macros and hopefully few prototypes,
22782     which can conflict with char fcntl (); below.
22783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22784     <limits.h> exists even on freestanding compilers.  */
22785
22786 #ifdef __STDC__
22787 # include <limits.h>
22788 #else
22789 # include <assert.h>
22790 #endif
22791
22792 #undef fcntl
22793
22794 /* Override any GCC internal prototype to avoid an error.
22795    Use char because int might match the return type of a GCC
22796    builtin and then its argument prototype would still apply.  */
22797 #ifdef __cplusplus
22798 extern "C"
22799 #endif
22800 char fcntl ();
22801 /* The GNU C library defines this for functions which it implements
22802     to always fail with ENOSYS.  Some functions are actually named
22803     something starting with __ and the normal name is an alias.  */
22804 #if defined __stub_fcntl || defined __stub___fcntl
22805 choke me
22806 #endif
22807
22808 int
22809 main ()
22810 {
22811 return fcntl ();
22812   ;
22813   return 0;
22814 }
22815 _ACEOF
22816 rm -f conftest.$ac_objext conftest$ac_exeext
22817 if { (ac_try="$ac_link"
22818 case "(($ac_try" in
22819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820   *) ac_try_echo=$ac_try;;
22821 esac
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823   (eval "$ac_link") 2>conftest.er1
22824   ac_status=$?
22825   grep -v '^ *+' conftest.er1 >conftest.err
22826   rm -f conftest.er1
22827   cat conftest.err >&5
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); } && {
22830          test -z "$ac_c_werror_flag" ||
22831          test ! -s conftest.err
22832        } && test -s conftest$ac_exeext &&
22833        $as_test_x conftest$ac_exeext; then
22834   ac_cv_func_fcntl=yes
22835 else
22836   echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22838
22839         ac_cv_func_fcntl=no
22840 fi
22841
22842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22843       conftest$ac_exeext conftest.$ac_ext
22844 fi
22845 { echo "$as_me:$LINENO: result: $ac_cv_func_fcntl" >&5
22846 echo "${ECHO_T}$ac_cv_func_fcntl" >&6; }
22847 if test $ac_cv_func_fcntl = yes; then
22848
22849 cat >>confdefs.h <<\_ACEOF
22850 #define HAVE_FCNTL 1
22851 _ACEOF
22852
22853 fi
22854
22855
22856
22857   { echo "$as_me:$LINENO: checking for __attribute__" >&5
22858 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22859   if test "${ac_cv___attribute__+set}" = set; then
22860   echo $ECHO_N "(cached) $ECHO_C" >&6
22861 else
22862
22863     cat >conftest.$ac_ext <<_ACEOF
22864 /* confdefs.h.  */
22865 _ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h.  */
22869 #include <stdlib.h>
22870        static void foo(void) __attribute__ ((unused));
22871        void foo(void) { exit(1); }
22872 int
22873 main ()
22874 {
22875
22876   ;
22877   return 0;
22878 }
22879 _ACEOF
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884   *) ac_try_echo=$ac_try;;
22885 esac
22886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22887   (eval "$ac_compile") 2>conftest.er1
22888   ac_status=$?
22889   grep -v '^ *+' conftest.er1 >conftest.err
22890   rm -f conftest.er1
22891   cat conftest.err >&5
22892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } && {
22894          test -z "$ac_c_werror_flag" ||
22895          test ! -s conftest.err
22896        } && test -s conftest.$ac_objext; then
22897   ac_cv___attribute__=yes
22898 else
22899   echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902         ac_cv___attribute__=no
22903
22904 fi
22905
22906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22907 fi
22908
22909   if test "$ac_cv___attribute__" = "yes"; then
22910
22911 cat >>confdefs.h <<\_ACEOF
22912 #define HAVE___ATTRIBUTE__ 1
22913 _ACEOF
22914
22915   fi
22916   { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
22917 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
22918
22919 # We only care about these two attributes.
22920 if test x"$ac_cv___attribute__" = x"yes"; then
22921   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
22922   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
22923 else
22924   ac_cv___attribute___noreturn=
22925   ac_cv___attribute___printf_4_5=
22926 fi
22927
22928
22929   { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
22930 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
22931   if test "${ac_cv___builtin_expect+set}" = set; then
22932   echo $ECHO_N "(cached) $ECHO_C" >&6
22933 else
22934
22935     cat >conftest.$ac_ext <<_ACEOF
22936 /* confdefs.h.  */
22937 _ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h.  */
22941 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
22942 int
22943 main ()
22944 {
22945
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954   *) ac_try_echo=$ac_try;;
22955 esac
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957   (eval "$ac_compile") 2>conftest.er1
22958   ac_status=$?
22959   grep -v '^ *+' conftest.er1 >conftest.err
22960   rm -f conftest.er1
22961   cat conftest.err >&5
22962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963   (exit $ac_status); } && {
22964          test -z "$ac_c_werror_flag" ||
22965          test ! -s conftest.err
22966        } && test -s conftest.$ac_objext; then
22967   ac_cv___builtin_expect=yes
22968 else
22969   echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22971
22972         ac_cv___builtin_expect=no
22973
22974 fi
22975
22976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 fi
22978
22979   if test "$ac_cv___builtin_expect" = "yes"; then
22980
22981 cat >>confdefs.h <<\_ACEOF
22982 #define HAVE___BUILTIN_EXPECT 1
22983 _ACEOF
22984
22985   fi
22986   { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22987 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22988
22989 if test x"$ac_cv___builtin_expect" = x"yes"; then
22990   ac_cv_have___builtin_expect=1
22991 else
22992   ac_cv_have___builtin_expect=0
22993 fi
22994
22995
22996   { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22997 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
22998   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
22999   echo $ECHO_N "(cached) $ECHO_C" >&6
23000 else
23001
23002     cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h.  */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h.  */
23008 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
23009 int
23010 main ()
23011 {
23012
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 rm -f conftest.$ac_objext conftest$ac_exeext
23018 if { (ac_try="$ac_link"
23019 case "(($ac_try" in
23020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021   *) ac_try_echo=$ac_try;;
23022 esac
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024   (eval "$ac_link") 2>conftest.er1
23025   ac_status=$?
23026   grep -v '^ *+' conftest.er1 >conftest.err
23027   rm -f conftest.er1
23028   cat conftest.err >&5
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } && {
23031          test -z "$ac_c_werror_flag" ||
23032          test ! -s conftest.err
23033        } && test -s conftest$ac_exeext &&
23034        $as_test_x conftest$ac_exeext; then
23035   ac_cv___sync_val_compare_and_swap=yes
23036 else
23037   echo "$as_me: failed program was:" >&5
23038 sed 's/^/| /' conftest.$ac_ext >&5
23039
23040         ac_cv___sync_val_compare_and_swap=no
23041
23042 fi
23043
23044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23045       conftest$ac_exeext conftest.$ac_ext
23046 fi
23047
23048   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
23049
23050 cat >>confdefs.h <<\_ACEOF
23051 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
23052 _ACEOF
23053
23054   fi
23055   { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
23056 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
23057
23058
23059 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
23060 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
23061 # Check whether --enable-frame_pointers was given.
23062 if test "${enable_frame_pointers+set}" = set; then
23063   enableval=$enable_frame_pointers; enable_frame_pointers=no
23064 fi
23065
23066 cat >conftest.$ac_ext <<_ACEOF
23067 /* confdefs.h.  */
23068 _ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h.  */
23072
23073 int
23074 main ()
23075 {
23076 return __x86_64__ == 1 ? 0 : 1
23077   ;
23078   return 0;
23079 }
23080 _ACEOF
23081 rm -f conftest.$ac_objext
23082 if { (ac_try="$ac_compile"
23083 case "(($ac_try" in
23084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085   *) ac_try_echo=$ac_try;;
23086 esac
23087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088   (eval "$ac_compile") 2>conftest.er1
23089   ac_status=$?
23090   grep -v '^ *+' conftest.er1 >conftest.err
23091   rm -f conftest.er1
23092   cat conftest.err >&5
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } && {
23095          test -z "$ac_c_werror_flag" ||
23096          test ! -s conftest.err
23097        } && test -s conftest.$ac_objext; then
23098   is_x86_64=yes
23099 else
23100   echo "$as_me: failed program was:" >&5
23101 sed 's/^/| /' conftest.$ac_ext >&5
23102
23103         is_x86_64=no
23104 fi
23105
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23107  if test "$enable_frame_pointers" = yes; then
23108   ENABLE_FRAME_POINTERS_TRUE=
23109   ENABLE_FRAME_POINTERS_FALSE='#'
23110 else
23111   ENABLE_FRAME_POINTERS_TRUE='#'
23112   ENABLE_FRAME_POINTERS_FALSE=
23113 fi
23114
23115  if test "$is_x86_64" = yes; then
23116   X86_64_TRUE=
23117   X86_64_FALSE='#'
23118 else
23119   X86_64_TRUE='#'
23120   X86_64_FALSE=
23121 fi
23122
23123
23124 # Some of the code in this directory depends on pthreads
23125
23126
23127
23128 ac_ext=c
23129 ac_cpp='$CPP $CPPFLAGS'
23130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23133
23134 acx_pthread_ok=no
23135
23136 # We used to check for pthread.h first, but this fails if pthread.h
23137 # requires special compiler flags (e.g. on True64 or Sequent).
23138 # It gets checked for in the link test anyway.
23139
23140 # First of all, check if the user has set any of the PTHREAD_LIBS,
23141 # etcetera environment variables, and if threads linking works using
23142 # them:
23143 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23144         save_CFLAGS="$CFLAGS"
23145         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23146         save_LIBS="$LIBS"
23147         LIBS="$PTHREAD_LIBS $LIBS"
23148         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23149 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
23150         cat >conftest.$ac_ext <<_ACEOF
23151 /* confdefs.h.  */
23152 _ACEOF
23153 cat confdefs.h >>conftest.$ac_ext
23154 cat >>conftest.$ac_ext <<_ACEOF
23155 /* end confdefs.h.  */
23156
23157 /* Override any GCC internal prototype to avoid an error.
23158    Use char because int might match the return type of a GCC
23159    builtin and then its argument prototype would still apply.  */
23160 #ifdef __cplusplus
23161 extern "C"
23162 #endif
23163 char pthread_join ();
23164 int
23165 main ()
23166 {
23167 return pthread_join ();
23168   ;
23169   return 0;
23170 }
23171 _ACEOF
23172 rm -f conftest.$ac_objext conftest$ac_exeext
23173 if { (ac_try="$ac_link"
23174 case "(($ac_try" in
23175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176   *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179   (eval "$ac_link") 2>conftest.er1
23180   ac_status=$?
23181   grep -v '^ *+' conftest.er1 >conftest.err
23182   rm -f conftest.er1
23183   cat conftest.err >&5
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } && {
23186          test -z "$ac_c_werror_flag" ||
23187          test ! -s conftest.err
23188        } && test -s conftest$ac_exeext &&
23189        $as_test_x conftest$ac_exeext; then
23190   acx_pthread_ok=yes
23191 else
23192   echo "$as_me: failed program was:" >&5
23193 sed 's/^/| /' conftest.$ac_ext >&5
23194
23195
23196 fi
23197
23198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23199       conftest$ac_exeext conftest.$ac_ext
23200         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23201 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23202         if test x"$acx_pthread_ok" = xno; then
23203                 PTHREAD_LIBS=""
23204                 PTHREAD_CFLAGS=""
23205         fi
23206         LIBS="$save_LIBS"
23207         CFLAGS="$save_CFLAGS"
23208 fi
23209
23210 # We must check for the threads library under a number of different
23211 # names; the ordering is very important because some systems
23212 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23213 # libraries is broken (non-POSIX).
23214
23215 # Create a list of thread flags to try.  Items starting with a "-" are
23216 # C compiler flags, and other items are library names, except for "none"
23217 # which indicates that we try without any flags at all, and "pthread-config"
23218 # which is a program returning the flags for the Pth emulation library.
23219
23220 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
23221
23222 # The ordering *is* (sometimes) important.  Some notes on the
23223 # individual items follow:
23224
23225 # pthreads: AIX (must check this before -lpthread)
23226 # none: in case threads are in libc; should be tried before -Kthread and
23227 #       other compiler flags to prevent continual compiler warnings
23228 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23229 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23230 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23231 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23232 # -pthreads: Solaris/gcc
23233 # -mthreads: Mingw32/gcc, Lynx/gcc
23234 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23235 #      doesn't hurt to check since this sometimes defines pthreads too;
23236 #      also defines -D_REENTRANT)
23237 #      ... -mt is also the pthreads flag for HP/aCC
23238 # pthread: Linux, etcetera
23239 # --thread-safe: KAI C++
23240 # pthread-config: use pthread-config program (for GNU Pth library)
23241
23242 case "${host_cpu}-${host_os}" in
23243         *solaris*)
23244
23245         # On Solaris (at least, for some versions), libc contains stubbed
23246         # (non-functional) versions of the pthreads routines, so link-based
23247         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
23248         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23249         # a function called by this macro, so we could check for that, but
23250         # who knows whether they'll stub that too in a future libc.)  So,
23251         # we'll just look for -pthreads and -lpthread first:
23252
23253         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
23254         ;;
23255 esac
23256
23257 if test x"$acx_pthread_ok" = xno; then
23258 for flag in $acx_pthread_flags; do
23259
23260         case $flag in
23261                 none)
23262                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23263 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
23264                 ;;
23265
23266                 -*)
23267                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23268 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
23269                 PTHREAD_CFLAGS="$flag"
23270                 ;;
23271
23272                 pthread-config)
23273                 # Extract the first word of "pthread-config", so it can be a program name with args.
23274 set dummy pthread-config; ac_word=$2
23275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23277 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23278   echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280   if test -n "$acx_pthread_config"; then
23281   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23282 else
23283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23284 for as_dir in $PATH
23285 do
23286   IFS=$as_save_IFS
23287   test -z "$as_dir" && as_dir=.
23288   for ac_exec_ext in '' $ac_executable_extensions; do
23289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23290     ac_cv_prog_acx_pthread_config="yes"
23291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23292     break 2
23293   fi
23294 done
23295 done
23296 IFS=$as_save_IFS
23297
23298   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23299 fi
23300 fi
23301 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23302 if test -n "$acx_pthread_config"; then
23303   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23304 echo "${ECHO_T}$acx_pthread_config" >&6; }
23305 else
23306   { echo "$as_me:$LINENO: result: no" >&5
23307 echo "${ECHO_T}no" >&6; }
23308 fi
23309
23310
23311                 if test x"$acx_pthread_config" = xno; then continue; fi
23312                 PTHREAD_CFLAGS="`pthread-config --cflags`"
23313                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23314                 ;;
23315
23316                 *)
23317                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23318 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
23319                 PTHREAD_LIBS="-l$flag"
23320                 ;;
23321         esac
23322
23323         save_LIBS="$LIBS"
23324         save_CFLAGS="$CFLAGS"
23325         LIBS="$PTHREAD_LIBS $LIBS"
23326         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23327
23328         # Check for various functions.  We must include pthread.h,
23329         # since some functions may be macros.  (On the Sequent, we
23330         # need a special flag -Kthread to make this header compile.)
23331         # We check for pthread_join because it is in -lpthread on IRIX
23332         # while pthread_create is in libc.  We check for pthread_attr_init
23333         # due to DEC craziness with -lpthreads.  We check for
23334         # pthread_cleanup_push because it is one of the few pthread
23335         # functions on Solaris that doesn't have a non-functional libc stub.
23336         # We try pthread_create on general principles.
23337         cat >conftest.$ac_ext <<_ACEOF
23338 /* confdefs.h.  */
23339 _ACEOF
23340 cat confdefs.h >>conftest.$ac_ext
23341 cat >>conftest.$ac_ext <<_ACEOF
23342 /* end confdefs.h.  */
23343 #include <pthread.h>
23344 int
23345 main ()
23346 {
23347 pthread_t th; pthread_join(th, 0);
23348                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23349                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23350   ;
23351   return 0;
23352 }
23353 _ACEOF
23354 rm -f conftest.$ac_objext conftest$ac_exeext
23355 if { (ac_try="$ac_link"
23356 case "(($ac_try" in
23357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23358   *) ac_try_echo=$ac_try;;
23359 esac
23360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23361   (eval "$ac_link") 2>conftest.er1
23362   ac_status=$?
23363   grep -v '^ *+' conftest.er1 >conftest.err
23364   rm -f conftest.er1
23365   cat conftest.err >&5
23366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367   (exit $ac_status); } && {
23368          test -z "$ac_c_werror_flag" ||
23369          test ! -s conftest.err
23370        } && test -s conftest$ac_exeext &&
23371        $as_test_x conftest$ac_exeext; then
23372   acx_pthread_ok=yes
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377
23378 fi
23379
23380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23381       conftest$ac_exeext conftest.$ac_ext
23382
23383         LIBS="$save_LIBS"
23384         CFLAGS="$save_CFLAGS"
23385
23386         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23387 echo "${ECHO_T}$acx_pthread_ok" >&6; }
23388         if test "x$acx_pthread_ok" = xyes; then
23389                 break;
23390         fi
23391
23392         PTHREAD_LIBS=""
23393         PTHREAD_CFLAGS=""
23394 done
23395 fi
23396
23397 # Various other checks:
23398 if test "x$acx_pthread_ok" = xyes; then
23399         save_LIBS="$LIBS"
23400         LIBS="$PTHREAD_LIBS $LIBS"
23401         save_CFLAGS="$CFLAGS"
23402         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23403
23404         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
23405         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23406 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
23407         attr_name=unknown
23408         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
23409             cat >conftest.$ac_ext <<_ACEOF
23410 /* confdefs.h.  */
23411 _ACEOF
23412 cat confdefs.h >>conftest.$ac_ext
23413 cat >>conftest.$ac_ext <<_ACEOF
23414 /* end confdefs.h.  */
23415 #include <pthread.h>
23416 int
23417 main ()
23418 {
23419 int attr=$attr; return attr;
23420   ;
23421   return 0;
23422 }
23423 _ACEOF
23424 rm -f conftest.$ac_objext conftest$ac_exeext
23425 if { (ac_try="$ac_link"
23426 case "(($ac_try" in
23427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428   *) ac_try_echo=$ac_try;;
23429 esac
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431   (eval "$ac_link") 2>conftest.er1
23432   ac_status=$?
23433   grep -v '^ *+' conftest.er1 >conftest.err
23434   rm -f conftest.er1
23435   cat conftest.err >&5
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); } && {
23438          test -z "$ac_c_werror_flag" ||
23439          test ! -s conftest.err
23440        } && test -s conftest$ac_exeext &&
23441        $as_test_x conftest$ac_exeext; then
23442   attr_name=$attr; break
23443 else
23444   echo "$as_me: failed program was:" >&5
23445 sed 's/^/| /' conftest.$ac_ext >&5
23446
23447
23448 fi
23449
23450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23451       conftest$ac_exeext conftest.$ac_ext
23452         done
23453         { echo "$as_me:$LINENO: result: $attr_name" >&5
23454 echo "${ECHO_T}$attr_name" >&6; }
23455         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
23456
23457 cat >>confdefs.h <<_ACEOF
23458 #define PTHREAD_CREATE_JOINABLE $attr_name
23459 _ACEOF
23460
23461         fi
23462
23463         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23464 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
23465         flag=no
23466         case "${host_cpu}-${host_os}" in
23467             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23468             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23469         esac
23470         { echo "$as_me:$LINENO: result: ${flag}" >&5
23471 echo "${ECHO_T}${flag}" >&6; }
23472         if test "x$flag" != xno; then
23473             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23474         fi
23475
23476         LIBS="$save_LIBS"
23477         CFLAGS="$save_CFLAGS"
23478         # More AIX lossage: must compile with xlc_r or cc_r
23479         if test x"$GCC" != xyes; then
23480           for ac_prog in xlc_r cc_r
23481 do
23482   # Extract the first word of "$ac_prog", so it can be a program name with args.
23483 set dummy $ac_prog; ac_word=$2
23484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23486 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23487   echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489   if test -n "$PTHREAD_CC"; then
23490   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23491 else
23492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23493 for as_dir in $PATH
23494 do
23495   IFS=$as_save_IFS
23496   test -z "$as_dir" && as_dir=.
23497   for ac_exec_ext in '' $ac_executable_extensions; do
23498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23499     ac_cv_prog_PTHREAD_CC="$ac_prog"
23500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23501     break 2
23502   fi
23503 done
23504 done
23505 IFS=$as_save_IFS
23506
23507 fi
23508 fi
23509 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23510 if test -n "$PTHREAD_CC"; then
23511   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23512 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23513 else
23514   { echo "$as_me:$LINENO: result: no" >&5
23515 echo "${ECHO_T}no" >&6; }
23516 fi
23517
23518
23519   test -n "$PTHREAD_CC" && break
23520 done
23521 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
23522
23523         else
23524           PTHREAD_CC=$CC
23525         fi
23526
23527    # The next part tries to detect GCC inconsistency with -shared on some
23528    # architectures and systems. The problem is that in certain
23529    # configurations, when -shared is specified, GCC "forgets" to
23530    # internally use various flags which are still necessary.
23531
23532    { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
23533 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
23534    check_inconsistencies=yes
23535    case "${host_cpu}-${host_os}" in
23536      *-darwin*) check_inconsistencies=no ;;
23537    esac
23538    if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
23539       { echo "$as_me:$LINENO: result: no" >&5
23540 echo "${ECHO_T}no" >&6; }
23541    else
23542       { echo "$as_me:$LINENO: result: yes" >&5
23543 echo "${ECHO_T}yes" >&6; }
23544
23545       # In order not to create several levels of indentation, we test
23546       # the value of "$ok" until we find out the cure or run out of
23547       # ideas.
23548       ok="no"
23549
23550       #
23551       # Prepare the flags
23552       #
23553       save_CFLAGS="$CFLAGS"
23554       save_LIBS="$LIBS"
23555       save_CC="$CC"
23556       # Try with the flags determined by the earlier checks.
23557       #
23558       # -Wl,-z,defs forces link-time symbol resolution, so that the
23559       # linking checks with -shared actually have any value
23560       #
23561       # FIXME: -fPIC is required for -shared on many architectures,
23562       # so we specify it here, but the right way would probably be to
23563       # properly detect whether it is actually required.
23564       CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
23565       LIBS="$PTHREAD_LIBS $LIBS"
23566       CC="$PTHREAD_CC"
23567
23568       { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
23569 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
23570       cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h.  */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h.  */
23576 #include <pthread.h>
23577 int
23578 main ()
23579 {
23580 pthread_t th; pthread_join(th, 0);
23581          pthread_attr_init(0); pthread_cleanup_push(0, 0);
23582          pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23583   ;
23584   return 0;
23585 }
23586 _ACEOF
23587 rm -f conftest.$ac_objext conftest$ac_exeext
23588 if { (ac_try="$ac_link"
23589 case "(($ac_try" in
23590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591   *) ac_try_echo=$ac_try;;
23592 esac
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594   (eval "$ac_link") 2>conftest.er1
23595   ac_status=$?
23596   grep -v '^ *+' conftest.er1 >conftest.err
23597   rm -f conftest.er1
23598   cat conftest.err >&5
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); } && {
23601          test -z "$ac_c_werror_flag" ||
23602          test ! -s conftest.err
23603        } && test -s conftest$ac_exeext &&
23604        $as_test_x conftest$ac_exeext; then
23605   ok=yes
23606 else
23607   echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610
23611 fi
23612
23613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23614       conftest$ac_exeext conftest.$ac_ext
23615
23616       if test "x$ok" = xyes; then
23617          { echo "$as_me:$LINENO: result: yes" >&5
23618 echo "${ECHO_T}yes" >&6; }
23619       else
23620          { echo "$as_me:$LINENO: result: no" >&5
23621 echo "${ECHO_T}no" >&6; }
23622       fi
23623
23624       #
23625       # Linux gcc on some architectures such as mips/mipsel forgets
23626       # about -lpthread
23627       #
23628       if test x"$ok" = xno; then
23629          { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
23630 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
23631          LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
23632          cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h.  */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h.  */
23638 #include <pthread.h>
23639 int
23640 main ()
23641 {
23642 pthread_t th; pthread_join(th, 0);
23643             pthread_attr_init(0); pthread_cleanup_push(0, 0);
23644             pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23645   ;
23646   return 0;
23647 }
23648 _ACEOF
23649 rm -f conftest.$ac_objext conftest$ac_exeext
23650 if { (ac_try="$ac_link"
23651 case "(($ac_try" in
23652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653   *) ac_try_echo=$ac_try;;
23654 esac
23655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23656   (eval "$ac_link") 2>conftest.er1
23657   ac_status=$?
23658   grep -v '^ *+' conftest.er1 >conftest.err
23659   rm -f conftest.er1
23660   cat conftest.err >&5
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); } && {
23663          test -z "$ac_c_werror_flag" ||
23664          test ! -s conftest.err
23665        } && test -s conftest$ac_exeext &&
23666        $as_test_x conftest$ac_exeext; then
23667   ok=yes
23668 else
23669   echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23671
23672
23673 fi
23674
23675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23676       conftest$ac_exeext conftest.$ac_ext
23677
23678          if test "x$ok" = xyes; then
23679             { echo "$as_me:$LINENO: result: yes" >&5
23680 echo "${ECHO_T}yes" >&6; }
23681             PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
23682          else
23683             { echo "$as_me:$LINENO: result: no" >&5
23684 echo "${ECHO_T}no" >&6; }
23685          fi
23686       fi
23687       #
23688       # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
23689       #
23690       if test x"$ok" = xno; then
23691          { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
23692 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
23693          LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
23694          cat >conftest.$ac_ext <<_ACEOF
23695 /* confdefs.h.  */
23696 _ACEOF
23697 cat confdefs.h >>conftest.$ac_ext
23698 cat >>conftest.$ac_ext <<_ACEOF
23699 /* end confdefs.h.  */
23700 #include <pthread.h>
23701 int
23702 main ()
23703 {
23704 pthread_t th; pthread_join(th, 0);
23705               pthread_attr_init(0); pthread_cleanup_push(0, 0);
23706               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23707   ;
23708   return 0;
23709 }
23710 _ACEOF
23711 rm -f conftest.$ac_objext conftest$ac_exeext
23712 if { (ac_try="$ac_link"
23713 case "(($ac_try" in
23714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715   *) ac_try_echo=$ac_try;;
23716 esac
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718   (eval "$ac_link") 2>conftest.er1
23719   ac_status=$?
23720   grep -v '^ *+' conftest.er1 >conftest.err
23721   rm -f conftest.er1
23722   cat conftest.err >&5
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); } && {
23725          test -z "$ac_c_werror_flag" ||
23726          test ! -s conftest.err
23727        } && test -s conftest$ac_exeext &&
23728        $as_test_x conftest$ac_exeext; then
23729   ok=yes
23730 else
23731   echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23733
23734
23735 fi
23736
23737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23738       conftest$ac_exeext conftest.$ac_ext
23739
23740          if test "x$ok" = xyes; then
23741             { echo "$as_me:$LINENO: result: yes" >&5
23742 echo "${ECHO_T}yes" >&6; }
23743             PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
23744          else
23745             { echo "$as_me:$LINENO: result: no" >&5
23746 echo "${ECHO_T}no" >&6; }
23747          fi
23748       fi
23749       if test x"$ok" = xno; then
23750          # OK, we have run out of ideas
23751          { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
23752 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
23753
23754          # so it's not safe to assume that we may use pthreads
23755          acx_pthread_ok=no
23756       fi
23757
23758       CFLAGS="$save_CFLAGS"
23759       LIBS="$save_LIBS"
23760       CC="$save_CC"
23761    fi
23762 else
23763         PTHREAD_CC="$CC"
23764 fi
23765
23766
23767
23768
23769
23770 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23771 if test x"$acx_pthread_ok" = xyes; then
23772
23773 cat >>confdefs.h <<\_ACEOF
23774 #define HAVE_PTHREAD 1
23775 _ACEOF
23776
23777         :
23778 else
23779         acx_pthread_ok=no
23780
23781 fi
23782 ac_ext=c
23783 ac_cpp='$CPP $CPPFLAGS'
23784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23787
23788
23789 # To make libglog depend on libpthread on Linux, we need to add
23790 # -lpthread in addition to -pthread.
23791
23792 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
23793 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
23794 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
23795   echo $ECHO_N "(cached) $ECHO_C" >&6
23796 else
23797   ac_check_lib_save_LIBS=$LIBS
23798 LIBS="-lpthread  $LIBS"
23799 cat >conftest.$ac_ext <<_ACEOF
23800 /* confdefs.h.  */
23801 _ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h.  */
23805
23806 /* Override any GCC internal prototype to avoid an error.
23807    Use char because int might match the return type of a GCC
23808    builtin and then its argument prototype would still apply.  */
23809 #ifdef __cplusplus
23810 extern "C"
23811 #endif
23812 char pthread_self ();
23813 int
23814 main ()
23815 {
23816 return pthread_self ();
23817   ;
23818   return 0;
23819 }
23820 _ACEOF
23821 rm -f conftest.$ac_objext conftest$ac_exeext
23822 if { (ac_try="$ac_link"
23823 case "(($ac_try" in
23824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825   *) ac_try_echo=$ac_try;;
23826 esac
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828   (eval "$ac_link") 2>conftest.er1
23829   ac_status=$?
23830   grep -v '^ *+' conftest.er1 >conftest.err
23831   rm -f conftest.er1
23832   cat conftest.err >&5
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); } && {
23835          test -z "$ac_c_werror_flag" ||
23836          test ! -s conftest.err
23837        } && test -s conftest$ac_exeext &&
23838        $as_test_x conftest$ac_exeext; then
23839   ac_cv_lib_pthread_pthread_self=yes
23840 else
23841   echo "$as_me: failed program was:" >&5
23842 sed 's/^/| /' conftest.$ac_ext >&5
23843
23844         ac_cv_lib_pthread_pthread_self=no
23845 fi
23846
23847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23848       conftest$ac_exeext conftest.$ac_ext
23849 LIBS=$ac_check_lib_save_LIBS
23850 fi
23851 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
23852 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
23853 if test $ac_cv_lib_pthread_pthread_self = yes; then
23854   cat >>confdefs.h <<_ACEOF
23855 #define HAVE_LIBPTHREAD 1
23856 _ACEOF
23857
23858   LIBS="-lpthread $LIBS"
23859
23860 fi
23861
23862
23863 # Check if there is google-gflags library installed.
23864 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
23865 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
23866 if test "${ac_cv_lib_gflags_main+set}" = set; then
23867   echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869   ac_check_lib_save_LIBS=$LIBS
23870 LIBS="-lgflags  $LIBS"
23871 cat >conftest.$ac_ext <<_ACEOF
23872 /* confdefs.h.  */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h.  */
23877
23878
23879 int
23880 main ()
23881 {
23882 return main ();
23883   ;
23884   return 0;
23885 }
23886 _ACEOF
23887 rm -f conftest.$ac_objext conftest$ac_exeext
23888 if { (ac_try="$ac_link"
23889 case "(($ac_try" in
23890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891   *) ac_try_echo=$ac_try;;
23892 esac
23893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23894   (eval "$ac_link") 2>conftest.er1
23895   ac_status=$?
23896   grep -v '^ *+' conftest.er1 >conftest.err
23897   rm -f conftest.er1
23898   cat conftest.err >&5
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); } && {
23901          test -z "$ac_c_werror_flag" ||
23902          test ! -s conftest.err
23903        } && test -s conftest$ac_exeext &&
23904        $as_test_x conftest$ac_exeext; then
23905   ac_cv_lib_gflags_main=yes
23906 else
23907   echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23909
23910         ac_cv_lib_gflags_main=no
23911 fi
23912
23913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23914       conftest$ac_exeext conftest.$ac_ext
23915 LIBS=$ac_check_lib_save_LIBS
23916 fi
23917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
23918 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
23919 if test $ac_cv_lib_gflags_main = yes; then
23920   ac_cv_have_libgflags=1
23921 else
23922   ac_cv_have_libgflags=0
23923 fi
23924
23925 if test x"$ac_cv_have_libgflags" = x"1"; then
23926   GFLAGS_LIBS=-lgflags
23927
23928 cat >>confdefs.h <<\_ACEOF
23929 #define HAVE_LIB_GFLAGS 1
23930 _ACEOF
23931
23932 else
23933   GFLAGS_LIBS=
23934 fi
23935
23936 # TODO(hamaji): Use official m4 macros provided by testing libraries
23937 #               once the m4 macro of Google Mocking becomes ready.
23938 # Check if there is Google Test library installed.
23939 # Extract the first word of "gtest-config", so it can be a program name with args.
23940 set dummy gtest-config; ac_word=$2
23941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23943 if test "${ac_cv_prog_GTEST_CONFIG+set}" = set; then
23944   echo $ECHO_N "(cached) $ECHO_C" >&6
23945 else
23946   if test -n "$GTEST_CONFIG"; then
23947   ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
23948 else
23949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23950 for as_dir in $PATH
23951 do
23952   IFS=$as_save_IFS
23953   test -z "$as_dir" && as_dir=.
23954   for ac_exec_ext in '' $ac_executable_extensions; do
23955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23956     ac_cv_prog_GTEST_CONFIG=""yes""
23957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23958     break 2
23959   fi
23960 done
23961 done
23962 IFS=$as_save_IFS
23963
23964 fi
23965 fi
23966 GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
23967 if test -n "$GTEST_CONFIG"; then
23968   { echo "$as_me:$LINENO: result: $GTEST_CONFIG" >&5
23969 echo "${ECHO_T}$GTEST_CONFIG" >&6; }
23970 else
23971   { echo "$as_me:$LINENO: result: no" >&5
23972 echo "${ECHO_T}no" >&6; }
23973 fi
23974
23975
23976 if test x"$GTEST_CONFIG" = "xyes"; then
23977   GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
23978   GTEST_LIBS=`gtest-config --ldflags --libs`
23979
23980 cat >>confdefs.h <<\_ACEOF
23981 #define HAVE_LIB_GTEST 1
23982 _ACEOF
23983
23984
23985   # Check if there is Google Mocking library installed.
23986   # Extract the first word of "gmock-config", so it can be a program name with args.
23987 set dummy gmock-config; ac_word=$2
23988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23990 if test "${ac_cv_prog_GMOCK_CONFIG+set}" = set; then
23991   echo $ECHO_N "(cached) $ECHO_C" >&6
23992 else
23993   if test -n "$GMOCK_CONFIG"; then
23994   ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
23995 else
23996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23997 for as_dir in $PATH
23998 do
23999   IFS=$as_save_IFS
24000   test -z "$as_dir" && as_dir=.
24001   for ac_exec_ext in '' $ac_executable_extensions; do
24002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24003     ac_cv_prog_GMOCK_CONFIG=""yes""
24004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24005     break 2
24006   fi
24007 done
24008 done
24009 IFS=$as_save_IFS
24010
24011 fi
24012 fi
24013 GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
24014 if test -n "$GMOCK_CONFIG"; then
24015   { echo "$as_me:$LINENO: result: $GMOCK_CONFIG" >&5
24016 echo "${ECHO_T}$GMOCK_CONFIG" >&6; }
24017 else
24018   { echo "$as_me:$LINENO: result: no" >&5
24019 echo "${ECHO_T}no" >&6; }
24020 fi
24021
24022
24023   if test x"$GMOCK_CONFIG" = "xyes"; then
24024     GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
24025     GMOCK_LIBS=`gmock-config --ldflags --libs`
24026
24027 cat >>confdefs.h <<\_ACEOF
24028 #define HAVE_LIB_GMOCK 1
24029 _ACEOF
24030
24031   else
24032     # We don't run test cases which use Google Mocking framework.
24033     GMOCK_CFLAGS=
24034     GMOCK_LIBS=
24035   fi
24036 else
24037   # We'll use src/googletest.h for our unittests.
24038   GTEST_CFLAGS=
24039   GTEST_LIBS=
24040 fi
24041  if test x"$GMOCK_CONFIG" = "xyes"; then
24042   HAVE_GMOCK_TRUE=
24043   HAVE_GMOCK_FALSE='#'
24044 else
24045   HAVE_GMOCK_TRUE='#'
24046   HAVE_GMOCK_FALSE=
24047 fi
24048
24049
24050 # We want to link in libunwind if it exists
24051 UNWIND_LIBS=
24052 # Unfortunately, we need to check the header file in addition to the
24053 # lib file to check if libunwind is available since libunwind-0.98
24054 # doesn't install all necessary header files.
24055 if test x"$ac_cv_have_libunwind_h" = x"1"; then
24056  { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
24057 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
24058 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
24059   echo $ECHO_N "(cached) $ECHO_C" >&6
24060 else
24061   ac_check_lib_save_LIBS=$LIBS
24062 LIBS="-lunwind  $LIBS"
24063 cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h.  */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h.  */
24069
24070 /* Override any GCC internal prototype to avoid an error.
24071    Use char because int might match the return type of a GCC
24072    builtin and then its argument prototype would still apply.  */
24073 #ifdef __cplusplus
24074 extern "C"
24075 #endif
24076 char backtrace ();
24077 int
24078 main ()
24079 {
24080 return backtrace ();
24081   ;
24082   return 0;
24083 }
24084 _ACEOF
24085 rm -f conftest.$ac_objext conftest$ac_exeext
24086 if { (ac_try="$ac_link"
24087 case "(($ac_try" in
24088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089   *) ac_try_echo=$ac_try;;
24090 esac
24091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24092   (eval "$ac_link") 2>conftest.er1
24093   ac_status=$?
24094   grep -v '^ *+' conftest.er1 >conftest.err
24095   rm -f conftest.er1
24096   cat conftest.err >&5
24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098   (exit $ac_status); } && {
24099          test -z "$ac_c_werror_flag" ||
24100          test ! -s conftest.err
24101        } && test -s conftest$ac_exeext &&
24102        $as_test_x conftest$ac_exeext; then
24103   ac_cv_lib_unwind_backtrace=yes
24104 else
24105   echo "$as_me: failed program was:" >&5
24106 sed 's/^/| /' conftest.$ac_ext >&5
24107
24108         ac_cv_lib_unwind_backtrace=no
24109 fi
24110
24111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24112       conftest$ac_exeext conftest.$ac_ext
24113 LIBS=$ac_check_lib_save_LIBS
24114 fi
24115 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
24116 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
24117 if test $ac_cv_lib_unwind_backtrace = yes; then
24118   UNWIND_LIBS=-lunwind
24119 fi
24120
24121 fi
24122
24123 if test x"$UNWIND_LIBS" != x""; then
24124
24125 cat >>confdefs.h <<\_ACEOF
24126 #define HAVE_LIB_UNWIND 1
24127 _ACEOF
24128
24129 fi
24130
24131 # We'd like to use read/write locks in several places in the code.
24132 # See if our pthreads support extends to that.  Note: for linux, it
24133 # does as long as you define _XOPEN_SOURCE appropriately.
24134 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
24135 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
24136 if test "${ac_rwlock+set}" = set; then
24137   echo $ECHO_N "(cached) $ECHO_C" >&6
24138 else
24139
24140  ac_ext=c
24141 ac_cpp='$CPP $CPPFLAGS'
24142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24145
24146  cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152 #define _XOPEN_SOURCE 500
24153                  #include <pthread.h>
24154 int
24155 main ()
24156 {
24157 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
24158                  pthread_rwlock_rdlock(&l);
24159                  return 0;
24160   ;
24161   return 0;
24162 }
24163 _ACEOF
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168   *) ac_try_echo=$ac_try;;
24169 esac
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171   (eval "$ac_compile") 2>conftest.er1
24172   ac_status=$?
24173   grep -v '^ *+' conftest.er1 >conftest.err
24174   rm -f conftest.er1
24175   cat conftest.err >&5
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } && {
24178          test -z "$ac_c_werror_flag" ||
24179          test ! -s conftest.err
24180        } && test -s conftest.$ac_objext; then
24181   ac_rwlock=yes
24182 else
24183   echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186         ac_rwlock=no
24187 fi
24188
24189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24190  ac_ext=c
24191 ac_cpp='$CPP $CPPFLAGS'
24192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24195
24196
24197 fi
24198 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
24199 echo "${ECHO_T}$ac_rwlock" >&6; }
24200 if test "$ac_rwlock" = yes; then
24201
24202 cat >>confdefs.h <<\_ACEOF
24203 #define HAVE_RWLOCK 1
24204 _ACEOF
24205
24206 fi
24207
24208
24209 # Find out what namespace 'normal' STL code lives in, and also what namespace
24210 # the user wants our classes to be defined in
24211 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
24212 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
24213 if test "${ac_cv_cxx_namespaces+set}" = set; then
24214   echo $ECHO_N "(cached) $ECHO_C" >&6
24215 else
24216
24217                   ac_ext=cpp
24218 ac_cpp='$CXXCPP $CPPFLAGS'
24219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24222
24223                   cat >conftest.$ac_ext <<_ACEOF
24224 /* confdefs.h.  */
24225 _ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h.  */
24229 namespace Outer {
24230                                     namespace Inner { int i = 0; }}
24231 int
24232 main ()
24233 {
24234 using namespace Outer::Inner; return i;
24235   ;
24236   return 0;
24237 }
24238 _ACEOF
24239 rm -f conftest.$ac_objext
24240 if { (ac_try="$ac_compile"
24241 case "(($ac_try" in
24242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243   *) ac_try_echo=$ac_try;;
24244 esac
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246   (eval "$ac_compile") 2>conftest.er1
24247   ac_status=$?
24248   grep -v '^ *+' conftest.er1 >conftest.err
24249   rm -f conftest.er1
24250   cat conftest.err >&5
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); } && {
24253          test -z "$ac_cxx_werror_flag" ||
24254          test ! -s conftest.err
24255        } && test -s conftest.$ac_objext; then
24256   ac_cv_cxx_namespaces=yes
24257 else
24258   echo "$as_me: failed program was:" >&5
24259 sed 's/^/| /' conftest.$ac_ext >&5
24260
24261         ac_cv_cxx_namespaces=no
24262 fi
24263
24264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24265                   ac_ext=c
24266 ac_cpp='$CPP $CPPFLAGS'
24267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24270
24271 fi
24272 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
24273 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
24274   if test "$ac_cv_cxx_namespaces" = yes; then
24275
24276 cat >>confdefs.h <<\_ACEOF
24277 #define HAVE_NAMESPACES 1
24278 _ACEOF
24279
24280   fi
24281 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
24282 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
24283 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
24284   echo $ECHO_N "(cached) $ECHO_C" >&6
24285 else
24286
24287
24288       ac_ext=cpp
24289 ac_cpp='$CXXCPP $CPPFLAGS'
24290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24293
24294       cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h.  */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h.  */
24300 #include <vector>
24301 int
24302 main ()
24303 {
24304 vector<int> t; return 0;
24305   ;
24306   return 0;
24307 }
24308 _ACEOF
24309 rm -f conftest.$ac_objext
24310 if { (ac_try="$ac_compile"
24311 case "(($ac_try" in
24312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313   *) ac_try_echo=$ac_try;;
24314 esac
24315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24316   (eval "$ac_compile") 2>conftest.er1
24317   ac_status=$?
24318   grep -v '^ *+' conftest.er1 >conftest.err
24319   rm -f conftest.er1
24320   cat conftest.err >&5
24321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24322   (exit $ac_status); } && {
24323          test -z "$ac_cxx_werror_flag" ||
24324          test ! -s conftest.err
24325        } && test -s conftest.$ac_objext; then
24326   ac_cv_cxx_stl_namespace=none
24327 else
24328   echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24330
24331
24332 fi
24333
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335       cat >conftest.$ac_ext <<_ACEOF
24336 /* confdefs.h.  */
24337 _ACEOF
24338 cat confdefs.h >>conftest.$ac_ext
24339 cat >>conftest.$ac_ext <<_ACEOF
24340 /* end confdefs.h.  */
24341 #include <vector>
24342 int
24343 main ()
24344 {
24345 std::vector<int> t; return 0;
24346   ;
24347   return 0;
24348 }
24349 _ACEOF
24350 rm -f conftest.$ac_objext
24351 if { (ac_try="$ac_compile"
24352 case "(($ac_try" in
24353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354   *) ac_try_echo=$ac_try;;
24355 esac
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357   (eval "$ac_compile") 2>conftest.er1
24358   ac_status=$?
24359   grep -v '^ *+' conftest.er1 >conftest.err
24360   rm -f conftest.er1
24361   cat conftest.err >&5
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); } && {
24364          test -z "$ac_cxx_werror_flag" ||
24365          test ! -s conftest.err
24366        } && test -s conftest.$ac_objext; then
24367   ac_cv_cxx_stl_namespace=std
24368 else
24369   echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24371
24372
24373 fi
24374
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376       ac_ext=c
24377 ac_cpp='$CPP $CPPFLAGS'
24378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24381
24382 fi
24383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
24384 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
24385    if test "$ac_cv_cxx_stl_namespace" = none; then
24386
24387 cat >>confdefs.h <<\_ACEOF
24388 #define STL_NAMESPACE
24389 _ACEOF
24390
24391    fi
24392    if test "$ac_cv_cxx_stl_namespace" = std; then
24393
24394 cat >>confdefs.h <<\_ACEOF
24395 #define STL_NAMESPACE std
24396 _ACEOF
24397
24398    fi
24399
24400 google_namespace_default=google
24401    # Check whether --enable-namespace was given.
24402 if test "${enable_namespace+set}" = set; then
24403   enableval=$enable_namespace; case "$enableval" in
24404                     yes) google_namespace="$google_namespace_default" ;;
24405                      no) google_namespace="" ;;
24406                       *) google_namespace="$enableval" ;;
24407                   esac
24408 else
24409   google_namespace="$google_namespace_default"
24410 fi
24411
24412    if test -n "$google_namespace"; then
24413      ac_google_namespace="$google_namespace"
24414      ac_google_start_namespace="namespace $google_namespace {"
24415      ac_google_end_namespace="}"
24416    else
24417      ac_google_namespace=""
24418      ac_google_start_namespace=""
24419      ac_google_end_namespace=""
24420    fi
24421
24422 cat >>confdefs.h <<_ACEOF
24423 #define GOOGLE_NAMESPACE $ac_google_namespace
24424 _ACEOF
24425
24426
24427 cat >>confdefs.h <<_ACEOF
24428 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
24429 _ACEOF
24430
24431
24432 cat >>confdefs.h <<_ACEOF
24433 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
24434 _ACEOF
24435
24436
24437
24438 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
24439 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
24440 if test "${ac_cv_cxx_using_operator+set}" = set; then
24441   echo $ECHO_N "(cached) $ECHO_C" >&6
24442 else
24443
24444        ac_ext=cpp
24445 ac_cpp='$CXXCPP $CPPFLAGS'
24446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24449
24450        cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h.  */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h.  */
24456 #include <iostream>
24457                        std::ostream& operator<<(std::ostream&, struct s);
24458 int
24459 main ()
24460 {
24461 using ::operator<<; return 0;
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext
24467 if { (ac_try="$ac_compile"
24468 case "(($ac_try" in
24469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470   *) ac_try_echo=$ac_try;;
24471 esac
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473   (eval "$ac_compile") 2>conftest.er1
24474   ac_status=$?
24475   grep -v '^ *+' conftest.er1 >conftest.err
24476   rm -f conftest.er1
24477   cat conftest.err >&5
24478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479   (exit $ac_status); } && {
24480          test -z "$ac_cxx_werror_flag" ||
24481          test ! -s conftest.err
24482        } && test -s conftest.$ac_objext; then
24483   ac_cv_cxx_using_operator=1
24484 else
24485   echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488         ac_cv_cxx_using_operator=0
24489 fi
24490
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492       ac_ext=c
24493 ac_cpp='$CPP $CPPFLAGS'
24494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24497
24498 fi
24499 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
24500 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
24501   if test "$ac_cv_cxx_using_operator" = 1; then
24502
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_USING_OPERATOR 1
24505 _ACEOF
24506
24507   fi
24508
24509 # We want to access the "PC" (Program Counter) register from a struct
24510 # ucontext.  Every system has its own way of doing that.  We try all the
24511 # possibilities we know about.  Note REG_PC should come first (REG_RIP
24512 # is also defined on solaris, but does the wrong thing).
24513 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
24514 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
24515 pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
24516 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
24517 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
24518 pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
24519 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
24520 pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
24521 pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
24522 pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
24523 pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
24524 pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
24525 pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
24526 pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
24527 pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
24528 pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
24529 pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
24530 pc_field_found=false
24531 for pc_field in $pc_fields; do
24532   if ! $pc_field_found; then
24533     cat >conftest.$ac_ext <<_ACEOF
24534 /* confdefs.h.  */
24535 _ACEOF
24536 cat confdefs.h >>conftest.$ac_ext
24537 cat >>conftest.$ac_ext <<_ACEOF
24538 /* end confdefs.h.  */
24539 #define _GNU_SOURCE 1
24540                     #include <ucontext.h>
24541 int
24542 main ()
24543 {
24544 ucontext_t u; return u.$pc_field == 0;
24545   ;
24546   return 0;
24547 }
24548 _ACEOF
24549 rm -f conftest.$ac_objext
24550 if { (ac_try="$ac_compile"
24551 case "(($ac_try" in
24552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553   *) ac_try_echo=$ac_try;;
24554 esac
24555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24556   (eval "$ac_compile") 2>conftest.er1
24557   ac_status=$?
24558   grep -v '^ *+' conftest.er1 >conftest.err
24559   rm -f conftest.er1
24560   cat conftest.err >&5
24561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562   (exit $ac_status); } && {
24563          test -z "$ac_c_werror_flag" ||
24564          test ! -s conftest.err
24565        } && test -s conftest.$ac_objext; then
24566
24567 cat >>confdefs.h <<_ACEOF
24568 #define PC_FROM_UCONTEXT $pc_field
24569 _ACEOF
24570
24571                    { echo "$as_me:$LINENO: result: $pc_field" >&5
24572 echo "${ECHO_T}$pc_field" >&6; }
24573                  pc_field_found=true
24574 else
24575   echo "$as_me: failed program was:" >&5
24576 sed 's/^/| /' conftest.$ac_ext >&5
24577
24578
24579 fi
24580
24581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24582   fi
24583 done
24584 if ! $pc_field_found; then
24585   { echo "$as_me:$LINENO: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
24586 echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
24587 fi
24588
24589 # These are what's needed by logging.h.in and raw_logging.h.in
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611 # Write generated configuration file
24612 ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
24613
24614 cat >confcache <<\_ACEOF
24615 # This file is a shell script that caches the results of configure
24616 # tests run on this system so they can be shared between configure
24617 # scripts and configure runs, see configure's option --config-cache.
24618 # It is not useful on other systems.  If it contains results you don't
24619 # want to keep, you may remove or edit it.
24620 #
24621 # config.status only pays attention to the cache file if you give it
24622 # the --recheck option to rerun configure.
24623 #
24624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24626 # following values.
24627
24628 _ACEOF
24629
24630 # The following way of writing the cache mishandles newlines in values,
24631 # but we know of no workaround that is simple, portable, and efficient.
24632 # So, we kill variables containing newlines.
24633 # Ultrix sh set writes to stderr and can't be redirected directly,
24634 # and sets the high bit in the cache file unless we assign to the vars.
24635 (
24636   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24637     eval ac_val=\$$ac_var
24638     case $ac_val in #(
24639     *${as_nl}*)
24640       case $ac_var in #(
24641       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24642 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24643       esac
24644       case $ac_var in #(
24645       _ | IFS | as_nl) ;; #(
24646       *) $as_unset $ac_var ;;
24647       esac ;;
24648     esac
24649   done
24650
24651   (set) 2>&1 |
24652     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24653     *${as_nl}ac_space=\ *)
24654       # `set' does not quote correctly, so add quotes (double-quote
24655       # substitution turns \\\\ into \\, and sed turns \\ into \).
24656       sed -n \
24657         "s/'/'\\\\''/g;
24658           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24659       ;; #(
24660     *)
24661       # `set' quotes correctly as required by POSIX, so do not add quotes.
24662       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24663       ;;
24664     esac |
24665     sort
24666 ) |
24667   sed '
24668      /^ac_cv_env_/b end
24669      t clear
24670      :clear
24671      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24672      t end
24673      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24674      :end' >>confcache
24675 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24676   if test -w "$cache_file"; then
24677     test "x$cache_file" != "x/dev/null" &&
24678       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24679 echo "$as_me: updating cache $cache_file" >&6;}
24680     cat confcache >$cache_file
24681   else
24682     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24683 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24684   fi
24685 fi
24686 rm -f confcache
24687
24688 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24689 # Let make expand exec_prefix.
24690 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24691
24692 DEFS=-DHAVE_CONFIG_H
24693
24694 ac_libobjs=
24695 ac_ltlibobjs=
24696 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24697   # 1. Remove the extension, and $U if already installed.
24698   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24699   ac_i=`echo "$ac_i" | sed "$ac_script"`
24700   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24701   #    will be set to the directory where LIBOBJS objects are built.
24702   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24703   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24704 done
24705 LIBOBJS=$ac_libobjs
24706
24707 LTLIBOBJS=$ac_ltlibobjs
24708
24709
24710 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24711   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24712 Usually this means the macro was only invoked conditionally." >&5
24713 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24714 Usually this means the macro was only invoked conditionally." >&2;}
24715    { (exit 1); exit 1; }; }
24716 fi
24717 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24718   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24719 Usually this means the macro was only invoked conditionally." >&5
24720 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24721 Usually this means the macro was only invoked conditionally." >&2;}
24722    { (exit 1); exit 1; }; }
24723 fi
24724 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24725   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24726 Usually this means the macro was only invoked conditionally." >&5
24727 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24728 Usually this means the macro was only invoked conditionally." >&2;}
24729    { (exit 1); exit 1; }; }
24730 fi
24731 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
24732   { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
24733 Usually this means the macro was only invoked conditionally." >&5
24734 echo "$as_me: error: conditional \"GCC\" was never defined.
24735 Usually this means the macro was only invoked conditionally." >&2;}
24736    { (exit 1); exit 1; }; }
24737 fi
24738 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
24739   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24740 Usually this means the macro was only invoked conditionally." >&5
24741 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
24742 Usually this means the macro was only invoked conditionally." >&2;}
24743    { (exit 1); exit 1; }; }
24744 fi
24745 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
24746   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
24747 Usually this means the macro was only invoked conditionally." >&5
24748 echo "$as_me: error: conditional \"X86_64\" was never defined.
24749 Usually this means the macro was only invoked conditionally." >&2;}
24750    { (exit 1); exit 1; }; }
24751 fi
24752 if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
24753   { { echo "$as_me:$LINENO: error: conditional \"HAVE_GMOCK\" was never defined.
24754 Usually this means the macro was only invoked conditionally." >&5
24755 echo "$as_me: error: conditional \"HAVE_GMOCK\" was never defined.
24756 Usually this means the macro was only invoked conditionally." >&2;}
24757    { (exit 1); exit 1; }; }
24758 fi
24759
24760 : ${CONFIG_STATUS=./config.status}
24761 ac_clean_files_save=$ac_clean_files
24762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24765 cat >$CONFIG_STATUS <<_ACEOF
24766 #! $SHELL
24767 # Generated by $as_me.
24768 # Run this file to recreate the current configuration.
24769 # Compiler output produced by configure, useful for debugging
24770 # configure, is in config.log if it exists.
24771
24772 debug=false
24773 ac_cs_recheck=false
24774 ac_cs_silent=false
24775 SHELL=\${CONFIG_SHELL-$SHELL}
24776 _ACEOF
24777
24778 cat >>$CONFIG_STATUS <<\_ACEOF
24779 ## --------------------- ##
24780 ## M4sh Initialization.  ##
24781 ## --------------------- ##
24782
24783 # Be more Bourne compatible
24784 DUALCASE=1; export DUALCASE # for MKS sh
24785 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24786   emulate sh
24787   NULLCMD=:
24788   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24789   # is contrary to our usage.  Disable this feature.
24790   alias -g '${1+"$@"}'='"$@"'
24791   setopt NO_GLOB_SUBST
24792 else
24793   case `(set -o) 2>/dev/null` in
24794   *posix*) set -o posix ;;
24795 esac
24796
24797 fi
24798
24799
24800
24801
24802 # PATH needs CR
24803 # Avoid depending upon Character Ranges.
24804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24807 as_cr_digits='0123456789'
24808 as_cr_alnum=$as_cr_Letters$as_cr_digits
24809
24810 # The user is always right.
24811 if test "${PATH_SEPARATOR+set}" != set; then
24812   echo "#! /bin/sh" >conf$$.sh
24813   echo  "exit 0"   >>conf$$.sh
24814   chmod +x conf$$.sh
24815   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24816     PATH_SEPARATOR=';'
24817   else
24818     PATH_SEPARATOR=:
24819   fi
24820   rm -f conf$$.sh
24821 fi
24822
24823 # Support unset when possible.
24824 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24825   as_unset=unset
24826 else
24827   as_unset=false
24828 fi
24829
24830
24831 # IFS
24832 # We need space, tab and new line, in precisely that order.  Quoting is
24833 # there to prevent editors from complaining about space-tab.
24834 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24835 # splitting by setting IFS to empty value.)
24836 as_nl='
24837 '
24838 IFS=" ""        $as_nl"
24839
24840 # Find who we are.  Look in the path if we contain no directory separator.
24841 case $0 in
24842   *[\\/]* ) as_myself=$0 ;;
24843   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24844 for as_dir in $PATH
24845 do
24846   IFS=$as_save_IFS
24847   test -z "$as_dir" && as_dir=.
24848   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24849 done
24850 IFS=$as_save_IFS
24851
24852      ;;
24853 esac
24854 # We did not find ourselves, most probably we were run as `sh COMMAND'
24855 # in which case we are not to be found in the path.
24856 if test "x$as_myself" = x; then
24857   as_myself=$0
24858 fi
24859 if test ! -f "$as_myself"; then
24860   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24861   { (exit 1); exit 1; }
24862 fi
24863
24864 # Work around bugs in pre-3.0 UWIN ksh.
24865 for as_var in ENV MAIL MAILPATH
24866 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24867 done
24868 PS1='$ '
24869 PS2='> '
24870 PS4='+ '
24871
24872 # NLS nuisances.
24873 for as_var in \
24874   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24875   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24876   LC_TELEPHONE LC_TIME
24877 do
24878   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24879     eval $as_var=C; export $as_var
24880   else
24881     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24882   fi
24883 done
24884
24885 # Required to use basename.
24886 if expr a : '\(a\)' >/dev/null 2>&1 &&
24887    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24888   as_expr=expr
24889 else
24890   as_expr=false
24891 fi
24892
24893 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24894   as_basename=basename
24895 else
24896   as_basename=false
24897 fi
24898
24899
24900 # Name of the executable.
24901 as_me=`$as_basename -- "$0" ||
24902 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24903          X"$0" : 'X\(//\)$' \| \
24904          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24905 echo X/"$0" |
24906     sed '/^.*\/\([^/][^/]*\)\/*$/{
24907             s//\1/
24908             q
24909           }
24910           /^X\/\(\/\/\)$/{
24911             s//\1/
24912             q
24913           }
24914           /^X\/\(\/\).*/{
24915             s//\1/
24916             q
24917           }
24918           s/.*/./; q'`
24919
24920 # CDPATH.
24921 $as_unset CDPATH
24922
24923
24924
24925   as_lineno_1=$LINENO
24926   as_lineno_2=$LINENO
24927   test "x$as_lineno_1" != "x$as_lineno_2" &&
24928   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24929
24930   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24931   # uniformly replaced by the line number.  The first 'sed' inserts a
24932   # line-number line after each line using $LINENO; the second 'sed'
24933   # does the real work.  The second script uses 'N' to pair each
24934   # line-number line with the line containing $LINENO, and appends
24935   # trailing '-' during substitution so that $LINENO is not a special
24936   # case at line end.
24937   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24938   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24939   # E. McMahon (1931-1989) for sed's syntax.  :-)
24940   sed -n '
24941     p
24942     /[$]LINENO/=
24943   ' <$as_myself |
24944     sed '
24945       s/[$]LINENO.*/&-/
24946       t lineno
24947       b
24948       :lineno
24949       N
24950       :loop
24951       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24952       t loop
24953       s/-\n.*//
24954     ' >$as_me.lineno &&
24955   chmod +x "$as_me.lineno" ||
24956     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24957    { (exit 1); exit 1; }; }
24958
24959   # Don't try to exec as it changes $[0], causing all sort of problems
24960   # (the dirname of $[0] is not the place where we might find the
24961   # original and so on.  Autoconf is especially sensitive to this).
24962   . "./$as_me.lineno"
24963   # Exit status is that of the last command.
24964   exit
24965 }
24966
24967
24968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24969   as_dirname=dirname
24970 else
24971   as_dirname=false
24972 fi
24973
24974 ECHO_C= ECHO_N= ECHO_T=
24975 case `echo -n x` in
24976 -n*)
24977   case `echo 'x\c'` in
24978   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24979   *)   ECHO_C='\c';;
24980   esac;;
24981 *)
24982   ECHO_N='-n';;
24983 esac
24984
24985 if expr a : '\(a\)' >/dev/null 2>&1 &&
24986    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24987   as_expr=expr
24988 else
24989   as_expr=false
24990 fi
24991
24992 rm -f conf$$ conf$$.exe conf$$.file
24993 if test -d conf$$.dir; then
24994   rm -f conf$$.dir/conf$$.file
24995 else
24996   rm -f conf$$.dir
24997   mkdir conf$$.dir
24998 fi
24999 echo >conf$$.file
25000 if ln -s conf$$.file conf$$ 2>/dev/null; then
25001   as_ln_s='ln -s'
25002   # ... but there are two gotchas:
25003   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25004   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25005   # In both cases, we have to default to `cp -p'.
25006   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25007     as_ln_s='cp -p'
25008 elif ln conf$$.file conf$$ 2>/dev/null; then
25009   as_ln_s=ln
25010 else
25011   as_ln_s='cp -p'
25012 fi
25013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25014 rmdir conf$$.dir 2>/dev/null
25015
25016 if mkdir -p . 2>/dev/null; then
25017   as_mkdir_p=:
25018 else
25019   test -d ./-p && rmdir ./-p
25020   as_mkdir_p=false
25021 fi
25022
25023 if test -x / >/dev/null 2>&1; then
25024   as_test_x='test -x'
25025 else
25026   if ls -dL / >/dev/null 2>&1; then
25027     as_ls_L_option=L
25028   else
25029     as_ls_L_option=
25030   fi
25031   as_test_x='
25032     eval sh -c '\''
25033       if test -d "$1"; then
25034         test -d "$1/.";
25035       else
25036         case $1 in
25037         -*)set "./$1";;
25038         esac;
25039         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25040         ???[sx]*):;;*)false;;esac;fi
25041     '\'' sh
25042   '
25043 fi
25044 as_executable_p=$as_test_x
25045
25046 # Sed expression to map a string onto a valid CPP name.
25047 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25048
25049 # Sed expression to map a string onto a valid variable name.
25050 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25051
25052
25053 exec 6>&1
25054
25055 # Save the log message, to keep $[0] and so on meaningful, and to
25056 # report actual input values of CONFIG_FILES etc. instead of their
25057 # values after options handling.
25058 ac_log="
25059 This file was extended by glog $as_me 0.1.2, which was
25060 generated by GNU Autoconf 2.61.  Invocation command line was
25061
25062   CONFIG_FILES    = $CONFIG_FILES
25063   CONFIG_HEADERS  = $CONFIG_HEADERS
25064   CONFIG_LINKS    = $CONFIG_LINKS
25065   CONFIG_COMMANDS = $CONFIG_COMMANDS
25066   $ $0 $@
25067
25068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25069 "
25070
25071 _ACEOF
25072
25073 cat >>$CONFIG_STATUS <<_ACEOF
25074 # Files that config.status was made for.
25075 config_files="$ac_config_files"
25076 config_headers="$ac_config_headers"
25077 config_commands="$ac_config_commands"
25078
25079 _ACEOF
25080
25081 cat >>$CONFIG_STATUS <<\_ACEOF
25082 ac_cs_usage="\
25083 \`$as_me' instantiates files from templates according to the
25084 current configuration.
25085
25086 Usage: $0 [OPTIONS] [FILE]...
25087
25088   -h, --help       print this help, then exit
25089   -V, --version    print version number and configuration settings, then exit
25090   -q, --quiet      do not print progress messages
25091   -d, --debug      don't remove temporary files
25092       --recheck    update $as_me by reconfiguring in the same conditions
25093   --file=FILE[:TEMPLATE]
25094                    instantiate the configuration file FILE
25095   --header=FILE[:TEMPLATE]
25096                    instantiate the configuration header FILE
25097
25098 Configuration files:
25099 $config_files
25100
25101 Configuration headers:
25102 $config_headers
25103
25104 Configuration commands:
25105 $config_commands
25106
25107 Report bugs to <bug-autoconf@gnu.org>."
25108
25109 _ACEOF
25110 cat >>$CONFIG_STATUS <<_ACEOF
25111 ac_cs_version="\\
25112 glog config.status 0.1.2
25113 configured by $0, generated by GNU Autoconf 2.61,
25114   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25115
25116 Copyright (C) 2006 Free Software Foundation, Inc.
25117 This config.status script is free software; the Free Software Foundation
25118 gives unlimited permission to copy, distribute and modify it."
25119
25120 ac_pwd='$ac_pwd'
25121 srcdir='$srcdir'
25122 INSTALL='$INSTALL'
25123 MKDIR_P='$MKDIR_P'
25124 _ACEOF
25125
25126 cat >>$CONFIG_STATUS <<\_ACEOF
25127 # If no file are specified by the user, then we need to provide default
25128 # value.  By we need to know if files were specified by the user.
25129 ac_need_defaults=:
25130 while test $# != 0
25131 do
25132   case $1 in
25133   --*=*)
25134     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25135     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25136     ac_shift=:
25137     ;;
25138   *)
25139     ac_option=$1
25140     ac_optarg=$2
25141     ac_shift=shift
25142     ;;
25143   esac
25144
25145   case $ac_option in
25146   # Handling of the options.
25147   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25148     ac_cs_recheck=: ;;
25149   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25150     echo "$ac_cs_version"; exit ;;
25151   --debug | --debu | --deb | --de | --d | -d )
25152     debug=: ;;
25153   --file | --fil | --fi | --f )
25154     $ac_shift
25155     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25156     ac_need_defaults=false;;
25157   --header | --heade | --head | --hea )
25158     $ac_shift
25159     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25160     ac_need_defaults=false;;
25161   --he | --h)
25162     # Conflict between --help and --header
25163     { echo "$as_me: error: ambiguous option: $1
25164 Try \`$0 --help' for more information." >&2
25165    { (exit 1); exit 1; }; };;
25166   --help | --hel | -h )
25167     echo "$ac_cs_usage"; exit ;;
25168   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25169   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25170     ac_cs_silent=: ;;
25171
25172   # This is an error.
25173   -*) { echo "$as_me: error: unrecognized option: $1
25174 Try \`$0 --help' for more information." >&2
25175    { (exit 1); exit 1; }; } ;;
25176
25177   *) ac_config_targets="$ac_config_targets $1"
25178      ac_need_defaults=false ;;
25179
25180   esac
25181   shift
25182 done
25183
25184 ac_configure_extra_args=
25185
25186 if $ac_cs_silent; then
25187   exec 6>/dev/null
25188   ac_configure_extra_args="$ac_configure_extra_args --silent"
25189 fi
25190
25191 _ACEOF
25192 cat >>$CONFIG_STATUS <<_ACEOF
25193 if \$ac_cs_recheck; then
25194   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25195   CONFIG_SHELL=$SHELL
25196   export CONFIG_SHELL
25197   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25198 fi
25199
25200 _ACEOF
25201 cat >>$CONFIG_STATUS <<\_ACEOF
25202 exec 5>>config.log
25203 {
25204   echo
25205   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25206 ## Running $as_me. ##
25207 _ASBOX
25208   echo "$ac_log"
25209 } >&5
25210
25211 _ACEOF
25212 cat >>$CONFIG_STATUS <<_ACEOF
25213 #
25214 # INIT-COMMANDS
25215 #
25216 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25217
25218 _ACEOF
25219
25220 cat >>$CONFIG_STATUS <<\_ACEOF
25221
25222 # Handling of arguments.
25223 for ac_config_target in $ac_config_targets
25224 do
25225   case $ac_config_target in
25226     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
25227     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25228     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25229     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
25230     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
25231     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
25232     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
25233
25234   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25235 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25236    { (exit 1); exit 1; }; };;
25237   esac
25238 done
25239
25240
25241 # If the user did not use the arguments to specify the items to instantiate,
25242 # then the envvar interface is used.  Set only those that are not.
25243 # We use the long form for the default assignment because of an extremely
25244 # bizarre bug on SunOS 4.1.3.
25245 if $ac_need_defaults; then
25246   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25247   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25248   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25249 fi
25250
25251 # Have a temporary directory for convenience.  Make it in the build tree
25252 # simply because there is no reason against having it here, and in addition,
25253 # creating and moving files from /tmp can sometimes cause problems.
25254 # Hook for its removal unless debugging.
25255 # Note that there is a small window in which the directory will not be cleaned:
25256 # after its creation but before its name has been assigned to `$tmp'.
25257 $debug ||
25258 {
25259   tmp=
25260   trap 'exit_status=$?
25261   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25262 ' 0
25263   trap '{ (exit 1); exit 1; }' 1 2 13 15
25264 }
25265 # Create a (secure) tmp directory for tmp files.
25266
25267 {
25268   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25269   test -n "$tmp" && test -d "$tmp"
25270 }  ||
25271 {
25272   tmp=./conf$$-$RANDOM
25273   (umask 077 && mkdir "$tmp")
25274 } ||
25275 {
25276    echo "$me: cannot create a temporary directory in ." >&2
25277    { (exit 1); exit 1; }
25278 }
25279
25280 #
25281 # Set up the sed scripts for CONFIG_FILES section.
25282 #
25283
25284 # No need to generate the scripts if there are no CONFIG_FILES.
25285 # This happens for instance when ./config.status config.h
25286 if test -n "$CONFIG_FILES"; then
25287
25288 _ACEOF
25289
25290
25291
25292 ac_delim='%!_!# '
25293 for ac_last_try in false false false false false :; do
25294   cat >conf$$subs.sed <<_ACEOF
25295 SHELL!$SHELL$ac_delim
25296 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25297 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25298 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25299 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25300 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25301 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25302 exec_prefix!$exec_prefix$ac_delim
25303 prefix!$prefix$ac_delim
25304 program_transform_name!$program_transform_name$ac_delim
25305 bindir!$bindir$ac_delim
25306 sbindir!$sbindir$ac_delim
25307 libexecdir!$libexecdir$ac_delim
25308 datarootdir!$datarootdir$ac_delim
25309 datadir!$datadir$ac_delim
25310 sysconfdir!$sysconfdir$ac_delim
25311 sharedstatedir!$sharedstatedir$ac_delim
25312 localstatedir!$localstatedir$ac_delim
25313 includedir!$includedir$ac_delim
25314 oldincludedir!$oldincludedir$ac_delim
25315 docdir!$docdir$ac_delim
25316 infodir!$infodir$ac_delim
25317 htmldir!$htmldir$ac_delim
25318 dvidir!$dvidir$ac_delim
25319 pdfdir!$pdfdir$ac_delim
25320 psdir!$psdir$ac_delim
25321 libdir!$libdir$ac_delim
25322 localedir!$localedir$ac_delim
25323 mandir!$mandir$ac_delim
25324 DEFS!$DEFS$ac_delim
25325 ECHO_C!$ECHO_C$ac_delim
25326 ECHO_N!$ECHO_N$ac_delim
25327 ECHO_T!$ECHO_T$ac_delim
25328 LIBS!$LIBS$ac_delim
25329 build_alias!$build_alias$ac_delim
25330 host_alias!$host_alias$ac_delim
25331 target_alias!$target_alias$ac_delim
25332 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25333 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25334 INSTALL_DATA!$INSTALL_DATA$ac_delim
25335 am__isrc!$am__isrc$ac_delim
25336 CYGPATH_W!$CYGPATH_W$ac_delim
25337 PACKAGE!$PACKAGE$ac_delim
25338 VERSION!$VERSION$ac_delim
25339 ACLOCAL!$ACLOCAL$ac_delim
25340 AUTOCONF!$AUTOCONF$ac_delim
25341 AUTOMAKE!$AUTOMAKE$ac_delim
25342 AUTOHEADER!$AUTOHEADER$ac_delim
25343 MAKEINFO!$MAKEINFO$ac_delim
25344 install_sh!$install_sh$ac_delim
25345 STRIP!$STRIP$ac_delim
25346 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
25347 mkdir_p!$mkdir_p$ac_delim
25348 AWK!$AWK$ac_delim
25349 SET_MAKE!$SET_MAKE$ac_delim
25350 am__leading_dot!$am__leading_dot$ac_delim
25351 AMTAR!$AMTAR$ac_delim
25352 am__tar!$am__tar$ac_delim
25353 am__untar!$am__untar$ac_delim
25354 CC!$CC$ac_delim
25355 CFLAGS!$CFLAGS$ac_delim
25356 LDFLAGS!$LDFLAGS$ac_delim
25357 CPPFLAGS!$CPPFLAGS$ac_delim
25358 ac_ct_CC!$ac_ct_CC$ac_delim
25359 EXEEXT!$EXEEXT$ac_delim
25360 OBJEXT!$OBJEXT$ac_delim
25361 DEPDIR!$DEPDIR$ac_delim
25362 am__include!$am__include$ac_delim
25363 am__quote!$am__quote$ac_delim
25364 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
25365 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
25366 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
25367 CCDEPMODE!$CCDEPMODE$ac_delim
25368 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
25369 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
25370 CPP!$CPP$ac_delim
25371 CXX!$CXX$ac_delim
25372 CXXFLAGS!$CXXFLAGS$ac_delim
25373 ac_ct_CXX!$ac_ct_CXX$ac_delim
25374 CXXDEPMODE!$CXXDEPMODE$ac_delim
25375 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
25376 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
25377 GCC_TRUE!$GCC_TRUE$ac_delim
25378 GCC_FALSE!$GCC_FALSE$ac_delim
25379 build!$build$ac_delim
25380 build_cpu!$build_cpu$ac_delim
25381 build_vendor!$build_vendor$ac_delim
25382 build_os!$build_os$ac_delim
25383 host!$host$ac_delim
25384 host_cpu!$host_cpu$ac_delim
25385 host_vendor!$host_vendor$ac_delim
25386 host_os!$host_os$ac_delim
25387 SED!$SED$ac_delim
25388 GREP!$GREP$ac_delim
25389 EGREP!$EGREP$ac_delim
25390 LN_S!$LN_S$ac_delim
25391 ECHO!$ECHO$ac_delim
25392 _ACEOF
25393
25394   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25395     break
25396   elif $ac_last_try; then
25397     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25398 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25399    { (exit 1); exit 1; }; }
25400   else
25401     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25402   fi
25403 done
25404
25405 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25406 if test -n "$ac_eof"; then
25407   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25408   ac_eof=`expr $ac_eof + 1`
25409 fi
25410
25411 cat >>$CONFIG_STATUS <<_ACEOF
25412 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25413 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25414 _ACEOF
25415 sed '
25416 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25417 s/^/s,@/; s/!/@,|#_!!_#|/
25418 :n
25419 t n
25420 s/'"$ac_delim"'$/,g/; t
25421 s/$/\\/; p
25422 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25423 ' >>$CONFIG_STATUS <conf$$subs.sed
25424 rm -f conf$$subs.sed
25425 cat >>$CONFIG_STATUS <<_ACEOF
25426 CEOF$ac_eof
25427 _ACEOF
25428
25429
25430 ac_delim='%!_!# '
25431 for ac_last_try in false false false false false :; do
25432   cat >conf$$subs.sed <<_ACEOF
25433 AR!$AR$ac_delim
25434 RANLIB!$RANLIB$ac_delim
25435 DSYMUTIL!$DSYMUTIL$ac_delim
25436 NMEDIT!$NMEDIT$ac_delim
25437 CXXCPP!$CXXCPP$ac_delim
25438 F77!$F77$ac_delim
25439 FFLAGS!$FFLAGS$ac_delim
25440 ac_ct_F77!$ac_ct_F77$ac_delim
25441 LIBTOOL!$LIBTOOL$ac_delim
25442 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
25443 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
25444 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
25445 X86_64_TRUE!$X86_64_TRUE$ac_delim
25446 X86_64_FALSE!$X86_64_FALSE$ac_delim
25447 acx_pthread_config!$acx_pthread_config$ac_delim
25448 PTHREAD_CC!$PTHREAD_CC$ac_delim
25449 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
25450 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
25451 GTEST_CONFIG!$GTEST_CONFIG$ac_delim
25452 GMOCK_CONFIG!$GMOCK_CONFIG$ac_delim
25453 HAVE_GMOCK_TRUE!$HAVE_GMOCK_TRUE$ac_delim
25454 HAVE_GMOCK_FALSE!$HAVE_GMOCK_FALSE$ac_delim
25455 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
25456 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
25457 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
25458 ac_google_namespace!$ac_google_namespace$ac_delim
25459 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
25460 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
25461 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
25462 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
25463 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
25464 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
25465 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
25466 ac_cv_have_unistd_h!$ac_cv_have_unistd_h$ac_delim
25467 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
25468 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
25469 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
25470 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
25471 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
25472 GTEST_CFLAGS!$GTEST_CFLAGS$ac_delim
25473 GMOCK_CFLAGS!$GMOCK_CFLAGS$ac_delim
25474 GTEST_LIBS!$GTEST_LIBS$ac_delim
25475 GMOCK_LIBS!$GMOCK_LIBS$ac_delim
25476 LIBOBJS!$LIBOBJS$ac_delim
25477 LTLIBOBJS!$LTLIBOBJS$ac_delim
25478 _ACEOF
25479
25480   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
25481     break
25482   elif $ac_last_try; then
25483     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25484 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25485    { (exit 1); exit 1; }; }
25486   else
25487     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25488   fi
25489 done
25490
25491 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25492 if test -n "$ac_eof"; then
25493   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25494   ac_eof=`expr $ac_eof + 1`
25495 fi
25496
25497 cat >>$CONFIG_STATUS <<_ACEOF
25498 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25500 _ACEOF
25501 sed '
25502 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25503 s/^/s,@/; s/!/@,|#_!!_#|/
25504 :n
25505 t n
25506 s/'"$ac_delim"'$/,g/; t
25507 s/$/\\/; p
25508 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25509 ' >>$CONFIG_STATUS <conf$$subs.sed
25510 rm -f conf$$subs.sed
25511 cat >>$CONFIG_STATUS <<_ACEOF
25512 :end
25513 s/|#_!!_#|//g
25514 CEOF$ac_eof
25515 _ACEOF
25516
25517
25518 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25519 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25520 # trailing colons and then remove the whole line if VPATH becomes empty
25521 # (actually we leave an empty line to preserve line numbers).
25522 if test "x$srcdir" = x.; then
25523   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25524 s/:*\$(srcdir):*/:/
25525 s/:*\${srcdir}:*/:/
25526 s/:*@srcdir@:*/:/
25527 s/^\([^=]*=[     ]*\):*/\1/
25528 s/:*$//
25529 s/^[^=]*=[       ]*$//
25530 }'
25531 fi
25532
25533 cat >>$CONFIG_STATUS <<\_ACEOF
25534 fi # test -n "$CONFIG_FILES"
25535
25536
25537 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25538 do
25539   case $ac_tag in
25540   :[FHLC]) ac_mode=$ac_tag; continue;;
25541   esac
25542   case $ac_mode$ac_tag in
25543   :[FHL]*:*);;
25544   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25545 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25546    { (exit 1); exit 1; }; };;
25547   :[FH]-) ac_tag=-:-;;
25548   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25549   esac
25550   ac_save_IFS=$IFS
25551   IFS=:
25552   set x $ac_tag
25553   IFS=$ac_save_IFS
25554   shift
25555   ac_file=$1
25556   shift
25557
25558   case $ac_mode in
25559   :L) ac_source=$1;;
25560   :[FH])
25561     ac_file_inputs=
25562     for ac_f
25563     do
25564       case $ac_f in
25565       -) ac_f="$tmp/stdin";;
25566       *) # Look for the file first in the build tree, then in the source tree
25567          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25568          # because $ac_f cannot contain `:'.
25569          test -f "$ac_f" ||
25570            case $ac_f in
25571            [\\/$]*) false;;
25572            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25573            esac ||
25574            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25575 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25576    { (exit 1); exit 1; }; };;
25577       esac
25578       ac_file_inputs="$ac_file_inputs $ac_f"
25579     done
25580
25581     # Let's still pretend it is `configure' which instantiates (i.e., don't
25582     # use $as_me), people would be surprised to read:
25583     #    /* config.h.  Generated by config.status.  */
25584     configure_input="Generated from "`IFS=:
25585           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25586     if test x"$ac_file" != x-; then
25587       configure_input="$ac_file.  $configure_input"
25588       { echo "$as_me:$LINENO: creating $ac_file" >&5
25589 echo "$as_me: creating $ac_file" >&6;}
25590     fi
25591
25592     case $ac_tag in
25593     *:-:* | *:-) cat >"$tmp/stdin";;
25594     esac
25595     ;;
25596   esac
25597
25598   ac_dir=`$as_dirname -- "$ac_file" ||
25599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25600          X"$ac_file" : 'X\(//\)[^/]' \| \
25601          X"$ac_file" : 'X\(//\)$' \| \
25602          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25603 echo X"$ac_file" |
25604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25605             s//\1/
25606             q
25607           }
25608           /^X\(\/\/\)[^/].*/{
25609             s//\1/
25610             q
25611           }
25612           /^X\(\/\/\)$/{
25613             s//\1/
25614             q
25615           }
25616           /^X\(\/\).*/{
25617             s//\1/
25618             q
25619           }
25620           s/.*/./; q'`
25621   { as_dir="$ac_dir"
25622   case $as_dir in #(
25623   -*) as_dir=./$as_dir;;
25624   esac
25625   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25626     as_dirs=
25627     while :; do
25628       case $as_dir in #(
25629       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25630       *) as_qdir=$as_dir;;
25631       esac
25632       as_dirs="'$as_qdir' $as_dirs"
25633       as_dir=`$as_dirname -- "$as_dir" ||
25634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25635          X"$as_dir" : 'X\(//\)[^/]' \| \
25636          X"$as_dir" : 'X\(//\)$' \| \
25637          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25638 echo X"$as_dir" |
25639     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25640             s//\1/
25641             q
25642           }
25643           /^X\(\/\/\)[^/].*/{
25644             s//\1/
25645             q
25646           }
25647           /^X\(\/\/\)$/{
25648             s//\1/
25649             q
25650           }
25651           /^X\(\/\).*/{
25652             s//\1/
25653             q
25654           }
25655           s/.*/./; q'`
25656       test -d "$as_dir" && break
25657     done
25658     test -z "$as_dirs" || eval "mkdir $as_dirs"
25659   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25660 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25661    { (exit 1); exit 1; }; }; }
25662   ac_builddir=.
25663
25664 case "$ac_dir" in
25665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25666 *)
25667   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25668   # A ".." for each directory in $ac_dir_suffix.
25669   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25670   case $ac_top_builddir_sub in
25671   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25672   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25673   esac ;;
25674 esac
25675 ac_abs_top_builddir=$ac_pwd
25676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25677 # for backward compatibility:
25678 ac_top_builddir=$ac_top_build_prefix
25679
25680 case $srcdir in
25681   .)  # We are building in place.
25682     ac_srcdir=.
25683     ac_top_srcdir=$ac_top_builddir_sub
25684     ac_abs_top_srcdir=$ac_pwd ;;
25685   [\\/]* | ?:[\\/]* )  # Absolute name.
25686     ac_srcdir=$srcdir$ac_dir_suffix;
25687     ac_top_srcdir=$srcdir
25688     ac_abs_top_srcdir=$srcdir ;;
25689   *) # Relative name.
25690     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25691     ac_top_srcdir=$ac_top_build_prefix$srcdir
25692     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25693 esac
25694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25695
25696
25697   case $ac_mode in
25698   :F)
25699   #
25700   # CONFIG_FILE
25701   #
25702
25703   case $INSTALL in
25704   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25705   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25706   esac
25707   ac_MKDIR_P=$MKDIR_P
25708   case $MKDIR_P in
25709   [\\/$]* | ?:[\\/]* ) ;;
25710   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25711   esac
25712 _ACEOF
25713
25714 cat >>$CONFIG_STATUS <<\_ACEOF
25715 # If the template does not know about datarootdir, expand it.
25716 # FIXME: This hack should be removed a few years after 2.60.
25717 ac_datarootdir_hack=; ac_datarootdir_seen=
25718
25719 case `sed -n '/datarootdir/ {
25720   p
25721   q
25722 }
25723 /@datadir@/p
25724 /@docdir@/p
25725 /@infodir@/p
25726 /@localedir@/p
25727 /@mandir@/p
25728 ' $ac_file_inputs` in
25729 *datarootdir*) ac_datarootdir_seen=yes;;
25730 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25731   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25732 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25733 _ACEOF
25734 cat >>$CONFIG_STATUS <<_ACEOF
25735   ac_datarootdir_hack='
25736   s&@datadir@&$datadir&g
25737   s&@docdir@&$docdir&g
25738   s&@infodir@&$infodir&g
25739   s&@localedir@&$localedir&g
25740   s&@mandir@&$mandir&g
25741     s&\\\${datarootdir}&$datarootdir&g' ;;
25742 esac
25743 _ACEOF
25744
25745 # Neutralize VPATH when `$srcdir' = `.'.
25746 # Shell code in configure.ac might set extrasub.
25747 # FIXME: do we really want to maintain this feature?
25748 cat >>$CONFIG_STATUS <<_ACEOF
25749   sed "$ac_vpsub
25750 $extrasub
25751 _ACEOF
25752 cat >>$CONFIG_STATUS <<\_ACEOF
25753 :t
25754 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25755 s&@configure_input@&$configure_input&;t t
25756 s&@top_builddir@&$ac_top_builddir_sub&;t t
25757 s&@srcdir@&$ac_srcdir&;t t
25758 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25759 s&@top_srcdir@&$ac_top_srcdir&;t t
25760 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25761 s&@builddir@&$ac_builddir&;t t
25762 s&@abs_builddir@&$ac_abs_builddir&;t t
25763 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25764 s&@INSTALL@&$ac_INSTALL&;t t
25765 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25766 $ac_datarootdir_hack
25767 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25768
25769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25770   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25771   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25772   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25773 which seems to be undefined.  Please make sure it is defined." >&5
25774 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25775 which seems to be undefined.  Please make sure it is defined." >&2;}
25776
25777   rm -f "$tmp/stdin"
25778   case $ac_file in
25779   -) cat "$tmp/out"; rm -f "$tmp/out";;
25780   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25781   esac
25782  ;;
25783   :H)
25784   #
25785   # CONFIG_HEADER
25786   #
25787 _ACEOF
25788
25789 # Transform confdefs.h into a sed script `conftest.defines', that
25790 # substitutes the proper values into config.h.in to produce config.h.
25791 rm -f conftest.defines conftest.tail
25792 # First, append a space to every undef/define line, to ease matching.
25793 echo 's/$/ /' >conftest.defines
25794 # Then, protect against being on the right side of a sed subst, or in
25795 # an unquoted here document, in config.status.  If some macros were
25796 # called several times there might be several #defines for the same
25797 # symbol, which is useless.  But do not sort them, since the last
25798 # AC_DEFINE must be honored.
25799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25800 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25801 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25802 # PARAMS is the parameter list in the macro definition--in most cases, it's
25803 # just an empty string.
25804 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25805 ac_dB='\\)[      (].*,\\1define\\2'
25806 ac_dC=' '
25807 ac_dD=' ,'
25808
25809 uniq confdefs.h |
25810   sed -n '
25811         t rset
25812         :rset
25813         s/^[     ]*#[    ]*define[       ][      ]*//
25814         t ok
25815         d
25816         :ok
25817         s/[\\&,]/\\&/g
25818         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25819         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25820   ' >>conftest.defines
25821
25822 # Remove the space that was appended to ease matching.
25823 # Then replace #undef with comments.  This is necessary, for
25824 # example, in the case of _POSIX_SOURCE, which is predefined and required
25825 # on some systems where configure will not decide to define it.
25826 # (The regexp can be short, since the line contains either #define or #undef.)
25827 echo 's/ $//
25828 s,^[     #]*u.*,/* & */,' >>conftest.defines
25829
25830 # Break up conftest.defines:
25831 ac_max_sed_lines=50
25832
25833 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25834 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25835 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25836 # et cetera.
25837 ac_in='$ac_file_inputs'
25838 ac_out='"$tmp/out1"'
25839 ac_nxt='"$tmp/out2"'
25840
25841 while :
25842 do
25843   # Write a here document:
25844     cat >>$CONFIG_STATUS <<_ACEOF
25845     # First, check the format of the line:
25846     cat >"\$tmp/defines.sed" <<\\CEOF
25847 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25848 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25849 b
25850 :def
25851 _ACEOF
25852   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25853   echo 'CEOF
25854     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25855   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25856   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25857   grep . conftest.tail >/dev/null || break
25858   rm -f conftest.defines
25859   mv conftest.tail conftest.defines
25860 done
25861 rm -f conftest.defines conftest.tail
25862
25863 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25864 cat >>$CONFIG_STATUS <<\_ACEOF
25865   if test x"$ac_file" != x-; then
25866     echo "/* $configure_input  */" >"$tmp/config.h"
25867     cat "$ac_result" >>"$tmp/config.h"
25868     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25869       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25870 echo "$as_me: $ac_file is unchanged" >&6;}
25871     else
25872       rm -f $ac_file
25873       mv "$tmp/config.h" $ac_file
25874     fi
25875   else
25876     echo "/* $configure_input  */"
25877     cat "$ac_result"
25878   fi
25879   rm -f "$tmp/out12"
25880 # Compute $ac_file's index in $config_headers.
25881 _am_arg=$ac_file
25882 _am_stamp_count=1
25883 for _am_header in $config_headers :; do
25884   case $_am_header in
25885     $_am_arg | $_am_arg:* )
25886       break ;;
25887     * )
25888       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25889   esac
25890 done
25891 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25892 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25893          X"$_am_arg" : 'X\(//\)[^/]' \| \
25894          X"$_am_arg" : 'X\(//\)$' \| \
25895          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25896 echo X"$_am_arg" |
25897     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25898             s//\1/
25899             q
25900           }
25901           /^X\(\/\/\)[^/].*/{
25902             s//\1/
25903             q
25904           }
25905           /^X\(\/\/\)$/{
25906             s//\1/
25907             q
25908           }
25909           /^X\(\/\).*/{
25910             s//\1/
25911             q
25912           }
25913           s/.*/./; q'`/stamp-h$_am_stamp_count
25914  ;;
25915
25916   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25917 echo "$as_me: executing $ac_file commands" >&6;}
25918  ;;
25919   esac
25920
25921
25922   case $ac_file$ac_mode in
25923     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25924   # Strip MF so we end up with the name of the file.
25925   mf=`echo "$mf" | sed -e 's/:.*$//'`
25926   # Check whether this is an Automake generated Makefile or not.
25927   # We used to match only the files named `Makefile.in', but
25928   # some people rename them; so instead we look at the file content.
25929   # Grep'ing the first line is not enough: some people post-process
25930   # each Makefile.in and add a new line on top of each file to say so.
25931   # Grep'ing the whole file is not good either: AIX grep has a line
25932   # limit of 2048, but all sed's we know have understand at least 4000.
25933   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25934     dirpart=`$as_dirname -- "$mf" ||
25935 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25936          X"$mf" : 'X\(//\)[^/]' \| \
25937          X"$mf" : 'X\(//\)$' \| \
25938          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25939 echo X"$mf" |
25940     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25941             s//\1/
25942             q
25943           }
25944           /^X\(\/\/\)[^/].*/{
25945             s//\1/
25946             q
25947           }
25948           /^X\(\/\/\)$/{
25949             s//\1/
25950             q
25951           }
25952           /^X\(\/\).*/{
25953             s//\1/
25954             q
25955           }
25956           s/.*/./; q'`
25957   else
25958     continue
25959   fi
25960   # Extract the definition of DEPDIR, am__include, and am__quote
25961   # from the Makefile without running `make'.
25962   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25963   test -z "$DEPDIR" && continue
25964   am__include=`sed -n 's/^am__include = //p' < "$mf"`
25965   test -z "am__include" && continue
25966   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25967   # When using ansi2knr, U may be empty or an underscore; expand it
25968   U=`sed -n 's/^U = //p' < "$mf"`
25969   # Find all dependency output files, they are included files with
25970   # $(DEPDIR) in their names.  We invoke sed twice because it is the
25971   # simplest approach to changing $(DEPDIR) to its actual value in the
25972   # expansion.
25973   for file in `sed -n "
25974     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25975        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25976     # Make sure the directory exists.
25977     test -f "$dirpart/$file" && continue
25978     fdir=`$as_dirname -- "$file" ||
25979 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25980          X"$file" : 'X\(//\)[^/]' \| \
25981          X"$file" : 'X\(//\)$' \| \
25982          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25983 echo X"$file" |
25984     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25985             s//\1/
25986             q
25987           }
25988           /^X\(\/\/\)[^/].*/{
25989             s//\1/
25990             q
25991           }
25992           /^X\(\/\/\)$/{
25993             s//\1/
25994             q
25995           }
25996           /^X\(\/\).*/{
25997             s//\1/
25998             q
25999           }
26000           s/.*/./; q'`
26001     { as_dir=$dirpart/$fdir
26002   case $as_dir in #(
26003   -*) as_dir=./$as_dir;;
26004   esac
26005   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26006     as_dirs=
26007     while :; do
26008       case $as_dir in #(
26009       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26010       *) as_qdir=$as_dir;;
26011       esac
26012       as_dirs="'$as_qdir' $as_dirs"
26013       as_dir=`$as_dirname -- "$as_dir" ||
26014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26015          X"$as_dir" : 'X\(//\)[^/]' \| \
26016          X"$as_dir" : 'X\(//\)$' \| \
26017          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26018 echo X"$as_dir" |
26019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26020             s//\1/
26021             q
26022           }
26023           /^X\(\/\/\)[^/].*/{
26024             s//\1/
26025             q
26026           }
26027           /^X\(\/\/\)$/{
26028             s//\1/
26029             q
26030           }
26031           /^X\(\/\).*/{
26032             s//\1/
26033             q
26034           }
26035           s/.*/./; q'`
26036       test -d "$as_dir" && break
26037     done
26038     test -z "$as_dirs" || eval "mkdir $as_dirs"
26039   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26040 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26041    { (exit 1); exit 1; }; }; }
26042     # echo "creating $dirpart/$file"
26043     echo '# dummy' > "$dirpart/$file"
26044   done
26045 done
26046  ;;
26047
26048   esac
26049 done # for ac_tag
26050
26051
26052 { (exit 0); exit 0; }
26053 _ACEOF
26054 chmod +x $CONFIG_STATUS
26055 ac_clean_files=$ac_clean_files_save
26056
26057
26058 # configure is writing to config.log, and then calls config.status.
26059 # config.status does its own redirection, appending to config.log.
26060 # Unfortunately, on DOS this fails, as config.log is still kept open
26061 # by configure, so config.status won't be able to write to it; its
26062 # output is simply discarded.  So we exec the FD to /dev/null,
26063 # effectively closing config.log, so it can be properly (re)opened and
26064 # appended to by config.status.  When coming back to configure, we
26065 # need to make the FD available again.
26066 if test "$no_create" != yes; then
26067   ac_cs_success=:
26068   ac_config_status_args=
26069   test "$silent" = yes &&
26070     ac_config_status_args="$ac_config_status_args --quiet"
26071   exec 5>/dev/null
26072   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26073   exec 5>>config.log
26074   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26075   # would make configure fail if this is the last instruction.
26076   $ac_cs_success || { (exit 1); exit 1; }
26077 fi
26078