3817ce9bafb88960643a285ab0b6678ef4eeca23
[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 UNWIND_LIBS
888 ac_google_start_namespace
889 ac_google_end_namespace
890 ac_google_namespace
891 ac_cv_cxx_using_operator
892 ac_cv___attribute___noreturn
893 ac_cv___attribute___printf_4_5
894 ac_cv_have___builtin_expect
895 ac_cv_have_stdint_h
896 ac_cv_have_systypes_h
897 ac_cv_have_inttypes_h
898 ac_cv_have_uint16_t
899 ac_cv_have_u_int16_t
900 ac_cv_have___uint16
901 ac_cv_have_libgflags
902 GFLAGS_LIBS
903 LIBOBJS
904 LTLIBOBJS'
905 ac_subst_files=''
906       ac_precious_vars='build_alias
907 host_alias
908 target_alias
909 CC
910 CFLAGS
911 LDFLAGS
912 LIBS
913 CPPFLAGS
914 CPP
915 CXX
916 CXXFLAGS
917 CCC
918 CXXCPP
919 F77
920 FFLAGS'
921
922
923 # Initialize some variables set by options.
924 ac_init_help=
925 ac_init_version=false
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
928 cache_file=/dev/null
929 exec_prefix=NONE
930 no_create=
931 no_recursion=
932 prefix=NONE
933 program_prefix=NONE
934 program_suffix=NONE
935 program_transform_name=s,x,x,
936 silent=
937 site=
938 srcdir=
939 verbose=
940 x_includes=NONE
941 x_libraries=NONE
942
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir='${exec_prefix}/bin'
950 sbindir='${exec_prefix}/sbin'
951 libexecdir='${exec_prefix}/libexec'
952 datarootdir='${prefix}/share'
953 datadir='${datarootdir}'
954 sysconfdir='${prefix}/etc'
955 sharedstatedir='${prefix}/com'
956 localstatedir='${prefix}/var'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
960 infodir='${datarootdir}/info'
961 htmldir='${docdir}'
962 dvidir='${docdir}'
963 pdfdir='${docdir}'
964 psdir='${docdir}'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
968
969 ac_prev=
970 ac_dashdash=
971 for ac_option
972 do
973   # If the previous option needs an argument, assign it.
974   if test -n "$ac_prev"; then
975     eval $ac_prev=\$ac_option
976     ac_prev=
977     continue
978   fi
979
980   case $ac_option in
981   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982   *)    ac_optarg=yes ;;
983   esac
984
985   # Accept the important Cygnus configure options, so we can diagnose typos.
986
987   case $ac_dashdash$ac_option in
988   --)
989     ac_dashdash=yes ;;
990
991   -bindir | --bindir | --bindi | --bind | --bin | --bi)
992     ac_prev=bindir ;;
993   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994     bindir=$ac_optarg ;;
995
996   -build | --build | --buil | --bui | --bu)
997     ac_prev=build_alias ;;
998   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999     build_alias=$ac_optarg ;;
1000
1001   -cache-file | --cache-file | --cache-fil | --cache-fi \
1002   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003     ac_prev=cache_file ;;
1004   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006     cache_file=$ac_optarg ;;
1007
1008   --config-cache | -C)
1009     cache_file=config.cache ;;
1010
1011   -datadir | --datadir | --datadi | --datad)
1012     ac_prev=datadir ;;
1013   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014     datadir=$ac_optarg ;;
1015
1016   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017   | --dataroo | --dataro | --datar)
1018     ac_prev=datarootdir ;;
1019   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021     datarootdir=$ac_optarg ;;
1022
1023   -disable-* | --disable-*)
1024     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028    { (exit 1); exit 1; }; }
1029     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030     eval enable_$ac_feature=no ;;
1031
1032   -docdir | --docdir | --docdi | --doc | --do)
1033     ac_prev=docdir ;;
1034   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1035     docdir=$ac_optarg ;;
1036
1037   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1038     ac_prev=dvidir ;;
1039   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1040     dvidir=$ac_optarg ;;
1041
1042   -enable-* | --enable-*)
1043     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1044     # Reject names that are not valid shell variable names.
1045     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1047    { (exit 1); exit 1; }; }
1048     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1049     eval enable_$ac_feature=\$ac_optarg ;;
1050
1051   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053   | --exec | --exe | --ex)
1054     ac_prev=exec_prefix ;;
1055   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057   | --exec=* | --exe=* | --ex=*)
1058     exec_prefix=$ac_optarg ;;
1059
1060   -gas | --gas | --ga | --g)
1061     # Obsolete; use --with-gas.
1062     with_gas=yes ;;
1063
1064   -help | --help | --hel | --he | -h)
1065     ac_init_help=long ;;
1066   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067     ac_init_help=recursive ;;
1068   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069     ac_init_help=short ;;
1070
1071   -host | --host | --hos | --ho)
1072     ac_prev=host_alias ;;
1073   -host=* | --host=* | --hos=* | --ho=*)
1074     host_alias=$ac_optarg ;;
1075
1076   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077     ac_prev=htmldir ;;
1078   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079   | --ht=*)
1080     htmldir=$ac_optarg ;;
1081
1082   -includedir | --includedir | --includedi | --included | --include \
1083   | --includ | --inclu | --incl | --inc)
1084     ac_prev=includedir ;;
1085   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086   | --includ=* | --inclu=* | --incl=* | --inc=*)
1087     includedir=$ac_optarg ;;
1088
1089   -infodir | --infodir | --infodi | --infod | --info | --inf)
1090     ac_prev=infodir ;;
1091   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092     infodir=$ac_optarg ;;
1093
1094   -libdir | --libdir | --libdi | --libd)
1095     ac_prev=libdir ;;
1096   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097     libdir=$ac_optarg ;;
1098
1099   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100   | --libexe | --libex | --libe)
1101     ac_prev=libexecdir ;;
1102   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103   | --libexe=* | --libex=* | --libe=*)
1104     libexecdir=$ac_optarg ;;
1105
1106   -localedir | --localedir | --localedi | --localed | --locale)
1107     ac_prev=localedir ;;
1108   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109     localedir=$ac_optarg ;;
1110
1111   -localstatedir | --localstatedir | --localstatedi | --localstated \
1112   | --localstate | --localstat | --localsta | --localst | --locals)
1113     ac_prev=localstatedir ;;
1114   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116     localstatedir=$ac_optarg ;;
1117
1118   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119     ac_prev=mandir ;;
1120   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121     mandir=$ac_optarg ;;
1122
1123   -nfp | --nfp | --nf)
1124     # Obsolete; use --without-fp.
1125     with_fp=no ;;
1126
1127   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128   | --no-cr | --no-c | -n)
1129     no_create=yes ;;
1130
1131   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133     no_recursion=yes ;;
1134
1135   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137   | --oldin | --oldi | --old | --ol | --o)
1138     ac_prev=oldincludedir ;;
1139   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142     oldincludedir=$ac_optarg ;;
1143
1144   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145     ac_prev=prefix ;;
1146   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147     prefix=$ac_optarg ;;
1148
1149   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150   | --program-pre | --program-pr | --program-p)
1151     ac_prev=program_prefix ;;
1152   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154     program_prefix=$ac_optarg ;;
1155
1156   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157   | --program-suf | --program-su | --program-s)
1158     ac_prev=program_suffix ;;
1159   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161     program_suffix=$ac_optarg ;;
1162
1163   -program-transform-name | --program-transform-name \
1164   | --program-transform-nam | --program-transform-na \
1165   | --program-transform-n | --program-transform- \
1166   | --program-transform | --program-transfor \
1167   | --program-transfo | --program-transf \
1168   | --program-trans | --program-tran \
1169   | --progr-tra | --program-tr | --program-t)
1170     ac_prev=program_transform_name ;;
1171   -program-transform-name=* | --program-transform-name=* \
1172   | --program-transform-nam=* | --program-transform-na=* \
1173   | --program-transform-n=* | --program-transform-=* \
1174   | --program-transform=* | --program-transfor=* \
1175   | --program-transfo=* | --program-transf=* \
1176   | --program-trans=* | --program-tran=* \
1177   | --progr-tra=* | --program-tr=* | --program-t=*)
1178     program_transform_name=$ac_optarg ;;
1179
1180   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181     ac_prev=pdfdir ;;
1182   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183     pdfdir=$ac_optarg ;;
1184
1185   -psdir | --psdir | --psdi | --psd | --ps)
1186     ac_prev=psdir ;;
1187   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188     psdir=$ac_optarg ;;
1189
1190   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191   | -silent | --silent | --silen | --sile | --sil)
1192     silent=yes ;;
1193
1194   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195     ac_prev=sbindir ;;
1196   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197   | --sbi=* | --sb=*)
1198     sbindir=$ac_optarg ;;
1199
1200   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202   | --sharedst | --shareds | --shared | --share | --shar \
1203   | --sha | --sh)
1204     ac_prev=sharedstatedir ;;
1205   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208   | --sha=* | --sh=*)
1209     sharedstatedir=$ac_optarg ;;
1210
1211   -site | --site | --sit)
1212     ac_prev=site ;;
1213   -site=* | --site=* | --sit=*)
1214     site=$ac_optarg ;;
1215
1216   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217     ac_prev=srcdir ;;
1218   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219     srcdir=$ac_optarg ;;
1220
1221   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222   | --syscon | --sysco | --sysc | --sys | --sy)
1223     ac_prev=sysconfdir ;;
1224   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226     sysconfdir=$ac_optarg ;;
1227
1228   -target | --target | --targe | --targ | --tar | --ta | --t)
1229     ac_prev=target_alias ;;
1230   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231     target_alias=$ac_optarg ;;
1232
1233   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234     verbose=yes ;;
1235
1236   -version | --version | --versio | --versi | --vers | -V)
1237     ac_init_version=: ;;
1238
1239   -with-* | --with-*)
1240     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241     # Reject names that are not valid shell variable names.
1242     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243       { echo "$as_me: error: invalid package name: $ac_package" >&2
1244    { (exit 1); exit 1; }; }
1245     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1246     eval with_$ac_package=\$ac_optarg ;;
1247
1248   -without-* | --without-*)
1249     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1256
1257   --x)
1258     # Obsolete; use --with-x.
1259     with_x=yes ;;
1260
1261   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262   | --x-incl | --x-inc | --x-in | --x-i)
1263     ac_prev=x_includes ;;
1264   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1266     x_includes=$ac_optarg ;;
1267
1268   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270     ac_prev=x_libraries ;;
1271   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1273     x_libraries=$ac_optarg ;;
1274
1275   -*) { echo "$as_me: error: unrecognized option: $ac_option
1276 Try \`$0 --help' for more information." >&2
1277    { (exit 1); exit 1; }; }
1278     ;;
1279
1280   *=*)
1281     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282     # Reject names that are not valid shell variable names.
1283     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1284       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1285    { (exit 1); exit 1; }; }
1286     eval $ac_envvar=\$ac_optarg
1287     export $ac_envvar ;;
1288
1289   *)
1290     # FIXME: should be removed in autoconf 3.0.
1291     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1292     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1294     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1295     ;;
1296
1297   esac
1298 done
1299
1300 if test -n "$ac_prev"; then
1301   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1302   { echo "$as_me: error: missing argument to $ac_option" >&2
1303    { (exit 1); exit 1; }; }
1304 fi
1305
1306 # Be sure to have absolute directory names.
1307 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308                 datadir sysconfdir sharedstatedir localstatedir includedir \
1309                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310                 libdir localedir mandir
1311 do
1312   eval ac_val=\$$ac_var
1313   case $ac_val in
1314     [\\/$]* | ?:[\\/]* )  continue;;
1315     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316   esac
1317   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1318    { (exit 1); exit 1; }; }
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330   if test "x$build_alias" = x; then
1331     cross_compiling=maybe
1332     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1333     If a cross compiler is detected then cross compile mode will be used." >&2
1334   elif test "x$build_alias" != "x$host_alias"; then
1335     cross_compiling=yes
1336   fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348   { echo "$as_me: error: Working directory cannot be determined" >&2
1349    { (exit 1); exit 1; }; }
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351   { echo "$as_me: error: pwd does not report name of working directory" >&2
1352    { (exit 1); exit 1; }; }
1353
1354
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357   ac_srcdir_defaulted=yes
1358   # Try the directory containing this script, then the parent directory.
1359   ac_confdir=`$as_dirname -- "$0" ||
1360 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361          X"$0" : 'X\(//\)[^/]' \| \
1362          X"$0" : 'X\(//\)$' \| \
1363          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1364 echo X"$0" |
1365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\/\)[^/].*/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\/\)$/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\).*/{
1378             s//\1/
1379             q
1380           }
1381           s/.*/./; q'`
1382   srcdir=$ac_confdir
1383   if test ! -r "$srcdir/$ac_unique_file"; then
1384     srcdir=..
1385   fi
1386 else
1387   ac_srcdir_defaulted=no
1388 fi
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1392    { (exit 1); exit 1; }; }
1393 fi
1394 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1395 ac_abs_confdir=`(
1396         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1397    { (exit 1); exit 1; }; }
1398         pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401   srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411   eval ac_env_${ac_var}_value=\$${ac_var}
1412   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420   # Omit some internal or obsolete options to make the list less imposing.
1421   # This message is too long to be a string in the A/UX 3.1 sh.
1422   cat <<_ACEOF
1423 \`configure' configures glog 0.1.2 to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE.  See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433   -h, --help              display this help and exit
1434       --help=short        display options specific to this package
1435       --help=recursive    display the short help of all the included packages
1436   -V, --version           display version information and exit
1437   -q, --quiet, --silent   do not print \`checking...' messages
1438       --cache-file=FILE   cache test results in FILE [disabled]
1439   -C, --config-cache      alias for \`--cache-file=config.cache'
1440   -n, --no-create         do not create output files
1441       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1442
1443 Installation directories:
1444   --prefix=PREFIX         install architecture-independent files in PREFIX
1445                           [$ac_default_prefix]
1446   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1447                           [PREFIX]
1448
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457   --bindir=DIR           user executables [EPREFIX/bin]
1458   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1459   --libexecdir=DIR       program executables [EPREFIX/libexec]
1460   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1461   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1462   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1463   --libdir=DIR           object code libraries [EPREFIX/lib]
1464   --includedir=DIR       C header files [PREFIX/include]
1465   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1466   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1467   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1468   --infodir=DIR          info documentation [DATAROOTDIR/info]
1469   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1470   --mandir=DIR           man documentation [DATAROOTDIR/man]
1471   --docdir=DIR           documentation root [DATAROOTDIR/doc/glog]
1472   --htmldir=DIR          html documentation [DOCDIR]
1473   --dvidir=DIR           dvi documentation [DOCDIR]
1474   --pdfdir=DIR           pdf documentation [DOCDIR]
1475   --psdir=DIR            ps documentation [DOCDIR]
1476 _ACEOF
1477
1478   cat <<\_ACEOF
1479
1480 Program names:
1481   --program-prefix=PREFIX            prepend PREFIX to installed program names
1482   --program-suffix=SUFFIX            append SUFFIX to installed program names
1483   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1484
1485 System types:
1486   --build=BUILD     configure for building on BUILD [guessed]
1487   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1488 _ACEOF
1489 fi
1490
1491 if test -n "$ac_init_help"; then
1492   case $ac_init_help in
1493      short | recursive ) echo "Configuration of glog 0.1.2:";;
1494    esac
1495   cat <<\_ACEOF
1496
1497 Optional Features:
1498   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1499   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1500   --disable-dependency-tracking  speeds up one-time build
1501   --enable-dependency-tracking   do not reject slow dependency extractors
1502   --enable-shared[=PKGS]  build shared libraries [default=yes]
1503   --enable-static[=PKGS]  build static libraries [default=yes]
1504   --enable-fast-install[=PKGS]
1505                           optimize for fast installation [default=yes]
1506   --disable-libtool-lock  avoid locking (might break parallel builds)
1507   --enable-frame-pointers On x86_64 systems, compile with
1508                           -fno-omit-frame-pointer (see INSTALL)
1509   --enable-namespace=FOO to define these Google
1510                              classes in the FOO namespace. --disable-namespace
1511                              to define them in the global namespace. Default
1512                              is to define them in namespace google.
1513
1514 Optional Packages:
1515   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1518   --with-pic              try to use only PIC/non-PIC objects [default=use
1519                           both]
1520   --with-tags[=TAGS]      include additional configurations [automatic]
1521
1522 Some influential environment variables:
1523   CC          C compiler command
1524   CFLAGS      C compiler flags
1525   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526               nonstandard directory <lib dir>
1527   LIBS        libraries to pass to the linker, e.g. -l<library>
1528   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529               you have headers in a nonstandard directory <include dir>
1530   CPP         C preprocessor
1531   CXX         C++ compiler command
1532   CXXFLAGS    C++ compiler flags
1533   CXXCPP      C++ preprocessor
1534   F77         Fortran 77 compiler command
1535   FFLAGS      Fortran 77 compiler flags
1536
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1539
1540 Report bugs to <opensource@google.com>.
1541 _ACEOF
1542 ac_status=$?
1543 fi
1544
1545 if test "$ac_init_help" = "recursive"; then
1546   # If there are subdirs, report their specific --help.
1547   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548     test -d "$ac_dir" || continue
1549     ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1555   # A ".." for each directory in $ac_dir_suffix.
1556   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1557   case $ac_top_builddir_sub in
1558   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560   esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568   .)  # We are building in place.
1569     ac_srcdir=.
1570     ac_top_srcdir=$ac_top_builddir_sub
1571     ac_abs_top_srcdir=$ac_pwd ;;
1572   [\\/]* | ?:[\\/]* )  # Absolute name.
1573     ac_srcdir=$srcdir$ac_dir_suffix;
1574     ac_top_srcdir=$srcdir
1575     ac_abs_top_srcdir=$srcdir ;;
1576   *) # Relative name.
1577     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578     ac_top_srcdir=$ac_top_build_prefix$srcdir
1579     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583     cd "$ac_dir" || { ac_status=$?; continue; }
1584     # Check for guested configure.
1585     if test -f "$ac_srcdir/configure.gnu"; then
1586       echo &&
1587       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588     elif test -f "$ac_srcdir/configure"; then
1589       echo &&
1590       $SHELL "$ac_srcdir/configure" --help=recursive
1591     else
1592       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593     fi || ac_status=$?
1594     cd "$ac_pwd" || { ac_status=$?; break; }
1595   done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600   cat <<\_ACEOF
1601 glog configure 0.1.2
1602 generated by GNU Autoconf 2.61
1603
1604 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1605 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1606 This configure script is free software; the Free Software Foundation
1607 gives unlimited permission to copy, distribute and modify it.
1608 _ACEOF
1609   exit
1610 fi
1611 cat >config.log <<_ACEOF
1612 This file contains any messages produced by compilers while
1613 running configure, to aid debugging if configure makes a mistake.
1614
1615 It was created by glog $as_me 0.1.2, which was
1616 generated by GNU Autoconf 2.61.  Invocation command line was
1617
1618   $ $0 $@
1619
1620 _ACEOF
1621 exec 5>>config.log
1622 {
1623 cat <<_ASUNAME
1624 ## --------- ##
1625 ## Platform. ##
1626 ## --------- ##
1627
1628 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1629 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1630 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1631 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1632 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633
1634 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1635 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1636
1637 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1638 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1639 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1640 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1641 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1642 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1643 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1644
1645 _ASUNAME
1646
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650   IFS=$as_save_IFS
1651   test -z "$as_dir" && as_dir=.
1652   echo "PATH: $as_dir"
1653 done
1654 IFS=$as_save_IFS
1655
1656 } >&5
1657
1658 cat >&5 <<_ACEOF
1659
1660
1661 ## ----------- ##
1662 ## Core tests. ##
1663 ## ----------- ##
1664
1665 _ACEOF
1666
1667
1668 # Keep a trace of the command line.
1669 # Strip out --no-create and --no-recursion so they do not pile up.
1670 # Strip out --silent because we don't want to record it for future runs.
1671 # Also quote any args containing shell meta-characters.
1672 # Make two passes to allow for proper duplicate-argument suppression.
1673 ac_configure_args=
1674 ac_configure_args0=
1675 ac_configure_args1=
1676 ac_must_keep_next=false
1677 for ac_pass in 1 2
1678 do
1679   for ac_arg
1680   do
1681     case $ac_arg in
1682     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1683     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1684     | -silent | --silent | --silen | --sile | --sil)
1685       continue ;;
1686     *\'*)
1687       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688     esac
1689     case $ac_pass in
1690     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691     2)
1692       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1693       if test $ac_must_keep_next = true; then
1694         ac_must_keep_next=false # Got value, back to normal.
1695       else
1696         case $ac_arg in
1697           *=* | --config-cache | -C | -disable-* | --disable-* \
1698           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1699           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1700           | -with-* | --with-* | -without-* | --without-* | --x)
1701             case "$ac_configure_args0 " in
1702               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703             esac
1704             ;;
1705           -* ) ac_must_keep_next=true ;;
1706         esac
1707       fi
1708       ac_configure_args="$ac_configure_args '$ac_arg'"
1709       ;;
1710     esac
1711   done
1712 done
1713 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1714 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715
1716 # When interrupted or exit'd, cleanup temporary files, and complete
1717 # config.log.  We remove comments because anyway the quotes in there
1718 # would cause problems or look ugly.
1719 # WARNING: Use '\'' to represent an apostrophe within the trap.
1720 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1721 trap 'exit_status=$?
1722   # Save into config.log some information that might help in debugging.
1723   {
1724     echo
1725
1726     cat <<\_ASBOX
1727 ## ---------------- ##
1728 ## Cache variables. ##
1729 ## ---------------- ##
1730 _ASBOX
1731     echo
1732     # The following way of writing the cache mishandles newlines in values,
1733 (
1734   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1735     eval ac_val=\$$ac_var
1736     case $ac_val in #(
1737     *${as_nl}*)
1738       case $ac_var in #(
1739       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1740 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1741       esac
1742       case $ac_var in #(
1743       _ | IFS | as_nl) ;; #(
1744       *) $as_unset $ac_var ;;
1745       esac ;;
1746     esac
1747   done
1748   (set) 2>&1 |
1749     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1750     *${as_nl}ac_space=\ *)
1751       sed -n \
1752         "s/'\''/'\''\\\\'\'''\''/g;
1753           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1754       ;; #(
1755     *)
1756       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757       ;;
1758     esac |
1759     sort
1760 )
1761     echo
1762
1763     cat <<\_ASBOX
1764 ## ----------------- ##
1765 ## Output variables. ##
1766 ## ----------------- ##
1767 _ASBOX
1768     echo
1769     for ac_var in $ac_subst_vars
1770     do
1771       eval ac_val=\$$ac_var
1772       case $ac_val in
1773       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774       esac
1775       echo "$ac_var='\''$ac_val'\''"
1776     done | sort
1777     echo
1778
1779     if test -n "$ac_subst_files"; then
1780       cat <<\_ASBOX
1781 ## ------------------- ##
1782 ## File substitutions. ##
1783 ## ------------------- ##
1784 _ASBOX
1785       echo
1786       for ac_var in $ac_subst_files
1787       do
1788         eval ac_val=\$$ac_var
1789         case $ac_val in
1790         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791         esac
1792         echo "$ac_var='\''$ac_val'\''"
1793       done | sort
1794       echo
1795     fi
1796
1797     if test -s confdefs.h; then
1798       cat <<\_ASBOX
1799 ## ----------- ##
1800 ## confdefs.h. ##
1801 ## ----------- ##
1802 _ASBOX
1803       echo
1804       cat confdefs.h
1805       echo
1806     fi
1807     test "$ac_signal" != 0 &&
1808       echo "$as_me: caught signal $ac_signal"
1809     echo "$as_me: exit $exit_status"
1810   } >&5
1811   rm -f core *.core core.conftest.* &&
1812     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1813     exit $exit_status
1814 ' 0
1815 for ac_signal in 1 2 13 15; do
1816   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817 done
1818 ac_signal=0
1819
1820 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1821 rm -f -r conftest* confdefs.h
1822
1823 # Predefined preprocessor variables.
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_NAME "$PACKAGE_NAME"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_STRING "$PACKAGE_STRING"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847 _ACEOF
1848
1849
1850 # Let the site file select an alternate cache file if it wants to.
1851 # Prefer explicitly selected file to automatically selected ones.
1852 if test -n "$CONFIG_SITE"; then
1853   set x "$CONFIG_SITE"
1854 elif test "x$prefix" != xNONE; then
1855   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856 else
1857   set x "$ac_default_prefix/share/config.site" \
1858         "$ac_default_prefix/etc/config.site"
1859 fi
1860 shift
1861 for ac_site_file
1862 do
1863   if test -r "$ac_site_file"; then
1864     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1865 echo "$as_me: loading site script $ac_site_file" >&6;}
1866     sed 's/^/| /' "$ac_site_file" >&5
1867     . "$ac_site_file"
1868   fi
1869 done
1870
1871 if test -r "$cache_file"; then
1872   # Some versions of bash will fail to source /dev/null (special
1873   # files actually), so we avoid doing that.
1874   if test -f "$cache_file"; then
1875     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1876 echo "$as_me: loading cache $cache_file" >&6;}
1877     case $cache_file in
1878       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1879       *)                      . "./$cache_file";;
1880     esac
1881   fi
1882 else
1883   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1884 echo "$as_me: creating cache $cache_file" >&6;}
1885   >$cache_file
1886 fi
1887
1888 # Check that the precious variables saved in the cache have kept the same
1889 # value.
1890 ac_cache_corrupted=false
1891 for ac_var in $ac_precious_vars; do
1892   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1893   eval ac_new_set=\$ac_env_${ac_var}_set
1894   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1895   eval ac_new_val=\$ac_env_${ac_var}_value
1896   case $ac_old_set,$ac_new_set in
1897     set,)
1898       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1899 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1900       ac_cache_corrupted=: ;;
1901     ,set)
1902       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1903 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1904       ac_cache_corrupted=: ;;
1905     ,);;
1906     *)
1907       if test "x$ac_old_val" != "x$ac_new_val"; then
1908         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1909 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1910         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1911 echo "$as_me:   former value:  $ac_old_val" >&2;}
1912         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1913 echo "$as_me:   current value: $ac_new_val" >&2;}
1914         ac_cache_corrupted=:
1915       fi;;
1916   esac
1917   # Pass precious variables to config.status.
1918   if test "$ac_new_set" = set; then
1919     case $ac_new_val in
1920     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1921     *) ac_arg=$ac_var=$ac_new_val ;;
1922     esac
1923     case " $ac_configure_args " in
1924       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1925       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926     esac
1927   fi
1928 done
1929 if $ac_cache_corrupted; then
1930   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1931 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1932   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1933 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961 ac_ext=c
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966
1967
1968 # The argument here is just something that should be in the current directory
1969 # (for sanity checking)
1970
1971 am__api_version='1.10'
1972
1973 ac_aux_dir=
1974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1975   if test -f "$ac_dir/install-sh"; then
1976     ac_aux_dir=$ac_dir
1977     ac_install_sh="$ac_aux_dir/install-sh -c"
1978     break
1979   elif test -f "$ac_dir/install.sh"; then
1980     ac_aux_dir=$ac_dir
1981     ac_install_sh="$ac_aux_dir/install.sh -c"
1982     break
1983   elif test -f "$ac_dir/shtool"; then
1984     ac_aux_dir=$ac_dir
1985     ac_install_sh="$ac_aux_dir/shtool install -c"
1986     break
1987   fi
1988 done
1989 if test -z "$ac_aux_dir"; then
1990   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1991 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1992    { (exit 1); exit 1; }; }
1993 fi
1994
1995 # These three variables are undocumented and unsupported,
1996 # and are intended to be withdrawn in a future Autoconf release.
1997 # They can cause serious problems if a builder's source tree is in a directory
1998 # whose full name contains unusual characters.
1999 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2000 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2001 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2002
2003
2004 # Find a good install program.  We prefer a C program (faster),
2005 # so one script is as good as another.  But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2010 # AIX /bin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2019 if test -z "$INSTALL"; then
2020 if test "${ac_cv_path_install+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026   IFS=$as_save_IFS
2027   test -z "$as_dir" && as_dir=.
2028   # Account for people who put trailing slashes in PATH elements.
2029 case $as_dir/ in
2030   ./ | .// | /cC/* | \
2031   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2032   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2033   /usr/ucb/* ) ;;
2034   *)
2035     # OSF1 and SCO ODT 3.0 have their own names for install.
2036     # Don't use installbsd from OSF since it installs stuff as root
2037     # by default.
2038     for ac_prog in ginstall scoinst install; do
2039       for ac_exec_ext in '' $ac_executable_extensions; do
2040         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2041           if test $ac_prog = install &&
2042             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043             # AIX install.  It has an incompatible calling convention.
2044             :
2045           elif test $ac_prog = install &&
2046             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047             # program-specific install script used by HP pwplus--don't use.
2048             :
2049           else
2050             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2051             break 3
2052           fi
2053         fi
2054       done
2055     done
2056     ;;
2057 esac
2058 done
2059 IFS=$as_save_IFS
2060
2061
2062 fi
2063   if test "${ac_cv_path_install+set}" = set; then
2064     INSTALL=$ac_cv_path_install
2065   else
2066     # As a last resort, use the slow shell script.  Don't cache a
2067     # value for INSTALL within a source directory, because that will
2068     # break other packages using the cache if that directory is
2069     # removed, or if the value is a relative name.
2070     INSTALL=$ac_install_sh
2071   fi
2072 fi
2073 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2074 echo "${ECHO_T}$INSTALL" >&6; }
2075
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077 # It thinks the first close brace ends the variable substitution.
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2079
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2081
2082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2083
2084 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2086 # Just in case
2087 sleep 1
2088 echo timestamp > conftest.file
2089 # Do `set' in a subshell so we don't clobber the current shell's
2090 # arguments.  Must try -L first in case configure is actually a
2091 # symlink; some systems play weird games with the mod time of symlinks
2092 # (eg FreeBSD returns the mod time of the symlink's containing
2093 # directory).
2094 if (
2095    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2096    if test "$*" = "X"; then
2097       # -L didn't work.
2098       set X `ls -t $srcdir/configure conftest.file`
2099    fi
2100    rm -f conftest.file
2101    if test "$*" != "X $srcdir/configure conftest.file" \
2102       && test "$*" != "X conftest.file $srcdir/configure"; then
2103
2104       # If neither matched, then we have a broken ls.  This can happen
2105       # if, for instance, CONFIG_SHELL is bash and it inherits a
2106       # broken ls alias from the environment.  This has actually
2107       # happened.  Such a system could not be considered "sane".
2108       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2109 alias in your environment" >&5
2110 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2111 alias in your environment" >&2;}
2112    { (exit 1); exit 1; }; }
2113    fi
2114
2115    test "$2" = conftest.file
2116    )
2117 then
2118    # Ok.
2119    :
2120 else
2121    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2122 Check your system clock" >&5
2123 echo "$as_me: error: newly created file is older than distributed files!
2124 Check your system clock" >&2;}
2125    { (exit 1); exit 1; }; }
2126 fi
2127 { echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6; }
2129 test "$program_prefix" != NONE &&
2130   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2131 # Use a double $ so make ignores it.
2132 test "$program_suffix" != NONE &&
2133   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2134 # Double any \ or $.  echo might interpret backslashes.
2135 # By default was `s,x,x', remove it if useless.
2136 cat <<\_ACEOF >conftest.sed
2137 s/[\\$]/&&/g;s/;s,x,x,$//
2138 _ACEOF
2139 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2140 rm -f conftest.sed
2141
2142 # expand $ac_aux_dir to an absolute path
2143 am_aux_dir=`cd $ac_aux_dir && pwd`
2144
2145 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2146 # Use eval to expand $SHELL
2147 if eval "$MISSING --run true"; then
2148   am_missing_run="$MISSING --run "
2149 else
2150   am_missing_run=
2151   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2153 fi
2154
2155 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2156 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2157 if test -z "$MKDIR_P"; then
2158   if test "${ac_cv_path_mkdir+set}" = set; then
2159   echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_prog in mkdir gmkdir; do
2167          for ac_exec_ext in '' $ac_executable_extensions; do
2168            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2169            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2170              'mkdir (GNU coreutils) '* | \
2171              'mkdir (coreutils) '* | \
2172              'mkdir (fileutils) '4.1*)
2173                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2174                break 3;;
2175            esac
2176          done
2177        done
2178 done
2179 IFS=$as_save_IFS
2180
2181 fi
2182
2183   if test "${ac_cv_path_mkdir+set}" = set; then
2184     MKDIR_P="$ac_cv_path_mkdir -p"
2185   else
2186     # As a last resort, use the slow shell script.  Don't cache a
2187     # value for MKDIR_P within a source directory, because that will
2188     # break other packages using the cache if that directory is
2189     # removed, or if the value is a relative name.
2190     test -d ./--version && rmdir ./--version
2191     MKDIR_P="$ac_install_sh -d"
2192   fi
2193 fi
2194 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2195 echo "${ECHO_T}$MKDIR_P" >&6; }
2196
2197 mkdir_p="$MKDIR_P"
2198 case $mkdir_p in
2199   [\\/$]* | ?:[\\/]*) ;;
2200   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2201 esac
2202
2203 for ac_prog in gawk mawk nawk awk
2204 do
2205   # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy $ac_prog; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_AWK+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test -n "$AWK"; then
2213   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220   for ac_exec_ext in '' $ac_executable_extensions; do
2221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222     ac_cv_prog_AWK="$ac_prog"
2223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224     break 2
2225   fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 AWK=$ac_cv_prog_AWK
2233 if test -n "$AWK"; then
2234   { echo "$as_me:$LINENO: result: $AWK" >&5
2235 echo "${ECHO_T}$AWK" >&6; }
2236 else
2237   { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241
2242   test -n "$AWK" && break
2243 done
2244
2245 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2249   echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251   cat >conftest.make <<\_ACEOF
2252 SHELL = /bin/sh
2253 all:
2254         @echo '@@@%%%=$(MAKE)=@@@%%%'
2255 _ACEOF
2256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2257 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2258   *@@@%%%=?*=@@@%%%*)
2259     eval ac_cv_prog_make_${ac_make}_set=yes;;
2260   *)
2261     eval ac_cv_prog_make_${ac_make}_set=no;;
2262 esac
2263 rm -f conftest.make
2264 fi
2265 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2266   { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2268   SET_MAKE=
2269 else
2270   { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272   SET_MAKE="MAKE=${MAKE-make}"
2273 fi
2274
2275 rm -rf .tst 2>/dev/null
2276 mkdir .tst 2>/dev/null
2277 if test -d .tst; then
2278   am__leading_dot=.
2279 else
2280   am__leading_dot=_
2281 fi
2282 rmdir .tst 2>/dev/null
2283
2284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2285   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2286   # is not polluted with repeated "-I."
2287   am__isrc=' -I$(srcdir)'
2288   # test to see if srcdir already configured
2289   if test -f $srcdir/config.status; then
2290     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292    { (exit 1); exit 1; }; }
2293   fi
2294 fi
2295
2296 # test whether we have cygpath
2297 if test -z "$CYGPATH_W"; then
2298   if (cygpath --version) >/dev/null 2>/dev/null; then
2299     CYGPATH_W='cygpath -w'
2300   else
2301     CYGPATH_W=echo
2302   fi
2303 fi
2304
2305
2306 # Define the identity of the package.
2307  PACKAGE='glog'
2308  VERSION='0.1.2'
2309
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE "$PACKAGE"
2313 _ACEOF
2314
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define VERSION "$VERSION"
2318 _ACEOF
2319
2320 # Some tools Automake needs.
2321
2322 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2323
2324
2325 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2326
2327
2328 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2329
2330
2331 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2332
2333
2334 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2335
2336 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2337
2338 # Installed binaries are usually stripped using `strip' when the user
2339 # run `make install-strip'.  However `strip' might not be the right
2340 # tool to use in cross-compilation environments, therefore Automake
2341 # will honor the `STRIP' environment variable to overrule this program.
2342 if test "$cross_compiling" != no; then
2343   if test -n "$ac_tool_prefix"; then
2344   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2345 set dummy ${ac_tool_prefix}strip; ac_word=$2
2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2348 if test "${ac_cv_prog_STRIP+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$STRIP"; then
2352   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367 IFS=$as_save_IFS
2368
2369 fi
2370 fi
2371 STRIP=$ac_cv_prog_STRIP
2372 if test -n "$STRIP"; then
2373   { echo "$as_me:$LINENO: result: $STRIP" >&5
2374 echo "${ECHO_T}$STRIP" >&6; }
2375 else
2376   { echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6; }
2378 fi
2379
2380
2381 fi
2382 if test -z "$ac_cv_prog_STRIP"; then
2383   ac_ct_STRIP=$STRIP
2384   # Extract the first word of "strip", so it can be a program name with args.
2385 set dummy strip; ac_word=$2
2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2388 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$ac_ct_STRIP"; then
2392   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2396 do
2397   IFS=$as_save_IFS
2398   test -z "$as_dir" && as_dir=.
2399   for ac_exec_ext in '' $ac_executable_extensions; do
2400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401     ac_cv_prog_ac_ct_STRIP="strip"
2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403     break 2
2404   fi
2405 done
2406 done
2407 IFS=$as_save_IFS
2408
2409 fi
2410 fi
2411 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2412 if test -n "$ac_ct_STRIP"; then
2413   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2414 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2415 else
2416   { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2418 fi
2419
2420   if test "x$ac_ct_STRIP" = x; then
2421     STRIP=":"
2422   else
2423     case $cross_compiling:$ac_tool_warned in
2424 yes:)
2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2426 whose name does not start with the host triplet.  If you think this
2427 configuration is useful to you, please write to autoconf@gnu.org." >&5
2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet.  If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2431 ac_tool_warned=yes ;;
2432 esac
2433     STRIP=$ac_ct_STRIP
2434   fi
2435 else
2436   STRIP="$ac_cv_prog_STRIP"
2437 fi
2438
2439 fi
2440 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2441
2442 # We need awk for the "check" target.  The system "awk" is bad on
2443 # some platforms.
2444 # Always define AMTAR for backward compatibility.
2445
2446 AMTAR=${AMTAR-"${am_missing_run}tar"}
2447
2448 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2449
2450
2451
2452
2453
2454 ac_config_headers="$ac_config_headers src/config.h"
2455
2456
2457 # Checks for programs.
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 if test -n "$ac_tool_prefix"; then
2464   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468 if test "${ac_cv_prog_CC+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test -n "$CC"; then
2472   ac_cv_prog_CC="$CC" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479   for ac_exec_ext in '' $ac_executable_extensions; do
2480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486 done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 CC=$ac_cv_prog_CC
2492 if test -n "$CC"; then
2493   { echo "$as_me:$LINENO: result: $CC" >&5
2494 echo "${ECHO_T}$CC" >&6; }
2495 else
2496   { echo "$as_me:$LINENO: result: no" >&5
2497 echo "${ECHO_T}no" >&6; }
2498 fi
2499
2500
2501 fi
2502 if test -z "$ac_cv_prog_CC"; then
2503   ac_ct_CC=$CC
2504   # Extract the first word of "gcc", so it can be a program name with args.
2505 set dummy gcc; ac_word=$2
2506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   if test -n "$ac_ct_CC"; then
2512   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH
2516 do
2517   IFS=$as_save_IFS
2518   test -z "$as_dir" && as_dir=.
2519   for ac_exec_ext in '' $ac_executable_extensions; do
2520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2521     ac_cv_prog_ac_ct_CC="gcc"
2522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523     break 2
2524   fi
2525 done
2526 done
2527 IFS=$as_save_IFS
2528
2529 fi
2530 fi
2531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2532 if test -n "$ac_ct_CC"; then
2533   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2534 echo "${ECHO_T}$ac_ct_CC" >&6; }
2535 else
2536   { echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6; }
2538 fi
2539
2540   if test "x$ac_ct_CC" = x; then
2541     CC=""
2542   else
2543     case $cross_compiling:$ac_tool_warned in
2544 yes:)
2545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2546 whose name does not start with the host triplet.  If you think this
2547 configuration is useful to you, please write to autoconf@gnu.org." >&5
2548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2549 whose name does not start with the host triplet.  If you think this
2550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2551 ac_tool_warned=yes ;;
2552 esac
2553     CC=$ac_ct_CC
2554   fi
2555 else
2556   CC="$ac_cv_prog_CC"
2557 fi
2558
2559 if test -z "$CC"; then
2560           if test -n "$ac_tool_prefix"; then
2561     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2562 set dummy ${ac_tool_prefix}cc; ac_word=$2
2563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_CC+set}" = set; then
2566   echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568   if test -n "$CC"; then
2569   ac_cv_prog_CC="$CC" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574   IFS=$as_save_IFS
2575   test -z "$as_dir" && as_dir=.
2576   for ac_exec_ext in '' $ac_executable_extensions; do
2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2578     ac_cv_prog_CC="${ac_tool_prefix}cc"
2579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580     break 2
2581   fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 CC=$ac_cv_prog_CC
2589 if test -n "$CC"; then
2590   { echo "$as_me:$LINENO: result: $CC" >&5
2591 echo "${ECHO_T}$CC" >&6; }
2592 else
2593   { echo "$as_me:$LINENO: result: no" >&5
2594 echo "${ECHO_T}no" >&6; }
2595 fi
2596
2597
2598   fi
2599 fi
2600 if test -z "$CC"; then
2601   # Extract the first word of "cc", so it can be a program name with args.
2602 set dummy cc; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$CC"; then
2609   ac_cv_prog_CC="$CC" # Let the user override the test.
2610 else
2611   ac_prog_rejected=no
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2620        ac_prog_rejected=yes
2621        continue
2622      fi
2623     ac_cv_prog_CC="cc"
2624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 if test $ac_prog_rejected = yes; then
2632   # We found a bogon in the path, so make sure we never use it.
2633   set dummy $ac_cv_prog_CC
2634   shift
2635   if test $# != 0; then
2636     # We chose a different compiler from the bogus one.
2637     # However, it has the same basename, so the bogon will be chosen
2638     # first if we set CC to just the basename; use the full file name.
2639     shift
2640     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2641   fi
2642 fi
2643 fi
2644 fi
2645 CC=$ac_cv_prog_CC
2646 if test -n "$CC"; then
2647   { echo "$as_me:$LINENO: result: $CC" >&5
2648 echo "${ECHO_T}$CC" >&6; }
2649 else
2650   { echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6; }
2652 fi
2653
2654
2655 fi
2656 if test -z "$CC"; then
2657   if test -n "$ac_tool_prefix"; then
2658   for ac_prog in cl.exe
2659   do
2660     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2664 if test "${ac_cv_prog_CC+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   if test -n "$CC"; then
2668   ac_cv_prog_CC="$CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673   IFS=$as_save_IFS
2674   test -z "$as_dir" && as_dir=.
2675   for ac_exec_ext in '' $ac_executable_extensions; do
2676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2677     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679     break 2
2680   fi
2681 done
2682 done
2683 IFS=$as_save_IFS
2684
2685 fi
2686 fi
2687 CC=$ac_cv_prog_CC
2688 if test -n "$CC"; then
2689   { echo "$as_me:$LINENO: result: $CC" >&5
2690 echo "${ECHO_T}$CC" >&6; }
2691 else
2692   { echo "$as_me:$LINENO: result: no" >&5
2693 echo "${ECHO_T}no" >&6; }
2694 fi
2695
2696
2697     test -n "$CC" && break
2698   done
2699 fi
2700 if test -z "$CC"; then
2701   ac_ct_CC=$CC
2702   for ac_prog in cl.exe
2703 do
2704   # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   if test -n "$ac_ct_CC"; then
2712   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719   for ac_exec_ext in '' $ac_executable_extensions; do
2720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721     ac_cv_prog_ac_ct_CC="$ac_prog"
2722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732 if test -n "$ac_ct_CC"; then
2733   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2734 echo "${ECHO_T}$ac_ct_CC" >&6; }
2735 else
2736   { echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6; }
2738 fi
2739
2740
2741   test -n "$ac_ct_CC" && break
2742 done
2743
2744   if test "x$ac_ct_CC" = x; then
2745     CC=""
2746   else
2747     case $cross_compiling:$ac_tool_warned in
2748 yes:)
2749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2750 whose name does not start with the host triplet.  If you think this
2751 configuration is useful to you, please write to autoconf@gnu.org." >&5
2752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet.  If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2755 ac_tool_warned=yes ;;
2756 esac
2757     CC=$ac_ct_CC
2758   fi
2759 fi
2760
2761 fi
2762
2763
2764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2765 See \`config.log' for more details." >&5
2766 echo "$as_me: error: no acceptable C compiler found in \$PATH
2767 See \`config.log' for more details." >&2;}
2768    { (exit 1); exit 1; }; }
2769
2770 # Provide some information about the compiler.
2771 echo "$as_me:$LINENO: checking for C compiler version" >&5
2772 ac_compiler=`set X $ac_compile; echo $2`
2773 { (ac_try="$ac_compiler --version >&5"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_compiler --version >&5") 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }
2783 { (ac_try="$ac_compiler -v >&5"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_compiler -v >&5") 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }
2793 { (ac_try="$ac_compiler -V >&5"
2794 case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_compiler -V >&5") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }
2803
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h.  */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h.  */
2810
2811 int
2812 main ()
2813 {
2814
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 ac_clean_files_save=$ac_clean_files
2820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2821 # Try to create an executable without -o first, disregard a.out.
2822 # It will help us diagnose broken compilers, and finding out an intuition
2823 # of exeext.
2824 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2825 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2827 #
2828 # List of possible output files, starting from the most likely.
2829 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2830 # only as a last resort.  b.out is created by i960 compilers.
2831 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2832 #
2833 # The IRIX 6 linker writes into existing files which may not be
2834 # executable, retaining their permissions.  Remove them first so a
2835 # subsequent execution test works.
2836 ac_rmfiles=
2837 for ac_file in $ac_files
2838 do
2839   case $ac_file in
2840     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2841     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2842   esac
2843 done
2844 rm -f $ac_rmfiles
2845
2846 if { (ac_try="$ac_link_default"
2847 case "(($ac_try" in
2848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849   *) ac_try_echo=$ac_try;;
2850 esac
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852   (eval "$ac_link_default") 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; then
2856   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2857 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2858 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2859 # so that the user can short-circuit this test for compilers unknown to
2860 # Autoconf.
2861 for ac_file in $ac_files ''
2862 do
2863   test -f "$ac_file" || continue
2864   case $ac_file in
2865     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2866         ;;
2867     [ab].out )
2868         # We found the default executable, but exeext='' is most
2869         # certainly right.
2870         break;;
2871     *.* )
2872         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2873         then :; else
2874            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2875         fi
2876         # We set ac_cv_exeext here because the later test for it is not
2877         # safe: cross compilers may not add the suffix if given an `-o'
2878         # argument, so we may need to know it at that point already.
2879         # Even if this section looks crufty: it has the advantage of
2880         # actually working.
2881         break;;
2882     * )
2883         break;;
2884   esac
2885 done
2886 test "$ac_cv_exeext" = no && ac_cv_exeext=
2887
2888 else
2889   ac_file=''
2890 fi
2891
2892 { echo "$as_me:$LINENO: result: $ac_file" >&5
2893 echo "${ECHO_T}$ac_file" >&6; }
2894 if test -z "$ac_file"; then
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2899 See \`config.log' for more details." >&5
2900 echo "$as_me: error: C compiler cannot create executables
2901 See \`config.log' for more details." >&2;}
2902    { (exit 77); exit 77; }; }
2903 fi
2904
2905 ac_exeext=$ac_cv_exeext
2906
2907 # Check that the compiler produces executables we can run.  If not, either
2908 # the compiler is broken, or we cross compile.
2909 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2910 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2911 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2912 # If not cross compiling, check that we can run a simple program.
2913 if test "$cross_compiling" != yes; then
2914   if { ac_try='./$ac_file'
2915   { (case "(($ac_try" in
2916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917   *) ac_try_echo=$ac_try;;
2918 esac
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920   (eval "$ac_try") 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); }; }; then
2924     cross_compiling=no
2925   else
2926     if test "$cross_compiling" = maybe; then
2927         cross_compiling=yes
2928     else
2929         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2930 If you meant to cross compile, use \`--host'.
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: cannot run C compiled programs.
2933 If you meant to cross compile, use \`--host'.
2934 See \`config.log' for more details." >&2;}
2935    { (exit 1); exit 1; }; }
2936     fi
2937   fi
2938 fi
2939 { echo "$as_me:$LINENO: result: yes" >&5
2940 echo "${ECHO_T}yes" >&6; }
2941
2942 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2943 ac_clean_files=$ac_clean_files_save
2944 # Check that the compiler produces executables we can run.  If not, either
2945 # the compiler is broken, or we cross compile.
2946 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2947 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2948 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2949 echo "${ECHO_T}$cross_compiling" >&6; }
2950
2951 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2952 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2953 if { (ac_try="$ac_link"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959   (eval "$ac_link") 2>&5
2960   ac_status=$?
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); }; then
2963   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2964 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2965 # work properly (i.e., refer to `conftest.exe'), while it won't with
2966 # `rm'.
2967 for ac_file in conftest.exe conftest conftest.*; do
2968   test -f "$ac_file" || continue
2969   case $ac_file in
2970     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2971     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2972           break;;
2973     * ) break;;
2974   esac
2975 done
2976 else
2977   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details." >&5
2979 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2980 See \`config.log' for more details." >&2;}
2981    { (exit 1); exit 1; }; }
2982 fi
2983
2984 rm -f conftest$ac_cv_exeext
2985 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2986 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2987
2988 rm -f conftest.$ac_ext
2989 EXEEXT=$ac_cv_exeext
2990 ac_exeext=$EXEEXT
2991 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2992 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2993 if test "${ac_cv_objext+set}" = set; then
2994   echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996   cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h.  */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h.  */
3002
3003 int
3004 main ()
3005 {
3006
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.o conftest.obj
3012 if { (ac_try="$ac_compile"
3013 case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018   (eval "$ac_compile") 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }; then
3022   for ac_file in conftest.o conftest.obj conftest.*; do
3023   test -f "$ac_file" || continue;
3024   case $ac_file in
3025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3026     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3027        break;;
3028   esac
3029 done
3030 else
3031   echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3033
3034 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3035 See \`config.log' for more details." >&5
3036 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3037 See \`config.log' for more details." >&2;}
3038    { (exit 1); exit 1; }; }
3039 fi
3040
3041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3042 fi
3043 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3044 echo "${ECHO_T}$ac_cv_objext" >&6; }
3045 OBJEXT=$ac_cv_objext
3046 ac_objext=$OBJEXT
3047 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3048 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3049 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3050   echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052   cat >conftest.$ac_ext <<_ACEOF
3053 /* confdefs.h.  */
3054 _ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h.  */
3058
3059 int
3060 main ()
3061 {
3062 #ifndef __GNUC__
3063        choke me
3064 #endif
3065
3066   ;
3067   return 0;
3068 }
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3072 case "(($ac_try" in
3073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074   *) ac_try_echo=$ac_try;;
3075 esac
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077   (eval "$ac_compile") 2>conftest.er1
3078   ac_status=$?
3079   grep -v '^ *+' conftest.er1 >conftest.err
3080   rm -f conftest.er1
3081   cat conftest.err >&5
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); } && {
3084          test -z "$ac_c_werror_flag" ||
3085          test ! -s conftest.err
3086        } && test -s conftest.$ac_objext; then
3087   ac_compiler_gnu=yes
3088 else
3089   echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092         ac_compiler_gnu=no
3093 fi
3094
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3097
3098 fi
3099 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3100 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3101 GCC=`test $ac_compiler_gnu = yes && echo yes`
3102 ac_test_CFLAGS=${CFLAGS+set}
3103 ac_save_CFLAGS=$CFLAGS
3104 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3105 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3106 if test "${ac_cv_prog_cc_g+set}" = set; then
3107   echo $ECHO_N "(cached) $ECHO_C" >&6
3108 else
3109   ac_save_c_werror_flag=$ac_c_werror_flag
3110    ac_c_werror_flag=yes
3111    ac_cv_prog_cc_g=no
3112    CFLAGS="-g"
3113    cat >conftest.$ac_ext <<_ACEOF
3114 /* confdefs.h.  */
3115 _ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h.  */
3119
3120 int
3121 main ()
3122 {
3123
3124   ;
3125   return 0;
3126 }
3127 _ACEOF
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_compile") 2>conftest.er1
3136   ac_status=$?
3137   grep -v '^ *+' conftest.er1 >conftest.err
3138   rm -f conftest.er1
3139   cat conftest.err >&5
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); } && {
3142          test -z "$ac_c_werror_flag" ||
3143          test ! -s conftest.err
3144        } && test -s conftest.$ac_objext; then
3145   ac_cv_prog_cc_g=yes
3146 else
3147   echo "$as_me: failed program was:" >&5
3148 sed 's/^/| /' conftest.$ac_ext >&5
3149
3150         CFLAGS=""
3151       cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h.  */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h.  */
3157
3158 int
3159 main ()
3160 {
3161
3162   ;
3163   return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.$ac_objext
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170   *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173   (eval "$ac_compile") 2>conftest.er1
3174   ac_status=$?
3175   grep -v '^ *+' conftest.er1 >conftest.err
3176   rm -f conftest.er1
3177   cat conftest.err >&5
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); } && {
3180          test -z "$ac_c_werror_flag" ||
3181          test ! -s conftest.err
3182        } && test -s conftest.$ac_objext; then
3183   :
3184 else
3185   echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188         ac_c_werror_flag=$ac_save_c_werror_flag
3189          CFLAGS="-g"
3190          cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h.  */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h.  */
3196
3197 int
3198 main ()
3199 {
3200
3201   ;
3202   return 0;
3203 }
3204 _ACEOF
3205 rm -f conftest.$ac_objext
3206 if { (ac_try="$ac_compile"
3207 case "(($ac_try" in
3208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209   *) ac_try_echo=$ac_try;;
3210 esac
3211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212   (eval "$ac_compile") 2>conftest.er1
3213   ac_status=$?
3214   grep -v '^ *+' conftest.er1 >conftest.err
3215   rm -f conftest.er1
3216   cat conftest.err >&5
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); } && {
3219          test -z "$ac_c_werror_flag" ||
3220          test ! -s conftest.err
3221        } && test -s conftest.$ac_objext; then
3222   ac_cv_prog_cc_g=yes
3223 else
3224   echo "$as_me: failed program was:" >&5
3225 sed 's/^/| /' conftest.$ac_ext >&5
3226
3227
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 fi
3235
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237    ac_c_werror_flag=$ac_save_c_werror_flag
3238 fi
3239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3240 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3241 if test "$ac_test_CFLAGS" = set; then
3242   CFLAGS=$ac_save_CFLAGS
3243 elif test $ac_cv_prog_cc_g = yes; then
3244   if test "$GCC" = yes; then
3245     CFLAGS="-g -O2"
3246   else
3247     CFLAGS="-g"
3248   fi
3249 else
3250   if test "$GCC" = yes; then
3251     CFLAGS="-O2"
3252   else
3253     CFLAGS=
3254   fi
3255 fi
3256 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3257 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3258 if test "${ac_cv_prog_cc_c89+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   ac_cv_prog_cc_c89=no
3262 ac_save_CC=$CC
3263 cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269 #include <stdarg.h>
3270 #include <stdio.h>
3271 #include <sys/types.h>
3272 #include <sys/stat.h>
3273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3274 struct buf { int x; };
3275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276 static char *e (p, i)
3277      char **p;
3278      int i;
3279 {
3280   return p[i];
3281 }
3282 static char *f (char * (*g) (char **, int), char **p, ...)
3283 {
3284   char *s;
3285   va_list v;
3286   va_start (v,p);
3287   s = g (p, va_arg (v,int));
3288   va_end (v);
3289   return s;
3290 }
3291
3292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3293    function prototypes and stuff, but not '\xHH' hex character constants.
3294    These don't provoke an error unfortunately, instead are silently treated
3295    as 'x'.  The following induces an error, until -std is added to get
3296    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3297    array size at least.  It's necessary to write '\x00'==0 to get something
3298    that's true only with -std.  */
3299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300
3301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3302    inside strings and character constants.  */
3303 #define FOO(x) 'x'
3304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305
3306 int test (int i, double x);
3307 struct s1 {int (*f) (int a);};
3308 struct s2 {int (*f) (double a);};
3309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310 int argc;
3311 char **argv;
3312 int
3313 main ()
3314 {
3315 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3316   ;
3317   return 0;
3318 }
3319 _ACEOF
3320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3321         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322 do
3323   CC="$ac_save_CC $ac_arg"
3324   rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3326 case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331   (eval "$ac_compile") 2>conftest.er1
3332   ac_status=$?
3333   grep -v '^ *+' conftest.er1 >conftest.err
3334   rm -f conftest.er1
3335   cat conftest.err >&5
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } && {
3338          test -z "$ac_c_werror_flag" ||
3339          test ! -s conftest.err
3340        } && test -s conftest.$ac_objext; then
3341   ac_cv_prog_cc_c89=$ac_arg
3342 else
3343   echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346
3347 fi
3348
3349 rm -f core conftest.err conftest.$ac_objext
3350   test "x$ac_cv_prog_cc_c89" != "xno" && break
3351 done
3352 rm -f conftest.$ac_ext
3353 CC=$ac_save_CC
3354
3355 fi
3356 # AC_CACHE_VAL
3357 case "x$ac_cv_prog_cc_c89" in
3358   x)
3359     { echo "$as_me:$LINENO: result: none needed" >&5
3360 echo "${ECHO_T}none needed" >&6; } ;;
3361   xno)
3362     { echo "$as_me:$LINENO: result: unsupported" >&5
3363 echo "${ECHO_T}unsupported" >&6; } ;;
3364   *)
3365     CC="$CC $ac_cv_prog_cc_c89"
3366     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3367 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3368 esac
3369
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 DEPDIR="${am__leading_dot}deps"
3377
3378 ac_config_commands="$ac_config_commands depfiles"
3379
3380
3381 am_make=${MAKE-make}
3382 cat > confinc << 'END'
3383 am__doit:
3384         @echo done
3385 .PHONY: am__doit
3386 END
3387 # If we don't find an include directive, just comment out the code.
3388 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3389 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3390 am__include="#"
3391 am__quote=
3392 _am_result=none
3393 # First try GNU make style include.
3394 echo "include confinc" > confmf
3395 # We grep out `Entering directory' and `Leaving directory'
3396 # messages which can occur if `w' ends up in MAKEFLAGS.
3397 # In particular we don't look at `^make:' because GNU make might
3398 # be invoked under some other name (usually "gmake"), in which
3399 # case it prints its new name instead of `make'.
3400 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3401    am__include=include
3402    am__quote=
3403    _am_result=GNU
3404 fi
3405 # Now try BSD make style include.
3406 if test "$am__include" = "#"; then
3407    echo '.include "confinc"' > confmf
3408    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3409       am__include=.include
3410       am__quote="\""
3411       _am_result=BSD
3412    fi
3413 fi
3414
3415
3416 { echo "$as_me:$LINENO: result: $_am_result" >&5
3417 echo "${ECHO_T}$_am_result" >&6; }
3418 rm -f confinc confmf
3419
3420 # Check whether --enable-dependency-tracking was given.
3421 if test "${enable_dependency_tracking+set}" = set; then
3422   enableval=$enable_dependency_tracking;
3423 fi
3424
3425 if test "x$enable_dependency_tracking" != xno; then
3426   am_depcomp="$ac_aux_dir/depcomp"
3427   AMDEPBACKSLASH='\'
3428 fi
3429  if test "x$enable_dependency_tracking" != xno; then
3430   AMDEP_TRUE=
3431   AMDEP_FALSE='#'
3432 else
3433   AMDEP_TRUE='#'
3434   AMDEP_FALSE=
3435 fi
3436
3437
3438
3439 depcc="$CC"   am_compiler_list=
3440
3441 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3442 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3443 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3447   # We make a subdir and do the tests there.  Otherwise we can end up
3448   # making bogus files that we don't know about and never remove.  For
3449   # instance it was reported that on HP-UX the gcc test will end up
3450   # making a dummy file named `D' -- because `-MD' means `put the output
3451   # in D'.
3452   mkdir conftest.dir
3453   # Copy depcomp to subdir because otherwise we won't find it if we're
3454   # using a relative directory.
3455   cp "$am_depcomp" conftest.dir
3456   cd conftest.dir
3457   # We will build objects and dependencies in a subdirectory because
3458   # it helps to detect inapplicable dependency modes.  For instance
3459   # both Tru64's cc and ICC support -MD to output dependencies as a
3460   # side effect of compilation, but ICC will put the dependencies in
3461   # the current directory while Tru64 will put them in the object
3462   # directory.
3463   mkdir sub
3464
3465   am_cv_CC_dependencies_compiler_type=none
3466   if test "$am_compiler_list" = ""; then
3467      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3468   fi
3469   for depmode in $am_compiler_list; do
3470     # Setup a source with many dependencies, because some compilers
3471     # like to wrap large dependency lists on column 80 (with \), and
3472     # we should not choose a depcomp mode which is confused by this.
3473     #
3474     # We need to recreate these files for each test, as the compiler may
3475     # overwrite some of them when testing with obscure command lines.
3476     # This happens at least with the AIX C compiler.
3477     : > sub/conftest.c
3478     for i in 1 2 3 4 5 6; do
3479       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3480       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3481       # Solaris 8's {/usr,}/bin/sh.
3482       touch sub/conftst$i.h
3483     done
3484     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3485
3486     case $depmode in
3487     nosideeffect)
3488       # after this tag, mechanisms are not by side-effect, so they'll
3489       # only be used when explicitly requested
3490       if test "x$enable_dependency_tracking" = xyes; then
3491         continue
3492       else
3493         break
3494       fi
3495       ;;
3496     none) break ;;
3497     esac
3498     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3499     # mode.  It turns out that the SunPro C++ compiler does not properly
3500     # handle `-M -o', and we need to detect this.
3501     if depmode=$depmode \
3502        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3503        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3504        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3505          >/dev/null 2>conftest.err &&
3506        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3507        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3508        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3509        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3510       # icc doesn't choke on unknown options, it will just issue warnings
3511       # or remarks (even with -Werror).  So we grep stderr for any message
3512       # that says an option was ignored or not supported.
3513       # When given -MP, icc 7.0 and 7.1 complain thusly:
3514       #   icc: Command line warning: ignoring option '-M'; no argument required
3515       # The diagnosis changed in icc 8.0:
3516       #   icc: Command line remark: option '-MP' not supported
3517       if (grep 'ignoring option' conftest.err ||
3518           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3519         am_cv_CC_dependencies_compiler_type=$depmode
3520         break
3521       fi
3522     fi
3523   done
3524
3525   cd ..
3526   rm -rf conftest.dir
3527 else
3528   am_cv_CC_dependencies_compiler_type=none
3529 fi
3530
3531 fi
3532 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3533 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3534 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3535
3536  if
3537   test "x$enable_dependency_tracking" != xno \
3538   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3539   am__fastdepCC_TRUE=
3540   am__fastdepCC_FALSE='#'
3541 else
3542   am__fastdepCC_TRUE='#'
3543   am__fastdepCC_FALSE=
3544 fi
3545
3546
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3553 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3554 # On Suns, sometimes $CPP names a directory.
3555 if test -n "$CPP" && test -d "$CPP"; then
3556   CPP=
3557 fi
3558 if test -z "$CPP"; then
3559   if test "${ac_cv_prog_CPP+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562       # Double quotes because CPP needs to be expanded
3563     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3564     do
3565       ac_preproc_ok=false
3566 for ac_c_preproc_warn_flag in '' yes
3567 do
3568   # Use a header file that comes with gcc, so configuring glibc
3569   # with a fresh cross-compiler works.
3570   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571   # <limits.h> exists even on freestanding compilers.
3572   # On the NeXT, cc -E runs the code through the compiler's parser,
3573   # not just through cpp. "Syntax error" is here to catch this case.
3574   cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h.  */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h.  */
3580 #ifdef __STDC__
3581 # include <limits.h>
3582 #else
3583 # include <assert.h>
3584 #endif
3585                      Syntax error
3586 _ACEOF
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } >/dev/null && {
3600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3601          test ! -s conftest.err
3602        }; then
3603   :
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608   # Broken: fails on valid input.
3609 continue
3610 fi
3611
3612 rm -f conftest.err conftest.$ac_ext
3613
3614   # OK, works on sane cases.  Now check whether nonexistent headers
3615   # can be detected and how.
3616   cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h.  */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h.  */
3622 #include <ac_nonexistent.h>
3623 _ACEOF
3624 if { (ac_try="$ac_cpp conftest.$ac_ext"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3631   ac_status=$?
3632   grep -v '^ *+' conftest.er1 >conftest.err
3633   rm -f conftest.er1
3634   cat conftest.err >&5
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); } >/dev/null && {
3637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3638          test ! -s conftest.err
3639        }; then
3640   # Broken: success on invalid input.
3641 continue
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646   # Passes both tests.
3647 ac_preproc_ok=:
3648 break
3649 fi
3650
3651 rm -f conftest.err conftest.$ac_ext
3652
3653 done
3654 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3655 rm -f conftest.err conftest.$ac_ext
3656 if $ac_preproc_ok; then
3657   break
3658 fi
3659
3660     done
3661     ac_cv_prog_CPP=$CPP
3662
3663 fi
3664   CPP=$ac_cv_prog_CPP
3665 else
3666   ac_cv_prog_CPP=$CPP
3667 fi
3668 { echo "$as_me:$LINENO: result: $CPP" >&5
3669 echo "${ECHO_T}$CPP" >&6; }
3670 ac_preproc_ok=false
3671 for ac_c_preproc_warn_flag in '' yes
3672 do
3673   # Use a header file that comes with gcc, so configuring glibc
3674   # with a fresh cross-compiler works.
3675   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3676   # <limits.h> exists even on freestanding compilers.
3677   # On the NeXT, cc -E runs the code through the compiler's parser,
3678   # not just through cpp. "Syntax error" is here to catch this case.
3679   cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h.  */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h.  */
3685 #ifdef __STDC__
3686 # include <limits.h>
3687 #else
3688 # include <assert.h>
3689 #endif
3690                      Syntax error
3691 _ACEOF
3692 if { (ac_try="$ac_cpp conftest.$ac_ext"
3693 case "(($ac_try" in
3694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695   *) ac_try_echo=$ac_try;;
3696 esac
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3699   ac_status=$?
3700   grep -v '^ *+' conftest.er1 >conftest.err
3701   rm -f conftest.er1
3702   cat conftest.err >&5
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); } >/dev/null && {
3705          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3706          test ! -s conftest.err
3707        }; then
3708   :
3709 else
3710   echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.$ac_ext >&5
3712
3713   # Broken: fails on valid input.
3714 continue
3715 fi
3716
3717 rm -f conftest.err conftest.$ac_ext
3718
3719   # OK, works on sane cases.  Now check whether nonexistent headers
3720   # can be detected and how.
3721   cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h.  */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h.  */
3727 #include <ac_nonexistent.h>
3728 _ACEOF
3729 if { (ac_try="$ac_cpp conftest.$ac_ext"
3730 case "(($ac_try" in
3731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732   *) ac_try_echo=$ac_try;;
3733 esac
3734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3736   ac_status=$?
3737   grep -v '^ *+' conftest.er1 >conftest.err
3738   rm -f conftest.er1
3739   cat conftest.err >&5
3740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741   (exit $ac_status); } >/dev/null && {
3742          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3743          test ! -s conftest.err
3744        }; then
3745   # Broken: success on invalid input.
3746 continue
3747 else
3748   echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751   # Passes both tests.
3752 ac_preproc_ok=:
3753 break
3754 fi
3755
3756 rm -f conftest.err conftest.$ac_ext
3757
3758 done
3759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3760 rm -f conftest.err conftest.$ac_ext
3761 if $ac_preproc_ok; then
3762   :
3763 else
3764   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3767 See \`config.log' for more details." >&2;}
3768    { (exit 1); exit 1; }; }
3769 fi
3770
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776
3777 ac_ext=cpp
3778 ac_cpp='$CXXCPP $CPPFLAGS'
3779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3782 if test -z "$CXX"; then
3783   if test -n "$CCC"; then
3784     CXX=$CCC
3785   else
3786     if test -n "$ac_tool_prefix"; then
3787   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3788   do
3789     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3793 if test "${ac_cv_prog_CXX+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   if test -n "$CXX"; then
3797   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804   for ac_exec_ext in '' $ac_executable_extensions; do
3805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808     break 2
3809   fi
3810 done
3811 done
3812 IFS=$as_save_IFS
3813
3814 fi
3815 fi
3816 CXX=$ac_cv_prog_CXX
3817 if test -n "$CXX"; then
3818   { echo "$as_me:$LINENO: result: $CXX" >&5
3819 echo "${ECHO_T}$CXX" >&6; }
3820 else
3821   { echo "$as_me:$LINENO: result: no" >&5
3822 echo "${ECHO_T}no" >&6; }
3823 fi
3824
3825
3826     test -n "$CXX" && break
3827   done
3828 fi
3829 if test -z "$CXX"; then
3830   ac_ct_CXX=$CXX
3831   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3832 do
3833   # Extract the first word of "$ac_prog", so it can be a program name with args.
3834 set dummy $ac_prog; ac_word=$2
3835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3837 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3838   echo $ECHO_N "(cached) $ECHO_C" >&6
3839 else
3840   if test -n "$ac_ct_CXX"; then
3841   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846   IFS=$as_save_IFS
3847   test -z "$as_dir" && as_dir=.
3848   for ac_exec_ext in '' $ac_executable_extensions; do
3849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850     ac_cv_prog_ac_ct_CXX="$ac_prog"
3851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3852     break 2
3853   fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3861 if test -n "$ac_ct_CXX"; then
3862   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3863 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3864 else
3865   { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3867 fi
3868
3869
3870   test -n "$ac_ct_CXX" && break
3871 done
3872
3873   if test "x$ac_ct_CXX" = x; then
3874     CXX="g++"
3875   else
3876     case $cross_compiling:$ac_tool_warned in
3877 yes:)
3878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3879 whose name does not start with the host triplet.  If you think this
3880 configuration is useful to you, please write to autoconf@gnu.org." >&5
3881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3882 whose name does not start with the host triplet.  If you think this
3883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3884 ac_tool_warned=yes ;;
3885 esac
3886     CXX=$ac_ct_CXX
3887   fi
3888 fi
3889
3890   fi
3891 fi
3892 # Provide some information about the compiler.
3893 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3894 ac_compiler=`set X $ac_compile; echo $2`
3895 { (ac_try="$ac_compiler --version >&5"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_compiler --version >&5") 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); }
3905 { (ac_try="$ac_compiler -v >&5"
3906 case "(($ac_try" in
3907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908   *) ac_try_echo=$ac_try;;
3909 esac
3910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3911   (eval "$ac_compiler -v >&5") 2>&5
3912   ac_status=$?
3913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914   (exit $ac_status); }
3915 { (ac_try="$ac_compiler -V >&5"
3916 case "(($ac_try" in
3917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918   *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921   (eval "$ac_compiler -V >&5") 2>&5
3922   ac_status=$?
3923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); }
3925
3926 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3927 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3928 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931   cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937
3938 int
3939 main ()
3940 {
3941 #ifndef __GNUC__
3942        choke me
3943 #endif
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3951 case "(($ac_try" in
3952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953   *) ac_try_echo=$ac_try;;
3954 esac
3955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956   (eval "$ac_compile") 2>conftest.er1
3957   ac_status=$?
3958   grep -v '^ *+' conftest.er1 >conftest.err
3959   rm -f conftest.er1
3960   cat conftest.err >&5
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } && {
3963          test -z "$ac_cxx_werror_flag" ||
3964          test ! -s conftest.err
3965        } && test -s conftest.$ac_objext; then
3966   ac_compiler_gnu=yes
3967 else
3968   echo "$as_me: failed program was:" >&5
3969 sed 's/^/| /' conftest.$ac_ext >&5
3970
3971         ac_compiler_gnu=no
3972 fi
3973
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3976
3977 fi
3978 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3979 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3980 GXX=`test $ac_compiler_gnu = yes && echo yes`
3981 ac_test_CXXFLAGS=${CXXFLAGS+set}
3982 ac_save_CXXFLAGS=$CXXFLAGS
3983 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3984 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3985 if test "${ac_cv_prog_cxx_g+set}" = set; then
3986   echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3989    ac_cxx_werror_flag=yes
3990    ac_cv_prog_cxx_g=no
3991    CXXFLAGS="-g"
3992    cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998
3999 int
4000 main ()
4001 {
4002
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (ac_try="$ac_compile"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014   (eval "$ac_compile") 2>conftest.er1
4015   ac_status=$?
4016   grep -v '^ *+' conftest.er1 >conftest.err
4017   rm -f conftest.er1
4018   cat conftest.err >&5
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } && {
4021          test -z "$ac_cxx_werror_flag" ||
4022          test ! -s conftest.err
4023        } && test -s conftest.$ac_objext; then
4024   ac_cv_prog_cxx_g=yes
4025 else
4026   echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029         CXXFLAGS=""
4030       cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036
4037 int
4038 main ()
4039 {
4040
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.$ac_objext
4046 if { (ac_try="$ac_compile"
4047 case "(($ac_try" in
4048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049   *) ac_try_echo=$ac_try;;
4050 esac
4051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052   (eval "$ac_compile") 2>conftest.er1
4053   ac_status=$?
4054   grep -v '^ *+' conftest.er1 >conftest.err
4055   rm -f conftest.er1
4056   cat conftest.err >&5
4057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058   (exit $ac_status); } && {
4059          test -z "$ac_cxx_werror_flag" ||
4060          test ! -s conftest.err
4061        } && test -s conftest.$ac_objext; then
4062   :
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4068          CXXFLAGS="-g"
4069          cat >conftest.$ac_ext <<_ACEOF
4070 /* confdefs.h.  */
4071 _ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h.  */
4075
4076 int
4077 main ()
4078 {
4079
4080   ;
4081   return 0;
4082 }
4083 _ACEOF
4084 rm -f conftest.$ac_objext
4085 if { (ac_try="$ac_compile"
4086 case "(($ac_try" in
4087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088   *) ac_try_echo=$ac_try;;
4089 esac
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091   (eval "$ac_compile") 2>conftest.er1
4092   ac_status=$?
4093   grep -v '^ *+' conftest.er1 >conftest.err
4094   rm -f conftest.er1
4095   cat conftest.err >&5
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } && {
4098          test -z "$ac_cxx_werror_flag" ||
4099          test ! -s conftest.err
4100        } && test -s conftest.$ac_objext; then
4101   ac_cv_prog_cxx_g=yes
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106
4107 fi
4108
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 fi
4111
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 fi
4114
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4117 fi
4118 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4119 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4120 if test "$ac_test_CXXFLAGS" = set; then
4121   CXXFLAGS=$ac_save_CXXFLAGS
4122 elif test $ac_cv_prog_cxx_g = yes; then
4123   if test "$GXX" = yes; then
4124     CXXFLAGS="-g -O2"
4125   else
4126     CXXFLAGS="-g"
4127   fi
4128 else
4129   if test "$GXX" = yes; then
4130     CXXFLAGS="-O2"
4131   else
4132     CXXFLAGS=
4133   fi
4134 fi
4135 ac_ext=c
4136 ac_cpp='$CPP $CPPFLAGS'
4137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
4141 depcc="$CXX"  am_compiler_list=
4142
4143 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4144 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4145 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4149   # We make a subdir and do the tests there.  Otherwise we can end up
4150   # making bogus files that we don't know about and never remove.  For
4151   # instance it was reported that on HP-UX the gcc test will end up
4152   # making a dummy file named `D' -- because `-MD' means `put the output
4153   # in D'.
4154   mkdir conftest.dir
4155   # Copy depcomp to subdir because otherwise we won't find it if we're
4156   # using a relative directory.
4157   cp "$am_depcomp" conftest.dir
4158   cd conftest.dir
4159   # We will build objects and dependencies in a subdirectory because
4160   # it helps to detect inapplicable dependency modes.  For instance
4161   # both Tru64's cc and ICC support -MD to output dependencies as a
4162   # side effect of compilation, but ICC will put the dependencies in
4163   # the current directory while Tru64 will put them in the object
4164   # directory.
4165   mkdir sub
4166
4167   am_cv_CXX_dependencies_compiler_type=none
4168   if test "$am_compiler_list" = ""; then
4169      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4170   fi
4171   for depmode in $am_compiler_list; do
4172     # Setup a source with many dependencies, because some compilers
4173     # like to wrap large dependency lists on column 80 (with \), and
4174     # we should not choose a depcomp mode which is confused by this.
4175     #
4176     # We need to recreate these files for each test, as the compiler may
4177     # overwrite some of them when testing with obscure command lines.
4178     # This happens at least with the AIX C compiler.
4179     : > sub/conftest.c
4180     for i in 1 2 3 4 5 6; do
4181       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4183       # Solaris 8's {/usr,}/bin/sh.
4184       touch sub/conftst$i.h
4185     done
4186     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187
4188     case $depmode in
4189     nosideeffect)
4190       # after this tag, mechanisms are not by side-effect, so they'll
4191       # only be used when explicitly requested
4192       if test "x$enable_dependency_tracking" = xyes; then
4193         continue
4194       else
4195         break
4196       fi
4197       ;;
4198     none) break ;;
4199     esac
4200     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4201     # mode.  It turns out that the SunPro C++ compiler does not properly
4202     # handle `-M -o', and we need to detect this.
4203     if depmode=$depmode \
4204        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4205        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4206        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4207          >/dev/null 2>conftest.err &&
4208        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4209        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4210        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4211        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4212       # icc doesn't choke on unknown options, it will just issue warnings
4213       # or remarks (even with -Werror).  So we grep stderr for any message
4214       # that says an option was ignored or not supported.
4215       # When given -MP, icc 7.0 and 7.1 complain thusly:
4216       #   icc: Command line warning: ignoring option '-M'; no argument required
4217       # The diagnosis changed in icc 8.0:
4218       #   icc: Command line remark: option '-MP' not supported
4219       if (grep 'ignoring option' conftest.err ||
4220           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4221         am_cv_CXX_dependencies_compiler_type=$depmode
4222         break
4223       fi
4224     fi
4225   done
4226
4227   cd ..
4228   rm -rf conftest.dir
4229 else
4230   am_cv_CXX_dependencies_compiler_type=none
4231 fi
4232
4233 fi
4234 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4235 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4236 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4237
4238  if
4239   test "x$enable_dependency_tracking" != xno \
4240   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4241   am__fastdepCXX_TRUE=
4242   am__fastdepCXX_FALSE='#'
4243 else
4244   am__fastdepCXX_TRUE='#'
4245   am__fastdepCXX_FALSE=
4246 fi
4247
4248
4249  if test "$GCC" = yes; then
4250   GCC_TRUE=
4251   GCC_FALSE='#'
4252 else
4253   GCC_TRUE='#'
4254   GCC_FALSE=
4255 fi
4256    # let the Makefile know if we're gcc
4257
4258 # Check whether --enable-shared was given.
4259 if test "${enable_shared+set}" = set; then
4260   enableval=$enable_shared; p=${PACKAGE-default}
4261     case $enableval in
4262     yes) enable_shared=yes ;;
4263     no) enable_shared=no ;;
4264     *)
4265       enable_shared=no
4266       # Look at the argument we got.  We use all the common list separators.
4267       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4268       for pkg in $enableval; do
4269         IFS="$lt_save_ifs"
4270         if test "X$pkg" = "X$p"; then
4271           enable_shared=yes
4272         fi
4273       done
4274       IFS="$lt_save_ifs"
4275       ;;
4276     esac
4277 else
4278   enable_shared=yes
4279 fi
4280
4281
4282 # Check whether --enable-static was given.
4283 if test "${enable_static+set}" = set; then
4284   enableval=$enable_static; p=${PACKAGE-default}
4285     case $enableval in
4286     yes) enable_static=yes ;;
4287     no) enable_static=no ;;
4288     *)
4289      enable_static=no
4290       # Look at the argument we got.  We use all the common list separators.
4291       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4292       for pkg in $enableval; do
4293         IFS="$lt_save_ifs"
4294         if test "X$pkg" = "X$p"; then
4295           enable_static=yes
4296         fi
4297       done
4298       IFS="$lt_save_ifs"
4299       ;;
4300     esac
4301 else
4302   enable_static=yes
4303 fi
4304
4305
4306 # Check whether --enable-fast-install was given.
4307 if test "${enable_fast_install+set}" = set; then
4308   enableval=$enable_fast_install; p=${PACKAGE-default}
4309     case $enableval in
4310     yes) enable_fast_install=yes ;;
4311     no) enable_fast_install=no ;;
4312     *)
4313       enable_fast_install=no
4314       # Look at the argument we got.  We use all the common list separators.
4315       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4316       for pkg in $enableval; do
4317         IFS="$lt_save_ifs"
4318         if test "X$pkg" = "X$p"; then
4319           enable_fast_install=yes
4320         fi
4321       done
4322       IFS="$lt_save_ifs"
4323       ;;
4324     esac
4325 else
4326   enable_fast_install=yes
4327 fi
4328
4329
4330 # Make sure we can run config.sub.
4331 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4332   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4333 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4334    { (exit 1); exit 1; }; }
4335
4336 { echo "$as_me:$LINENO: checking build system type" >&5
4337 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4338 if test "${ac_cv_build+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   ac_build_alias=$build_alias
4342 test "x$ac_build_alias" = x &&
4343   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4344 test "x$ac_build_alias" = x &&
4345   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4347    { (exit 1); exit 1; }; }
4348 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4349   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4350 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4351    { (exit 1); exit 1; }; }
4352
4353 fi
4354 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4355 echo "${ECHO_T}$ac_cv_build" >&6; }
4356 case $ac_cv_build in
4357 *-*-*) ;;
4358 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4359 echo "$as_me: error: invalid value of canonical build" >&2;}
4360    { (exit 1); exit 1; }; };;
4361 esac
4362 build=$ac_cv_build
4363 ac_save_IFS=$IFS; IFS='-'
4364 set x $ac_cv_build
4365 shift
4366 build_cpu=$1
4367 build_vendor=$2
4368 shift; shift
4369 # Remember, the first character of IFS is used to create $*,
4370 # except with old shells:
4371 build_os=$*
4372 IFS=$ac_save_IFS
4373 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4374
4375
4376 { echo "$as_me:$LINENO: checking host system type" >&5
4377 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4378 if test "${ac_cv_host+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   if test "x$host_alias" = x; then
4382   ac_cv_host=$ac_cv_build
4383 else
4384   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4385     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4386 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4387    { (exit 1); exit 1; }; }
4388 fi
4389
4390 fi
4391 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4392 echo "${ECHO_T}$ac_cv_host" >&6; }
4393 case $ac_cv_host in
4394 *-*-*) ;;
4395 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4396 echo "$as_me: error: invalid value of canonical host" >&2;}
4397    { (exit 1); exit 1; }; };;
4398 esac
4399 host=$ac_cv_host
4400 ac_save_IFS=$IFS; IFS='-'
4401 set x $ac_cv_host
4402 shift
4403 host_cpu=$1
4404 host_vendor=$2
4405 shift; shift
4406 # Remember, the first character of IFS is used to create $*,
4407 # except with old shells:
4408 host_os=$*
4409 IFS=$ac_save_IFS
4410 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4411
4412
4413 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4414 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4415 if test "${lt_cv_path_SED+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   # Loop through the user's path and test for sed and gsed.
4419 # Then use that list of sed's as ones to test for truncation.
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423   IFS=$as_save_IFS
4424   test -z "$as_dir" && as_dir=.
4425   for lt_ac_prog in sed gsed; do
4426     for ac_exec_ext in '' $ac_executable_extensions; do
4427       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4428         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4429       fi
4430     done
4431   done
4432 done
4433 IFS=$as_save_IFS
4434 lt_ac_max=0
4435 lt_ac_count=0
4436 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4437 # along with /bin/sed that truncates output.
4438 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4439   test ! -f $lt_ac_sed && continue
4440   cat /dev/null > conftest.in
4441   lt_ac_count=0
4442   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4443   # Check for GNU sed and select it if it is found.
4444   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4445     lt_cv_path_SED=$lt_ac_sed
4446     break
4447   fi
4448   while true; do
4449     cat conftest.in conftest.in >conftest.tmp
4450     mv conftest.tmp conftest.in
4451     cp conftest.in conftest.nl
4452     echo >>conftest.nl
4453     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4454     cmp -s conftest.out conftest.nl || break
4455     # 10000 chars as input seems more than enough
4456     test $lt_ac_count -gt 10 && break
4457     lt_ac_count=`expr $lt_ac_count + 1`
4458     if test $lt_ac_count -gt $lt_ac_max; then
4459       lt_ac_max=$lt_ac_count
4460       lt_cv_path_SED=$lt_ac_sed
4461     fi
4462   done
4463 done
4464
4465 fi
4466
4467 SED=$lt_cv_path_SED
4468
4469 { echo "$as_me:$LINENO: result: $SED" >&5
4470 echo "${ECHO_T}$SED" >&6; }
4471
4472 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4473 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4474 if test "${ac_cv_path_GREP+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   # Extract the first word of "grep ggrep" to use in msg output
4478 if test -z "$GREP"; then
4479 set dummy grep ggrep; ac_prog_name=$2
4480 if test "${ac_cv_path_GREP+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   ac_path_GREP_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487 do
4488   IFS=$as_save_IFS
4489   test -z "$as_dir" && as_dir=.
4490   for ac_prog in grep ggrep; do
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4493     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4494     # Check for GNU ac_path_GREP and select it if it is found.
4495   # Check for GNU $ac_path_GREP
4496 case `"$ac_path_GREP" --version 2>&1` in
4497 *GNU*)
4498   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4499 *)
4500   ac_count=0
4501   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4502   while :
4503   do
4504     cat "conftest.in" "conftest.in" >"conftest.tmp"
4505     mv "conftest.tmp" "conftest.in"
4506     cp "conftest.in" "conftest.nl"
4507     echo 'GREP' >> "conftest.nl"
4508     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510     ac_count=`expr $ac_count + 1`
4511     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4512       # Best one so far, save it but keep looking for a better one
4513       ac_cv_path_GREP="$ac_path_GREP"
4514       ac_path_GREP_max=$ac_count
4515     fi
4516     # 10*(2^10) chars as input seems more than enough
4517     test $ac_count -gt 10 && break
4518   done
4519   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520 esac
4521
4522
4523     $ac_path_GREP_found && break 3
4524   done
4525 done
4526
4527 done
4528 IFS=$as_save_IFS
4529
4530
4531 fi
4532
4533 GREP="$ac_cv_path_GREP"
4534 if test -z "$GREP"; then
4535   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4536 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4537    { (exit 1); exit 1; }; }
4538 fi
4539
4540 else
4541   ac_cv_path_GREP=$GREP
4542 fi
4543
4544
4545 fi
4546 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4547 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4548  GREP="$ac_cv_path_GREP"
4549
4550
4551 { echo "$as_me:$LINENO: checking for egrep" >&5
4552 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4553 if test "${ac_cv_path_EGREP+set}" = set; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557    then ac_cv_path_EGREP="$GREP -E"
4558    else
4559      # Extract the first word of "egrep" to use in msg output
4560 if test -z "$EGREP"; then
4561 set dummy egrep; ac_prog_name=$2
4562 if test "${ac_cv_path_EGREP+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   ac_path_EGREP_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569 do
4570   IFS=$as_save_IFS
4571   test -z "$as_dir" && as_dir=.
4572   for ac_prog in egrep; do
4573   for ac_exec_ext in '' $ac_executable_extensions; do
4574     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4575     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4576     # Check for GNU ac_path_EGREP and select it if it is found.
4577   # Check for GNU $ac_path_EGREP
4578 case `"$ac_path_EGREP" --version 2>&1` in
4579 *GNU*)
4580   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4581 *)
4582   ac_count=0
4583   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4584   while :
4585   do
4586     cat "conftest.in" "conftest.in" >"conftest.tmp"
4587     mv "conftest.tmp" "conftest.in"
4588     cp "conftest.in" "conftest.nl"
4589     echo 'EGREP' >> "conftest.nl"
4590     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592     ac_count=`expr $ac_count + 1`
4593     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4594       # Best one so far, save it but keep looking for a better one
4595       ac_cv_path_EGREP="$ac_path_EGREP"
4596       ac_path_EGREP_max=$ac_count
4597     fi
4598     # 10*(2^10) chars as input seems more than enough
4599     test $ac_count -gt 10 && break
4600   done
4601   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 esac
4603
4604
4605     $ac_path_EGREP_found && break 3
4606   done
4607 done
4608
4609 done
4610 IFS=$as_save_IFS
4611
4612
4613 fi
4614
4615 EGREP="$ac_cv_path_EGREP"
4616 if test -z "$EGREP"; then
4617   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4618 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4619    { (exit 1); exit 1; }; }
4620 fi
4621
4622 else
4623   ac_cv_path_EGREP=$EGREP
4624 fi
4625
4626
4627    fi
4628 fi
4629 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4630 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4631  EGREP="$ac_cv_path_EGREP"
4632
4633
4634
4635 # Check whether --with-gnu-ld was given.
4636 if test "${with_gnu_ld+set}" = set; then
4637   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4638 else
4639   with_gnu_ld=no
4640 fi
4641
4642 ac_prog=ld
4643 if test "$GCC" = yes; then
4644   # Check if gcc -print-prog-name=ld gives a path.
4645   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4646 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4647   case $host in
4648   *-*-mingw*)
4649     # gcc leaves a trailing carriage return which upsets mingw
4650     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4651   *)
4652     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4653   esac
4654   case $ac_prog in
4655     # Accept absolute paths.
4656     [\\/]* | ?:[\\/]*)
4657       re_direlt='/[^/][^/]*/\.\./'
4658       # Canonicalize the pathname of ld
4659       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4660       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4661         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4662       done
4663       test -z "$LD" && LD="$ac_prog"
4664       ;;
4665   "")
4666     # If it fails, then pretend we aren't using GCC.
4667     ac_prog=ld
4668     ;;
4669   *)
4670     # If it is relative, then search for the first ld in PATH.
4671     with_gnu_ld=unknown
4672     ;;
4673   esac
4674 elif test "$with_gnu_ld" = yes; then
4675   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4676 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4677 else
4678   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4679 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4680 fi
4681 if test "${lt_cv_path_LD+set}" = set; then
4682   echo $ECHO_N "(cached) $ECHO_C" >&6
4683 else
4684   if test -z "$LD"; then
4685   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4686   for ac_dir in $PATH; do
4687     IFS="$lt_save_ifs"
4688     test -z "$ac_dir" && ac_dir=.
4689     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4690       lt_cv_path_LD="$ac_dir/$ac_prog"
4691       # Check to see if the program is GNU ld.  I'd rather use --version,
4692       # but apparently some variants of GNU ld only accept -v.
4693       # Break only if it was the GNU/non-GNU ld that we prefer.
4694       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4695       *GNU* | *'with BFD'*)
4696         test "$with_gnu_ld" != no && break
4697         ;;
4698       *)
4699         test "$with_gnu_ld" != yes && break
4700         ;;
4701       esac
4702     fi
4703   done
4704   IFS="$lt_save_ifs"
4705 else
4706   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4707 fi
4708 fi
4709
4710 LD="$lt_cv_path_LD"
4711 if test -n "$LD"; then
4712   { echo "$as_me:$LINENO: result: $LD" >&5
4713 echo "${ECHO_T}$LD" >&6; }
4714 else
4715   { echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6; }
4717 fi
4718 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4719 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4720    { (exit 1); exit 1; }; }
4721 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4722 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4723 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4727 case `$LD -v 2>&1 </dev/null` in
4728 *GNU* | *'with BFD'*)
4729   lt_cv_prog_gnu_ld=yes
4730   ;;
4731 *)
4732   lt_cv_prog_gnu_ld=no
4733   ;;
4734 esac
4735 fi
4736 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4737 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4738 with_gnu_ld=$lt_cv_prog_gnu_ld
4739
4740
4741 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4742 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4743 if test "${lt_cv_ld_reload_flag+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   lt_cv_ld_reload_flag='-r'
4747 fi
4748 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4749 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4750 reload_flag=$lt_cv_ld_reload_flag
4751 case $reload_flag in
4752 "" | " "*) ;;
4753 *) reload_flag=" $reload_flag" ;;
4754 esac
4755 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4756 case $host_os in
4757   darwin*)
4758     if test "$GCC" = yes; then
4759       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4760     else
4761       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4762     fi
4763     ;;
4764 esac
4765
4766 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4767 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4768 if test "${lt_cv_path_NM+set}" = set; then
4769   echo $ECHO_N "(cached) $ECHO_C" >&6
4770 else
4771   if test -n "$NM"; then
4772   # Let the user override the test.
4773   lt_cv_path_NM="$NM"
4774 else
4775   lt_nm_to_check="${ac_tool_prefix}nm"
4776   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4777     lt_nm_to_check="$lt_nm_to_check nm"
4778   fi
4779   for lt_tmp_nm in $lt_nm_to_check; do
4780     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4781     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4782       IFS="$lt_save_ifs"
4783       test -z "$ac_dir" && ac_dir=.
4784       tmp_nm="$ac_dir/$lt_tmp_nm"
4785       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4786         # Check to see if the nm accepts a BSD-compat flag.
4787         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4788         #   nm: unknown option "B" ignored
4789         # Tru64's nm complains that /dev/null is an invalid object file
4790         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4791         */dev/null* | *'Invalid file or object type'*)
4792           lt_cv_path_NM="$tmp_nm -B"
4793           break
4794           ;;
4795         *)
4796           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4797           */dev/null*)
4798             lt_cv_path_NM="$tmp_nm -p"
4799             break
4800             ;;
4801           *)
4802             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4803             continue # so that we can try to find one that supports BSD flags
4804             ;;
4805           esac
4806           ;;
4807         esac
4808       fi
4809     done
4810     IFS="$lt_save_ifs"
4811   done
4812   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4813 fi
4814 fi
4815 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4816 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4817 NM="$lt_cv_path_NM"
4818
4819 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4820 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4821 LN_S=$as_ln_s
4822 if test "$LN_S" = "ln -s"; then
4823   { echo "$as_me:$LINENO: result: yes" >&5
4824 echo "${ECHO_T}yes" >&6; }
4825 else
4826   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4827 echo "${ECHO_T}no, using $LN_S" >&6; }
4828 fi
4829
4830 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4831 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4832 if test "${lt_cv_deplibs_check_method+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   lt_cv_file_magic_cmd='$MAGIC_CMD'
4836 lt_cv_file_magic_test_file=
4837 lt_cv_deplibs_check_method='unknown'
4838 # Need to set the preceding variable on all platforms that support
4839 # interlibrary dependencies.
4840 # 'none' -- dependencies not supported.
4841 # `unknown' -- same as none, but documents that we really don't know.
4842 # 'pass_all' -- all dependencies passed with no checks.
4843 # 'test_compile' -- check by making test program.
4844 # 'file_magic [[regex]]' -- check by looking for files in library path
4845 # which responds to the $file_magic_cmd with a given extended regex.
4846 # If you have `file' or equivalent on your system and you're not sure
4847 # whether `pass_all' will *always* work, you probably want this one.
4848
4849 case $host_os in
4850 aix[4-9]*)
4851   lt_cv_deplibs_check_method=pass_all
4852   ;;
4853
4854 beos*)
4855   lt_cv_deplibs_check_method=pass_all
4856   ;;
4857
4858 bsdi[45]*)
4859   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4860   lt_cv_file_magic_cmd='/usr/bin/file -L'
4861   lt_cv_file_magic_test_file=/shlib/libc.so
4862   ;;
4863
4864 cygwin*)
4865   # func_win32_libid is a shell function defined in ltmain.sh
4866   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4867   lt_cv_file_magic_cmd='func_win32_libid'
4868   ;;
4869
4870 mingw* | pw32*)
4871   # Base MSYS/MinGW do not provide the 'file' command needed by
4872   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4873   # unless we find 'file', for example because we are cross-compiling.
4874   if ( file / ) >/dev/null 2>&1; then
4875     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4876     lt_cv_file_magic_cmd='func_win32_libid'
4877   else
4878     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4879     lt_cv_file_magic_cmd='$OBJDUMP -f'
4880   fi
4881   ;;
4882
4883 darwin* | rhapsody*)
4884   lt_cv_deplibs_check_method=pass_all
4885   ;;
4886
4887 freebsd* | dragonfly*)
4888   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4889     case $host_cpu in
4890     i*86 )
4891       # Not sure whether the presence of OpenBSD here was a mistake.
4892       # Let's accept both of them until this is cleared up.
4893       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4894       lt_cv_file_magic_cmd=/usr/bin/file
4895       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4896       ;;
4897     esac
4898   else
4899     lt_cv_deplibs_check_method=pass_all
4900   fi
4901   ;;
4902
4903 gnu*)
4904   lt_cv_deplibs_check_method=pass_all
4905   ;;
4906
4907 hpux10.20* | hpux11*)
4908   lt_cv_file_magic_cmd=/usr/bin/file
4909   case $host_cpu in
4910   ia64*)
4911     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4912     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4913     ;;
4914   hppa*64*)
4915     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]'
4916     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4917     ;;
4918   *)
4919     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4920     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4921     ;;
4922   esac
4923   ;;
4924
4925 interix[3-9]*)
4926   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4927   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4928   ;;
4929
4930 irix5* | irix6* | nonstopux*)
4931   case $LD in
4932   *-32|*"-32 ") libmagic=32-bit;;
4933   *-n32|*"-n32 ") libmagic=N32;;
4934   *-64|*"-64 ") libmagic=64-bit;;
4935   *) libmagic=never-match;;
4936   esac
4937   lt_cv_deplibs_check_method=pass_all
4938   ;;
4939
4940 # This must be Linux ELF.
4941 linux* | k*bsd*-gnu)
4942   lt_cv_deplibs_check_method=pass_all
4943   ;;
4944
4945 netbsd* | netbsdelf*-gnu)
4946   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4947     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4948   else
4949     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4950   fi
4951   ;;
4952
4953 newos6*)
4954   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4955   lt_cv_file_magic_cmd=/usr/bin/file
4956   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4957   ;;
4958
4959 nto-qnx*)
4960   lt_cv_deplibs_check_method=unknown
4961   ;;
4962
4963 openbsd*)
4964   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4965     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4966   else
4967     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4968   fi
4969   ;;
4970
4971 osf3* | osf4* | osf5*)
4972   lt_cv_deplibs_check_method=pass_all
4973   ;;
4974
4975 rdos*)
4976   lt_cv_deplibs_check_method=pass_all
4977   ;;
4978
4979 solaris*)
4980   lt_cv_deplibs_check_method=pass_all
4981   ;;
4982
4983 sysv4 | sysv4.3*)
4984   case $host_vendor in
4985   motorola)
4986     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]'
4987     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4988     ;;
4989   ncr)
4990     lt_cv_deplibs_check_method=pass_all
4991     ;;
4992   sequent)
4993     lt_cv_file_magic_cmd='/bin/file'
4994     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4995     ;;
4996   sni)
4997     lt_cv_file_magic_cmd='/bin/file'
4998     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4999     lt_cv_file_magic_test_file=/lib/libc.so
5000     ;;
5001   siemens)
5002     lt_cv_deplibs_check_method=pass_all
5003     ;;
5004   pc)
5005     lt_cv_deplibs_check_method=pass_all
5006     ;;
5007   esac
5008   ;;
5009
5010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5011   lt_cv_deplibs_check_method=pass_all
5012   ;;
5013 esac
5014
5015 fi
5016 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5017 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5018 file_magic_cmd=$lt_cv_file_magic_cmd
5019 deplibs_check_method=$lt_cv_deplibs_check_method
5020 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5021
5022
5023
5024
5025 # If no C compiler was specified, use CC.
5026 LTCC=${LTCC-"$CC"}
5027
5028 # If no C compiler flags were specified, use CFLAGS.
5029 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5030
5031 # Allow CC to be a program name with arguments.
5032 compiler=$CC
5033
5034
5035 # Check whether --enable-libtool-lock was given.
5036 if test "${enable_libtool_lock+set}" = set; then
5037   enableval=$enable_libtool_lock;
5038 fi
5039
5040 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5041
5042 # Some flags need to be propagated to the compiler or linker for good
5043 # libtool support.
5044 case $host in
5045 ia64-*-hpux*)
5046   # Find out which ABI we are using.
5047   echo 'int i;' > conftest.$ac_ext
5048   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5049   (eval $ac_compile) 2>&5
5050   ac_status=$?
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); }; then
5053     case `/usr/bin/file conftest.$ac_objext` in
5054     *ELF-32*)
5055       HPUX_IA64_MODE="32"
5056       ;;
5057     *ELF-64*)
5058       HPUX_IA64_MODE="64"
5059       ;;
5060     esac
5061   fi
5062   rm -rf conftest*
5063   ;;
5064 *-*-irix6*)
5065   # Find out which ABI we are using.
5066   echo '#line 5066 "configure"' > conftest.$ac_ext
5067   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5068   (eval $ac_compile) 2>&5
5069   ac_status=$?
5070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071   (exit $ac_status); }; then
5072    if test "$lt_cv_prog_gnu_ld" = yes; then
5073     case `/usr/bin/file conftest.$ac_objext` in
5074     *32-bit*)
5075       LD="${LD-ld} -melf32bsmip"
5076       ;;
5077     *N32*)
5078       LD="${LD-ld} -melf32bmipn32"
5079       ;;
5080     *64-bit*)
5081       LD="${LD-ld} -melf64bmip"
5082       ;;
5083     esac
5084    else
5085     case `/usr/bin/file conftest.$ac_objext` in
5086     *32-bit*)
5087       LD="${LD-ld} -32"
5088       ;;
5089     *N32*)
5090       LD="${LD-ld} -n32"
5091       ;;
5092     *64-bit*)
5093       LD="${LD-ld} -64"
5094       ;;
5095     esac
5096    fi
5097   fi
5098   rm -rf conftest*
5099   ;;
5100
5101 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5102 s390*-*linux*|sparc*-*linux*)
5103   # Find out which ABI we are using.
5104   echo 'int i;' > conftest.$ac_ext
5105   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106   (eval $ac_compile) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); }; then
5110     case `/usr/bin/file conftest.o` in
5111     *32-bit*)
5112       case $host in
5113         x86_64-*kfreebsd*-gnu)
5114           LD="${LD-ld} -m elf_i386_fbsd"
5115           ;;
5116         x86_64-*linux*)
5117           LD="${LD-ld} -m elf_i386"
5118           ;;
5119         ppc64-*linux*|powerpc64-*linux*)
5120           LD="${LD-ld} -m elf32ppclinux"
5121           ;;
5122         s390x-*linux*)
5123           LD="${LD-ld} -m elf_s390"
5124           ;;
5125         sparc64-*linux*)
5126           LD="${LD-ld} -m elf32_sparc"
5127           ;;
5128       esac
5129       ;;
5130     *64-bit*)
5131       case $host in
5132         x86_64-*kfreebsd*-gnu)
5133           LD="${LD-ld} -m elf_x86_64_fbsd"
5134           ;;
5135         x86_64-*linux*)
5136           LD="${LD-ld} -m elf_x86_64"
5137           ;;
5138         ppc*-*linux*|powerpc*-*linux*)
5139           LD="${LD-ld} -m elf64ppc"
5140           ;;
5141         s390*-*linux*)
5142           LD="${LD-ld} -m elf64_s390"
5143           ;;
5144         sparc*-*linux*)
5145           LD="${LD-ld} -m elf64_sparc"
5146           ;;
5147       esac
5148       ;;
5149     esac
5150   fi
5151   rm -rf conftest*
5152   ;;
5153
5154 *-*-sco3.2v5*)
5155   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5156   SAVE_CFLAGS="$CFLAGS"
5157   CFLAGS="$CFLAGS -belf"
5158   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5159 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5160 if test "${lt_cv_cc_needs_belf+set}" = set; then
5161   echo $ECHO_N "(cached) $ECHO_C" >&6
5162 else
5163   ac_ext=c
5164 ac_cpp='$CPP $CPPFLAGS'
5165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168
5169      cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h.  */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h.  */
5175
5176 int
5177 main ()
5178 {
5179
5180   ;
5181   return 0;
5182 }
5183 _ACEOF
5184 rm -f conftest.$ac_objext conftest$ac_exeext
5185 if { (ac_try="$ac_link"
5186 case "(($ac_try" in
5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188   *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191   (eval "$ac_link") 2>conftest.er1
5192   ac_status=$?
5193   grep -v '^ *+' conftest.er1 >conftest.err
5194   rm -f conftest.er1
5195   cat conftest.err >&5
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } && {
5198          test -z "$ac_c_werror_flag" ||
5199          test ! -s conftest.err
5200        } && test -s conftest$ac_exeext &&
5201        $as_test_x conftest$ac_exeext; then
5202   lt_cv_cc_needs_belf=yes
5203 else
5204   echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5206
5207         lt_cv_cc_needs_belf=no
5208 fi
5209
5210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5211       conftest$ac_exeext conftest.$ac_ext
5212      ac_ext=c
5213 ac_cpp='$CPP $CPPFLAGS'
5214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5217
5218 fi
5219 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5220 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5221   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5222     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5223     CFLAGS="$SAVE_CFLAGS"
5224   fi
5225   ;;
5226 sparc*-*solaris*)
5227   # Find out which ABI we are using.
5228   echo 'int i;' > conftest.$ac_ext
5229   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230   (eval $ac_compile) 2>&5
5231   ac_status=$?
5232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233   (exit $ac_status); }; then
5234     case `/usr/bin/file conftest.o` in
5235     *64-bit*)
5236       case $lt_cv_prog_gnu_ld in
5237       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5238       *)
5239         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5240           LD="${LD-ld} -64"
5241         fi
5242         ;;
5243       esac
5244       ;;
5245     esac
5246   fi
5247   rm -rf conftest*
5248   ;;
5249
5250
5251 esac
5252
5253 need_locks="$enable_libtool_lock"
5254
5255
5256
5257 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5258 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5259 if test "${ac_cv_header_stdc+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h.  */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h.  */
5268 #include <stdlib.h>
5269 #include <stdarg.h>
5270 #include <string.h>
5271 #include <float.h>
5272
5273 int
5274 main ()
5275 {
5276
5277   ;
5278   return 0;
5279 }
5280 _ACEOF
5281 rm -f conftest.$ac_objext
5282 if { (ac_try="$ac_compile"
5283 case "(($ac_try" in
5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285   *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288   (eval "$ac_compile") 2>conftest.er1
5289   ac_status=$?
5290   grep -v '^ *+' conftest.er1 >conftest.err
5291   rm -f conftest.er1
5292   cat conftest.err >&5
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } && {
5295          test -z "$ac_c_werror_flag" ||
5296          test ! -s conftest.err
5297        } && test -s conftest.$ac_objext; then
5298   ac_cv_header_stdc=yes
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5302
5303         ac_cv_header_stdc=no
5304 fi
5305
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307
5308 if test $ac_cv_header_stdc = yes; then
5309   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5310   cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316 #include <string.h>
5317
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320   $EGREP "memchr" >/dev/null 2>&1; then
5321   :
5322 else
5323   ac_cv_header_stdc=no
5324 fi
5325 rm -f conftest*
5326
5327 fi
5328
5329 if test $ac_cv_header_stdc = yes; then
5330   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5331   cat >conftest.$ac_ext <<_ACEOF
5332 /* confdefs.h.  */
5333 _ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h.  */
5337 #include <stdlib.h>
5338
5339 _ACEOF
5340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5341   $EGREP "free" >/dev/null 2>&1; then
5342   :
5343 else
5344   ac_cv_header_stdc=no
5345 fi
5346 rm -f conftest*
5347
5348 fi
5349
5350 if test $ac_cv_header_stdc = yes; then
5351   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5352   if test "$cross_compiling" = yes; then
5353   :
5354 else
5355   cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h.  */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h.  */
5361 #include <ctype.h>
5362 #include <stdlib.h>
5363 #if ((' ' & 0x0FF) == 0x020)
5364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5366 #else
5367 # define ISLOWER(c) \
5368                    (('a' <= (c) && (c) <= 'i') \
5369                      || ('j' <= (c) && (c) <= 'r') \
5370                      || ('s' <= (c) && (c) <= 'z'))
5371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5372 #endif
5373
5374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5375 int
5376 main ()
5377 {
5378   int i;
5379   for (i = 0; i < 256; i++)
5380     if (XOR (islower (i), ISLOWER (i))
5381         || toupper (i) != TOUPPER (i))
5382       return 2;
5383   return 0;
5384 }
5385 _ACEOF
5386 rm -f conftest$ac_exeext
5387 if { (ac_try="$ac_link"
5388 case "(($ac_try" in
5389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390   *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393   (eval "$ac_link") 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   :
5407 else
5408   echo "$as_me: program exited with status $ac_status" >&5
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412 ( exit $ac_status )
5413 ac_cv_header_stdc=no
5414 fi
5415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5416 fi
5417
5418
5419 fi
5420 fi
5421 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5422 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5423 if test $ac_cv_header_stdc = yes; then
5424
5425 cat >>confdefs.h <<\_ACEOF
5426 #define STDC_HEADERS 1
5427 _ACEOF
5428
5429 fi
5430
5431 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5442                   inttypes.h stdint.h unistd.h
5443 do
5444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450   cat >conftest.$ac_ext <<_ACEOF
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456 $ac_includes_default
5457
5458 #include <$ac_header>
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5462 case "(($ac_try" in
5463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464   *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467   (eval "$ac_compile") 2>conftest.er1
5468   ac_status=$?
5469   grep -v '^ *+' conftest.er1 >conftest.err
5470   rm -f conftest.er1
5471   cat conftest.err >&5
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); } && {
5474          test -z "$ac_c_werror_flag" ||
5475          test ! -s conftest.err
5476        } && test -s conftest.$ac_objext; then
5477   eval "$as_ac_Header=yes"
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482         eval "$as_ac_Header=no"
5483 fi
5484
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 fi
5487 ac_res=`eval echo '${'$as_ac_Header'}'`
5488                { echo "$as_me:$LINENO: result: $ac_res" >&5
5489 echo "${ECHO_T}$ac_res" >&6; }
5490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5491   cat >>confdefs.h <<_ACEOF
5492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5493 _ACEOF
5494
5495 fi
5496
5497 done
5498
5499
5500
5501 for ac_header in dlfcn.h
5502 do
5503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5505   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508   echo $ECHO_N "(cached) $ECHO_C" >&6
5509 fi
5510 ac_res=`eval echo '${'$as_ac_Header'}'`
5511                { echo "$as_me:$LINENO: result: $ac_res" >&5
5512 echo "${ECHO_T}$ac_res" >&6; }
5513 else
5514   # Is the header compilable?
5515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523 $ac_includes_default
5524 #include <$ac_header>
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530   *) ac_try_echo=$ac_try;;
5531 esac
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533   (eval "$ac_compile") 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } && {
5540          test -z "$ac_c_werror_flag" ||
5541          test ! -s conftest.err
5542        } && test -s conftest.$ac_objext; then
5543   ac_header_compiler=yes
5544 else
5545   echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548         ac_header_compiler=no
5549 fi
5550
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5553 echo "${ECHO_T}$ac_header_compiler" >&6; }
5554
5555 # Is the header present?
5556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h.  */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h.  */
5564 #include <$ac_header>
5565 _ACEOF
5566 if { (ac_try="$ac_cpp conftest.$ac_ext"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5573   ac_status=$?
5574   grep -v '^ *+' conftest.er1 >conftest.err
5575   rm -f conftest.er1
5576   cat conftest.err >&5
5577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578   (exit $ac_status); } >/dev/null && {
5579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5580          test ! -s conftest.err
5581        }; then
5582   ac_header_preproc=yes
5583 else
5584   echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5586
5587   ac_header_preproc=no
5588 fi
5589
5590 rm -f conftest.err conftest.$ac_ext
5591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5592 echo "${ECHO_T}$ac_header_preproc" >&6; }
5593
5594 # So?  What about this header?
5595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5596   yes:no: )
5597     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5599     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5601     ac_header_preproc=yes
5602     ;;
5603   no:yes:* )
5604     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5606     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5607 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5608     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5610     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5611 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5614     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5616     ( cat <<\_ASBOX
5617 ## ------------------------------------ ##
5618 ## Report this to opensource@google.com ##
5619 ## ------------------------------------ ##
5620 _ASBOX
5621      ) | sed "s/^/$as_me: WARNING:     /" >&2
5622     ;;
5623 esac
5624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   eval "$as_ac_Header=\$ac_header_preproc"
5630 fi
5631 ac_res=`eval echo '${'$as_ac_Header'}'`
5632                { echo "$as_me:$LINENO: result: $ac_res" >&5
5633 echo "${ECHO_T}$ac_res" >&6; }
5634
5635 fi
5636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5637   cat >>confdefs.h <<_ACEOF
5638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5639 _ACEOF
5640
5641 fi
5642
5643 done
5644
5645
5646
5647 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5648     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5649     (test "X$CXX" != "Xg++"))) ; then
5650   ac_ext=cpp
5651 ac_cpp='$CXXCPP $CPPFLAGS'
5652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5655 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5656 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5657 if test -z "$CXXCPP"; then
5658   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5659   echo $ECHO_N "(cached) $ECHO_C" >&6
5660 else
5661       # Double quotes because CXXCPP needs to be expanded
5662     for CXXCPP in "$CXX -E" "/lib/cpp"
5663     do
5664       ac_preproc_ok=false
5665 for ac_cxx_preproc_warn_flag in '' yes
5666 do
5667   # Use a header file that comes with gcc, so configuring glibc
5668   # with a fresh cross-compiler works.
5669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5670   # <limits.h> exists even on freestanding compilers.
5671   # On the NeXT, cc -E runs the code through the compiler's parser,
5672   # not just through cpp. "Syntax error" is here to catch this case.
5673   cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h.  */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h.  */
5679 #ifdef __STDC__
5680 # include <limits.h>
5681 #else
5682 # include <assert.h>
5683 #endif
5684                      Syntax error
5685 _ACEOF
5686 if { (ac_try="$ac_cpp conftest.$ac_ext"
5687 case "(($ac_try" in
5688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689   *) ac_try_echo=$ac_try;;
5690 esac
5691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5693   ac_status=$?
5694   grep -v '^ *+' conftest.er1 >conftest.err
5695   rm -f conftest.er1
5696   cat conftest.err >&5
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); } >/dev/null && {
5699          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5700          test ! -s conftest.err
5701        }; then
5702   :
5703 else
5704   echo "$as_me: failed program was:" >&5
5705 sed 's/^/| /' conftest.$ac_ext >&5
5706
5707   # Broken: fails on valid input.
5708 continue
5709 fi
5710
5711 rm -f conftest.err conftest.$ac_ext
5712
5713   # OK, works on sane cases.  Now check whether nonexistent headers
5714   # can be detected and how.
5715   cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h.  */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h.  */
5721 #include <ac_nonexistent.h>
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726   *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } >/dev/null && {
5736          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5737          test ! -s conftest.err
5738        }; then
5739   # Broken: success on invalid input.
5740 continue
5741 else
5742   echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745   # Passes both tests.
5746 ac_preproc_ok=:
5747 break
5748 fi
5749
5750 rm -f conftest.err conftest.$ac_ext
5751
5752 done
5753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5754 rm -f conftest.err conftest.$ac_ext
5755 if $ac_preproc_ok; then
5756   break
5757 fi
5758
5759     done
5760     ac_cv_prog_CXXCPP=$CXXCPP
5761
5762 fi
5763   CXXCPP=$ac_cv_prog_CXXCPP
5764 else
5765   ac_cv_prog_CXXCPP=$CXXCPP
5766 fi
5767 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5768 echo "${ECHO_T}$CXXCPP" >&6; }
5769 ac_preproc_ok=false
5770 for ac_cxx_preproc_warn_flag in '' yes
5771 do
5772   # Use a header file that comes with gcc, so configuring glibc
5773   # with a fresh cross-compiler works.
5774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5775   # <limits.h> exists even on freestanding compilers.
5776   # On the NeXT, cc -E runs the code through the compiler's parser,
5777   # not just through cpp. "Syntax error" is here to catch this case.
5778   cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h.  */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h.  */
5784 #ifdef __STDC__
5785 # include <limits.h>
5786 #else
5787 # include <assert.h>
5788 #endif
5789                      Syntax error
5790 _ACEOF
5791 if { (ac_try="$ac_cpp conftest.$ac_ext"
5792 case "(($ac_try" in
5793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794   *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5798   ac_status=$?
5799   grep -v '^ *+' conftest.er1 >conftest.err
5800   rm -f conftest.er1
5801   cat conftest.err >&5
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } >/dev/null && {
5804          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5805          test ! -s conftest.err
5806        }; then
5807   :
5808 else
5809   echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5811
5812   # Broken: fails on valid input.
5813 continue
5814 fi
5815
5816 rm -f conftest.err conftest.$ac_ext
5817
5818   # OK, works on sane cases.  Now check whether nonexistent headers
5819   # can be detected and how.
5820   cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h.  */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h.  */
5826 #include <ac_nonexistent.h>
5827 _ACEOF
5828 if { (ac_try="$ac_cpp conftest.$ac_ext"
5829 case "(($ac_try" in
5830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831   *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835   ac_status=$?
5836   grep -v '^ *+' conftest.er1 >conftest.err
5837   rm -f conftest.er1
5838   cat conftest.err >&5
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } >/dev/null && {
5841          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5842          test ! -s conftest.err
5843        }; then
5844   # Broken: success on invalid input.
5845 continue
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850   # Passes both tests.
5851 ac_preproc_ok=:
5852 break
5853 fi
5854
5855 rm -f conftest.err conftest.$ac_ext
5856
5857 done
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.err conftest.$ac_ext
5860 if $ac_preproc_ok; then
5861   :
5862 else
5863   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5864 See \`config.log' for more details." >&5
5865 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5866 See \`config.log' for more details." >&2;}
5867    { (exit 1); exit 1; }; }
5868 fi
5869
5870 ac_ext=cpp
5871 ac_cpp='$CXXCPP $CPPFLAGS'
5872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5875
5876 fi
5877
5878
5879 ac_ext=f
5880 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5881 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5882 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5883 if test -n "$ac_tool_prefix"; then
5884   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
5885   do
5886     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890 if test "${ac_cv_prog_F77+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   if test -n "$F77"; then
5894   ac_cv_prog_F77="$F77" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901   for ac_exec_ext in '' $ac_executable_extensions; do
5902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908 done
5909 IFS=$as_save_IFS
5910
5911 fi
5912 fi
5913 F77=$ac_cv_prog_F77
5914 if test -n "$F77"; then
5915   { echo "$as_me:$LINENO: result: $F77" >&5
5916 echo "${ECHO_T}$F77" >&6; }
5917 else
5918   { echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6; }
5920 fi
5921
5922
5923     test -n "$F77" && break
5924   done
5925 fi
5926 if test -z "$F77"; then
5927   ac_ct_F77=$F77
5928   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
5929 do
5930   # Extract the first word of "$ac_prog", so it can be a program name with args.
5931 set dummy $ac_prog; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   if test -n "$ac_ct_F77"; then
5938   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945   for ac_exec_ext in '' $ac_executable_extensions; do
5946   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947     ac_cv_prog_ac_ct_F77="$ac_prog"
5948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952 done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5958 if test -n "$ac_ct_F77"; then
5959   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5960 echo "${ECHO_T}$ac_ct_F77" >&6; }
5961 else
5962   { echo "$as_me:$LINENO: result: no" >&5
5963 echo "${ECHO_T}no" >&6; }
5964 fi
5965
5966
5967   test -n "$ac_ct_F77" && break
5968 done
5969
5970   if test "x$ac_ct_F77" = x; then
5971     F77=""
5972   else
5973     case $cross_compiling:$ac_tool_warned in
5974 yes:)
5975 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5976 whose name does not start with the host triplet.  If you think this
5977 configuration is useful to you, please write to autoconf@gnu.org." >&5
5978 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5979 whose name does not start with the host triplet.  If you think this
5980 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5981 ac_tool_warned=yes ;;
5982 esac
5983     F77=$ac_ct_F77
5984   fi
5985 fi
5986
5987
5988 # Provide some information about the compiler.
5989 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5990 ac_compiler=`set X $ac_compile; echo $2`
5991 { (ac_try="$ac_compiler --version >&5"
5992 case "(($ac_try" in
5993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994   *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997   (eval "$ac_compiler --version >&5") 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }
6001 { (ac_try="$ac_compiler -v >&5"
6002 case "(($ac_try" in
6003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004   *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007   (eval "$ac_compiler -v >&5") 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }
6011 { (ac_try="$ac_compiler -V >&5"
6012 case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017   (eval "$ac_compiler -V >&5") 2>&5
6018   ac_status=$?
6019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020   (exit $ac_status); }
6021 rm -f a.out
6022
6023 # If we don't use `.F' as extension, the preprocessor is not run on the
6024 # input file.  (Note that this only needs to work for GNU compilers.)
6025 ac_save_ext=$ac_ext
6026 ac_ext=F
6027 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6028 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6029 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   cat >conftest.$ac_ext <<_ACEOF
6033       program main
6034 #ifndef __GNUC__
6035        choke me
6036 #endif
6037
6038       end
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6042 case "(($ac_try" in
6043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044   *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047   (eval "$ac_compile") 2>conftest.er1
6048   ac_status=$?
6049   grep -v '^ *+' conftest.er1 >conftest.err
6050   rm -f conftest.er1
6051   cat conftest.err >&5
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } && {
6054          test -z "$ac_f77_werror_flag" ||
6055          test ! -s conftest.err
6056        } && test -s conftest.$ac_objext; then
6057   ac_compiler_gnu=yes
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062         ac_compiler_gnu=no
6063 fi
6064
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6067
6068 fi
6069 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6070 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6071 ac_ext=$ac_save_ext
6072 ac_test_FFLAGS=${FFLAGS+set}
6073 ac_save_FFLAGS=$FFLAGS
6074 FFLAGS=
6075 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6076 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6077 if test "${ac_cv_prog_f77_g+set}" = set; then
6078   echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080   FFLAGS=-g
6081 cat >conftest.$ac_ext <<_ACEOF
6082       program main
6083
6084       end
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (ac_try="$ac_compile"
6088 case "(($ac_try" in
6089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090   *) ac_try_echo=$ac_try;;
6091 esac
6092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093   (eval "$ac_compile") 2>conftest.er1
6094   ac_status=$?
6095   grep -v '^ *+' conftest.er1 >conftest.err
6096   rm -f conftest.er1
6097   cat conftest.err >&5
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } && {
6100          test -z "$ac_f77_werror_flag" ||
6101          test ! -s conftest.err
6102        } && test -s conftest.$ac_objext; then
6103   ac_cv_prog_f77_g=yes
6104 else
6105   echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108         ac_cv_prog_f77_g=no
6109 fi
6110
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112
6113 fi
6114 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6115 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6116 if test "$ac_test_FFLAGS" = set; then
6117   FFLAGS=$ac_save_FFLAGS
6118 elif test $ac_cv_prog_f77_g = yes; then
6119   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6120     FFLAGS="-g -O2"
6121   else
6122     FFLAGS="-g"
6123   fi
6124 else
6125   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6126     FFLAGS="-O2"
6127   else
6128     FFLAGS=
6129   fi
6130 fi
6131
6132 G77=`test $ac_compiler_gnu = yes && echo yes`
6133 ac_ext=c
6134 ac_cpp='$CPP $CPPFLAGS'
6135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6138
6139
6140
6141 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6142 # find the maximum length of command line arguments
6143 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6144 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6145 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6146   echo $ECHO_N "(cached) $ECHO_C" >&6
6147 else
6148     i=0
6149   teststring="ABCD"
6150
6151   case $build_os in
6152   msdosdjgpp*)
6153     # On DJGPP, this test can blow up pretty badly due to problems in libc
6154     # (any single argument exceeding 2000 bytes causes a buffer overrun
6155     # during glob expansion).  Even if it were fixed, the result of this
6156     # check would be larger than it should be.
6157     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6158     ;;
6159
6160   gnu*)
6161     # Under GNU Hurd, this test is not required because there is
6162     # no limit to the length of command line arguments.
6163     # Libtool will interpret -1 as no limit whatsoever
6164     lt_cv_sys_max_cmd_len=-1;
6165     ;;
6166
6167   cygwin* | mingw*)
6168     # On Win9x/ME, this test blows up -- it succeeds, but takes
6169     # about 5 minutes as the teststring grows exponentially.
6170     # Worse, since 9x/ME are not pre-emptively multitasking,
6171     # you end up with a "frozen" computer, even though with patience
6172     # the test eventually succeeds (with a max line length of 256k).
6173     # Instead, let's just punt: use the minimum linelength reported by
6174     # all of the supported platforms: 8192 (on NT/2K/XP).
6175     lt_cv_sys_max_cmd_len=8192;
6176     ;;
6177
6178   amigaos*)
6179     # On AmigaOS with pdksh, this test takes hours, literally.
6180     # So we just punt and use a minimum line length of 8192.
6181     lt_cv_sys_max_cmd_len=8192;
6182     ;;
6183
6184   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6185     # This has been around since 386BSD, at least.  Likely further.
6186     if test -x /sbin/sysctl; then
6187       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6188     elif test -x /usr/sbin/sysctl; then
6189       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6190     else
6191       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6192     fi
6193     # And add a safety zone
6194     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6195     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6196     ;;
6197
6198   interix*)
6199     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6200     lt_cv_sys_max_cmd_len=196608
6201     ;;
6202
6203   osf*)
6204     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6205     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6206     # nice to cause kernel panics so lets avoid the loop below.
6207     # First set a reasonable default.
6208     lt_cv_sys_max_cmd_len=16384
6209     #
6210     if test -x /sbin/sysconfig; then
6211       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6212         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6213       esac
6214     fi
6215     ;;
6216   sco3.2v5*)
6217     lt_cv_sys_max_cmd_len=102400
6218     ;;
6219   sysv5* | sco5v6* | sysv4.2uw2*)
6220     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6221     if test -n "$kargmax"; then
6222       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6223     else
6224       lt_cv_sys_max_cmd_len=32768
6225     fi
6226     ;;
6227   *)
6228     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6229     if test -n "$lt_cv_sys_max_cmd_len"; then
6230       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6231       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6232     else
6233       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6234       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6235                = "XX$teststring") >/dev/null 2>&1 &&
6236               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6237               lt_cv_sys_max_cmd_len=$new_result &&
6238               test $i != 17 # 1/2 MB should be enough
6239       do
6240         i=`expr $i + 1`
6241         teststring=$teststring$teststring
6242       done
6243       teststring=
6244       # Add a significant safety factor because C++ compilers can tack on massive
6245       # amounts of additional arguments before passing them to the linker.
6246       # It appears as though 1/2 is a usable value.
6247       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6248     fi
6249     ;;
6250   esac
6251
6252 fi
6253
6254 if test -n $lt_cv_sys_max_cmd_len ; then
6255   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6256 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6257 else
6258   { echo "$as_me:$LINENO: result: none" >&5
6259 echo "${ECHO_T}none" >&6; }
6260 fi
6261
6262
6263
6264
6265
6266 # Check for command to grab the raw symbol name followed by C symbol from nm.
6267 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6268 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6269 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6270   echo $ECHO_N "(cached) $ECHO_C" >&6
6271 else
6272
6273 # These are sane defaults that work on at least a few old systems.
6274 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6275
6276 # Character class describing NM global symbol codes.
6277 symcode='[BCDEGRST]'
6278
6279 # Regexp to match symbols that can be accessed directly from C.
6280 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6281
6282 # Transform an extracted symbol line into a proper C declaration
6283 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6284
6285 # Transform an extracted symbol line into symbol name and symbol address
6286 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'"
6287
6288 # Define system-specific variables.
6289 case $host_os in
6290 aix*)
6291   symcode='[BCDT]'
6292   ;;
6293 cygwin* | mingw* | pw32*)
6294   symcode='[ABCDGISTW]'
6295   ;;
6296 hpux*) # Its linker distinguishes data from code symbols
6297   if test "$host_cpu" = ia64; then
6298     symcode='[ABCDEGRST]'
6299   fi
6300   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6301   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'"
6302   ;;
6303 linux* | k*bsd*-gnu)
6304   if test "$host_cpu" = ia64; then
6305     symcode='[ABCDGIRSTW]'
6306     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6307     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'"
6308   fi
6309   ;;
6310 irix* | nonstopux*)
6311   symcode='[BCDEGRST]'
6312   ;;
6313 osf*)
6314   symcode='[BCDEGQRST]'
6315   ;;
6316 solaris*)
6317   symcode='[BDRT]'
6318   ;;
6319 sco3.2v5*)
6320   symcode='[DT]'
6321   ;;
6322 sysv4.2uw2*)
6323   symcode='[DT]'
6324   ;;
6325 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6326   symcode='[ABDT]'
6327   ;;
6328 sysv4)
6329   symcode='[DFNSTU]'
6330   ;;
6331 esac
6332
6333 # Handle CRLF in mingw tool chain
6334 opt_cr=
6335 case $build_os in
6336 mingw*)
6337   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6338   ;;
6339 esac
6340
6341 # If we're using GNU nm, then use its standard symbol codes.
6342 case `$NM -V 2>&1` in
6343 *GNU* | *'with BFD'*)
6344   symcode='[ABCDGIRSTW]' ;;
6345 esac
6346
6347 # Try without a prefix undercore, then with it.
6348 for ac_symprfx in "" "_"; do
6349
6350   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6351   symxfrm="\\1 $ac_symprfx\\2 \\2"
6352
6353   # Write the raw and C identifiers.
6354   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6355
6356   # Check to see that the pipe works correctly.
6357   pipe_works=no
6358
6359   rm -f conftest*
6360   cat > conftest.$ac_ext <<EOF
6361 #ifdef __cplusplus
6362 extern "C" {
6363 #endif
6364 char nm_test_var;
6365 void nm_test_func(){}
6366 #ifdef __cplusplus
6367 }
6368 #endif
6369 int main(){nm_test_var='a';nm_test_func();return(0);}
6370 EOF
6371
6372   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373   (eval $ac_compile) 2>&5
6374   ac_status=$?
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); }; then
6377     # Now try to grab the symbols.
6378     nlist=conftest.nm
6379     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6380   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); } && test -s "$nlist"; then
6384       # Try sorting and uniquifying the output.
6385       if sort "$nlist" | uniq > "$nlist"T; then
6386         mv -f "$nlist"T "$nlist"
6387       else
6388         rm -f "$nlist"T
6389       fi
6390
6391       # Make sure that we snagged all the symbols we need.
6392       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6393         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6394           cat <<EOF > conftest.$ac_ext
6395 #ifdef __cplusplus
6396 extern "C" {
6397 #endif
6398
6399 EOF
6400           # Now generate the symbol file.
6401           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6402
6403           cat <<EOF >> conftest.$ac_ext
6404 #if defined (__STDC__) && __STDC__
6405 # define lt_ptr_t void *
6406 #else
6407 # define lt_ptr_t char *
6408 # define const
6409 #endif
6410
6411 /* The mapping between symbol names and symbols. */
6412 const struct {
6413   const char *name;
6414   lt_ptr_t address;
6415 }
6416 lt_preloaded_symbols[] =
6417 {
6418 EOF
6419           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6420           cat <<\EOF >> conftest.$ac_ext
6421   {0, (lt_ptr_t) 0}
6422 };
6423
6424 #ifdef __cplusplus
6425 }
6426 #endif
6427 EOF
6428           # Now try linking the two files.
6429           mv conftest.$ac_objext conftstm.$ac_objext
6430           lt_save_LIBS="$LIBS"
6431           lt_save_CFLAGS="$CFLAGS"
6432           LIBS="conftstm.$ac_objext"
6433           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6434           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6435   (eval $ac_link) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6439             pipe_works=yes
6440           fi
6441           LIBS="$lt_save_LIBS"
6442           CFLAGS="$lt_save_CFLAGS"
6443         else
6444           echo "cannot find nm_test_func in $nlist" >&5
6445         fi
6446       else
6447         echo "cannot find nm_test_var in $nlist" >&5
6448       fi
6449     else
6450       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6451     fi
6452   else
6453     echo "$progname: failed program was:" >&5
6454     cat conftest.$ac_ext >&5
6455   fi
6456   rm -rf conftest* conftst*
6457
6458   # Do not use the global_symbol_pipe unless it works.
6459   if test "$pipe_works" = yes; then
6460     break
6461   else
6462     lt_cv_sys_global_symbol_pipe=
6463   fi
6464 done
6465
6466 fi
6467
6468 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6469   lt_cv_sys_global_symbol_to_cdecl=
6470 fi
6471 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6472   { echo "$as_me:$LINENO: result: failed" >&5
6473 echo "${ECHO_T}failed" >&6; }
6474 else
6475   { echo "$as_me:$LINENO: result: ok" >&5
6476 echo "${ECHO_T}ok" >&6; }
6477 fi
6478
6479 { echo "$as_me:$LINENO: checking for objdir" >&5
6480 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6481 if test "${lt_cv_objdir+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   rm -f .libs 2>/dev/null
6485 mkdir .libs 2>/dev/null
6486 if test -d .libs; then
6487   lt_cv_objdir=.libs
6488 else
6489   # MS-DOS does not allow filenames that begin with a dot.
6490   lt_cv_objdir=_libs
6491 fi
6492 rmdir .libs 2>/dev/null
6493 fi
6494 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6495 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6496 objdir=$lt_cv_objdir
6497
6498
6499
6500
6501
6502 case $host_os in
6503 aix3*)
6504   # AIX sometimes has problems with the GCC collect2 program.  For some
6505   # reason, if we set the COLLECT_NAMES environment variable, the problems
6506   # vanish in a puff of smoke.
6507   if test "X${COLLECT_NAMES+set}" != Xset; then
6508     COLLECT_NAMES=
6509     export COLLECT_NAMES
6510   fi
6511   ;;
6512 esac
6513
6514 # Sed substitution that helps us do robust quoting.  It backslashifies
6515 # metacharacters that are still active within double-quoted strings.
6516 Xsed='sed -e 1s/^X//'
6517 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6518
6519 # Same as above, but do not quote variable references.
6520 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6521
6522 # Sed substitution to delay expansion of an escaped shell variable in a
6523 # double_quote_subst'ed string.
6524 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6525
6526 # Sed substitution to avoid accidental globbing in evaled expressions
6527 no_glob_subst='s/\*/\\\*/g'
6528
6529 # Constants:
6530 rm="rm -f"
6531
6532 # Global variables:
6533 default_ofile=libtool
6534 can_build_shared=yes
6535
6536 # All known linkers require a `.a' archive for static linking (except MSVC,
6537 # which needs '.lib').
6538 libext=a
6539 ltmain="$ac_aux_dir/ltmain.sh"
6540 ofile="$default_ofile"
6541 with_gnu_ld="$lt_cv_prog_gnu_ld"
6542
6543 if test -n "$ac_tool_prefix"; then
6544   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6545 set dummy ${ac_tool_prefix}ar; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_prog_AR+set}" = set; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   if test -n "$AR"; then
6552   ac_cv_prog_AR="$AR" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6556 do
6557   IFS=$as_save_IFS
6558   test -z "$as_dir" && as_dir=.
6559   for ac_exec_ext in '' $ac_executable_extensions; do
6560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6561     ac_cv_prog_AR="${ac_tool_prefix}ar"
6562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6563     break 2
6564   fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 AR=$ac_cv_prog_AR
6572 if test -n "$AR"; then
6573   { echo "$as_me:$LINENO: result: $AR" >&5
6574 echo "${ECHO_T}$AR" >&6; }
6575 else
6576   { echo "$as_me:$LINENO: result: no" >&5
6577 echo "${ECHO_T}no" >&6; }
6578 fi
6579
6580
6581 fi
6582 if test -z "$ac_cv_prog_AR"; then
6583   ac_ct_AR=$AR
6584   # Extract the first word of "ar", so it can be a program name with args.
6585 set dummy ar; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   if test -n "$ac_ct_AR"; then
6592   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6593 else
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 for as_dir in $PATH
6596 do
6597   IFS=$as_save_IFS
6598   test -z "$as_dir" && as_dir=.
6599   for ac_exec_ext in '' $ac_executable_extensions; do
6600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6601     ac_cv_prog_ac_ct_AR="ar"
6602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603     break 2
6604   fi
6605 done
6606 done
6607 IFS=$as_save_IFS
6608
6609 fi
6610 fi
6611 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6612 if test -n "$ac_ct_AR"; then
6613   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6614 echo "${ECHO_T}$ac_ct_AR" >&6; }
6615 else
6616   { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6618 fi
6619
6620   if test "x$ac_ct_AR" = x; then
6621     AR="false"
6622   else
6623     case $cross_compiling:$ac_tool_warned in
6624 yes:)
6625 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6626 whose name does not start with the host triplet.  If you think this
6627 configuration is useful to you, please write to autoconf@gnu.org." >&5
6628 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6629 whose name does not start with the host triplet.  If you think this
6630 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633     AR=$ac_ct_AR
6634   fi
6635 else
6636   AR="$ac_cv_prog_AR"
6637 fi
6638
6639 if test -n "$ac_tool_prefix"; then
6640   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6644 if test "${ac_cv_prog_RANLIB+set}" = set; then
6645   echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647   if test -n "$RANLIB"; then
6648   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 RANLIB=$ac_cv_prog_RANLIB
6668 if test -n "$RANLIB"; then
6669   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6670 echo "${ECHO_T}$RANLIB" >&6; }
6671 else
6672   { echo "$as_me:$LINENO: result: no" >&5
6673 echo "${ECHO_T}no" >&6; }
6674 fi
6675
6676
6677 fi
6678 if test -z "$ac_cv_prog_RANLIB"; then
6679   ac_ct_RANLIB=$RANLIB
6680   # Extract the first word of "ranlib", so it can be a program name with args.
6681 set dummy ranlib; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   if test -n "$ac_ct_RANLIB"; then
6688   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_prog_ac_ct_RANLIB="ranlib"
6698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6708 if test -n "$ac_ct_RANLIB"; then
6709   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6710 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6711 else
6712   { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6714 fi
6715
6716   if test "x$ac_ct_RANLIB" = x; then
6717     RANLIB=":"
6718   else
6719     case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6722 whose name does not start with the host triplet.  If you think this
6723 configuration is useful to you, please write to autoconf@gnu.org." >&5
6724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6725 whose name does not start with the host triplet.  If you think this
6726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6727 ac_tool_warned=yes ;;
6728 esac
6729     RANLIB=$ac_ct_RANLIB
6730   fi
6731 else
6732   RANLIB="$ac_cv_prog_RANLIB"
6733 fi
6734
6735 if test -n "$ac_tool_prefix"; then
6736   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6737 set dummy ${ac_tool_prefix}strip; ac_word=$2
6738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740 if test "${ac_cv_prog_STRIP+set}" = set; then
6741   echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743   if test -n "$STRIP"; then
6744   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749   IFS=$as_save_IFS
6750   test -z "$as_dir" && as_dir=.
6751   for ac_exec_ext in '' $ac_executable_extensions; do
6752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755     break 2
6756   fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 STRIP=$ac_cv_prog_STRIP
6764 if test -n "$STRIP"; then
6765   { echo "$as_me:$LINENO: result: $STRIP" >&5
6766 echo "${ECHO_T}$STRIP" >&6; }
6767 else
6768   { echo "$as_me:$LINENO: result: no" >&5
6769 echo "${ECHO_T}no" >&6; }
6770 fi
6771
6772
6773 fi
6774 if test -z "$ac_cv_prog_STRIP"; then
6775   ac_ct_STRIP=$STRIP
6776   # Extract the first word of "strip", so it can be a program name with args.
6777 set dummy strip; ac_word=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   if test -n "$ac_ct_STRIP"; then
6784   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789   IFS=$as_save_IFS
6790   test -z "$as_dir" && as_dir=.
6791   for ac_exec_ext in '' $ac_executable_extensions; do
6792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793     ac_cv_prog_ac_ct_STRIP="strip"
6794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6795     break 2
6796   fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6804 if test -n "$ac_ct_STRIP"; then
6805   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6806 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6810 fi
6811
6812   if test "x$ac_ct_STRIP" = x; then
6813     STRIP=":"
6814   else
6815     case $cross_compiling:$ac_tool_warned in
6816 yes:)
6817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6818 whose name does not start with the host triplet.  If you think this
6819 configuration is useful to you, please write to autoconf@gnu.org." >&5
6820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6821 whose name does not start with the host triplet.  If you think this
6822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6823 ac_tool_warned=yes ;;
6824 esac
6825     STRIP=$ac_ct_STRIP
6826   fi
6827 else
6828   STRIP="$ac_cv_prog_STRIP"
6829 fi
6830
6831
6832 old_CC="$CC"
6833 old_CFLAGS="$CFLAGS"
6834
6835 # Set sane defaults for various variables
6836 test -z "$AR" && AR=ar
6837 test -z "$AR_FLAGS" && AR_FLAGS=cru
6838 test -z "$AS" && AS=as
6839 test -z "$CC" && CC=cc
6840 test -z "$LTCC" && LTCC=$CC
6841 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6842 test -z "$DLLTOOL" && DLLTOOL=dlltool
6843 test -z "$LD" && LD=ld
6844 test -z "$LN_S" && LN_S="ln -s"
6845 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6846 test -z "$NM" && NM=nm
6847 test -z "$SED" && SED=sed
6848 test -z "$OBJDUMP" && OBJDUMP=objdump
6849 test -z "$RANLIB" && RANLIB=:
6850 test -z "$STRIP" && STRIP=:
6851 test -z "$ac_objext" && ac_objext=o
6852
6853 # Determine commands to create old-style static archives.
6854 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6855 old_postinstall_cmds='chmod 644 $oldlib'
6856 old_postuninstall_cmds=
6857
6858 if test -n "$RANLIB"; then
6859   case $host_os in
6860   openbsd*)
6861     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6862     ;;
6863   *)
6864     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6865     ;;
6866   esac
6867   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6868 fi
6869
6870 for cc_temp in $compiler""; do
6871   case $cc_temp in
6872     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6873     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6874     \-*) ;;
6875     *) break;;
6876   esac
6877 done
6878 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6879
6880
6881 # Only perform the check for file, if the check method requires it
6882 case $deplibs_check_method in
6883 file_magic*)
6884   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6885     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6886 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6887 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   case $MAGIC_CMD in
6891 [\\/*] |  ?:[\\/]*)
6892   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6893   ;;
6894 *)
6895   lt_save_MAGIC_CMD="$MAGIC_CMD"
6896   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6897   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6898   for ac_dir in $ac_dummy; do
6899     IFS="$lt_save_ifs"
6900     test -z "$ac_dir" && ac_dir=.
6901     if test -f $ac_dir/${ac_tool_prefix}file; then
6902       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6903       if test -n "$file_magic_test_file"; then
6904         case $deplibs_check_method in
6905         "file_magic "*)
6906           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6907           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6908           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6909             $EGREP "$file_magic_regex" > /dev/null; then
6910             :
6911           else
6912             cat <<EOF 1>&2
6913
6914 *** Warning: the command libtool uses to detect shared libraries,
6915 *** $file_magic_cmd, produces output that libtool cannot recognize.
6916 *** The result is that libtool may fail to recognize shared libraries
6917 *** as such.  This will affect the creation of libtool libraries that
6918 *** depend on shared libraries, but programs linked with such libtool
6919 *** libraries will work regardless of this problem.  Nevertheless, you
6920 *** may want to report the problem to your system manager and/or to
6921 *** bug-libtool@gnu.org
6922
6923 EOF
6924           fi ;;
6925         esac
6926       fi
6927       break
6928     fi
6929   done
6930   IFS="$lt_save_ifs"
6931   MAGIC_CMD="$lt_save_MAGIC_CMD"
6932   ;;
6933 esac
6934 fi
6935
6936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6937 if test -n "$MAGIC_CMD"; then
6938   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6939 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6940 else
6941   { echo "$as_me:$LINENO: result: no" >&5
6942 echo "${ECHO_T}no" >&6; }
6943 fi
6944
6945 if test -z "$lt_cv_path_MAGIC_CMD"; then
6946   if test -n "$ac_tool_prefix"; then
6947     { echo "$as_me:$LINENO: checking for file" >&5
6948 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   case $MAGIC_CMD in
6953 [\\/*] |  ?:[\\/]*)
6954   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6955   ;;
6956 *)
6957   lt_save_MAGIC_CMD="$MAGIC_CMD"
6958   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6959   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6960   for ac_dir in $ac_dummy; do
6961     IFS="$lt_save_ifs"
6962     test -z "$ac_dir" && ac_dir=.
6963     if test -f $ac_dir/file; then
6964       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6965       if test -n "$file_magic_test_file"; then
6966         case $deplibs_check_method in
6967         "file_magic "*)
6968           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6969           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6970           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6971             $EGREP "$file_magic_regex" > /dev/null; then
6972             :
6973           else
6974             cat <<EOF 1>&2
6975
6976 *** Warning: the command libtool uses to detect shared libraries,
6977 *** $file_magic_cmd, produces output that libtool cannot recognize.
6978 *** The result is that libtool may fail to recognize shared libraries
6979 *** as such.  This will affect the creation of libtool libraries that
6980 *** depend on shared libraries, but programs linked with such libtool
6981 *** libraries will work regardless of this problem.  Nevertheless, you
6982 *** may want to report the problem to your system manager and/or to
6983 *** bug-libtool@gnu.org
6984
6985 EOF
6986           fi ;;
6987         esac
6988       fi
6989       break
6990     fi
6991   done
6992   IFS="$lt_save_ifs"
6993   MAGIC_CMD="$lt_save_MAGIC_CMD"
6994   ;;
6995 esac
6996 fi
6997
6998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6999 if test -n "$MAGIC_CMD"; then
7000   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7001 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7002 else
7003   { echo "$as_me:$LINENO: result: no" >&5
7004 echo "${ECHO_T}no" >&6; }
7005 fi
7006
7007   else
7008     MAGIC_CMD=:
7009   fi
7010 fi
7011
7012   fi
7013   ;;
7014 esac
7015
7016
7017   case $host_os in
7018     rhapsody* | darwin*)
7019     if test -n "$ac_tool_prefix"; then
7020   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   if test -n "$DSYMUTIL"; then
7028   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7032 do
7033   IFS=$as_save_IFS
7034   test -z "$as_dir" && as_dir=.
7035   for ac_exec_ext in '' $ac_executable_extensions; do
7036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039     break 2
7040   fi
7041 done
7042 done
7043 IFS=$as_save_IFS
7044
7045 fi
7046 fi
7047 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7048 if test -n "$DSYMUTIL"; then
7049   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7050 echo "${ECHO_T}$DSYMUTIL" >&6; }
7051 else
7052   { echo "$as_me:$LINENO: result: no" >&5
7053 echo "${ECHO_T}no" >&6; }
7054 fi
7055
7056
7057 fi
7058 if test -z "$ac_cv_prog_DSYMUTIL"; then
7059   ac_ct_DSYMUTIL=$DSYMUTIL
7060   # Extract the first word of "dsymutil", so it can be a program name with args.
7061 set dummy dsymutil; ac_word=$2
7062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7064 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7065   echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067   if test -n "$ac_ct_DSYMUTIL"; then
7068   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7072 do
7073   IFS=$as_save_IFS
7074   test -z "$as_dir" && as_dir=.
7075   for ac_exec_ext in '' $ac_executable_extensions; do
7076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079     break 2
7080   fi
7081 done
7082 done
7083 IFS=$as_save_IFS
7084
7085 fi
7086 fi
7087 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7088 if test -n "$ac_ct_DSYMUTIL"; then
7089   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7090 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7091 else
7092   { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7094 fi
7095
7096   if test "x$ac_ct_DSYMUTIL" = x; then
7097     DSYMUTIL=":"
7098   else
7099     case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7102 whose name does not start with the host triplet.  If you think this
7103 configuration is useful to you, please write to autoconf@gnu.org." >&5
7104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet.  If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7107 ac_tool_warned=yes ;;
7108 esac
7109     DSYMUTIL=$ac_ct_DSYMUTIL
7110   fi
7111 else
7112   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7113 fi
7114
7115     if test -n "$ac_tool_prefix"; then
7116   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7117 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7121   echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123   if test -n "$NMEDIT"; then
7124   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7125 else
7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141 fi
7142 fi
7143 NMEDIT=$ac_cv_prog_NMEDIT
7144 if test -n "$NMEDIT"; then
7145   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7146 echo "${ECHO_T}$NMEDIT" >&6; }
7147 else
7148   { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7150 fi
7151
7152
7153 fi
7154 if test -z "$ac_cv_prog_NMEDIT"; then
7155   ac_ct_NMEDIT=$NMEDIT
7156   # Extract the first word of "nmedit", so it can be a program name with args.
7157 set dummy nmedit; ac_word=$2
7158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7160 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   if test -n "$ac_ct_NMEDIT"; then
7164   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7165 else
7166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171   for ac_exec_ext in '' $ac_executable_extensions; do
7172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7173     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178 done
7179 IFS=$as_save_IFS
7180
7181 fi
7182 fi
7183 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7184 if test -n "$ac_ct_NMEDIT"; then
7185   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7186 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7187 else
7188   { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7190 fi
7191
7192   if test "x$ac_ct_NMEDIT" = x; then
7193     NMEDIT=":"
7194   else
7195     case $cross_compiling:$ac_tool_warned in
7196 yes:)
7197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7198 whose name does not start with the host triplet.  If you think this
7199 configuration is useful to you, please write to autoconf@gnu.org." >&5
7200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet.  If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205     NMEDIT=$ac_ct_NMEDIT
7206   fi
7207 else
7208   NMEDIT="$ac_cv_prog_NMEDIT"
7209 fi
7210
7211
7212     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7213 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7214 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7215   echo $ECHO_N "(cached) $ECHO_C" >&6
7216 else
7217   lt_cv_apple_cc_single_mod=no
7218       if test -z "${LT_MULTI_MODULE}"; then
7219    # By default we will add the -single_module flag. You can override
7220    # by either setting the environment variable LT_MULTI_MODULE
7221    # non-empty at configure time, or by adding -multi_module to the
7222    # link flags.
7223    echo "int foo(void){return 1;}" > conftest.c
7224    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7225      -dynamiclib ${wl}-single_module conftest.c
7226    if test -f libconftest.dylib; then
7227      lt_cv_apple_cc_single_mod=yes
7228      rm -rf libconftest.dylib*
7229    fi
7230    rm conftest.c
7231       fi
7232 fi
7233 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7234 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7235     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7236 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7237 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7238   echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240   lt_cv_ld_exported_symbols_list=no
7241       save_LDFLAGS=$LDFLAGS
7242       echo "_main" > conftest.sym
7243       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7244       cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250
7251 int
7252 main ()
7253 {
7254
7255   ;
7256   return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (ac_try="$ac_link"
7261 case "(($ac_try" in
7262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263   *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266   (eval "$ac_link") 2>conftest.er1
7267   ac_status=$?
7268   grep -v '^ *+' conftest.er1 >conftest.err
7269   rm -f conftest.er1
7270   cat conftest.err >&5
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); } && {
7273          test -z "$ac_c_werror_flag" ||
7274          test ! -s conftest.err
7275        } && test -s conftest$ac_exeext &&
7276        $as_test_x conftest$ac_exeext; then
7277   lt_cv_ld_exported_symbols_list=yes
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282         lt_cv_ld_exported_symbols_list=no
7283 fi
7284
7285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7286       conftest$ac_exeext conftest.$ac_ext
7287    LDFLAGS="$save_LDFLAGS"
7288
7289 fi
7290 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7291 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7292     case $host_os in
7293     rhapsody* | darwin1.[0123])
7294       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7295     darwin1.*)
7296      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7297     darwin*)
7298       # if running on 10.5 or later, the deployment target defaults
7299       # to the OS version, if on x86, and 10.4, the deployment
7300       # target defaults to 10.4. Don't you love it?
7301       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7302    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7303      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7304    10.[012]*)
7305      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7306    10.*)
7307      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7308       esac
7309     ;;
7310   esac
7311     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7312       _lt_dar_single_mod='$single_module'
7313     fi
7314     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7315       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7316     else
7317       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7318     fi
7319     if test "$DSYMUTIL" != ":"; then
7320       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7321     else
7322       _lt_dsymutil=
7323     fi
7324     ;;
7325   esac
7326
7327
7328 enable_dlopen=no
7329 enable_win32_dll=no
7330
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then
7333   enableval=$enable_libtool_lock;
7334 fi
7335
7336 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7337
7338
7339 # Check whether --with-pic was given.
7340 if test "${with_pic+set}" = set; then
7341   withval=$with_pic; pic_mode="$withval"
7342 else
7343   pic_mode=default
7344 fi
7345
7346 test -z "$pic_mode" && pic_mode=default
7347
7348 # Use C for the default configuration in the libtool script
7349 tagname=
7350 lt_save_CC="$CC"
7351 ac_ext=c
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7356
7357
7358 # Source file extension for C test sources.
7359 ac_ext=c
7360
7361 # Object file extension for compiled C test sources.
7362 objext=o
7363 objext=$objext
7364
7365 # Code to be used in simple compile tests
7366 lt_simple_compile_test_code="int some_variable = 0;"
7367
7368 # Code to be used in simple link tests
7369 lt_simple_link_test_code='int main(){return(0);}'
7370
7371
7372 # If no C compiler was specified, use CC.
7373 LTCC=${LTCC-"$CC"}
7374
7375 # If no C compiler flags were specified, use CFLAGS.
7376 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7377
7378 # Allow CC to be a program name with arguments.
7379 compiler=$CC
7380
7381
7382 # save warnings/boilerplate of simple test code
7383 ac_outfile=conftest.$ac_objext
7384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7386 _lt_compiler_boilerplate=`cat conftest.err`
7387 $rm conftest*
7388
7389 ac_outfile=conftest.$ac_objext
7390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7392 _lt_linker_boilerplate=`cat conftest.err`
7393 $rm -r conftest*
7394
7395
7396
7397 lt_prog_compiler_no_builtin_flag=
7398
7399 if test "$GCC" = yes; then
7400   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7401
7402
7403 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7404 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7405 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   lt_cv_prog_compiler_rtti_exceptions=no
7409   ac_outfile=conftest.$ac_objext
7410    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7411    lt_compiler_flag="-fno-rtti -fno-exceptions"
7412    # Insert the option either (1) after the last *FLAGS variable, or
7413    # (2) before a word containing "conftest.", or (3) at the end.
7414    # Note that $ac_compile itself does not contain backslashes and begins
7415    # with a dollar sign (not a hyphen), so the echo should work correctly.
7416    # The option is referenced via a variable to avoid confusing sed.
7417    lt_compile=`echo "$ac_compile" | $SED \
7418    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7420    -e 's:$: $lt_compiler_flag:'`
7421    (eval echo "\"\$as_me:7421: $lt_compile\"" >&5)
7422    (eval "$lt_compile" 2>conftest.err)
7423    ac_status=$?
7424    cat conftest.err >&5
7425    echo "$as_me:7425: \$? = $ac_status" >&5
7426    if (exit $ac_status) && test -s "$ac_outfile"; then
7427      # The compiler can only warn and ignore the option if not recognized
7428      # So say no if there are warnings other than the usual output.
7429      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7430      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7431      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7432        lt_cv_prog_compiler_rtti_exceptions=yes
7433      fi
7434    fi
7435    $rm conftest*
7436
7437 fi
7438 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7439 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7440
7441 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7442     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7443 else
7444     :
7445 fi
7446
7447 fi
7448
7449 lt_prog_compiler_wl=
7450 lt_prog_compiler_pic=
7451 lt_prog_compiler_static=
7452
7453 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7454 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7455
7456   if test "$GCC" = yes; then
7457     lt_prog_compiler_wl='-Wl,'
7458     lt_prog_compiler_static='-static'
7459
7460     case $host_os in
7461       aix*)
7462       # All AIX code is PIC.
7463       if test "$host_cpu" = ia64; then
7464         # AIX 5 now supports IA64 processor
7465         lt_prog_compiler_static='-Bstatic'
7466       fi
7467       ;;
7468
7469     amigaos*)
7470       # FIXME: we need at least 68020 code to build shared libraries, but
7471       # adding the `-m68020' flag to GCC prevents building anything better,
7472       # like `-m68040'.
7473       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7474       ;;
7475
7476     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7477       # PIC is the default for these OSes.
7478       ;;
7479
7480     mingw* | cygwin* | pw32* | os2*)
7481       # This hack is so that the source file can tell whether it is being
7482       # built for inclusion in a dll (and should export symbols for example).
7483       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7484       # (--disable-auto-import) libraries
7485       lt_prog_compiler_pic='-DDLL_EXPORT'
7486       ;;
7487
7488     darwin* | rhapsody*)
7489       # PIC is the default on this platform
7490       # Common symbols not allowed in MH_DYLIB files
7491       lt_prog_compiler_pic='-fno-common'
7492       ;;
7493
7494     interix[3-9]*)
7495       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7496       # Instead, we relocate shared libraries at runtime.
7497       ;;
7498
7499     msdosdjgpp*)
7500       # Just because we use GCC doesn't mean we suddenly get shared libraries
7501       # on systems that don't support them.
7502       lt_prog_compiler_can_build_shared=no
7503       enable_shared=no
7504       ;;
7505
7506     sysv4*MP*)
7507       if test -d /usr/nec; then
7508         lt_prog_compiler_pic=-Kconform_pic
7509       fi
7510       ;;
7511
7512     hpux*)
7513       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7514       # not for PA HP-UX.
7515       case $host_cpu in
7516       hppa*64*|ia64*)
7517         # +Z the default
7518         ;;
7519       *)
7520         lt_prog_compiler_pic='-fPIC'
7521         ;;
7522       esac
7523       ;;
7524
7525     *)
7526       lt_prog_compiler_pic='-fPIC'
7527       ;;
7528     esac
7529   else
7530     # PORTME Check for flag to pass linker flags through the system compiler.
7531     case $host_os in
7532     aix*)
7533       lt_prog_compiler_wl='-Wl,'
7534       if test "$host_cpu" = ia64; then
7535         # AIX 5 now supports IA64 processor
7536         lt_prog_compiler_static='-Bstatic'
7537       else
7538         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7539       fi
7540       ;;
7541       darwin*)
7542         # PIC is the default on this platform
7543         # Common symbols not allowed in MH_DYLIB files
7544        case $cc_basename in
7545          xlc*)
7546          lt_prog_compiler_pic='-qnocommon'
7547          lt_prog_compiler_wl='-Wl,'
7548          ;;
7549        esac
7550        ;;
7551
7552     mingw* | cygwin* | pw32* | os2*)
7553       # This hack is so that the source file can tell whether it is being
7554       # built for inclusion in a dll (and should export symbols for example).
7555       lt_prog_compiler_pic='-DDLL_EXPORT'
7556       ;;
7557
7558     hpux9* | hpux10* | hpux11*)
7559       lt_prog_compiler_wl='-Wl,'
7560       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7561       # not for PA HP-UX.
7562       case $host_cpu in
7563       hppa*64*|ia64*)
7564         # +Z the default
7565         ;;
7566       *)
7567         lt_prog_compiler_pic='+Z'
7568         ;;
7569       esac
7570       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7571       lt_prog_compiler_static='${wl}-a ${wl}archive'
7572       ;;
7573
7574     irix5* | irix6* | nonstopux*)
7575       lt_prog_compiler_wl='-Wl,'
7576       # PIC (with -KPIC) is the default.
7577       lt_prog_compiler_static='-non_shared'
7578       ;;
7579
7580     newsos6)
7581       lt_prog_compiler_pic='-KPIC'
7582       lt_prog_compiler_static='-Bstatic'
7583       ;;
7584
7585     linux* | k*bsd*-gnu)
7586       case $cc_basename in
7587       icc* | ecc*)
7588         lt_prog_compiler_wl='-Wl,'
7589         lt_prog_compiler_pic='-KPIC'
7590         lt_prog_compiler_static='-static'
7591         ;;
7592       pgcc* | pgf77* | pgf90* | pgf95*)
7593         # Portland Group compilers (*not* the Pentium gcc compiler,
7594         # which looks to be a dead project)
7595         lt_prog_compiler_wl='-Wl,'
7596         lt_prog_compiler_pic='-fpic'
7597         lt_prog_compiler_static='-Bstatic'
7598         ;;
7599       ccc*)
7600         lt_prog_compiler_wl='-Wl,'
7601         # All Alpha code is PIC.
7602         lt_prog_compiler_static='-non_shared'
7603         ;;
7604       *)
7605         case `$CC -V 2>&1 | sed 5q` in
7606         *Sun\ C*)
7607           # Sun C 5.9
7608           lt_prog_compiler_pic='-KPIC'
7609           lt_prog_compiler_static='-Bstatic'
7610           lt_prog_compiler_wl='-Wl,'
7611           ;;
7612         *Sun\ F*)
7613           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7614           lt_prog_compiler_pic='-KPIC'
7615           lt_prog_compiler_static='-Bstatic'
7616           lt_prog_compiler_wl=''
7617           ;;
7618         esac
7619         ;;
7620       esac
7621       ;;
7622
7623     osf3* | osf4* | osf5*)
7624       lt_prog_compiler_wl='-Wl,'
7625       # All OSF/1 code is PIC.
7626       lt_prog_compiler_static='-non_shared'
7627       ;;
7628
7629     rdos*)
7630       lt_prog_compiler_static='-non_shared'
7631       ;;
7632
7633     solaris*)
7634       lt_prog_compiler_pic='-KPIC'
7635       lt_prog_compiler_static='-Bstatic'
7636       case $cc_basename in
7637       f77* | f90* | f95*)
7638         lt_prog_compiler_wl='-Qoption ld ';;
7639       *)
7640         lt_prog_compiler_wl='-Wl,';;
7641       esac
7642       ;;
7643
7644     sunos4*)
7645       lt_prog_compiler_wl='-Qoption ld '
7646       lt_prog_compiler_pic='-PIC'
7647       lt_prog_compiler_static='-Bstatic'
7648       ;;
7649
7650     sysv4 | sysv4.2uw2* | sysv4.3*)
7651       lt_prog_compiler_wl='-Wl,'
7652       lt_prog_compiler_pic='-KPIC'
7653       lt_prog_compiler_static='-Bstatic'
7654       ;;
7655
7656     sysv4*MP*)
7657       if test -d /usr/nec ;then
7658         lt_prog_compiler_pic='-Kconform_pic'
7659         lt_prog_compiler_static='-Bstatic'
7660       fi
7661       ;;
7662
7663     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7664       lt_prog_compiler_wl='-Wl,'
7665       lt_prog_compiler_pic='-KPIC'
7666       lt_prog_compiler_static='-Bstatic'
7667       ;;
7668
7669     unicos*)
7670       lt_prog_compiler_wl='-Wl,'
7671       lt_prog_compiler_can_build_shared=no
7672       ;;
7673
7674     uts4*)
7675       lt_prog_compiler_pic='-pic'
7676       lt_prog_compiler_static='-Bstatic'
7677       ;;
7678
7679     *)
7680       lt_prog_compiler_can_build_shared=no
7681       ;;
7682     esac
7683   fi
7684
7685 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7686 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7687
7688 #
7689 # Check to make sure the PIC flag actually works.
7690 #
7691 if test -n "$lt_prog_compiler_pic"; then
7692
7693 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7694 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7695 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7696   echo $ECHO_N "(cached) $ECHO_C" >&6
7697 else
7698   lt_cv_prog_compiler_pic_works=no
7699   ac_outfile=conftest.$ac_objext
7700    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7701    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7702    # Insert the option either (1) after the last *FLAGS variable, or
7703    # (2) before a word containing "conftest.", or (3) at the end.
7704    # Note that $ac_compile itself does not contain backslashes and begins
7705    # with a dollar sign (not a hyphen), so the echo should work correctly.
7706    # The option is referenced via a variable to avoid confusing sed.
7707    lt_compile=`echo "$ac_compile" | $SED \
7708    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7709    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7710    -e 's:$: $lt_compiler_flag:'`
7711    (eval echo "\"\$as_me:7711: $lt_compile\"" >&5)
7712    (eval "$lt_compile" 2>conftest.err)
7713    ac_status=$?
7714    cat conftest.err >&5
7715    echo "$as_me:7715: \$? = $ac_status" >&5
7716    if (exit $ac_status) && test -s "$ac_outfile"; then
7717      # The compiler can only warn and ignore the option if not recognized
7718      # So say no if there are warnings other than the usual output.
7719      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7720      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7721      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7722        lt_cv_prog_compiler_pic_works=yes
7723      fi
7724    fi
7725    $rm conftest*
7726
7727 fi
7728 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7729 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7730
7731 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7732     case $lt_prog_compiler_pic in
7733      "" | " "*) ;;
7734      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7735      esac
7736 else
7737     lt_prog_compiler_pic=
7738      lt_prog_compiler_can_build_shared=no
7739 fi
7740
7741 fi
7742 case $host_os in
7743   # For platforms which do not support PIC, -DPIC is meaningless:
7744   *djgpp*)
7745     lt_prog_compiler_pic=
7746     ;;
7747   *)
7748     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7749     ;;
7750 esac
7751
7752 #
7753 # Check to make sure the static flag actually works.
7754 #
7755 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7756 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7757 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7758 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7759   echo $ECHO_N "(cached) $ECHO_C" >&6
7760 else
7761   lt_cv_prog_compiler_static_works=no
7762    save_LDFLAGS="$LDFLAGS"
7763    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7764    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7765    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7766      # The linker can only warn and ignore the option if not recognized
7767      # So say no if there are warnings
7768      if test -s conftest.err; then
7769        # Append any errors to the config.log.
7770        cat conftest.err 1>&5
7771        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7772        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7773        if diff conftest.exp conftest.er2 >/dev/null; then
7774          lt_cv_prog_compiler_static_works=yes
7775        fi
7776      else
7777        lt_cv_prog_compiler_static_works=yes
7778      fi
7779    fi
7780    $rm -r conftest*
7781    LDFLAGS="$save_LDFLAGS"
7782
7783 fi
7784 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7785 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7786
7787 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7788     :
7789 else
7790     lt_prog_compiler_static=
7791 fi
7792
7793
7794 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7795 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7796 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   lt_cv_prog_compiler_c_o=no
7800    $rm -r conftest 2>/dev/null
7801    mkdir conftest
7802    cd conftest
7803    mkdir out
7804    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7805
7806    lt_compiler_flag="-o out/conftest2.$ac_objext"
7807    # Insert the option either (1) after the last *FLAGS variable, or
7808    # (2) before a word containing "conftest.", or (3) at the end.
7809    # Note that $ac_compile itself does not contain backslashes and begins
7810    # with a dollar sign (not a hyphen), so the echo should work correctly.
7811    lt_compile=`echo "$ac_compile" | $SED \
7812    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7813    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7814    -e 's:$: $lt_compiler_flag:'`
7815    (eval echo "\"\$as_me:7815: $lt_compile\"" >&5)
7816    (eval "$lt_compile" 2>out/conftest.err)
7817    ac_status=$?
7818    cat out/conftest.err >&5
7819    echo "$as_me:7819: \$? = $ac_status" >&5
7820    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7821    then
7822      # The compiler can only warn and ignore the option if not recognized
7823      # So say no if there are warnings
7824      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7825      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7826      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7827        lt_cv_prog_compiler_c_o=yes
7828      fi
7829    fi
7830    chmod u+w . 2>&5
7831    $rm conftest*
7832    # SGI C++ compiler will create directory out/ii_files/ for
7833    # template instantiation
7834    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7835    $rm out/* && rmdir out
7836    cd ..
7837    rmdir conftest
7838    $rm conftest*
7839
7840 fi
7841 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7842 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7843
7844
7845 hard_links="nottested"
7846 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7847   # do not overwrite the value of need_locks provided by the user
7848   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7849 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7850   hard_links=yes
7851   $rm conftest*
7852   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7853   touch conftest.a
7854   ln conftest.a conftest.b 2>&5 || hard_links=no
7855   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7856   { echo "$as_me:$LINENO: result: $hard_links" >&5
7857 echo "${ECHO_T}$hard_links" >&6; }
7858   if test "$hard_links" = no; then
7859     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7860 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7861     need_locks=warn
7862   fi
7863 else
7864   need_locks=no
7865 fi
7866
7867 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7868 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7869
7870   runpath_var=
7871   allow_undefined_flag=
7872   enable_shared_with_static_runtimes=no
7873   archive_cmds=
7874   archive_expsym_cmds=
7875   old_archive_From_new_cmds=
7876   old_archive_from_expsyms_cmds=
7877   export_dynamic_flag_spec=
7878   whole_archive_flag_spec=
7879   thread_safe_flag_spec=
7880   hardcode_libdir_flag_spec=
7881   hardcode_libdir_flag_spec_ld=
7882   hardcode_libdir_separator=
7883   hardcode_direct=no
7884   hardcode_minus_L=no
7885   hardcode_shlibpath_var=unsupported
7886   link_all_deplibs=unknown
7887   hardcode_automatic=no
7888   module_cmds=
7889   module_expsym_cmds=
7890   always_export_symbols=no
7891   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7892   # include_expsyms should be a list of space-separated symbols to be *always*
7893   # included in the symbol list
7894   include_expsyms=
7895   # exclude_expsyms can be an extended regexp of symbols to exclude
7896   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7897   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7898   # as well as any symbol that contains `d'.
7899   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7900   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7901   # platforms (ab)use it in PIC code, but their linkers get confused if
7902   # the symbol is explicitly referenced.  Since portable code cannot
7903   # rely on this symbol name, it's probably fine to never include it in
7904   # preloaded symbol tables.
7905   # Exclude shared library initialization/finalization symbols.
7906   extract_expsyms_cmds=
7907   # Just being paranoid about ensuring that cc_basename is set.
7908   for cc_temp in $compiler""; do
7909   case $cc_temp in
7910     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7911     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7912     \-*) ;;
7913     *) break;;
7914   esac
7915 done
7916 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7917
7918   case $host_os in
7919   cygwin* | mingw* | pw32*)
7920     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7921     # When not using gcc, we currently assume that we are using
7922     # Microsoft Visual C++.
7923     if test "$GCC" != yes; then
7924       with_gnu_ld=no
7925     fi
7926     ;;
7927   interix*)
7928     # we just hope/assume this is gcc and not c89 (= MSVC++)
7929     with_gnu_ld=yes
7930     ;;
7931   openbsd*)
7932     with_gnu_ld=no
7933     ;;
7934   esac
7935
7936   ld_shlibs=yes
7937   if test "$with_gnu_ld" = yes; then
7938     # If archive_cmds runs LD, not CC, wlarc should be empty
7939     wlarc='${wl}'
7940
7941     # Set some defaults for GNU ld with shared library support. These
7942     # are reset later if shared libraries are not supported. Putting them
7943     # here allows them to be overridden if necessary.
7944     runpath_var=LD_RUN_PATH
7945     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7946     export_dynamic_flag_spec='${wl}--export-dynamic'
7947     # ancient GNU ld didn't support --whole-archive et. al.
7948     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7949         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7950       else
7951         whole_archive_flag_spec=
7952     fi
7953     supports_anon_versioning=no
7954     case `$LD -v 2>/dev/null` in
7955       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7956       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7957       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7958       *\ 2.11.*) ;; # other 2.11 versions
7959       *) supports_anon_versioning=yes ;;
7960     esac
7961
7962     # See if GNU ld supports shared libraries.
7963     case $host_os in
7964     aix[3-9]*)
7965       # On AIX/PPC, the GNU linker is very broken
7966       if test "$host_cpu" != ia64; then
7967         ld_shlibs=no
7968         cat <<EOF 1>&2
7969
7970 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7971 *** to be unable to reliably create shared libraries on AIX.
7972 *** Therefore, libtool is disabling shared libraries support.  If you
7973 *** really care for shared libraries, you may want to modify your PATH
7974 *** so that a non-GNU linker is found, and then restart.
7975
7976 EOF
7977       fi
7978       ;;
7979
7980     amigaos*)
7981       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)'
7982       hardcode_libdir_flag_spec='-L$libdir'
7983       hardcode_minus_L=yes
7984
7985       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7986       # that the semantics of dynamic libraries on AmigaOS, at least up
7987       # to version 4, is to share data among multiple programs linked
7988       # with the same dynamic library.  Since this doesn't match the
7989       # behavior of shared libraries on other platforms, we can't use
7990       # them.
7991       ld_shlibs=no
7992       ;;
7993
7994     beos*)
7995       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7996         allow_undefined_flag=unsupported
7997         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7998         # support --undefined.  This deserves some investigation.  FIXME
7999         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8000       else
8001         ld_shlibs=no
8002       fi
8003       ;;
8004
8005     cygwin* | mingw* | pw32*)
8006       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8007       # as there is no search path for DLLs.
8008       hardcode_libdir_flag_spec='-L$libdir'
8009       allow_undefined_flag=unsupported
8010       always_export_symbols=no
8011       enable_shared_with_static_runtimes=yes
8012       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8013
8014       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8016         # If the export-symbols file already is a .def file (1st line
8017         # is EXPORTS), use it as is; otherwise, prepend...
8018         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8019           cp $export_symbols $output_objdir/$soname.def;
8020         else
8021           echo EXPORTS > $output_objdir/$soname.def;
8022           cat $export_symbols >> $output_objdir/$soname.def;
8023         fi~
8024         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8025       else
8026         ld_shlibs=no
8027       fi
8028       ;;
8029
8030     interix[3-9]*)
8031       hardcode_direct=no
8032       hardcode_shlibpath_var=no
8033       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8034       export_dynamic_flag_spec='${wl}-E'
8035       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8036       # Instead, shared libraries are loaded at an image base (0x10000000 by
8037       # default) and relocated if they conflict, which is a slow very memory
8038       # consuming and fragmenting process.  To avoid this, we pick a random,
8039       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8040       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8041       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8042       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'
8043       ;;
8044
8045     gnu* | linux* | k*bsd*-gnu)
8046       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8047         tmp_addflag=
8048         case $cc_basename,$host_cpu in
8049         pgcc*)                          # Portland Group C compiler
8050           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'
8051           tmp_addflag=' $pic_flag'
8052           ;;
8053         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8054           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'
8055           tmp_addflag=' $pic_flag -Mnomain' ;;
8056         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8057           tmp_addflag=' -i_dynamic' ;;
8058         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8059           tmp_addflag=' -i_dynamic -nofor_main' ;;
8060         ifc* | ifort*)                  # Intel Fortran compiler
8061           tmp_addflag=' -nofor_main' ;;
8062         esac
8063         case `$CC -V 2>&1 | sed 5q` in
8064         *Sun\ C*)                       # Sun C 5.9
8065           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'
8066           tmp_sharedflag='-G' ;;
8067         *Sun\ F*)                       # Sun Fortran 8.3
8068           tmp_sharedflag='-G' ;;
8069         *)
8070           tmp_sharedflag='-shared' ;;
8071         esac
8072         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8073
8074         if test $supports_anon_versioning = yes; then
8075           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8076   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8077   $echo "local: *; };" >> $output_objdir/$libname.ver~
8078           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8079         fi
8080         link_all_deplibs=no
8081       else
8082         ld_shlibs=no
8083       fi
8084       ;;
8085
8086     netbsd* | netbsdelf*-gnu)
8087       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8088         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8089         wlarc=
8090       else
8091         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8093       fi
8094       ;;
8095
8096     solaris*)
8097       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8098         ld_shlibs=no
8099         cat <<EOF 1>&2
8100
8101 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8102 *** create shared libraries on Solaris systems.  Therefore, libtool
8103 *** is disabling shared libraries support.  We urge you to upgrade GNU
8104 *** binutils to release 2.9.1 or newer.  Another option is to modify
8105 *** your PATH or compiler configuration so that the native linker is
8106 *** used, and then restart.
8107
8108 EOF
8109       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8110         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8111         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8112       else
8113         ld_shlibs=no
8114       fi
8115       ;;
8116
8117     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8118       case `$LD -v 2>&1` in
8119         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8120         ld_shlibs=no
8121         cat <<_LT_EOF 1>&2
8122
8123 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8124 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8125 *** is disabling shared libraries support.  We urge you to upgrade GNU
8126 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8127 *** your PATH or compiler configuration so that the native linker is
8128 *** used, and then restart.
8129
8130 _LT_EOF
8131         ;;
8132         *)
8133           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8134             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8135             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8136             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8137           else
8138             ld_shlibs=no
8139           fi
8140         ;;
8141       esac
8142       ;;
8143
8144     sunos4*)
8145       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8146       wlarc=
8147       hardcode_direct=yes
8148       hardcode_shlibpath_var=no
8149       ;;
8150
8151     *)
8152       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8153         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8155       else
8156         ld_shlibs=no
8157       fi
8158       ;;
8159     esac
8160
8161     if test "$ld_shlibs" = no; then
8162       runpath_var=
8163       hardcode_libdir_flag_spec=
8164       export_dynamic_flag_spec=
8165       whole_archive_flag_spec=
8166     fi
8167   else
8168     # PORTME fill in a description of your system's linker (not GNU ld)
8169     case $host_os in
8170     aix3*)
8171       allow_undefined_flag=unsupported
8172       always_export_symbols=yes
8173       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'
8174       # Note: this linker hardcodes the directories in LIBPATH if there
8175       # are no directories specified by -L.
8176       hardcode_minus_L=yes
8177       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8178         # Neither direct hardcoding nor static linking is supported with a
8179         # broken collect2.
8180         hardcode_direct=unsupported
8181       fi
8182       ;;
8183
8184     aix[4-9]*)
8185       if test "$host_cpu" = ia64; then
8186         # On IA64, the linker does run time linking by default, so we don't
8187         # have to do anything special.
8188         aix_use_runtimelinking=no
8189         exp_sym_flag='-Bexport'
8190         no_entry_flag=""
8191       else
8192         # If we're using GNU nm, then we don't want the "-C" option.
8193         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8194         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8195           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'
8196         else
8197           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'
8198         fi
8199         aix_use_runtimelinking=no
8200
8201         # Test if we are trying to use run time linking or normal
8202         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8203         # need to do runtime linking.
8204         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8205           for ld_flag in $LDFLAGS; do
8206           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8207             aix_use_runtimelinking=yes
8208             break
8209           fi
8210           done
8211           ;;
8212         esac
8213
8214         exp_sym_flag='-bexport'
8215         no_entry_flag='-bnoentry'
8216       fi
8217
8218       # When large executables or shared objects are built, AIX ld can
8219       # have problems creating the table of contents.  If linking a library
8220       # or program results in "error TOC overflow" add -mminimal-toc to
8221       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8222       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8223
8224       archive_cmds=''
8225       hardcode_direct=yes
8226       hardcode_libdir_separator=':'
8227       link_all_deplibs=yes
8228
8229       if test "$GCC" = yes; then
8230         case $host_os in aix4.[012]|aix4.[012].*)
8231         # We only want to do this on AIX 4.2 and lower, the check
8232         # below for broken collect2 doesn't work under 4.3+
8233           collect2name=`${CC} -print-prog-name=collect2`
8234           if test -f "$collect2name" && \
8235            strings "$collect2name" | grep resolve_lib_name >/dev/null
8236           then
8237           # We have reworked collect2
8238           :
8239           else
8240           # We have old collect2
8241           hardcode_direct=unsupported
8242           # It fails to find uninstalled libraries when the uninstalled
8243           # path is not listed in the libpath.  Setting hardcode_minus_L
8244           # to unsupported forces relinking
8245           hardcode_minus_L=yes
8246           hardcode_libdir_flag_spec='-L$libdir'
8247           hardcode_libdir_separator=
8248           fi
8249           ;;
8250         esac
8251         shared_flag='-shared'
8252         if test "$aix_use_runtimelinking" = yes; then
8253           shared_flag="$shared_flag "'${wl}-G'
8254         fi
8255       else
8256         # not using gcc
8257         if test "$host_cpu" = ia64; then
8258         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8259         # chokes on -Wl,-G. The following line is correct:
8260           shared_flag='-G'
8261         else
8262           if test "$aix_use_runtimelinking" = yes; then
8263             shared_flag='${wl}-G'
8264           else
8265             shared_flag='${wl}-bM:SRE'
8266           fi
8267         fi
8268       fi
8269
8270       # It seems that -bexpall does not export symbols beginning with
8271       # underscore (_), so it is better to generate a list of symbols to export.
8272       always_export_symbols=yes
8273       if test "$aix_use_runtimelinking" = yes; then
8274         # Warning - without using the other runtime loading flags (-brtl),
8275         # -berok will link without error, but may produce a broken library.
8276         allow_undefined_flag='-berok'
8277        # Determine the default libpath from the value encoded in an empty executable.
8278        cat >conftest.$ac_ext <<_ACEOF
8279 /* confdefs.h.  */
8280 _ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h.  */
8284
8285 int
8286 main ()
8287 {
8288
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (ac_try="$ac_link"
8295 case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_link") 2>conftest.er1
8301   ac_status=$?
8302   grep -v '^ *+' conftest.er1 >conftest.err
8303   rm -f conftest.er1
8304   cat conftest.err >&5
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); } && {
8307          test -z "$ac_c_werror_flag" ||
8308          test ! -s conftest.err
8309        } && test -s conftest$ac_exeext &&
8310        $as_test_x conftest$ac_exeext; then
8311
8312 lt_aix_libpath_sed='
8313     /Import File Strings/,/^$/ {
8314         /^0/ {
8315             s/^0  *\(.*\)$/\1/
8316             p
8317         }
8318     }'
8319 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8320 # Check for a 64-bit object if we didn't find anything.
8321 if test -z "$aix_libpath"; then
8322   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8323 fi
8324 else
8325   echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328
8329 fi
8330
8331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8332       conftest$ac_exeext conftest.$ac_ext
8333 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8334
8335        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8336         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"
8337        else
8338         if test "$host_cpu" = ia64; then
8339           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8340           allow_undefined_flag="-z nodefs"
8341           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"
8342         else
8343          # Determine the default libpath from the value encoded in an empty executable.
8344          cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350
8351 int
8352 main ()
8353 {
8354
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (ac_try="$ac_link"
8361 case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366   (eval "$ac_link") 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } && {
8373          test -z "$ac_c_werror_flag" ||
8374          test ! -s conftest.err
8375        } && test -s conftest$ac_exeext &&
8376        $as_test_x conftest$ac_exeext; then
8377
8378 lt_aix_libpath_sed='
8379     /Import File Strings/,/^$/ {
8380         /^0/ {
8381             s/^0  *\(.*\)$/\1/
8382             p
8383         }
8384     }'
8385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8386 # Check for a 64-bit object if we didn't find anything.
8387 if test -z "$aix_libpath"; then
8388   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8389 fi
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394
8395 fi
8396
8397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8398       conftest$ac_exeext conftest.$ac_ext
8399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8400
8401          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8402           # Warning - without using the other run time loading flags,
8403           # -berok will link without error, but may produce a broken library.
8404           no_undefined_flag=' ${wl}-bernotok'
8405           allow_undefined_flag=' ${wl}-berok'
8406           # Exported symbols can be pulled into shared objects from archives
8407           whole_archive_flag_spec='$convenience'
8408           archive_cmds_need_lc=yes
8409           # This is similar to how AIX traditionally builds its shared libraries.
8410           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'
8411         fi
8412       fi
8413       ;;
8414
8415     amigaos*)
8416       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)'
8417       hardcode_libdir_flag_spec='-L$libdir'
8418       hardcode_minus_L=yes
8419       # see comment about different semantics on the GNU ld section
8420       ld_shlibs=no
8421       ;;
8422
8423     bsdi[45]*)
8424       export_dynamic_flag_spec=-rdynamic
8425       ;;
8426
8427     cygwin* | mingw* | pw32*)
8428       # When not using gcc, we currently assume that we are using
8429       # Microsoft Visual C++.
8430       # hardcode_libdir_flag_spec is actually meaningless, as there is
8431       # no search path for DLLs.
8432       hardcode_libdir_flag_spec=' '
8433       allow_undefined_flag=unsupported
8434       # Tell ltmain to make .lib files, not .a files.
8435       libext=lib
8436       # Tell ltmain to make .dll files, not .so files.
8437       shrext_cmds=".dll"
8438       # FIXME: Setting linknames here is a bad hack.
8439       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8440       # The linker will automatically build a .lib file if we build a DLL.
8441       old_archive_From_new_cmds='true'
8442       # FIXME: Should let the user specify the lib program.
8443       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8444       fix_srcfile_path='`cygpath -w "$srcfile"`'
8445       enable_shared_with_static_runtimes=yes
8446       ;;
8447
8448     darwin* | rhapsody*)
8449       case $host_os in
8450         rhapsody* | darwin1.[012])
8451          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8452          ;;
8453        *) # Darwin 1.3 on
8454          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8455            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8456          else
8457            case ${MACOSX_DEPLOYMENT_TARGET} in
8458              10.[012])
8459                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8460                ;;
8461              10.*)
8462                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8463                ;;
8464            esac
8465          fi
8466          ;;
8467       esac
8468       archive_cmds_need_lc=no
8469       hardcode_direct=no
8470       hardcode_automatic=yes
8471       hardcode_shlibpath_var=unsupported
8472       whole_archive_flag_spec=''
8473       link_all_deplibs=yes
8474     if test "$GCC" = yes ; then
8475         output_verbose_link_cmd='echo'
8476         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8477         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8478         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}"
8479         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}"
8480     else
8481       case $cc_basename in
8482         xlc*)
8483          output_verbose_link_cmd='echo'
8484          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8485          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8486           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8487          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}'
8488           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}'
8489           ;;
8490        *)
8491          ld_shlibs=no
8492           ;;
8493       esac
8494     fi
8495       ;;
8496
8497     dgux*)
8498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499       hardcode_libdir_flag_spec='-L$libdir'
8500       hardcode_shlibpath_var=no
8501       ;;
8502
8503     freebsd1*)
8504       ld_shlibs=no
8505       ;;
8506
8507     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8508     # support.  Future versions do this automatically, but an explicit c++rt0.o
8509     # does not break anything, and helps significantly (at the cost of a little
8510     # extra space).
8511     freebsd2.2*)
8512       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8513       hardcode_libdir_flag_spec='-R$libdir'
8514       hardcode_direct=yes
8515       hardcode_shlibpath_var=no
8516       ;;
8517
8518     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8519     freebsd2*)
8520       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8521       hardcode_direct=yes
8522       hardcode_minus_L=yes
8523       hardcode_shlibpath_var=no
8524       ;;
8525
8526     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8527     freebsd* | dragonfly*)
8528       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8529       hardcode_libdir_flag_spec='-R$libdir'
8530       hardcode_direct=yes
8531       hardcode_shlibpath_var=no
8532       ;;
8533
8534     hpux9*)
8535       if test "$GCC" = yes; then
8536         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'
8537       else
8538         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'
8539       fi
8540       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8541       hardcode_libdir_separator=:
8542       hardcode_direct=yes
8543
8544       # hardcode_minus_L: Not really in the search PATH,
8545       # but as the default location of the library.
8546       hardcode_minus_L=yes
8547       export_dynamic_flag_spec='${wl}-E'
8548       ;;
8549
8550     hpux10*)
8551       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8552         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8553       else
8554         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8555       fi
8556       if test "$with_gnu_ld" = no; then
8557         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8558         hardcode_libdir_separator=:
8559
8560         hardcode_direct=yes
8561         export_dynamic_flag_spec='${wl}-E'
8562
8563         # hardcode_minus_L: Not really in the search PATH,
8564         # but as the default location of the library.
8565         hardcode_minus_L=yes
8566       fi
8567       ;;
8568
8569     hpux11*)
8570       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8571         case $host_cpu in
8572         hppa*64*)
8573           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8574           ;;
8575         ia64*)
8576           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8577           ;;
8578         *)
8579           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8580           ;;
8581         esac
8582       else
8583         case $host_cpu in
8584         hppa*64*)
8585           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8586           ;;
8587         ia64*)
8588           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8589           ;;
8590         *)
8591           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8592           ;;
8593         esac
8594       fi
8595       if test "$with_gnu_ld" = no; then
8596         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8597         hardcode_libdir_separator=:
8598
8599         case $host_cpu in
8600         hppa*64*|ia64*)
8601           hardcode_libdir_flag_spec_ld='+b $libdir'
8602           hardcode_direct=no
8603           hardcode_shlibpath_var=no
8604           ;;
8605         *)
8606           hardcode_direct=yes
8607           export_dynamic_flag_spec='${wl}-E'
8608
8609           # hardcode_minus_L: Not really in the search PATH,
8610           # but as the default location of the library.
8611           hardcode_minus_L=yes
8612           ;;
8613         esac
8614       fi
8615       ;;
8616
8617     irix5* | irix6* | nonstopux*)
8618       if test "$GCC" = yes; then
8619         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'
8620       else
8621         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'
8622         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8623       fi
8624       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625       hardcode_libdir_separator=:
8626       link_all_deplibs=yes
8627       ;;
8628
8629     netbsd* | netbsdelf*-gnu)
8630       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8631         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8632       else
8633         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8634       fi
8635       hardcode_libdir_flag_spec='-R$libdir'
8636       hardcode_direct=yes
8637       hardcode_shlibpath_var=no
8638       ;;
8639
8640     newsos6)
8641       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8642       hardcode_direct=yes
8643       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644       hardcode_libdir_separator=:
8645       hardcode_shlibpath_var=no
8646       ;;
8647
8648     openbsd*)
8649       if test -f /usr/libexec/ld.so; then
8650         hardcode_direct=yes
8651         hardcode_shlibpath_var=no
8652         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8653           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8654           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8655           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8656           export_dynamic_flag_spec='${wl}-E'
8657         else
8658           case $host_os in
8659            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8660              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661              hardcode_libdir_flag_spec='-R$libdir'
8662              ;;
8663            *)
8664              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8665              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8666              ;;
8667           esac
8668         fi
8669       else
8670         ld_shlibs=no
8671       fi
8672       ;;
8673
8674     os2*)
8675       hardcode_libdir_flag_spec='-L$libdir'
8676       hardcode_minus_L=yes
8677       allow_undefined_flag=unsupported
8678       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'
8679       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8680       ;;
8681
8682     osf3*)
8683       if test "$GCC" = yes; then
8684         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8685         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'
8686       else
8687         allow_undefined_flag=' -expect_unresolved \*'
8688         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'
8689       fi
8690       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8691       hardcode_libdir_separator=:
8692       ;;
8693
8694     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8695       if test "$GCC" = yes; then
8696         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8697         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'
8698         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8699       else
8700         allow_undefined_flag=' -expect_unresolved \*'
8701         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'
8702         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8703         $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'
8704
8705         # Both c and cxx compiler support -rpath directly
8706         hardcode_libdir_flag_spec='-rpath $libdir'
8707       fi
8708       hardcode_libdir_separator=:
8709       ;;
8710
8711     solaris*)
8712       no_undefined_flag=' -z text'
8713       if test "$GCC" = yes; then
8714         wlarc='${wl}'
8715         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8717           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8718       else
8719         wlarc=''
8720         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8722         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8723       fi
8724       hardcode_libdir_flag_spec='-R$libdir'
8725       hardcode_shlibpath_var=no
8726       case $host_os in
8727       solaris2.[0-5] | solaris2.[0-5].*) ;;
8728       *)
8729         # The compiler driver will combine and reorder linker options,
8730         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8731         # but is careful enough not to reorder.
8732         # Supported since Solaris 2.6 (maybe 2.5.1?)
8733         if test "$GCC" = yes; then
8734           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8735         else
8736           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8737         fi
8738         ;;
8739       esac
8740       link_all_deplibs=yes
8741       ;;
8742
8743     sunos4*)
8744       if test "x$host_vendor" = xsequent; then
8745         # Use $CC to link under sequent, because it throws in some extra .o
8746         # files that make .init and .fini sections work.
8747         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8748       else
8749         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8750       fi
8751       hardcode_libdir_flag_spec='-L$libdir'
8752       hardcode_direct=yes
8753       hardcode_minus_L=yes
8754       hardcode_shlibpath_var=no
8755       ;;
8756
8757     sysv4)
8758       case $host_vendor in
8759         sni)
8760           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8761           hardcode_direct=yes # is this really true???
8762         ;;
8763         siemens)
8764           ## LD is ld it makes a PLAMLIB
8765           ## CC just makes a GrossModule.
8766           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8767           reload_cmds='$CC -r -o $output$reload_objs'
8768           hardcode_direct=no
8769         ;;
8770         motorola)
8771           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8772           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8773         ;;
8774       esac
8775       runpath_var='LD_RUN_PATH'
8776       hardcode_shlibpath_var=no
8777       ;;
8778
8779     sysv4.3*)
8780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8781       hardcode_shlibpath_var=no
8782       export_dynamic_flag_spec='-Bexport'
8783       ;;
8784
8785     sysv4*MP*)
8786       if test -d /usr/nec; then
8787         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8788         hardcode_shlibpath_var=no
8789         runpath_var=LD_RUN_PATH
8790         hardcode_runpath_var=yes
8791         ld_shlibs=yes
8792       fi
8793       ;;
8794
8795     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8796       no_undefined_flag='${wl}-z,text'
8797       archive_cmds_need_lc=no
8798       hardcode_shlibpath_var=no
8799       runpath_var='LD_RUN_PATH'
8800
8801       if test "$GCC" = yes; then
8802         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8804       else
8805         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8807       fi
8808       ;;
8809
8810     sysv5* | sco3.2v5* | sco5v6*)
8811       # Note: We can NOT use -z defs as we might desire, because we do not
8812       # link with -lc, and that would cause any symbols used from libc to
8813       # always be unresolved, which means just about no library would
8814       # ever link correctly.  If we're not using GNU ld we use -z text
8815       # though, which does catch some bad symbols but isn't as heavy-handed
8816       # as -z defs.
8817       no_undefined_flag='${wl}-z,text'
8818       allow_undefined_flag='${wl}-z,nodefs'
8819       archive_cmds_need_lc=no
8820       hardcode_shlibpath_var=no
8821       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8822       hardcode_libdir_separator=':'
8823       link_all_deplibs=yes
8824       export_dynamic_flag_spec='${wl}-Bexport'
8825       runpath_var='LD_RUN_PATH'
8826
8827       if test "$GCC" = yes; then
8828         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8830       else
8831         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8833       fi
8834       ;;
8835
8836     uts4*)
8837       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838       hardcode_libdir_flag_spec='-L$libdir'
8839       hardcode_shlibpath_var=no
8840       ;;
8841
8842     *)
8843       ld_shlibs=no
8844       ;;
8845     esac
8846   fi
8847
8848 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8849 echo "${ECHO_T}$ld_shlibs" >&6; }
8850 test "$ld_shlibs" = no && can_build_shared=no
8851
8852 #
8853 # Do we need to explicitly link libc?
8854 #
8855 case "x$archive_cmds_need_lc" in
8856 x|xyes)
8857   # Assume -lc should be added
8858   archive_cmds_need_lc=yes
8859
8860   if test "$enable_shared" = yes && test "$GCC" = yes; then
8861     case $archive_cmds in
8862     *'~'*)
8863       # FIXME: we may have to deal with multi-command sequences.
8864       ;;
8865     '$CC '*)
8866       # Test whether the compiler implicitly links with -lc since on some
8867       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8868       # to ld, don't add -lc before -lgcc.
8869       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8870 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8871       $rm conftest*
8872       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8873
8874       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8875   (eval $ac_compile) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } 2>conftest.err; then
8879         soname=conftest
8880         lib=conftest
8881         libobjs=conftest.$ac_objext
8882         deplibs=
8883         wl=$lt_prog_compiler_wl
8884         pic_flag=$lt_prog_compiler_pic
8885         compiler_flags=-v
8886         linker_flags=-v
8887         verstring=
8888         output_objdir=.
8889         libname=conftest
8890         lt_save_allow_undefined_flag=$allow_undefined_flag
8891         allow_undefined_flag=
8892         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8893   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); }
8897         then
8898           archive_cmds_need_lc=no
8899         else
8900           archive_cmds_need_lc=yes
8901         fi
8902         allow_undefined_flag=$lt_save_allow_undefined_flag
8903       else
8904         cat conftest.err 1>&5
8905       fi
8906       $rm conftest*
8907       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8908 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8909       ;;
8910     esac
8911   fi
8912   ;;
8913 esac
8914
8915 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8916 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8917 library_names_spec=
8918 libname_spec='lib$name'
8919 soname_spec=
8920 shrext_cmds=".so"
8921 postinstall_cmds=
8922 postuninstall_cmds=
8923 finish_cmds=
8924 finish_eval=
8925 shlibpath_var=
8926 shlibpath_overrides_runpath=unknown
8927 version_type=none
8928 dynamic_linker="$host_os ld.so"
8929 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8930
8931 if test "$GCC" = yes; then
8932   case $host_os in
8933     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8934     *) lt_awk_arg="/^libraries:/" ;;
8935   esac
8936   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8937   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8938     # if the path contains ";" then we assume it to be the separator
8939     # otherwise default to the standard path separator (i.e. ":") - it is
8940     # assumed that no part of a normal pathname contains ";" but that should
8941     # okay in the real world where ";" in dirpaths is itself problematic.
8942     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8943   else
8944     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8945   fi
8946   # Ok, now we have the path, separated by spaces, we can step through it
8947   # and add multilib dir if necessary.
8948   lt_tmp_lt_search_path_spec=
8949   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8950   for lt_sys_path in $lt_search_path_spec; do
8951     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8952       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8953     else
8954       test -d "$lt_sys_path" && \
8955         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8956     fi
8957   done
8958   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8959 BEGIN {RS=" "; FS="/|\n";} {
8960   lt_foo="";
8961   lt_count=0;
8962   for (lt_i = NF; lt_i > 0; lt_i--) {
8963     if ($lt_i != "" && $lt_i != ".") {
8964       if ($lt_i == "..") {
8965         lt_count++;
8966       } else {
8967         if (lt_count == 0) {
8968           lt_foo="/" $lt_i lt_foo;
8969         } else {
8970           lt_count--;
8971         }
8972       }
8973     }
8974   }
8975   if (lt_foo != "") { lt_freq[lt_foo]++; }
8976   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8977 }'`
8978   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8979 else
8980   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8981 fi
8982 need_lib_prefix=unknown
8983 hardcode_into_libs=no
8984
8985 # when you set need_version to no, make sure it does not cause -set_version
8986 # flags to be left without arguments
8987 need_version=unknown
8988
8989 case $host_os in
8990 aix3*)
8991   version_type=linux
8992   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8993   shlibpath_var=LIBPATH
8994
8995   # AIX 3 has no versioning support, so we append a major version to the name.
8996   soname_spec='${libname}${release}${shared_ext}$major'
8997   ;;
8998
8999 aix[4-9]*)
9000   version_type=linux
9001   need_lib_prefix=no
9002   need_version=no
9003   hardcode_into_libs=yes
9004   if test "$host_cpu" = ia64; then
9005     # AIX 5 supports IA64
9006     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9007     shlibpath_var=LD_LIBRARY_PATH
9008   else
9009     # With GCC up to 2.95.x, collect2 would create an import file
9010     # for dependence libraries.  The import file would start with
9011     # the line `#! .'.  This would cause the generated library to
9012     # depend on `.', always an invalid library.  This was fixed in
9013     # development snapshots of GCC prior to 3.0.
9014     case $host_os in
9015       aix4 | aix4.[01] | aix4.[01].*)
9016       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9017            echo ' yes '
9018            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9019         :
9020       else
9021         can_build_shared=no
9022       fi
9023       ;;
9024     esac
9025     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9026     # soname into executable. Probably we can add versioning support to
9027     # collect2, so additional links can be useful in future.
9028     if test "$aix_use_runtimelinking" = yes; then
9029       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9030       # instead of lib<name>.a to let people know that these are not
9031       # typical AIX shared libraries.
9032       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033     else
9034       # We preserve .a as extension for shared libraries through AIX4.2
9035       # and later when we are not doing run time linking.
9036       library_names_spec='${libname}${release}.a $libname.a'
9037       soname_spec='${libname}${release}${shared_ext}$major'
9038     fi
9039     shlibpath_var=LIBPATH
9040   fi
9041   ;;
9042
9043 amigaos*)
9044   library_names_spec='$libname.ixlibrary $libname.a'
9045   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9046   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'
9047   ;;
9048
9049 beos*)
9050   library_names_spec='${libname}${shared_ext}'
9051   dynamic_linker="$host_os ld.so"
9052   shlibpath_var=LIBRARY_PATH
9053   ;;
9054
9055 bsdi[45]*)
9056   version_type=linux
9057   need_version=no
9058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059   soname_spec='${libname}${release}${shared_ext}$major'
9060   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9061   shlibpath_var=LD_LIBRARY_PATH
9062   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9063   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9064   # the default ld.so.conf also contains /usr/contrib/lib and
9065   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9066   # libtool to hard-code these into programs
9067   ;;
9068
9069 cygwin* | mingw* | pw32*)
9070   version_type=windows
9071   shrext_cmds=".dll"
9072   need_version=no
9073   need_lib_prefix=no
9074
9075   case $GCC,$host_os in
9076   yes,cygwin* | yes,mingw* | yes,pw32*)
9077     library_names_spec='$libname.dll.a'
9078     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9079     postinstall_cmds='base_file=`basename \${file}`~
9080       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9081       dldir=$destdir/`dirname \$dlpath`~
9082       test -d \$dldir || mkdir -p \$dldir~
9083       $install_prog $dir/$dlname \$dldir/$dlname~
9084       chmod a+x \$dldir/$dlname'
9085     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9086       dlpath=$dir/\$dldll~
9087        $rm \$dlpath'
9088     shlibpath_overrides_runpath=yes
9089
9090     case $host_os in
9091     cygwin*)
9092       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9093       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9094       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9095       ;;
9096     mingw*)
9097       # MinGW DLLs use traditional 'lib' prefix
9098       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9099       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9100       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9101         # It is most probably a Windows format PATH printed by
9102         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9103         # path with ; separators, and with drive letters. We can handle the
9104         # drive letters (cygwin fileutils understands them), so leave them,
9105         # especially as we might pass files found there to a mingw objdump,
9106         # which wouldn't understand a cygwinified path. Ahh.
9107         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9108       else
9109         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9110       fi
9111       ;;
9112     pw32*)
9113       # pw32 DLLs use 'pw' prefix rather than 'lib'
9114       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9115       ;;
9116     esac
9117     ;;
9118
9119   *)
9120     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9121     ;;
9122   esac
9123   dynamic_linker='Win32 ld.exe'
9124   # FIXME: first we should search . and the directory the executable is in
9125   shlibpath_var=PATH
9126   ;;
9127
9128 darwin* | rhapsody*)
9129   dynamic_linker="$host_os dyld"
9130   version_type=darwin
9131   need_lib_prefix=no
9132   need_version=no
9133   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9134   soname_spec='${libname}${release}${major}$shared_ext'
9135   shlibpath_overrides_runpath=yes
9136   shlibpath_var=DYLD_LIBRARY_PATH
9137   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9138
9139   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9140   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9141   ;;
9142
9143 dgux*)
9144   version_type=linux
9145   need_lib_prefix=no
9146   need_version=no
9147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   shlibpath_var=LD_LIBRARY_PATH
9150   ;;
9151
9152 freebsd1*)
9153   dynamic_linker=no
9154   ;;
9155
9156 freebsd* | dragonfly*)
9157   # DragonFly does not have aout.  When/if they implement a new
9158   # versioning mechanism, adjust this.
9159   if test -x /usr/bin/objformat; then
9160     objformat=`/usr/bin/objformat`
9161   else
9162     case $host_os in
9163     freebsd[123]*) objformat=aout ;;
9164     *) objformat=elf ;;
9165     esac
9166   fi
9167   version_type=freebsd-$objformat
9168   case $version_type in
9169     freebsd-elf*)
9170       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9171       need_version=no
9172       need_lib_prefix=no
9173       ;;
9174     freebsd-*)
9175       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9176       need_version=yes
9177       ;;
9178   esac
9179   shlibpath_var=LD_LIBRARY_PATH
9180   case $host_os in
9181   freebsd2*)
9182     shlibpath_overrides_runpath=yes
9183     ;;
9184   freebsd3.[01]* | freebsdelf3.[01]*)
9185     shlibpath_overrides_runpath=yes
9186     hardcode_into_libs=yes
9187     ;;
9188   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9189   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9190     shlibpath_overrides_runpath=no
9191     hardcode_into_libs=yes
9192     ;;
9193   *) # from 4.6 on, and DragonFly
9194     shlibpath_overrides_runpath=yes
9195     hardcode_into_libs=yes
9196     ;;
9197   esac
9198   ;;
9199
9200 gnu*)
9201   version_type=linux
9202   need_lib_prefix=no
9203   need_version=no
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9205   soname_spec='${libname}${release}${shared_ext}$major'
9206   shlibpath_var=LD_LIBRARY_PATH
9207   hardcode_into_libs=yes
9208   ;;
9209
9210 hpux9* | hpux10* | hpux11*)
9211   # Give a soname corresponding to the major version so that dld.sl refuses to
9212   # link against other versions.
9213   version_type=sunos
9214   need_lib_prefix=no
9215   need_version=no
9216   case $host_cpu in
9217   ia64*)
9218     shrext_cmds='.so'
9219     hardcode_into_libs=yes
9220     dynamic_linker="$host_os dld.so"
9221     shlibpath_var=LD_LIBRARY_PATH
9222     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9223     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9224     soname_spec='${libname}${release}${shared_ext}$major'
9225     if test "X$HPUX_IA64_MODE" = X32; then
9226       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9227     else
9228       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9229     fi
9230     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9231     ;;
9232    hppa*64*)
9233      shrext_cmds='.sl'
9234      hardcode_into_libs=yes
9235      dynamic_linker="$host_os dld.sl"
9236      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9237      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9238      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239      soname_spec='${libname}${release}${shared_ext}$major'
9240      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9241      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9242      ;;
9243    *)
9244     shrext_cmds='.sl'
9245     dynamic_linker="$host_os dld.sl"
9246     shlibpath_var=SHLIB_PATH
9247     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9249     soname_spec='${libname}${release}${shared_ext}$major'
9250     ;;
9251   esac
9252   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9253   postinstall_cmds='chmod 555 $lib'
9254   ;;
9255
9256 interix[3-9]*)
9257   version_type=linux
9258   need_lib_prefix=no
9259   need_version=no
9260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9261   soname_spec='${libname}${release}${shared_ext}$major'
9262   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9263   shlibpath_var=LD_LIBRARY_PATH
9264   shlibpath_overrides_runpath=no
9265   hardcode_into_libs=yes
9266   ;;
9267
9268 irix5* | irix6* | nonstopux*)
9269   case $host_os in
9270     nonstopux*) version_type=nonstopux ;;
9271     *)
9272         if test "$lt_cv_prog_gnu_ld" = yes; then
9273                 version_type=linux
9274         else
9275                 version_type=irix
9276         fi ;;
9277   esac
9278   need_lib_prefix=no
9279   need_version=no
9280   soname_spec='${libname}${release}${shared_ext}$major'
9281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9282   case $host_os in
9283   irix5* | nonstopux*)
9284     libsuff= shlibsuff=
9285     ;;
9286   *)
9287     case $LD in # libtool.m4 will add one of these switches to LD
9288     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9289       libsuff= shlibsuff= libmagic=32-bit;;
9290     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9291       libsuff=32 shlibsuff=N32 libmagic=N32;;
9292     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9293       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9294     *) libsuff= shlibsuff= libmagic=never-match;;
9295     esac
9296     ;;
9297   esac
9298   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9299   shlibpath_overrides_runpath=no
9300   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9301   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9302   hardcode_into_libs=yes
9303   ;;
9304
9305 # No shared lib support for Linux oldld, aout, or coff.
9306 linux*oldld* | linux*aout* | linux*coff*)
9307   dynamic_linker=no
9308   ;;
9309
9310 # This must be Linux ELF.
9311 linux* | k*bsd*-gnu)
9312   version_type=linux
9313   need_lib_prefix=no
9314   need_version=no
9315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9316   soname_spec='${libname}${release}${shared_ext}$major'
9317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9318   shlibpath_var=LD_LIBRARY_PATH
9319   shlibpath_overrides_runpath=no
9320   # This implies no fast_install, which is unacceptable.
9321   # Some rework will be needed to allow for fast_install
9322   # before this can be enabled.
9323   hardcode_into_libs=yes
9324
9325   # Append ld.so.conf contents to the search path
9326   if test -f /etc/ld.so.conf; then
9327     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' ' '`
9328     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9329   fi
9330
9331   # We used to test for /lib/ld.so.1 and disable shared libraries on
9332   # powerpc, because MkLinux only supported shared libraries with the
9333   # GNU dynamic linker.  Since this was broken with cross compilers,
9334   # most powerpc-linux boxes support dynamic linking these days and
9335   # people can always --disable-shared, the test was removed, and we
9336   # assume the GNU/Linux dynamic linker is in use.
9337   dynamic_linker='GNU/Linux ld.so'
9338   ;;
9339
9340 netbsdelf*-gnu)
9341   version_type=linux
9342   need_lib_prefix=no
9343   need_version=no
9344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9345   soname_spec='${libname}${release}${shared_ext}$major'
9346   shlibpath_var=LD_LIBRARY_PATH
9347   shlibpath_overrides_runpath=no
9348   hardcode_into_libs=yes
9349   dynamic_linker='NetBSD ld.elf_so'
9350   ;;
9351
9352 netbsd*)
9353   version_type=sunos
9354   need_lib_prefix=no
9355   need_version=no
9356   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9358     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9359     dynamic_linker='NetBSD (a.out) ld.so'
9360   else
9361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9362     soname_spec='${libname}${release}${shared_ext}$major'
9363     dynamic_linker='NetBSD ld.elf_so'
9364   fi
9365   shlibpath_var=LD_LIBRARY_PATH
9366   shlibpath_overrides_runpath=yes
9367   hardcode_into_libs=yes
9368   ;;
9369
9370 newsos6)
9371   version_type=linux
9372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9373   shlibpath_var=LD_LIBRARY_PATH
9374   shlibpath_overrides_runpath=yes
9375   ;;
9376
9377 nto-qnx*)
9378   version_type=linux
9379   need_lib_prefix=no
9380   need_version=no
9381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9382   soname_spec='${libname}${release}${shared_ext}$major'
9383   shlibpath_var=LD_LIBRARY_PATH
9384   shlibpath_overrides_runpath=yes
9385   ;;
9386
9387 openbsd*)
9388   version_type=sunos
9389   sys_lib_dlsearch_path_spec="/usr/lib"
9390   need_lib_prefix=no
9391   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9392   case $host_os in
9393     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9394     *)                         need_version=no  ;;
9395   esac
9396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9397   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9398   shlibpath_var=LD_LIBRARY_PATH
9399   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9400     case $host_os in
9401       openbsd2.[89] | openbsd2.[89].*)
9402         shlibpath_overrides_runpath=no
9403         ;;
9404       *)
9405         shlibpath_overrides_runpath=yes
9406         ;;
9407       esac
9408   else
9409     shlibpath_overrides_runpath=yes
9410   fi
9411   ;;
9412
9413 os2*)
9414   libname_spec='$name'
9415   shrext_cmds=".dll"
9416   need_lib_prefix=no
9417   library_names_spec='$libname${shared_ext} $libname.a'
9418   dynamic_linker='OS/2 ld.exe'
9419   shlibpath_var=LIBPATH
9420   ;;
9421
9422 osf3* | osf4* | osf5*)
9423   version_type=osf
9424   need_lib_prefix=no
9425   need_version=no
9426   soname_spec='${libname}${release}${shared_ext}$major'
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428   shlibpath_var=LD_LIBRARY_PATH
9429   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9430   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9431   ;;
9432
9433 rdos*)
9434   dynamic_linker=no
9435   ;;
9436
9437 solaris*)
9438   version_type=linux
9439   need_lib_prefix=no
9440   need_version=no
9441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442   soname_spec='${libname}${release}${shared_ext}$major'
9443   shlibpath_var=LD_LIBRARY_PATH
9444   shlibpath_overrides_runpath=yes
9445   hardcode_into_libs=yes
9446   # ldd complains unless libraries are executable
9447   postinstall_cmds='chmod +x $lib'
9448   ;;
9449
9450 sunos4*)
9451   version_type=sunos
9452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9453   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9454   shlibpath_var=LD_LIBRARY_PATH
9455   shlibpath_overrides_runpath=yes
9456   if test "$with_gnu_ld" = yes; then
9457     need_lib_prefix=no
9458   fi
9459   need_version=yes
9460   ;;
9461
9462 sysv4 | sysv4.3*)
9463   version_type=linux
9464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465   soname_spec='${libname}${release}${shared_ext}$major'
9466   shlibpath_var=LD_LIBRARY_PATH
9467   case $host_vendor in
9468     sni)
9469       shlibpath_overrides_runpath=no
9470       need_lib_prefix=no
9471       export_dynamic_flag_spec='${wl}-Blargedynsym'
9472       runpath_var=LD_RUN_PATH
9473       ;;
9474     siemens)
9475       need_lib_prefix=no
9476       ;;
9477     motorola)
9478       need_lib_prefix=no
9479       need_version=no
9480       shlibpath_overrides_runpath=no
9481       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9482       ;;
9483   esac
9484   ;;
9485
9486 sysv4*MP*)
9487   if test -d /usr/nec ;then
9488     version_type=linux
9489     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9490     soname_spec='$libname${shared_ext}.$major'
9491     shlibpath_var=LD_LIBRARY_PATH
9492   fi
9493   ;;
9494
9495 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9496   version_type=freebsd-elf
9497   need_lib_prefix=no
9498   need_version=no
9499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9500   soname_spec='${libname}${release}${shared_ext}$major'
9501   shlibpath_var=LD_LIBRARY_PATH
9502   hardcode_into_libs=yes
9503   if test "$with_gnu_ld" = yes; then
9504     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9505     shlibpath_overrides_runpath=no
9506   else
9507     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9508     shlibpath_overrides_runpath=yes
9509     case $host_os in
9510       sco3.2v5*)
9511         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9512         ;;
9513     esac
9514   fi
9515   sys_lib_dlsearch_path_spec='/usr/lib'
9516   ;;
9517
9518 uts4*)
9519   version_type=linux
9520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521   soname_spec='${libname}${release}${shared_ext}$major'
9522   shlibpath_var=LD_LIBRARY_PATH
9523   ;;
9524
9525 *)
9526   dynamic_linker=no
9527   ;;
9528 esac
9529 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9530 echo "${ECHO_T}$dynamic_linker" >&6; }
9531 test "$dynamic_linker" = no && can_build_shared=no
9532
9533 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9537 fi
9538
9539 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9540 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9544 fi
9545
9546 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9547
9548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9549 if test "$GCC" = yes; then
9550   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9551 fi
9552
9553 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9554 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9555 hardcode_action=
9556 if test -n "$hardcode_libdir_flag_spec" || \
9557    test -n "$runpath_var" || \
9558    test "X$hardcode_automatic" = "Xyes" ; then
9559
9560   # We can hardcode non-existant directories.
9561   if test "$hardcode_direct" != no &&
9562      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9563      # have to relink, otherwise we might link with an installed library
9564      # when we should be linking with a yet-to-be-installed one
9565      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9566      test "$hardcode_minus_L" != no; then
9567     # Linking always hardcodes the temporary library directory.
9568     hardcode_action=relink
9569   else
9570     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9571     hardcode_action=immediate
9572   fi
9573 else
9574   # We cannot hardcode anything, or else we can only hardcode existing
9575   # directories.
9576   hardcode_action=unsupported
9577 fi
9578 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9579 echo "${ECHO_T}$hardcode_action" >&6; }
9580
9581 if test "$hardcode_action" = relink; then
9582   # Fast installation is not supported
9583   enable_fast_install=no
9584 elif test "$shlibpath_overrides_runpath" = yes ||
9585      test "$enable_shared" = no; then
9586   # Fast installation is not necessary
9587   enable_fast_install=needless
9588 fi
9589
9590 striplib=
9591 old_striplib=
9592 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9593 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9594 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9595   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9596   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9597   { echo "$as_me:$LINENO: result: yes" >&5
9598 echo "${ECHO_T}yes" >&6; }
9599 else
9600 # FIXME - insert some real tests, host_os isn't really good enough
9601   case $host_os in
9602    darwin*)
9603        if test -n "$STRIP" ; then
9604          striplib="$STRIP -x"
9605          old_striplib="$STRIP -S"
9606          { echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6; }
9608        else
9609   { echo "$as_me:$LINENO: result: no" >&5
9610 echo "${ECHO_T}no" >&6; }
9611 fi
9612        ;;
9613    *)
9614   { echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6; }
9616     ;;
9617   esac
9618 fi
9619
9620 if test "x$enable_dlopen" != xyes; then
9621   enable_dlopen=unknown
9622   enable_dlopen_self=unknown
9623   enable_dlopen_self_static=unknown
9624 else
9625   lt_cv_dlopen=no
9626   lt_cv_dlopen_libs=
9627
9628   case $host_os in
9629   beos*)
9630     lt_cv_dlopen="load_add_on"
9631     lt_cv_dlopen_libs=
9632     lt_cv_dlopen_self=yes
9633     ;;
9634
9635   mingw* | pw32*)
9636     lt_cv_dlopen="LoadLibrary"
9637     lt_cv_dlopen_libs=
9638    ;;
9639
9640   cygwin*)
9641     lt_cv_dlopen="dlopen"
9642     lt_cv_dlopen_libs=
9643    ;;
9644
9645   darwin*)
9646   # if libdl is installed we need to link against it
9647     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9648 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9649 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-ldl  $LIBS"
9654 cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660
9661 /* Override any GCC internal prototype to avoid an error.
9662    Use char because int might match the return type of a GCC
9663    builtin and then its argument prototype would still apply.  */
9664 #ifdef __cplusplus
9665 extern "C"
9666 #endif
9667 char dlopen ();
9668 int
9669 main ()
9670 {
9671 return dlopen ();
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (ac_try="$ac_link"
9678 case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_link") 2>conftest.er1
9684   ac_status=$?
9685   grep -v '^ *+' conftest.er1 >conftest.err
9686   rm -f conftest.er1
9687   cat conftest.err >&5
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } && {
9690          test -z "$ac_c_werror_flag" ||
9691          test ! -s conftest.err
9692        } && test -s conftest$ac_exeext &&
9693        $as_test_x conftest$ac_exeext; then
9694   ac_cv_lib_dl_dlopen=yes
9695 else
9696   echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9698
9699         ac_cv_lib_dl_dlopen=no
9700 fi
9701
9702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9703       conftest$ac_exeext conftest.$ac_ext
9704 LIBS=$ac_check_lib_save_LIBS
9705 fi
9706 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9707 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9708 if test $ac_cv_lib_dl_dlopen = yes; then
9709   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9710 else
9711
9712     lt_cv_dlopen="dyld"
9713     lt_cv_dlopen_libs=
9714     lt_cv_dlopen_self=yes
9715
9716 fi
9717
9718    ;;
9719
9720   *)
9721     { echo "$as_me:$LINENO: checking for shl_load" >&5
9722 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9723 if test "${ac_cv_func_shl_load+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9734 #define shl_load innocuous_shl_load
9735
9736 /* System header to define __stub macros and hopefully few prototypes,
9737     which can conflict with char shl_load (); below.
9738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739     <limits.h> exists even on freestanding compilers.  */
9740
9741 #ifdef __STDC__
9742 # include <limits.h>
9743 #else
9744 # include <assert.h>
9745 #endif
9746
9747 #undef shl_load
9748
9749 /* Override any GCC internal prototype to avoid an error.
9750    Use char because int might match the return type of a GCC
9751    builtin and then its argument prototype would still apply.  */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 char shl_load ();
9756 /* The GNU C library defines this for functions which it implements
9757     to always fail with ENOSYS.  Some functions are actually named
9758     something starting with __ and the normal name is an alias.  */
9759 #if defined __stub_shl_load || defined __stub___shl_load
9760 choke me
9761 #endif
9762
9763 int
9764 main ()
9765 {
9766 return shl_load ();
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9773 case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_link") 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } && {
9785          test -z "$ac_c_werror_flag" ||
9786          test ! -s conftest.err
9787        } && test -s conftest$ac_exeext &&
9788        $as_test_x conftest$ac_exeext; then
9789   ac_cv_func_shl_load=yes
9790 else
9791   echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794         ac_cv_func_shl_load=no
9795 fi
9796
9797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798       conftest$ac_exeext conftest.$ac_ext
9799 fi
9800 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9801 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9802 if test $ac_cv_func_shl_load = yes; then
9803   lt_cv_dlopen="shl_load"
9804 else
9805   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9806 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9807 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   ac_check_lib_save_LIBS=$LIBS
9811 LIBS="-ldld  $LIBS"
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h.  */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h.  */
9818
9819 /* Override any GCC internal prototype to avoid an error.
9820    Use char because int might match the return type of a GCC
9821    builtin and then its argument prototype would still apply.  */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char shl_load ();
9826 int
9827 main ()
9828 {
9829 return shl_load ();
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9836 case "(($ac_try" in
9837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838   *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841   (eval "$ac_link") 2>conftest.er1
9842   ac_status=$?
9843   grep -v '^ *+' conftest.er1 >conftest.err
9844   rm -f conftest.er1
9845   cat conftest.err >&5
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); } && {
9848          test -z "$ac_c_werror_flag" ||
9849          test ! -s conftest.err
9850        } && test -s conftest$ac_exeext &&
9851        $as_test_x conftest$ac_exeext; then
9852   ac_cv_lib_dld_shl_load=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857         ac_cv_lib_dld_shl_load=no
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9861       conftest$ac_exeext conftest.$ac_ext
9862 LIBS=$ac_check_lib_save_LIBS
9863 fi
9864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9865 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9866 if test $ac_cv_lib_dld_shl_load = yes; then
9867   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9868 else
9869   { echo "$as_me:$LINENO: checking for dlopen" >&5
9870 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9871 if test "${ac_cv_func_dlopen+set}" = set; then
9872   echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874   cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h.  */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h.  */
9880 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9882 #define dlopen innocuous_dlopen
9883
9884 /* System header to define __stub macros and hopefully few prototypes,
9885     which can conflict with char dlopen (); below.
9886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9887     <limits.h> exists even on freestanding compilers.  */
9888
9889 #ifdef __STDC__
9890 # include <limits.h>
9891 #else
9892 # include <assert.h>
9893 #endif
9894
9895 #undef dlopen
9896
9897 /* Override any GCC internal prototype to avoid an error.
9898    Use char because int might match the return type of a GCC
9899    builtin and then its argument prototype would still apply.  */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char dlopen ();
9904 /* The GNU C library defines this for functions which it implements
9905     to always fail with ENOSYS.  Some functions are actually named
9906     something starting with __ and the normal name is an alias.  */
9907 #if defined __stub_dlopen || defined __stub___dlopen
9908 choke me
9909 #endif
9910
9911 int
9912 main ()
9913 {
9914 return dlopen ();
9915   ;
9916   return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (ac_try="$ac_link"
9921 case "(($ac_try" in
9922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923   *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926   (eval "$ac_link") 2>conftest.er1
9927   ac_status=$?
9928   grep -v '^ *+' conftest.er1 >conftest.err
9929   rm -f conftest.er1
9930   cat conftest.err >&5
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); } && {
9933          test -z "$ac_c_werror_flag" ||
9934          test ! -s conftest.err
9935        } && test -s conftest$ac_exeext &&
9936        $as_test_x conftest$ac_exeext; then
9937   ac_cv_func_dlopen=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         ac_cv_func_dlopen=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946       conftest$ac_exeext conftest.$ac_ext
9947 fi
9948 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9949 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9950 if test $ac_cv_func_dlopen = yes; then
9951   lt_cv_dlopen="dlopen"
9952 else
9953   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9954 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9956   echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958   ac_check_lib_save_LIBS=$LIBS
9959 LIBS="-ldl  $LIBS"
9960 cat >conftest.$ac_ext <<_ACEOF
9961 /* confdefs.h.  */
9962 _ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h.  */
9966
9967 /* Override any GCC internal prototype to avoid an error.
9968    Use char because int might match the return type of a GCC
9969    builtin and then its argument prototype would still apply.  */
9970 #ifdef __cplusplus
9971 extern "C"
9972 #endif
9973 char dlopen ();
9974 int
9975 main ()
9976 {
9977 return dlopen ();
9978   ;
9979   return 0;
9980 }
9981 _ACEOF
9982 rm -f conftest.$ac_objext conftest$ac_exeext
9983 if { (ac_try="$ac_link"
9984 case "(($ac_try" in
9985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986   *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989   (eval "$ac_link") 2>conftest.er1
9990   ac_status=$?
9991   grep -v '^ *+' conftest.er1 >conftest.err
9992   rm -f conftest.er1
9993   cat conftest.err >&5
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } && {
9996          test -z "$ac_c_werror_flag" ||
9997          test ! -s conftest.err
9998        } && test -s conftest$ac_exeext &&
9999        $as_test_x conftest$ac_exeext; then
10000   ac_cv_lib_dl_dlopen=yes
10001 else
10002   echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10004
10005         ac_cv_lib_dl_dlopen=no
10006 fi
10007
10008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10009       conftest$ac_exeext conftest.$ac_ext
10010 LIBS=$ac_check_lib_save_LIBS
10011 fi
10012 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10013 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10014 if test $ac_cv_lib_dl_dlopen = yes; then
10015   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10016 else
10017   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020   echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022   ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-lsvld  $LIBS"
10024 cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030
10031 /* Override any GCC internal prototype to avoid an error.
10032    Use char because int might match the return type of a GCC
10033    builtin and then its argument prototype would still apply.  */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 char dlopen ();
10038 int
10039 main ()
10040 {
10041 return dlopen ();
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050   *) ac_try_echo=$ac_try;;
10051 esac
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053   (eval "$ac_link") 2>conftest.er1
10054   ac_status=$?
10055   grep -v '^ *+' conftest.er1 >conftest.err
10056   rm -f conftest.er1
10057   cat conftest.err >&5
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); } && {
10060          test -z "$ac_c_werror_flag" ||
10061          test ! -s conftest.err
10062        } && test -s conftest$ac_exeext &&
10063        $as_test_x conftest$ac_exeext; then
10064   ac_cv_lib_svld_dlopen=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069         ac_cv_lib_svld_dlopen=no
10070 fi
10071
10072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10073       conftest$ac_exeext conftest.$ac_ext
10074 LIBS=$ac_check_lib_save_LIBS
10075 fi
10076 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10077 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10078 if test $ac_cv_lib_svld_dlopen = yes; then
10079   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10080 else
10081   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10082 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-ldld  $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h.  */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h.  */
10094
10095 /* Override any GCC internal prototype to avoid an error.
10096    Use char because int might match the return type of a GCC
10097    builtin and then its argument prototype would still apply.  */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 char dld_link ();
10102 int
10103 main ()
10104 {
10105 return dld_link ();
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117   (eval "$ac_link") 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } && {
10124          test -z "$ac_c_werror_flag" ||
10125          test ! -s conftest.err
10126        } && test -s conftest$ac_exeext &&
10127        $as_test_x conftest$ac_exeext; then
10128   ac_cv_lib_dld_dld_link=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133         ac_cv_lib_dld_dld_link=no
10134 fi
10135
10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137       conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10139 fi
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10141 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10142 if test $ac_cv_lib_dld_dld_link = yes; then
10143   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10144 fi
10145
10146
10147 fi
10148
10149
10150 fi
10151
10152
10153 fi
10154
10155
10156 fi
10157
10158
10159 fi
10160
10161     ;;
10162   esac
10163
10164   if test "x$lt_cv_dlopen" != xno; then
10165     enable_dlopen=yes
10166   else
10167     enable_dlopen=no
10168   fi
10169
10170   case $lt_cv_dlopen in
10171   dlopen)
10172     save_CPPFLAGS="$CPPFLAGS"
10173     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10174
10175     save_LDFLAGS="$LDFLAGS"
10176     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10177
10178     save_LIBS="$LIBS"
10179     LIBS="$lt_cv_dlopen_libs $LIBS"
10180
10181     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10182 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10183 if test "${lt_cv_dlopen_self+set}" = set; then
10184   echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186           if test "$cross_compiling" = yes; then :
10187   lt_cv_dlopen_self=cross
10188 else
10189   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10190   lt_status=$lt_dlunknown
10191   cat > conftest.$ac_ext <<EOF
10192 #line 10192 "configure"
10193 #include "confdefs.h"
10194
10195 #if HAVE_DLFCN_H
10196 #include <dlfcn.h>
10197 #endif
10198
10199 #include <stdio.h>
10200
10201 #ifdef RTLD_GLOBAL
10202 #  define LT_DLGLOBAL           RTLD_GLOBAL
10203 #else
10204 #  ifdef DL_GLOBAL
10205 #    define LT_DLGLOBAL         DL_GLOBAL
10206 #  else
10207 #    define LT_DLGLOBAL         0
10208 #  endif
10209 #endif
10210
10211 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10212    find out it does not work in some platform. */
10213 #ifndef LT_DLLAZY_OR_NOW
10214 #  ifdef RTLD_LAZY
10215 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10216 #  else
10217 #    ifdef DL_LAZY
10218 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10219 #    else
10220 #      ifdef RTLD_NOW
10221 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10222 #      else
10223 #        ifdef DL_NOW
10224 #          define LT_DLLAZY_OR_NOW      DL_NOW
10225 #        else
10226 #          define LT_DLLAZY_OR_NOW      0
10227 #        endif
10228 #      endif
10229 #    endif
10230 #  endif
10231 #endif
10232
10233 #ifdef __cplusplus
10234 extern "C" void exit (int);
10235 #endif
10236
10237 void fnord() { int i=42;}
10238 int main ()
10239 {
10240   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10241   int status = $lt_dlunknown;
10242
10243   if (self)
10244     {
10245       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10246       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10247       /* dlclose (self); */
10248     }
10249   else
10250     puts (dlerror ());
10251
10252     exit (status);
10253 }
10254 EOF
10255   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256   (eval $ac_link) 2>&5
10257   ac_status=$?
10258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10260     (./conftest; exit; ) >&5 2>/dev/null
10261     lt_status=$?
10262     case x$lt_status in
10263       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10264       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10265       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10266     esac
10267   else :
10268     # compilation failed
10269     lt_cv_dlopen_self=no
10270   fi
10271 fi
10272 rm -fr conftest*
10273
10274
10275 fi
10276 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10277 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10278
10279     if test "x$lt_cv_dlopen_self" = xyes; then
10280       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10281       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10282 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10283 if test "${lt_cv_dlopen_self_static+set}" = set; then
10284   echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286           if test "$cross_compiling" = yes; then :
10287   lt_cv_dlopen_self_static=cross
10288 else
10289   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10290   lt_status=$lt_dlunknown
10291   cat > conftest.$ac_ext <<EOF
10292 #line 10292 "configure"
10293 #include "confdefs.h"
10294
10295 #if HAVE_DLFCN_H
10296 #include <dlfcn.h>
10297 #endif
10298
10299 #include <stdio.h>
10300
10301 #ifdef RTLD_GLOBAL
10302 #  define LT_DLGLOBAL           RTLD_GLOBAL
10303 #else
10304 #  ifdef DL_GLOBAL
10305 #    define LT_DLGLOBAL         DL_GLOBAL
10306 #  else
10307 #    define LT_DLGLOBAL         0
10308 #  endif
10309 #endif
10310
10311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10312    find out it does not work in some platform. */
10313 #ifndef LT_DLLAZY_OR_NOW
10314 #  ifdef RTLD_LAZY
10315 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10316 #  else
10317 #    ifdef DL_LAZY
10318 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10319 #    else
10320 #      ifdef RTLD_NOW
10321 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10322 #      else
10323 #        ifdef DL_NOW
10324 #          define LT_DLLAZY_OR_NOW      DL_NOW
10325 #        else
10326 #          define LT_DLLAZY_OR_NOW      0
10327 #        endif
10328 #      endif
10329 #    endif
10330 #  endif
10331 #endif
10332
10333 #ifdef __cplusplus
10334 extern "C" void exit (int);
10335 #endif
10336
10337 void fnord() { int i=42;}
10338 int main ()
10339 {
10340   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10341   int status = $lt_dlunknown;
10342
10343   if (self)
10344     {
10345       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10346       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10347       /* dlclose (self); */
10348     }
10349   else
10350     puts (dlerror ());
10351
10352     exit (status);
10353 }
10354 EOF
10355   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10356   (eval $ac_link) 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10360     (./conftest; exit; ) >&5 2>/dev/null
10361     lt_status=$?
10362     case x$lt_status in
10363       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10364       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10365       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10366     esac
10367   else :
10368     # compilation failed
10369     lt_cv_dlopen_self_static=no
10370   fi
10371 fi
10372 rm -fr conftest*
10373
10374
10375 fi
10376 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10377 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10378     fi
10379
10380     CPPFLAGS="$save_CPPFLAGS"
10381     LDFLAGS="$save_LDFLAGS"
10382     LIBS="$save_LIBS"
10383     ;;
10384   esac
10385
10386   case $lt_cv_dlopen_self in
10387   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10388   *) enable_dlopen_self=unknown ;;
10389   esac
10390
10391   case $lt_cv_dlopen_self_static in
10392   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10393   *) enable_dlopen_self_static=unknown ;;
10394   esac
10395 fi
10396
10397
10398 # Report which library types will actually be built
10399 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10400 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10401 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10402 echo "${ECHO_T}$can_build_shared" >&6; }
10403
10404 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10405 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10406 test "$can_build_shared" = "no" && enable_shared=no
10407
10408 # On AIX, shared libraries and static libraries use the same namespace, and
10409 # are all built from PIC.
10410 case $host_os in
10411 aix3*)
10412   test "$enable_shared" = yes && enable_static=no
10413   if test -n "$RANLIB"; then
10414     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10415     postinstall_cmds='$RANLIB $lib'
10416   fi
10417   ;;
10418
10419 aix[4-9]*)
10420   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10421     test "$enable_shared" = yes && enable_static=no
10422   fi
10423     ;;
10424 esac
10425 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10426 echo "${ECHO_T}$enable_shared" >&6; }
10427
10428 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10429 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10430 # Make sure either enable_shared or enable_static is yes.
10431 test "$enable_shared" = yes || enable_static=yes
10432 { echo "$as_me:$LINENO: result: $enable_static" >&5
10433 echo "${ECHO_T}$enable_static" >&6; }
10434
10435 # The else clause should only fire when bootstrapping the
10436 # libtool distribution, otherwise you forgot to ship ltmain.sh
10437 # with your package, and you will get complaints that there are
10438 # no rules to generate ltmain.sh.
10439 if test -f "$ltmain"; then
10440   # See if we are running on zsh, and set the options which allow our commands through
10441   # without removal of \ escapes.
10442   if test -n "${ZSH_VERSION+set}" ; then
10443     setopt NO_GLOB_SUBST
10444   fi
10445   # Now quote all the things that may contain metacharacters while being
10446   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10447   # variables and quote the copies for generation of the libtool script.
10448   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10449     SED SHELL STRIP \
10450     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10451     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10452     deplibs_check_method reload_flag reload_cmds need_locks \
10453     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10454     lt_cv_sys_global_symbol_to_c_name_address \
10455     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10456     old_postinstall_cmds old_postuninstall_cmds \
10457     compiler \
10458     CC \
10459     LD \
10460     lt_prog_compiler_wl \
10461     lt_prog_compiler_pic \
10462     lt_prog_compiler_static \
10463     lt_prog_compiler_no_builtin_flag \
10464     export_dynamic_flag_spec \
10465     thread_safe_flag_spec \
10466     whole_archive_flag_spec \
10467     enable_shared_with_static_runtimes \
10468     old_archive_cmds \
10469     old_archive_from_new_cmds \
10470     predep_objects \
10471     postdep_objects \
10472     predeps \
10473     postdeps \
10474     compiler_lib_search_path \
10475     compiler_lib_search_dirs \
10476     archive_cmds \
10477     archive_expsym_cmds \
10478     postinstall_cmds \
10479     postuninstall_cmds \
10480     old_archive_from_expsyms_cmds \
10481     allow_undefined_flag \
10482     no_undefined_flag \
10483     export_symbols_cmds \
10484     hardcode_libdir_flag_spec \
10485     hardcode_libdir_flag_spec_ld \
10486     hardcode_libdir_separator \
10487     hardcode_automatic \
10488     module_cmds \
10489     module_expsym_cmds \
10490     lt_cv_prog_compiler_c_o \
10491     fix_srcfile_path \
10492     exclude_expsyms \
10493     include_expsyms; do
10494
10495     case $var in
10496     old_archive_cmds | \
10497     old_archive_from_new_cmds | \
10498     archive_cmds | \
10499     archive_expsym_cmds | \
10500     module_cmds | \
10501     module_expsym_cmds | \
10502     old_archive_from_expsyms_cmds | \
10503     export_symbols_cmds | \
10504     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10505     postinstall_cmds | postuninstall_cmds | \
10506     old_postinstall_cmds | old_postuninstall_cmds | \
10507     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10508       # Double-quote double-evaled strings.
10509       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10510       ;;
10511     *)
10512       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10513       ;;
10514     esac
10515   done
10516
10517   case $lt_echo in
10518   *'\$0 --fallback-echo"')
10519     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10520     ;;
10521   esac
10522
10523 cfgfile="${ofile}T"
10524   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10525   $rm -f "$cfgfile"
10526   { echo "$as_me:$LINENO: creating $ofile" >&5
10527 echo "$as_me: creating $ofile" >&6;}
10528
10529   cat <<__EOF__ >> "$cfgfile"
10530 #! $SHELL
10531
10532 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10533 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10534 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10535 #
10536 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10537 # Free Software Foundation, Inc.
10538 #
10539 # This file is part of GNU Libtool:
10540 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10541 #
10542 # This program is free software; you can redistribute it and/or modify
10543 # it under the terms of the GNU General Public License as published by
10544 # the Free Software Foundation; either version 2 of the License, or
10545 # (at your option) any later version.
10546 #
10547 # This program is distributed in the hope that it will be useful, but
10548 # WITHOUT ANY WARRANTY; without even the implied warranty of
10549 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10550 # General Public License for more details.
10551 #
10552 # You should have received a copy of the GNU General Public License
10553 # along with this program; if not, write to the Free Software
10554 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10555 #
10556 # As a special exception to the GNU General Public License, if you
10557 # distribute this file as part of a program that contains a
10558 # configuration script generated by Autoconf, you may include it under
10559 # the same distribution terms that you use for the rest of that program.
10560
10561 # A sed program that does not truncate output.
10562 SED=$lt_SED
10563
10564 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10565 Xsed="$SED -e 1s/^X//"
10566
10567 # The HP-UX ksh and POSIX shell print the target directory to stdout
10568 # if CDPATH is set.
10569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10570
10571 # The names of the tagged configurations supported by this script.
10572 available_tags=
10573
10574 # ### BEGIN LIBTOOL CONFIG
10575
10576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10577
10578 # Shell to use when invoking shell scripts.
10579 SHELL=$lt_SHELL
10580
10581 # Whether or not to build shared libraries.
10582 build_libtool_libs=$enable_shared
10583
10584 # Whether or not to build static libraries.
10585 build_old_libs=$enable_static
10586
10587 # Whether or not to add -lc for building shared libraries.
10588 build_libtool_need_lc=$archive_cmds_need_lc
10589
10590 # Whether or not to disallow shared libs when runtime libs are static
10591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10592
10593 # Whether or not to optimize for fast installation.
10594 fast_install=$enable_fast_install
10595
10596 # The host system.
10597 host_alias=$host_alias
10598 host=$host
10599 host_os=$host_os
10600
10601 # The build system.
10602 build_alias=$build_alias
10603 build=$build
10604 build_os=$build_os
10605
10606 # An echo program that does not interpret backslashes.
10607 echo=$lt_echo
10608
10609 # The archiver.
10610 AR=$lt_AR
10611 AR_FLAGS=$lt_AR_FLAGS
10612
10613 # A C compiler.
10614 LTCC=$lt_LTCC
10615
10616 # LTCC compiler flags.
10617 LTCFLAGS=$lt_LTCFLAGS
10618
10619 # A language-specific compiler.
10620 CC=$lt_compiler
10621
10622 # Is the compiler the GNU C compiler?
10623 with_gcc=$GCC
10624
10625 # An ERE matcher.
10626 EGREP=$lt_EGREP
10627
10628 # The linker used to build libraries.
10629 LD=$lt_LD
10630
10631 # Whether we need hard or soft links.
10632 LN_S=$lt_LN_S
10633
10634 # A BSD-compatible nm program.
10635 NM=$lt_NM
10636
10637 # A symbol stripping program
10638 STRIP=$lt_STRIP
10639
10640 # Used to examine libraries when file_magic_cmd begins "file"
10641 MAGIC_CMD=$MAGIC_CMD
10642
10643 # Used on cygwin: DLL creation program.
10644 DLLTOOL="$DLLTOOL"
10645
10646 # Used on cygwin: object dumper.
10647 OBJDUMP="$OBJDUMP"
10648
10649 # Used on cygwin: assembler.
10650 AS="$AS"
10651
10652 # The name of the directory that contains temporary libtool files.
10653 objdir=$objdir
10654
10655 # How to create reloadable object files.
10656 reload_flag=$lt_reload_flag
10657 reload_cmds=$lt_reload_cmds
10658
10659 # How to pass a linker flag through the compiler.
10660 wl=$lt_lt_prog_compiler_wl
10661
10662 # Object file suffix (normally "o").
10663 objext="$ac_objext"
10664
10665 # Old archive suffix (normally "a").
10666 libext="$libext"
10667
10668 # Shared library suffix (normally ".so").
10669 shrext_cmds='$shrext_cmds'
10670
10671 # Executable file suffix (normally "").
10672 exeext="$exeext"
10673
10674 # Additional compiler flags for building library objects.
10675 pic_flag=$lt_lt_prog_compiler_pic
10676 pic_mode=$pic_mode
10677
10678 # What is the maximum length of a command?
10679 max_cmd_len=$lt_cv_sys_max_cmd_len
10680
10681 # Does compiler simultaneously support -c and -o options?
10682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10683
10684 # Must we lock files when doing compilation?
10685 need_locks=$lt_need_locks
10686
10687 # Do we need the lib prefix for modules?
10688 need_lib_prefix=$need_lib_prefix
10689
10690 # Do we need a version for libraries?
10691 need_version=$need_version
10692
10693 # Whether dlopen is supported.
10694 dlopen_support=$enable_dlopen
10695
10696 # Whether dlopen of programs is supported.
10697 dlopen_self=$enable_dlopen_self
10698
10699 # Whether dlopen of statically linked programs is supported.
10700 dlopen_self_static=$enable_dlopen_self_static
10701
10702 # Compiler flag to prevent dynamic linking.
10703 link_static_flag=$lt_lt_prog_compiler_static
10704
10705 # Compiler flag to turn off builtin functions.
10706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10707
10708 # Compiler flag to allow reflexive dlopens.
10709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10710
10711 # Compiler flag to generate shared objects directly from archives.
10712 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10713
10714 # Compiler flag to generate thread-safe objects.
10715 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10716
10717 # Library versioning type.
10718 version_type=$version_type
10719
10720 # Format of library name prefix.
10721 libname_spec=$lt_libname_spec
10722
10723 # List of archive names.  First name is the real one, the rest are links.
10724 # The last name is the one that the linker finds with -lNAME.
10725 library_names_spec=$lt_library_names_spec
10726
10727 # The coded name of the library, if different from the real name.
10728 soname_spec=$lt_soname_spec
10729
10730 # Commands used to build and install an old-style archive.
10731 RANLIB=$lt_RANLIB
10732 old_archive_cmds=$lt_old_archive_cmds
10733 old_postinstall_cmds=$lt_old_postinstall_cmds
10734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10735
10736 # Create an old-style archive from a shared archive.
10737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10738
10739 # Create a temporary old-style archive to link instead of a shared archive.
10740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10741
10742 # Commands used to build and install a shared archive.
10743 archive_cmds=$lt_archive_cmds
10744 archive_expsym_cmds=$lt_archive_expsym_cmds
10745 postinstall_cmds=$lt_postinstall_cmds
10746 postuninstall_cmds=$lt_postuninstall_cmds
10747
10748 # Commands used to build a loadable module (assumed same as above if empty)
10749 module_cmds=$lt_module_cmds
10750 module_expsym_cmds=$lt_module_expsym_cmds
10751
10752 # Commands to strip libraries.
10753 old_striplib=$lt_old_striplib
10754 striplib=$lt_striplib
10755
10756 # Dependencies to place before the objects being linked to create a
10757 # shared library.
10758 predep_objects=$lt_predep_objects
10759
10760 # Dependencies to place after the objects being linked to create a
10761 # shared library.
10762 postdep_objects=$lt_postdep_objects
10763
10764 # Dependencies to place before the objects being linked to create a
10765 # shared library.
10766 predeps=$lt_predeps
10767
10768 # Dependencies to place after the objects being linked to create a
10769 # shared library.
10770 postdeps=$lt_postdeps
10771
10772 # The directories searched by this compiler when creating a shared
10773 # library
10774 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10775
10776 # The library search path used internally by the compiler when linking
10777 # a shared library.
10778 compiler_lib_search_path=$lt_compiler_lib_search_path
10779
10780 # Method to check whether dependent libraries are shared objects.
10781 deplibs_check_method=$lt_deplibs_check_method
10782
10783 # Command to use when deplibs_check_method == file_magic.
10784 file_magic_cmd=$lt_file_magic_cmd
10785
10786 # Flag that allows shared libraries with undefined symbols to be built.
10787 allow_undefined_flag=$lt_allow_undefined_flag
10788
10789 # Flag that forces no undefined symbols.
10790 no_undefined_flag=$lt_no_undefined_flag
10791
10792 # Commands used to finish a libtool library installation in a directory.
10793 finish_cmds=$lt_finish_cmds
10794
10795 # Same as above, but a single script fragment to be evaled but not shown.
10796 finish_eval=$lt_finish_eval
10797
10798 # Take the output of nm and produce a listing of raw symbols and C names.
10799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10800
10801 # Transform the output of nm in a proper C declaration
10802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10803
10804 # Transform the output of nm in a C name address pair
10805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10806
10807 # This is the shared library runtime path variable.
10808 runpath_var=$runpath_var
10809
10810 # This is the shared library path variable.
10811 shlibpath_var=$shlibpath_var
10812
10813 # Is shlibpath searched before the hard-coded library search path?
10814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10815
10816 # How to hardcode a shared library path into an executable.
10817 hardcode_action=$hardcode_action
10818
10819 # Whether we should hardcode library paths into libraries.
10820 hardcode_into_libs=$hardcode_into_libs
10821
10822 # Flag to hardcode \$libdir into a binary during linking.
10823 # This must work even if \$libdir does not exist.
10824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10825
10826 # If ld is used when linking, flag to hardcode \$libdir into
10827 # a binary during linking. This must work even if \$libdir does
10828 # not exist.
10829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10830
10831 # Whether we need a single -rpath flag with a separated argument.
10832 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10833
10834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10835 # resulting binary.
10836 hardcode_direct=$hardcode_direct
10837
10838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10839 # resulting binary.
10840 hardcode_minus_L=$hardcode_minus_L
10841
10842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10843 # the resulting binary.
10844 hardcode_shlibpath_var=$hardcode_shlibpath_var
10845
10846 # Set to yes if building a shared library automatically hardcodes DIR into the library
10847 # and all subsequent libraries and executables linked against it.
10848 hardcode_automatic=$hardcode_automatic
10849
10850 # Variables whose values should be saved in libtool wrapper scripts and
10851 # restored at relink time.
10852 variables_saved_for_relink="$variables_saved_for_relink"
10853
10854 # Whether libtool must link a program against all its dependency libraries.
10855 link_all_deplibs=$link_all_deplibs
10856
10857 # Compile-time system search path for libraries
10858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10859
10860 # Run-time system search path for libraries
10861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10862
10863 # Fix the shell variable \$srcfile for the compiler.
10864 fix_srcfile_path=$lt_fix_srcfile_path
10865
10866 # Set to yes if exported symbols are required.
10867 always_export_symbols=$always_export_symbols
10868
10869 # The commands to list exported symbols.
10870 export_symbols_cmds=$lt_export_symbols_cmds
10871
10872 # The commands to extract the exported symbol list from a shared archive.
10873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10874
10875 # Symbols that should not be listed in the preloaded symbols.
10876 exclude_expsyms=$lt_exclude_expsyms
10877
10878 # Symbols that must always be exported.
10879 include_expsyms=$lt_include_expsyms
10880
10881 # ### END LIBTOOL CONFIG
10882
10883 __EOF__
10884
10885
10886   case $host_os in
10887   aix3*)
10888     cat <<\EOF >> "$cfgfile"
10889
10890 # AIX sometimes has problems with the GCC collect2 program.  For some
10891 # reason, if we set the COLLECT_NAMES environment variable, the problems
10892 # vanish in a puff of smoke.
10893 if test "X${COLLECT_NAMES+set}" != Xset; then
10894   COLLECT_NAMES=
10895   export COLLECT_NAMES
10896 fi
10897 EOF
10898     ;;
10899   esac
10900
10901   # We use sed instead of cat because bash on DJGPP gets confused if
10902   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10903   # text mode, it properly converts lines to CR/LF.  This bash problem
10904   # is reportedly fixed, but why not run on old versions too?
10905   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10906
10907   mv -f "$cfgfile" "$ofile" || \
10908     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10909   chmod +x "$ofile"
10910
10911 else
10912   # If there is no Makefile yet, we rely on a make rule to execute
10913   # `config.status --recheck' to rerun these tests and create the
10914   # libtool script then.
10915   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10916   if test -f "$ltmain_in"; then
10917     test -f Makefile && make "$ltmain"
10918   fi
10919 fi
10920
10921
10922 ac_ext=c
10923 ac_cpp='$CPP $CPPFLAGS'
10924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10927
10928 CC="$lt_save_CC"
10929
10930
10931 # Check whether --with-tags was given.
10932 if test "${with_tags+set}" = set; then
10933   withval=$with_tags; tagnames="$withval"
10934 fi
10935
10936
10937 if test -f "$ltmain" && test -n "$tagnames"; then
10938   if test ! -f "${ofile}"; then
10939     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10940 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10941   fi
10942
10943   if test -z "$LTCC"; then
10944     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10945     if test -z "$LTCC"; then
10946       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10947 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10948     else
10949       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10950 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10951     fi
10952   fi
10953   if test -z "$LTCFLAGS"; then
10954     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10955   fi
10956
10957   # Extract list of available tagged configurations in $ofile.
10958   # Note that this assumes the entire list is on one line.
10959   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10960
10961   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10962   for tagname in $tagnames; do
10963     IFS="$lt_save_ifs"
10964     # Check whether tagname contains only valid characters
10965     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10966     "") ;;
10967     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10968 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10969    { (exit 1); exit 1; }; }
10970         ;;
10971     esac
10972
10973     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10974     then
10975       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10976 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10977    { (exit 1); exit 1; }; }
10978     fi
10979
10980     # Update the list of available tags.
10981     if test -n "$tagname"; then
10982       echo appending configuration tag \"$tagname\" to $ofile
10983
10984       case $tagname in
10985       CXX)
10986         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10987             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10988             (test "X$CXX" != "Xg++"))) ; then
10989           ac_ext=cpp
10990 ac_cpp='$CXXCPP $CPPFLAGS'
10991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10994
10995
10996
10997
10998 archive_cmds_need_lc_CXX=no
10999 allow_undefined_flag_CXX=
11000 always_export_symbols_CXX=no
11001 archive_expsym_cmds_CXX=
11002 export_dynamic_flag_spec_CXX=
11003 hardcode_direct_CXX=no
11004 hardcode_libdir_flag_spec_CXX=
11005 hardcode_libdir_flag_spec_ld_CXX=
11006 hardcode_libdir_separator_CXX=
11007 hardcode_minus_L_CXX=no
11008 hardcode_shlibpath_var_CXX=unsupported
11009 hardcode_automatic_CXX=no
11010 module_cmds_CXX=
11011 module_expsym_cmds_CXX=
11012 link_all_deplibs_CXX=unknown
11013 old_archive_cmds_CXX=$old_archive_cmds
11014 no_undefined_flag_CXX=
11015 whole_archive_flag_spec_CXX=
11016 enable_shared_with_static_runtimes_CXX=no
11017
11018 # Dependencies to place before and after the object being linked:
11019 predep_objects_CXX=
11020 postdep_objects_CXX=
11021 predeps_CXX=
11022 postdeps_CXX=
11023 compiler_lib_search_path_CXX=
11024 compiler_lib_search_dirs_CXX=
11025
11026 # Source file extension for C++ test sources.
11027 ac_ext=cpp
11028
11029 # Object file extension for compiled C++ test sources.
11030 objext=o
11031 objext_CXX=$objext
11032
11033 # Code to be used in simple compile tests
11034 lt_simple_compile_test_code="int some_variable = 0;"
11035
11036 # Code to be used in simple link tests
11037 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11038
11039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11040
11041 # If no C compiler was specified, use CC.
11042 LTCC=${LTCC-"$CC"}
11043
11044 # If no C compiler flags were specified, use CFLAGS.
11045 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11046
11047 # Allow CC to be a program name with arguments.
11048 compiler=$CC
11049
11050
11051 # save warnings/boilerplate of simple test code
11052 ac_outfile=conftest.$ac_objext
11053 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11054 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11055 _lt_compiler_boilerplate=`cat conftest.err`
11056 $rm conftest*
11057
11058 ac_outfile=conftest.$ac_objext
11059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11060 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11061 _lt_linker_boilerplate=`cat conftest.err`
11062 $rm -r conftest*
11063
11064
11065 # Allow CC to be a program name with arguments.
11066 lt_save_CC=$CC
11067 lt_save_LD=$LD
11068 lt_save_GCC=$GCC
11069 GCC=$GXX
11070 lt_save_with_gnu_ld=$with_gnu_ld
11071 lt_save_path_LD=$lt_cv_path_LD
11072 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11073   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11074 else
11075   $as_unset lt_cv_prog_gnu_ld
11076 fi
11077 if test -n "${lt_cv_path_LDCXX+set}"; then
11078   lt_cv_path_LD=$lt_cv_path_LDCXX
11079 else
11080   $as_unset lt_cv_path_LD
11081 fi
11082 test -z "${LDCXX+set}" || LD=$LDCXX
11083 CC=${CXX-"c++"}
11084 compiler=$CC
11085 compiler_CXX=$CC
11086 for cc_temp in $compiler""; do
11087   case $cc_temp in
11088     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11089     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11090     \-*) ;;
11091     *) break;;
11092   esac
11093 done
11094 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11095
11096
11097 # We don't want -fno-exception wen compiling C++ code, so set the
11098 # no_builtin_flag separately
11099 if test "$GXX" = yes; then
11100   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11101 else
11102   lt_prog_compiler_no_builtin_flag_CXX=
11103 fi
11104
11105 if test "$GXX" = yes; then
11106   # Set up default GNU C++ configuration
11107
11108
11109 # Check whether --with-gnu-ld was given.
11110 if test "${with_gnu_ld+set}" = set; then
11111   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11112 else
11113   with_gnu_ld=no
11114 fi
11115
11116 ac_prog=ld
11117 if test "$GCC" = yes; then
11118   # Check if gcc -print-prog-name=ld gives a path.
11119   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11120 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11121   case $host in
11122   *-*-mingw*)
11123     # gcc leaves a trailing carriage return which upsets mingw
11124     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11125   *)
11126     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11127   esac
11128   case $ac_prog in
11129     # Accept absolute paths.
11130     [\\/]* | ?:[\\/]*)
11131       re_direlt='/[^/][^/]*/\.\./'
11132       # Canonicalize the pathname of ld
11133       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11134       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11135         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11136       done
11137       test -z "$LD" && LD="$ac_prog"
11138       ;;
11139   "")
11140     # If it fails, then pretend we aren't using GCC.
11141     ac_prog=ld
11142     ;;
11143   *)
11144     # If it is relative, then search for the first ld in PATH.
11145     with_gnu_ld=unknown
11146     ;;
11147   esac
11148 elif test "$with_gnu_ld" = yes; then
11149   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11150 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11151 else
11152   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11153 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11154 fi
11155 if test "${lt_cv_path_LD+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158   if test -z "$LD"; then
11159   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11160   for ac_dir in $PATH; do
11161     IFS="$lt_save_ifs"
11162     test -z "$ac_dir" && ac_dir=.
11163     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11164       lt_cv_path_LD="$ac_dir/$ac_prog"
11165       # Check to see if the program is GNU ld.  I'd rather use --version,
11166       # but apparently some variants of GNU ld only accept -v.
11167       # Break only if it was the GNU/non-GNU ld that we prefer.
11168       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11169       *GNU* | *'with BFD'*)
11170         test "$with_gnu_ld" != no && break
11171         ;;
11172       *)
11173         test "$with_gnu_ld" != yes && break
11174         ;;
11175       esac
11176     fi
11177   done
11178   IFS="$lt_save_ifs"
11179 else
11180   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11181 fi
11182 fi
11183
11184 LD="$lt_cv_path_LD"
11185 if test -n "$LD"; then
11186   { echo "$as_me:$LINENO: result: $LD" >&5
11187 echo "${ECHO_T}$LD" >&6; }
11188 else
11189   { echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6; }
11191 fi
11192 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11193 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11194    { (exit 1); exit 1; }; }
11195 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11196 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11197 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11201 case `$LD -v 2>&1 </dev/null` in
11202 *GNU* | *'with BFD'*)
11203   lt_cv_prog_gnu_ld=yes
11204   ;;
11205 *)
11206   lt_cv_prog_gnu_ld=no
11207   ;;
11208 esac
11209 fi
11210 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11211 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11212 with_gnu_ld=$lt_cv_prog_gnu_ld
11213
11214
11215
11216   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11217   # archiving commands below assume that GNU ld is being used.
11218   if test "$with_gnu_ld" = yes; then
11219     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11220     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'
11221
11222     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11223     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11224
11225     # If archive_cmds runs LD, not CC, wlarc should be empty
11226     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11227     #     investigate it a little bit more. (MM)
11228     wlarc='${wl}'
11229
11230     # ancient GNU ld didn't support --whole-archive et. al.
11231     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11232         grep 'no-whole-archive' > /dev/null; then
11233       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11234     else
11235       whole_archive_flag_spec_CXX=
11236     fi
11237   else
11238     with_gnu_ld=no
11239     wlarc=
11240
11241     # A generic and very simple default shared library creation
11242     # command for GNU C++ for the case where it uses the native
11243     # linker, instead of GNU ld.  If possible, this setting should
11244     # overridden to take advantage of the native linker features on
11245     # the platform it is being used on.
11246     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11247   fi
11248
11249   # Commands to make compiler produce verbose output that lists
11250   # what "hidden" libraries, object files and flags are used when
11251   # linking a shared library.
11252   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11253
11254 else
11255   GXX=no
11256   with_gnu_ld=no
11257   wlarc=
11258 fi
11259
11260 # PORTME: fill in a description of your system's C++ link characteristics
11261 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11262 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11263 ld_shlibs_CXX=yes
11264 case $host_os in
11265   aix3*)
11266     # FIXME: insert proper C++ library support
11267     ld_shlibs_CXX=no
11268     ;;
11269   aix[4-9]*)
11270     if test "$host_cpu" = ia64; then
11271       # On IA64, the linker does run time linking by default, so we don't
11272       # have to do anything special.
11273       aix_use_runtimelinking=no
11274       exp_sym_flag='-Bexport'
11275       no_entry_flag=""
11276     else
11277       aix_use_runtimelinking=no
11278
11279       # Test if we are trying to use run time linking or normal
11280       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11281       # need to do runtime linking.
11282       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11283         for ld_flag in $LDFLAGS; do
11284           case $ld_flag in
11285           *-brtl*)
11286             aix_use_runtimelinking=yes
11287             break
11288             ;;
11289           esac
11290         done
11291         ;;
11292       esac
11293
11294       exp_sym_flag='-bexport'
11295       no_entry_flag='-bnoentry'
11296     fi
11297
11298     # When large executables or shared objects are built, AIX ld can
11299     # have problems creating the table of contents.  If linking a library
11300     # or program results in "error TOC overflow" add -mminimal-toc to
11301     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11302     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11303
11304     archive_cmds_CXX=''
11305     hardcode_direct_CXX=yes
11306     hardcode_libdir_separator_CXX=':'
11307     link_all_deplibs_CXX=yes
11308
11309     if test "$GXX" = yes; then
11310       case $host_os in aix4.[012]|aix4.[012].*)
11311       # We only want to do this on AIX 4.2 and lower, the check
11312       # below for broken collect2 doesn't work under 4.3+
11313         collect2name=`${CC} -print-prog-name=collect2`
11314         if test -f "$collect2name" && \
11315            strings "$collect2name" | grep resolve_lib_name >/dev/null
11316         then
11317           # We have reworked collect2
11318           :
11319         else
11320           # We have old collect2
11321           hardcode_direct_CXX=unsupported
11322           # It fails to find uninstalled libraries when the uninstalled
11323           # path is not listed in the libpath.  Setting hardcode_minus_L
11324           # to unsupported forces relinking
11325           hardcode_minus_L_CXX=yes
11326           hardcode_libdir_flag_spec_CXX='-L$libdir'
11327           hardcode_libdir_separator_CXX=
11328         fi
11329         ;;
11330       esac
11331       shared_flag='-shared'
11332       if test "$aix_use_runtimelinking" = yes; then
11333         shared_flag="$shared_flag "'${wl}-G'
11334       fi
11335     else
11336       # not using gcc
11337       if test "$host_cpu" = ia64; then
11338         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11339         # chokes on -Wl,-G. The following line is correct:
11340         shared_flag='-G'
11341       else
11342         if test "$aix_use_runtimelinking" = yes; then
11343           shared_flag='${wl}-G'
11344         else
11345           shared_flag='${wl}-bM:SRE'
11346         fi
11347       fi
11348     fi
11349
11350     # It seems that -bexpall does not export symbols beginning with
11351     # underscore (_), so it is better to generate a list of symbols to export.
11352     always_export_symbols_CXX=yes
11353     if test "$aix_use_runtimelinking" = yes; then
11354       # Warning - without using the other runtime loading flags (-brtl),
11355       # -berok will link without error, but may produce a broken library.
11356       allow_undefined_flag_CXX='-berok'
11357       # Determine the default libpath from the value encoded in an empty executable.
11358       cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h.  */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h.  */
11364
11365 int
11366 main ()
11367 {
11368
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 rm -f conftest.$ac_objext conftest$ac_exeext
11374 if { (ac_try="$ac_link"
11375 case "(($ac_try" in
11376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377   *) ac_try_echo=$ac_try;;
11378 esac
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380   (eval "$ac_link") 2>conftest.er1
11381   ac_status=$?
11382   grep -v '^ *+' conftest.er1 >conftest.err
11383   rm -f conftest.er1
11384   cat conftest.err >&5
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); } && {
11387          test -z "$ac_cxx_werror_flag" ||
11388          test ! -s conftest.err
11389        } && test -s conftest$ac_exeext &&
11390        $as_test_x conftest$ac_exeext; then
11391
11392 lt_aix_libpath_sed='
11393     /Import File Strings/,/^$/ {
11394         /^0/ {
11395             s/^0  *\(.*\)$/\1/
11396             p
11397         }
11398     }'
11399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11400 # Check for a 64-bit object if we didn't find anything.
11401 if test -z "$aix_libpath"; then
11402   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11403 fi
11404 else
11405   echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11407
11408
11409 fi
11410
11411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11412       conftest$ac_exeext conftest.$ac_ext
11413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11414
11415       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11416
11417       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"
11418      else
11419       if test "$host_cpu" = ia64; then
11420         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11421         allow_undefined_flag_CXX="-z nodefs"
11422         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"
11423       else
11424         # Determine the default libpath from the value encoded in an empty executable.
11425         cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431
11432 int
11433 main ()
11434 {
11435
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 rm -f conftest.$ac_objext conftest$ac_exeext
11441 if { (ac_try="$ac_link"
11442 case "(($ac_try" in
11443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444   *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447   (eval "$ac_link") 2>conftest.er1
11448   ac_status=$?
11449   grep -v '^ *+' conftest.er1 >conftest.err
11450   rm -f conftest.er1
11451   cat conftest.err >&5
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } && {
11454          test -z "$ac_cxx_werror_flag" ||
11455          test ! -s conftest.err
11456        } && test -s conftest$ac_exeext &&
11457        $as_test_x conftest$ac_exeext; then
11458
11459 lt_aix_libpath_sed='
11460     /Import File Strings/,/^$/ {
11461         /^0/ {
11462             s/^0  *\(.*\)$/\1/
11463             p
11464         }
11465     }'
11466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11467 # Check for a 64-bit object if we didn't find anything.
11468 if test -z "$aix_libpath"; then
11469   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11470 fi
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475
11476 fi
11477
11478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11479       conftest$ac_exeext conftest.$ac_ext
11480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11481
11482         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11483         # Warning - without using the other run time loading flags,
11484         # -berok will link without error, but may produce a broken library.
11485         no_undefined_flag_CXX=' ${wl}-bernotok'
11486         allow_undefined_flag_CXX=' ${wl}-berok'
11487         # Exported symbols can be pulled into shared objects from archives
11488         whole_archive_flag_spec_CXX='$convenience'
11489         archive_cmds_need_lc_CXX=yes
11490         # This is similar to how AIX traditionally builds its shared libraries.
11491         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'
11492       fi
11493     fi
11494     ;;
11495
11496   beos*)
11497     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11498       allow_undefined_flag_CXX=unsupported
11499       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11500       # support --undefined.  This deserves some investigation.  FIXME
11501       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11502     else
11503       ld_shlibs_CXX=no
11504     fi
11505     ;;
11506
11507   chorus*)
11508     case $cc_basename in
11509       *)
11510         # FIXME: insert proper C++ library support
11511         ld_shlibs_CXX=no
11512         ;;
11513     esac
11514     ;;
11515
11516   cygwin* | mingw* | pw32*)
11517     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11518     # as there is no search path for DLLs.
11519     hardcode_libdir_flag_spec_CXX='-L$libdir'
11520     allow_undefined_flag_CXX=unsupported
11521     always_export_symbols_CXX=no
11522     enable_shared_with_static_runtimes_CXX=yes
11523
11524     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11525       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'
11526       # If the export-symbols file already is a .def file (1st line
11527       # is EXPORTS), use it as is; otherwise, prepend...
11528       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11529         cp $export_symbols $output_objdir/$soname.def;
11530       else
11531         echo EXPORTS > $output_objdir/$soname.def;
11532         cat $export_symbols >> $output_objdir/$soname.def;
11533       fi~
11534       $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'
11535     else
11536       ld_shlibs_CXX=no
11537     fi
11538   ;;
11539       darwin* | rhapsody*)
11540       archive_cmds_need_lc_CXX=no
11541       hardcode_direct_CXX=no
11542       hardcode_automatic_CXX=yes
11543       hardcode_shlibpath_var_CXX=unsupported
11544       whole_archive_flag_spec_CXX=''
11545       link_all_deplibs_CXX=yes
11546       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11547       if test "$GXX" = yes ; then
11548       output_verbose_link_cmd='echo'
11549       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}"
11550       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11551       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}"
11552       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}"
11553       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11554         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}"
11555         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}"
11556       fi
11557       else
11558       case $cc_basename in
11559         xlc*)
11560          output_verbose_link_cmd='echo'
11561           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'
11562           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11563           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11564           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}'
11565           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}'
11566           ;;
11567        *)
11568          ld_shlibs_CXX=no
11569           ;;
11570       esac
11571       fi
11572         ;;
11573
11574   dgux*)
11575     case $cc_basename in
11576       ec++*)
11577         # FIXME: insert proper C++ library support
11578         ld_shlibs_CXX=no
11579         ;;
11580       ghcx*)
11581         # Green Hills C++ Compiler
11582         # FIXME: insert proper C++ library support
11583         ld_shlibs_CXX=no
11584         ;;
11585       *)
11586         # FIXME: insert proper C++ library support
11587         ld_shlibs_CXX=no
11588         ;;
11589     esac
11590     ;;
11591   freebsd[12]*)
11592     # C++ shared libraries reported to be fairly broken before switch to ELF
11593     ld_shlibs_CXX=no
11594     ;;
11595   freebsd-elf*)
11596     archive_cmds_need_lc_CXX=no
11597     ;;
11598   freebsd* | dragonfly*)
11599     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11600     # conventions
11601     ld_shlibs_CXX=yes
11602     ;;
11603   gnu*)
11604     ;;
11605   hpux9*)
11606     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11607     hardcode_libdir_separator_CXX=:
11608     export_dynamic_flag_spec_CXX='${wl}-E'
11609     hardcode_direct_CXX=yes
11610     hardcode_minus_L_CXX=yes # Not in the search PATH,
11611                                 # but as the default
11612                                 # location of the library.
11613
11614     case $cc_basename in
11615     CC*)
11616       # FIXME: insert proper C++ library support
11617       ld_shlibs_CXX=no
11618       ;;
11619     aCC*)
11620       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'
11621       # Commands to make compiler produce verbose output that lists
11622       # what "hidden" libraries, object files and flags are used when
11623       # linking a shared library.
11624       #
11625       # There doesn't appear to be a way to prevent this compiler from
11626       # explicitly linking system object files so we need to strip them
11627       # from the output so that they don't get included in the library
11628       # dependencies.
11629       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'
11630       ;;
11631     *)
11632       if test "$GXX" = yes; then
11633         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'
11634       else
11635         # FIXME: insert proper C++ library support
11636         ld_shlibs_CXX=no
11637       fi
11638       ;;
11639     esac
11640     ;;
11641   hpux10*|hpux11*)
11642     if test $with_gnu_ld = no; then
11643       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11644       hardcode_libdir_separator_CXX=:
11645
11646       case $host_cpu in
11647       hppa*64*|ia64*) ;;
11648       *)
11649         export_dynamic_flag_spec_CXX='${wl}-E'
11650         ;;
11651       esac
11652     fi
11653     case $host_cpu in
11654     hppa*64*|ia64*)
11655       hardcode_direct_CXX=no
11656       hardcode_shlibpath_var_CXX=no
11657       ;;
11658     *)
11659       hardcode_direct_CXX=yes
11660       hardcode_minus_L_CXX=yes # Not in the search PATH,
11661                                               # but as the default
11662                                               # location of the library.
11663       ;;
11664     esac
11665
11666     case $cc_basename in
11667       CC*)
11668         # FIXME: insert proper C++ library support
11669         ld_shlibs_CXX=no
11670         ;;
11671       aCC*)
11672         case $host_cpu in
11673         hppa*64*)
11674           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11675           ;;
11676         ia64*)
11677           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11678           ;;
11679         *)
11680           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11681           ;;
11682         esac
11683         # Commands to make compiler produce verbose output that lists
11684         # what "hidden" libraries, object files and flags are used when
11685         # linking a shared library.
11686         #
11687         # There doesn't appear to be a way to prevent this compiler from
11688         # explicitly linking system object files so we need to strip them
11689         # from the output so that they don't get included in the library
11690         # dependencies.
11691         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'
11692         ;;
11693       *)
11694         if test "$GXX" = yes; then
11695           if test $with_gnu_ld = no; then
11696             case $host_cpu in
11697             hppa*64*)
11698               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699               ;;
11700             ia64*)
11701               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702               ;;
11703             *)
11704               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'
11705               ;;
11706             esac
11707           fi
11708         else
11709           # FIXME: insert proper C++ library support
11710           ld_shlibs_CXX=no
11711         fi
11712         ;;
11713     esac
11714     ;;
11715   interix[3-9]*)
11716     hardcode_direct_CXX=no
11717     hardcode_shlibpath_var_CXX=no
11718     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11719     export_dynamic_flag_spec_CXX='${wl}-E'
11720     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11721     # Instead, shared libraries are loaded at an image base (0x10000000 by
11722     # default) and relocated if they conflict, which is a slow very memory
11723     # consuming and fragmenting process.  To avoid this, we pick a random,
11724     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11725     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11726     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'
11727     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'
11728     ;;
11729   irix5* | irix6*)
11730     case $cc_basename in
11731       CC*)
11732         # SGI C++
11733         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'
11734
11735         # Archives containing C++ object files must be created using
11736         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11737         # necessary to make sure instantiated templates are included
11738         # in the archive.
11739         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11740         ;;
11741       *)
11742         if test "$GXX" = yes; then
11743           if test "$with_gnu_ld" = no; then
11744             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'
11745           else
11746             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'
11747           fi
11748         fi
11749         link_all_deplibs_CXX=yes
11750         ;;
11751     esac
11752     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11753     hardcode_libdir_separator_CXX=:
11754     ;;
11755   linux* | k*bsd*-gnu)
11756     case $cc_basename in
11757       KCC*)
11758         # Kuck and Associates, Inc. (KAI) C++ Compiler
11759
11760         # KCC will only create a shared library if the output file
11761         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11762         # to its proper name (with version) after linking.
11763         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'
11764         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'
11765         # Commands to make compiler produce verbose output that lists
11766         # what "hidden" libraries, object files and flags are used when
11767         # linking a shared library.
11768         #
11769         # There doesn't appear to be a way to prevent this compiler from
11770         # explicitly linking system object files so we need to strip them
11771         # from the output so that they don't get included in the library
11772         # dependencies.
11773         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'
11774
11775         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11776         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11777
11778         # Archives containing C++ object files must be created using
11779         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11780         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11781         ;;
11782       icpc*)
11783         # Intel C++
11784         with_gnu_ld=yes
11785         # version 8.0 and above of icpc choke on multiply defined symbols
11786         # if we add $predep_objects and $postdep_objects, however 7.1 and
11787         # earlier do not add the objects themselves.
11788         case `$CC -V 2>&1` in
11789         *"Version 7."*)
11790           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11791           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'
11792           ;;
11793         *)  # Version 8.0 or newer
11794           tmp_idyn=
11795           case $host_cpu in
11796             ia64*) tmp_idyn=' -i_dynamic';;
11797           esac
11798           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11799           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'
11800           ;;
11801         esac
11802         archive_cmds_need_lc_CXX=no
11803         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11804         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11805         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11806         ;;
11807       pgCC* | pgcpp*)
11808         # Portland Group C++ compiler
11809         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11810         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'
11811
11812         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11813         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11814         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'
11815         ;;
11816       cxx*)
11817         # Compaq C++
11818         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11819         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'
11820
11821         runpath_var=LD_RUN_PATH
11822         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11823         hardcode_libdir_separator_CXX=:
11824
11825         # Commands to make compiler produce verbose output that lists
11826         # what "hidden" libraries, object files and flags are used when
11827         # linking a shared library.
11828         #
11829         # There doesn't appear to be a way to prevent this compiler from
11830         # explicitly linking system object files so we need to strip them
11831         # from the output so that they don't get included in the library
11832         # dependencies.
11833         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'
11834         ;;
11835       *)
11836         case `$CC -V 2>&1 | sed 5q` in
11837         *Sun\ C*)
11838           # Sun C++ 5.9
11839           no_undefined_flag_CXX=' -zdefs'
11840           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11841           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'
11842           hardcode_libdir_flag_spec_CXX='-R$libdir'
11843           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'
11844
11845           # Not sure whether something based on
11846           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11847           # would be better.
11848           output_verbose_link_cmd='echo'
11849
11850           # Archives containing C++ object files must be created using
11851           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11852           # necessary to make sure instantiated templates are included
11853           # in the archive.
11854           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11855           ;;
11856         esac
11857         ;;
11858     esac
11859     ;;
11860   lynxos*)
11861     # FIXME: insert proper C++ library support
11862     ld_shlibs_CXX=no
11863     ;;
11864   m88k*)
11865     # FIXME: insert proper C++ library support
11866     ld_shlibs_CXX=no
11867     ;;
11868   mvs*)
11869     case $cc_basename in
11870       cxx*)
11871         # FIXME: insert proper C++ library support
11872         ld_shlibs_CXX=no
11873         ;;
11874       *)
11875         # FIXME: insert proper C++ library support
11876         ld_shlibs_CXX=no
11877         ;;
11878     esac
11879     ;;
11880   netbsd* | netbsdelf*-gnu)
11881     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11882       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11883       wlarc=
11884       hardcode_libdir_flag_spec_CXX='-R$libdir'
11885       hardcode_direct_CXX=yes
11886       hardcode_shlibpath_var_CXX=no
11887     fi
11888     # Workaround some broken pre-1.5 toolchains
11889     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11890     ;;
11891   openbsd2*)
11892     # C++ shared libraries are fairly broken
11893     ld_shlibs_CXX=no
11894     ;;
11895   openbsd*)
11896     if test -f /usr/libexec/ld.so; then
11897       hardcode_direct_CXX=yes
11898       hardcode_shlibpath_var_CXX=no
11899       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11900       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11901       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11902         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11903         export_dynamic_flag_spec_CXX='${wl}-E'
11904         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11905       fi
11906       output_verbose_link_cmd='echo'
11907     else
11908       ld_shlibs_CXX=no
11909     fi
11910     ;;
11911   osf3*)
11912     case $cc_basename in
11913       KCC*)
11914         # Kuck and Associates, Inc. (KAI) C++ Compiler
11915
11916         # KCC will only create a shared library if the output file
11917         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11918         # to its proper name (with version) after linking.
11919         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'
11920
11921         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11922         hardcode_libdir_separator_CXX=:
11923
11924         # Archives containing C++ object files must be created using
11925         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11926         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11927
11928         ;;
11929       RCC*)
11930         # Rational C++ 2.4.1
11931         # FIXME: insert proper C++ library support
11932         ld_shlibs_CXX=no
11933         ;;
11934       cxx*)
11935         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11936         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'
11937
11938         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11939         hardcode_libdir_separator_CXX=:
11940
11941         # Commands to make compiler produce verbose output that lists
11942         # what "hidden" libraries, object files and flags are used when
11943         # linking a shared library.
11944         #
11945         # There doesn't appear to be a way to prevent this compiler from
11946         # explicitly linking system object files so we need to strip them
11947         # from the output so that they don't get included in the library
11948         # dependencies.
11949         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'
11950         ;;
11951       *)
11952         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11953           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11954           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'
11955
11956           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11957           hardcode_libdir_separator_CXX=:
11958
11959           # Commands to make compiler produce verbose output that lists
11960           # what "hidden" libraries, object files and flags are used when
11961           # linking a shared library.
11962           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11963
11964         else
11965           # FIXME: insert proper C++ library support
11966           ld_shlibs_CXX=no
11967         fi
11968         ;;
11969     esac
11970     ;;
11971   osf4* | osf5*)
11972     case $cc_basename in
11973       KCC*)
11974         # Kuck and Associates, Inc. (KAI) C++ Compiler
11975
11976         # KCC will only create a shared library if the output file
11977         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11978         # to its proper name (with version) after linking.
11979         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'
11980
11981         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11982         hardcode_libdir_separator_CXX=:
11983
11984         # Archives containing C++ object files must be created using
11985         # the KAI C++ compiler.
11986         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11987         ;;
11988       RCC*)
11989         # Rational C++ 2.4.1
11990         # FIXME: insert proper C++ library support
11991         ld_shlibs_CXX=no
11992         ;;
11993       cxx*)
11994         allow_undefined_flag_CXX=' -expect_unresolved \*'
11995         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'
11996         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11997           echo "-hidden">> $lib.exp~
11998           $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~
11999           $rm $lib.exp'
12000
12001         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12002         hardcode_libdir_separator_CXX=:
12003
12004         # Commands to make compiler produce verbose output that lists
12005         # what "hidden" libraries, object files and flags are used when
12006         # linking a shared library.
12007         #
12008         # There doesn't appear to be a way to prevent this compiler from
12009         # explicitly linking system object files so we need to strip them
12010         # from the output so that they don't get included in the library
12011         # dependencies.
12012         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'
12013         ;;
12014       *)
12015         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12016           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12017          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'
12018
12019           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12020           hardcode_libdir_separator_CXX=:
12021
12022           # Commands to make compiler produce verbose output that lists
12023           # what "hidden" libraries, object files and flags are used when
12024           # linking a shared library.
12025           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12026
12027         else
12028           # FIXME: insert proper C++ library support
12029           ld_shlibs_CXX=no
12030         fi
12031         ;;
12032     esac
12033     ;;
12034   psos*)
12035     # FIXME: insert proper C++ library support
12036     ld_shlibs_CXX=no
12037     ;;
12038   sunos4*)
12039     case $cc_basename in
12040       CC*)
12041         # Sun C++ 4.x
12042         # FIXME: insert proper C++ library support
12043         ld_shlibs_CXX=no
12044         ;;
12045       lcc*)
12046         # Lucid
12047         # FIXME: insert proper C++ library support
12048         ld_shlibs_CXX=no
12049         ;;
12050       *)
12051         # FIXME: insert proper C++ library support
12052         ld_shlibs_CXX=no
12053         ;;
12054     esac
12055     ;;
12056   solaris*)
12057     case $cc_basename in
12058       CC*)
12059         # Sun C++ 4.2, 5.x and Centerline C++
12060         archive_cmds_need_lc_CXX=yes
12061         no_undefined_flag_CXX=' -zdefs'
12062         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12063         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12064         $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'
12065
12066         hardcode_libdir_flag_spec_CXX='-R$libdir'
12067         hardcode_shlibpath_var_CXX=no
12068         case $host_os in
12069           solaris2.[0-5] | solaris2.[0-5].*) ;;
12070           *)
12071             # The compiler driver will combine and reorder linker options,
12072             # but understands `-z linker_flag'.
12073             # Supported since Solaris 2.6 (maybe 2.5.1?)
12074             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12075             ;;
12076         esac
12077         link_all_deplibs_CXX=yes
12078
12079         output_verbose_link_cmd='echo'
12080
12081         # Archives containing C++ object files must be created using
12082         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12083         # necessary to make sure instantiated templates are included
12084         # in the archive.
12085         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12086         ;;
12087       gcx*)
12088         # Green Hills C++ Compiler
12089         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12090
12091         # The C++ compiler must be used to create the archive.
12092         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12093         ;;
12094       *)
12095         # GNU C++ compiler with Solaris linker
12096         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12097           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12098           if $CC --version | grep -v '^2\.7' > /dev/null; then
12099             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12100             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12101                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12102
12103             # Commands to make compiler produce verbose output that lists
12104             # what "hidden" libraries, object files and flags are used when
12105             # linking a shared library.
12106             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12107           else
12108             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12109             # platform.
12110             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12111             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12112                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12113
12114             # Commands to make compiler produce verbose output that lists
12115             # what "hidden" libraries, object files and flags are used when
12116             # linking a shared library.
12117             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12118           fi
12119
12120           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12121           case $host_os in
12122           solaris2.[0-5] | solaris2.[0-5].*) ;;
12123           *)
12124             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12125             ;;
12126           esac
12127         fi
12128         ;;
12129     esac
12130     ;;
12131   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12132     no_undefined_flag_CXX='${wl}-z,text'
12133     archive_cmds_need_lc_CXX=no
12134     hardcode_shlibpath_var_CXX=no
12135     runpath_var='LD_RUN_PATH'
12136
12137     case $cc_basename in
12138       CC*)
12139         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12141         ;;
12142       *)
12143         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145         ;;
12146     esac
12147     ;;
12148   sysv5* | sco3.2v5* | sco5v6*)
12149     # Note: We can NOT use -z defs as we might desire, because we do not
12150     # link with -lc, and that would cause any symbols used from libc to
12151     # always be unresolved, which means just about no library would
12152     # ever link correctly.  If we're not using GNU ld we use -z text
12153     # though, which does catch some bad symbols but isn't as heavy-handed
12154     # as -z defs.
12155     # For security reasons, it is highly recommended that you always
12156     # use absolute paths for naming shared libraries, and exclude the
12157     # DT_RUNPATH tag from executables and libraries.  But doing so
12158     # requires that you compile everything twice, which is a pain.
12159     # So that behaviour is only enabled if SCOABSPATH is set to a
12160     # non-empty value in the environment.  Most likely only useful for
12161     # creating official distributions of packages.
12162     # This is a hack until libtool officially supports absolute path
12163     # names for shared libraries.
12164     no_undefined_flag_CXX='${wl}-z,text'
12165     allow_undefined_flag_CXX='${wl}-z,nodefs'
12166     archive_cmds_need_lc_CXX=no
12167     hardcode_shlibpath_var_CXX=no
12168     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12169     hardcode_libdir_separator_CXX=':'
12170     link_all_deplibs_CXX=yes
12171     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12172     runpath_var='LD_RUN_PATH'
12173
12174     case $cc_basename in
12175       CC*)
12176         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12178         ;;
12179       *)
12180         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12181         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12182         ;;
12183     esac
12184     ;;
12185   tandem*)
12186     case $cc_basename in
12187       NCC*)
12188         # NonStop-UX NCC 3.20
12189         # FIXME: insert proper C++ library support
12190         ld_shlibs_CXX=no
12191         ;;
12192       *)
12193         # FIXME: insert proper C++ library support
12194         ld_shlibs_CXX=no
12195         ;;
12196     esac
12197     ;;
12198   vxworks*)
12199     # FIXME: insert proper C++ library support
12200     ld_shlibs_CXX=no
12201     ;;
12202   *)
12203     # FIXME: insert proper C++ library support
12204     ld_shlibs_CXX=no
12205     ;;
12206 esac
12207 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12208 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12209 test "$ld_shlibs_CXX" = no && can_build_shared=no
12210
12211 GCC_CXX="$GXX"
12212 LD_CXX="$LD"
12213
12214 cat > conftest.$ac_ext <<EOF
12215 class Foo
12216 {
12217 public:
12218   Foo (void) { a = 0; }
12219 private:
12220   int a;
12221 };
12222 EOF
12223
12224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225   (eval $ac_compile) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; then
12229   # Parse the compiler output and extract the necessary
12230   # objects, libraries and library flags.
12231
12232   # Sentinel used to keep track of whether or not we are before
12233   # the conftest object file.
12234   pre_test_object_deps_done=no
12235
12236   # The `*' in the case matches for architectures that use `case' in
12237   # $output_verbose_cmd can trigger glob expansion during the loop
12238   # eval without this substitution.
12239   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12240
12241   for p in `eval $output_verbose_link_cmd`; do
12242     case $p in
12243
12244     -L* | -R* | -l*)
12245        # Some compilers place space between "-{L,R}" and the path.
12246        # Remove the space.
12247        if test $p = "-L" \
12248           || test $p = "-R"; then
12249          prev=$p
12250          continue
12251        else
12252          prev=
12253        fi
12254
12255        if test "$pre_test_object_deps_done" = no; then
12256          case $p in
12257          -L* | -R*)
12258            # Internal compiler library paths should come after those
12259            # provided the user.  The postdeps already come after the
12260            # user supplied libs so there is no need to process them.
12261            if test -z "$compiler_lib_search_path_CXX"; then
12262              compiler_lib_search_path_CXX="${prev}${p}"
12263            else
12264              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12265            fi
12266            ;;
12267          # The "-l" case would never come before the object being
12268          # linked, so don't bother handling this case.
12269          esac
12270        else
12271          if test -z "$postdeps_CXX"; then
12272            postdeps_CXX="${prev}${p}"
12273          else
12274            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12275          fi
12276        fi
12277        ;;
12278
12279     *.$objext)
12280        # This assumes that the test object file only shows up
12281        # once in the compiler output.
12282        if test "$p" = "conftest.$objext"; then
12283          pre_test_object_deps_done=yes
12284          continue
12285        fi
12286
12287        if test "$pre_test_object_deps_done" = no; then
12288          if test -z "$predep_objects_CXX"; then
12289            predep_objects_CXX="$p"
12290          else
12291            predep_objects_CXX="$predep_objects_CXX $p"
12292          fi
12293        else
12294          if test -z "$postdep_objects_CXX"; then
12295            postdep_objects_CXX="$p"
12296          else
12297            postdep_objects_CXX="$postdep_objects_CXX $p"
12298          fi
12299        fi
12300        ;;
12301
12302     *) ;; # Ignore the rest.
12303
12304     esac
12305   done
12306
12307   # Clean up.
12308   rm -f a.out a.exe
12309 else
12310   echo "libtool.m4: error: problem compiling CXX test program"
12311 fi
12312
12313 $rm -f confest.$objext
12314
12315 compiler_lib_search_dirs_CXX=
12316 if test -n "$compiler_lib_search_path_CXX"; then
12317   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12318 fi
12319
12320 # PORTME: override above test on systems where it is broken
12321 case $host_os in
12322 interix[3-9]*)
12323   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12324   # hack all around it, let's just trust "g++" to DTRT.
12325   predep_objects_CXX=
12326   postdep_objects_CXX=
12327   postdeps_CXX=
12328   ;;
12329
12330 linux*)
12331   case `$CC -V 2>&1 | sed 5q` in
12332   *Sun\ C*)
12333     # Sun C++ 5.9
12334     #
12335     # The more standards-conforming stlport4 library is
12336     # incompatible with the Cstd library. Avoid specifying
12337     # it if it's in CXXFLAGS. Ignore libCrun as
12338     # -library=stlport4 depends on it.
12339     case " $CXX $CXXFLAGS " in
12340     *" -library=stlport4 "*)
12341       solaris_use_stlport4=yes
12342       ;;
12343     esac
12344     if test "$solaris_use_stlport4" != yes; then
12345       postdeps_CXX='-library=Cstd -library=Crun'
12346     fi
12347     ;;
12348   esac
12349   ;;
12350
12351 solaris*)
12352   case $cc_basename in
12353   CC*)
12354     # The more standards-conforming stlport4 library is
12355     # incompatible with the Cstd library. Avoid specifying
12356     # it if it's in CXXFLAGS. Ignore libCrun as
12357     # -library=stlport4 depends on it.
12358     case " $CXX $CXXFLAGS " in
12359     *" -library=stlport4 "*)
12360       solaris_use_stlport4=yes
12361       ;;
12362     esac
12363
12364     # Adding this requires a known-good setup of shared libraries for
12365     # Sun compiler versions before 5.6, else PIC objects from an old
12366     # archive will be linked into the output, leading to subtle bugs.
12367     if test "$solaris_use_stlport4" != yes; then
12368       postdeps_CXX='-library=Cstd -library=Crun'
12369     fi
12370     ;;
12371   esac
12372   ;;
12373 esac
12374
12375 case " $postdeps_CXX " in
12376 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12377 esac
12378
12379 lt_prog_compiler_wl_CXX=
12380 lt_prog_compiler_pic_CXX=
12381 lt_prog_compiler_static_CXX=
12382
12383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12385
12386   # C++ specific cases for pic, static, wl, etc.
12387   if test "$GXX" = yes; then
12388     lt_prog_compiler_wl_CXX='-Wl,'
12389     lt_prog_compiler_static_CXX='-static'
12390
12391     case $host_os in
12392     aix*)
12393       # All AIX code is PIC.
12394       if test "$host_cpu" = ia64; then
12395         # AIX 5 now supports IA64 processor
12396         lt_prog_compiler_static_CXX='-Bstatic'
12397       fi
12398       ;;
12399     amigaos*)
12400       # FIXME: we need at least 68020 code to build shared libraries, but
12401       # adding the `-m68020' flag to GCC prevents building anything better,
12402       # like `-m68040'.
12403       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12404       ;;
12405     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12406       # PIC is the default for these OSes.
12407       ;;
12408     mingw* | cygwin* | os2* | pw32*)
12409       # This hack is so that the source file can tell whether it is being
12410       # built for inclusion in a dll (and should export symbols for example).
12411       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12412       # (--disable-auto-import) libraries
12413       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12414       ;;
12415     darwin* | rhapsody*)
12416       # PIC is the default on this platform
12417       # Common symbols not allowed in MH_DYLIB files
12418       lt_prog_compiler_pic_CXX='-fno-common'
12419       ;;
12420     *djgpp*)
12421       # DJGPP does not support shared libraries at all
12422       lt_prog_compiler_pic_CXX=
12423       ;;
12424     interix[3-9]*)
12425       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12426       # Instead, we relocate shared libraries at runtime.
12427       ;;
12428     sysv4*MP*)
12429       if test -d /usr/nec; then
12430         lt_prog_compiler_pic_CXX=-Kconform_pic
12431       fi
12432       ;;
12433     hpux*)
12434       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12435       # not for PA HP-UX.
12436       case $host_cpu in
12437       hppa*64*|ia64*)
12438         ;;
12439       *)
12440         lt_prog_compiler_pic_CXX='-fPIC'
12441         ;;
12442       esac
12443       ;;
12444     *)
12445       lt_prog_compiler_pic_CXX='-fPIC'
12446       ;;
12447     esac
12448   else
12449     case $host_os in
12450       aix[4-9]*)
12451         # All AIX code is PIC.
12452         if test "$host_cpu" = ia64; then
12453           # AIX 5 now supports IA64 processor
12454           lt_prog_compiler_static_CXX='-Bstatic'
12455         else
12456           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12457         fi
12458         ;;
12459       chorus*)
12460         case $cc_basename in
12461         cxch68*)
12462           # Green Hills C++ Compiler
12463           # _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"
12464           ;;
12465         esac
12466         ;;
12467        darwin*)
12468          # PIC is the default on this platform
12469          # Common symbols not allowed in MH_DYLIB files
12470          case $cc_basename in
12471            xlc*)
12472            lt_prog_compiler_pic_CXX='-qnocommon'
12473            lt_prog_compiler_wl_CXX='-Wl,'
12474            ;;
12475          esac
12476        ;;
12477       dgux*)
12478         case $cc_basename in
12479           ec++*)
12480             lt_prog_compiler_pic_CXX='-KPIC'
12481             ;;
12482           ghcx*)
12483             # Green Hills C++ Compiler
12484             lt_prog_compiler_pic_CXX='-pic'
12485             ;;
12486           *)
12487             ;;
12488         esac
12489         ;;
12490       freebsd* | dragonfly*)
12491         # FreeBSD uses GNU C++
12492         ;;
12493       hpux9* | hpux10* | hpux11*)
12494         case $cc_basename in
12495           CC*)
12496             lt_prog_compiler_wl_CXX='-Wl,'
12497             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12498             if test "$host_cpu" != ia64; then
12499               lt_prog_compiler_pic_CXX='+Z'
12500             fi
12501             ;;
12502           aCC*)
12503             lt_prog_compiler_wl_CXX='-Wl,'
12504             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12505             case $host_cpu in
12506             hppa*64*|ia64*)
12507               # +Z the default
12508               ;;
12509             *)
12510               lt_prog_compiler_pic_CXX='+Z'
12511               ;;
12512             esac
12513             ;;
12514           *)
12515             ;;
12516         esac
12517         ;;
12518       interix*)
12519         # This is c89, which is MS Visual C++ (no shared libs)
12520         # Anyone wants to do a port?
12521         ;;
12522       irix5* | irix6* | nonstopux*)
12523         case $cc_basename in
12524           CC*)
12525             lt_prog_compiler_wl_CXX='-Wl,'
12526             lt_prog_compiler_static_CXX='-non_shared'
12527             # CC pic flag -KPIC is the default.
12528             ;;
12529           *)
12530             ;;
12531         esac
12532         ;;
12533       linux* | k*bsd*-gnu)
12534         case $cc_basename in
12535           KCC*)
12536             # KAI C++ Compiler
12537             lt_prog_compiler_wl_CXX='--backend -Wl,'
12538             lt_prog_compiler_pic_CXX='-fPIC'
12539             ;;
12540           icpc* | ecpc*)
12541             # Intel C++
12542             lt_prog_compiler_wl_CXX='-Wl,'
12543             lt_prog_compiler_pic_CXX='-KPIC'
12544             lt_prog_compiler_static_CXX='-static'
12545             ;;
12546           pgCC* | pgcpp*)
12547             # Portland Group C++ compiler.
12548             lt_prog_compiler_wl_CXX='-Wl,'
12549             lt_prog_compiler_pic_CXX='-fpic'
12550             lt_prog_compiler_static_CXX='-Bstatic'
12551             ;;
12552           cxx*)
12553             # Compaq C++
12554             # Make sure the PIC flag is empty.  It appears that all Alpha
12555             # Linux and Compaq Tru64 Unix objects are PIC.
12556             lt_prog_compiler_pic_CXX=
12557             lt_prog_compiler_static_CXX='-non_shared'
12558             ;;
12559           *)
12560             case `$CC -V 2>&1 | sed 5q` in
12561             *Sun\ C*)
12562               # Sun C++ 5.9
12563               lt_prog_compiler_pic_CXX='-KPIC'
12564               lt_prog_compiler_static_CXX='-Bstatic'
12565               lt_prog_compiler_wl_CXX='-Qoption ld '
12566               ;;
12567             esac
12568             ;;
12569         esac
12570         ;;
12571       lynxos*)
12572         ;;
12573       m88k*)
12574         ;;
12575       mvs*)
12576         case $cc_basename in
12577           cxx*)
12578             lt_prog_compiler_pic_CXX='-W c,exportall'
12579             ;;
12580           *)
12581             ;;
12582         esac
12583         ;;
12584       netbsd* | netbsdelf*-gnu)
12585         ;;
12586       osf3* | osf4* | osf5*)
12587         case $cc_basename in
12588           KCC*)
12589             lt_prog_compiler_wl_CXX='--backend -Wl,'
12590             ;;
12591           RCC*)
12592             # Rational C++ 2.4.1
12593             lt_prog_compiler_pic_CXX='-pic'
12594             ;;
12595           cxx*)
12596             # Digital/Compaq C++
12597             lt_prog_compiler_wl_CXX='-Wl,'
12598             # Make sure the PIC flag is empty.  It appears that all Alpha
12599             # Linux and Compaq Tru64 Unix objects are PIC.
12600             lt_prog_compiler_pic_CXX=
12601             lt_prog_compiler_static_CXX='-non_shared'
12602             ;;
12603           *)
12604             ;;
12605         esac
12606         ;;
12607       psos*)
12608         ;;
12609       solaris*)
12610         case $cc_basename in
12611           CC*)
12612             # Sun C++ 4.2, 5.x and Centerline C++
12613             lt_prog_compiler_pic_CXX='-KPIC'
12614             lt_prog_compiler_static_CXX='-Bstatic'
12615             lt_prog_compiler_wl_CXX='-Qoption ld '
12616             ;;
12617           gcx*)
12618             # Green Hills C++ Compiler
12619             lt_prog_compiler_pic_CXX='-PIC'
12620             ;;
12621           *)
12622             ;;
12623         esac
12624         ;;
12625       sunos4*)
12626         case $cc_basename in
12627           CC*)
12628             # Sun C++ 4.x
12629             lt_prog_compiler_pic_CXX='-pic'
12630             lt_prog_compiler_static_CXX='-Bstatic'
12631             ;;
12632           lcc*)
12633             # Lucid
12634             lt_prog_compiler_pic_CXX='-pic'
12635             ;;
12636           *)
12637             ;;
12638         esac
12639         ;;
12640       tandem*)
12641         case $cc_basename in
12642           NCC*)
12643             # NonStop-UX NCC 3.20
12644             lt_prog_compiler_pic_CXX='-KPIC'
12645             ;;
12646           *)
12647             ;;
12648         esac
12649         ;;
12650       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12651         case $cc_basename in
12652           CC*)
12653             lt_prog_compiler_wl_CXX='-Wl,'
12654             lt_prog_compiler_pic_CXX='-KPIC'
12655             lt_prog_compiler_static_CXX='-Bstatic'
12656             ;;
12657         esac
12658         ;;
12659       vxworks*)
12660         ;;
12661       *)
12662         lt_prog_compiler_can_build_shared_CXX=no
12663         ;;
12664     esac
12665   fi
12666
12667 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12668 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12669
12670 #
12671 # Check to make sure the PIC flag actually works.
12672 #
12673 if test -n "$lt_prog_compiler_pic_CXX"; then
12674
12675 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12676 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12677 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12678   echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680   lt_cv_prog_compiler_pic_works_CXX=no
12681   ac_outfile=conftest.$ac_objext
12682    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12683    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12684    # Insert the option either (1) after the last *FLAGS variable, or
12685    # (2) before a word containing "conftest.", or (3) at the end.
12686    # Note that $ac_compile itself does not contain backslashes and begins
12687    # with a dollar sign (not a hyphen), so the echo should work correctly.
12688    # The option is referenced via a variable to avoid confusing sed.
12689    lt_compile=`echo "$ac_compile" | $SED \
12690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12692    -e 's:$: $lt_compiler_flag:'`
12693    (eval echo "\"\$as_me:12693: $lt_compile\"" >&5)
12694    (eval "$lt_compile" 2>conftest.err)
12695    ac_status=$?
12696    cat conftest.err >&5
12697    echo "$as_me:12697: \$? = $ac_status" >&5
12698    if (exit $ac_status) && test -s "$ac_outfile"; then
12699      # The compiler can only warn and ignore the option if not recognized
12700      # So say no if there are warnings other than the usual output.
12701      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12702      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12703      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12704        lt_cv_prog_compiler_pic_works_CXX=yes
12705      fi
12706    fi
12707    $rm conftest*
12708
12709 fi
12710 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12711 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12712
12713 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12714     case $lt_prog_compiler_pic_CXX in
12715      "" | " "*) ;;
12716      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12717      esac
12718 else
12719     lt_prog_compiler_pic_CXX=
12720      lt_prog_compiler_can_build_shared_CXX=no
12721 fi
12722
12723 fi
12724 case $host_os in
12725   # For platforms which do not support PIC, -DPIC is meaningless:
12726   *djgpp*)
12727     lt_prog_compiler_pic_CXX=
12728     ;;
12729   *)
12730     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12731     ;;
12732 esac
12733
12734 #
12735 # Check to make sure the static flag actually works.
12736 #
12737 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12738 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12739 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12740 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12741   echo $ECHO_N "(cached) $ECHO_C" >&6
12742 else
12743   lt_cv_prog_compiler_static_works_CXX=no
12744    save_LDFLAGS="$LDFLAGS"
12745    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12746    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12747    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12748      # The linker can only warn and ignore the option if not recognized
12749      # So say no if there are warnings
12750      if test -s conftest.err; then
12751        # Append any errors to the config.log.
12752        cat conftest.err 1>&5
12753        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12754        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12755        if diff conftest.exp conftest.er2 >/dev/null; then
12756          lt_cv_prog_compiler_static_works_CXX=yes
12757        fi
12758      else
12759        lt_cv_prog_compiler_static_works_CXX=yes
12760      fi
12761    fi
12762    $rm -r conftest*
12763    LDFLAGS="$save_LDFLAGS"
12764
12765 fi
12766 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12767 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12768
12769 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12770     :
12771 else
12772     lt_prog_compiler_static_CXX=
12773 fi
12774
12775
12776 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12777 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12778 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781   lt_cv_prog_compiler_c_o_CXX=no
12782    $rm -r conftest 2>/dev/null
12783    mkdir conftest
12784    cd conftest
12785    mkdir out
12786    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12787
12788    lt_compiler_flag="-o out/conftest2.$ac_objext"
12789    # Insert the option either (1) after the last *FLAGS variable, or
12790    # (2) before a word containing "conftest.", or (3) at the end.
12791    # Note that $ac_compile itself does not contain backslashes and begins
12792    # with a dollar sign (not a hyphen), so the echo should work correctly.
12793    lt_compile=`echo "$ac_compile" | $SED \
12794    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12795    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12796    -e 's:$: $lt_compiler_flag:'`
12797    (eval echo "\"\$as_me:12797: $lt_compile\"" >&5)
12798    (eval "$lt_compile" 2>out/conftest.err)
12799    ac_status=$?
12800    cat out/conftest.err >&5
12801    echo "$as_me:12801: \$? = $ac_status" >&5
12802    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12803    then
12804      # The compiler can only warn and ignore the option if not recognized
12805      # So say no if there are warnings
12806      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12807      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12808      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12809        lt_cv_prog_compiler_c_o_CXX=yes
12810      fi
12811    fi
12812    chmod u+w . 2>&5
12813    $rm conftest*
12814    # SGI C++ compiler will create directory out/ii_files/ for
12815    # template instantiation
12816    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12817    $rm out/* && rmdir out
12818    cd ..
12819    rmdir conftest
12820    $rm conftest*
12821
12822 fi
12823 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12824 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12825
12826
12827 hard_links="nottested"
12828 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12829   # do not overwrite the value of need_locks provided by the user
12830   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12831 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12832   hard_links=yes
12833   $rm conftest*
12834   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12835   touch conftest.a
12836   ln conftest.a conftest.b 2>&5 || hard_links=no
12837   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12838   { echo "$as_me:$LINENO: result: $hard_links" >&5
12839 echo "${ECHO_T}$hard_links" >&6; }
12840   if test "$hard_links" = no; then
12841     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12842 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12843     need_locks=warn
12844   fi
12845 else
12846   need_locks=no
12847 fi
12848
12849 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12850 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12851
12852   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12853   case $host_os in
12854   aix[4-9]*)
12855     # If we're using GNU nm, then we don't want the "-C" option.
12856     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12857     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12858       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'
12859     else
12860       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'
12861     fi
12862     ;;
12863   pw32*)
12864     export_symbols_cmds_CXX="$ltdll_cmds"
12865   ;;
12866   cygwin* | mingw*)
12867     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'
12868   ;;
12869   linux* | k*bsd*-gnu)
12870     link_all_deplibs_CXX=no
12871   ;;
12872   *)
12873     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12874   ;;
12875   esac
12876   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12877
12878 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12879 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12880 test "$ld_shlibs_CXX" = no && can_build_shared=no
12881
12882 #
12883 # Do we need to explicitly link libc?
12884 #
12885 case "x$archive_cmds_need_lc_CXX" in
12886 x|xyes)
12887   # Assume -lc should be added
12888   archive_cmds_need_lc_CXX=yes
12889
12890   if test "$enable_shared" = yes && test "$GCC" = yes; then
12891     case $archive_cmds_CXX in
12892     *'~'*)
12893       # FIXME: we may have to deal with multi-command sequences.
12894       ;;
12895     '$CC '*)
12896       # Test whether the compiler implicitly links with -lc since on some
12897       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12898       # to ld, don't add -lc before -lgcc.
12899       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12900 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12901       $rm conftest*
12902       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12903
12904       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12905   (eval $ac_compile) 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } 2>conftest.err; then
12909         soname=conftest
12910         lib=conftest
12911         libobjs=conftest.$ac_objext
12912         deplibs=
12913         wl=$lt_prog_compiler_wl_CXX
12914         pic_flag=$lt_prog_compiler_pic_CXX
12915         compiler_flags=-v
12916         linker_flags=-v
12917         verstring=
12918         output_objdir=.
12919         libname=conftest
12920         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12921         allow_undefined_flag_CXX=
12922         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12923   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }
12927         then
12928           archive_cmds_need_lc_CXX=no
12929         else
12930           archive_cmds_need_lc_CXX=yes
12931         fi
12932         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12933       else
12934         cat conftest.err 1>&5
12935       fi
12936       $rm conftest*
12937       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12938 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12939       ;;
12940     esac
12941   fi
12942   ;;
12943 esac
12944
12945 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12946 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12947 library_names_spec=
12948 libname_spec='lib$name'
12949 soname_spec=
12950 shrext_cmds=".so"
12951 postinstall_cmds=
12952 postuninstall_cmds=
12953 finish_cmds=
12954 finish_eval=
12955 shlibpath_var=
12956 shlibpath_overrides_runpath=unknown
12957 version_type=none
12958 dynamic_linker="$host_os ld.so"
12959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12960
12961 need_lib_prefix=unknown
12962 hardcode_into_libs=no
12963
12964 # when you set need_version to no, make sure it does not cause -set_version
12965 # flags to be left without arguments
12966 need_version=unknown
12967
12968 case $host_os in
12969 aix3*)
12970   version_type=linux
12971   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12972   shlibpath_var=LIBPATH
12973
12974   # AIX 3 has no versioning support, so we append a major version to the name.
12975   soname_spec='${libname}${release}${shared_ext}$major'
12976   ;;
12977
12978 aix[4-9]*)
12979   version_type=linux
12980   need_lib_prefix=no
12981   need_version=no
12982   hardcode_into_libs=yes
12983   if test "$host_cpu" = ia64; then
12984     # AIX 5 supports IA64
12985     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12986     shlibpath_var=LD_LIBRARY_PATH
12987   else
12988     # With GCC up to 2.95.x, collect2 would create an import file
12989     # for dependence libraries.  The import file would start with
12990     # the line `#! .'.  This would cause the generated library to
12991     # depend on `.', always an invalid library.  This was fixed in
12992     # development snapshots of GCC prior to 3.0.
12993     case $host_os in
12994       aix4 | aix4.[01] | aix4.[01].*)
12995       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12996            echo ' yes '
12997            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12998         :
12999       else
13000         can_build_shared=no
13001       fi
13002       ;;
13003     esac
13004     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13005     # soname into executable. Probably we can add versioning support to
13006     # collect2, so additional links can be useful in future.
13007     if test "$aix_use_runtimelinking" = yes; then
13008       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13009       # instead of lib<name>.a to let people know that these are not
13010       # typical AIX shared libraries.
13011       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13012     else
13013       # We preserve .a as extension for shared libraries through AIX4.2
13014       # and later when we are not doing run time linking.
13015       library_names_spec='${libname}${release}.a $libname.a'
13016       soname_spec='${libname}${release}${shared_ext}$major'
13017     fi
13018     shlibpath_var=LIBPATH
13019   fi
13020   ;;
13021
13022 amigaos*)
13023   library_names_spec='$libname.ixlibrary $libname.a'
13024   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13025   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'
13026   ;;
13027
13028 beos*)
13029   library_names_spec='${libname}${shared_ext}'
13030   dynamic_linker="$host_os ld.so"
13031   shlibpath_var=LIBRARY_PATH
13032   ;;
13033
13034 bsdi[45]*)
13035   version_type=linux
13036   need_version=no
13037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038   soname_spec='${libname}${release}${shared_ext}$major'
13039   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13040   shlibpath_var=LD_LIBRARY_PATH
13041   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13042   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13043   # the default ld.so.conf also contains /usr/contrib/lib and
13044   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13045   # libtool to hard-code these into programs
13046   ;;
13047
13048 cygwin* | mingw* | pw32*)
13049   version_type=windows
13050   shrext_cmds=".dll"
13051   need_version=no
13052   need_lib_prefix=no
13053
13054   case $GCC,$host_os in
13055   yes,cygwin* | yes,mingw* | yes,pw32*)
13056     library_names_spec='$libname.dll.a'
13057     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13058     postinstall_cmds='base_file=`basename \${file}`~
13059       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13060       dldir=$destdir/`dirname \$dlpath`~
13061       test -d \$dldir || mkdir -p \$dldir~
13062       $install_prog $dir/$dlname \$dldir/$dlname~
13063       chmod a+x \$dldir/$dlname'
13064     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13065       dlpath=$dir/\$dldll~
13066        $rm \$dlpath'
13067     shlibpath_overrides_runpath=yes
13068
13069     case $host_os in
13070     cygwin*)
13071       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13072       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13073       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13074       ;;
13075     mingw*)
13076       # MinGW DLLs use traditional 'lib' prefix
13077       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13078       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13079       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13080         # It is most probably a Windows format PATH printed by
13081         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13082         # path with ; separators, and with drive letters. We can handle the
13083         # drive letters (cygwin fileutils understands them), so leave them,
13084         # especially as we might pass files found there to a mingw objdump,
13085         # which wouldn't understand a cygwinified path. Ahh.
13086         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13087       else
13088         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13089       fi
13090       ;;
13091     pw32*)
13092       # pw32 DLLs use 'pw' prefix rather than 'lib'
13093       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13094       ;;
13095     esac
13096     ;;
13097
13098   *)
13099     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13100     ;;
13101   esac
13102   dynamic_linker='Win32 ld.exe'
13103   # FIXME: first we should search . and the directory the executable is in
13104   shlibpath_var=PATH
13105   ;;
13106
13107 darwin* | rhapsody*)
13108   dynamic_linker="$host_os dyld"
13109   version_type=darwin
13110   need_lib_prefix=no
13111   need_version=no
13112   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13113   soname_spec='${libname}${release}${major}$shared_ext'
13114   shlibpath_overrides_runpath=yes
13115   shlibpath_var=DYLD_LIBRARY_PATH
13116   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13117
13118   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13119   ;;
13120
13121 dgux*)
13122   version_type=linux
13123   need_lib_prefix=no
13124   need_version=no
13125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13126   soname_spec='${libname}${release}${shared_ext}$major'
13127   shlibpath_var=LD_LIBRARY_PATH
13128   ;;
13129
13130 freebsd1*)
13131   dynamic_linker=no
13132   ;;
13133
13134 freebsd* | dragonfly*)
13135   # DragonFly does not have aout.  When/if they implement a new
13136   # versioning mechanism, adjust this.
13137   if test -x /usr/bin/objformat; then
13138     objformat=`/usr/bin/objformat`
13139   else
13140     case $host_os in
13141     freebsd[123]*) objformat=aout ;;
13142     *) objformat=elf ;;
13143     esac
13144   fi
13145   version_type=freebsd-$objformat
13146   case $version_type in
13147     freebsd-elf*)
13148       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13149       need_version=no
13150       need_lib_prefix=no
13151       ;;
13152     freebsd-*)
13153       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13154       need_version=yes
13155       ;;
13156   esac
13157   shlibpath_var=LD_LIBRARY_PATH
13158   case $host_os in
13159   freebsd2*)
13160     shlibpath_overrides_runpath=yes
13161     ;;
13162   freebsd3.[01]* | freebsdelf3.[01]*)
13163     shlibpath_overrides_runpath=yes
13164     hardcode_into_libs=yes
13165     ;;
13166   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13167   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13168     shlibpath_overrides_runpath=no
13169     hardcode_into_libs=yes
13170     ;;
13171   *) # from 4.6 on, and DragonFly
13172     shlibpath_overrides_runpath=yes
13173     hardcode_into_libs=yes
13174     ;;
13175   esac
13176   ;;
13177
13178 gnu*)
13179   version_type=linux
13180   need_lib_prefix=no
13181   need_version=no
13182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13183   soname_spec='${libname}${release}${shared_ext}$major'
13184   shlibpath_var=LD_LIBRARY_PATH
13185   hardcode_into_libs=yes
13186   ;;
13187
13188 hpux9* | hpux10* | hpux11*)
13189   # Give a soname corresponding to the major version so that dld.sl refuses to
13190   # link against other versions.
13191   version_type=sunos
13192   need_lib_prefix=no
13193   need_version=no
13194   case $host_cpu in
13195   ia64*)
13196     shrext_cmds='.so'
13197     hardcode_into_libs=yes
13198     dynamic_linker="$host_os dld.so"
13199     shlibpath_var=LD_LIBRARY_PATH
13200     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13201     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202     soname_spec='${libname}${release}${shared_ext}$major'
13203     if test "X$HPUX_IA64_MODE" = X32; then
13204       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13205     else
13206       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13207     fi
13208     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13209     ;;
13210    hppa*64*)
13211      shrext_cmds='.sl'
13212      hardcode_into_libs=yes
13213      dynamic_linker="$host_os dld.sl"
13214      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13215      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13216      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13217      soname_spec='${libname}${release}${shared_ext}$major'
13218      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13219      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13220      ;;
13221    *)
13222     shrext_cmds='.sl'
13223     dynamic_linker="$host_os dld.sl"
13224     shlibpath_var=SHLIB_PATH
13225     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13227     soname_spec='${libname}${release}${shared_ext}$major'
13228     ;;
13229   esac
13230   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13231   postinstall_cmds='chmod 555 $lib'
13232   ;;
13233
13234 interix[3-9]*)
13235   version_type=linux
13236   need_lib_prefix=no
13237   need_version=no
13238   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13239   soname_spec='${libname}${release}${shared_ext}$major'
13240   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13241   shlibpath_var=LD_LIBRARY_PATH
13242   shlibpath_overrides_runpath=no
13243   hardcode_into_libs=yes
13244   ;;
13245
13246 irix5* | irix6* | nonstopux*)
13247   case $host_os in
13248     nonstopux*) version_type=nonstopux ;;
13249     *)
13250         if test "$lt_cv_prog_gnu_ld" = yes; then
13251                 version_type=linux
13252         else
13253                 version_type=irix
13254         fi ;;
13255   esac
13256   need_lib_prefix=no
13257   need_version=no
13258   soname_spec='${libname}${release}${shared_ext}$major'
13259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13260   case $host_os in
13261   irix5* | nonstopux*)
13262     libsuff= shlibsuff=
13263     ;;
13264   *)
13265     case $LD in # libtool.m4 will add one of these switches to LD
13266     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13267       libsuff= shlibsuff= libmagic=32-bit;;
13268     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13269       libsuff=32 shlibsuff=N32 libmagic=N32;;
13270     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13271       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13272     *) libsuff= shlibsuff= libmagic=never-match;;
13273     esac
13274     ;;
13275   esac
13276   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13277   shlibpath_overrides_runpath=no
13278   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13279   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13280   hardcode_into_libs=yes
13281   ;;
13282
13283 # No shared lib support for Linux oldld, aout, or coff.
13284 linux*oldld* | linux*aout* | linux*coff*)
13285   dynamic_linker=no
13286   ;;
13287
13288 # This must be Linux ELF.
13289 linux* | k*bsd*-gnu)
13290   version_type=linux
13291   need_lib_prefix=no
13292   need_version=no
13293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13294   soname_spec='${libname}${release}${shared_ext}$major'
13295   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13296   shlibpath_var=LD_LIBRARY_PATH
13297   shlibpath_overrides_runpath=no
13298   # This implies no fast_install, which is unacceptable.
13299   # Some rework will be needed to allow for fast_install
13300   # before this can be enabled.
13301   hardcode_into_libs=yes
13302
13303   # Append ld.so.conf contents to the search path
13304   if test -f /etc/ld.so.conf; then
13305     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' ' '`
13306     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13307   fi
13308
13309   # We used to test for /lib/ld.so.1 and disable shared libraries on
13310   # powerpc, because MkLinux only supported shared libraries with the
13311   # GNU dynamic linker.  Since this was broken with cross compilers,
13312   # most powerpc-linux boxes support dynamic linking these days and
13313   # people can always --disable-shared, the test was removed, and we
13314   # assume the GNU/Linux dynamic linker is in use.
13315   dynamic_linker='GNU/Linux ld.so'
13316   ;;
13317
13318 netbsdelf*-gnu)
13319   version_type=linux
13320   need_lib_prefix=no
13321   need_version=no
13322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13323   soname_spec='${libname}${release}${shared_ext}$major'
13324   shlibpath_var=LD_LIBRARY_PATH
13325   shlibpath_overrides_runpath=no
13326   hardcode_into_libs=yes
13327   dynamic_linker='NetBSD ld.elf_so'
13328   ;;
13329
13330 netbsd*)
13331   version_type=sunos
13332   need_lib_prefix=no
13333   need_version=no
13334   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13336     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13337     dynamic_linker='NetBSD (a.out) ld.so'
13338   else
13339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13340     soname_spec='${libname}${release}${shared_ext}$major'
13341     dynamic_linker='NetBSD ld.elf_so'
13342   fi
13343   shlibpath_var=LD_LIBRARY_PATH
13344   shlibpath_overrides_runpath=yes
13345   hardcode_into_libs=yes
13346   ;;
13347
13348 newsos6)
13349   version_type=linux
13350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13351   shlibpath_var=LD_LIBRARY_PATH
13352   shlibpath_overrides_runpath=yes
13353   ;;
13354
13355 nto-qnx*)
13356   version_type=linux
13357   need_lib_prefix=no
13358   need_version=no
13359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13360   soname_spec='${libname}${release}${shared_ext}$major'
13361   shlibpath_var=LD_LIBRARY_PATH
13362   shlibpath_overrides_runpath=yes
13363   ;;
13364
13365 openbsd*)
13366   version_type=sunos
13367   sys_lib_dlsearch_path_spec="/usr/lib"
13368   need_lib_prefix=no
13369   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13370   case $host_os in
13371     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13372     *)                         need_version=no  ;;
13373   esac
13374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13375   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13376   shlibpath_var=LD_LIBRARY_PATH
13377   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13378     case $host_os in
13379       openbsd2.[89] | openbsd2.[89].*)
13380         shlibpath_overrides_runpath=no
13381         ;;
13382       *)
13383         shlibpath_overrides_runpath=yes
13384         ;;
13385       esac
13386   else
13387     shlibpath_overrides_runpath=yes
13388   fi
13389   ;;
13390
13391 os2*)
13392   libname_spec='$name'
13393   shrext_cmds=".dll"
13394   need_lib_prefix=no
13395   library_names_spec='$libname${shared_ext} $libname.a'
13396   dynamic_linker='OS/2 ld.exe'
13397   shlibpath_var=LIBPATH
13398   ;;
13399
13400 osf3* | osf4* | osf5*)
13401   version_type=osf
13402   need_lib_prefix=no
13403   need_version=no
13404   soname_spec='${libname}${release}${shared_ext}$major'
13405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406   shlibpath_var=LD_LIBRARY_PATH
13407   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13408   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13409   ;;
13410
13411 rdos*)
13412   dynamic_linker=no
13413   ;;
13414
13415 solaris*)
13416   version_type=linux
13417   need_lib_prefix=no
13418   need_version=no
13419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420   soname_spec='${libname}${release}${shared_ext}$major'
13421   shlibpath_var=LD_LIBRARY_PATH
13422   shlibpath_overrides_runpath=yes
13423   hardcode_into_libs=yes
13424   # ldd complains unless libraries are executable
13425   postinstall_cmds='chmod +x $lib'
13426   ;;
13427
13428 sunos4*)
13429   version_type=sunos
13430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13431   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13432   shlibpath_var=LD_LIBRARY_PATH
13433   shlibpath_overrides_runpath=yes
13434   if test "$with_gnu_ld" = yes; then
13435     need_lib_prefix=no
13436   fi
13437   need_version=yes
13438   ;;
13439
13440 sysv4 | sysv4.3*)
13441   version_type=linux
13442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443   soname_spec='${libname}${release}${shared_ext}$major'
13444   shlibpath_var=LD_LIBRARY_PATH
13445   case $host_vendor in
13446     sni)
13447       shlibpath_overrides_runpath=no
13448       need_lib_prefix=no
13449       export_dynamic_flag_spec='${wl}-Blargedynsym'
13450       runpath_var=LD_RUN_PATH
13451       ;;
13452     siemens)
13453       need_lib_prefix=no
13454       ;;
13455     motorola)
13456       need_lib_prefix=no
13457       need_version=no
13458       shlibpath_overrides_runpath=no
13459       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13460       ;;
13461   esac
13462   ;;
13463
13464 sysv4*MP*)
13465   if test -d /usr/nec ;then
13466     version_type=linux
13467     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13468     soname_spec='$libname${shared_ext}.$major'
13469     shlibpath_var=LD_LIBRARY_PATH
13470   fi
13471   ;;
13472
13473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13474   version_type=freebsd-elf
13475   need_lib_prefix=no
13476   need_version=no
13477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13478   soname_spec='${libname}${release}${shared_ext}$major'
13479   shlibpath_var=LD_LIBRARY_PATH
13480   hardcode_into_libs=yes
13481   if test "$with_gnu_ld" = yes; then
13482     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13483     shlibpath_overrides_runpath=no
13484   else
13485     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13486     shlibpath_overrides_runpath=yes
13487     case $host_os in
13488       sco3.2v5*)
13489         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13490         ;;
13491     esac
13492   fi
13493   sys_lib_dlsearch_path_spec='/usr/lib'
13494   ;;
13495
13496 uts4*)
13497   version_type=linux
13498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13499   soname_spec='${libname}${release}${shared_ext}$major'
13500   shlibpath_var=LD_LIBRARY_PATH
13501   ;;
13502
13503 *)
13504   dynamic_linker=no
13505   ;;
13506 esac
13507 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13508 echo "${ECHO_T}$dynamic_linker" >&6; }
13509 test "$dynamic_linker" = no && can_build_shared=no
13510
13511 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13512   echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13515 fi
13516
13517 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13518 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13519   echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13522 fi
13523
13524 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13525
13526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13527 if test "$GCC" = yes; then
13528   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13529 fi
13530
13531 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13532 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13533 hardcode_action_CXX=
13534 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13535    test -n "$runpath_var_CXX" || \
13536    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13537
13538   # We can hardcode non-existant directories.
13539   if test "$hardcode_direct_CXX" != no &&
13540      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13541      # have to relink, otherwise we might link with an installed library
13542      # when we should be linking with a yet-to-be-installed one
13543      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13544      test "$hardcode_minus_L_CXX" != no; then
13545     # Linking always hardcodes the temporary library directory.
13546     hardcode_action_CXX=relink
13547   else
13548     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13549     hardcode_action_CXX=immediate
13550   fi
13551 else
13552   # We cannot hardcode anything, or else we can only hardcode existing
13553   # directories.
13554   hardcode_action_CXX=unsupported
13555 fi
13556 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13557 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13558
13559 if test "$hardcode_action_CXX" = relink; then
13560   # Fast installation is not supported
13561   enable_fast_install=no
13562 elif test "$shlibpath_overrides_runpath" = yes ||
13563      test "$enable_shared" = no; then
13564   # Fast installation is not necessary
13565   enable_fast_install=needless
13566 fi
13567
13568
13569 # The else clause should only fire when bootstrapping the
13570 # libtool distribution, otherwise you forgot to ship ltmain.sh
13571 # with your package, and you will get complaints that there are
13572 # no rules to generate ltmain.sh.
13573 if test -f "$ltmain"; then
13574   # See if we are running on zsh, and set the options which allow our commands through
13575   # without removal of \ escapes.
13576   if test -n "${ZSH_VERSION+set}" ; then
13577     setopt NO_GLOB_SUBST
13578   fi
13579   # Now quote all the things that may contain metacharacters while being
13580   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13581   # variables and quote the copies for generation of the libtool script.
13582   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13583     SED SHELL STRIP \
13584     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13585     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13586     deplibs_check_method reload_flag reload_cmds need_locks \
13587     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13588     lt_cv_sys_global_symbol_to_c_name_address \
13589     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13590     old_postinstall_cmds old_postuninstall_cmds \
13591     compiler_CXX \
13592     CC_CXX \
13593     LD_CXX \
13594     lt_prog_compiler_wl_CXX \
13595     lt_prog_compiler_pic_CXX \
13596     lt_prog_compiler_static_CXX \
13597     lt_prog_compiler_no_builtin_flag_CXX \
13598     export_dynamic_flag_spec_CXX \
13599     thread_safe_flag_spec_CXX \
13600     whole_archive_flag_spec_CXX \
13601     enable_shared_with_static_runtimes_CXX \
13602     old_archive_cmds_CXX \
13603     old_archive_from_new_cmds_CXX \
13604     predep_objects_CXX \
13605     postdep_objects_CXX \
13606     predeps_CXX \
13607     postdeps_CXX \
13608     compiler_lib_search_path_CXX \
13609     compiler_lib_search_dirs_CXX \
13610     archive_cmds_CXX \
13611     archive_expsym_cmds_CXX \
13612     postinstall_cmds_CXX \
13613     postuninstall_cmds_CXX \
13614     old_archive_from_expsyms_cmds_CXX \
13615     allow_undefined_flag_CXX \
13616     no_undefined_flag_CXX \
13617     export_symbols_cmds_CXX \
13618     hardcode_libdir_flag_spec_CXX \
13619     hardcode_libdir_flag_spec_ld_CXX \
13620     hardcode_libdir_separator_CXX \
13621     hardcode_automatic_CXX \
13622     module_cmds_CXX \
13623     module_expsym_cmds_CXX \
13624     lt_cv_prog_compiler_c_o_CXX \
13625     fix_srcfile_path_CXX \
13626     exclude_expsyms_CXX \
13627     include_expsyms_CXX; do
13628
13629     case $var in
13630     old_archive_cmds_CXX | \
13631     old_archive_from_new_cmds_CXX | \
13632     archive_cmds_CXX | \
13633     archive_expsym_cmds_CXX | \
13634     module_cmds_CXX | \
13635     module_expsym_cmds_CXX | \
13636     old_archive_from_expsyms_cmds_CXX | \
13637     export_symbols_cmds_CXX | \
13638     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13639     postinstall_cmds | postuninstall_cmds | \
13640     old_postinstall_cmds | old_postuninstall_cmds | \
13641     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13642       # Double-quote double-evaled strings.
13643       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13644       ;;
13645     *)
13646       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13647       ;;
13648     esac
13649   done
13650
13651   case $lt_echo in
13652   *'\$0 --fallback-echo"')
13653     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13654     ;;
13655   esac
13656
13657 cfgfile="$ofile"
13658
13659   cat <<__EOF__ >> "$cfgfile"
13660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13661
13662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13663
13664 # Shell to use when invoking shell scripts.
13665 SHELL=$lt_SHELL
13666
13667 # Whether or not to build shared libraries.
13668 build_libtool_libs=$enable_shared
13669
13670 # Whether or not to build static libraries.
13671 build_old_libs=$enable_static
13672
13673 # Whether or not to add -lc for building shared libraries.
13674 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13675
13676 # Whether or not to disallow shared libs when runtime libs are static
13677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13678
13679 # Whether or not to optimize for fast installation.
13680 fast_install=$enable_fast_install
13681
13682 # The host system.
13683 host_alias=$host_alias
13684 host=$host
13685 host_os=$host_os
13686
13687 # The build system.
13688 build_alias=$build_alias
13689 build=$build
13690 build_os=$build_os
13691
13692 # An echo program that does not interpret backslashes.
13693 echo=$lt_echo
13694
13695 # The archiver.
13696 AR=$lt_AR
13697 AR_FLAGS=$lt_AR_FLAGS
13698
13699 # A C compiler.
13700 LTCC=$lt_LTCC
13701
13702 # LTCC compiler flags.
13703 LTCFLAGS=$lt_LTCFLAGS
13704
13705 # A language-specific compiler.
13706 CC=$lt_compiler_CXX
13707
13708 # Is the compiler the GNU C compiler?
13709 with_gcc=$GCC_CXX
13710
13711 # An ERE matcher.
13712 EGREP=$lt_EGREP
13713
13714 # The linker used to build libraries.
13715 LD=$lt_LD_CXX
13716
13717 # Whether we need hard or soft links.
13718 LN_S=$lt_LN_S
13719
13720 # A BSD-compatible nm program.
13721 NM=$lt_NM
13722
13723 # A symbol stripping program
13724 STRIP=$lt_STRIP
13725
13726 # Used to examine libraries when file_magic_cmd begins "file"
13727 MAGIC_CMD=$MAGIC_CMD
13728
13729 # Used on cygwin: DLL creation program.
13730 DLLTOOL="$DLLTOOL"
13731
13732 # Used on cygwin: object dumper.
13733 OBJDUMP="$OBJDUMP"
13734
13735 # Used on cygwin: assembler.
13736 AS="$AS"
13737
13738 # The name of the directory that contains temporary libtool files.
13739 objdir=$objdir
13740
13741 # How to create reloadable object files.
13742 reload_flag=$lt_reload_flag
13743 reload_cmds=$lt_reload_cmds
13744
13745 # How to pass a linker flag through the compiler.
13746 wl=$lt_lt_prog_compiler_wl_CXX
13747
13748 # Object file suffix (normally "o").
13749 objext="$ac_objext"
13750
13751 # Old archive suffix (normally "a").
13752 libext="$libext"
13753
13754 # Shared library suffix (normally ".so").
13755 shrext_cmds='$shrext_cmds'
13756
13757 # Executable file suffix (normally "").
13758 exeext="$exeext"
13759
13760 # Additional compiler flags for building library objects.
13761 pic_flag=$lt_lt_prog_compiler_pic_CXX
13762 pic_mode=$pic_mode
13763
13764 # What is the maximum length of a command?
13765 max_cmd_len=$lt_cv_sys_max_cmd_len
13766
13767 # Does compiler simultaneously support -c and -o options?
13768 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13769
13770 # Must we lock files when doing compilation?
13771 need_locks=$lt_need_locks
13772
13773 # Do we need the lib prefix for modules?
13774 need_lib_prefix=$need_lib_prefix
13775
13776 # Do we need a version for libraries?
13777 need_version=$need_version
13778
13779 # Whether dlopen is supported.
13780 dlopen_support=$enable_dlopen
13781
13782 # Whether dlopen of programs is supported.
13783 dlopen_self=$enable_dlopen_self
13784
13785 # Whether dlopen of statically linked programs is supported.
13786 dlopen_self_static=$enable_dlopen_self_static
13787
13788 # Compiler flag to prevent dynamic linking.
13789 link_static_flag=$lt_lt_prog_compiler_static_CXX
13790
13791 # Compiler flag to turn off builtin functions.
13792 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13793
13794 # Compiler flag to allow reflexive dlopens.
13795 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13796
13797 # Compiler flag to generate shared objects directly from archives.
13798 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13799
13800 # Compiler flag to generate thread-safe objects.
13801 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13802
13803 # Library versioning type.
13804 version_type=$version_type
13805
13806 # Format of library name prefix.
13807 libname_spec=$lt_libname_spec
13808
13809 # List of archive names.  First name is the real one, the rest are links.
13810 # The last name is the one that the linker finds with -lNAME.
13811 library_names_spec=$lt_library_names_spec
13812
13813 # The coded name of the library, if different from the real name.
13814 soname_spec=$lt_soname_spec
13815
13816 # Commands used to build and install an old-style archive.
13817 RANLIB=$lt_RANLIB
13818 old_archive_cmds=$lt_old_archive_cmds_CXX
13819 old_postinstall_cmds=$lt_old_postinstall_cmds
13820 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13821
13822 # Create an old-style archive from a shared archive.
13823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13824
13825 # Create a temporary old-style archive to link instead of a shared archive.
13826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13827
13828 # Commands used to build and install a shared archive.
13829 archive_cmds=$lt_archive_cmds_CXX
13830 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13831 postinstall_cmds=$lt_postinstall_cmds
13832 postuninstall_cmds=$lt_postuninstall_cmds
13833
13834 # Commands used to build a loadable module (assumed same as above if empty)
13835 module_cmds=$lt_module_cmds_CXX
13836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13837
13838 # Commands to strip libraries.
13839 old_striplib=$lt_old_striplib
13840 striplib=$lt_striplib
13841
13842 # Dependencies to place before the objects being linked to create a
13843 # shared library.
13844 predep_objects=$lt_predep_objects_CXX
13845
13846 # Dependencies to place after the objects being linked to create a
13847 # shared library.
13848 postdep_objects=$lt_postdep_objects_CXX
13849
13850 # Dependencies to place before the objects being linked to create a
13851 # shared library.
13852 predeps=$lt_predeps_CXX
13853
13854 # Dependencies to place after the objects being linked to create a
13855 # shared library.
13856 postdeps=$lt_postdeps_CXX
13857
13858 # The directories searched by this compiler when creating a shared
13859 # library
13860 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13861
13862 # The library search path used internally by the compiler when linking
13863 # a shared library.
13864 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13865
13866 # Method to check whether dependent libraries are shared objects.
13867 deplibs_check_method=$lt_deplibs_check_method
13868
13869 # Command to use when deplibs_check_method == file_magic.
13870 file_magic_cmd=$lt_file_magic_cmd
13871
13872 # Flag that allows shared libraries with undefined symbols to be built.
13873 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13874
13875 # Flag that forces no undefined symbols.
13876 no_undefined_flag=$lt_no_undefined_flag_CXX
13877
13878 # Commands used to finish a libtool library installation in a directory.
13879 finish_cmds=$lt_finish_cmds
13880
13881 # Same as above, but a single script fragment to be evaled but not shown.
13882 finish_eval=$lt_finish_eval
13883
13884 # Take the output of nm and produce a listing of raw symbols and C names.
13885 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13886
13887 # Transform the output of nm in a proper C declaration
13888 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13889
13890 # Transform the output of nm in a C name address pair
13891 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13892
13893 # This is the shared library runtime path variable.
13894 runpath_var=$runpath_var
13895
13896 # This is the shared library path variable.
13897 shlibpath_var=$shlibpath_var
13898
13899 # Is shlibpath searched before the hard-coded library search path?
13900 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13901
13902 # How to hardcode a shared library path into an executable.
13903 hardcode_action=$hardcode_action_CXX
13904
13905 # Whether we should hardcode library paths into libraries.
13906 hardcode_into_libs=$hardcode_into_libs
13907
13908 # Flag to hardcode \$libdir into a binary during linking.
13909 # This must work even if \$libdir does not exist.
13910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13911
13912 # If ld is used when linking, flag to hardcode \$libdir into
13913 # a binary during linking. This must work even if \$libdir does
13914 # not exist.
13915 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13916
13917 # Whether we need a single -rpath flag with a separated argument.
13918 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13919
13920 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13921 # resulting binary.
13922 hardcode_direct=$hardcode_direct_CXX
13923
13924 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13925 # resulting binary.
13926 hardcode_minus_L=$hardcode_minus_L_CXX
13927
13928 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13929 # the resulting binary.
13930 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13931
13932 # Set to yes if building a shared library automatically hardcodes DIR into the library
13933 # and all subsequent libraries and executables linked against it.
13934 hardcode_automatic=$hardcode_automatic_CXX
13935
13936 # Variables whose values should be saved in libtool wrapper scripts and
13937 # restored at relink time.
13938 variables_saved_for_relink="$variables_saved_for_relink"
13939
13940 # Whether libtool must link a program against all its dependency libraries.
13941 link_all_deplibs=$link_all_deplibs_CXX
13942
13943 # Compile-time system search path for libraries
13944 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13945
13946 # Run-time system search path for libraries
13947 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13948
13949 # Fix the shell variable \$srcfile for the compiler.
13950 fix_srcfile_path=$lt_fix_srcfile_path
13951
13952 # Set to yes if exported symbols are required.
13953 always_export_symbols=$always_export_symbols_CXX
13954
13955 # The commands to list exported symbols.
13956 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13957
13958 # The commands to extract the exported symbol list from a shared archive.
13959 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13960
13961 # Symbols that should not be listed in the preloaded symbols.
13962 exclude_expsyms=$lt_exclude_expsyms_CXX
13963
13964 # Symbols that must always be exported.
13965 include_expsyms=$lt_include_expsyms_CXX
13966
13967 # ### END LIBTOOL TAG CONFIG: $tagname
13968
13969 __EOF__
13970
13971
13972 else
13973   # If there is no Makefile yet, we rely on a make rule to execute
13974   # `config.status --recheck' to rerun these tests and create the
13975   # libtool script then.
13976   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13977   if test -f "$ltmain_in"; then
13978     test -f Makefile && make "$ltmain"
13979   fi
13980 fi
13981
13982
13983 ac_ext=c
13984 ac_cpp='$CPP $CPPFLAGS'
13985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13988
13989 CC=$lt_save_CC
13990 LDCXX=$LD
13991 LD=$lt_save_LD
13992 GCC=$lt_save_GCC
13993 with_gnu_ldcxx=$with_gnu_ld
13994 with_gnu_ld=$lt_save_with_gnu_ld
13995 lt_cv_path_LDCXX=$lt_cv_path_LD
13996 lt_cv_path_LD=$lt_save_path_LD
13997 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13998 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13999
14000         else
14001           tagname=""
14002         fi
14003         ;;
14004
14005       F77)
14006         if test -n "$F77" && test "X$F77" != "Xno"; then
14007
14008 ac_ext=f
14009 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14010 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14011 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14012
14013
14014 archive_cmds_need_lc_F77=no
14015 allow_undefined_flag_F77=
14016 always_export_symbols_F77=no
14017 archive_expsym_cmds_F77=
14018 export_dynamic_flag_spec_F77=
14019 hardcode_direct_F77=no
14020 hardcode_libdir_flag_spec_F77=
14021 hardcode_libdir_flag_spec_ld_F77=
14022 hardcode_libdir_separator_F77=
14023 hardcode_minus_L_F77=no
14024 hardcode_automatic_F77=no
14025 module_cmds_F77=
14026 module_expsym_cmds_F77=
14027 link_all_deplibs_F77=unknown
14028 old_archive_cmds_F77=$old_archive_cmds
14029 no_undefined_flag_F77=
14030 whole_archive_flag_spec_F77=
14031 enable_shared_with_static_runtimes_F77=no
14032
14033 # Source file extension for f77 test sources.
14034 ac_ext=f
14035
14036 # Object file extension for compiled f77 test sources.
14037 objext=o
14038 objext_F77=$objext
14039
14040 # Code to be used in simple compile tests
14041 lt_simple_compile_test_code="\
14042       subroutine t
14043       return
14044       end
14045 "
14046
14047 # Code to be used in simple link tests
14048 lt_simple_link_test_code="\
14049       program t
14050       end
14051 "
14052
14053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14054
14055 # If no C compiler was specified, use CC.
14056 LTCC=${LTCC-"$CC"}
14057
14058 # If no C compiler flags were specified, use CFLAGS.
14059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14060
14061 # Allow CC to be a program name with arguments.
14062 compiler=$CC
14063
14064
14065 # save warnings/boilerplate of simple test code
14066 ac_outfile=conftest.$ac_objext
14067 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14069 _lt_compiler_boilerplate=`cat conftest.err`
14070 $rm conftest*
14071
14072 ac_outfile=conftest.$ac_objext
14073 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14075 _lt_linker_boilerplate=`cat conftest.err`
14076 $rm -r conftest*
14077
14078
14079 # Allow CC to be a program name with arguments.
14080 lt_save_CC="$CC"
14081 CC=${F77-"f77"}
14082 compiler=$CC
14083 compiler_F77=$CC
14084 for cc_temp in $compiler""; do
14085   case $cc_temp in
14086     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14087     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14088     \-*) ;;
14089     *) break;;
14090   esac
14091 done
14092 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14093
14094
14095 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14096 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14097 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14098 echo "${ECHO_T}$can_build_shared" >&6; }
14099
14100 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14101 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14102 test "$can_build_shared" = "no" && enable_shared=no
14103
14104 # On AIX, shared libraries and static libraries use the same namespace, and
14105 # are all built from PIC.
14106 case $host_os in
14107 aix3*)
14108   test "$enable_shared" = yes && enable_static=no
14109   if test -n "$RANLIB"; then
14110     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14111     postinstall_cmds='$RANLIB $lib'
14112   fi
14113   ;;
14114 aix[4-9]*)
14115   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14116     test "$enable_shared" = yes && enable_static=no
14117   fi
14118   ;;
14119 esac
14120 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14121 echo "${ECHO_T}$enable_shared" >&6; }
14122
14123 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14124 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14125 # Make sure either enable_shared or enable_static is yes.
14126 test "$enable_shared" = yes || enable_static=yes
14127 { echo "$as_me:$LINENO: result: $enable_static" >&5
14128 echo "${ECHO_T}$enable_static" >&6; }
14129
14130 GCC_F77="$G77"
14131 LD_F77="$LD"
14132
14133 lt_prog_compiler_wl_F77=
14134 lt_prog_compiler_pic_F77=
14135 lt_prog_compiler_static_F77=
14136
14137 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14138 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14139
14140   if test "$GCC" = yes; then
14141     lt_prog_compiler_wl_F77='-Wl,'
14142     lt_prog_compiler_static_F77='-static'
14143
14144     case $host_os in
14145       aix*)
14146       # All AIX code is PIC.
14147       if test "$host_cpu" = ia64; then
14148         # AIX 5 now supports IA64 processor
14149         lt_prog_compiler_static_F77='-Bstatic'
14150       fi
14151       ;;
14152
14153     amigaos*)
14154       # FIXME: we need at least 68020 code to build shared libraries, but
14155       # adding the `-m68020' flag to GCC prevents building anything better,
14156       # like `-m68040'.
14157       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14158       ;;
14159
14160     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14161       # PIC is the default for these OSes.
14162       ;;
14163
14164     mingw* | cygwin* | pw32* | os2*)
14165       # This hack is so that the source file can tell whether it is being
14166       # built for inclusion in a dll (and should export symbols for example).
14167       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14168       # (--disable-auto-import) libraries
14169       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14170       ;;
14171
14172     darwin* | rhapsody*)
14173       # PIC is the default on this platform
14174       # Common symbols not allowed in MH_DYLIB files
14175       lt_prog_compiler_pic_F77='-fno-common'
14176       ;;
14177
14178     interix[3-9]*)
14179       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14180       # Instead, we relocate shared libraries at runtime.
14181       ;;
14182
14183     msdosdjgpp*)
14184       # Just because we use GCC doesn't mean we suddenly get shared libraries
14185       # on systems that don't support them.
14186       lt_prog_compiler_can_build_shared_F77=no
14187       enable_shared=no
14188       ;;
14189
14190     sysv4*MP*)
14191       if test -d /usr/nec; then
14192         lt_prog_compiler_pic_F77=-Kconform_pic
14193       fi
14194       ;;
14195
14196     hpux*)
14197       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14198       # not for PA HP-UX.
14199       case $host_cpu in
14200       hppa*64*|ia64*)
14201         # +Z the default
14202         ;;
14203       *)
14204         lt_prog_compiler_pic_F77='-fPIC'
14205         ;;
14206       esac
14207       ;;
14208
14209     *)
14210       lt_prog_compiler_pic_F77='-fPIC'
14211       ;;
14212     esac
14213   else
14214     # PORTME Check for flag to pass linker flags through the system compiler.
14215     case $host_os in
14216     aix*)
14217       lt_prog_compiler_wl_F77='-Wl,'
14218       if test "$host_cpu" = ia64; then
14219         # AIX 5 now supports IA64 processor
14220         lt_prog_compiler_static_F77='-Bstatic'
14221       else
14222         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14223       fi
14224       ;;
14225       darwin*)
14226         # PIC is the default on this platform
14227         # Common symbols not allowed in MH_DYLIB files
14228        case $cc_basename in
14229          xlc*)
14230          lt_prog_compiler_pic_F77='-qnocommon'
14231          lt_prog_compiler_wl_F77='-Wl,'
14232          ;;
14233        esac
14234        ;;
14235
14236     mingw* | cygwin* | pw32* | os2*)
14237       # This hack is so that the source file can tell whether it is being
14238       # built for inclusion in a dll (and should export symbols for example).
14239       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14240       ;;
14241
14242     hpux9* | hpux10* | hpux11*)
14243       lt_prog_compiler_wl_F77='-Wl,'
14244       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14245       # not for PA HP-UX.
14246       case $host_cpu in
14247       hppa*64*|ia64*)
14248         # +Z the default
14249         ;;
14250       *)
14251         lt_prog_compiler_pic_F77='+Z'
14252         ;;
14253       esac
14254       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14255       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14256       ;;
14257
14258     irix5* | irix6* | nonstopux*)
14259       lt_prog_compiler_wl_F77='-Wl,'
14260       # PIC (with -KPIC) is the default.
14261       lt_prog_compiler_static_F77='-non_shared'
14262       ;;
14263
14264     newsos6)
14265       lt_prog_compiler_pic_F77='-KPIC'
14266       lt_prog_compiler_static_F77='-Bstatic'
14267       ;;
14268
14269     linux* | k*bsd*-gnu)
14270       case $cc_basename in
14271       icc* | ecc*)
14272         lt_prog_compiler_wl_F77='-Wl,'
14273         lt_prog_compiler_pic_F77='-KPIC'
14274         lt_prog_compiler_static_F77='-static'
14275         ;;
14276       pgcc* | pgf77* | pgf90* | pgf95*)
14277         # Portland Group compilers (*not* the Pentium gcc compiler,
14278         # which looks to be a dead project)
14279         lt_prog_compiler_wl_F77='-Wl,'
14280         lt_prog_compiler_pic_F77='-fpic'
14281         lt_prog_compiler_static_F77='-Bstatic'
14282         ;;
14283       ccc*)
14284         lt_prog_compiler_wl_F77='-Wl,'
14285         # All Alpha code is PIC.
14286         lt_prog_compiler_static_F77='-non_shared'
14287         ;;
14288       *)
14289         case `$CC -V 2>&1 | sed 5q` in
14290         *Sun\ C*)
14291           # Sun C 5.9
14292           lt_prog_compiler_pic_F77='-KPIC'
14293           lt_prog_compiler_static_F77='-Bstatic'
14294           lt_prog_compiler_wl_F77='-Wl,'
14295           ;;
14296         *Sun\ F*)
14297           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14298           lt_prog_compiler_pic_F77='-KPIC'
14299           lt_prog_compiler_static_F77='-Bstatic'
14300           lt_prog_compiler_wl_F77=''
14301           ;;
14302         esac
14303         ;;
14304       esac
14305       ;;
14306
14307     osf3* | osf4* | osf5*)
14308       lt_prog_compiler_wl_F77='-Wl,'
14309       # All OSF/1 code is PIC.
14310       lt_prog_compiler_static_F77='-non_shared'
14311       ;;
14312
14313     rdos*)
14314       lt_prog_compiler_static_F77='-non_shared'
14315       ;;
14316
14317     solaris*)
14318       lt_prog_compiler_pic_F77='-KPIC'
14319       lt_prog_compiler_static_F77='-Bstatic'
14320       case $cc_basename in
14321       f77* | f90* | f95*)
14322         lt_prog_compiler_wl_F77='-Qoption ld ';;
14323       *)
14324         lt_prog_compiler_wl_F77='-Wl,';;
14325       esac
14326       ;;
14327
14328     sunos4*)
14329       lt_prog_compiler_wl_F77='-Qoption ld '
14330       lt_prog_compiler_pic_F77='-PIC'
14331       lt_prog_compiler_static_F77='-Bstatic'
14332       ;;
14333
14334     sysv4 | sysv4.2uw2* | sysv4.3*)
14335       lt_prog_compiler_wl_F77='-Wl,'
14336       lt_prog_compiler_pic_F77='-KPIC'
14337       lt_prog_compiler_static_F77='-Bstatic'
14338       ;;
14339
14340     sysv4*MP*)
14341       if test -d /usr/nec ;then
14342         lt_prog_compiler_pic_F77='-Kconform_pic'
14343         lt_prog_compiler_static_F77='-Bstatic'
14344       fi
14345       ;;
14346
14347     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14348       lt_prog_compiler_wl_F77='-Wl,'
14349       lt_prog_compiler_pic_F77='-KPIC'
14350       lt_prog_compiler_static_F77='-Bstatic'
14351       ;;
14352
14353     unicos*)
14354       lt_prog_compiler_wl_F77='-Wl,'
14355       lt_prog_compiler_can_build_shared_F77=no
14356       ;;
14357
14358     uts4*)
14359       lt_prog_compiler_pic_F77='-pic'
14360       lt_prog_compiler_static_F77='-Bstatic'
14361       ;;
14362
14363     *)
14364       lt_prog_compiler_can_build_shared_F77=no
14365       ;;
14366     esac
14367   fi
14368
14369 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14370 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14371
14372 #
14373 # Check to make sure the PIC flag actually works.
14374 #
14375 if test -n "$lt_prog_compiler_pic_F77"; then
14376
14377 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14379 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14380   echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382   lt_cv_prog_compiler_pic_works_F77=no
14383   ac_outfile=conftest.$ac_objext
14384    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14385    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14386    # Insert the option either (1) after the last *FLAGS variable, or
14387    # (2) before a word containing "conftest.", or (3) at the end.
14388    # Note that $ac_compile itself does not contain backslashes and begins
14389    # with a dollar sign (not a hyphen), so the echo should work correctly.
14390    # The option is referenced via a variable to avoid confusing sed.
14391    lt_compile=`echo "$ac_compile" | $SED \
14392    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14393    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14394    -e 's:$: $lt_compiler_flag:'`
14395    (eval echo "\"\$as_me:14395: $lt_compile\"" >&5)
14396    (eval "$lt_compile" 2>conftest.err)
14397    ac_status=$?
14398    cat conftest.err >&5
14399    echo "$as_me:14399: \$? = $ac_status" >&5
14400    if (exit $ac_status) && test -s "$ac_outfile"; then
14401      # The compiler can only warn and ignore the option if not recognized
14402      # So say no if there are warnings other than the usual output.
14403      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14404      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14405      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14406        lt_cv_prog_compiler_pic_works_F77=yes
14407      fi
14408    fi
14409    $rm conftest*
14410
14411 fi
14412 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14413 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14414
14415 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14416     case $lt_prog_compiler_pic_F77 in
14417      "" | " "*) ;;
14418      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14419      esac
14420 else
14421     lt_prog_compiler_pic_F77=
14422      lt_prog_compiler_can_build_shared_F77=no
14423 fi
14424
14425 fi
14426 case $host_os in
14427   # For platforms which do not support PIC, -DPIC is meaningless:
14428   *djgpp*)
14429     lt_prog_compiler_pic_F77=
14430     ;;
14431   *)
14432     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14433     ;;
14434 esac
14435
14436 #
14437 # Check to make sure the static flag actually works.
14438 #
14439 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14440 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14441 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14442 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14443   echo $ECHO_N "(cached) $ECHO_C" >&6
14444 else
14445   lt_cv_prog_compiler_static_works_F77=no
14446    save_LDFLAGS="$LDFLAGS"
14447    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14448    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14449    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14450      # The linker can only warn and ignore the option if not recognized
14451      # So say no if there are warnings
14452      if test -s conftest.err; then
14453        # Append any errors to the config.log.
14454        cat conftest.err 1>&5
14455        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14456        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14457        if diff conftest.exp conftest.er2 >/dev/null; then
14458          lt_cv_prog_compiler_static_works_F77=yes
14459        fi
14460      else
14461        lt_cv_prog_compiler_static_works_F77=yes
14462      fi
14463    fi
14464    $rm -r conftest*
14465    LDFLAGS="$save_LDFLAGS"
14466
14467 fi
14468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14469 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14470
14471 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14472     :
14473 else
14474     lt_prog_compiler_static_F77=
14475 fi
14476
14477
14478 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14479 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14480 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14481   echo $ECHO_N "(cached) $ECHO_C" >&6
14482 else
14483   lt_cv_prog_compiler_c_o_F77=no
14484    $rm -r conftest 2>/dev/null
14485    mkdir conftest
14486    cd conftest
14487    mkdir out
14488    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14489
14490    lt_compiler_flag="-o out/conftest2.$ac_objext"
14491    # Insert the option either (1) after the last *FLAGS variable, or
14492    # (2) before a word containing "conftest.", or (3) at the end.
14493    # Note that $ac_compile itself does not contain backslashes and begins
14494    # with a dollar sign (not a hyphen), so the echo should work correctly.
14495    lt_compile=`echo "$ac_compile" | $SED \
14496    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14498    -e 's:$: $lt_compiler_flag:'`
14499    (eval echo "\"\$as_me:14499: $lt_compile\"" >&5)
14500    (eval "$lt_compile" 2>out/conftest.err)
14501    ac_status=$?
14502    cat out/conftest.err >&5
14503    echo "$as_me:14503: \$? = $ac_status" >&5
14504    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14505    then
14506      # The compiler can only warn and ignore the option if not recognized
14507      # So say no if there are warnings
14508      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14509      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14510      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14511        lt_cv_prog_compiler_c_o_F77=yes
14512      fi
14513    fi
14514    chmod u+w . 2>&5
14515    $rm conftest*
14516    # SGI C++ compiler will create directory out/ii_files/ for
14517    # template instantiation
14518    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14519    $rm out/* && rmdir out
14520    cd ..
14521    rmdir conftest
14522    $rm conftest*
14523
14524 fi
14525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14526 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14527
14528
14529 hard_links="nottested"
14530 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14531   # do not overwrite the value of need_locks provided by the user
14532   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14533 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14534   hard_links=yes
14535   $rm conftest*
14536   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14537   touch conftest.a
14538   ln conftest.a conftest.b 2>&5 || hard_links=no
14539   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14540   { echo "$as_me:$LINENO: result: $hard_links" >&5
14541 echo "${ECHO_T}$hard_links" >&6; }
14542   if test "$hard_links" = no; then
14543     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14544 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14545     need_locks=warn
14546   fi
14547 else
14548   need_locks=no
14549 fi
14550
14551 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14552 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14553
14554   runpath_var=
14555   allow_undefined_flag_F77=
14556   enable_shared_with_static_runtimes_F77=no
14557   archive_cmds_F77=
14558   archive_expsym_cmds_F77=
14559   old_archive_From_new_cmds_F77=
14560   old_archive_from_expsyms_cmds_F77=
14561   export_dynamic_flag_spec_F77=
14562   whole_archive_flag_spec_F77=
14563   thread_safe_flag_spec_F77=
14564   hardcode_libdir_flag_spec_F77=
14565   hardcode_libdir_flag_spec_ld_F77=
14566   hardcode_libdir_separator_F77=
14567   hardcode_direct_F77=no
14568   hardcode_minus_L_F77=no
14569   hardcode_shlibpath_var_F77=unsupported
14570   link_all_deplibs_F77=unknown
14571   hardcode_automatic_F77=no
14572   module_cmds_F77=
14573   module_expsym_cmds_F77=
14574   always_export_symbols_F77=no
14575   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14576   # include_expsyms should be a list of space-separated symbols to be *always*
14577   # included in the symbol list
14578   include_expsyms_F77=
14579   # exclude_expsyms can be an extended regexp of symbols to exclude
14580   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14581   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14582   # as well as any symbol that contains `d'.
14583   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14584   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14585   # platforms (ab)use it in PIC code, but their linkers get confused if
14586   # the symbol is explicitly referenced.  Since portable code cannot
14587   # rely on this symbol name, it's probably fine to never include it in
14588   # preloaded symbol tables.
14589   # Exclude shared library initialization/finalization symbols.
14590   extract_expsyms_cmds=
14591   # Just being paranoid about ensuring that cc_basename is set.
14592   for cc_temp in $compiler""; do
14593   case $cc_temp in
14594     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14595     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14596     \-*) ;;
14597     *) break;;
14598   esac
14599 done
14600 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14601
14602   case $host_os in
14603   cygwin* | mingw* | pw32*)
14604     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14605     # When not using gcc, we currently assume that we are using
14606     # Microsoft Visual C++.
14607     if test "$GCC" != yes; then
14608       with_gnu_ld=no
14609     fi
14610     ;;
14611   interix*)
14612     # we just hope/assume this is gcc and not c89 (= MSVC++)
14613     with_gnu_ld=yes
14614     ;;
14615   openbsd*)
14616     with_gnu_ld=no
14617     ;;
14618   esac
14619
14620   ld_shlibs_F77=yes
14621   if test "$with_gnu_ld" = yes; then
14622     # If archive_cmds runs LD, not CC, wlarc should be empty
14623     wlarc='${wl}'
14624
14625     # Set some defaults for GNU ld with shared library support. These
14626     # are reset later if shared libraries are not supported. Putting them
14627     # here allows them to be overridden if necessary.
14628     runpath_var=LD_RUN_PATH
14629     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14630     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14631     # ancient GNU ld didn't support --whole-archive et. al.
14632     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14633         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14634       else
14635         whole_archive_flag_spec_F77=
14636     fi
14637     supports_anon_versioning=no
14638     case `$LD -v 2>/dev/null` in
14639       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14640       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14641       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14642       *\ 2.11.*) ;; # other 2.11 versions
14643       *) supports_anon_versioning=yes ;;
14644     esac
14645
14646     # See if GNU ld supports shared libraries.
14647     case $host_os in
14648     aix[3-9]*)
14649       # On AIX/PPC, the GNU linker is very broken
14650       if test "$host_cpu" != ia64; then
14651         ld_shlibs_F77=no
14652         cat <<EOF 1>&2
14653
14654 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14655 *** to be unable to reliably create shared libraries on AIX.
14656 *** Therefore, libtool is disabling shared libraries support.  If you
14657 *** really care for shared libraries, you may want to modify your PATH
14658 *** so that a non-GNU linker is found, and then restart.
14659
14660 EOF
14661       fi
14662       ;;
14663
14664     amigaos*)
14665       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)'
14666       hardcode_libdir_flag_spec_F77='-L$libdir'
14667       hardcode_minus_L_F77=yes
14668
14669       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14670       # that the semantics of dynamic libraries on AmigaOS, at least up
14671       # to version 4, is to share data among multiple programs linked
14672       # with the same dynamic library.  Since this doesn't match the
14673       # behavior of shared libraries on other platforms, we can't use
14674       # them.
14675       ld_shlibs_F77=no
14676       ;;
14677
14678     beos*)
14679       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14680         allow_undefined_flag_F77=unsupported
14681         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14682         # support --undefined.  This deserves some investigation.  FIXME
14683         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14684       else
14685         ld_shlibs_F77=no
14686       fi
14687       ;;
14688
14689     cygwin* | mingw* | pw32*)
14690       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14691       # as there is no search path for DLLs.
14692       hardcode_libdir_flag_spec_F77='-L$libdir'
14693       allow_undefined_flag_F77=unsupported
14694       always_export_symbols_F77=no
14695       enable_shared_with_static_runtimes_F77=yes
14696       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14697
14698       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14699         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14700         # If the export-symbols file already is a .def file (1st line
14701         # is EXPORTS), use it as is; otherwise, prepend...
14702         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14703           cp $export_symbols $output_objdir/$soname.def;
14704         else
14705           echo EXPORTS > $output_objdir/$soname.def;
14706           cat $export_symbols >> $output_objdir/$soname.def;
14707         fi~
14708         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14709       else
14710         ld_shlibs_F77=no
14711       fi
14712       ;;
14713
14714     interix[3-9]*)
14715       hardcode_direct_F77=no
14716       hardcode_shlibpath_var_F77=no
14717       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14718       export_dynamic_flag_spec_F77='${wl}-E'
14719       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14720       # Instead, shared libraries are loaded at an image base (0x10000000 by
14721       # default) and relocated if they conflict, which is a slow very memory
14722       # consuming and fragmenting process.  To avoid this, we pick a random,
14723       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14724       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14725       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'
14726       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'
14727       ;;
14728
14729     gnu* | linux* | k*bsd*-gnu)
14730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14731         tmp_addflag=
14732         case $cc_basename,$host_cpu in
14733         pgcc*)                          # Portland Group C compiler
14734           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'
14735           tmp_addflag=' $pic_flag'
14736           ;;
14737         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14738           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'
14739           tmp_addflag=' $pic_flag -Mnomain' ;;
14740         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14741           tmp_addflag=' -i_dynamic' ;;
14742         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14743           tmp_addflag=' -i_dynamic -nofor_main' ;;
14744         ifc* | ifort*)                  # Intel Fortran compiler
14745           tmp_addflag=' -nofor_main' ;;
14746         esac
14747         case `$CC -V 2>&1 | sed 5q` in
14748         *Sun\ C*)                       # Sun C 5.9
14749           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'
14750           tmp_sharedflag='-G' ;;
14751         *Sun\ F*)                       # Sun Fortran 8.3
14752           tmp_sharedflag='-G' ;;
14753         *)
14754           tmp_sharedflag='-shared' ;;
14755         esac
14756         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14757
14758         if test $supports_anon_versioning = yes; then
14759           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14760   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14761   $echo "local: *; };" >> $output_objdir/$libname.ver~
14762           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14763         fi
14764         link_all_deplibs_F77=no
14765       else
14766         ld_shlibs_F77=no
14767       fi
14768       ;;
14769
14770     netbsd* | netbsdelf*-gnu)
14771       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14772         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14773         wlarc=
14774       else
14775         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14776         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14777       fi
14778       ;;
14779
14780     solaris*)
14781       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14782         ld_shlibs_F77=no
14783         cat <<EOF 1>&2
14784
14785 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14786 *** create shared libraries on Solaris systems.  Therefore, libtool
14787 *** is disabling shared libraries support.  We urge you to upgrade GNU
14788 *** binutils to release 2.9.1 or newer.  Another option is to modify
14789 *** your PATH or compiler configuration so that the native linker is
14790 *** used, and then restart.
14791
14792 EOF
14793       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14795         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14796       else
14797         ld_shlibs_F77=no
14798       fi
14799       ;;
14800
14801     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14802       case `$LD -v 2>&1` in
14803         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14804         ld_shlibs_F77=no
14805         cat <<_LT_EOF 1>&2
14806
14807 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14808 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14809 *** is disabling shared libraries support.  We urge you to upgrade GNU
14810 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14811 *** your PATH or compiler configuration so that the native linker is
14812 *** used, and then restart.
14813
14814 _LT_EOF
14815         ;;
14816         *)
14817           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14818             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14819             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14820             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14821           else
14822             ld_shlibs_F77=no
14823           fi
14824         ;;
14825       esac
14826       ;;
14827
14828     sunos4*)
14829       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14830       wlarc=
14831       hardcode_direct_F77=yes
14832       hardcode_shlibpath_var_F77=no
14833       ;;
14834
14835     *)
14836       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14837         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14838         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14839       else
14840         ld_shlibs_F77=no
14841       fi
14842       ;;
14843     esac
14844
14845     if test "$ld_shlibs_F77" = no; then
14846       runpath_var=
14847       hardcode_libdir_flag_spec_F77=
14848       export_dynamic_flag_spec_F77=
14849       whole_archive_flag_spec_F77=
14850     fi
14851   else
14852     # PORTME fill in a description of your system's linker (not GNU ld)
14853     case $host_os in
14854     aix3*)
14855       allow_undefined_flag_F77=unsupported
14856       always_export_symbols_F77=yes
14857       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'
14858       # Note: this linker hardcodes the directories in LIBPATH if there
14859       # are no directories specified by -L.
14860       hardcode_minus_L_F77=yes
14861       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14862         # Neither direct hardcoding nor static linking is supported with a
14863         # broken collect2.
14864         hardcode_direct_F77=unsupported
14865       fi
14866       ;;
14867
14868     aix[4-9]*)
14869       if test "$host_cpu" = ia64; then
14870         # On IA64, the linker does run time linking by default, so we don't
14871         # have to do anything special.
14872         aix_use_runtimelinking=no
14873         exp_sym_flag='-Bexport'
14874         no_entry_flag=""
14875       else
14876         # If we're using GNU nm, then we don't want the "-C" option.
14877         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14878         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14879           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'
14880         else
14881           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'
14882         fi
14883         aix_use_runtimelinking=no
14884
14885         # Test if we are trying to use run time linking or normal
14886         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14887         # need to do runtime linking.
14888         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14889           for ld_flag in $LDFLAGS; do
14890           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14891             aix_use_runtimelinking=yes
14892             break
14893           fi
14894           done
14895           ;;
14896         esac
14897
14898         exp_sym_flag='-bexport'
14899         no_entry_flag='-bnoentry'
14900       fi
14901
14902       # When large executables or shared objects are built, AIX ld can
14903       # have problems creating the table of contents.  If linking a library
14904       # or program results in "error TOC overflow" add -mminimal-toc to
14905       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14906       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14907
14908       archive_cmds_F77=''
14909       hardcode_direct_F77=yes
14910       hardcode_libdir_separator_F77=':'
14911       link_all_deplibs_F77=yes
14912
14913       if test "$GCC" = yes; then
14914         case $host_os in aix4.[012]|aix4.[012].*)
14915         # We only want to do this on AIX 4.2 and lower, the check
14916         # below for broken collect2 doesn't work under 4.3+
14917           collect2name=`${CC} -print-prog-name=collect2`
14918           if test -f "$collect2name" && \
14919            strings "$collect2name" | grep resolve_lib_name >/dev/null
14920           then
14921           # We have reworked collect2
14922           :
14923           else
14924           # We have old collect2
14925           hardcode_direct_F77=unsupported
14926           # It fails to find uninstalled libraries when the uninstalled
14927           # path is not listed in the libpath.  Setting hardcode_minus_L
14928           # to unsupported forces relinking
14929           hardcode_minus_L_F77=yes
14930           hardcode_libdir_flag_spec_F77='-L$libdir'
14931           hardcode_libdir_separator_F77=
14932           fi
14933           ;;
14934         esac
14935         shared_flag='-shared'
14936         if test "$aix_use_runtimelinking" = yes; then
14937           shared_flag="$shared_flag "'${wl}-G'
14938         fi
14939       else
14940         # not using gcc
14941         if test "$host_cpu" = ia64; then
14942         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14943         # chokes on -Wl,-G. The following line is correct:
14944           shared_flag='-G'
14945         else
14946           if test "$aix_use_runtimelinking" = yes; then
14947             shared_flag='${wl}-G'
14948           else
14949             shared_flag='${wl}-bM:SRE'
14950           fi
14951         fi
14952       fi
14953
14954       # It seems that -bexpall does not export symbols beginning with
14955       # underscore (_), so it is better to generate a list of symbols to export.
14956       always_export_symbols_F77=yes
14957       if test "$aix_use_runtimelinking" = yes; then
14958         # Warning - without using the other runtime loading flags (-brtl),
14959         # -berok will link without error, but may produce a broken library.
14960         allow_undefined_flag_F77='-berok'
14961        # Determine the default libpath from the value encoded in an empty executable.
14962        cat >conftest.$ac_ext <<_ACEOF
14963       program main
14964
14965       end
14966 _ACEOF
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (ac_try="$ac_link"
14969 case "(($ac_try" in
14970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971   *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974   (eval "$ac_link") 2>conftest.er1
14975   ac_status=$?
14976   grep -v '^ *+' conftest.er1 >conftest.err
14977   rm -f conftest.er1
14978   cat conftest.err >&5
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); } && {
14981          test -z "$ac_f77_werror_flag" ||
14982          test ! -s conftest.err
14983        } && test -s conftest$ac_exeext &&
14984        $as_test_x conftest$ac_exeext; then
14985
14986 lt_aix_libpath_sed='
14987     /Import File Strings/,/^$/ {
14988         /^0/ {
14989             s/^0  *\(.*\)$/\1/
14990             p
14991         }
14992     }'
14993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14994 # Check for a 64-bit object if we didn't find anything.
14995 if test -z "$aix_libpath"; then
14996   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14997 fi
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002
15003 fi
15004
15005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15006       conftest$ac_exeext conftest.$ac_ext
15007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15008
15009        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15010         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"
15011        else
15012         if test "$host_cpu" = ia64; then
15013           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15014           allow_undefined_flag_F77="-z nodefs"
15015           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"
15016         else
15017          # Determine the default libpath from the value encoded in an empty executable.
15018          cat >conftest.$ac_ext <<_ACEOF
15019       program main
15020
15021       end
15022 _ACEOF
15023 rm -f conftest.$ac_objext conftest$ac_exeext
15024 if { (ac_try="$ac_link"
15025 case "(($ac_try" in
15026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027   *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030   (eval "$ac_link") 2>conftest.er1
15031   ac_status=$?
15032   grep -v '^ *+' conftest.er1 >conftest.err
15033   rm -f conftest.er1
15034   cat conftest.err >&5
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } && {
15037          test -z "$ac_f77_werror_flag" ||
15038          test ! -s conftest.err
15039        } && test -s conftest$ac_exeext &&
15040        $as_test_x conftest$ac_exeext; then
15041
15042 lt_aix_libpath_sed='
15043     /Import File Strings/,/^$/ {
15044         /^0/ {
15045             s/^0  *\(.*\)$/\1/
15046             p
15047         }
15048     }'
15049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15050 # Check for a 64-bit object if we didn't find anything.
15051 if test -z "$aix_libpath"; then
15052   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15053 fi
15054 else
15055   echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15057
15058
15059 fi
15060
15061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15062       conftest$ac_exeext conftest.$ac_ext
15063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15064
15065          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15066           # Warning - without using the other run time loading flags,
15067           # -berok will link without error, but may produce a broken library.
15068           no_undefined_flag_F77=' ${wl}-bernotok'
15069           allow_undefined_flag_F77=' ${wl}-berok'
15070           # Exported symbols can be pulled into shared objects from archives
15071           whole_archive_flag_spec_F77='$convenience'
15072           archive_cmds_need_lc_F77=yes
15073           # This is similar to how AIX traditionally builds its shared libraries.
15074           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'
15075         fi
15076       fi
15077       ;;
15078
15079     amigaos*)
15080       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)'
15081       hardcode_libdir_flag_spec_F77='-L$libdir'
15082       hardcode_minus_L_F77=yes
15083       # see comment about different semantics on the GNU ld section
15084       ld_shlibs_F77=no
15085       ;;
15086
15087     bsdi[45]*)
15088       export_dynamic_flag_spec_F77=-rdynamic
15089       ;;
15090
15091     cygwin* | mingw* | pw32*)
15092       # When not using gcc, we currently assume that we are using
15093       # Microsoft Visual C++.
15094       # hardcode_libdir_flag_spec is actually meaningless, as there is
15095       # no search path for DLLs.
15096       hardcode_libdir_flag_spec_F77=' '
15097       allow_undefined_flag_F77=unsupported
15098       # Tell ltmain to make .lib files, not .a files.
15099       libext=lib
15100       # Tell ltmain to make .dll files, not .so files.
15101       shrext_cmds=".dll"
15102       # FIXME: Setting linknames here is a bad hack.
15103       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15104       # The linker will automatically build a .lib file if we build a DLL.
15105       old_archive_From_new_cmds_F77='true'
15106       # FIXME: Should let the user specify the lib program.
15107       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15108       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15109       enable_shared_with_static_runtimes_F77=yes
15110       ;;
15111
15112     darwin* | rhapsody*)
15113       case $host_os in
15114         rhapsody* | darwin1.[012])
15115          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15116          ;;
15117        *) # Darwin 1.3 on
15118          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15119            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15120          else
15121            case ${MACOSX_DEPLOYMENT_TARGET} in
15122              10.[012])
15123                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15124                ;;
15125              10.*)
15126                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15127                ;;
15128            esac
15129          fi
15130          ;;
15131       esac
15132       archive_cmds_need_lc_F77=no
15133       hardcode_direct_F77=no
15134       hardcode_automatic_F77=yes
15135       hardcode_shlibpath_var_F77=unsupported
15136       whole_archive_flag_spec_F77=''
15137       link_all_deplibs_F77=yes
15138     if test "$GCC" = yes ; then
15139         output_verbose_link_cmd='echo'
15140         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}"
15141         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15142         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}"
15143         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}"
15144     else
15145       case $cc_basename in
15146         xlc*)
15147          output_verbose_link_cmd='echo'
15148          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15149          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15150           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15151          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}'
15152           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}'
15153           ;;
15154        *)
15155          ld_shlibs_F77=no
15156           ;;
15157       esac
15158     fi
15159       ;;
15160
15161     dgux*)
15162       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163       hardcode_libdir_flag_spec_F77='-L$libdir'
15164       hardcode_shlibpath_var_F77=no
15165       ;;
15166
15167     freebsd1*)
15168       ld_shlibs_F77=no
15169       ;;
15170
15171     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15172     # support.  Future versions do this automatically, but an explicit c++rt0.o
15173     # does not break anything, and helps significantly (at the cost of a little
15174     # extra space).
15175     freebsd2.2*)
15176       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15177       hardcode_libdir_flag_spec_F77='-R$libdir'
15178       hardcode_direct_F77=yes
15179       hardcode_shlibpath_var_F77=no
15180       ;;
15181
15182     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15183     freebsd2*)
15184       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185       hardcode_direct_F77=yes
15186       hardcode_minus_L_F77=yes
15187       hardcode_shlibpath_var_F77=no
15188       ;;
15189
15190     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15191     freebsd* | dragonfly*)
15192       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15193       hardcode_libdir_flag_spec_F77='-R$libdir'
15194       hardcode_direct_F77=yes
15195       hardcode_shlibpath_var_F77=no
15196       ;;
15197
15198     hpux9*)
15199       if test "$GCC" = yes; then
15200         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'
15201       else
15202         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'
15203       fi
15204       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15205       hardcode_libdir_separator_F77=:
15206       hardcode_direct_F77=yes
15207
15208       # hardcode_minus_L: Not really in the search PATH,
15209       # but as the default location of the library.
15210       hardcode_minus_L_F77=yes
15211       export_dynamic_flag_spec_F77='${wl}-E'
15212       ;;
15213
15214     hpux10*)
15215       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15216         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15217       else
15218         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15219       fi
15220       if test "$with_gnu_ld" = no; then
15221         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15222         hardcode_libdir_separator_F77=:
15223
15224         hardcode_direct_F77=yes
15225         export_dynamic_flag_spec_F77='${wl}-E'
15226
15227         # hardcode_minus_L: Not really in the search PATH,
15228         # but as the default location of the library.
15229         hardcode_minus_L_F77=yes
15230       fi
15231       ;;
15232
15233     hpux11*)
15234       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15235         case $host_cpu in
15236         hppa*64*)
15237           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15238           ;;
15239         ia64*)
15240           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15241           ;;
15242         *)
15243           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15244           ;;
15245         esac
15246       else
15247         case $host_cpu in
15248         hppa*64*)
15249           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15250           ;;
15251         ia64*)
15252           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15253           ;;
15254         *)
15255           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15256           ;;
15257         esac
15258       fi
15259       if test "$with_gnu_ld" = no; then
15260         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15261         hardcode_libdir_separator_F77=:
15262
15263         case $host_cpu in
15264         hppa*64*|ia64*)
15265           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15266           hardcode_direct_F77=no
15267           hardcode_shlibpath_var_F77=no
15268           ;;
15269         *)
15270           hardcode_direct_F77=yes
15271           export_dynamic_flag_spec_F77='${wl}-E'
15272
15273           # hardcode_minus_L: Not really in the search PATH,
15274           # but as the default location of the library.
15275           hardcode_minus_L_F77=yes
15276           ;;
15277         esac
15278       fi
15279       ;;
15280
15281     irix5* | irix6* | nonstopux*)
15282       if test "$GCC" = yes; then
15283         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'
15284       else
15285         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'
15286         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15287       fi
15288       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15289       hardcode_libdir_separator_F77=:
15290       link_all_deplibs_F77=yes
15291       ;;
15292
15293     netbsd* | netbsdelf*-gnu)
15294       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15295         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15296       else
15297         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15298       fi
15299       hardcode_libdir_flag_spec_F77='-R$libdir'
15300       hardcode_direct_F77=yes
15301       hardcode_shlibpath_var_F77=no
15302       ;;
15303
15304     newsos6)
15305       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15306       hardcode_direct_F77=yes
15307       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15308       hardcode_libdir_separator_F77=:
15309       hardcode_shlibpath_var_F77=no
15310       ;;
15311
15312     openbsd*)
15313       if test -f /usr/libexec/ld.so; then
15314         hardcode_direct_F77=yes
15315         hardcode_shlibpath_var_F77=no
15316         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15317           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15318           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15319           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15320           export_dynamic_flag_spec_F77='${wl}-E'
15321         else
15322           case $host_os in
15323            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15324              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15325              hardcode_libdir_flag_spec_F77='-R$libdir'
15326              ;;
15327            *)
15328              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15329              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15330              ;;
15331           esac
15332         fi
15333       else
15334         ld_shlibs_F77=no
15335       fi
15336       ;;
15337
15338     os2*)
15339       hardcode_libdir_flag_spec_F77='-L$libdir'
15340       hardcode_minus_L_F77=yes
15341       allow_undefined_flag_F77=unsupported
15342       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'
15343       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15344       ;;
15345
15346     osf3*)
15347       if test "$GCC" = yes; then
15348         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15349         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'
15350       else
15351         allow_undefined_flag_F77=' -expect_unresolved \*'
15352         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'
15353       fi
15354       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15355       hardcode_libdir_separator_F77=:
15356       ;;
15357
15358     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15359       if test "$GCC" = yes; then
15360         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15361         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'
15362         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15363       else
15364         allow_undefined_flag_F77=' -expect_unresolved \*'
15365         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'
15366         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~
15367         $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'
15368
15369         # Both c and cxx compiler support -rpath directly
15370         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15371       fi
15372       hardcode_libdir_separator_F77=:
15373       ;;
15374
15375     solaris*)
15376       no_undefined_flag_F77=' -z text'
15377       if test "$GCC" = yes; then
15378         wlarc='${wl}'
15379         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15380         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15381           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15382       else
15383         wlarc=''
15384         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15385         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15386         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15387       fi
15388       hardcode_libdir_flag_spec_F77='-R$libdir'
15389       hardcode_shlibpath_var_F77=no
15390       case $host_os in
15391       solaris2.[0-5] | solaris2.[0-5].*) ;;
15392       *)
15393         # The compiler driver will combine and reorder linker options,
15394         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15395         # but is careful enough not to reorder.
15396         # Supported since Solaris 2.6 (maybe 2.5.1?)
15397         if test "$GCC" = yes; then
15398           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15399         else
15400           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15401         fi
15402         ;;
15403       esac
15404       link_all_deplibs_F77=yes
15405       ;;
15406
15407     sunos4*)
15408       if test "x$host_vendor" = xsequent; then
15409         # Use $CC to link under sequent, because it throws in some extra .o
15410         # files that make .init and .fini sections work.
15411         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15412       else
15413         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15414       fi
15415       hardcode_libdir_flag_spec_F77='-L$libdir'
15416       hardcode_direct_F77=yes
15417       hardcode_minus_L_F77=yes
15418       hardcode_shlibpath_var_F77=no
15419       ;;
15420
15421     sysv4)
15422       case $host_vendor in
15423         sni)
15424           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15425           hardcode_direct_F77=yes # is this really true???
15426         ;;
15427         siemens)
15428           ## LD is ld it makes a PLAMLIB
15429           ## CC just makes a GrossModule.
15430           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15431           reload_cmds_F77='$CC -r -o $output$reload_objs'
15432           hardcode_direct_F77=no
15433         ;;
15434         motorola)
15435           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15436           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15437         ;;
15438       esac
15439       runpath_var='LD_RUN_PATH'
15440       hardcode_shlibpath_var_F77=no
15441       ;;
15442
15443     sysv4.3*)
15444       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445       hardcode_shlibpath_var_F77=no
15446       export_dynamic_flag_spec_F77='-Bexport'
15447       ;;
15448
15449     sysv4*MP*)
15450       if test -d /usr/nec; then
15451         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15452         hardcode_shlibpath_var_F77=no
15453         runpath_var=LD_RUN_PATH
15454         hardcode_runpath_var=yes
15455         ld_shlibs_F77=yes
15456       fi
15457       ;;
15458
15459     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15460       no_undefined_flag_F77='${wl}-z,text'
15461       archive_cmds_need_lc_F77=no
15462       hardcode_shlibpath_var_F77=no
15463       runpath_var='LD_RUN_PATH'
15464
15465       if test "$GCC" = yes; then
15466         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15467         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15468       else
15469         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15471       fi
15472       ;;
15473
15474     sysv5* | sco3.2v5* | sco5v6*)
15475       # Note: We can NOT use -z defs as we might desire, because we do not
15476       # link with -lc, and that would cause any symbols used from libc to
15477       # always be unresolved, which means just about no library would
15478       # ever link correctly.  If we're not using GNU ld we use -z text
15479       # though, which does catch some bad symbols but isn't as heavy-handed
15480       # as -z defs.
15481       no_undefined_flag_F77='${wl}-z,text'
15482       allow_undefined_flag_F77='${wl}-z,nodefs'
15483       archive_cmds_need_lc_F77=no
15484       hardcode_shlibpath_var_F77=no
15485       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15486       hardcode_libdir_separator_F77=':'
15487       link_all_deplibs_F77=yes
15488       export_dynamic_flag_spec_F77='${wl}-Bexport'
15489       runpath_var='LD_RUN_PATH'
15490
15491       if test "$GCC" = yes; then
15492         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15493         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15494       else
15495         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15497       fi
15498       ;;
15499
15500     uts4*)
15501       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15502       hardcode_libdir_flag_spec_F77='-L$libdir'
15503       hardcode_shlibpath_var_F77=no
15504       ;;
15505
15506     *)
15507       ld_shlibs_F77=no
15508       ;;
15509     esac
15510   fi
15511
15512 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15513 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15514 test "$ld_shlibs_F77" = no && can_build_shared=no
15515
15516 #
15517 # Do we need to explicitly link libc?
15518 #
15519 case "x$archive_cmds_need_lc_F77" in
15520 x|xyes)
15521   # Assume -lc should be added
15522   archive_cmds_need_lc_F77=yes
15523
15524   if test "$enable_shared" = yes && test "$GCC" = yes; then
15525     case $archive_cmds_F77 in
15526     *'~'*)
15527       # FIXME: we may have to deal with multi-command sequences.
15528       ;;
15529     '$CC '*)
15530       # Test whether the compiler implicitly links with -lc since on some
15531       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15532       # to ld, don't add -lc before -lgcc.
15533       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15534 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15535       $rm conftest*
15536       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15537
15538       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15539   (eval $ac_compile) 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); } 2>conftest.err; then
15543         soname=conftest
15544         lib=conftest
15545         libobjs=conftest.$ac_objext
15546         deplibs=
15547         wl=$lt_prog_compiler_wl_F77
15548         pic_flag=$lt_prog_compiler_pic_F77
15549         compiler_flags=-v
15550         linker_flags=-v
15551         verstring=
15552         output_objdir=.
15553         libname=conftest
15554         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15555         allow_undefined_flag_F77=
15556         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15557   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }
15561         then
15562           archive_cmds_need_lc_F77=no
15563         else
15564           archive_cmds_need_lc_F77=yes
15565         fi
15566         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15567       else
15568         cat conftest.err 1>&5
15569       fi
15570       $rm conftest*
15571       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15572 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15573       ;;
15574     esac
15575   fi
15576   ;;
15577 esac
15578
15579 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15580 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15581 library_names_spec=
15582 libname_spec='lib$name'
15583 soname_spec=
15584 shrext_cmds=".so"
15585 postinstall_cmds=
15586 postuninstall_cmds=
15587 finish_cmds=
15588 finish_eval=
15589 shlibpath_var=
15590 shlibpath_overrides_runpath=unknown
15591 version_type=none
15592 dynamic_linker="$host_os ld.so"
15593 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15594
15595 need_lib_prefix=unknown
15596 hardcode_into_libs=no
15597
15598 # when you set need_version to no, make sure it does not cause -set_version
15599 # flags to be left without arguments
15600 need_version=unknown
15601
15602 case $host_os in
15603 aix3*)
15604   version_type=linux
15605   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15606   shlibpath_var=LIBPATH
15607
15608   # AIX 3 has no versioning support, so we append a major version to the name.
15609   soname_spec='${libname}${release}${shared_ext}$major'
15610   ;;
15611
15612 aix[4-9]*)
15613   version_type=linux
15614   need_lib_prefix=no
15615   need_version=no
15616   hardcode_into_libs=yes
15617   if test "$host_cpu" = ia64; then
15618     # AIX 5 supports IA64
15619     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15620     shlibpath_var=LD_LIBRARY_PATH
15621   else
15622     # With GCC up to 2.95.x, collect2 would create an import file
15623     # for dependence libraries.  The import file would start with
15624     # the line `#! .'.  This would cause the generated library to
15625     # depend on `.', always an invalid library.  This was fixed in
15626     # development snapshots of GCC prior to 3.0.
15627     case $host_os in
15628       aix4 | aix4.[01] | aix4.[01].*)
15629       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15630            echo ' yes '
15631            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15632         :
15633       else
15634         can_build_shared=no
15635       fi
15636       ;;
15637     esac
15638     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15639     # soname into executable. Probably we can add versioning support to
15640     # collect2, so additional links can be useful in future.
15641     if test "$aix_use_runtimelinking" = yes; then
15642       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15643       # instead of lib<name>.a to let people know that these are not
15644       # typical AIX shared libraries.
15645       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15646     else
15647       # We preserve .a as extension for shared libraries through AIX4.2
15648       # and later when we are not doing run time linking.
15649       library_names_spec='${libname}${release}.a $libname.a'
15650       soname_spec='${libname}${release}${shared_ext}$major'
15651     fi
15652     shlibpath_var=LIBPATH
15653   fi
15654   ;;
15655
15656 amigaos*)
15657   library_names_spec='$libname.ixlibrary $libname.a'
15658   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15659   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'
15660   ;;
15661
15662 beos*)
15663   library_names_spec='${libname}${shared_ext}'
15664   dynamic_linker="$host_os ld.so"
15665   shlibpath_var=LIBRARY_PATH
15666   ;;
15667
15668 bsdi[45]*)
15669   version_type=linux
15670   need_version=no
15671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672   soname_spec='${libname}${release}${shared_ext}$major'
15673   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15674   shlibpath_var=LD_LIBRARY_PATH
15675   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15676   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15677   # the default ld.so.conf also contains /usr/contrib/lib and
15678   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15679   # libtool to hard-code these into programs
15680   ;;
15681
15682 cygwin* | mingw* | pw32*)
15683   version_type=windows
15684   shrext_cmds=".dll"
15685   need_version=no
15686   need_lib_prefix=no
15687
15688   case $GCC,$host_os in
15689   yes,cygwin* | yes,mingw* | yes,pw32*)
15690     library_names_spec='$libname.dll.a'
15691     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15692     postinstall_cmds='base_file=`basename \${file}`~
15693       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15694       dldir=$destdir/`dirname \$dlpath`~
15695       test -d \$dldir || mkdir -p \$dldir~
15696       $install_prog $dir/$dlname \$dldir/$dlname~
15697       chmod a+x \$dldir/$dlname'
15698     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699       dlpath=$dir/\$dldll~
15700        $rm \$dlpath'
15701     shlibpath_overrides_runpath=yes
15702
15703     case $host_os in
15704     cygwin*)
15705       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15706       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15707       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15708       ;;
15709     mingw*)
15710       # MinGW DLLs use traditional 'lib' prefix
15711       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15712       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15713       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15714         # It is most probably a Windows format PATH printed by
15715         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15716         # path with ; separators, and with drive letters. We can handle the
15717         # drive letters (cygwin fileutils understands them), so leave them,
15718         # especially as we might pass files found there to a mingw objdump,
15719         # which wouldn't understand a cygwinified path. Ahh.
15720         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15721       else
15722         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15723       fi
15724       ;;
15725     pw32*)
15726       # pw32 DLLs use 'pw' prefix rather than 'lib'
15727       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15728       ;;
15729     esac
15730     ;;
15731
15732   *)
15733     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15734     ;;
15735   esac
15736   dynamic_linker='Win32 ld.exe'
15737   # FIXME: first we should search . and the directory the executable is in
15738   shlibpath_var=PATH
15739   ;;
15740
15741 darwin* | rhapsody*)
15742   dynamic_linker="$host_os dyld"
15743   version_type=darwin
15744   need_lib_prefix=no
15745   need_version=no
15746   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15747   soname_spec='${libname}${release}${major}$shared_ext'
15748   shlibpath_overrides_runpath=yes
15749   shlibpath_var=DYLD_LIBRARY_PATH
15750   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15751
15752   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15753   ;;
15754
15755 dgux*)
15756   version_type=linux
15757   need_lib_prefix=no
15758   need_version=no
15759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15760   soname_spec='${libname}${release}${shared_ext}$major'
15761   shlibpath_var=LD_LIBRARY_PATH
15762   ;;
15763
15764 freebsd1*)
15765   dynamic_linker=no
15766   ;;
15767
15768 freebsd* | dragonfly*)
15769   # DragonFly does not have aout.  When/if they implement a new
15770   # versioning mechanism, adjust this.
15771   if test -x /usr/bin/objformat; then
15772     objformat=`/usr/bin/objformat`
15773   else
15774     case $host_os in
15775     freebsd[123]*) objformat=aout ;;
15776     *) objformat=elf ;;
15777     esac
15778   fi
15779   version_type=freebsd-$objformat
15780   case $version_type in
15781     freebsd-elf*)
15782       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15783       need_version=no
15784       need_lib_prefix=no
15785       ;;
15786     freebsd-*)
15787       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15788       need_version=yes
15789       ;;
15790   esac
15791   shlibpath_var=LD_LIBRARY_PATH
15792   case $host_os in
15793   freebsd2*)
15794     shlibpath_overrides_runpath=yes
15795     ;;
15796   freebsd3.[01]* | freebsdelf3.[01]*)
15797     shlibpath_overrides_runpath=yes
15798     hardcode_into_libs=yes
15799     ;;
15800   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15801   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15802     shlibpath_overrides_runpath=no
15803     hardcode_into_libs=yes
15804     ;;
15805   *) # from 4.6 on, and DragonFly
15806     shlibpath_overrides_runpath=yes
15807     hardcode_into_libs=yes
15808     ;;
15809   esac
15810   ;;
15811
15812 gnu*)
15813   version_type=linux
15814   need_lib_prefix=no
15815   need_version=no
15816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15817   soname_spec='${libname}${release}${shared_ext}$major'
15818   shlibpath_var=LD_LIBRARY_PATH
15819   hardcode_into_libs=yes
15820   ;;
15821
15822 hpux9* | hpux10* | hpux11*)
15823   # Give a soname corresponding to the major version so that dld.sl refuses to
15824   # link against other versions.
15825   version_type=sunos
15826   need_lib_prefix=no
15827   need_version=no
15828   case $host_cpu in
15829   ia64*)
15830     shrext_cmds='.so'
15831     hardcode_into_libs=yes
15832     dynamic_linker="$host_os dld.so"
15833     shlibpath_var=LD_LIBRARY_PATH
15834     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15835     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836     soname_spec='${libname}${release}${shared_ext}$major'
15837     if test "X$HPUX_IA64_MODE" = X32; then
15838       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15839     else
15840       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15841     fi
15842     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15843     ;;
15844    hppa*64*)
15845      shrext_cmds='.sl'
15846      hardcode_into_libs=yes
15847      dynamic_linker="$host_os dld.sl"
15848      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15849      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15850      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851      soname_spec='${libname}${release}${shared_ext}$major'
15852      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15853      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15854      ;;
15855    *)
15856     shrext_cmds='.sl'
15857     dynamic_linker="$host_os dld.sl"
15858     shlibpath_var=SHLIB_PATH
15859     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15860     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861     soname_spec='${libname}${release}${shared_ext}$major'
15862     ;;
15863   esac
15864   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15865   postinstall_cmds='chmod 555 $lib'
15866   ;;
15867
15868 interix[3-9]*)
15869   version_type=linux
15870   need_lib_prefix=no
15871   need_version=no
15872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15873   soname_spec='${libname}${release}${shared_ext}$major'
15874   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15875   shlibpath_var=LD_LIBRARY_PATH
15876   shlibpath_overrides_runpath=no
15877   hardcode_into_libs=yes
15878   ;;
15879
15880 irix5* | irix6* | nonstopux*)
15881   case $host_os in
15882     nonstopux*) version_type=nonstopux ;;
15883     *)
15884         if test "$lt_cv_prog_gnu_ld" = yes; then
15885                 version_type=linux
15886         else
15887                 version_type=irix
15888         fi ;;
15889   esac
15890   need_lib_prefix=no
15891   need_version=no
15892   soname_spec='${libname}${release}${shared_ext}$major'
15893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15894   case $host_os in
15895   irix5* | nonstopux*)
15896     libsuff= shlibsuff=
15897     ;;
15898   *)
15899     case $LD in # libtool.m4 will add one of these switches to LD
15900     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15901       libsuff= shlibsuff= libmagic=32-bit;;
15902     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15903       libsuff=32 shlibsuff=N32 libmagic=N32;;
15904     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15905       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15906     *) libsuff= shlibsuff= libmagic=never-match;;
15907     esac
15908     ;;
15909   esac
15910   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15911   shlibpath_overrides_runpath=no
15912   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15913   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15914   hardcode_into_libs=yes
15915   ;;
15916
15917 # No shared lib support for Linux oldld, aout, or coff.
15918 linux*oldld* | linux*aout* | linux*coff*)
15919   dynamic_linker=no
15920   ;;
15921
15922 # This must be Linux ELF.
15923 linux* | k*bsd*-gnu)
15924   version_type=linux
15925   need_lib_prefix=no
15926   need_version=no
15927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928   soname_spec='${libname}${release}${shared_ext}$major'
15929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15930   shlibpath_var=LD_LIBRARY_PATH
15931   shlibpath_overrides_runpath=no
15932   # This implies no fast_install, which is unacceptable.
15933   # Some rework will be needed to allow for fast_install
15934   # before this can be enabled.
15935   hardcode_into_libs=yes
15936
15937   # Append ld.so.conf contents to the search path
15938   if test -f /etc/ld.so.conf; then
15939     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' ' '`
15940     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15941   fi
15942
15943   # We used to test for /lib/ld.so.1 and disable shared libraries on
15944   # powerpc, because MkLinux only supported shared libraries with the
15945   # GNU dynamic linker.  Since this was broken with cross compilers,
15946   # most powerpc-linux boxes support dynamic linking these days and
15947   # people can always --disable-shared, the test was removed, and we
15948   # assume the GNU/Linux dynamic linker is in use.
15949   dynamic_linker='GNU/Linux ld.so'
15950   ;;
15951
15952 netbsdelf*-gnu)
15953   version_type=linux
15954   need_lib_prefix=no
15955   need_version=no
15956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15957   soname_spec='${libname}${release}${shared_ext}$major'
15958   shlibpath_var=LD_LIBRARY_PATH
15959   shlibpath_overrides_runpath=no
15960   hardcode_into_libs=yes
15961   dynamic_linker='NetBSD ld.elf_so'
15962   ;;
15963
15964 netbsd*)
15965   version_type=sunos
15966   need_lib_prefix=no
15967   need_version=no
15968   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15970     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15971     dynamic_linker='NetBSD (a.out) ld.so'
15972   else
15973     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15974     soname_spec='${libname}${release}${shared_ext}$major'
15975     dynamic_linker='NetBSD ld.elf_so'
15976   fi
15977   shlibpath_var=LD_LIBRARY_PATH
15978   shlibpath_overrides_runpath=yes
15979   hardcode_into_libs=yes
15980   ;;
15981
15982 newsos6)
15983   version_type=linux
15984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985   shlibpath_var=LD_LIBRARY_PATH
15986   shlibpath_overrides_runpath=yes
15987   ;;
15988
15989 nto-qnx*)
15990   version_type=linux
15991   need_lib_prefix=no
15992   need_version=no
15993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994   soname_spec='${libname}${release}${shared_ext}$major'
15995   shlibpath_var=LD_LIBRARY_PATH
15996   shlibpath_overrides_runpath=yes
15997   ;;
15998
15999 openbsd*)
16000   version_type=sunos
16001   sys_lib_dlsearch_path_spec="/usr/lib"
16002   need_lib_prefix=no
16003   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16004   case $host_os in
16005     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16006     *)                         need_version=no  ;;
16007   esac
16008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16009   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16010   shlibpath_var=LD_LIBRARY_PATH
16011   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16012     case $host_os in
16013       openbsd2.[89] | openbsd2.[89].*)
16014         shlibpath_overrides_runpath=no
16015         ;;
16016       *)
16017         shlibpath_overrides_runpath=yes
16018         ;;
16019       esac
16020   else
16021     shlibpath_overrides_runpath=yes
16022   fi
16023   ;;
16024
16025 os2*)
16026   libname_spec='$name'
16027   shrext_cmds=".dll"
16028   need_lib_prefix=no
16029   library_names_spec='$libname${shared_ext} $libname.a'
16030   dynamic_linker='OS/2 ld.exe'
16031   shlibpath_var=LIBPATH
16032   ;;
16033
16034 osf3* | osf4* | osf5*)
16035   version_type=osf
16036   need_lib_prefix=no
16037   need_version=no
16038   soname_spec='${libname}${release}${shared_ext}$major'
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040   shlibpath_var=LD_LIBRARY_PATH
16041   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16042   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16043   ;;
16044
16045 rdos*)
16046   dynamic_linker=no
16047   ;;
16048
16049 solaris*)
16050   version_type=linux
16051   need_lib_prefix=no
16052   need_version=no
16053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   shlibpath_var=LD_LIBRARY_PATH
16056   shlibpath_overrides_runpath=yes
16057   hardcode_into_libs=yes
16058   # ldd complains unless libraries are executable
16059   postinstall_cmds='chmod +x $lib'
16060   ;;
16061
16062 sunos4*)
16063   version_type=sunos
16064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16065   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   shlibpath_overrides_runpath=yes
16068   if test "$with_gnu_ld" = yes; then
16069     need_lib_prefix=no
16070   fi
16071   need_version=yes
16072   ;;
16073
16074 sysv4 | sysv4.3*)
16075   version_type=linux
16076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077   soname_spec='${libname}${release}${shared_ext}$major'
16078   shlibpath_var=LD_LIBRARY_PATH
16079   case $host_vendor in
16080     sni)
16081       shlibpath_overrides_runpath=no
16082       need_lib_prefix=no
16083       export_dynamic_flag_spec='${wl}-Blargedynsym'
16084       runpath_var=LD_RUN_PATH
16085       ;;
16086     siemens)
16087       need_lib_prefix=no
16088       ;;
16089     motorola)
16090       need_lib_prefix=no
16091       need_version=no
16092       shlibpath_overrides_runpath=no
16093       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16094       ;;
16095   esac
16096   ;;
16097
16098 sysv4*MP*)
16099   if test -d /usr/nec ;then
16100     version_type=linux
16101     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16102     soname_spec='$libname${shared_ext}.$major'
16103     shlibpath_var=LD_LIBRARY_PATH
16104   fi
16105   ;;
16106
16107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16108   version_type=freebsd-elf
16109   need_lib_prefix=no
16110   need_version=no
16111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16112   soname_spec='${libname}${release}${shared_ext}$major'
16113   shlibpath_var=LD_LIBRARY_PATH
16114   hardcode_into_libs=yes
16115   if test "$with_gnu_ld" = yes; then
16116     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16117     shlibpath_overrides_runpath=no
16118   else
16119     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16120     shlibpath_overrides_runpath=yes
16121     case $host_os in
16122       sco3.2v5*)
16123         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16124         ;;
16125     esac
16126   fi
16127   sys_lib_dlsearch_path_spec='/usr/lib'
16128   ;;
16129
16130 uts4*)
16131   version_type=linux
16132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133   soname_spec='${libname}${release}${shared_ext}$major'
16134   shlibpath_var=LD_LIBRARY_PATH
16135   ;;
16136
16137 *)
16138   dynamic_linker=no
16139   ;;
16140 esac
16141 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16142 echo "${ECHO_T}$dynamic_linker" >&6; }
16143 test "$dynamic_linker" = no && can_build_shared=no
16144
16145 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16146   echo $ECHO_N "(cached) $ECHO_C" >&6
16147 else
16148   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16149 fi
16150
16151 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16152 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16153   echo $ECHO_N "(cached) $ECHO_C" >&6
16154 else
16155   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16156 fi
16157
16158 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16159
16160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16161 if test "$GCC" = yes; then
16162   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16163 fi
16164
16165 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16166 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16167 hardcode_action_F77=
16168 if test -n "$hardcode_libdir_flag_spec_F77" || \
16169    test -n "$runpath_var_F77" || \
16170    test "X$hardcode_automatic_F77" = "Xyes" ; then
16171
16172   # We can hardcode non-existant directories.
16173   if test "$hardcode_direct_F77" != no &&
16174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16175      # have to relink, otherwise we might link with an installed library
16176      # when we should be linking with a yet-to-be-installed one
16177      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16178      test "$hardcode_minus_L_F77" != no; then
16179     # Linking always hardcodes the temporary library directory.
16180     hardcode_action_F77=relink
16181   else
16182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16183     hardcode_action_F77=immediate
16184   fi
16185 else
16186   # We cannot hardcode anything, or else we can only hardcode existing
16187   # directories.
16188   hardcode_action_F77=unsupported
16189 fi
16190 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16191 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16192
16193 if test "$hardcode_action_F77" = relink; then
16194   # Fast installation is not supported
16195   enable_fast_install=no
16196 elif test "$shlibpath_overrides_runpath" = yes ||
16197      test "$enable_shared" = no; then
16198   # Fast installation is not necessary
16199   enable_fast_install=needless
16200 fi
16201
16202
16203 # The else clause should only fire when bootstrapping the
16204 # libtool distribution, otherwise you forgot to ship ltmain.sh
16205 # with your package, and you will get complaints that there are
16206 # no rules to generate ltmain.sh.
16207 if test -f "$ltmain"; then
16208   # See if we are running on zsh, and set the options which allow our commands through
16209   # without removal of \ escapes.
16210   if test -n "${ZSH_VERSION+set}" ; then
16211     setopt NO_GLOB_SUBST
16212   fi
16213   # Now quote all the things that may contain metacharacters while being
16214   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16215   # variables and quote the copies for generation of the libtool script.
16216   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16217     SED SHELL STRIP \
16218     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16219     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16220     deplibs_check_method reload_flag reload_cmds need_locks \
16221     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16222     lt_cv_sys_global_symbol_to_c_name_address \
16223     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16224     old_postinstall_cmds old_postuninstall_cmds \
16225     compiler_F77 \
16226     CC_F77 \
16227     LD_F77 \
16228     lt_prog_compiler_wl_F77 \
16229     lt_prog_compiler_pic_F77 \
16230     lt_prog_compiler_static_F77 \
16231     lt_prog_compiler_no_builtin_flag_F77 \
16232     export_dynamic_flag_spec_F77 \
16233     thread_safe_flag_spec_F77 \
16234     whole_archive_flag_spec_F77 \
16235     enable_shared_with_static_runtimes_F77 \
16236     old_archive_cmds_F77 \
16237     old_archive_from_new_cmds_F77 \
16238     predep_objects_F77 \
16239     postdep_objects_F77 \
16240     predeps_F77 \
16241     postdeps_F77 \
16242     compiler_lib_search_path_F77 \
16243     compiler_lib_search_dirs_F77 \
16244     archive_cmds_F77 \
16245     archive_expsym_cmds_F77 \
16246     postinstall_cmds_F77 \
16247     postuninstall_cmds_F77 \
16248     old_archive_from_expsyms_cmds_F77 \
16249     allow_undefined_flag_F77 \
16250     no_undefined_flag_F77 \
16251     export_symbols_cmds_F77 \
16252     hardcode_libdir_flag_spec_F77 \
16253     hardcode_libdir_flag_spec_ld_F77 \
16254     hardcode_libdir_separator_F77 \
16255     hardcode_automatic_F77 \
16256     module_cmds_F77 \
16257     module_expsym_cmds_F77 \
16258     lt_cv_prog_compiler_c_o_F77 \
16259     fix_srcfile_path_F77 \
16260     exclude_expsyms_F77 \
16261     include_expsyms_F77; do
16262
16263     case $var in
16264     old_archive_cmds_F77 | \
16265     old_archive_from_new_cmds_F77 | \
16266     archive_cmds_F77 | \
16267     archive_expsym_cmds_F77 | \
16268     module_cmds_F77 | \
16269     module_expsym_cmds_F77 | \
16270     old_archive_from_expsyms_cmds_F77 | \
16271     export_symbols_cmds_F77 | \
16272     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16273     postinstall_cmds | postuninstall_cmds | \
16274     old_postinstall_cmds | old_postuninstall_cmds | \
16275     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16276       # Double-quote double-evaled strings.
16277       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16278       ;;
16279     *)
16280       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16281       ;;
16282     esac
16283   done
16284
16285   case $lt_echo in
16286   *'\$0 --fallback-echo"')
16287     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16288     ;;
16289   esac
16290
16291 cfgfile="$ofile"
16292
16293   cat <<__EOF__ >> "$cfgfile"
16294 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16295
16296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16297
16298 # Shell to use when invoking shell scripts.
16299 SHELL=$lt_SHELL
16300
16301 # Whether or not to build shared libraries.
16302 build_libtool_libs=$enable_shared
16303
16304 # Whether or not to build static libraries.
16305 build_old_libs=$enable_static
16306
16307 # Whether or not to add -lc for building shared libraries.
16308 build_libtool_need_lc=$archive_cmds_need_lc_F77
16309
16310 # Whether or not to disallow shared libs when runtime libs are static
16311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16312
16313 # Whether or not to optimize for fast installation.
16314 fast_install=$enable_fast_install
16315
16316 # The host system.
16317 host_alias=$host_alias
16318 host=$host
16319 host_os=$host_os
16320
16321 # The build system.
16322 build_alias=$build_alias
16323 build=$build
16324 build_os=$build_os
16325
16326 # An echo program that does not interpret backslashes.
16327 echo=$lt_echo
16328
16329 # The archiver.
16330 AR=$lt_AR
16331 AR_FLAGS=$lt_AR_FLAGS
16332
16333 # A C compiler.
16334 LTCC=$lt_LTCC
16335
16336 # LTCC compiler flags.
16337 LTCFLAGS=$lt_LTCFLAGS
16338
16339 # A language-specific compiler.
16340 CC=$lt_compiler_F77
16341
16342 # Is the compiler the GNU C compiler?
16343 with_gcc=$GCC_F77
16344
16345 # An ERE matcher.
16346 EGREP=$lt_EGREP
16347
16348 # The linker used to build libraries.
16349 LD=$lt_LD_F77
16350
16351 # Whether we need hard or soft links.
16352 LN_S=$lt_LN_S
16353
16354 # A BSD-compatible nm program.
16355 NM=$lt_NM
16356
16357 # A symbol stripping program
16358 STRIP=$lt_STRIP
16359
16360 # Used to examine libraries when file_magic_cmd begins "file"
16361 MAGIC_CMD=$MAGIC_CMD
16362
16363 # Used on cygwin: DLL creation program.
16364 DLLTOOL="$DLLTOOL"
16365
16366 # Used on cygwin: object dumper.
16367 OBJDUMP="$OBJDUMP"
16368
16369 # Used on cygwin: assembler.
16370 AS="$AS"
16371
16372 # The name of the directory that contains temporary libtool files.
16373 objdir=$objdir
16374
16375 # How to create reloadable object files.
16376 reload_flag=$lt_reload_flag
16377 reload_cmds=$lt_reload_cmds
16378
16379 # How to pass a linker flag through the compiler.
16380 wl=$lt_lt_prog_compiler_wl_F77
16381
16382 # Object file suffix (normally "o").
16383 objext="$ac_objext"
16384
16385 # Old archive suffix (normally "a").
16386 libext="$libext"
16387
16388 # Shared library suffix (normally ".so").
16389 shrext_cmds='$shrext_cmds'
16390
16391 # Executable file suffix (normally "").
16392 exeext="$exeext"
16393
16394 # Additional compiler flags for building library objects.
16395 pic_flag=$lt_lt_prog_compiler_pic_F77
16396 pic_mode=$pic_mode
16397
16398 # What is the maximum length of a command?
16399 max_cmd_len=$lt_cv_sys_max_cmd_len
16400
16401 # Does compiler simultaneously support -c and -o options?
16402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16403
16404 # Must we lock files when doing compilation?
16405 need_locks=$lt_need_locks
16406
16407 # Do we need the lib prefix for modules?
16408 need_lib_prefix=$need_lib_prefix
16409
16410 # Do we need a version for libraries?
16411 need_version=$need_version
16412
16413 # Whether dlopen is supported.
16414 dlopen_support=$enable_dlopen
16415
16416 # Whether dlopen of programs is supported.
16417 dlopen_self=$enable_dlopen_self
16418
16419 # Whether dlopen of statically linked programs is supported.
16420 dlopen_self_static=$enable_dlopen_self_static
16421
16422 # Compiler flag to prevent dynamic linking.
16423 link_static_flag=$lt_lt_prog_compiler_static_F77
16424
16425 # Compiler flag to turn off builtin functions.
16426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16427
16428 # Compiler flag to allow reflexive dlopens.
16429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16430
16431 # Compiler flag to generate shared objects directly from archives.
16432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16433
16434 # Compiler flag to generate thread-safe objects.
16435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16436
16437 # Library versioning type.
16438 version_type=$version_type
16439
16440 # Format of library name prefix.
16441 libname_spec=$lt_libname_spec
16442
16443 # List of archive names.  First name is the real one, the rest are links.
16444 # The last name is the one that the linker finds with -lNAME.
16445 library_names_spec=$lt_library_names_spec
16446
16447 # The coded name of the library, if different from the real name.
16448 soname_spec=$lt_soname_spec
16449
16450 # Commands used to build and install an old-style archive.
16451 RANLIB=$lt_RANLIB
16452 old_archive_cmds=$lt_old_archive_cmds_F77
16453 old_postinstall_cmds=$lt_old_postinstall_cmds
16454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16455
16456 # Create an old-style archive from a shared archive.
16457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16458
16459 # Create a temporary old-style archive to link instead of a shared archive.
16460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16461
16462 # Commands used to build and install a shared archive.
16463 archive_cmds=$lt_archive_cmds_F77
16464 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16465 postinstall_cmds=$lt_postinstall_cmds
16466 postuninstall_cmds=$lt_postuninstall_cmds
16467
16468 # Commands used to build a loadable module (assumed same as above if empty)
16469 module_cmds=$lt_module_cmds_F77
16470 module_expsym_cmds=$lt_module_expsym_cmds_F77
16471
16472 # Commands to strip libraries.
16473 old_striplib=$lt_old_striplib
16474 striplib=$lt_striplib
16475
16476 # Dependencies to place before the objects being linked to create a
16477 # shared library.
16478 predep_objects=$lt_predep_objects_F77
16479
16480 # Dependencies to place after the objects being linked to create a
16481 # shared library.
16482 postdep_objects=$lt_postdep_objects_F77
16483
16484 # Dependencies to place before the objects being linked to create a
16485 # shared library.
16486 predeps=$lt_predeps_F77
16487
16488 # Dependencies to place after the objects being linked to create a
16489 # shared library.
16490 postdeps=$lt_postdeps_F77
16491
16492 # The directories searched by this compiler when creating a shared
16493 # library
16494 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16495
16496 # The library search path used internally by the compiler when linking
16497 # a shared library.
16498 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16499
16500 # Method to check whether dependent libraries are shared objects.
16501 deplibs_check_method=$lt_deplibs_check_method
16502
16503 # Command to use when deplibs_check_method == file_magic.
16504 file_magic_cmd=$lt_file_magic_cmd
16505
16506 # Flag that allows shared libraries with undefined symbols to be built.
16507 allow_undefined_flag=$lt_allow_undefined_flag_F77
16508
16509 # Flag that forces no undefined symbols.
16510 no_undefined_flag=$lt_no_undefined_flag_F77
16511
16512 # Commands used to finish a libtool library installation in a directory.
16513 finish_cmds=$lt_finish_cmds
16514
16515 # Same as above, but a single script fragment to be evaled but not shown.
16516 finish_eval=$lt_finish_eval
16517
16518 # Take the output of nm and produce a listing of raw symbols and C names.
16519 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16520
16521 # Transform the output of nm in a proper C declaration
16522 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16523
16524 # Transform the output of nm in a C name address pair
16525 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16526
16527 # This is the shared library runtime path variable.
16528 runpath_var=$runpath_var
16529
16530 # This is the shared library path variable.
16531 shlibpath_var=$shlibpath_var
16532
16533 # Is shlibpath searched before the hard-coded library search path?
16534 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16535
16536 # How to hardcode a shared library path into an executable.
16537 hardcode_action=$hardcode_action_F77
16538
16539 # Whether we should hardcode library paths into libraries.
16540 hardcode_into_libs=$hardcode_into_libs
16541
16542 # Flag to hardcode \$libdir into a binary during linking.
16543 # This must work even if \$libdir does not exist.
16544 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16545
16546 # If ld is used when linking, flag to hardcode \$libdir into
16547 # a binary during linking. This must work even if \$libdir does
16548 # not exist.
16549 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16550
16551 # Whether we need a single -rpath flag with a separated argument.
16552 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16553
16554 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16555 # resulting binary.
16556 hardcode_direct=$hardcode_direct_F77
16557
16558 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16559 # resulting binary.
16560 hardcode_minus_L=$hardcode_minus_L_F77
16561
16562 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16563 # the resulting binary.
16564 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16565
16566 # Set to yes if building a shared library automatically hardcodes DIR into the library
16567 # and all subsequent libraries and executables linked against it.
16568 hardcode_automatic=$hardcode_automatic_F77
16569
16570 # Variables whose values should be saved in libtool wrapper scripts and
16571 # restored at relink time.
16572 variables_saved_for_relink="$variables_saved_for_relink"
16573
16574 # Whether libtool must link a program against all its dependency libraries.
16575 link_all_deplibs=$link_all_deplibs_F77
16576
16577 # Compile-time system search path for libraries
16578 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16579
16580 # Run-time system search path for libraries
16581 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16582
16583 # Fix the shell variable \$srcfile for the compiler.
16584 fix_srcfile_path=$lt_fix_srcfile_path
16585
16586 # Set to yes if exported symbols are required.
16587 always_export_symbols=$always_export_symbols_F77
16588
16589 # The commands to list exported symbols.
16590 export_symbols_cmds=$lt_export_symbols_cmds_F77
16591
16592 # The commands to extract the exported symbol list from a shared archive.
16593 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16594
16595 # Symbols that should not be listed in the preloaded symbols.
16596 exclude_expsyms=$lt_exclude_expsyms_F77
16597
16598 # Symbols that must always be exported.
16599 include_expsyms=$lt_include_expsyms_F77
16600
16601 # ### END LIBTOOL TAG CONFIG: $tagname
16602
16603 __EOF__
16604
16605
16606 else
16607   # If there is no Makefile yet, we rely on a make rule to execute
16608   # `config.status --recheck' to rerun these tests and create the
16609   # libtool script then.
16610   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16611   if test -f "$ltmain_in"; then
16612     test -f Makefile && make "$ltmain"
16613   fi
16614 fi
16615
16616
16617 ac_ext=c
16618 ac_cpp='$CPP $CPPFLAGS'
16619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16622
16623 CC="$lt_save_CC"
16624
16625         else
16626           tagname=""
16627         fi
16628         ;;
16629
16630       GCJ)
16631         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16632
16633
16634 # Source file extension for Java test sources.
16635 ac_ext=java
16636
16637 # Object file extension for compiled Java test sources.
16638 objext=o
16639 objext_GCJ=$objext
16640
16641 # Code to be used in simple compile tests
16642 lt_simple_compile_test_code="class foo {}"
16643
16644 # Code to be used in simple link tests
16645 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16646
16647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16648
16649 # If no C compiler was specified, use CC.
16650 LTCC=${LTCC-"$CC"}
16651
16652 # If no C compiler flags were specified, use CFLAGS.
16653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16654
16655 # Allow CC to be a program name with arguments.
16656 compiler=$CC
16657
16658
16659 # save warnings/boilerplate of simple test code
16660 ac_outfile=conftest.$ac_objext
16661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16663 _lt_compiler_boilerplate=`cat conftest.err`
16664 $rm conftest*
16665
16666 ac_outfile=conftest.$ac_objext
16667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16669 _lt_linker_boilerplate=`cat conftest.err`
16670 $rm -r conftest*
16671
16672
16673 # Allow CC to be a program name with arguments.
16674 lt_save_CC="$CC"
16675 CC=${GCJ-"gcj"}
16676 compiler=$CC
16677 compiler_GCJ=$CC
16678 for cc_temp in $compiler""; do
16679   case $cc_temp in
16680     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16681     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16682     \-*) ;;
16683     *) break;;
16684   esac
16685 done
16686 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16687
16688
16689 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16690 archive_cmds_need_lc_GCJ=no
16691
16692 old_archive_cmds_GCJ=$old_archive_cmds
16693
16694
16695 lt_prog_compiler_no_builtin_flag_GCJ=
16696
16697 if test "$GCC" = yes; then
16698   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16699
16700
16701 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16702 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16703 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16704   echo $ECHO_N "(cached) $ECHO_C" >&6
16705 else
16706   lt_cv_prog_compiler_rtti_exceptions=no
16707   ac_outfile=conftest.$ac_objext
16708    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16709    lt_compiler_flag="-fno-rtti -fno-exceptions"
16710    # Insert the option either (1) after the last *FLAGS variable, or
16711    # (2) before a word containing "conftest.", or (3) at the end.
16712    # Note that $ac_compile itself does not contain backslashes and begins
16713    # with a dollar sign (not a hyphen), so the echo should work correctly.
16714    # The option is referenced via a variable to avoid confusing sed.
16715    lt_compile=`echo "$ac_compile" | $SED \
16716    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16718    -e 's:$: $lt_compiler_flag:'`
16719    (eval echo "\"\$as_me:16719: $lt_compile\"" >&5)
16720    (eval "$lt_compile" 2>conftest.err)
16721    ac_status=$?
16722    cat conftest.err >&5
16723    echo "$as_me:16723: \$? = $ac_status" >&5
16724    if (exit $ac_status) && test -s "$ac_outfile"; then
16725      # The compiler can only warn and ignore the option if not recognized
16726      # So say no if there are warnings other than the usual output.
16727      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16728      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16729      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16730        lt_cv_prog_compiler_rtti_exceptions=yes
16731      fi
16732    fi
16733    $rm conftest*
16734
16735 fi
16736 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16737 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16738
16739 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16740     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16741 else
16742     :
16743 fi
16744
16745 fi
16746
16747 lt_prog_compiler_wl_GCJ=
16748 lt_prog_compiler_pic_GCJ=
16749 lt_prog_compiler_static_GCJ=
16750
16751 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16752 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16753
16754   if test "$GCC" = yes; then
16755     lt_prog_compiler_wl_GCJ='-Wl,'
16756     lt_prog_compiler_static_GCJ='-static'
16757
16758     case $host_os in
16759       aix*)
16760       # All AIX code is PIC.
16761       if test "$host_cpu" = ia64; then
16762         # AIX 5 now supports IA64 processor
16763         lt_prog_compiler_static_GCJ='-Bstatic'
16764       fi
16765       ;;
16766
16767     amigaos*)
16768       # FIXME: we need at least 68020 code to build shared libraries, but
16769       # adding the `-m68020' flag to GCC prevents building anything better,
16770       # like `-m68040'.
16771       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16772       ;;
16773
16774     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16775       # PIC is the default for these OSes.
16776       ;;
16777
16778     mingw* | cygwin* | pw32* | os2*)
16779       # This hack is so that the source file can tell whether it is being
16780       # built for inclusion in a dll (and should export symbols for example).
16781       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16782       # (--disable-auto-import) libraries
16783
16784       ;;
16785
16786     darwin* | rhapsody*)
16787       # PIC is the default on this platform
16788       # Common symbols not allowed in MH_DYLIB files
16789       lt_prog_compiler_pic_GCJ='-fno-common'
16790       ;;
16791
16792     interix[3-9]*)
16793       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16794       # Instead, we relocate shared libraries at runtime.
16795       ;;
16796
16797     msdosdjgpp*)
16798       # Just because we use GCC doesn't mean we suddenly get shared libraries
16799       # on systems that don't support them.
16800       lt_prog_compiler_can_build_shared_GCJ=no
16801       enable_shared=no
16802       ;;
16803
16804     sysv4*MP*)
16805       if test -d /usr/nec; then
16806         lt_prog_compiler_pic_GCJ=-Kconform_pic
16807       fi
16808       ;;
16809
16810     hpux*)
16811       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16812       # not for PA HP-UX.
16813       case $host_cpu in
16814       hppa*64*|ia64*)
16815         # +Z the default
16816         ;;
16817       *)
16818         lt_prog_compiler_pic_GCJ='-fPIC'
16819         ;;
16820       esac
16821       ;;
16822
16823     *)
16824       lt_prog_compiler_pic_GCJ='-fPIC'
16825       ;;
16826     esac
16827   else
16828     # PORTME Check for flag to pass linker flags through the system compiler.
16829     case $host_os in
16830     aix*)
16831       lt_prog_compiler_wl_GCJ='-Wl,'
16832       if test "$host_cpu" = ia64; then
16833         # AIX 5 now supports IA64 processor
16834         lt_prog_compiler_static_GCJ='-Bstatic'
16835       else
16836         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16837       fi
16838       ;;
16839       darwin*)
16840         # PIC is the default on this platform
16841         # Common symbols not allowed in MH_DYLIB files
16842        case $cc_basename in
16843          xlc*)
16844          lt_prog_compiler_pic_GCJ='-qnocommon'
16845          lt_prog_compiler_wl_GCJ='-Wl,'
16846          ;;
16847        esac
16848        ;;
16849
16850     mingw* | cygwin* | pw32* | os2*)
16851       # This hack is so that the source file can tell whether it is being
16852       # built for inclusion in a dll (and should export symbols for example).
16853
16854       ;;
16855
16856     hpux9* | hpux10* | hpux11*)
16857       lt_prog_compiler_wl_GCJ='-Wl,'
16858       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16859       # not for PA HP-UX.
16860       case $host_cpu in
16861       hppa*64*|ia64*)
16862         # +Z the default
16863         ;;
16864       *)
16865         lt_prog_compiler_pic_GCJ='+Z'
16866         ;;
16867       esac
16868       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16869       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16870       ;;
16871
16872     irix5* | irix6* | nonstopux*)
16873       lt_prog_compiler_wl_GCJ='-Wl,'
16874       # PIC (with -KPIC) is the default.
16875       lt_prog_compiler_static_GCJ='-non_shared'
16876       ;;
16877
16878     newsos6)
16879       lt_prog_compiler_pic_GCJ='-KPIC'
16880       lt_prog_compiler_static_GCJ='-Bstatic'
16881       ;;
16882
16883     linux* | k*bsd*-gnu)
16884       case $cc_basename in
16885       icc* | ecc*)
16886         lt_prog_compiler_wl_GCJ='-Wl,'
16887         lt_prog_compiler_pic_GCJ='-KPIC'
16888         lt_prog_compiler_static_GCJ='-static'
16889         ;;
16890       pgcc* | pgf77* | pgf90* | pgf95*)
16891         # Portland Group compilers (*not* the Pentium gcc compiler,
16892         # which looks to be a dead project)
16893         lt_prog_compiler_wl_GCJ='-Wl,'
16894         lt_prog_compiler_pic_GCJ='-fpic'
16895         lt_prog_compiler_static_GCJ='-Bstatic'
16896         ;;
16897       ccc*)
16898         lt_prog_compiler_wl_GCJ='-Wl,'
16899         # All Alpha code is PIC.
16900         lt_prog_compiler_static_GCJ='-non_shared'
16901         ;;
16902       *)
16903         case `$CC -V 2>&1 | sed 5q` in
16904         *Sun\ C*)
16905           # Sun C 5.9
16906           lt_prog_compiler_pic_GCJ='-KPIC'
16907           lt_prog_compiler_static_GCJ='-Bstatic'
16908           lt_prog_compiler_wl_GCJ='-Wl,'
16909           ;;
16910         *Sun\ F*)
16911           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16912           lt_prog_compiler_pic_GCJ='-KPIC'
16913           lt_prog_compiler_static_GCJ='-Bstatic'
16914           lt_prog_compiler_wl_GCJ=''
16915           ;;
16916         esac
16917         ;;
16918       esac
16919       ;;
16920
16921     osf3* | osf4* | osf5*)
16922       lt_prog_compiler_wl_GCJ='-Wl,'
16923       # All OSF/1 code is PIC.
16924       lt_prog_compiler_static_GCJ='-non_shared'
16925       ;;
16926
16927     rdos*)
16928       lt_prog_compiler_static_GCJ='-non_shared'
16929       ;;
16930
16931     solaris*)
16932       lt_prog_compiler_pic_GCJ='-KPIC'
16933       lt_prog_compiler_static_GCJ='-Bstatic'
16934       case $cc_basename in
16935       f77* | f90* | f95*)
16936         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16937       *)
16938         lt_prog_compiler_wl_GCJ='-Wl,';;
16939       esac
16940       ;;
16941
16942     sunos4*)
16943       lt_prog_compiler_wl_GCJ='-Qoption ld '
16944       lt_prog_compiler_pic_GCJ='-PIC'
16945       lt_prog_compiler_static_GCJ='-Bstatic'
16946       ;;
16947
16948     sysv4 | sysv4.2uw2* | sysv4.3*)
16949       lt_prog_compiler_wl_GCJ='-Wl,'
16950       lt_prog_compiler_pic_GCJ='-KPIC'
16951       lt_prog_compiler_static_GCJ='-Bstatic'
16952       ;;
16953
16954     sysv4*MP*)
16955       if test -d /usr/nec ;then
16956         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16957         lt_prog_compiler_static_GCJ='-Bstatic'
16958       fi
16959       ;;
16960
16961     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16962       lt_prog_compiler_wl_GCJ='-Wl,'
16963       lt_prog_compiler_pic_GCJ='-KPIC'
16964       lt_prog_compiler_static_GCJ='-Bstatic'
16965       ;;
16966
16967     unicos*)
16968       lt_prog_compiler_wl_GCJ='-Wl,'
16969       lt_prog_compiler_can_build_shared_GCJ=no
16970       ;;
16971
16972     uts4*)
16973       lt_prog_compiler_pic_GCJ='-pic'
16974       lt_prog_compiler_static_GCJ='-Bstatic'
16975       ;;
16976
16977     *)
16978       lt_prog_compiler_can_build_shared_GCJ=no
16979       ;;
16980     esac
16981   fi
16982
16983 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16984 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16985
16986 #
16987 # Check to make sure the PIC flag actually works.
16988 #
16989 if test -n "$lt_prog_compiler_pic_GCJ"; then
16990
16991 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16992 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16993 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16994   echo $ECHO_N "(cached) $ECHO_C" >&6
16995 else
16996   lt_cv_prog_compiler_pic_works_GCJ=no
16997   ac_outfile=conftest.$ac_objext
16998    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16999    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17000    # Insert the option either (1) after the last *FLAGS variable, or
17001    # (2) before a word containing "conftest.", or (3) at the end.
17002    # Note that $ac_compile itself does not contain backslashes and begins
17003    # with a dollar sign (not a hyphen), so the echo should work correctly.
17004    # The option is referenced via a variable to avoid confusing sed.
17005    lt_compile=`echo "$ac_compile" | $SED \
17006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17008    -e 's:$: $lt_compiler_flag:'`
17009    (eval echo "\"\$as_me:17009: $lt_compile\"" >&5)
17010    (eval "$lt_compile" 2>conftest.err)
17011    ac_status=$?
17012    cat conftest.err >&5
17013    echo "$as_me:17013: \$? = $ac_status" >&5
17014    if (exit $ac_status) && test -s "$ac_outfile"; then
17015      # The compiler can only warn and ignore the option if not recognized
17016      # So say no if there are warnings other than the usual output.
17017      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17018      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17019      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17020        lt_cv_prog_compiler_pic_works_GCJ=yes
17021      fi
17022    fi
17023    $rm conftest*
17024
17025 fi
17026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17027 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17028
17029 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17030     case $lt_prog_compiler_pic_GCJ in
17031      "" | " "*) ;;
17032      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17033      esac
17034 else
17035     lt_prog_compiler_pic_GCJ=
17036      lt_prog_compiler_can_build_shared_GCJ=no
17037 fi
17038
17039 fi
17040 case $host_os in
17041   # For platforms which do not support PIC, -DPIC is meaningless:
17042   *djgpp*)
17043     lt_prog_compiler_pic_GCJ=
17044     ;;
17045   *)
17046     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17047     ;;
17048 esac
17049
17050 #
17051 # Check to make sure the static flag actually works.
17052 #
17053 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17054 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17055 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17056 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17057   echo $ECHO_N "(cached) $ECHO_C" >&6
17058 else
17059   lt_cv_prog_compiler_static_works_GCJ=no
17060    save_LDFLAGS="$LDFLAGS"
17061    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17062    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17063    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17064      # The linker can only warn and ignore the option if not recognized
17065      # So say no if there are warnings
17066      if test -s conftest.err; then
17067        # Append any errors to the config.log.
17068        cat conftest.err 1>&5
17069        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17070        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17071        if diff conftest.exp conftest.er2 >/dev/null; then
17072          lt_cv_prog_compiler_static_works_GCJ=yes
17073        fi
17074      else
17075        lt_cv_prog_compiler_static_works_GCJ=yes
17076      fi
17077    fi
17078    $rm -r conftest*
17079    LDFLAGS="$save_LDFLAGS"
17080
17081 fi
17082 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17083 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17084
17085 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17086     :
17087 else
17088     lt_prog_compiler_static_GCJ=
17089 fi
17090
17091
17092 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17093 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17094 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097   lt_cv_prog_compiler_c_o_GCJ=no
17098    $rm -r conftest 2>/dev/null
17099    mkdir conftest
17100    cd conftest
17101    mkdir out
17102    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17103
17104    lt_compiler_flag="-o out/conftest2.$ac_objext"
17105    # Insert the option either (1) after the last *FLAGS variable, or
17106    # (2) before a word containing "conftest.", or (3) at the end.
17107    # Note that $ac_compile itself does not contain backslashes and begins
17108    # with a dollar sign (not a hyphen), so the echo should work correctly.
17109    lt_compile=`echo "$ac_compile" | $SED \
17110    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17111    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17112    -e 's:$: $lt_compiler_flag:'`
17113    (eval echo "\"\$as_me:17113: $lt_compile\"" >&5)
17114    (eval "$lt_compile" 2>out/conftest.err)
17115    ac_status=$?
17116    cat out/conftest.err >&5
17117    echo "$as_me:17117: \$? = $ac_status" >&5
17118    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17119    then
17120      # The compiler can only warn and ignore the option if not recognized
17121      # So say no if there are warnings
17122      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17123      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17124      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17125        lt_cv_prog_compiler_c_o_GCJ=yes
17126      fi
17127    fi
17128    chmod u+w . 2>&5
17129    $rm conftest*
17130    # SGI C++ compiler will create directory out/ii_files/ for
17131    # template instantiation
17132    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17133    $rm out/* && rmdir out
17134    cd ..
17135    rmdir conftest
17136    $rm conftest*
17137
17138 fi
17139 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17141
17142
17143 hard_links="nottested"
17144 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17145   # do not overwrite the value of need_locks provided by the user
17146   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17148   hard_links=yes
17149   $rm conftest*
17150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17151   touch conftest.a
17152   ln conftest.a conftest.b 2>&5 || hard_links=no
17153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17154   { echo "$as_me:$LINENO: result: $hard_links" >&5
17155 echo "${ECHO_T}$hard_links" >&6; }
17156   if test "$hard_links" = no; then
17157     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17159     need_locks=warn
17160   fi
17161 else
17162   need_locks=no
17163 fi
17164
17165 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17167
17168   runpath_var=
17169   allow_undefined_flag_GCJ=
17170   enable_shared_with_static_runtimes_GCJ=no
17171   archive_cmds_GCJ=
17172   archive_expsym_cmds_GCJ=
17173   old_archive_From_new_cmds_GCJ=
17174   old_archive_from_expsyms_cmds_GCJ=
17175   export_dynamic_flag_spec_GCJ=
17176   whole_archive_flag_spec_GCJ=
17177   thread_safe_flag_spec_GCJ=
17178   hardcode_libdir_flag_spec_GCJ=
17179   hardcode_libdir_flag_spec_ld_GCJ=
17180   hardcode_libdir_separator_GCJ=
17181   hardcode_direct_GCJ=no
17182   hardcode_minus_L_GCJ=no
17183   hardcode_shlibpath_var_GCJ=unsupported
17184   link_all_deplibs_GCJ=unknown
17185   hardcode_automatic_GCJ=no
17186   module_cmds_GCJ=
17187   module_expsym_cmds_GCJ=
17188   always_export_symbols_GCJ=no
17189   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17190   # include_expsyms should be a list of space-separated symbols to be *always*
17191   # included in the symbol list
17192   include_expsyms_GCJ=
17193   # exclude_expsyms can be an extended regexp of symbols to exclude
17194   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17195   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17196   # as well as any symbol that contains `d'.
17197   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17198   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17199   # platforms (ab)use it in PIC code, but their linkers get confused if
17200   # the symbol is explicitly referenced.  Since portable code cannot
17201   # rely on this symbol name, it's probably fine to never include it in
17202   # preloaded symbol tables.
17203   # Exclude shared library initialization/finalization symbols.
17204   extract_expsyms_cmds=
17205   # Just being paranoid about ensuring that cc_basename is set.
17206   for cc_temp in $compiler""; do
17207   case $cc_temp in
17208     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17209     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17210     \-*) ;;
17211     *) break;;
17212   esac
17213 done
17214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17215
17216   case $host_os in
17217   cygwin* | mingw* | pw32*)
17218     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17219     # When not using gcc, we currently assume that we are using
17220     # Microsoft Visual C++.
17221     if test "$GCC" != yes; then
17222       with_gnu_ld=no
17223     fi
17224     ;;
17225   interix*)
17226     # we just hope/assume this is gcc and not c89 (= MSVC++)
17227     with_gnu_ld=yes
17228     ;;
17229   openbsd*)
17230     with_gnu_ld=no
17231     ;;
17232   esac
17233
17234   ld_shlibs_GCJ=yes
17235   if test "$with_gnu_ld" = yes; then
17236     # If archive_cmds runs LD, not CC, wlarc should be empty
17237     wlarc='${wl}'
17238
17239     # Set some defaults for GNU ld with shared library support. These
17240     # are reset later if shared libraries are not supported. Putting them
17241     # here allows them to be overridden if necessary.
17242     runpath_var=LD_RUN_PATH
17243     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17244     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17245     # ancient GNU ld didn't support --whole-archive et. al.
17246     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17247         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17248       else
17249         whole_archive_flag_spec_GCJ=
17250     fi
17251     supports_anon_versioning=no
17252     case `$LD -v 2>/dev/null` in
17253       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17254       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17255       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17256       *\ 2.11.*) ;; # other 2.11 versions
17257       *) supports_anon_versioning=yes ;;
17258     esac
17259
17260     # See if GNU ld supports shared libraries.
17261     case $host_os in
17262     aix[3-9]*)
17263       # On AIX/PPC, the GNU linker is very broken
17264       if test "$host_cpu" != ia64; then
17265         ld_shlibs_GCJ=no
17266         cat <<EOF 1>&2
17267
17268 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17269 *** to be unable to reliably create shared libraries on AIX.
17270 *** Therefore, libtool is disabling shared libraries support.  If you
17271 *** really care for shared libraries, you may want to modify your PATH
17272 *** so that a non-GNU linker is found, and then restart.
17273
17274 EOF
17275       fi
17276       ;;
17277
17278     amigaos*)
17279       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)'
17280       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17281       hardcode_minus_L_GCJ=yes
17282
17283       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17284       # that the semantics of dynamic libraries on AmigaOS, at least up
17285       # to version 4, is to share data among multiple programs linked
17286       # with the same dynamic library.  Since this doesn't match the
17287       # behavior of shared libraries on other platforms, we can't use
17288       # them.
17289       ld_shlibs_GCJ=no
17290       ;;
17291
17292     beos*)
17293       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17294         allow_undefined_flag_GCJ=unsupported
17295         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17296         # support --undefined.  This deserves some investigation.  FIXME
17297         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17298       else
17299         ld_shlibs_GCJ=no
17300       fi
17301       ;;
17302
17303     cygwin* | mingw* | pw32*)
17304       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17305       # as there is no search path for DLLs.
17306       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17307       allow_undefined_flag_GCJ=unsupported
17308       always_export_symbols_GCJ=no
17309       enable_shared_with_static_runtimes_GCJ=yes
17310       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17311
17312       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17313         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17314         # If the export-symbols file already is a .def file (1st line
17315         # is EXPORTS), use it as is; otherwise, prepend...
17316         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17317           cp $export_symbols $output_objdir/$soname.def;
17318         else
17319           echo EXPORTS > $output_objdir/$soname.def;
17320           cat $export_symbols >> $output_objdir/$soname.def;
17321         fi~
17322         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17323       else
17324         ld_shlibs_GCJ=no
17325       fi
17326       ;;
17327
17328     interix[3-9]*)
17329       hardcode_direct_GCJ=no
17330       hardcode_shlibpath_var_GCJ=no
17331       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17332       export_dynamic_flag_spec_GCJ='${wl}-E'
17333       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17334       # Instead, shared libraries are loaded at an image base (0x10000000 by
17335       # default) and relocated if they conflict, which is a slow very memory
17336       # consuming and fragmenting process.  To avoid this, we pick a random,
17337       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17338       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17339       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'
17340       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'
17341       ;;
17342
17343     gnu* | linux* | k*bsd*-gnu)
17344       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17345         tmp_addflag=
17346         case $cc_basename,$host_cpu in
17347         pgcc*)                          # Portland Group C compiler
17348           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'
17349           tmp_addflag=' $pic_flag'
17350           ;;
17351         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17352           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'
17353           tmp_addflag=' $pic_flag -Mnomain' ;;
17354         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17355           tmp_addflag=' -i_dynamic' ;;
17356         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17357           tmp_addflag=' -i_dynamic -nofor_main' ;;
17358         ifc* | ifort*)                  # Intel Fortran compiler
17359           tmp_addflag=' -nofor_main' ;;
17360         esac
17361         case `$CC -V 2>&1 | sed 5q` in
17362         *Sun\ C*)                       # Sun C 5.9
17363           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'
17364           tmp_sharedflag='-G' ;;
17365         *Sun\ F*)                       # Sun Fortran 8.3
17366           tmp_sharedflag='-G' ;;
17367         *)
17368           tmp_sharedflag='-shared' ;;
17369         esac
17370         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17371
17372         if test $supports_anon_versioning = yes; then
17373           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17374   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17375   $echo "local: *; };" >> $output_objdir/$libname.ver~
17376           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17377         fi
17378         link_all_deplibs_GCJ=no
17379       else
17380         ld_shlibs_GCJ=no
17381       fi
17382       ;;
17383
17384     netbsd* | netbsdelf*-gnu)
17385       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17386         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17387         wlarc=
17388       else
17389         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17390         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17391       fi
17392       ;;
17393
17394     solaris*)
17395       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17396         ld_shlibs_GCJ=no
17397         cat <<EOF 1>&2
17398
17399 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17400 *** create shared libraries on Solaris systems.  Therefore, libtool
17401 *** is disabling shared libraries support.  We urge you to upgrade GNU
17402 *** binutils to release 2.9.1 or newer.  Another option is to modify
17403 *** your PATH or compiler configuration so that the native linker is
17404 *** used, and then restart.
17405
17406 EOF
17407       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17408         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17409         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17410       else
17411         ld_shlibs_GCJ=no
17412       fi
17413       ;;
17414
17415     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17416       case `$LD -v 2>&1` in
17417         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17418         ld_shlibs_GCJ=no
17419         cat <<_LT_EOF 1>&2
17420
17421 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17422 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17423 *** is disabling shared libraries support.  We urge you to upgrade GNU
17424 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17425 *** your PATH or compiler configuration so that the native linker is
17426 *** used, and then restart.
17427
17428 _LT_EOF
17429         ;;
17430         *)
17431           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17432             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17433             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17434             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17435           else
17436             ld_shlibs_GCJ=no
17437           fi
17438         ;;
17439       esac
17440       ;;
17441
17442     sunos4*)
17443       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17444       wlarc=
17445       hardcode_direct_GCJ=yes
17446       hardcode_shlibpath_var_GCJ=no
17447       ;;
17448
17449     *)
17450       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17451         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17452         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17453       else
17454         ld_shlibs_GCJ=no
17455       fi
17456       ;;
17457     esac
17458
17459     if test "$ld_shlibs_GCJ" = no; then
17460       runpath_var=
17461       hardcode_libdir_flag_spec_GCJ=
17462       export_dynamic_flag_spec_GCJ=
17463       whole_archive_flag_spec_GCJ=
17464     fi
17465   else
17466     # PORTME fill in a description of your system's linker (not GNU ld)
17467     case $host_os in
17468     aix3*)
17469       allow_undefined_flag_GCJ=unsupported
17470       always_export_symbols_GCJ=yes
17471       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'
17472       # Note: this linker hardcodes the directories in LIBPATH if there
17473       # are no directories specified by -L.
17474       hardcode_minus_L_GCJ=yes
17475       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17476         # Neither direct hardcoding nor static linking is supported with a
17477         # broken collect2.
17478         hardcode_direct_GCJ=unsupported
17479       fi
17480       ;;
17481
17482     aix[4-9]*)
17483       if test "$host_cpu" = ia64; then
17484         # On IA64, the linker does run time linking by default, so we don't
17485         # have to do anything special.
17486         aix_use_runtimelinking=no
17487         exp_sym_flag='-Bexport'
17488         no_entry_flag=""
17489       else
17490         # If we're using GNU nm, then we don't want the "-C" option.
17491         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17492         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17493           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'
17494         else
17495           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'
17496         fi
17497         aix_use_runtimelinking=no
17498
17499         # Test if we are trying to use run time linking or normal
17500         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17501         # need to do runtime linking.
17502         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17503           for ld_flag in $LDFLAGS; do
17504           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17505             aix_use_runtimelinking=yes
17506             break
17507           fi
17508           done
17509           ;;
17510         esac
17511
17512         exp_sym_flag='-bexport'
17513         no_entry_flag='-bnoentry'
17514       fi
17515
17516       # When large executables or shared objects are built, AIX ld can
17517       # have problems creating the table of contents.  If linking a library
17518       # or program results in "error TOC overflow" add -mminimal-toc to
17519       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17520       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17521
17522       archive_cmds_GCJ=''
17523       hardcode_direct_GCJ=yes
17524       hardcode_libdir_separator_GCJ=':'
17525       link_all_deplibs_GCJ=yes
17526
17527       if test "$GCC" = yes; then
17528         case $host_os in aix4.[012]|aix4.[012].*)
17529         # We only want to do this on AIX 4.2 and lower, the check
17530         # below for broken collect2 doesn't work under 4.3+
17531           collect2name=`${CC} -print-prog-name=collect2`
17532           if test -f "$collect2name" && \
17533            strings "$collect2name" | grep resolve_lib_name >/dev/null
17534           then
17535           # We have reworked collect2
17536           :
17537           else
17538           # We have old collect2
17539           hardcode_direct_GCJ=unsupported
17540           # It fails to find uninstalled libraries when the uninstalled
17541           # path is not listed in the libpath.  Setting hardcode_minus_L
17542           # to unsupported forces relinking
17543           hardcode_minus_L_GCJ=yes
17544           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17545           hardcode_libdir_separator_GCJ=
17546           fi
17547           ;;
17548         esac
17549         shared_flag='-shared'
17550         if test "$aix_use_runtimelinking" = yes; then
17551           shared_flag="$shared_flag "'${wl}-G'
17552         fi
17553       else
17554         # not using gcc
17555         if test "$host_cpu" = ia64; then
17556         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17557         # chokes on -Wl,-G. The following line is correct:
17558           shared_flag='-G'
17559         else
17560           if test "$aix_use_runtimelinking" = yes; then
17561             shared_flag='${wl}-G'
17562           else
17563             shared_flag='${wl}-bM:SRE'
17564           fi
17565         fi
17566       fi
17567
17568       # It seems that -bexpall does not export symbols beginning with
17569       # underscore (_), so it is better to generate a list of symbols to export.
17570       always_export_symbols_GCJ=yes
17571       if test "$aix_use_runtimelinking" = yes; then
17572         # Warning - without using the other runtime loading flags (-brtl),
17573         # -berok will link without error, but may produce a broken library.
17574         allow_undefined_flag_GCJ='-berok'
17575        # Determine the default libpath from the value encoded in an empty executable.
17576        cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h.  */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h.  */
17582
17583 int
17584 main ()
17585 {
17586
17587   ;
17588   return 0;
17589 }
17590 _ACEOF
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_link") 2>conftest.er1
17599   ac_status=$?
17600   grep -v '^ *+' conftest.er1 >conftest.err
17601   rm -f conftest.er1
17602   cat conftest.err >&5
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); } && {
17605          test -z "$ac_c_werror_flag" ||
17606          test ! -s conftest.err
17607        } && test -s conftest$ac_exeext &&
17608        $as_test_x conftest$ac_exeext; then
17609
17610 lt_aix_libpath_sed='
17611     /Import File Strings/,/^$/ {
17612         /^0/ {
17613             s/^0  *\(.*\)$/\1/
17614             p
17615         }
17616     }'
17617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17618 # Check for a 64-bit object if we didn't find anything.
17619 if test -z "$aix_libpath"; then
17620   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17621 fi
17622 else
17623   echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626
17627 fi
17628
17629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17630       conftest$ac_exeext conftest.$ac_ext
17631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17632
17633        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17634         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"
17635        else
17636         if test "$host_cpu" = ia64; then
17637           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17638           allow_undefined_flag_GCJ="-z nodefs"
17639           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"
17640         else
17641          # Determine the default libpath from the value encoded in an empty executable.
17642          cat >conftest.$ac_ext <<_ACEOF
17643 /* confdefs.h.  */
17644 _ACEOF
17645 cat confdefs.h >>conftest.$ac_ext
17646 cat >>conftest.$ac_ext <<_ACEOF
17647 /* end confdefs.h.  */
17648
17649 int
17650 main ()
17651 {
17652
17653   ;
17654   return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext conftest$ac_exeext
17658 if { (ac_try="$ac_link"
17659 case "(($ac_try" in
17660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661   *) ac_try_echo=$ac_try;;
17662 esac
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664   (eval "$ac_link") 2>conftest.er1
17665   ac_status=$?
17666   grep -v '^ *+' conftest.er1 >conftest.err
17667   rm -f conftest.er1
17668   cat conftest.err >&5
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); } && {
17671          test -z "$ac_c_werror_flag" ||
17672          test ! -s conftest.err
17673        } && test -s conftest$ac_exeext &&
17674        $as_test_x conftest$ac_exeext; then
17675
17676 lt_aix_libpath_sed='
17677     /Import File Strings/,/^$/ {
17678         /^0/ {
17679             s/^0  *\(.*\)$/\1/
17680             p
17681         }
17682     }'
17683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17684 # Check for a 64-bit object if we didn't find anything.
17685 if test -z "$aix_libpath"; then
17686   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17687 fi
17688 else
17689   echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17691
17692
17693 fi
17694
17695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17696       conftest$ac_exeext conftest.$ac_ext
17697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17698
17699          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17700           # Warning - without using the other run time loading flags,
17701           # -berok will link without error, but may produce a broken library.
17702           no_undefined_flag_GCJ=' ${wl}-bernotok'
17703           allow_undefined_flag_GCJ=' ${wl}-berok'
17704           # Exported symbols can be pulled into shared objects from archives
17705           whole_archive_flag_spec_GCJ='$convenience'
17706           archive_cmds_need_lc_GCJ=yes
17707           # This is similar to how AIX traditionally builds its shared libraries.
17708           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'
17709         fi
17710       fi
17711       ;;
17712
17713     amigaos*)
17714       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)'
17715       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17716       hardcode_minus_L_GCJ=yes
17717       # see comment about different semantics on the GNU ld section
17718       ld_shlibs_GCJ=no
17719       ;;
17720
17721     bsdi[45]*)
17722       export_dynamic_flag_spec_GCJ=-rdynamic
17723       ;;
17724
17725     cygwin* | mingw* | pw32*)
17726       # When not using gcc, we currently assume that we are using
17727       # Microsoft Visual C++.
17728       # hardcode_libdir_flag_spec is actually meaningless, as there is
17729       # no search path for DLLs.
17730       hardcode_libdir_flag_spec_GCJ=' '
17731       allow_undefined_flag_GCJ=unsupported
17732       # Tell ltmain to make .lib files, not .a files.
17733       libext=lib
17734       # Tell ltmain to make .dll files, not .so files.
17735       shrext_cmds=".dll"
17736       # FIXME: Setting linknames here is a bad hack.
17737       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17738       # The linker will automatically build a .lib file if we build a DLL.
17739       old_archive_From_new_cmds_GCJ='true'
17740       # FIXME: Should let the user specify the lib program.
17741       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17742       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17743       enable_shared_with_static_runtimes_GCJ=yes
17744       ;;
17745
17746     darwin* | rhapsody*)
17747       case $host_os in
17748         rhapsody* | darwin1.[012])
17749          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17750          ;;
17751        *) # Darwin 1.3 on
17752          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17753            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17754          else
17755            case ${MACOSX_DEPLOYMENT_TARGET} in
17756              10.[012])
17757                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17758                ;;
17759              10.*)
17760                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17761                ;;
17762            esac
17763          fi
17764          ;;
17765       esac
17766       archive_cmds_need_lc_GCJ=no
17767       hardcode_direct_GCJ=no
17768       hardcode_automatic_GCJ=yes
17769       hardcode_shlibpath_var_GCJ=unsupported
17770       whole_archive_flag_spec_GCJ=''
17771       link_all_deplibs_GCJ=yes
17772     if test "$GCC" = yes ; then
17773         output_verbose_link_cmd='echo'
17774         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}"
17775         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17776         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}"
17777         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}"
17778     else
17779       case $cc_basename in
17780         xlc*)
17781          output_verbose_link_cmd='echo'
17782          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17783          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17784           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17785          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}'
17786           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}'
17787           ;;
17788        *)
17789          ld_shlibs_GCJ=no
17790           ;;
17791       esac
17792     fi
17793       ;;
17794
17795     dgux*)
17796       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17797       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17798       hardcode_shlibpath_var_GCJ=no
17799       ;;
17800
17801     freebsd1*)
17802       ld_shlibs_GCJ=no
17803       ;;
17804
17805     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17806     # support.  Future versions do this automatically, but an explicit c++rt0.o
17807     # does not break anything, and helps significantly (at the cost of a little
17808     # extra space).
17809     freebsd2.2*)
17810       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17811       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17812       hardcode_direct_GCJ=yes
17813       hardcode_shlibpath_var_GCJ=no
17814       ;;
17815
17816     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17817     freebsd2*)
17818       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17819       hardcode_direct_GCJ=yes
17820       hardcode_minus_L_GCJ=yes
17821       hardcode_shlibpath_var_GCJ=no
17822       ;;
17823
17824     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17825     freebsd* | dragonfly*)
17826       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17827       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17828       hardcode_direct_GCJ=yes
17829       hardcode_shlibpath_var_GCJ=no
17830       ;;
17831
17832     hpux9*)
17833       if test "$GCC" = yes; then
17834         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'
17835       else
17836         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'
17837       fi
17838       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17839       hardcode_libdir_separator_GCJ=:
17840       hardcode_direct_GCJ=yes
17841
17842       # hardcode_minus_L: Not really in the search PATH,
17843       # but as the default location of the library.
17844       hardcode_minus_L_GCJ=yes
17845       export_dynamic_flag_spec_GCJ='${wl}-E'
17846       ;;
17847
17848     hpux10*)
17849       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17850         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17851       else
17852         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17853       fi
17854       if test "$with_gnu_ld" = no; then
17855         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17856         hardcode_libdir_separator_GCJ=:
17857
17858         hardcode_direct_GCJ=yes
17859         export_dynamic_flag_spec_GCJ='${wl}-E'
17860
17861         # hardcode_minus_L: Not really in the search PATH,
17862         # but as the default location of the library.
17863         hardcode_minus_L_GCJ=yes
17864       fi
17865       ;;
17866
17867     hpux11*)
17868       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17869         case $host_cpu in
17870         hppa*64*)
17871           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17872           ;;
17873         ia64*)
17874           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17875           ;;
17876         *)
17877           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17878           ;;
17879         esac
17880       else
17881         case $host_cpu in
17882         hppa*64*)
17883           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17884           ;;
17885         ia64*)
17886           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17887           ;;
17888         *)
17889           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17890           ;;
17891         esac
17892       fi
17893       if test "$with_gnu_ld" = no; then
17894         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17895         hardcode_libdir_separator_GCJ=:
17896
17897         case $host_cpu in
17898         hppa*64*|ia64*)
17899           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17900           hardcode_direct_GCJ=no
17901           hardcode_shlibpath_var_GCJ=no
17902           ;;
17903         *)
17904           hardcode_direct_GCJ=yes
17905           export_dynamic_flag_spec_GCJ='${wl}-E'
17906
17907           # hardcode_minus_L: Not really in the search PATH,
17908           # but as the default location of the library.
17909           hardcode_minus_L_GCJ=yes
17910           ;;
17911         esac
17912       fi
17913       ;;
17914
17915     irix5* | irix6* | nonstopux*)
17916       if test "$GCC" = yes; then
17917         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'
17918       else
17919         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'
17920         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17921       fi
17922       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17923       hardcode_libdir_separator_GCJ=:
17924       link_all_deplibs_GCJ=yes
17925       ;;
17926
17927     netbsd* | netbsdelf*-gnu)
17928       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17929         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17930       else
17931         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17932       fi
17933       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17934       hardcode_direct_GCJ=yes
17935       hardcode_shlibpath_var_GCJ=no
17936       ;;
17937
17938     newsos6)
17939       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17940       hardcode_direct_GCJ=yes
17941       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17942       hardcode_libdir_separator_GCJ=:
17943       hardcode_shlibpath_var_GCJ=no
17944       ;;
17945
17946     openbsd*)
17947       if test -f /usr/libexec/ld.so; then
17948         hardcode_direct_GCJ=yes
17949         hardcode_shlibpath_var_GCJ=no
17950         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17951           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17952           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17953           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17954           export_dynamic_flag_spec_GCJ='${wl}-E'
17955         else
17956           case $host_os in
17957            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17958              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17959              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17960              ;;
17961            *)
17962              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17963              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17964              ;;
17965           esac
17966         fi
17967       else
17968         ld_shlibs_GCJ=no
17969       fi
17970       ;;
17971
17972     os2*)
17973       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17974       hardcode_minus_L_GCJ=yes
17975       allow_undefined_flag_GCJ=unsupported
17976       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'
17977       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17978       ;;
17979
17980     osf3*)
17981       if test "$GCC" = yes; then
17982         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17983         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'
17984       else
17985         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17986         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'
17987       fi
17988       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17989       hardcode_libdir_separator_GCJ=:
17990       ;;
17991
17992     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17993       if test "$GCC" = yes; then
17994         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17995         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'
17996         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17997       else
17998         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17999         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'
18000         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~
18001         $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'
18002
18003         # Both c and cxx compiler support -rpath directly
18004         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18005       fi
18006       hardcode_libdir_separator_GCJ=:
18007       ;;
18008
18009     solaris*)
18010       no_undefined_flag_GCJ=' -z text'
18011       if test "$GCC" = yes; then
18012         wlarc='${wl}'
18013         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18014         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18015           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18016       else
18017         wlarc=''
18018         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18019         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18020         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18021       fi
18022       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18023       hardcode_shlibpath_var_GCJ=no
18024       case $host_os in
18025       solaris2.[0-5] | solaris2.[0-5].*) ;;
18026       *)
18027         # The compiler driver will combine and reorder linker options,
18028         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18029         # but is careful enough not to reorder.
18030         # Supported since Solaris 2.6 (maybe 2.5.1?)
18031         if test "$GCC" = yes; then
18032           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18033         else
18034           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18035         fi
18036         ;;
18037       esac
18038       link_all_deplibs_GCJ=yes
18039       ;;
18040
18041     sunos4*)
18042       if test "x$host_vendor" = xsequent; then
18043         # Use $CC to link under sequent, because it throws in some extra .o
18044         # files that make .init and .fini sections work.
18045         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18046       else
18047         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18048       fi
18049       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18050       hardcode_direct_GCJ=yes
18051       hardcode_minus_L_GCJ=yes
18052       hardcode_shlibpath_var_GCJ=no
18053       ;;
18054
18055     sysv4)
18056       case $host_vendor in
18057         sni)
18058           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18059           hardcode_direct_GCJ=yes # is this really true???
18060         ;;
18061         siemens)
18062           ## LD is ld it makes a PLAMLIB
18063           ## CC just makes a GrossModule.
18064           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18065           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18066           hardcode_direct_GCJ=no
18067         ;;
18068         motorola)
18069           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18070           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18071         ;;
18072       esac
18073       runpath_var='LD_RUN_PATH'
18074       hardcode_shlibpath_var_GCJ=no
18075       ;;
18076
18077     sysv4.3*)
18078       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18079       hardcode_shlibpath_var_GCJ=no
18080       export_dynamic_flag_spec_GCJ='-Bexport'
18081       ;;
18082
18083     sysv4*MP*)
18084       if test -d /usr/nec; then
18085         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18086         hardcode_shlibpath_var_GCJ=no
18087         runpath_var=LD_RUN_PATH
18088         hardcode_runpath_var=yes
18089         ld_shlibs_GCJ=yes
18090       fi
18091       ;;
18092
18093     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18094       no_undefined_flag_GCJ='${wl}-z,text'
18095       archive_cmds_need_lc_GCJ=no
18096       hardcode_shlibpath_var_GCJ=no
18097       runpath_var='LD_RUN_PATH'
18098
18099       if test "$GCC" = yes; then
18100         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18101         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18102       else
18103         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18105       fi
18106       ;;
18107
18108     sysv5* | sco3.2v5* | sco5v6*)
18109       # Note: We can NOT use -z defs as we might desire, because we do not
18110       # link with -lc, and that would cause any symbols used from libc to
18111       # always be unresolved, which means just about no library would
18112       # ever link correctly.  If we're not using GNU ld we use -z text
18113       # though, which does catch some bad symbols but isn't as heavy-handed
18114       # as -z defs.
18115       no_undefined_flag_GCJ='${wl}-z,text'
18116       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18117       archive_cmds_need_lc_GCJ=no
18118       hardcode_shlibpath_var_GCJ=no
18119       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18120       hardcode_libdir_separator_GCJ=':'
18121       link_all_deplibs_GCJ=yes
18122       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18123       runpath_var='LD_RUN_PATH'
18124
18125       if test "$GCC" = yes; then
18126         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18127         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18128       else
18129         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131       fi
18132       ;;
18133
18134     uts4*)
18135       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18136       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18137       hardcode_shlibpath_var_GCJ=no
18138       ;;
18139
18140     *)
18141       ld_shlibs_GCJ=no
18142       ;;
18143     esac
18144   fi
18145
18146 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18147 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18148 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18149
18150 #
18151 # Do we need to explicitly link libc?
18152 #
18153 case "x$archive_cmds_need_lc_GCJ" in
18154 x|xyes)
18155   # Assume -lc should be added
18156   archive_cmds_need_lc_GCJ=yes
18157
18158   if test "$enable_shared" = yes && test "$GCC" = yes; then
18159     case $archive_cmds_GCJ in
18160     *'~'*)
18161       # FIXME: we may have to deal with multi-command sequences.
18162       ;;
18163     '$CC '*)
18164       # Test whether the compiler implicitly links with -lc since on some
18165       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18166       # to ld, don't add -lc before -lgcc.
18167       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18168 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18169       $rm conftest*
18170       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18171
18172       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18173   (eval $ac_compile) 2>&5
18174   ac_status=$?
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); } 2>conftest.err; then
18177         soname=conftest
18178         lib=conftest
18179         libobjs=conftest.$ac_objext
18180         deplibs=
18181         wl=$lt_prog_compiler_wl_GCJ
18182         pic_flag=$lt_prog_compiler_pic_GCJ
18183         compiler_flags=-v
18184         linker_flags=-v
18185         verstring=
18186         output_objdir=.
18187         libname=conftest
18188         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18189         allow_undefined_flag_GCJ=
18190         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18191   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }
18195         then
18196           archive_cmds_need_lc_GCJ=no
18197         else
18198           archive_cmds_need_lc_GCJ=yes
18199         fi
18200         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18201       else
18202         cat conftest.err 1>&5
18203       fi
18204       $rm conftest*
18205       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18206 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18207       ;;
18208     esac
18209   fi
18210   ;;
18211 esac
18212
18213 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18214 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18215 library_names_spec=
18216 libname_spec='lib$name'
18217 soname_spec=
18218 shrext_cmds=".so"
18219 postinstall_cmds=
18220 postuninstall_cmds=
18221 finish_cmds=
18222 finish_eval=
18223 shlibpath_var=
18224 shlibpath_overrides_runpath=unknown
18225 version_type=none
18226 dynamic_linker="$host_os ld.so"
18227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18228
18229 need_lib_prefix=unknown
18230 hardcode_into_libs=no
18231
18232 # when you set need_version to no, make sure it does not cause -set_version
18233 # flags to be left without arguments
18234 need_version=unknown
18235
18236 case $host_os in
18237 aix3*)
18238   version_type=linux
18239   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18240   shlibpath_var=LIBPATH
18241
18242   # AIX 3 has no versioning support, so we append a major version to the name.
18243   soname_spec='${libname}${release}${shared_ext}$major'
18244   ;;
18245
18246 aix[4-9]*)
18247   version_type=linux
18248   need_lib_prefix=no
18249   need_version=no
18250   hardcode_into_libs=yes
18251   if test "$host_cpu" = ia64; then
18252     # AIX 5 supports IA64
18253     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18254     shlibpath_var=LD_LIBRARY_PATH
18255   else
18256     # With GCC up to 2.95.x, collect2 would create an import file
18257     # for dependence libraries.  The import file would start with
18258     # the line `#! .'.  This would cause the generated library to
18259     # depend on `.', always an invalid library.  This was fixed in
18260     # development snapshots of GCC prior to 3.0.
18261     case $host_os in
18262       aix4 | aix4.[01] | aix4.[01].*)
18263       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18264            echo ' yes '
18265            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18266         :
18267       else
18268         can_build_shared=no
18269       fi
18270       ;;
18271     esac
18272     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18273     # soname into executable. Probably we can add versioning support to
18274     # collect2, so additional links can be useful in future.
18275     if test "$aix_use_runtimelinking" = yes; then
18276       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18277       # instead of lib<name>.a to let people know that these are not
18278       # typical AIX shared libraries.
18279       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18280     else
18281       # We preserve .a as extension for shared libraries through AIX4.2
18282       # and later when we are not doing run time linking.
18283       library_names_spec='${libname}${release}.a $libname.a'
18284       soname_spec='${libname}${release}${shared_ext}$major'
18285     fi
18286     shlibpath_var=LIBPATH
18287   fi
18288   ;;
18289
18290 amigaos*)
18291   library_names_spec='$libname.ixlibrary $libname.a'
18292   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18293   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'
18294   ;;
18295
18296 beos*)
18297   library_names_spec='${libname}${shared_ext}'
18298   dynamic_linker="$host_os ld.so"
18299   shlibpath_var=LIBRARY_PATH
18300   ;;
18301
18302 bsdi[45]*)
18303   version_type=linux
18304   need_version=no
18305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18306   soname_spec='${libname}${release}${shared_ext}$major'
18307   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18308   shlibpath_var=LD_LIBRARY_PATH
18309   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18310   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18311   # the default ld.so.conf also contains /usr/contrib/lib and
18312   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18313   # libtool to hard-code these into programs
18314   ;;
18315
18316 cygwin* | mingw* | pw32*)
18317   version_type=windows
18318   shrext_cmds=".dll"
18319   need_version=no
18320   need_lib_prefix=no
18321
18322   case $GCC,$host_os in
18323   yes,cygwin* | yes,mingw* | yes,pw32*)
18324     library_names_spec='$libname.dll.a'
18325     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18326     postinstall_cmds='base_file=`basename \${file}`~
18327       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18328       dldir=$destdir/`dirname \$dlpath`~
18329       test -d \$dldir || mkdir -p \$dldir~
18330       $install_prog $dir/$dlname \$dldir/$dlname~
18331       chmod a+x \$dldir/$dlname'
18332     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18333       dlpath=$dir/\$dldll~
18334        $rm \$dlpath'
18335     shlibpath_overrides_runpath=yes
18336
18337     case $host_os in
18338     cygwin*)
18339       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18340       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18341       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18342       ;;
18343     mingw*)
18344       # MinGW DLLs use traditional 'lib' prefix
18345       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18346       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18347       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18348         # It is most probably a Windows format PATH printed by
18349         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18350         # path with ; separators, and with drive letters. We can handle the
18351         # drive letters (cygwin fileutils understands them), so leave them,
18352         # especially as we might pass files found there to a mingw objdump,
18353         # which wouldn't understand a cygwinified path. Ahh.
18354         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18355       else
18356         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18357       fi
18358       ;;
18359     pw32*)
18360       # pw32 DLLs use 'pw' prefix rather than 'lib'
18361       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18362       ;;
18363     esac
18364     ;;
18365
18366   *)
18367     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18368     ;;
18369   esac
18370   dynamic_linker='Win32 ld.exe'
18371   # FIXME: first we should search . and the directory the executable is in
18372   shlibpath_var=PATH
18373   ;;
18374
18375 darwin* | rhapsody*)
18376   dynamic_linker="$host_os dyld"
18377   version_type=darwin
18378   need_lib_prefix=no
18379   need_version=no
18380   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18381   soname_spec='${libname}${release}${major}$shared_ext'
18382   shlibpath_overrides_runpath=yes
18383   shlibpath_var=DYLD_LIBRARY_PATH
18384   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18385
18386   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18387   ;;
18388
18389 dgux*)
18390   version_type=linux
18391   need_lib_prefix=no
18392   need_version=no
18393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18394   soname_spec='${libname}${release}${shared_ext}$major'
18395   shlibpath_var=LD_LIBRARY_PATH
18396   ;;
18397
18398 freebsd1*)
18399   dynamic_linker=no
18400   ;;
18401
18402 freebsd* | dragonfly*)
18403   # DragonFly does not have aout.  When/if they implement a new
18404   # versioning mechanism, adjust this.
18405   if test -x /usr/bin/objformat; then
18406     objformat=`/usr/bin/objformat`
18407   else
18408     case $host_os in
18409     freebsd[123]*) objformat=aout ;;
18410     *) objformat=elf ;;
18411     esac
18412   fi
18413   version_type=freebsd-$objformat
18414   case $version_type in
18415     freebsd-elf*)
18416       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18417       need_version=no
18418       need_lib_prefix=no
18419       ;;
18420     freebsd-*)
18421       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18422       need_version=yes
18423       ;;
18424   esac
18425   shlibpath_var=LD_LIBRARY_PATH
18426   case $host_os in
18427   freebsd2*)
18428     shlibpath_overrides_runpath=yes
18429     ;;
18430   freebsd3.[01]* | freebsdelf3.[01]*)
18431     shlibpath_overrides_runpath=yes
18432     hardcode_into_libs=yes
18433     ;;
18434   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18435   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18436     shlibpath_overrides_runpath=no
18437     hardcode_into_libs=yes
18438     ;;
18439   *) # from 4.6 on, and DragonFly
18440     shlibpath_overrides_runpath=yes
18441     hardcode_into_libs=yes
18442     ;;
18443   esac
18444   ;;
18445
18446 gnu*)
18447   version_type=linux
18448   need_lib_prefix=no
18449   need_version=no
18450   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18451   soname_spec='${libname}${release}${shared_ext}$major'
18452   shlibpath_var=LD_LIBRARY_PATH
18453   hardcode_into_libs=yes
18454   ;;
18455
18456 hpux9* | hpux10* | hpux11*)
18457   # Give a soname corresponding to the major version so that dld.sl refuses to
18458   # link against other versions.
18459   version_type=sunos
18460   need_lib_prefix=no
18461   need_version=no
18462   case $host_cpu in
18463   ia64*)
18464     shrext_cmds='.so'
18465     hardcode_into_libs=yes
18466     dynamic_linker="$host_os dld.so"
18467     shlibpath_var=LD_LIBRARY_PATH
18468     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470     soname_spec='${libname}${release}${shared_ext}$major'
18471     if test "X$HPUX_IA64_MODE" = X32; then
18472       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18473     else
18474       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18475     fi
18476     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18477     ;;
18478    hppa*64*)
18479      shrext_cmds='.sl'
18480      hardcode_into_libs=yes
18481      dynamic_linker="$host_os dld.sl"
18482      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18483      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18484      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485      soname_spec='${libname}${release}${shared_ext}$major'
18486      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18487      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18488      ;;
18489    *)
18490     shrext_cmds='.sl'
18491     dynamic_linker="$host_os dld.sl"
18492     shlibpath_var=SHLIB_PATH
18493     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18494     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18495     soname_spec='${libname}${release}${shared_ext}$major'
18496     ;;
18497   esac
18498   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18499   postinstall_cmds='chmod 555 $lib'
18500   ;;
18501
18502 interix[3-9]*)
18503   version_type=linux
18504   need_lib_prefix=no
18505   need_version=no
18506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18507   soname_spec='${libname}${release}${shared_ext}$major'
18508   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18509   shlibpath_var=LD_LIBRARY_PATH
18510   shlibpath_overrides_runpath=no
18511   hardcode_into_libs=yes
18512   ;;
18513
18514 irix5* | irix6* | nonstopux*)
18515   case $host_os in
18516     nonstopux*) version_type=nonstopux ;;
18517     *)
18518         if test "$lt_cv_prog_gnu_ld" = yes; then
18519                 version_type=linux
18520         else
18521                 version_type=irix
18522         fi ;;
18523   esac
18524   need_lib_prefix=no
18525   need_version=no
18526   soname_spec='${libname}${release}${shared_ext}$major'
18527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18528   case $host_os in
18529   irix5* | nonstopux*)
18530     libsuff= shlibsuff=
18531     ;;
18532   *)
18533     case $LD in # libtool.m4 will add one of these switches to LD
18534     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18535       libsuff= shlibsuff= libmagic=32-bit;;
18536     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18537       libsuff=32 shlibsuff=N32 libmagic=N32;;
18538     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18539       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18540     *) libsuff= shlibsuff= libmagic=never-match;;
18541     esac
18542     ;;
18543   esac
18544   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18545   shlibpath_overrides_runpath=no
18546   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18547   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18548   hardcode_into_libs=yes
18549   ;;
18550
18551 # No shared lib support for Linux oldld, aout, or coff.
18552 linux*oldld* | linux*aout* | linux*coff*)
18553   dynamic_linker=no
18554   ;;
18555
18556 # This must be Linux ELF.
18557 linux* | k*bsd*-gnu)
18558   version_type=linux
18559   need_lib_prefix=no
18560   need_version=no
18561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18562   soname_spec='${libname}${release}${shared_ext}$major'
18563   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18564   shlibpath_var=LD_LIBRARY_PATH
18565   shlibpath_overrides_runpath=no
18566   # This implies no fast_install, which is unacceptable.
18567   # Some rework will be needed to allow for fast_install
18568   # before this can be enabled.
18569   hardcode_into_libs=yes
18570
18571   # Append ld.so.conf contents to the search path
18572   if test -f /etc/ld.so.conf; then
18573     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' ' '`
18574     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18575   fi
18576
18577   # We used to test for /lib/ld.so.1 and disable shared libraries on
18578   # powerpc, because MkLinux only supported shared libraries with the
18579   # GNU dynamic linker.  Since this was broken with cross compilers,
18580   # most powerpc-linux boxes support dynamic linking these days and
18581   # people can always --disable-shared, the test was removed, and we
18582   # assume the GNU/Linux dynamic linker is in use.
18583   dynamic_linker='GNU/Linux ld.so'
18584   ;;
18585
18586 netbsdelf*-gnu)
18587   version_type=linux
18588   need_lib_prefix=no
18589   need_version=no
18590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18591   soname_spec='${libname}${release}${shared_ext}$major'
18592   shlibpath_var=LD_LIBRARY_PATH
18593   shlibpath_overrides_runpath=no
18594   hardcode_into_libs=yes
18595   dynamic_linker='NetBSD ld.elf_so'
18596   ;;
18597
18598 netbsd*)
18599   version_type=sunos
18600   need_lib_prefix=no
18601   need_version=no
18602   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18603     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18604     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18605     dynamic_linker='NetBSD (a.out) ld.so'
18606   else
18607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18608     soname_spec='${libname}${release}${shared_ext}$major'
18609     dynamic_linker='NetBSD ld.elf_so'
18610   fi
18611   shlibpath_var=LD_LIBRARY_PATH
18612   shlibpath_overrides_runpath=yes
18613   hardcode_into_libs=yes
18614   ;;
18615
18616 newsos6)
18617   version_type=linux
18618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18619   shlibpath_var=LD_LIBRARY_PATH
18620   shlibpath_overrides_runpath=yes
18621   ;;
18622
18623 nto-qnx*)
18624   version_type=linux
18625   need_lib_prefix=no
18626   need_version=no
18627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628   soname_spec='${libname}${release}${shared_ext}$major'
18629   shlibpath_var=LD_LIBRARY_PATH
18630   shlibpath_overrides_runpath=yes
18631   ;;
18632
18633 openbsd*)
18634   version_type=sunos
18635   sys_lib_dlsearch_path_spec="/usr/lib"
18636   need_lib_prefix=no
18637   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18638   case $host_os in
18639     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18640     *)                         need_version=no  ;;
18641   esac
18642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18643   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18644   shlibpath_var=LD_LIBRARY_PATH
18645   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18646     case $host_os in
18647       openbsd2.[89] | openbsd2.[89].*)
18648         shlibpath_overrides_runpath=no
18649         ;;
18650       *)
18651         shlibpath_overrides_runpath=yes
18652         ;;
18653       esac
18654   else
18655     shlibpath_overrides_runpath=yes
18656   fi
18657   ;;
18658
18659 os2*)
18660   libname_spec='$name'
18661   shrext_cmds=".dll"
18662   need_lib_prefix=no
18663   library_names_spec='$libname${shared_ext} $libname.a'
18664   dynamic_linker='OS/2 ld.exe'
18665   shlibpath_var=LIBPATH
18666   ;;
18667
18668 osf3* | osf4* | osf5*)
18669   version_type=osf
18670   need_lib_prefix=no
18671   need_version=no
18672   soname_spec='${libname}${release}${shared_ext}$major'
18673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674   shlibpath_var=LD_LIBRARY_PATH
18675   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18676   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18677   ;;
18678
18679 rdos*)
18680   dynamic_linker=no
18681   ;;
18682
18683 solaris*)
18684   version_type=linux
18685   need_lib_prefix=no
18686   need_version=no
18687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18688   soname_spec='${libname}${release}${shared_ext}$major'
18689   shlibpath_var=LD_LIBRARY_PATH
18690   shlibpath_overrides_runpath=yes
18691   hardcode_into_libs=yes
18692   # ldd complains unless libraries are executable
18693   postinstall_cmds='chmod +x $lib'
18694   ;;
18695
18696 sunos4*)
18697   version_type=sunos
18698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18699   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18700   shlibpath_var=LD_LIBRARY_PATH
18701   shlibpath_overrides_runpath=yes
18702   if test "$with_gnu_ld" = yes; then
18703     need_lib_prefix=no
18704   fi
18705   need_version=yes
18706   ;;
18707
18708 sysv4 | sysv4.3*)
18709   version_type=linux
18710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18711   soname_spec='${libname}${release}${shared_ext}$major'
18712   shlibpath_var=LD_LIBRARY_PATH
18713   case $host_vendor in
18714     sni)
18715       shlibpath_overrides_runpath=no
18716       need_lib_prefix=no
18717       export_dynamic_flag_spec='${wl}-Blargedynsym'
18718       runpath_var=LD_RUN_PATH
18719       ;;
18720     siemens)
18721       need_lib_prefix=no
18722       ;;
18723     motorola)
18724       need_lib_prefix=no
18725       need_version=no
18726       shlibpath_overrides_runpath=no
18727       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18728       ;;
18729   esac
18730   ;;
18731
18732 sysv4*MP*)
18733   if test -d /usr/nec ;then
18734     version_type=linux
18735     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18736     soname_spec='$libname${shared_ext}.$major'
18737     shlibpath_var=LD_LIBRARY_PATH
18738   fi
18739   ;;
18740
18741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18742   version_type=freebsd-elf
18743   need_lib_prefix=no
18744   need_version=no
18745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18746   soname_spec='${libname}${release}${shared_ext}$major'
18747   shlibpath_var=LD_LIBRARY_PATH
18748   hardcode_into_libs=yes
18749   if test "$with_gnu_ld" = yes; then
18750     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18751     shlibpath_overrides_runpath=no
18752   else
18753     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18754     shlibpath_overrides_runpath=yes
18755     case $host_os in
18756       sco3.2v5*)
18757         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18758         ;;
18759     esac
18760   fi
18761   sys_lib_dlsearch_path_spec='/usr/lib'
18762   ;;
18763
18764 uts4*)
18765   version_type=linux
18766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18767   soname_spec='${libname}${release}${shared_ext}$major'
18768   shlibpath_var=LD_LIBRARY_PATH
18769   ;;
18770
18771 *)
18772   dynamic_linker=no
18773   ;;
18774 esac
18775 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18776 echo "${ECHO_T}$dynamic_linker" >&6; }
18777 test "$dynamic_linker" = no && can_build_shared=no
18778
18779 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18780   echo $ECHO_N "(cached) $ECHO_C" >&6
18781 else
18782   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18783 fi
18784
18785 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18786 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18787   echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18790 fi
18791
18792 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18793
18794 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18795 if test "$GCC" = yes; then
18796   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18797 fi
18798
18799 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18800 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18801 hardcode_action_GCJ=
18802 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18803    test -n "$runpath_var_GCJ" || \
18804    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18805
18806   # We can hardcode non-existant directories.
18807   if test "$hardcode_direct_GCJ" != no &&
18808      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18809      # have to relink, otherwise we might link with an installed library
18810      # when we should be linking with a yet-to-be-installed one
18811      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18812      test "$hardcode_minus_L_GCJ" != no; then
18813     # Linking always hardcodes the temporary library directory.
18814     hardcode_action_GCJ=relink
18815   else
18816     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18817     hardcode_action_GCJ=immediate
18818   fi
18819 else
18820   # We cannot hardcode anything, or else we can only hardcode existing
18821   # directories.
18822   hardcode_action_GCJ=unsupported
18823 fi
18824 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18825 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18826
18827 if test "$hardcode_action_GCJ" = relink; then
18828   # Fast installation is not supported
18829   enable_fast_install=no
18830 elif test "$shlibpath_overrides_runpath" = yes ||
18831      test "$enable_shared" = no; then
18832   # Fast installation is not necessary
18833   enable_fast_install=needless
18834 fi
18835
18836
18837 # The else clause should only fire when bootstrapping the
18838 # libtool distribution, otherwise you forgot to ship ltmain.sh
18839 # with your package, and you will get complaints that there are
18840 # no rules to generate ltmain.sh.
18841 if test -f "$ltmain"; then
18842   # See if we are running on zsh, and set the options which allow our commands through
18843   # without removal of \ escapes.
18844   if test -n "${ZSH_VERSION+set}" ; then
18845     setopt NO_GLOB_SUBST
18846   fi
18847   # Now quote all the things that may contain metacharacters while being
18848   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18849   # variables and quote the copies for generation of the libtool script.
18850   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18851     SED SHELL STRIP \
18852     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18853     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18854     deplibs_check_method reload_flag reload_cmds need_locks \
18855     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18856     lt_cv_sys_global_symbol_to_c_name_address \
18857     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18858     old_postinstall_cmds old_postuninstall_cmds \
18859     compiler_GCJ \
18860     CC_GCJ \
18861     LD_GCJ \
18862     lt_prog_compiler_wl_GCJ \
18863     lt_prog_compiler_pic_GCJ \
18864     lt_prog_compiler_static_GCJ \
18865     lt_prog_compiler_no_builtin_flag_GCJ \
18866     export_dynamic_flag_spec_GCJ \
18867     thread_safe_flag_spec_GCJ \
18868     whole_archive_flag_spec_GCJ \
18869     enable_shared_with_static_runtimes_GCJ \
18870     old_archive_cmds_GCJ \
18871     old_archive_from_new_cmds_GCJ \
18872     predep_objects_GCJ \
18873     postdep_objects_GCJ \
18874     predeps_GCJ \
18875     postdeps_GCJ \
18876     compiler_lib_search_path_GCJ \
18877     compiler_lib_search_dirs_GCJ \
18878     archive_cmds_GCJ \
18879     archive_expsym_cmds_GCJ \
18880     postinstall_cmds_GCJ \
18881     postuninstall_cmds_GCJ \
18882     old_archive_from_expsyms_cmds_GCJ \
18883     allow_undefined_flag_GCJ \
18884     no_undefined_flag_GCJ \
18885     export_symbols_cmds_GCJ \
18886     hardcode_libdir_flag_spec_GCJ \
18887     hardcode_libdir_flag_spec_ld_GCJ \
18888     hardcode_libdir_separator_GCJ \
18889     hardcode_automatic_GCJ \
18890     module_cmds_GCJ \
18891     module_expsym_cmds_GCJ \
18892     lt_cv_prog_compiler_c_o_GCJ \
18893     fix_srcfile_path_GCJ \
18894     exclude_expsyms_GCJ \
18895     include_expsyms_GCJ; do
18896
18897     case $var in
18898     old_archive_cmds_GCJ | \
18899     old_archive_from_new_cmds_GCJ | \
18900     archive_cmds_GCJ | \
18901     archive_expsym_cmds_GCJ | \
18902     module_cmds_GCJ | \
18903     module_expsym_cmds_GCJ | \
18904     old_archive_from_expsyms_cmds_GCJ | \
18905     export_symbols_cmds_GCJ | \
18906     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18907     postinstall_cmds | postuninstall_cmds | \
18908     old_postinstall_cmds | old_postuninstall_cmds | \
18909     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18910       # Double-quote double-evaled strings.
18911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18912       ;;
18913     *)
18914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18915       ;;
18916     esac
18917   done
18918
18919   case $lt_echo in
18920   *'\$0 --fallback-echo"')
18921     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18922     ;;
18923   esac
18924
18925 cfgfile="$ofile"
18926
18927   cat <<__EOF__ >> "$cfgfile"
18928 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18929
18930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18931
18932 # Shell to use when invoking shell scripts.
18933 SHELL=$lt_SHELL
18934
18935 # Whether or not to build shared libraries.
18936 build_libtool_libs=$enable_shared
18937
18938 # Whether or not to build static libraries.
18939 build_old_libs=$enable_static
18940
18941 # Whether or not to add -lc for building shared libraries.
18942 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18943
18944 # Whether or not to disallow shared libs when runtime libs are static
18945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18946
18947 # Whether or not to optimize for fast installation.
18948 fast_install=$enable_fast_install
18949
18950 # The host system.
18951 host_alias=$host_alias
18952 host=$host
18953 host_os=$host_os
18954
18955 # The build system.
18956 build_alias=$build_alias
18957 build=$build
18958 build_os=$build_os
18959
18960 # An echo program that does not interpret backslashes.
18961 echo=$lt_echo
18962
18963 # The archiver.
18964 AR=$lt_AR
18965 AR_FLAGS=$lt_AR_FLAGS
18966
18967 # A C compiler.
18968 LTCC=$lt_LTCC
18969
18970 # LTCC compiler flags.
18971 LTCFLAGS=$lt_LTCFLAGS
18972
18973 # A language-specific compiler.
18974 CC=$lt_compiler_GCJ
18975
18976 # Is the compiler the GNU C compiler?
18977 with_gcc=$GCC_GCJ
18978
18979 # An ERE matcher.
18980 EGREP=$lt_EGREP
18981
18982 # The linker used to build libraries.
18983 LD=$lt_LD_GCJ
18984
18985 # Whether we need hard or soft links.
18986 LN_S=$lt_LN_S
18987
18988 # A BSD-compatible nm program.
18989 NM=$lt_NM
18990
18991 # A symbol stripping program
18992 STRIP=$lt_STRIP
18993
18994 # Used to examine libraries when file_magic_cmd begins "file"
18995 MAGIC_CMD=$MAGIC_CMD
18996
18997 # Used on cygwin: DLL creation program.
18998 DLLTOOL="$DLLTOOL"
18999
19000 # Used on cygwin: object dumper.
19001 OBJDUMP="$OBJDUMP"
19002
19003 # Used on cygwin: assembler.
19004 AS="$AS"
19005
19006 # The name of the directory that contains temporary libtool files.
19007 objdir=$objdir
19008
19009 # How to create reloadable object files.
19010 reload_flag=$lt_reload_flag
19011 reload_cmds=$lt_reload_cmds
19012
19013 # How to pass a linker flag through the compiler.
19014 wl=$lt_lt_prog_compiler_wl_GCJ
19015
19016 # Object file suffix (normally "o").
19017 objext="$ac_objext"
19018
19019 # Old archive suffix (normally "a").
19020 libext="$libext"
19021
19022 # Shared library suffix (normally ".so").
19023 shrext_cmds='$shrext_cmds'
19024
19025 # Executable file suffix (normally "").
19026 exeext="$exeext"
19027
19028 # Additional compiler flags for building library objects.
19029 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19030 pic_mode=$pic_mode
19031
19032 # What is the maximum length of a command?
19033 max_cmd_len=$lt_cv_sys_max_cmd_len
19034
19035 # Does compiler simultaneously support -c and -o options?
19036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19037
19038 # Must we lock files when doing compilation?
19039 need_locks=$lt_need_locks
19040
19041 # Do we need the lib prefix for modules?
19042 need_lib_prefix=$need_lib_prefix
19043
19044 # Do we need a version for libraries?
19045 need_version=$need_version
19046
19047 # Whether dlopen is supported.
19048 dlopen_support=$enable_dlopen
19049
19050 # Whether dlopen of programs is supported.
19051 dlopen_self=$enable_dlopen_self
19052
19053 # Whether dlopen of statically linked programs is supported.
19054 dlopen_self_static=$enable_dlopen_self_static
19055
19056 # Compiler flag to prevent dynamic linking.
19057 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19058
19059 # Compiler flag to turn off builtin functions.
19060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19061
19062 # Compiler flag to allow reflexive dlopens.
19063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19064
19065 # Compiler flag to generate shared objects directly from archives.
19066 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19067
19068 # Compiler flag to generate thread-safe objects.
19069 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19070
19071 # Library versioning type.
19072 version_type=$version_type
19073
19074 # Format of library name prefix.
19075 libname_spec=$lt_libname_spec
19076
19077 # List of archive names.  First name is the real one, the rest are links.
19078 # The last name is the one that the linker finds with -lNAME.
19079 library_names_spec=$lt_library_names_spec
19080
19081 # The coded name of the library, if different from the real name.
19082 soname_spec=$lt_soname_spec
19083
19084 # Commands used to build and install an old-style archive.
19085 RANLIB=$lt_RANLIB
19086 old_archive_cmds=$lt_old_archive_cmds_GCJ
19087 old_postinstall_cmds=$lt_old_postinstall_cmds
19088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19089
19090 # Create an old-style archive from a shared archive.
19091 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19092
19093 # Create a temporary old-style archive to link instead of a shared archive.
19094 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19095
19096 # Commands used to build and install a shared archive.
19097 archive_cmds=$lt_archive_cmds_GCJ
19098 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19099 postinstall_cmds=$lt_postinstall_cmds
19100 postuninstall_cmds=$lt_postuninstall_cmds
19101
19102 # Commands used to build a loadable module (assumed same as above if empty)
19103 module_cmds=$lt_module_cmds_GCJ
19104 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19105
19106 # Commands to strip libraries.
19107 old_striplib=$lt_old_striplib
19108 striplib=$lt_striplib
19109
19110 # Dependencies to place before the objects being linked to create a
19111 # shared library.
19112 predep_objects=$lt_predep_objects_GCJ
19113
19114 # Dependencies to place after the objects being linked to create a
19115 # shared library.
19116 postdep_objects=$lt_postdep_objects_GCJ
19117
19118 # Dependencies to place before the objects being linked to create a
19119 # shared library.
19120 predeps=$lt_predeps_GCJ
19121
19122 # Dependencies to place after the objects being linked to create a
19123 # shared library.
19124 postdeps=$lt_postdeps_GCJ
19125
19126 # The directories searched by this compiler when creating a shared
19127 # library
19128 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19129
19130 # The library search path used internally by the compiler when linking
19131 # a shared library.
19132 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19133
19134 # Method to check whether dependent libraries are shared objects.
19135 deplibs_check_method=$lt_deplibs_check_method
19136
19137 # Command to use when deplibs_check_method == file_magic.
19138 file_magic_cmd=$lt_file_magic_cmd
19139
19140 # Flag that allows shared libraries with undefined symbols to be built.
19141 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19142
19143 # Flag that forces no undefined symbols.
19144 no_undefined_flag=$lt_no_undefined_flag_GCJ
19145
19146 # Commands used to finish a libtool library installation in a directory.
19147 finish_cmds=$lt_finish_cmds
19148
19149 # Same as above, but a single script fragment to be evaled but not shown.
19150 finish_eval=$lt_finish_eval
19151
19152 # Take the output of nm and produce a listing of raw symbols and C names.
19153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19154
19155 # Transform the output of nm in a proper C declaration
19156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19157
19158 # Transform the output of nm in a C name address pair
19159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19160
19161 # This is the shared library runtime path variable.
19162 runpath_var=$runpath_var
19163
19164 # This is the shared library path variable.
19165 shlibpath_var=$shlibpath_var
19166
19167 # Is shlibpath searched before the hard-coded library search path?
19168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19169
19170 # How to hardcode a shared library path into an executable.
19171 hardcode_action=$hardcode_action_GCJ
19172
19173 # Whether we should hardcode library paths into libraries.
19174 hardcode_into_libs=$hardcode_into_libs
19175
19176 # Flag to hardcode \$libdir into a binary during linking.
19177 # This must work even if \$libdir does not exist.
19178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19179
19180 # If ld is used when linking, flag to hardcode \$libdir into
19181 # a binary during linking. This must work even if \$libdir does
19182 # not exist.
19183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19184
19185 # Whether we need a single -rpath flag with a separated argument.
19186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19187
19188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19189 # resulting binary.
19190 hardcode_direct=$hardcode_direct_GCJ
19191
19192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19193 # resulting binary.
19194 hardcode_minus_L=$hardcode_minus_L_GCJ
19195
19196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19197 # the resulting binary.
19198 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19199
19200 # Set to yes if building a shared library automatically hardcodes DIR into the library
19201 # and all subsequent libraries and executables linked against it.
19202 hardcode_automatic=$hardcode_automatic_GCJ
19203
19204 # Variables whose values should be saved in libtool wrapper scripts and
19205 # restored at relink time.
19206 variables_saved_for_relink="$variables_saved_for_relink"
19207
19208 # Whether libtool must link a program against all its dependency libraries.
19209 link_all_deplibs=$link_all_deplibs_GCJ
19210
19211 # Compile-time system search path for libraries
19212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19213
19214 # Run-time system search path for libraries
19215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19216
19217 # Fix the shell variable \$srcfile for the compiler.
19218 fix_srcfile_path=$lt_fix_srcfile_path
19219
19220 # Set to yes if exported symbols are required.
19221 always_export_symbols=$always_export_symbols_GCJ
19222
19223 # The commands to list exported symbols.
19224 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19225
19226 # The commands to extract the exported symbol list from a shared archive.
19227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19228
19229 # Symbols that should not be listed in the preloaded symbols.
19230 exclude_expsyms=$lt_exclude_expsyms_GCJ
19231
19232 # Symbols that must always be exported.
19233 include_expsyms=$lt_include_expsyms_GCJ
19234
19235 # ### END LIBTOOL TAG CONFIG: $tagname
19236
19237 __EOF__
19238
19239
19240 else
19241   # If there is no Makefile yet, we rely on a make rule to execute
19242   # `config.status --recheck' to rerun these tests and create the
19243   # libtool script then.
19244   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19245   if test -f "$ltmain_in"; then
19246     test -f Makefile && make "$ltmain"
19247   fi
19248 fi
19249
19250
19251 ac_ext=c
19252 ac_cpp='$CPP $CPPFLAGS'
19253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19256
19257 CC="$lt_save_CC"
19258
19259         else
19260           tagname=""
19261         fi
19262         ;;
19263
19264       RC)
19265
19266
19267 # Source file extension for RC test sources.
19268 ac_ext=rc
19269
19270 # Object file extension for compiled RC test sources.
19271 objext=o
19272 objext_RC=$objext
19273
19274 # Code to be used in simple compile tests
19275 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19276
19277 # Code to be used in simple link tests
19278 lt_simple_link_test_code="$lt_simple_compile_test_code"
19279
19280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19281
19282 # If no C compiler was specified, use CC.
19283 LTCC=${LTCC-"$CC"}
19284
19285 # If no C compiler flags were specified, use CFLAGS.
19286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19287
19288 # Allow CC to be a program name with arguments.
19289 compiler=$CC
19290
19291
19292 # save warnings/boilerplate of simple test code
19293 ac_outfile=conftest.$ac_objext
19294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19296 _lt_compiler_boilerplate=`cat conftest.err`
19297 $rm conftest*
19298
19299 ac_outfile=conftest.$ac_objext
19300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19302 _lt_linker_boilerplate=`cat conftest.err`
19303 $rm -r conftest*
19304
19305
19306 # Allow CC to be a program name with arguments.
19307 lt_save_CC="$CC"
19308 CC=${RC-"windres"}
19309 compiler=$CC
19310 compiler_RC=$CC
19311 for cc_temp in $compiler""; do
19312   case $cc_temp in
19313     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19314     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19315     \-*) ;;
19316     *) break;;
19317   esac
19318 done
19319 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19320
19321 lt_cv_prog_compiler_c_o_RC=yes
19322
19323 # The else clause should only fire when bootstrapping the
19324 # libtool distribution, otherwise you forgot to ship ltmain.sh
19325 # with your package, and you will get complaints that there are
19326 # no rules to generate ltmain.sh.
19327 if test -f "$ltmain"; then
19328   # See if we are running on zsh, and set the options which allow our commands through
19329   # without removal of \ escapes.
19330   if test -n "${ZSH_VERSION+set}" ; then
19331     setopt NO_GLOB_SUBST
19332   fi
19333   # Now quote all the things that may contain metacharacters while being
19334   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19335   # variables and quote the copies for generation of the libtool script.
19336   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19337     SED SHELL STRIP \
19338     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19339     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19340     deplibs_check_method reload_flag reload_cmds need_locks \
19341     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19342     lt_cv_sys_global_symbol_to_c_name_address \
19343     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19344     old_postinstall_cmds old_postuninstall_cmds \
19345     compiler_RC \
19346     CC_RC \
19347     LD_RC \
19348     lt_prog_compiler_wl_RC \
19349     lt_prog_compiler_pic_RC \
19350     lt_prog_compiler_static_RC \
19351     lt_prog_compiler_no_builtin_flag_RC \
19352     export_dynamic_flag_spec_RC \
19353     thread_safe_flag_spec_RC \
19354     whole_archive_flag_spec_RC \
19355     enable_shared_with_static_runtimes_RC \
19356     old_archive_cmds_RC \
19357     old_archive_from_new_cmds_RC \
19358     predep_objects_RC \
19359     postdep_objects_RC \
19360     predeps_RC \
19361     postdeps_RC \
19362     compiler_lib_search_path_RC \
19363     compiler_lib_search_dirs_RC \
19364     archive_cmds_RC \
19365     archive_expsym_cmds_RC \
19366     postinstall_cmds_RC \
19367     postuninstall_cmds_RC \
19368     old_archive_from_expsyms_cmds_RC \
19369     allow_undefined_flag_RC \
19370     no_undefined_flag_RC \
19371     export_symbols_cmds_RC \
19372     hardcode_libdir_flag_spec_RC \
19373     hardcode_libdir_flag_spec_ld_RC \
19374     hardcode_libdir_separator_RC \
19375     hardcode_automatic_RC \
19376     module_cmds_RC \
19377     module_expsym_cmds_RC \
19378     lt_cv_prog_compiler_c_o_RC \
19379     fix_srcfile_path_RC \
19380     exclude_expsyms_RC \
19381     include_expsyms_RC; do
19382
19383     case $var in
19384     old_archive_cmds_RC | \
19385     old_archive_from_new_cmds_RC | \
19386     archive_cmds_RC | \
19387     archive_expsym_cmds_RC | \
19388     module_cmds_RC | \
19389     module_expsym_cmds_RC | \
19390     old_archive_from_expsyms_cmds_RC | \
19391     export_symbols_cmds_RC | \
19392     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19393     postinstall_cmds | postuninstall_cmds | \
19394     old_postinstall_cmds | old_postuninstall_cmds | \
19395     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19396       # Double-quote double-evaled strings.
19397       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19398       ;;
19399     *)
19400       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19401       ;;
19402     esac
19403   done
19404
19405   case $lt_echo in
19406   *'\$0 --fallback-echo"')
19407     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19408     ;;
19409   esac
19410
19411 cfgfile="$ofile"
19412
19413   cat <<__EOF__ >> "$cfgfile"
19414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19415
19416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19417
19418 # Shell to use when invoking shell scripts.
19419 SHELL=$lt_SHELL
19420
19421 # Whether or not to build shared libraries.
19422 build_libtool_libs=$enable_shared
19423
19424 # Whether or not to build static libraries.
19425 build_old_libs=$enable_static
19426
19427 # Whether or not to add -lc for building shared libraries.
19428 build_libtool_need_lc=$archive_cmds_need_lc_RC
19429
19430 # Whether or not to disallow shared libs when runtime libs are static
19431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19432
19433 # Whether or not to optimize for fast installation.
19434 fast_install=$enable_fast_install
19435
19436 # The host system.
19437 host_alias=$host_alias
19438 host=$host
19439 host_os=$host_os
19440
19441 # The build system.
19442 build_alias=$build_alias
19443 build=$build
19444 build_os=$build_os
19445
19446 # An echo program that does not interpret backslashes.
19447 echo=$lt_echo
19448
19449 # The archiver.
19450 AR=$lt_AR
19451 AR_FLAGS=$lt_AR_FLAGS
19452
19453 # A C compiler.
19454 LTCC=$lt_LTCC
19455
19456 # LTCC compiler flags.
19457 LTCFLAGS=$lt_LTCFLAGS
19458
19459 # A language-specific compiler.
19460 CC=$lt_compiler_RC
19461
19462 # Is the compiler the GNU C compiler?
19463 with_gcc=$GCC_RC
19464
19465 # An ERE matcher.
19466 EGREP=$lt_EGREP
19467
19468 # The linker used to build libraries.
19469 LD=$lt_LD_RC
19470
19471 # Whether we need hard or soft links.
19472 LN_S=$lt_LN_S
19473
19474 # A BSD-compatible nm program.
19475 NM=$lt_NM
19476
19477 # A symbol stripping program
19478 STRIP=$lt_STRIP
19479
19480 # Used to examine libraries when file_magic_cmd begins "file"
19481 MAGIC_CMD=$MAGIC_CMD
19482
19483 # Used on cygwin: DLL creation program.
19484 DLLTOOL="$DLLTOOL"
19485
19486 # Used on cygwin: object dumper.
19487 OBJDUMP="$OBJDUMP"
19488
19489 # Used on cygwin: assembler.
19490 AS="$AS"
19491
19492 # The name of the directory that contains temporary libtool files.
19493 objdir=$objdir
19494
19495 # How to create reloadable object files.
19496 reload_flag=$lt_reload_flag
19497 reload_cmds=$lt_reload_cmds
19498
19499 # How to pass a linker flag through the compiler.
19500 wl=$lt_lt_prog_compiler_wl_RC
19501
19502 # Object file suffix (normally "o").
19503 objext="$ac_objext"
19504
19505 # Old archive suffix (normally "a").
19506 libext="$libext"
19507
19508 # Shared library suffix (normally ".so").
19509 shrext_cmds='$shrext_cmds'
19510
19511 # Executable file suffix (normally "").
19512 exeext="$exeext"
19513
19514 # Additional compiler flags for building library objects.
19515 pic_flag=$lt_lt_prog_compiler_pic_RC
19516 pic_mode=$pic_mode
19517
19518 # What is the maximum length of a command?
19519 max_cmd_len=$lt_cv_sys_max_cmd_len
19520
19521 # Does compiler simultaneously support -c and -o options?
19522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19523
19524 # Must we lock files when doing compilation?
19525 need_locks=$lt_need_locks
19526
19527 # Do we need the lib prefix for modules?
19528 need_lib_prefix=$need_lib_prefix
19529
19530 # Do we need a version for libraries?
19531 need_version=$need_version
19532
19533 # Whether dlopen is supported.
19534 dlopen_support=$enable_dlopen
19535
19536 # Whether dlopen of programs is supported.
19537 dlopen_self=$enable_dlopen_self
19538
19539 # Whether dlopen of statically linked programs is supported.
19540 dlopen_self_static=$enable_dlopen_self_static
19541
19542 # Compiler flag to prevent dynamic linking.
19543 link_static_flag=$lt_lt_prog_compiler_static_RC
19544
19545 # Compiler flag to turn off builtin functions.
19546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19547
19548 # Compiler flag to allow reflexive dlopens.
19549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19550
19551 # Compiler flag to generate shared objects directly from archives.
19552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19553
19554 # Compiler flag to generate thread-safe objects.
19555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19556
19557 # Library versioning type.
19558 version_type=$version_type
19559
19560 # Format of library name prefix.
19561 libname_spec=$lt_libname_spec
19562
19563 # List of archive names.  First name is the real one, the rest are links.
19564 # The last name is the one that the linker finds with -lNAME.
19565 library_names_spec=$lt_library_names_spec
19566
19567 # The coded name of the library, if different from the real name.
19568 soname_spec=$lt_soname_spec
19569
19570 # Commands used to build and install an old-style archive.
19571 RANLIB=$lt_RANLIB
19572 old_archive_cmds=$lt_old_archive_cmds_RC
19573 old_postinstall_cmds=$lt_old_postinstall_cmds
19574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19575
19576 # Create an old-style archive from a shared archive.
19577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19578
19579 # Create a temporary old-style archive to link instead of a shared archive.
19580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19581
19582 # Commands used to build and install a shared archive.
19583 archive_cmds=$lt_archive_cmds_RC
19584 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19585 postinstall_cmds=$lt_postinstall_cmds
19586 postuninstall_cmds=$lt_postuninstall_cmds
19587
19588 # Commands used to build a loadable module (assumed same as above if empty)
19589 module_cmds=$lt_module_cmds_RC
19590 module_expsym_cmds=$lt_module_expsym_cmds_RC
19591
19592 # Commands to strip libraries.
19593 old_striplib=$lt_old_striplib
19594 striplib=$lt_striplib
19595
19596 # Dependencies to place before the objects being linked to create a
19597 # shared library.
19598 predep_objects=$lt_predep_objects_RC
19599
19600 # Dependencies to place after the objects being linked to create a
19601 # shared library.
19602 postdep_objects=$lt_postdep_objects_RC
19603
19604 # Dependencies to place before the objects being linked to create a
19605 # shared library.
19606 predeps=$lt_predeps_RC
19607
19608 # Dependencies to place after the objects being linked to create a
19609 # shared library.
19610 postdeps=$lt_postdeps_RC
19611
19612 # The directories searched by this compiler when creating a shared
19613 # library
19614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19615
19616 # The library search path used internally by the compiler when linking
19617 # a shared library.
19618 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19619
19620 # Method to check whether dependent libraries are shared objects.
19621 deplibs_check_method=$lt_deplibs_check_method
19622
19623 # Command to use when deplibs_check_method == file_magic.
19624 file_magic_cmd=$lt_file_magic_cmd
19625
19626 # Flag that allows shared libraries with undefined symbols to be built.
19627 allow_undefined_flag=$lt_allow_undefined_flag_RC
19628
19629 # Flag that forces no undefined symbols.
19630 no_undefined_flag=$lt_no_undefined_flag_RC
19631
19632 # Commands used to finish a libtool library installation in a directory.
19633 finish_cmds=$lt_finish_cmds
19634
19635 # Same as above, but a single script fragment to be evaled but not shown.
19636 finish_eval=$lt_finish_eval
19637
19638 # Take the output of nm and produce a listing of raw symbols and C names.
19639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19640
19641 # Transform the output of nm in a proper C declaration
19642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19643
19644 # Transform the output of nm in a C name address pair
19645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19646
19647 # This is the shared library runtime path variable.
19648 runpath_var=$runpath_var
19649
19650 # This is the shared library path variable.
19651 shlibpath_var=$shlibpath_var
19652
19653 # Is shlibpath searched before the hard-coded library search path?
19654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19655
19656 # How to hardcode a shared library path into an executable.
19657 hardcode_action=$hardcode_action_RC
19658
19659 # Whether we should hardcode library paths into libraries.
19660 hardcode_into_libs=$hardcode_into_libs
19661
19662 # Flag to hardcode \$libdir into a binary during linking.
19663 # This must work even if \$libdir does not exist.
19664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19665
19666 # If ld is used when linking, flag to hardcode \$libdir into
19667 # a binary during linking. This must work even if \$libdir does
19668 # not exist.
19669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19670
19671 # Whether we need a single -rpath flag with a separated argument.
19672 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19673
19674 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19675 # resulting binary.
19676 hardcode_direct=$hardcode_direct_RC
19677
19678 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19679 # resulting binary.
19680 hardcode_minus_L=$hardcode_minus_L_RC
19681
19682 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19683 # the resulting binary.
19684 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19685
19686 # Set to yes if building a shared library automatically hardcodes DIR into the library
19687 # and all subsequent libraries and executables linked against it.
19688 hardcode_automatic=$hardcode_automatic_RC
19689
19690 # Variables whose values should be saved in libtool wrapper scripts and
19691 # restored at relink time.
19692 variables_saved_for_relink="$variables_saved_for_relink"
19693
19694 # Whether libtool must link a program against all its dependency libraries.
19695 link_all_deplibs=$link_all_deplibs_RC
19696
19697 # Compile-time system search path for libraries
19698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19699
19700 # Run-time system search path for libraries
19701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19702
19703 # Fix the shell variable \$srcfile for the compiler.
19704 fix_srcfile_path=$lt_fix_srcfile_path
19705
19706 # Set to yes if exported symbols are required.
19707 always_export_symbols=$always_export_symbols_RC
19708
19709 # The commands to list exported symbols.
19710 export_symbols_cmds=$lt_export_symbols_cmds_RC
19711
19712 # The commands to extract the exported symbol list from a shared archive.
19713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19714
19715 # Symbols that should not be listed in the preloaded symbols.
19716 exclude_expsyms=$lt_exclude_expsyms_RC
19717
19718 # Symbols that must always be exported.
19719 include_expsyms=$lt_include_expsyms_RC
19720
19721 # ### END LIBTOOL TAG CONFIG: $tagname
19722
19723 __EOF__
19724
19725
19726 else
19727   # If there is no Makefile yet, we rely on a make rule to execute
19728   # `config.status --recheck' to rerun these tests and create the
19729   # libtool script then.
19730   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19731   if test -f "$ltmain_in"; then
19732     test -f Makefile && make "$ltmain"
19733   fi
19734 fi
19735
19736
19737 ac_ext=c
19738 ac_cpp='$CPP $CPPFLAGS'
19739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19742
19743 CC="$lt_save_CC"
19744
19745         ;;
19746
19747       *)
19748         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19749 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19750    { (exit 1); exit 1; }; }
19751         ;;
19752       esac
19753
19754       # Append the new tag name to the list of available tags.
19755       if test -n "$tagname" ; then
19756       available_tags="$available_tags $tagname"
19757     fi
19758     fi
19759   done
19760   IFS="$lt_save_ifs"
19761
19762   # Now substitute the updated list of available tags.
19763   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19764     mv "${ofile}T" "$ofile"
19765     chmod +x "$ofile"
19766   else
19767     rm -f "${ofile}T"
19768     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19769 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19770    { (exit 1); exit 1; }; }
19771   fi
19772 fi
19773
19774
19775
19776 # This can be used to rebuild libtool when needed
19777 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19778
19779 # Always use our own libtool.
19780 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19781
19782 # Prevent multiple expansion
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805 # Check whether some low-level functions/files are available
19806 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19808 if test "${ac_cv_header_stdc+set}" = set; then
19809   echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811   cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817 #include <stdlib.h>
19818 #include <stdarg.h>
19819 #include <string.h>
19820 #include <float.h>
19821
19822 int
19823 main ()
19824 {
19825
19826   ;
19827   return 0;
19828 }
19829 _ACEOF
19830 rm -f conftest.$ac_objext
19831 if { (ac_try="$ac_compile"
19832 case "(($ac_try" in
19833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834   *) ac_try_echo=$ac_try;;
19835 esac
19836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19837   (eval "$ac_compile") 2>conftest.er1
19838   ac_status=$?
19839   grep -v '^ *+' conftest.er1 >conftest.err
19840   rm -f conftest.er1
19841   cat conftest.err >&5
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); } && {
19844          test -z "$ac_c_werror_flag" ||
19845          test ! -s conftest.err
19846        } && test -s conftest.$ac_objext; then
19847   ac_cv_header_stdc=yes
19848 else
19849   echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19851
19852         ac_cv_header_stdc=no
19853 fi
19854
19855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19856
19857 if test $ac_cv_header_stdc = yes; then
19858   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19859   cat >conftest.$ac_ext <<_ACEOF
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865 #include <string.h>
19866
19867 _ACEOF
19868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19869   $EGREP "memchr" >/dev/null 2>&1; then
19870   :
19871 else
19872   ac_cv_header_stdc=no
19873 fi
19874 rm -f conftest*
19875
19876 fi
19877
19878 if test $ac_cv_header_stdc = yes; then
19879   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19880   cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h.  */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h.  */
19886 #include <stdlib.h>
19887
19888 _ACEOF
19889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19890   $EGREP "free" >/dev/null 2>&1; then
19891   :
19892 else
19893   ac_cv_header_stdc=no
19894 fi
19895 rm -f conftest*
19896
19897 fi
19898
19899 if test $ac_cv_header_stdc = yes; then
19900   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19901   if test "$cross_compiling" = yes; then
19902   :
19903 else
19904   cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910 #include <ctype.h>
19911 #include <stdlib.h>
19912 #if ((' ' & 0x0FF) == 0x020)
19913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19915 #else
19916 # define ISLOWER(c) \
19917                    (('a' <= (c) && (c) <= 'i') \
19918                      || ('j' <= (c) && (c) <= 'r') \
19919                      || ('s' <= (c) && (c) <= 'z'))
19920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19921 #endif
19922
19923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19924 int
19925 main ()
19926 {
19927   int i;
19928   for (i = 0; i < 256; i++)
19929     if (XOR (islower (i), ISLOWER (i))
19930         || toupper (i) != TOUPPER (i))
19931       return 2;
19932   return 0;
19933 }
19934 _ACEOF
19935 rm -f conftest$ac_exeext
19936 if { (ac_try="$ac_link"
19937 case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_link") 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19952   ac_status=$?
19953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954   (exit $ac_status); }; }; then
19955   :
19956 else
19957   echo "$as_me: program exited with status $ac_status" >&5
19958 echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 ( exit $ac_status )
19962 ac_cv_header_stdc=no
19963 fi
19964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19965 fi
19966
19967
19968 fi
19969 fi
19970 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19971 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19972 if test $ac_cv_header_stdc = yes; then
19973
19974 cat >>confdefs.h <<\_ACEOF
19975 #define STDC_HEADERS 1
19976 _ACEOF
19977
19978 fi
19979
19980
19981 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19982 if test "${ac_cv_header_stdint_h+set}" = set; then
19983   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19984 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19985 if test "${ac_cv_header_stdint_h+set}" = set; then
19986   echo $ECHO_N "(cached) $ECHO_C" >&6
19987 fi
19988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19989 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19990 else
19991   # Is the header compilable?
19992 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
19993 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
19994 cat >conftest.$ac_ext <<_ACEOF
19995 /* confdefs.h.  */
19996 _ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h.  */
20000 $ac_includes_default
20001 #include <stdint.h>
20002 _ACEOF
20003 rm -f conftest.$ac_objext
20004 if { (ac_try="$ac_compile"
20005 case "(($ac_try" in
20006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007   *) ac_try_echo=$ac_try;;
20008 esac
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010   (eval "$ac_compile") 2>conftest.er1
20011   ac_status=$?
20012   grep -v '^ *+' conftest.er1 >conftest.err
20013   rm -f conftest.er1
20014   cat conftest.err >&5
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); } && {
20017          test -z "$ac_c_werror_flag" ||
20018          test ! -s conftest.err
20019        } && test -s conftest.$ac_objext; then
20020   ac_header_compiler=yes
20021 else
20022   echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025         ac_header_compiler=no
20026 fi
20027
20028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20030 echo "${ECHO_T}$ac_header_compiler" >&6; }
20031
20032 # Is the header present?
20033 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20034 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20035 cat >conftest.$ac_ext <<_ACEOF
20036 /* confdefs.h.  */
20037 _ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h.  */
20041 #include <stdint.h>
20042 _ACEOF
20043 if { (ac_try="$ac_cpp conftest.$ac_ext"
20044 case "(($ac_try" in
20045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046   *) ac_try_echo=$ac_try;;
20047 esac
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20050   ac_status=$?
20051   grep -v '^ *+' conftest.er1 >conftest.err
20052   rm -f conftest.er1
20053   cat conftest.err >&5
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); } >/dev/null && {
20056          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20057          test ! -s conftest.err
20058        }; then
20059   ac_header_preproc=yes
20060 else
20061   echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064   ac_header_preproc=no
20065 fi
20066
20067 rm -f conftest.err conftest.$ac_ext
20068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20069 echo "${ECHO_T}$ac_header_preproc" >&6; }
20070
20071 # So?  What about this header?
20072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20073   yes:no: )
20074     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20075 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20076     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20077 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20078     ac_header_preproc=yes
20079     ;;
20080   no:yes:* )
20081     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20082 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20083     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20084 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20085     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20086 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20087     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20088 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20089     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20090 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20091     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20092 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20093     ( cat <<\_ASBOX
20094 ## ------------------------------------ ##
20095 ## Report this to opensource@google.com ##
20096 ## ------------------------------------ ##
20097 _ASBOX
20098      ) | sed "s/^/$as_me: WARNING:     /" >&2
20099     ;;
20100 esac
20101 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20102 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20103 if test "${ac_cv_header_stdint_h+set}" = set; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106   ac_cv_header_stdint_h=$ac_header_preproc
20107 fi
20108 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20109 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20110
20111 fi
20112 if test $ac_cv_header_stdint_h = yes; then
20113   ac_cv_have_stdint_h=1
20114 else
20115   ac_cv_have_stdint_h=0
20116 fi
20117
20118
20119 if test "${ac_cv_header_sys_types_h+set}" = set; then
20120   { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20121 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20122 if test "${ac_cv_header_sys_types_h+set}" = set; then
20123   echo $ECHO_N "(cached) $ECHO_C" >&6
20124 fi
20125 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20126 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20127 else
20128   # Is the header compilable?
20129 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20130 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137 $ac_includes_default
20138 #include <sys/types.h>
20139 _ACEOF
20140 rm -f conftest.$ac_objext
20141 if { (ac_try="$ac_compile"
20142 case "(($ac_try" in
20143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144   *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147   (eval "$ac_compile") 2>conftest.er1
20148   ac_status=$?
20149   grep -v '^ *+' conftest.er1 >conftest.err
20150   rm -f conftest.er1
20151   cat conftest.err >&5
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); } && {
20154          test -z "$ac_c_werror_flag" ||
20155          test ! -s conftest.err
20156        } && test -s conftest.$ac_objext; then
20157   ac_header_compiler=yes
20158 else
20159   echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20161
20162         ac_header_compiler=no
20163 fi
20164
20165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20167 echo "${ECHO_T}$ac_header_compiler" >&6; }
20168
20169 # Is the header present?
20170 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20171 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20172 cat >conftest.$ac_ext <<_ACEOF
20173 /* confdefs.h.  */
20174 _ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h.  */
20178 #include <sys/types.h>
20179 _ACEOF
20180 if { (ac_try="$ac_cpp conftest.$ac_ext"
20181 case "(($ac_try" in
20182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183   *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20187   ac_status=$?
20188   grep -v '^ *+' conftest.er1 >conftest.err
20189   rm -f conftest.er1
20190   cat conftest.err >&5
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); } >/dev/null && {
20193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20194          test ! -s conftest.err
20195        }; then
20196   ac_header_preproc=yes
20197 else
20198   echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20200
20201   ac_header_preproc=no
20202 fi
20203
20204 rm -f conftest.err conftest.$ac_ext
20205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20206 echo "${ECHO_T}$ac_header_preproc" >&6; }
20207
20208 # So?  What about this header?
20209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20210   yes:no: )
20211     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20212 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20213     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20214 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20215     ac_header_preproc=yes
20216     ;;
20217   no:yes:* )
20218     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20219 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20220     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20221 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20222     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20223 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20224     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20225 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20226     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20227 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20228     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20229 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20230     ( cat <<\_ASBOX
20231 ## ------------------------------------ ##
20232 ## Report this to opensource@google.com ##
20233 ## ------------------------------------ ##
20234 _ASBOX
20235      ) | sed "s/^/$as_me: WARNING:     /" >&2
20236     ;;
20237 esac
20238 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20239 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20240 if test "${ac_cv_header_sys_types_h+set}" = set; then
20241   echo $ECHO_N "(cached) $ECHO_C" >&6
20242 else
20243   ac_cv_header_sys_types_h=$ac_header_preproc
20244 fi
20245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20246 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20247
20248 fi
20249 if test $ac_cv_header_sys_types_h = yes; then
20250   ac_cv_have_systypes_h=1
20251 else
20252   ac_cv_have_systypes_h=0
20253 fi
20254
20255
20256 if test "${ac_cv_header_inttypes_h+set}" = set; then
20257   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20258 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20259 if test "${ac_cv_header_inttypes_h+set}" = set; then
20260   echo $ECHO_N "(cached) $ECHO_C" >&6
20261 fi
20262 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20263 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20264 else
20265   # Is the header compilable?
20266 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20267 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20268 cat >conftest.$ac_ext <<_ACEOF
20269 /* confdefs.h.  */
20270 _ACEOF
20271 cat confdefs.h >>conftest.$ac_ext
20272 cat >>conftest.$ac_ext <<_ACEOF
20273 /* end confdefs.h.  */
20274 $ac_includes_default
20275 #include <inttypes.h>
20276 _ACEOF
20277 rm -f conftest.$ac_objext
20278 if { (ac_try="$ac_compile"
20279 case "(($ac_try" in
20280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281   *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284   (eval "$ac_compile") 2>conftest.er1
20285   ac_status=$?
20286   grep -v '^ *+' conftest.er1 >conftest.err
20287   rm -f conftest.er1
20288   cat conftest.err >&5
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); } && {
20291          test -z "$ac_c_werror_flag" ||
20292          test ! -s conftest.err
20293        } && test -s conftest.$ac_objext; then
20294   ac_header_compiler=yes
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299         ac_header_compiler=no
20300 fi
20301
20302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20304 echo "${ECHO_T}$ac_header_compiler" >&6; }
20305
20306 # Is the header present?
20307 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20308 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20315 #include <inttypes.h>
20316 _ACEOF
20317 if { (ac_try="$ac_cpp conftest.$ac_ext"
20318 case "(($ac_try" in
20319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20320   *) ac_try_echo=$ac_try;;
20321 esac
20322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20324   ac_status=$?
20325   grep -v '^ *+' conftest.er1 >conftest.err
20326   rm -f conftest.er1
20327   cat conftest.err >&5
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } >/dev/null && {
20330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20331          test ! -s conftest.err
20332        }; then
20333   ac_header_preproc=yes
20334 else
20335   echo "$as_me: failed program was:" >&5
20336 sed 's/^/| /' conftest.$ac_ext >&5
20337
20338   ac_header_preproc=no
20339 fi
20340
20341 rm -f conftest.err conftest.$ac_ext
20342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20343 echo "${ECHO_T}$ac_header_preproc" >&6; }
20344
20345 # So?  What about this header?
20346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20347   yes:no: )
20348     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20349 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20350     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20351 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20352     ac_header_preproc=yes
20353     ;;
20354   no:yes:* )
20355     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20356 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20357     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20358 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20359     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20360 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20361     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20362 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20363     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20364 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20365     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20366 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20367     ( cat <<\_ASBOX
20368 ## ------------------------------------ ##
20369 ## Report this to opensource@google.com ##
20370 ## ------------------------------------ ##
20371 _ASBOX
20372      ) | sed "s/^/$as_me: WARNING:     /" >&2
20373     ;;
20374 esac
20375 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20376 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20377 if test "${ac_cv_header_inttypes_h+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380   ac_cv_header_inttypes_h=$ac_header_preproc
20381 fi
20382 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20383 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20384
20385 fi
20386 if test $ac_cv_header_inttypes_h = yes; then
20387   ac_cv_have_inttypes_h=1
20388 else
20389   ac_cv_have_inttypes_h=0
20390 fi
20391
20392
20393
20394 for ac_header in syscall.h
20395 do
20396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20398   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 fi
20403 ac_res=`eval echo '${'$as_ac_Header'}'`
20404                { echo "$as_me:$LINENO: result: $ac_res" >&5
20405 echo "${ECHO_T}$ac_res" >&6; }
20406 else
20407   # Is the header compilable?
20408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20410 cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 $ac_includes_default
20417 #include <$ac_header>
20418 _ACEOF
20419 rm -f conftest.$ac_objext
20420 if { (ac_try="$ac_compile"
20421 case "(($ac_try" in
20422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423   *) ac_try_echo=$ac_try;;
20424 esac
20425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20426   (eval "$ac_compile") 2>conftest.er1
20427   ac_status=$?
20428   grep -v '^ *+' conftest.er1 >conftest.err
20429   rm -f conftest.er1
20430   cat conftest.err >&5
20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432   (exit $ac_status); } && {
20433          test -z "$ac_c_werror_flag" ||
20434          test ! -s conftest.err
20435        } && test -s conftest.$ac_objext; then
20436   ac_header_compiler=yes
20437 else
20438   echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441         ac_header_compiler=no
20442 fi
20443
20444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20446 echo "${ECHO_T}$ac_header_compiler" >&6; }
20447
20448 # Is the header present?
20449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h.  */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h.  */
20457 #include <$ac_header>
20458 _ACEOF
20459 if { (ac_try="$ac_cpp conftest.$ac_ext"
20460 case "(($ac_try" in
20461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462   *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } >/dev/null && {
20472          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20473          test ! -s conftest.err
20474        }; then
20475   ac_header_preproc=yes
20476 else
20477   echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20479
20480   ac_header_preproc=no
20481 fi
20482
20483 rm -f conftest.err conftest.$ac_ext
20484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20485 echo "${ECHO_T}$ac_header_preproc" >&6; }
20486
20487 # So?  What about this header?
20488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20489   yes:no: )
20490     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20494     ac_header_preproc=yes
20495     ;;
20496   no:yes:* )
20497     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20499     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20500 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20501     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20503     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20504 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20507     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20509     ( cat <<\_ASBOX
20510 ## ------------------------------------ ##
20511 ## Report this to opensource@google.com ##
20512 ## ------------------------------------ ##
20513 _ASBOX
20514      ) | sed "s/^/$as_me: WARNING:     /" >&2
20515     ;;
20516 esac
20517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20520   echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522   eval "$as_ac_Header=\$ac_header_preproc"
20523 fi
20524 ac_res=`eval echo '${'$as_ac_Header'}'`
20525                { echo "$as_me:$LINENO: result: $ac_res" >&5
20526 echo "${ECHO_T}$ac_res" >&6; }
20527
20528 fi
20529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530   cat >>confdefs.h <<_ACEOF
20531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20532 _ACEOF
20533
20534 fi
20535
20536 done
20537
20538
20539 for ac_header in sys/syscall.h
20540 do
20541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20543   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20546   echo $ECHO_N "(cached) $ECHO_C" >&6
20547 fi
20548 ac_res=`eval echo '${'$as_ac_Header'}'`
20549                { echo "$as_me:$LINENO: result: $ac_res" >&5
20550 echo "${ECHO_T}$ac_res" >&6; }
20551 else
20552   # Is the header compilable?
20553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h.  */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h.  */
20561 $ac_includes_default
20562 #include <$ac_header>
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (ac_try="$ac_compile"
20566 case "(($ac_try" in
20567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568   *) ac_try_echo=$ac_try;;
20569 esac
20570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20571   (eval "$ac_compile") 2>conftest.er1
20572   ac_status=$?
20573   grep -v '^ *+' conftest.er1 >conftest.err
20574   rm -f conftest.er1
20575   cat conftest.err >&5
20576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577   (exit $ac_status); } && {
20578          test -z "$ac_c_werror_flag" ||
20579          test ! -s conftest.err
20580        } && test -s conftest.$ac_objext; then
20581   ac_header_compiler=yes
20582 else
20583   echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20585
20586         ac_header_compiler=no
20587 fi
20588
20589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20591 echo "${ECHO_T}$ac_header_compiler" >&6; }
20592
20593 # Is the header present?
20594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20596 cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h.  */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h.  */
20602 #include <$ac_header>
20603 _ACEOF
20604 if { (ac_try="$ac_cpp conftest.$ac_ext"
20605 case "(($ac_try" in
20606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20607   *) ac_try_echo=$ac_try;;
20608 esac
20609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20610   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20611   ac_status=$?
20612   grep -v '^ *+' conftest.er1 >conftest.err
20613   rm -f conftest.er1
20614   cat conftest.err >&5
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); } >/dev/null && {
20617          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20618          test ! -s conftest.err
20619        }; then
20620   ac_header_preproc=yes
20621 else
20622   echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20624
20625   ac_header_preproc=no
20626 fi
20627
20628 rm -f conftest.err conftest.$ac_ext
20629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20630 echo "${ECHO_T}$ac_header_preproc" >&6; }
20631
20632 # So?  What about this header?
20633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20634   yes:no: )
20635     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20639     ac_header_preproc=yes
20640     ;;
20641   no:yes:* )
20642     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20644     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20645 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20646     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20648     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20649 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20652     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20654     ( cat <<\_ASBOX
20655 ## ------------------------------------ ##
20656 ## Report this to opensource@google.com ##
20657 ## ------------------------------------ ##
20658 _ASBOX
20659      ) | sed "s/^/$as_me: WARNING:     /" >&2
20660     ;;
20661 esac
20662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667   eval "$as_ac_Header=\$ac_header_preproc"
20668 fi
20669 ac_res=`eval echo '${'$as_ac_Header'}'`
20670                { echo "$as_me:$LINENO: result: $ac_res" >&5
20671 echo "${ECHO_T}$ac_res" >&6; }
20672
20673 fi
20674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20675   cat >>confdefs.h <<_ACEOF
20676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20677 _ACEOF
20678
20679 fi
20680
20681 done
20682
20683 # For backtrace with glibc.
20684
20685 for ac_header in execinfo.h
20686 do
20687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20689   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20692   echo $ECHO_N "(cached) $ECHO_C" >&6
20693 fi
20694 ac_res=`eval echo '${'$as_ac_Header'}'`
20695                { echo "$as_me:$LINENO: result: $ac_res" >&5
20696 echo "${ECHO_T}$ac_res" >&6; }
20697 else
20698   # Is the header compilable?
20699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20701 cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h.  */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h.  */
20707 $ac_includes_default
20708 #include <$ac_header>
20709 _ACEOF
20710 rm -f conftest.$ac_objext
20711 if { (ac_try="$ac_compile"
20712 case "(($ac_try" in
20713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20714   *) ac_try_echo=$ac_try;;
20715 esac
20716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20717   (eval "$ac_compile") 2>conftest.er1
20718   ac_status=$?
20719   grep -v '^ *+' conftest.er1 >conftest.err
20720   rm -f conftest.er1
20721   cat conftest.err >&5
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); } && {
20724          test -z "$ac_c_werror_flag" ||
20725          test ! -s conftest.err
20726        } && test -s conftest.$ac_objext; then
20727   ac_header_compiler=yes
20728 else
20729   echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20731
20732         ac_header_compiler=no
20733 fi
20734
20735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20737 echo "${ECHO_T}$ac_header_compiler" >&6; }
20738
20739 # Is the header present?
20740 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20741 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748 #include <$ac_header>
20749 _ACEOF
20750 if { (ac_try="$ac_cpp conftest.$ac_ext"
20751 case "(($ac_try" in
20752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753   *) ac_try_echo=$ac_try;;
20754 esac
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20757   ac_status=$?
20758   grep -v '^ *+' conftest.er1 >conftest.err
20759   rm -f conftest.er1
20760   cat conftest.err >&5
20761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762   (exit $ac_status); } >/dev/null && {
20763          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20764          test ! -s conftest.err
20765        }; then
20766   ac_header_preproc=yes
20767 else
20768   echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20770
20771   ac_header_preproc=no
20772 fi
20773
20774 rm -f conftest.err conftest.$ac_ext
20775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20776 echo "${ECHO_T}$ac_header_preproc" >&6; }
20777
20778 # So?  What about this header?
20779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20780   yes:no: )
20781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20785     ac_header_preproc=yes
20786     ;;
20787   no:yes:* )
20788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20800     ( cat <<\_ASBOX
20801 ## ------------------------------------ ##
20802 ## Report this to opensource@google.com ##
20803 ## ------------------------------------ ##
20804 _ASBOX
20805      ) | sed "s/^/$as_me: WARNING:     /" >&2
20806     ;;
20807 esac
20808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20811   echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813   eval "$as_ac_Header=\$ac_header_preproc"
20814 fi
20815 ac_res=`eval echo '${'$as_ac_Header'}'`
20816                { echo "$as_me:$LINENO: result: $ac_res" >&5
20817 echo "${ECHO_T}$ac_res" >&6; }
20818
20819 fi
20820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20821   cat >>confdefs.h <<_ACEOF
20822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20823 _ACEOF
20824
20825 fi
20826
20827 done
20828
20829 # For backtrace with libunwind.
20830
20831 for ac_header in libunwind.h
20832 do
20833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20838   echo $ECHO_N "(cached) $ECHO_C" >&6
20839 fi
20840 ac_res=`eval echo '${'$as_ac_Header'}'`
20841                { echo "$as_me:$LINENO: result: $ac_res" >&5
20842 echo "${ECHO_T}$ac_res" >&6; }
20843 else
20844   # Is the header compilable?
20845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20847 cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h.  */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h.  */
20853 $ac_includes_default
20854 #include <$ac_header>
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860   *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863   (eval "$ac_compile") 2>conftest.er1
20864   ac_status=$?
20865   grep -v '^ *+' conftest.er1 >conftest.err
20866   rm -f conftest.er1
20867   cat conftest.err >&5
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); } && {
20870          test -z "$ac_c_werror_flag" ||
20871          test ! -s conftest.err
20872        } && test -s conftest.$ac_objext; then
20873   ac_header_compiler=yes
20874 else
20875   echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20877
20878         ac_header_compiler=no
20879 fi
20880
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20883 echo "${ECHO_T}$ac_header_compiler" >&6; }
20884
20885 # Is the header present?
20886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20888 cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h.  */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h.  */
20894 #include <$ac_header>
20895 _ACEOF
20896 if { (ac_try="$ac_cpp conftest.$ac_ext"
20897 case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20903   ac_status=$?
20904   grep -v '^ *+' conftest.er1 >conftest.err
20905   rm -f conftest.er1
20906   cat conftest.err >&5
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); } >/dev/null && {
20909          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20910          test ! -s conftest.err
20911        }; then
20912   ac_header_preproc=yes
20913 else
20914   echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20916
20917   ac_header_preproc=no
20918 fi
20919
20920 rm -f conftest.err conftest.$ac_ext
20921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20922 echo "${ECHO_T}$ac_header_preproc" >&6; }
20923
20924 # So?  What about this header?
20925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20926   yes:no: )
20927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20931     ac_header_preproc=yes
20932     ;;
20933   no:yes:* )
20934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20946     ( cat <<\_ASBOX
20947 ## ------------------------------------ ##
20948 ## Report this to opensource@google.com ##
20949 ## ------------------------------------ ##
20950 _ASBOX
20951      ) | sed "s/^/$as_me: WARNING:     /" >&2
20952     ;;
20953 esac
20954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20957   echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959   eval "$as_ac_Header=\$ac_header_preproc"
20960 fi
20961 ac_res=`eval echo '${'$as_ac_Header'}'`
20962                { echo "$as_me:$LINENO: result: $ac_res" >&5
20963 echo "${ECHO_T}$ac_res" >&6; }
20964
20965 fi
20966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20967   cat >>confdefs.h <<_ACEOF
20968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20969 _ACEOF
20970  ac_cv_have_libunwind_h=1
20971 else
20972   ac_cv_have_libunwind_h=0
20973 fi
20974
20975 done
20976
20977
20978 for ac_header in ucontext.h
20979 do
20980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20982   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20985   echo $ECHO_N "(cached) $ECHO_C" >&6
20986 fi
20987 ac_res=`eval echo '${'$as_ac_Header'}'`
20988                { echo "$as_me:$LINENO: result: $ac_res" >&5
20989 echo "${ECHO_T}$ac_res" >&6; }
20990 else
20991   # Is the header compilable?
20992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h.  */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h.  */
21000 $ac_includes_default
21001 #include <$ac_header>
21002 _ACEOF
21003 rm -f conftest.$ac_objext
21004 if { (ac_try="$ac_compile"
21005 case "(($ac_try" in
21006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007   *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010   (eval "$ac_compile") 2>conftest.er1
21011   ac_status=$?
21012   grep -v '^ *+' conftest.er1 >conftest.err
21013   rm -f conftest.er1
21014   cat conftest.err >&5
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); } && {
21017          test -z "$ac_c_werror_flag" ||
21018          test ! -s conftest.err
21019        } && test -s conftest.$ac_objext; then
21020   ac_header_compiler=yes
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025         ac_header_compiler=no
21026 fi
21027
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21030 echo "${ECHO_T}$ac_header_compiler" >&6; }
21031
21032 # Is the header present?
21033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h.  */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h.  */
21041 #include <$ac_header>
21042 _ACEOF
21043 if { (ac_try="$ac_cpp conftest.$ac_ext"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } >/dev/null && {
21056          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21057          test ! -s conftest.err
21058        }; then
21059   ac_header_preproc=yes
21060 else
21061   echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064   ac_header_preproc=no
21065 fi
21066
21067 rm -f conftest.err conftest.$ac_ext
21068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21069 echo "${ECHO_T}$ac_header_preproc" >&6; }
21070
21071 # So?  What about this header?
21072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21073   yes:no: )
21074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21078     ac_header_preproc=yes
21079     ;;
21080   no:yes:* )
21081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21093     ( cat <<\_ASBOX
21094 ## ------------------------------------ ##
21095 ## Report this to opensource@google.com ##
21096 ## ------------------------------------ ##
21097 _ASBOX
21098      ) | sed "s/^/$as_me: WARNING:     /" >&2
21099     ;;
21100 esac
21101 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21104   echo $ECHO_N "(cached) $ECHO_C" >&6
21105 else
21106   eval "$as_ac_Header=\$ac_header_preproc"
21107 fi
21108 ac_res=`eval echo '${'$as_ac_Header'}'`
21109                { echo "$as_me:$LINENO: result: $ac_res" >&5
21110 echo "${ECHO_T}$ac_res" >&6; }
21111
21112 fi
21113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21114   cat >>confdefs.h <<_ACEOF
21115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21116 _ACEOF
21117
21118 fi
21119
21120 done
21121
21122
21123 { echo "$as_me:$LINENO: checking for void *" >&5
21124 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
21125 if test "${ac_cv_type_void_p+set}" = set; then
21126   echo $ECHO_N "(cached) $ECHO_C" >&6
21127 else
21128   cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h.  */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h.  */
21134 $ac_includes_default
21135 typedef void * ac__type_new_;
21136 int
21137 main ()
21138 {
21139 if ((ac__type_new_ *) 0)
21140   return 0;
21141 if (sizeof (ac__type_new_))
21142   return 0;
21143   ;
21144   return 0;
21145 }
21146 _ACEOF
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151   *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154   (eval "$ac_compile") 2>conftest.er1
21155   ac_status=$?
21156   grep -v '^ *+' conftest.er1 >conftest.err
21157   rm -f conftest.er1
21158   cat conftest.err >&5
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); } && {
21161          test -z "$ac_c_werror_flag" ||
21162          test ! -s conftest.err
21163        } && test -s conftest.$ac_objext; then
21164   ac_cv_type_void_p=yes
21165 else
21166   echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169         ac_cv_type_void_p=no
21170 fi
21171
21172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 fi
21174 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21175 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21176
21177 # The cast to long int works around a bug in the HP C Compiler
21178 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21179 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21180 # This bug is HP SR number 8606223364.
21181 { echo "$as_me:$LINENO: checking size of void *" >&5
21182 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21183 if test "${ac_cv_sizeof_void_p+set}" = set; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186   if test "$cross_compiling" = yes; then
21187   # Depending upon the size, compute the lo and hi bounds.
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h.  */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h.  */
21194 $ac_includes_default
21195    typedef void * ac__type_sizeof_;
21196 int
21197 main ()
21198 {
21199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21200 test_array [0] = 0
21201
21202   ;
21203   return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_compile") 2>conftest.er1
21214   ac_status=$?
21215   grep -v '^ *+' conftest.er1 >conftest.err
21216   rm -f conftest.er1
21217   cat conftest.err >&5
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } && {
21220          test -z "$ac_c_werror_flag" ||
21221          test ! -s conftest.err
21222        } && test -s conftest.$ac_objext; then
21223   ac_lo=0 ac_mid=0
21224   while :; do
21225     cat >conftest.$ac_ext <<_ACEOF
21226 /* confdefs.h.  */
21227 _ACEOF
21228 cat confdefs.h >>conftest.$ac_ext
21229 cat >>conftest.$ac_ext <<_ACEOF
21230 /* end confdefs.h.  */
21231 $ac_includes_default
21232    typedef void * ac__type_sizeof_;
21233 int
21234 main ()
21235 {
21236 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21237 test_array [0] = 0
21238
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (ac_try="$ac_compile"
21245 case "(($ac_try" in
21246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247   *) ac_try_echo=$ac_try;;
21248 esac
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250   (eval "$ac_compile") 2>conftest.er1
21251   ac_status=$?
21252   grep -v '^ *+' conftest.er1 >conftest.err
21253   rm -f conftest.er1
21254   cat conftest.err >&5
21255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256   (exit $ac_status); } && {
21257          test -z "$ac_c_werror_flag" ||
21258          test ! -s conftest.err
21259        } && test -s conftest.$ac_objext; then
21260   ac_hi=$ac_mid; break
21261 else
21262   echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.$ac_ext >&5
21264
21265         ac_lo=`expr $ac_mid + 1`
21266                         if test $ac_lo -le $ac_mid; then
21267                           ac_lo= ac_hi=
21268                           break
21269                         fi
21270                         ac_mid=`expr 2 '*' $ac_mid + 1`
21271 fi
21272
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274   done
21275 else
21276   echo "$as_me: failed program was:" >&5
21277 sed 's/^/| /' conftest.$ac_ext >&5
21278
21279         cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h.  */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h.  */
21285 $ac_includes_default
21286    typedef void * ac__type_sizeof_;
21287 int
21288 main ()
21289 {
21290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21291 test_array [0] = 0
21292
21293   ;
21294   return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext
21298 if { (ac_try="$ac_compile"
21299 case "(($ac_try" in
21300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301   *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304   (eval "$ac_compile") 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } && {
21311          test -z "$ac_c_werror_flag" ||
21312          test ! -s conftest.err
21313        } && test -s conftest.$ac_objext; then
21314   ac_hi=-1 ac_mid=-1
21315   while :; do
21316     cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322 $ac_includes_default
21323    typedef void * ac__type_sizeof_;
21324 int
21325 main ()
21326 {
21327 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21328 test_array [0] = 0
21329
21330   ;
21331   return 0;
21332 }
21333 _ACEOF
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338   *) ac_try_echo=$ac_try;;
21339 esac
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341   (eval "$ac_compile") 2>conftest.er1
21342   ac_status=$?
21343   grep -v '^ *+' conftest.er1 >conftest.err
21344   rm -f conftest.er1
21345   cat conftest.err >&5
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } && {
21348          test -z "$ac_c_werror_flag" ||
21349          test ! -s conftest.err
21350        } && test -s conftest.$ac_objext; then
21351   ac_lo=$ac_mid; break
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356         ac_hi=`expr '(' $ac_mid ')' - 1`
21357                         if test $ac_mid -le $ac_hi; then
21358                           ac_lo= ac_hi=
21359                           break
21360                         fi
21361                         ac_mid=`expr 2 '*' $ac_mid`
21362 fi
21363
21364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21365   done
21366 else
21367   echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21369
21370         ac_lo= ac_hi=
21371 fi
21372
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21374 fi
21375
21376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21377 # Binary search between lo and hi bounds.
21378 while test "x$ac_lo" != "x$ac_hi"; do
21379   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21380   cat >conftest.$ac_ext <<_ACEOF
21381 /* confdefs.h.  */
21382 _ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h.  */
21386 $ac_includes_default
21387    typedef void * ac__type_sizeof_;
21388 int
21389 main ()
21390 {
21391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21392 test_array [0] = 0
21393
21394   ;
21395   return 0;
21396 }
21397 _ACEOF
21398 rm -f conftest.$ac_objext
21399 if { (ac_try="$ac_compile"
21400 case "(($ac_try" in
21401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21402   *) ac_try_echo=$ac_try;;
21403 esac
21404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21405   (eval "$ac_compile") 2>conftest.er1
21406   ac_status=$?
21407   grep -v '^ *+' conftest.er1 >conftest.err
21408   rm -f conftest.er1
21409   cat conftest.err >&5
21410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411   (exit $ac_status); } && {
21412          test -z "$ac_c_werror_flag" ||
21413          test ! -s conftest.err
21414        } && test -s conftest.$ac_objext; then
21415   ac_hi=$ac_mid
21416 else
21417   echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21419
21420         ac_lo=`expr '(' $ac_mid ')' + 1`
21421 fi
21422
21423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21424 done
21425 case $ac_lo in
21426 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21427 '') if test "$ac_cv_type_void_p" = yes; then
21428      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21429 See \`config.log' for more details." >&5
21430 echo "$as_me: error: cannot compute sizeof (void *)
21431 See \`config.log' for more details." >&2;}
21432    { (exit 77); exit 77; }; }
21433    else
21434      ac_cv_sizeof_void_p=0
21435    fi ;;
21436 esac
21437 else
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    typedef void * ac__type_sizeof_;
21446 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21447 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21448 #include <stdio.h>
21449 #include <stdlib.h>
21450 int
21451 main ()
21452 {
21453
21454   FILE *f = fopen ("conftest.val", "w");
21455   if (! f)
21456     return 1;
21457   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21458     {
21459       long int i = longval ();
21460       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21461         return 1;
21462       fprintf (f, "%ld\n", i);
21463     }
21464   else
21465     {
21466       unsigned long int i = ulongval ();
21467       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21468         return 1;
21469       fprintf (f, "%lu\n", i);
21470     }
21471   return ferror (f) || fclose (f) != 0;
21472
21473   ;
21474   return 0;
21475 }
21476 _ACEOF
21477 rm -f conftest$ac_exeext
21478 if { (ac_try="$ac_link"
21479 case "(($ac_try" in
21480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481   *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484   (eval "$ac_link") 2>&5
21485   ac_status=$?
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21494   ac_status=$?
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); }; }; then
21497   ac_cv_sizeof_void_p=`cat conftest.val`
21498 else
21499   echo "$as_me: program exited with status $ac_status" >&5
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21502
21503 ( exit $ac_status )
21504 if test "$ac_cv_type_void_p" = yes; then
21505      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21506 See \`config.log' for more details." >&5
21507 echo "$as_me: error: cannot compute sizeof (void *)
21508 See \`config.log' for more details." >&2;}
21509    { (exit 77); exit 77; }; }
21510    else
21511      ac_cv_sizeof_void_p=0
21512    fi
21513 fi
21514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21515 fi
21516 rm -f conftest.val
21517 fi
21518 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21519 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21520
21521
21522
21523 cat >>confdefs.h <<_ACEOF
21524 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21525 _ACEOF
21526
21527
21528
21529 # These are the types I need.  We look for them in either stdint.h,
21530 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
21531 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21532 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21533 if test "${ac_cv_type_uint16_t+set}" = set; then
21534   echo $ECHO_N "(cached) $ECHO_C" >&6
21535 else
21536   cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 $ac_includes_default
21543 typedef uint16_t ac__type_new_;
21544 int
21545 main ()
21546 {
21547 if ((ac__type_new_ *) 0)
21548   return 0;
21549 if (sizeof (ac__type_new_))
21550   return 0;
21551   ;
21552   return 0;
21553 }
21554 _ACEOF
21555 rm -f conftest.$ac_objext
21556 if { (ac_try="$ac_compile"
21557 case "(($ac_try" in
21558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559   *) ac_try_echo=$ac_try;;
21560 esac
21561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21562   (eval "$ac_compile") 2>conftest.er1
21563   ac_status=$?
21564   grep -v '^ *+' conftest.er1 >conftest.err
21565   rm -f conftest.er1
21566   cat conftest.err >&5
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); } && {
21569          test -z "$ac_c_werror_flag" ||
21570          test ! -s conftest.err
21571        } && test -s conftest.$ac_objext; then
21572   ac_cv_type_uint16_t=yes
21573 else
21574   echo "$as_me: failed program was:" >&5
21575 sed 's/^/| /' conftest.$ac_ext >&5
21576
21577         ac_cv_type_uint16_t=no
21578 fi
21579
21580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21581 fi
21582 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21583 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
21584 if test $ac_cv_type_uint16_t = yes; then
21585   ac_cv_have_uint16_t=1
21586 else
21587   ac_cv_have_uint16_t=0
21588 fi
21589
21590 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
21591 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
21592 if test "${ac_cv_type_u_int16_t+set}" = set; then
21593   echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595   cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601 $ac_includes_default
21602 typedef u_int16_t ac__type_new_;
21603 int
21604 main ()
21605 {
21606 if ((ac__type_new_ *) 0)
21607   return 0;
21608 if (sizeof (ac__type_new_))
21609   return 0;
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext
21615 if { (ac_try="$ac_compile"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621   (eval "$ac_compile") 2>conftest.er1
21622   ac_status=$?
21623   grep -v '^ *+' conftest.er1 >conftest.err
21624   rm -f conftest.er1
21625   cat conftest.err >&5
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } && {
21628          test -z "$ac_c_werror_flag" ||
21629          test ! -s conftest.err
21630        } && test -s conftest.$ac_objext; then
21631   ac_cv_type_u_int16_t=yes
21632 else
21633   echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635
21636         ac_cv_type_u_int16_t=no
21637 fi
21638
21639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21640 fi
21641 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
21642 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
21643 if test $ac_cv_type_u_int16_t = yes; then
21644   ac_cv_have_u_int16_t=1
21645 else
21646   ac_cv_have_u_int16_t=0
21647 fi
21648
21649 { echo "$as_me:$LINENO: checking for __uint16" >&5
21650 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
21651 if test "${ac_cv_type___uint16+set}" = set; then
21652   echo $ECHO_N "(cached) $ECHO_C" >&6
21653 else
21654   cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h.  */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h.  */
21660 $ac_includes_default
21661 typedef __uint16 ac__type_new_;
21662 int
21663 main ()
21664 {
21665 if ((ac__type_new_ *) 0)
21666   return 0;
21667 if (sizeof (ac__type_new_))
21668   return 0;
21669   ;
21670   return 0;
21671 }
21672 _ACEOF
21673 rm -f conftest.$ac_objext
21674 if { (ac_try="$ac_compile"
21675 case "(($ac_try" in
21676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677   *) ac_try_echo=$ac_try;;
21678 esac
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680   (eval "$ac_compile") 2>conftest.er1
21681   ac_status=$?
21682   grep -v '^ *+' conftest.er1 >conftest.err
21683   rm -f conftest.er1
21684   cat conftest.err >&5
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); } && {
21687          test -z "$ac_c_werror_flag" ||
21688          test ! -s conftest.err
21689        } && test -s conftest.$ac_objext; then
21690   ac_cv_type___uint16=yes
21691 else
21692   echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695         ac_cv_type___uint16=no
21696 fi
21697
21698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699 fi
21700 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
21701 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
21702 if test $ac_cv_type___uint16 = yes; then
21703   ac_cv_have___uint16=1
21704 else
21705   ac_cv_have___uint16=0
21706 fi
21707
21708
21709 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
21710 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
21711 if test "${ac_cv_func_sigaltstack+set}" = set; then
21712   echo $ECHO_N "(cached) $ECHO_C" >&6
21713 else
21714   cat >conftest.$ac_ext <<_ACEOF
21715 /* confdefs.h.  */
21716 _ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h.  */
21720 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
21721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21722 #define sigaltstack innocuous_sigaltstack
21723
21724 /* System header to define __stub macros and hopefully few prototypes,
21725     which can conflict with char sigaltstack (); below.
21726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21727     <limits.h> exists even on freestanding compilers.  */
21728
21729 #ifdef __STDC__
21730 # include <limits.h>
21731 #else
21732 # include <assert.h>
21733 #endif
21734
21735 #undef sigaltstack
21736
21737 /* Override any GCC internal prototype to avoid an error.
21738    Use char because int might match the return type of a GCC
21739    builtin and then its argument prototype would still apply.  */
21740 #ifdef __cplusplus
21741 extern "C"
21742 #endif
21743 char sigaltstack ();
21744 /* The GNU C library defines this for functions which it implements
21745     to always fail with ENOSYS.  Some functions are actually named
21746     something starting with __ and the normal name is an alias.  */
21747 #if defined __stub_sigaltstack || defined __stub___sigaltstack
21748 choke me
21749 #endif
21750
21751 int
21752 main ()
21753 {
21754 return sigaltstack ();
21755   ;
21756   return 0;
21757 }
21758 _ACEOF
21759 rm -f conftest.$ac_objext conftest$ac_exeext
21760 if { (ac_try="$ac_link"
21761 case "(($ac_try" in
21762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763   *) ac_try_echo=$ac_try;;
21764 esac
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766   (eval "$ac_link") 2>conftest.er1
21767   ac_status=$?
21768   grep -v '^ *+' conftest.er1 >conftest.err
21769   rm -f conftest.er1
21770   cat conftest.err >&5
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); } && {
21773          test -z "$ac_c_werror_flag" ||
21774          test ! -s conftest.err
21775        } && test -s conftest$ac_exeext &&
21776        $as_test_x conftest$ac_exeext; then
21777   ac_cv_func_sigaltstack=yes
21778 else
21779   echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782         ac_cv_func_sigaltstack=no
21783 fi
21784
21785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21786       conftest$ac_exeext conftest.$ac_ext
21787 fi
21788 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
21789 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
21790 if test $ac_cv_func_sigaltstack = yes; then
21791
21792 cat >>confdefs.h <<\_ACEOF
21793 #define HAVE_SIGALTSTACK 1
21794 _ACEOF
21795
21796 fi
21797
21798 { echo "$as_me:$LINENO: checking for dladdr" >&5
21799 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
21800 if test "${ac_cv_func_dladdr+set}" = set; then
21801   echo $ECHO_N "(cached) $ECHO_C" >&6
21802 else
21803   cat >conftest.$ac_ext <<_ACEOF
21804 /* confdefs.h.  */
21805 _ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h.  */
21809 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
21810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21811 #define dladdr innocuous_dladdr
21812
21813 /* System header to define __stub macros and hopefully few prototypes,
21814     which can conflict with char dladdr (); below.
21815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21816     <limits.h> exists even on freestanding compilers.  */
21817
21818 #ifdef __STDC__
21819 # include <limits.h>
21820 #else
21821 # include <assert.h>
21822 #endif
21823
21824 #undef dladdr
21825
21826 /* Override any GCC internal prototype to avoid an error.
21827    Use char because int might match the return type of a GCC
21828    builtin and then its argument prototype would still apply.  */
21829 #ifdef __cplusplus
21830 extern "C"
21831 #endif
21832 char dladdr ();
21833 /* The GNU C library defines this for functions which it implements
21834     to always fail with ENOSYS.  Some functions are actually named
21835     something starting with __ and the normal name is an alias.  */
21836 #if defined __stub_dladdr || defined __stub___dladdr
21837 choke me
21838 #endif
21839
21840 int
21841 main ()
21842 {
21843 return dladdr ();
21844   ;
21845   return 0;
21846 }
21847 _ACEOF
21848 rm -f conftest.$ac_objext conftest$ac_exeext
21849 if { (ac_try="$ac_link"
21850 case "(($ac_try" in
21851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852   *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855   (eval "$ac_link") 2>conftest.er1
21856   ac_status=$?
21857   grep -v '^ *+' conftest.er1 >conftest.err
21858   rm -f conftest.er1
21859   cat conftest.err >&5
21860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861   (exit $ac_status); } && {
21862          test -z "$ac_c_werror_flag" ||
21863          test ! -s conftest.err
21864        } && test -s conftest$ac_exeext &&
21865        $as_test_x conftest$ac_exeext; then
21866   ac_cv_func_dladdr=yes
21867 else
21868   echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21870
21871         ac_cv_func_dladdr=no
21872 fi
21873
21874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21875       conftest$ac_exeext conftest.$ac_ext
21876 fi
21877 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
21878 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
21879 if test $ac_cv_func_dladdr = yes; then
21880
21881 cat >>confdefs.h <<\_ACEOF
21882 #define HAVE_DLADDR 1
21883 _ACEOF
21884
21885 fi
21886
21887
21888
21889   { echo "$as_me:$LINENO: checking for __attribute__" >&5
21890 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
21891   if test "${ac_cv___attribute__+set}" = set; then
21892   echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894
21895     cat >conftest.$ac_ext <<_ACEOF
21896 /* confdefs.h.  */
21897 _ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h.  */
21901 #include <stdlib.h>
21902        static void foo(void) __attribute__ ((unused));
21903        void foo(void) { exit(1); }
21904 int
21905 main ()
21906 {
21907
21908   ;
21909   return 0;
21910 }
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (ac_try="$ac_compile"
21914 case "(($ac_try" in
21915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916   *) ac_try_echo=$ac_try;;
21917 esac
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919   (eval "$ac_compile") 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } && {
21926          test -z "$ac_c_werror_flag" ||
21927          test ! -s conftest.err
21928        } && test -s conftest.$ac_objext; then
21929   ac_cv___attribute__=yes
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934         ac_cv___attribute__=no
21935
21936 fi
21937
21938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21939 fi
21940
21941   if test "$ac_cv___attribute__" = "yes"; then
21942
21943 cat >>confdefs.h <<\_ACEOF
21944 #define HAVE___ATTRIBUTE__ 1
21945 _ACEOF
21946
21947   fi
21948   { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
21949 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
21950
21951 # We only care about these two attributes.
21952 if test x"$ac_cv___attribute__" = x"yes"; then
21953   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
21954   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
21955 else
21956   ac_cv___attribute___noreturn=
21957   ac_cv___attribute___printf_4_5=
21958 fi
21959
21960
21961   { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
21962 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
21963   if test "${ac_cv___builtin_expect+set}" = set; then
21964   echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966
21967     cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
21974 int
21975 main ()
21976 {
21977
21978   ;
21979   return 0;
21980 }
21981 _ACEOF
21982 rm -f conftest.$ac_objext
21983 if { (ac_try="$ac_compile"
21984 case "(($ac_try" in
21985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986   *) ac_try_echo=$ac_try;;
21987 esac
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989   (eval "$ac_compile") 2>conftest.er1
21990   ac_status=$?
21991   grep -v '^ *+' conftest.er1 >conftest.err
21992   rm -f conftest.er1
21993   cat conftest.err >&5
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); } && {
21996          test -z "$ac_c_werror_flag" ||
21997          test ! -s conftest.err
21998        } && test -s conftest.$ac_objext; then
21999   ac_cv___builtin_expect=yes
22000 else
22001   echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22003
22004         ac_cv___builtin_expect=no
22005
22006 fi
22007
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 fi
22010
22011   if test "$ac_cv___builtin_expect" = "yes"; then
22012
22013 cat >>confdefs.h <<\_ACEOF
22014 #define HAVE___BUILTIN_EXPECT 1
22015 _ACEOF
22016
22017   fi
22018   { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
22019 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
22020
22021 if test x"$ac_cv___builtin_expect" = x"yes"; then
22022   ac_cv_have___builtin_expect=1
22023 else
22024   ac_cv_have___builtin_expect=0
22025 fi
22026
22027
22028   { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
22029 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
22030   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
22031   echo $ECHO_N "(cached) $ECHO_C" >&6
22032 else
22033
22034     cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h.  */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h.  */
22040 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
22041 int
22042 main ()
22043 {
22044
22045   ;
22046   return 0;
22047 }
22048 _ACEOF
22049 rm -f conftest.$ac_objext conftest$ac_exeext
22050 if { (ac_try="$ac_link"
22051 case "(($ac_try" in
22052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053   *) ac_try_echo=$ac_try;;
22054 esac
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056   (eval "$ac_link") 2>conftest.er1
22057   ac_status=$?
22058   grep -v '^ *+' conftest.er1 >conftest.err
22059   rm -f conftest.er1
22060   cat conftest.err >&5
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); } && {
22063          test -z "$ac_c_werror_flag" ||
22064          test ! -s conftest.err
22065        } && test -s conftest$ac_exeext &&
22066        $as_test_x conftest$ac_exeext; then
22067   ac_cv___sync_val_compare_and_swap=yes
22068 else
22069   echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22071
22072         ac_cv___sync_val_compare_and_swap=no
22073
22074 fi
22075
22076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22077       conftest$ac_exeext conftest.$ac_ext
22078 fi
22079
22080   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
22081
22082 cat >>confdefs.h <<\_ACEOF
22083 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
22084 _ACEOF
22085
22086   fi
22087   { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
22088 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
22089
22090
22091 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
22092 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
22093 # Check whether --enable-frame_pointers was given.
22094 if test "${enable_frame_pointers+set}" = set; then
22095   enableval=$enable_frame_pointers; enable_frame_pointers=no
22096 fi
22097
22098 cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104
22105 int
22106 main ()
22107 {
22108 return __x86_64__ == 1 ? 0 : 1
22109   ;
22110   return 0;
22111 }
22112 _ACEOF
22113 rm -f conftest.$ac_objext
22114 if { (ac_try="$ac_compile"
22115 case "(($ac_try" in
22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117   *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120   (eval "$ac_compile") 2>conftest.er1
22121   ac_status=$?
22122   grep -v '^ *+' conftest.er1 >conftest.err
22123   rm -f conftest.er1
22124   cat conftest.err >&5
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); } && {
22127          test -z "$ac_c_werror_flag" ||
22128          test ! -s conftest.err
22129        } && test -s conftest.$ac_objext; then
22130   is_x86_64=yes
22131 else
22132   echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.$ac_ext >&5
22134
22135         is_x86_64=no
22136 fi
22137
22138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139  if test "$enable_frame_pointers" = yes; then
22140   ENABLE_FRAME_POINTERS_TRUE=
22141   ENABLE_FRAME_POINTERS_FALSE='#'
22142 else
22143   ENABLE_FRAME_POINTERS_TRUE='#'
22144   ENABLE_FRAME_POINTERS_FALSE=
22145 fi
22146
22147  if test "$is_x86_64" = yes; then
22148   X86_64_TRUE=
22149   X86_64_FALSE='#'
22150 else
22151   X86_64_TRUE='#'
22152   X86_64_FALSE=
22153 fi
22154
22155
22156 # Some of the code in this directory depends on pthreads
22157
22158
22159
22160 ac_ext=c
22161 ac_cpp='$CPP $CPPFLAGS'
22162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22165
22166 acx_pthread_ok=no
22167
22168 # We used to check for pthread.h first, but this fails if pthread.h
22169 # requires special compiler flags (e.g. on True64 or Sequent).
22170 # It gets checked for in the link test anyway.
22171
22172 # First of all, check if the user has set any of the PTHREAD_LIBS,
22173 # etcetera environment variables, and if threads linking works using
22174 # them:
22175 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22176         save_CFLAGS="$CFLAGS"
22177         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22178         save_LIBS="$LIBS"
22179         LIBS="$PTHREAD_LIBS $LIBS"
22180         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22181 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22182         cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h.  */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h.  */
22188
22189 /* Override any GCC internal prototype to avoid an error.
22190    Use char because int might match the return type of a GCC
22191    builtin and then its argument prototype would still apply.  */
22192 #ifdef __cplusplus
22193 extern "C"
22194 #endif
22195 char pthread_join ();
22196 int
22197 main ()
22198 {
22199 return pthread_join ();
22200   ;
22201   return 0;
22202 }
22203 _ACEOF
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (ac_try="$ac_link"
22206 case "(($ac_try" in
22207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208   *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211   (eval "$ac_link") 2>conftest.er1
22212   ac_status=$?
22213   grep -v '^ *+' conftest.er1 >conftest.err
22214   rm -f conftest.er1
22215   cat conftest.err >&5
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); } && {
22218          test -z "$ac_c_werror_flag" ||
22219          test ! -s conftest.err
22220        } && test -s conftest$ac_exeext &&
22221        $as_test_x conftest$ac_exeext; then
22222   acx_pthread_ok=yes
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227
22228 fi
22229
22230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22231       conftest$ac_exeext conftest.$ac_ext
22232         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22233 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22234         if test x"$acx_pthread_ok" = xno; then
22235                 PTHREAD_LIBS=""
22236                 PTHREAD_CFLAGS=""
22237         fi
22238         LIBS="$save_LIBS"
22239         CFLAGS="$save_CFLAGS"
22240 fi
22241
22242 # We must check for the threads library under a number of different
22243 # names; the ordering is very important because some systems
22244 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22245 # libraries is broken (non-POSIX).
22246
22247 # Create a list of thread flags to try.  Items starting with a "-" are
22248 # C compiler flags, and other items are library names, except for "none"
22249 # which indicates that we try without any flags at all, and "pthread-config"
22250 # which is a program returning the flags for the Pth emulation library.
22251
22252 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22253
22254 # The ordering *is* (sometimes) important.  Some notes on the
22255 # individual items follow:
22256
22257 # pthreads: AIX (must check this before -lpthread)
22258 # none: in case threads are in libc; should be tried before -Kthread and
22259 #       other compiler flags to prevent continual compiler warnings
22260 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22261 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22262 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22263 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22264 # -pthreads: Solaris/gcc
22265 # -mthreads: Mingw32/gcc, Lynx/gcc
22266 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22267 #      doesn't hurt to check since this sometimes defines pthreads too;
22268 #      also defines -D_REENTRANT)
22269 #      ... -mt is also the pthreads flag for HP/aCC
22270 # pthread: Linux, etcetera
22271 # --thread-safe: KAI C++
22272 # pthread-config: use pthread-config program (for GNU Pth library)
22273
22274 case "${host_cpu}-${host_os}" in
22275         *solaris*)
22276
22277         # On Solaris (at least, for some versions), libc contains stubbed
22278         # (non-functional) versions of the pthreads routines, so link-based
22279         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
22280         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22281         # a function called by this macro, so we could check for that, but
22282         # who knows whether they'll stub that too in a future libc.)  So,
22283         # we'll just look for -pthreads and -lpthread first:
22284
22285         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22286         ;;
22287 esac
22288
22289 if test x"$acx_pthread_ok" = xno; then
22290 for flag in $acx_pthread_flags; do
22291
22292         case $flag in
22293                 none)
22294                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22295 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22296                 ;;
22297
22298                 -*)
22299                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22300 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22301                 PTHREAD_CFLAGS="$flag"
22302                 ;;
22303
22304                 pthread-config)
22305                 # Extract the first word of "pthread-config", so it can be a program name with args.
22306 set dummy pthread-config; ac_word=$2
22307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22309 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22310   echo $ECHO_N "(cached) $ECHO_C" >&6
22311 else
22312   if test -n "$acx_pthread_config"; then
22313   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22314 else
22315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22316 for as_dir in $PATH
22317 do
22318   IFS=$as_save_IFS
22319   test -z "$as_dir" && as_dir=.
22320   for ac_exec_ext in '' $ac_executable_extensions; do
22321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22322     ac_cv_prog_acx_pthread_config="yes"
22323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22324     break 2
22325   fi
22326 done
22327 done
22328 IFS=$as_save_IFS
22329
22330   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22331 fi
22332 fi
22333 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22334 if test -n "$acx_pthread_config"; then
22335   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22336 echo "${ECHO_T}$acx_pthread_config" >&6; }
22337 else
22338   { echo "$as_me:$LINENO: result: no" >&5
22339 echo "${ECHO_T}no" >&6; }
22340 fi
22341
22342
22343                 if test x"$acx_pthread_config" = xno; then continue; fi
22344                 PTHREAD_CFLAGS="`pthread-config --cflags`"
22345                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22346                 ;;
22347
22348                 *)
22349                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22350 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22351                 PTHREAD_LIBS="-l$flag"
22352                 ;;
22353         esac
22354
22355         save_LIBS="$LIBS"
22356         save_CFLAGS="$CFLAGS"
22357         LIBS="$PTHREAD_LIBS $LIBS"
22358         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22359
22360         # Check for various functions.  We must include pthread.h,
22361         # since some functions may be macros.  (On the Sequent, we
22362         # need a special flag -Kthread to make this header compile.)
22363         # We check for pthread_join because it is in -lpthread on IRIX
22364         # while pthread_create is in libc.  We check for pthread_attr_init
22365         # due to DEC craziness with -lpthreads.  We check for
22366         # pthread_cleanup_push because it is one of the few pthread
22367         # functions on Solaris that doesn't have a non-functional libc stub.
22368         # We try pthread_create on general principles.
22369         cat >conftest.$ac_ext <<_ACEOF
22370 /* confdefs.h.  */
22371 _ACEOF
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h.  */
22375 #include <pthread.h>
22376 int
22377 main ()
22378 {
22379 pthread_t th; pthread_join(th, 0);
22380                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22381                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22382   ;
22383   return 0;
22384 }
22385 _ACEOF
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (ac_try="$ac_link"
22388 case "(($ac_try" in
22389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390   *) ac_try_echo=$ac_try;;
22391 esac
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393   (eval "$ac_link") 2>conftest.er1
22394   ac_status=$?
22395   grep -v '^ *+' conftest.er1 >conftest.err
22396   rm -f conftest.er1
22397   cat conftest.err >&5
22398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399   (exit $ac_status); } && {
22400          test -z "$ac_c_werror_flag" ||
22401          test ! -s conftest.err
22402        } && test -s conftest$ac_exeext &&
22403        $as_test_x conftest$ac_exeext; then
22404   acx_pthread_ok=yes
22405 else
22406   echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409
22410 fi
22411
22412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22413       conftest$ac_exeext conftest.$ac_ext
22414
22415         LIBS="$save_LIBS"
22416         CFLAGS="$save_CFLAGS"
22417
22418         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22419 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22420         if test "x$acx_pthread_ok" = xyes; then
22421                 break;
22422         fi
22423
22424         PTHREAD_LIBS=""
22425         PTHREAD_CFLAGS=""
22426 done
22427 fi
22428
22429 # Various other checks:
22430 if test "x$acx_pthread_ok" = xyes; then
22431         save_LIBS="$LIBS"
22432         LIBS="$PTHREAD_LIBS $LIBS"
22433         save_CFLAGS="$CFLAGS"
22434         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22435
22436         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22437         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22438 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22439         attr_name=unknown
22440         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22441             cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h.  */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h.  */
22447 #include <pthread.h>
22448 int
22449 main ()
22450 {
22451 int attr=$attr; return attr;
22452   ;
22453   return 0;
22454 }
22455 _ACEOF
22456 rm -f conftest.$ac_objext conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460   *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463   (eval "$ac_link") 2>conftest.er1
22464   ac_status=$?
22465   grep -v '^ *+' conftest.er1 >conftest.err
22466   rm -f conftest.er1
22467   cat conftest.err >&5
22468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469   (exit $ac_status); } && {
22470          test -z "$ac_c_werror_flag" ||
22471          test ! -s conftest.err
22472        } && test -s conftest$ac_exeext &&
22473        $as_test_x conftest$ac_exeext; then
22474   attr_name=$attr; break
22475 else
22476   echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22478
22479
22480 fi
22481
22482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22483       conftest$ac_exeext conftest.$ac_ext
22484         done
22485         { echo "$as_me:$LINENO: result: $attr_name" >&5
22486 echo "${ECHO_T}$attr_name" >&6; }
22487         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22488
22489 cat >>confdefs.h <<_ACEOF
22490 #define PTHREAD_CREATE_JOINABLE $attr_name
22491 _ACEOF
22492
22493         fi
22494
22495         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22496 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22497         flag=no
22498         case "${host_cpu}-${host_os}" in
22499             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22500             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22501         esac
22502         { echo "$as_me:$LINENO: result: ${flag}" >&5
22503 echo "${ECHO_T}${flag}" >&6; }
22504         if test "x$flag" != xno; then
22505             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22506         fi
22507
22508         LIBS="$save_LIBS"
22509         CFLAGS="$save_CFLAGS"
22510         # More AIX lossage: must compile with xlc_r or cc_r
22511         if test x"$GCC" != xyes; then
22512           for ac_prog in xlc_r cc_r
22513 do
22514   # Extract the first word of "$ac_prog", so it can be a program name with args.
22515 set dummy $ac_prog; ac_word=$2
22516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22518 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22519   echo $ECHO_N "(cached) $ECHO_C" >&6
22520 else
22521   if test -n "$PTHREAD_CC"; then
22522   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22523 else
22524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22525 for as_dir in $PATH
22526 do
22527   IFS=$as_save_IFS
22528   test -z "$as_dir" && as_dir=.
22529   for ac_exec_ext in '' $ac_executable_extensions; do
22530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22531     ac_cv_prog_PTHREAD_CC="$ac_prog"
22532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22533     break 2
22534   fi
22535 done
22536 done
22537 IFS=$as_save_IFS
22538
22539 fi
22540 fi
22541 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22542 if test -n "$PTHREAD_CC"; then
22543   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22544 echo "${ECHO_T}$PTHREAD_CC" >&6; }
22545 else
22546   { echo "$as_me:$LINENO: result: no" >&5
22547 echo "${ECHO_T}no" >&6; }
22548 fi
22549
22550
22551   test -n "$PTHREAD_CC" && break
22552 done
22553 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22554
22555         else
22556           PTHREAD_CC=$CC
22557         fi
22558
22559    # The next part tries to detect GCC inconsistency with -shared on some
22560    # architectures and systems. The problem is that in certain
22561    # configurations, when -shared is specified, GCC "forgets" to
22562    # internally use various flags which are still necessary.
22563
22564    { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
22565 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
22566    check_inconsistencies=yes
22567    case "${host_cpu}-${host_os}" in
22568      *-darwin*) check_inconsistencies=no ;;
22569    esac
22570    if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
22571       { echo "$as_me:$LINENO: result: no" >&5
22572 echo "${ECHO_T}no" >&6; }
22573    else
22574       { echo "$as_me:$LINENO: result: yes" >&5
22575 echo "${ECHO_T}yes" >&6; }
22576
22577       # In order not to create several levels of indentation, we test
22578       # the value of "$ok" until we find out the cure or run out of
22579       # ideas.
22580       ok="no"
22581
22582       #
22583       # Prepare the flags
22584       #
22585       save_CFLAGS="$CFLAGS"
22586       save_LIBS="$LIBS"
22587       save_CC="$CC"
22588       # Try with the flags determined by the earlier checks.
22589       #
22590       # -Wl,-z,defs forces link-time symbol resolution, so that the
22591       # linking checks with -shared actually have any value
22592       #
22593       # FIXME: -fPIC is required for -shared on many architectures,
22594       # so we specify it here, but the right way would probably be to
22595       # properly detect whether it is actually required.
22596       CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
22597       LIBS="$PTHREAD_LIBS $LIBS"
22598       CC="$PTHREAD_CC"
22599
22600       { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
22601 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
22602       cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h.  */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h.  */
22608 #include <pthread.h>
22609 int
22610 main ()
22611 {
22612 pthread_t th; pthread_join(th, 0);
22613          pthread_attr_init(0); pthread_cleanup_push(0, 0);
22614          pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22615   ;
22616   return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (ac_try="$ac_link"
22621 case "(($ac_try" in
22622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623   *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626   (eval "$ac_link") 2>conftest.er1
22627   ac_status=$?
22628   grep -v '^ *+' conftest.er1 >conftest.err
22629   rm -f conftest.er1
22630   cat conftest.err >&5
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); } && {
22633          test -z "$ac_c_werror_flag" ||
22634          test ! -s conftest.err
22635        } && test -s conftest$ac_exeext &&
22636        $as_test_x conftest$ac_exeext; then
22637   ok=yes
22638 else
22639   echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641
22642
22643 fi
22644
22645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22646       conftest$ac_exeext conftest.$ac_ext
22647
22648       if test "x$ok" = xyes; then
22649          { echo "$as_me:$LINENO: result: yes" >&5
22650 echo "${ECHO_T}yes" >&6; }
22651       else
22652          { echo "$as_me:$LINENO: result: no" >&5
22653 echo "${ECHO_T}no" >&6; }
22654       fi
22655
22656       #
22657       # Linux gcc on some architectures such as mips/mipsel forgets
22658       # about -lpthread
22659       #
22660       if test x"$ok" = xno; then
22661          { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
22662 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
22663          LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
22664          cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h.  */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h.  */
22670 #include <pthread.h>
22671 int
22672 main ()
22673 {
22674 pthread_t th; pthread_join(th, 0);
22675             pthread_attr_init(0); pthread_cleanup_push(0, 0);
22676             pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22677   ;
22678   return 0;
22679 }
22680 _ACEOF
22681 rm -f conftest.$ac_objext conftest$ac_exeext
22682 if { (ac_try="$ac_link"
22683 case "(($ac_try" in
22684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22685   *) ac_try_echo=$ac_try;;
22686 esac
22687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22688   (eval "$ac_link") 2>conftest.er1
22689   ac_status=$?
22690   grep -v '^ *+' conftest.er1 >conftest.err
22691   rm -f conftest.er1
22692   cat conftest.err >&5
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); } && {
22695          test -z "$ac_c_werror_flag" ||
22696          test ! -s conftest.err
22697        } && test -s conftest$ac_exeext &&
22698        $as_test_x conftest$ac_exeext; then
22699   ok=yes
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704
22705 fi
22706
22707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22708       conftest$ac_exeext conftest.$ac_ext
22709
22710          if test "x$ok" = xyes; then
22711             { echo "$as_me:$LINENO: result: yes" >&5
22712 echo "${ECHO_T}yes" >&6; }
22713             PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
22714          else
22715             { echo "$as_me:$LINENO: result: no" >&5
22716 echo "${ECHO_T}no" >&6; }
22717          fi
22718       fi
22719       #
22720       # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
22721       #
22722       if test x"$ok" = xno; then
22723          { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
22724 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
22725          LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
22726          cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h.  */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h.  */
22732 #include <pthread.h>
22733 int
22734 main ()
22735 {
22736 pthread_t th; pthread_join(th, 0);
22737               pthread_attr_init(0); pthread_cleanup_push(0, 0);
22738               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22739   ;
22740   return 0;
22741 }
22742 _ACEOF
22743 rm -f conftest.$ac_objext conftest$ac_exeext
22744 if { (ac_try="$ac_link"
22745 case "(($ac_try" in
22746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747   *) ac_try_echo=$ac_try;;
22748 esac
22749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750   (eval "$ac_link") 2>conftest.er1
22751   ac_status=$?
22752   grep -v '^ *+' conftest.er1 >conftest.err
22753   rm -f conftest.er1
22754   cat conftest.err >&5
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); } && {
22757          test -z "$ac_c_werror_flag" ||
22758          test ! -s conftest.err
22759        } && test -s conftest$ac_exeext &&
22760        $as_test_x conftest$ac_exeext; then
22761   ok=yes
22762 else
22763   echo "$as_me: failed program was:" >&5
22764 sed 's/^/| /' conftest.$ac_ext >&5
22765
22766
22767 fi
22768
22769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22770       conftest$ac_exeext conftest.$ac_ext
22771
22772          if test "x$ok" = xyes; then
22773             { echo "$as_me:$LINENO: result: yes" >&5
22774 echo "${ECHO_T}yes" >&6; }
22775             PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
22776          else
22777             { echo "$as_me:$LINENO: result: no" >&5
22778 echo "${ECHO_T}no" >&6; }
22779          fi
22780       fi
22781       if test x"$ok" = xno; then
22782          # OK, we have run out of ideas
22783          { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
22784 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
22785
22786          # so it's not safe to assume that we may use pthreads
22787          acx_pthread_ok=no
22788       fi
22789
22790       CFLAGS="$save_CFLAGS"
22791       LIBS="$save_LIBS"
22792       CC="$save_CC"
22793    fi
22794 else
22795         PTHREAD_CC="$CC"
22796 fi
22797
22798
22799
22800
22801
22802 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22803 if test x"$acx_pthread_ok" = xyes; then
22804
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_PTHREAD 1
22807 _ACEOF
22808
22809         :
22810 else
22811         acx_pthread_ok=no
22812
22813 fi
22814 ac_ext=c
22815 ac_cpp='$CPP $CPPFLAGS'
22816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22819
22820
22821 # To make libglog depend on libpthread on Linux, we need to add
22822 # -lpthread in addition to -pthread.
22823
22824 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
22825 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
22826 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
22827   echo $ECHO_N "(cached) $ECHO_C" >&6
22828 else
22829   ac_check_lib_save_LIBS=$LIBS
22830 LIBS="-lpthread  $LIBS"
22831 cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h.  */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h.  */
22837
22838 /* Override any GCC internal prototype to avoid an error.
22839    Use char because int might match the return type of a GCC
22840    builtin and then its argument prototype would still apply.  */
22841 #ifdef __cplusplus
22842 extern "C"
22843 #endif
22844 char pthread_self ();
22845 int
22846 main ()
22847 {
22848 return pthread_self ();
22849   ;
22850   return 0;
22851 }
22852 _ACEOF
22853 rm -f conftest.$ac_objext conftest$ac_exeext
22854 if { (ac_try="$ac_link"
22855 case "(($ac_try" in
22856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857   *) ac_try_echo=$ac_try;;
22858 esac
22859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860   (eval "$ac_link") 2>conftest.er1
22861   ac_status=$?
22862   grep -v '^ *+' conftest.er1 >conftest.err
22863   rm -f conftest.er1
22864   cat conftest.err >&5
22865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866   (exit $ac_status); } && {
22867          test -z "$ac_c_werror_flag" ||
22868          test ! -s conftest.err
22869        } && test -s conftest$ac_exeext &&
22870        $as_test_x conftest$ac_exeext; then
22871   ac_cv_lib_pthread_pthread_self=yes
22872 else
22873   echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876         ac_cv_lib_pthread_pthread_self=no
22877 fi
22878
22879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22880       conftest$ac_exeext conftest.$ac_ext
22881 LIBS=$ac_check_lib_save_LIBS
22882 fi
22883 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
22884 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
22885 if test $ac_cv_lib_pthread_pthread_self = yes; then
22886   cat >>confdefs.h <<_ACEOF
22887 #define HAVE_LIBPTHREAD 1
22888 _ACEOF
22889
22890   LIBS="-lpthread $LIBS"
22891
22892 fi
22893
22894
22895 # Check if there is google-gflags library installed.
22896 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
22897 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
22898 if test "${ac_cv_lib_gflags_main+set}" = set; then
22899   echo $ECHO_N "(cached) $ECHO_C" >&6
22900 else
22901   ac_check_lib_save_LIBS=$LIBS
22902 LIBS="-lgflags  $LIBS"
22903 cat >conftest.$ac_ext <<_ACEOF
22904 /* confdefs.h.  */
22905 _ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h.  */
22909
22910
22911 int
22912 main ()
22913 {
22914 return main ();
22915   ;
22916   return 0;
22917 }
22918 _ACEOF
22919 rm -f conftest.$ac_objext conftest$ac_exeext
22920 if { (ac_try="$ac_link"
22921 case "(($ac_try" in
22922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923   *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926   (eval "$ac_link") 2>conftest.er1
22927   ac_status=$?
22928   grep -v '^ *+' conftest.er1 >conftest.err
22929   rm -f conftest.er1
22930   cat conftest.err >&5
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); } && {
22933          test -z "$ac_c_werror_flag" ||
22934          test ! -s conftest.err
22935        } && test -s conftest$ac_exeext &&
22936        $as_test_x conftest$ac_exeext; then
22937   ac_cv_lib_gflags_main=yes
22938 else
22939   echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22941
22942         ac_cv_lib_gflags_main=no
22943 fi
22944
22945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22946       conftest$ac_exeext conftest.$ac_ext
22947 LIBS=$ac_check_lib_save_LIBS
22948 fi
22949 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
22950 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
22951 if test $ac_cv_lib_gflags_main = yes; then
22952   ac_cv_have_libgflags=1
22953 else
22954   ac_cv_have_libgflags=0
22955 fi
22956
22957 if test x"$ac_cv_have_libgflags" = x"1"; then
22958   GFLAGS_LIBS=-lgflags
22959
22960 cat >>confdefs.h <<\_ACEOF
22961 #define HAVE_LIB_GFLAGS 1
22962 _ACEOF
22963
22964 else
22965   GFLAGS_LIBS=
22966 fi
22967
22968 # We want to link in libunwind if it exists
22969 UNWIND_LIBS=
22970 # Unfortunately, we need to check the header file in addition to the
22971 # lib file to check if libunwind is available since libunwind-0.98
22972 # doesn't install all necessary header files.
22973 if test x"$ac_cv_have_libunwind_h" = x"1"; then
22974  { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5
22975 echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; }
22976 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then
22977   echo $ECHO_N "(cached) $ECHO_C" >&6
22978 else
22979   ac_check_lib_save_LIBS=$LIBS
22980 LIBS="-lunwind  $LIBS"
22981 cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h.  */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h.  */
22987
22988 /* Override any GCC internal prototype to avoid an error.
22989    Use char because int might match the return type of a GCC
22990    builtin and then its argument prototype would still apply.  */
22991 #ifdef __cplusplus
22992 extern "C"
22993 #endif
22994 char backtrace ();
22995 int
22996 main ()
22997 {
22998 return backtrace ();
22999   ;
23000   return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext conftest$ac_exeext
23004 if { (ac_try="$ac_link"
23005 case "(($ac_try" in
23006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007   *) ac_try_echo=$ac_try;;
23008 esac
23009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23010   (eval "$ac_link") 2>conftest.er1
23011   ac_status=$?
23012   grep -v '^ *+' conftest.er1 >conftest.err
23013   rm -f conftest.er1
23014   cat conftest.err >&5
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); } && {
23017          test -z "$ac_c_werror_flag" ||
23018          test ! -s conftest.err
23019        } && test -s conftest$ac_exeext &&
23020        $as_test_x conftest$ac_exeext; then
23021   ac_cv_lib_unwind_backtrace=yes
23022 else
23023   echo "$as_me: failed program was:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23025
23026         ac_cv_lib_unwind_backtrace=no
23027 fi
23028
23029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23030       conftest$ac_exeext conftest.$ac_ext
23031 LIBS=$ac_check_lib_save_LIBS
23032 fi
23033 { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5
23034 echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; }
23035 if test $ac_cv_lib_unwind_backtrace = yes; then
23036   UNWIND_LIBS=-lunwind
23037 fi
23038
23039 fi
23040
23041 if test x"$UNWIND_LIBS" != x""; then
23042
23043 cat >>confdefs.h <<\_ACEOF
23044 #define HAVE_LIB_UNWIND 1
23045 _ACEOF
23046
23047 fi
23048
23049 # We'd like to use read/write locks in several places in the code.
23050 # See if our pthreads support extends to that.  Note: for linux, it
23051 # does as long as you define _XOPEN_SOURCE appropriately.
23052 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
23053 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
23054 if test "${ac_rwlock+set}" = set; then
23055   echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057
23058  ac_ext=c
23059 ac_cpp='$CPP $CPPFLAGS'
23060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23063
23064  cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h.  */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h.  */
23070 #define _XOPEN_SOURCE 500
23071                  #include <pthread.h>
23072 int
23073 main ()
23074 {
23075 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
23076                  pthread_rwlock_rdlock(&l);
23077                  return 0;
23078   ;
23079   return 0;
23080 }
23081 _ACEOF
23082 rm -f conftest.$ac_objext
23083 if { (ac_try="$ac_compile"
23084 case "(($ac_try" in
23085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086   *) ac_try_echo=$ac_try;;
23087 esac
23088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23089   (eval "$ac_compile") 2>conftest.er1
23090   ac_status=$?
23091   grep -v '^ *+' conftest.er1 >conftest.err
23092   rm -f conftest.er1
23093   cat conftest.err >&5
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); } && {
23096          test -z "$ac_c_werror_flag" ||
23097          test ! -s conftest.err
23098        } && test -s conftest.$ac_objext; then
23099   ac_rwlock=yes
23100 else
23101   echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104         ac_rwlock=no
23105 fi
23106
23107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108  ac_ext=c
23109 ac_cpp='$CPP $CPPFLAGS'
23110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23113
23114
23115 fi
23116 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
23117 echo "${ECHO_T}$ac_rwlock" >&6; }
23118 if test "$ac_rwlock" = yes; then
23119
23120 cat >>confdefs.h <<\_ACEOF
23121 #define HAVE_RWLOCK 1
23122 _ACEOF
23123
23124 fi
23125
23126
23127 # Find out what namespace 'normal' STL code lives in, and also what namespace
23128 # the user wants our classes to be defined in
23129 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
23130 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
23131 if test "${ac_cv_cxx_namespaces+set}" = set; then
23132   echo $ECHO_N "(cached) $ECHO_C" >&6
23133 else
23134
23135                   ac_ext=cpp
23136 ac_cpp='$CXXCPP $CPPFLAGS'
23137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23140
23141                   cat >conftest.$ac_ext <<_ACEOF
23142 /* confdefs.h.  */
23143 _ACEOF
23144 cat confdefs.h >>conftest.$ac_ext
23145 cat >>conftest.$ac_ext <<_ACEOF
23146 /* end confdefs.h.  */
23147 namespace Outer {
23148                                     namespace Inner { int i = 0; }}
23149 int
23150 main ()
23151 {
23152 using namespace Outer::Inner; return i;
23153   ;
23154   return 0;
23155 }
23156 _ACEOF
23157 rm -f conftest.$ac_objext
23158 if { (ac_try="$ac_compile"
23159 case "(($ac_try" in
23160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161   *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164   (eval "$ac_compile") 2>conftest.er1
23165   ac_status=$?
23166   grep -v '^ *+' conftest.er1 >conftest.err
23167   rm -f conftest.er1
23168   cat conftest.err >&5
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); } && {
23171          test -z "$ac_cxx_werror_flag" ||
23172          test ! -s conftest.err
23173        } && test -s conftest.$ac_objext; then
23174   ac_cv_cxx_namespaces=yes
23175 else
23176   echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23178
23179         ac_cv_cxx_namespaces=no
23180 fi
23181
23182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183                   ac_ext=c
23184 ac_cpp='$CPP $CPPFLAGS'
23185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23188
23189 fi
23190 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
23191 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
23192   if test "$ac_cv_cxx_namespaces" = yes; then
23193
23194 cat >>confdefs.h <<\_ACEOF
23195 #define HAVE_NAMESPACES 1
23196 _ACEOF
23197
23198   fi
23199 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
23200 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
23201 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
23202   echo $ECHO_N "(cached) $ECHO_C" >&6
23203 else
23204
23205
23206       ac_ext=cpp
23207 ac_cpp='$CXXCPP $CPPFLAGS'
23208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23211
23212       cat >conftest.$ac_ext <<_ACEOF
23213 /* confdefs.h.  */
23214 _ACEOF
23215 cat confdefs.h >>conftest.$ac_ext
23216 cat >>conftest.$ac_ext <<_ACEOF
23217 /* end confdefs.h.  */
23218 #include <vector>
23219 int
23220 main ()
23221 {
23222 vector<int> t; return 0;
23223   ;
23224   return 0;
23225 }
23226 _ACEOF
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231   *) ac_try_echo=$ac_try;;
23232 esac
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234   (eval "$ac_compile") 2>conftest.er1
23235   ac_status=$?
23236   grep -v '^ *+' conftest.er1 >conftest.err
23237   rm -f conftest.er1
23238   cat conftest.err >&5
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); } && {
23241          test -z "$ac_cxx_werror_flag" ||
23242          test ! -s conftest.err
23243        } && test -s conftest.$ac_objext; then
23244   ac_cv_cxx_stl_namespace=none
23245 else
23246   echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23248
23249
23250 fi
23251
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253       cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259 #include <vector>
23260 int
23261 main ()
23262 {
23263 std::vector<int> t; return 0;
23264   ;
23265   return 0;
23266 }
23267 _ACEOF
23268 rm -f conftest.$ac_objext
23269 if { (ac_try="$ac_compile"
23270 case "(($ac_try" in
23271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272   *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275   (eval "$ac_compile") 2>conftest.er1
23276   ac_status=$?
23277   grep -v '^ *+' conftest.er1 >conftest.err
23278   rm -f conftest.er1
23279   cat conftest.err >&5
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); } && {
23282          test -z "$ac_cxx_werror_flag" ||
23283          test ! -s conftest.err
23284        } && test -s conftest.$ac_objext; then
23285   ac_cv_cxx_stl_namespace=std
23286 else
23287   echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23289
23290
23291 fi
23292
23293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23294       ac_ext=c
23295 ac_cpp='$CPP $CPPFLAGS'
23296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23299
23300 fi
23301 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
23302 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
23303    if test "$ac_cv_cxx_stl_namespace" = none; then
23304
23305 cat >>confdefs.h <<\_ACEOF
23306 #define STL_NAMESPACE
23307 _ACEOF
23308
23309    fi
23310    if test "$ac_cv_cxx_stl_namespace" = std; then
23311
23312 cat >>confdefs.h <<\_ACEOF
23313 #define STL_NAMESPACE std
23314 _ACEOF
23315
23316    fi
23317
23318 google_namespace_default=google
23319    # Check whether --enable-namespace was given.
23320 if test "${enable_namespace+set}" = set; then
23321   enableval=$enable_namespace; case "$enableval" in
23322                     yes) google_namespace="$google_namespace_default" ;;
23323                      no) google_namespace="" ;;
23324                       *) google_namespace="$enableval" ;;
23325                   esac
23326 else
23327   google_namespace="$google_namespace_default"
23328 fi
23329
23330    if test -n "$google_namespace"; then
23331      ac_google_namespace="$google_namespace"
23332      ac_google_start_namespace="namespace $google_namespace {"
23333      ac_google_end_namespace="}"
23334    else
23335      ac_google_namespace=""
23336      ac_google_start_namespace=""
23337      ac_google_end_namespace=""
23338    fi
23339
23340 cat >>confdefs.h <<_ACEOF
23341 #define GOOGLE_NAMESPACE $ac_google_namespace
23342 _ACEOF
23343
23344
23345 cat >>confdefs.h <<_ACEOF
23346 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
23347 _ACEOF
23348
23349
23350 cat >>confdefs.h <<_ACEOF
23351 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
23352 _ACEOF
23353
23354
23355
23356 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
23357 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
23358 if test "${ac_cv_cxx_using_operator+set}" = set; then
23359   echo $ECHO_N "(cached) $ECHO_C" >&6
23360 else
23361
23362        ac_ext=cpp
23363 ac_cpp='$CXXCPP $CPPFLAGS'
23364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23367
23368        cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374 #include <iostream>
23375                        std::ostream& operator<<(std::ostream&, struct s);
23376 int
23377 main ()
23378 {
23379 using ::operator<<; return 0;
23380   ;
23381   return 0;
23382 }
23383 _ACEOF
23384 rm -f conftest.$ac_objext
23385 if { (ac_try="$ac_compile"
23386 case "(($ac_try" in
23387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388   *) ac_try_echo=$ac_try;;
23389 esac
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391   (eval "$ac_compile") 2>conftest.er1
23392   ac_status=$?
23393   grep -v '^ *+' conftest.er1 >conftest.err
23394   rm -f conftest.er1
23395   cat conftest.err >&5
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); } && {
23398          test -z "$ac_cxx_werror_flag" ||
23399          test ! -s conftest.err
23400        } && test -s conftest.$ac_objext; then
23401   ac_cv_cxx_using_operator=1
23402 else
23403   echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.$ac_ext >&5
23405
23406         ac_cv_cxx_using_operator=0
23407 fi
23408
23409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23410       ac_ext=c
23411 ac_cpp='$CPP $CPPFLAGS'
23412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23415
23416 fi
23417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
23418 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
23419   if test "$ac_cv_cxx_using_operator" = 1; then
23420
23421 cat >>confdefs.h <<\_ACEOF
23422 #define HAVE_USING_OPERATOR 1
23423 _ACEOF
23424
23425   fi
23426
23427 # We want to access the "PC" (Program Counter) register from a struct
23428 # ucontext.  Every system has its own way of doing that.  We try all the
23429 # possibilities we know about.  Note REG_PC should come first (REG_RIP
23430 # is also defined on solaris, but does the wrong thing).
23431 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
23432 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
23433 pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
23434 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
23435 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
23436 pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
23437 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
23438 pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
23439 pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
23440 pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
23441 pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
23442 pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
23443 pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
23444 pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
23445 pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
23446 pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
23447 pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
23448 pc_field_found=false
23449 for pc_field in $pc_fields; do
23450   if ! $pc_field_found; then
23451     cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h.  */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h.  */
23457 #define _GNU_SOURCE 1
23458                     #include <ucontext.h>
23459 int
23460 main ()
23461 {
23462 ucontext_t u; return u.$pc_field == 0;
23463   ;
23464   return 0;
23465 }
23466 _ACEOF
23467 rm -f conftest.$ac_objext
23468 if { (ac_try="$ac_compile"
23469 case "(($ac_try" in
23470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471   *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474   (eval "$ac_compile") 2>conftest.er1
23475   ac_status=$?
23476   grep -v '^ *+' conftest.er1 >conftest.err
23477   rm -f conftest.er1
23478   cat conftest.err >&5
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); } && {
23481          test -z "$ac_c_werror_flag" ||
23482          test ! -s conftest.err
23483        } && test -s conftest.$ac_objext; then
23484
23485 cat >>confdefs.h <<_ACEOF
23486 #define PC_FROM_UCONTEXT $pc_field
23487 _ACEOF
23488
23489                    { echo "$as_me:$LINENO: result: $pc_field" >&5
23490 echo "${ECHO_T}$pc_field" >&6; }
23491                  pc_field_found=true
23492 else
23493   echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23495
23496
23497 fi
23498
23499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23500   fi
23501 done
23502 if ! $pc_field_found; then
23503   { echo "$as_me:$LINENO: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
23504 echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
23505 fi
23506
23507 # These are what's needed by logging.h.in and raw_logging.h.in
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524 # Write generated configuration file
23525 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"
23526
23527 cat >confcache <<\_ACEOF
23528 # This file is a shell script that caches the results of configure
23529 # tests run on this system so they can be shared between configure
23530 # scripts and configure runs, see configure's option --config-cache.
23531 # It is not useful on other systems.  If it contains results you don't
23532 # want to keep, you may remove or edit it.
23533 #
23534 # config.status only pays attention to the cache file if you give it
23535 # the --recheck option to rerun configure.
23536 #
23537 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23538 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23539 # following values.
23540
23541 _ACEOF
23542
23543 # The following way of writing the cache mishandles newlines in values,
23544 # but we know of no workaround that is simple, portable, and efficient.
23545 # So, we kill variables containing newlines.
23546 # Ultrix sh set writes to stderr and can't be redirected directly,
23547 # and sets the high bit in the cache file unless we assign to the vars.
23548 (
23549   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23550     eval ac_val=\$$ac_var
23551     case $ac_val in #(
23552     *${as_nl}*)
23553       case $ac_var in #(
23554       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23555 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23556       esac
23557       case $ac_var in #(
23558       _ | IFS | as_nl) ;; #(
23559       *) $as_unset $ac_var ;;
23560       esac ;;
23561     esac
23562   done
23563
23564   (set) 2>&1 |
23565     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23566     *${as_nl}ac_space=\ *)
23567       # `set' does not quote correctly, so add quotes (double-quote
23568       # substitution turns \\\\ into \\, and sed turns \\ into \).
23569       sed -n \
23570         "s/'/'\\\\''/g;
23571           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23572       ;; #(
23573     *)
23574       # `set' quotes correctly as required by POSIX, so do not add quotes.
23575       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23576       ;;
23577     esac |
23578     sort
23579 ) |
23580   sed '
23581      /^ac_cv_env_/b end
23582      t clear
23583      :clear
23584      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23585      t end
23586      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23587      :end' >>confcache
23588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23589   if test -w "$cache_file"; then
23590     test "x$cache_file" != "x/dev/null" &&
23591       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23592 echo "$as_me: updating cache $cache_file" >&6;}
23593     cat confcache >$cache_file
23594   else
23595     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23596 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23597   fi
23598 fi
23599 rm -f confcache
23600
23601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23602 # Let make expand exec_prefix.
23603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23604
23605 DEFS=-DHAVE_CONFIG_H
23606
23607 ac_libobjs=
23608 ac_ltlibobjs=
23609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23610   # 1. Remove the extension, and $U if already installed.
23611   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23612   ac_i=`echo "$ac_i" | sed "$ac_script"`
23613   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23614   #    will be set to the directory where LIBOBJS objects are built.
23615   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23616   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23617 done
23618 LIBOBJS=$ac_libobjs
23619
23620 LTLIBOBJS=$ac_ltlibobjs
23621
23622
23623 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23624   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23625 Usually this means the macro was only invoked conditionally." >&5
23626 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23627 Usually this means the macro was only invoked conditionally." >&2;}
23628    { (exit 1); exit 1; }; }
23629 fi
23630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23631   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23632 Usually this means the macro was only invoked conditionally." >&5
23633 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23634 Usually this means the macro was only invoked conditionally." >&2;}
23635    { (exit 1); exit 1; }; }
23636 fi
23637 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23638   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23639 Usually this means the macro was only invoked conditionally." >&5
23640 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23641 Usually this means the macro was only invoked conditionally." >&2;}
23642    { (exit 1); exit 1; }; }
23643 fi
23644 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
23645   { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
23646 Usually this means the macro was only invoked conditionally." >&5
23647 echo "$as_me: error: conditional \"GCC\" was never defined.
23648 Usually this means the macro was only invoked conditionally." >&2;}
23649    { (exit 1); exit 1; }; }
23650 fi
23651 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
23652   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
23653 Usually this means the macro was only invoked conditionally." >&5
23654 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
23655 Usually this means the macro was only invoked conditionally." >&2;}
23656    { (exit 1); exit 1; }; }
23657 fi
23658 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
23659   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
23660 Usually this means the macro was only invoked conditionally." >&5
23661 echo "$as_me: error: conditional \"X86_64\" was never defined.
23662 Usually this means the macro was only invoked conditionally." >&2;}
23663    { (exit 1); exit 1; }; }
23664 fi
23665
23666 : ${CONFIG_STATUS=./config.status}
23667 ac_clean_files_save=$ac_clean_files
23668 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23669 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23670 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23671 cat >$CONFIG_STATUS <<_ACEOF
23672 #! $SHELL
23673 # Generated by $as_me.
23674 # Run this file to recreate the current configuration.
23675 # Compiler output produced by configure, useful for debugging
23676 # configure, is in config.log if it exists.
23677
23678 debug=false
23679 ac_cs_recheck=false
23680 ac_cs_silent=false
23681 SHELL=\${CONFIG_SHELL-$SHELL}
23682 _ACEOF
23683
23684 cat >>$CONFIG_STATUS <<\_ACEOF
23685 ## --------------------- ##
23686 ## M4sh Initialization.  ##
23687 ## --------------------- ##
23688
23689 # Be more Bourne compatible
23690 DUALCASE=1; export DUALCASE # for MKS sh
23691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23692   emulate sh
23693   NULLCMD=:
23694   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23695   # is contrary to our usage.  Disable this feature.
23696   alias -g '${1+"$@"}'='"$@"'
23697   setopt NO_GLOB_SUBST
23698 else
23699   case `(set -o) 2>/dev/null` in
23700   *posix*) set -o posix ;;
23701 esac
23702
23703 fi
23704
23705
23706
23707
23708 # PATH needs CR
23709 # Avoid depending upon Character Ranges.
23710 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23711 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23712 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23713 as_cr_digits='0123456789'
23714 as_cr_alnum=$as_cr_Letters$as_cr_digits
23715
23716 # The user is always right.
23717 if test "${PATH_SEPARATOR+set}" != set; then
23718   echo "#! /bin/sh" >conf$$.sh
23719   echo  "exit 0"   >>conf$$.sh
23720   chmod +x conf$$.sh
23721   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23722     PATH_SEPARATOR=';'
23723   else
23724     PATH_SEPARATOR=:
23725   fi
23726   rm -f conf$$.sh
23727 fi
23728
23729 # Support unset when possible.
23730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23731   as_unset=unset
23732 else
23733   as_unset=false
23734 fi
23735
23736
23737 # IFS
23738 # We need space, tab and new line, in precisely that order.  Quoting is
23739 # there to prevent editors from complaining about space-tab.
23740 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23741 # splitting by setting IFS to empty value.)
23742 as_nl='
23743 '
23744 IFS=" ""        $as_nl"
23745
23746 # Find who we are.  Look in the path if we contain no directory separator.
23747 case $0 in
23748   *[\\/]* ) as_myself=$0 ;;
23749   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23750 for as_dir in $PATH
23751 do
23752   IFS=$as_save_IFS
23753   test -z "$as_dir" && as_dir=.
23754   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23755 done
23756 IFS=$as_save_IFS
23757
23758      ;;
23759 esac
23760 # We did not find ourselves, most probably we were run as `sh COMMAND'
23761 # in which case we are not to be found in the path.
23762 if test "x$as_myself" = x; then
23763   as_myself=$0
23764 fi
23765 if test ! -f "$as_myself"; then
23766   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23767   { (exit 1); exit 1; }
23768 fi
23769
23770 # Work around bugs in pre-3.0 UWIN ksh.
23771 for as_var in ENV MAIL MAILPATH
23772 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23773 done
23774 PS1='$ '
23775 PS2='> '
23776 PS4='+ '
23777
23778 # NLS nuisances.
23779 for as_var in \
23780   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23781   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23782   LC_TELEPHONE LC_TIME
23783 do
23784   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23785     eval $as_var=C; export $as_var
23786   else
23787     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23788   fi
23789 done
23790
23791 # Required to use basename.
23792 if expr a : '\(a\)' >/dev/null 2>&1 &&
23793    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23794   as_expr=expr
23795 else
23796   as_expr=false
23797 fi
23798
23799 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23800   as_basename=basename
23801 else
23802   as_basename=false
23803 fi
23804
23805
23806 # Name of the executable.
23807 as_me=`$as_basename -- "$0" ||
23808 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23809          X"$0" : 'X\(//\)$' \| \
23810          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23811 echo X/"$0" |
23812     sed '/^.*\/\([^/][^/]*\)\/*$/{
23813             s//\1/
23814             q
23815           }
23816           /^X\/\(\/\/\)$/{
23817             s//\1/
23818             q
23819           }
23820           /^X\/\(\/\).*/{
23821             s//\1/
23822             q
23823           }
23824           s/.*/./; q'`
23825
23826 # CDPATH.
23827 $as_unset CDPATH
23828
23829
23830
23831   as_lineno_1=$LINENO
23832   as_lineno_2=$LINENO
23833   test "x$as_lineno_1" != "x$as_lineno_2" &&
23834   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23835
23836   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23837   # uniformly replaced by the line number.  The first 'sed' inserts a
23838   # line-number line after each line using $LINENO; the second 'sed'
23839   # does the real work.  The second script uses 'N' to pair each
23840   # line-number line with the line containing $LINENO, and appends
23841   # trailing '-' during substitution so that $LINENO is not a special
23842   # case at line end.
23843   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23844   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23845   # E. McMahon (1931-1989) for sed's syntax.  :-)
23846   sed -n '
23847     p
23848     /[$]LINENO/=
23849   ' <$as_myself |
23850     sed '
23851       s/[$]LINENO.*/&-/
23852       t lineno
23853       b
23854       :lineno
23855       N
23856       :loop
23857       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23858       t loop
23859       s/-\n.*//
23860     ' >$as_me.lineno &&
23861   chmod +x "$as_me.lineno" ||
23862     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23863    { (exit 1); exit 1; }; }
23864
23865   # Don't try to exec as it changes $[0], causing all sort of problems
23866   # (the dirname of $[0] is not the place where we might find the
23867   # original and so on.  Autoconf is especially sensitive to this).
23868   . "./$as_me.lineno"
23869   # Exit status is that of the last command.
23870   exit
23871 }
23872
23873
23874 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23875   as_dirname=dirname
23876 else
23877   as_dirname=false
23878 fi
23879
23880 ECHO_C= ECHO_N= ECHO_T=
23881 case `echo -n x` in
23882 -n*)
23883   case `echo 'x\c'` in
23884   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23885   *)   ECHO_C='\c';;
23886   esac;;
23887 *)
23888   ECHO_N='-n';;
23889 esac
23890
23891 if expr a : '\(a\)' >/dev/null 2>&1 &&
23892    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23893   as_expr=expr
23894 else
23895   as_expr=false
23896 fi
23897
23898 rm -f conf$$ conf$$.exe conf$$.file
23899 if test -d conf$$.dir; then
23900   rm -f conf$$.dir/conf$$.file
23901 else
23902   rm -f conf$$.dir
23903   mkdir conf$$.dir
23904 fi
23905 echo >conf$$.file
23906 if ln -s conf$$.file conf$$ 2>/dev/null; then
23907   as_ln_s='ln -s'
23908   # ... but there are two gotchas:
23909   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23910   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23911   # In both cases, we have to default to `cp -p'.
23912   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23913     as_ln_s='cp -p'
23914 elif ln conf$$.file conf$$ 2>/dev/null; then
23915   as_ln_s=ln
23916 else
23917   as_ln_s='cp -p'
23918 fi
23919 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23920 rmdir conf$$.dir 2>/dev/null
23921
23922 if mkdir -p . 2>/dev/null; then
23923   as_mkdir_p=:
23924 else
23925   test -d ./-p && rmdir ./-p
23926   as_mkdir_p=false
23927 fi
23928
23929 if test -x / >/dev/null 2>&1; then
23930   as_test_x='test -x'
23931 else
23932   if ls -dL / >/dev/null 2>&1; then
23933     as_ls_L_option=L
23934   else
23935     as_ls_L_option=
23936   fi
23937   as_test_x='
23938     eval sh -c '\''
23939       if test -d "$1"; then
23940         test -d "$1/.";
23941       else
23942         case $1 in
23943         -*)set "./$1";;
23944         esac;
23945         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23946         ???[sx]*):;;*)false;;esac;fi
23947     '\'' sh
23948   '
23949 fi
23950 as_executable_p=$as_test_x
23951
23952 # Sed expression to map a string onto a valid CPP name.
23953 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23954
23955 # Sed expression to map a string onto a valid variable name.
23956 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23957
23958
23959 exec 6>&1
23960
23961 # Save the log message, to keep $[0] and so on meaningful, and to
23962 # report actual input values of CONFIG_FILES etc. instead of their
23963 # values after options handling.
23964 ac_log="
23965 This file was extended by glog $as_me 0.1.2, which was
23966 generated by GNU Autoconf 2.61.  Invocation command line was
23967
23968   CONFIG_FILES    = $CONFIG_FILES
23969   CONFIG_HEADERS  = $CONFIG_HEADERS
23970   CONFIG_LINKS    = $CONFIG_LINKS
23971   CONFIG_COMMANDS = $CONFIG_COMMANDS
23972   $ $0 $@
23973
23974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23975 "
23976
23977 _ACEOF
23978
23979 cat >>$CONFIG_STATUS <<_ACEOF
23980 # Files that config.status was made for.
23981 config_files="$ac_config_files"
23982 config_headers="$ac_config_headers"
23983 config_commands="$ac_config_commands"
23984
23985 _ACEOF
23986
23987 cat >>$CONFIG_STATUS <<\_ACEOF
23988 ac_cs_usage="\
23989 \`$as_me' instantiates files from templates according to the
23990 current configuration.
23991
23992 Usage: $0 [OPTIONS] [FILE]...
23993
23994   -h, --help       print this help, then exit
23995   -V, --version    print version number and configuration settings, then exit
23996   -q, --quiet      do not print progress messages
23997   -d, --debug      don't remove temporary files
23998       --recheck    update $as_me by reconfiguring in the same conditions
23999   --file=FILE[:TEMPLATE]
24000                    instantiate the configuration file FILE
24001   --header=FILE[:TEMPLATE]
24002                    instantiate the configuration header FILE
24003
24004 Configuration files:
24005 $config_files
24006
24007 Configuration headers:
24008 $config_headers
24009
24010 Configuration commands:
24011 $config_commands
24012
24013 Report bugs to <bug-autoconf@gnu.org>."
24014
24015 _ACEOF
24016 cat >>$CONFIG_STATUS <<_ACEOF
24017 ac_cs_version="\\
24018 glog config.status 0.1.2
24019 configured by $0, generated by GNU Autoconf 2.61,
24020   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24021
24022 Copyright (C) 2006 Free Software Foundation, Inc.
24023 This config.status script is free software; the Free Software Foundation
24024 gives unlimited permission to copy, distribute and modify it."
24025
24026 ac_pwd='$ac_pwd'
24027 srcdir='$srcdir'
24028 INSTALL='$INSTALL'
24029 MKDIR_P='$MKDIR_P'
24030 _ACEOF
24031
24032 cat >>$CONFIG_STATUS <<\_ACEOF
24033 # If no file are specified by the user, then we need to provide default
24034 # value.  By we need to know if files were specified by the user.
24035 ac_need_defaults=:
24036 while test $# != 0
24037 do
24038   case $1 in
24039   --*=*)
24040     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24041     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24042     ac_shift=:
24043     ;;
24044   *)
24045     ac_option=$1
24046     ac_optarg=$2
24047     ac_shift=shift
24048     ;;
24049   esac
24050
24051   case $ac_option in
24052   # Handling of the options.
24053   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24054     ac_cs_recheck=: ;;
24055   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24056     echo "$ac_cs_version"; exit ;;
24057   --debug | --debu | --deb | --de | --d | -d )
24058     debug=: ;;
24059   --file | --fil | --fi | --f )
24060     $ac_shift
24061     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24062     ac_need_defaults=false;;
24063   --header | --heade | --head | --hea )
24064     $ac_shift
24065     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24066     ac_need_defaults=false;;
24067   --he | --h)
24068     # Conflict between --help and --header
24069     { echo "$as_me: error: ambiguous option: $1
24070 Try \`$0 --help' for more information." >&2
24071    { (exit 1); exit 1; }; };;
24072   --help | --hel | -h )
24073     echo "$ac_cs_usage"; exit ;;
24074   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24075   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24076     ac_cs_silent=: ;;
24077
24078   # This is an error.
24079   -*) { echo "$as_me: error: unrecognized option: $1
24080 Try \`$0 --help' for more information." >&2
24081    { (exit 1); exit 1; }; } ;;
24082
24083   *) ac_config_targets="$ac_config_targets $1"
24084      ac_need_defaults=false ;;
24085
24086   esac
24087   shift
24088 done
24089
24090 ac_configure_extra_args=
24091
24092 if $ac_cs_silent; then
24093   exec 6>/dev/null
24094   ac_configure_extra_args="$ac_configure_extra_args --silent"
24095 fi
24096
24097 _ACEOF
24098 cat >>$CONFIG_STATUS <<_ACEOF
24099 if \$ac_cs_recheck; then
24100   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24101   CONFIG_SHELL=$SHELL
24102   export CONFIG_SHELL
24103   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24104 fi
24105
24106 _ACEOF
24107 cat >>$CONFIG_STATUS <<\_ACEOF
24108 exec 5>>config.log
24109 {
24110   echo
24111   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24112 ## Running $as_me. ##
24113 _ASBOX
24114   echo "$ac_log"
24115 } >&5
24116
24117 _ACEOF
24118 cat >>$CONFIG_STATUS <<_ACEOF
24119 #
24120 # INIT-COMMANDS
24121 #
24122 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24123
24124 _ACEOF
24125
24126 cat >>$CONFIG_STATUS <<\_ACEOF
24127
24128 # Handling of arguments.
24129 for ac_config_target in $ac_config_targets
24130 do
24131   case $ac_config_target in
24132     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
24133     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24134     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24135     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
24136     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
24137     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
24138     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
24139
24140   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24141 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24142    { (exit 1); exit 1; }; };;
24143   esac
24144 done
24145
24146
24147 # If the user did not use the arguments to specify the items to instantiate,
24148 # then the envvar interface is used.  Set only those that are not.
24149 # We use the long form for the default assignment because of an extremely
24150 # bizarre bug on SunOS 4.1.3.
24151 if $ac_need_defaults; then
24152   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24153   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24154   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24155 fi
24156
24157 # Have a temporary directory for convenience.  Make it in the build tree
24158 # simply because there is no reason against having it here, and in addition,
24159 # creating and moving files from /tmp can sometimes cause problems.
24160 # Hook for its removal unless debugging.
24161 # Note that there is a small window in which the directory will not be cleaned:
24162 # after its creation but before its name has been assigned to `$tmp'.
24163 $debug ||
24164 {
24165   tmp=
24166   trap 'exit_status=$?
24167   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24168 ' 0
24169   trap '{ (exit 1); exit 1; }' 1 2 13 15
24170 }
24171 # Create a (secure) tmp directory for tmp files.
24172
24173 {
24174   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24175   test -n "$tmp" && test -d "$tmp"
24176 }  ||
24177 {
24178   tmp=./conf$$-$RANDOM
24179   (umask 077 && mkdir "$tmp")
24180 } ||
24181 {
24182    echo "$me: cannot create a temporary directory in ." >&2
24183    { (exit 1); exit 1; }
24184 }
24185
24186 #
24187 # Set up the sed scripts for CONFIG_FILES section.
24188 #
24189
24190 # No need to generate the scripts if there are no CONFIG_FILES.
24191 # This happens for instance when ./config.status config.h
24192 if test -n "$CONFIG_FILES"; then
24193
24194 _ACEOF
24195
24196
24197
24198 ac_delim='%!_!# '
24199 for ac_last_try in false false false false false :; do
24200   cat >conf$$subs.sed <<_ACEOF
24201 SHELL!$SHELL$ac_delim
24202 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24203 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24204 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24205 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24206 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24207 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24208 exec_prefix!$exec_prefix$ac_delim
24209 prefix!$prefix$ac_delim
24210 program_transform_name!$program_transform_name$ac_delim
24211 bindir!$bindir$ac_delim
24212 sbindir!$sbindir$ac_delim
24213 libexecdir!$libexecdir$ac_delim
24214 datarootdir!$datarootdir$ac_delim
24215 datadir!$datadir$ac_delim
24216 sysconfdir!$sysconfdir$ac_delim
24217 sharedstatedir!$sharedstatedir$ac_delim
24218 localstatedir!$localstatedir$ac_delim
24219 includedir!$includedir$ac_delim
24220 oldincludedir!$oldincludedir$ac_delim
24221 docdir!$docdir$ac_delim
24222 infodir!$infodir$ac_delim
24223 htmldir!$htmldir$ac_delim
24224 dvidir!$dvidir$ac_delim
24225 pdfdir!$pdfdir$ac_delim
24226 psdir!$psdir$ac_delim
24227 libdir!$libdir$ac_delim
24228 localedir!$localedir$ac_delim
24229 mandir!$mandir$ac_delim
24230 DEFS!$DEFS$ac_delim
24231 ECHO_C!$ECHO_C$ac_delim
24232 ECHO_N!$ECHO_N$ac_delim
24233 ECHO_T!$ECHO_T$ac_delim
24234 LIBS!$LIBS$ac_delim
24235 build_alias!$build_alias$ac_delim
24236 host_alias!$host_alias$ac_delim
24237 target_alias!$target_alias$ac_delim
24238 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24239 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24240 INSTALL_DATA!$INSTALL_DATA$ac_delim
24241 am__isrc!$am__isrc$ac_delim
24242 CYGPATH_W!$CYGPATH_W$ac_delim
24243 PACKAGE!$PACKAGE$ac_delim
24244 VERSION!$VERSION$ac_delim
24245 ACLOCAL!$ACLOCAL$ac_delim
24246 AUTOCONF!$AUTOCONF$ac_delim
24247 AUTOMAKE!$AUTOMAKE$ac_delim
24248 AUTOHEADER!$AUTOHEADER$ac_delim
24249 MAKEINFO!$MAKEINFO$ac_delim
24250 install_sh!$install_sh$ac_delim
24251 STRIP!$STRIP$ac_delim
24252 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24253 mkdir_p!$mkdir_p$ac_delim
24254 AWK!$AWK$ac_delim
24255 SET_MAKE!$SET_MAKE$ac_delim
24256 am__leading_dot!$am__leading_dot$ac_delim
24257 AMTAR!$AMTAR$ac_delim
24258 am__tar!$am__tar$ac_delim
24259 am__untar!$am__untar$ac_delim
24260 CC!$CC$ac_delim
24261 CFLAGS!$CFLAGS$ac_delim
24262 LDFLAGS!$LDFLAGS$ac_delim
24263 CPPFLAGS!$CPPFLAGS$ac_delim
24264 ac_ct_CC!$ac_ct_CC$ac_delim
24265 EXEEXT!$EXEEXT$ac_delim
24266 OBJEXT!$OBJEXT$ac_delim
24267 DEPDIR!$DEPDIR$ac_delim
24268 am__include!$am__include$ac_delim
24269 am__quote!$am__quote$ac_delim
24270 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24271 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24272 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24273 CCDEPMODE!$CCDEPMODE$ac_delim
24274 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24275 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24276 CPP!$CPP$ac_delim
24277 CXX!$CXX$ac_delim
24278 CXXFLAGS!$CXXFLAGS$ac_delim
24279 ac_ct_CXX!$ac_ct_CXX$ac_delim
24280 CXXDEPMODE!$CXXDEPMODE$ac_delim
24281 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24282 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24283 GCC_TRUE!$GCC_TRUE$ac_delim
24284 GCC_FALSE!$GCC_FALSE$ac_delim
24285 build!$build$ac_delim
24286 build_cpu!$build_cpu$ac_delim
24287 build_vendor!$build_vendor$ac_delim
24288 build_os!$build_os$ac_delim
24289 host!$host$ac_delim
24290 host_cpu!$host_cpu$ac_delim
24291 host_vendor!$host_vendor$ac_delim
24292 host_os!$host_os$ac_delim
24293 SED!$SED$ac_delim
24294 GREP!$GREP$ac_delim
24295 EGREP!$EGREP$ac_delim
24296 LN_S!$LN_S$ac_delim
24297 ECHO!$ECHO$ac_delim
24298 _ACEOF
24299
24300   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24301     break
24302   elif $ac_last_try; then
24303     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24304 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24305    { (exit 1); exit 1; }; }
24306   else
24307     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24308   fi
24309 done
24310
24311 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24312 if test -n "$ac_eof"; then
24313   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24314   ac_eof=`expr $ac_eof + 1`
24315 fi
24316
24317 cat >>$CONFIG_STATUS <<_ACEOF
24318 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24320 _ACEOF
24321 sed '
24322 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24323 s/^/s,@/; s/!/@,|#_!!_#|/
24324 :n
24325 t n
24326 s/'"$ac_delim"'$/,g/; t
24327 s/$/\\/; p
24328 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24329 ' >>$CONFIG_STATUS <conf$$subs.sed
24330 rm -f conf$$subs.sed
24331 cat >>$CONFIG_STATUS <<_ACEOF
24332 CEOF$ac_eof
24333 _ACEOF
24334
24335
24336 ac_delim='%!_!# '
24337 for ac_last_try in false false false false false :; do
24338   cat >conf$$subs.sed <<_ACEOF
24339 AR!$AR$ac_delim
24340 RANLIB!$RANLIB$ac_delim
24341 DSYMUTIL!$DSYMUTIL$ac_delim
24342 NMEDIT!$NMEDIT$ac_delim
24343 CXXCPP!$CXXCPP$ac_delim
24344 F77!$F77$ac_delim
24345 FFLAGS!$FFLAGS$ac_delim
24346 ac_ct_F77!$ac_ct_F77$ac_delim
24347 LIBTOOL!$LIBTOOL$ac_delim
24348 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
24349 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
24350 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
24351 X86_64_TRUE!$X86_64_TRUE$ac_delim
24352 X86_64_FALSE!$X86_64_FALSE$ac_delim
24353 acx_pthread_config!$acx_pthread_config$ac_delim
24354 PTHREAD_CC!$PTHREAD_CC$ac_delim
24355 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
24356 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
24357 UNWIND_LIBS!$UNWIND_LIBS$ac_delim
24358 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
24359 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
24360 ac_google_namespace!$ac_google_namespace$ac_delim
24361 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
24362 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
24363 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
24364 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
24365 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
24366 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
24367 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
24368 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
24369 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
24370 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
24371 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
24372 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
24373 LIBOBJS!$LIBOBJS$ac_delim
24374 LTLIBOBJS!$LTLIBOBJS$ac_delim
24375 _ACEOF
24376
24377   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 36; then
24378     break
24379   elif $ac_last_try; then
24380     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24381 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24382    { (exit 1); exit 1; }; }
24383   else
24384     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24385   fi
24386 done
24387
24388 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24389 if test -n "$ac_eof"; then
24390   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24391   ac_eof=`expr $ac_eof + 1`
24392 fi
24393
24394 cat >>$CONFIG_STATUS <<_ACEOF
24395 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24397 _ACEOF
24398 sed '
24399 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24400 s/^/s,@/; s/!/@,|#_!!_#|/
24401 :n
24402 t n
24403 s/'"$ac_delim"'$/,g/; t
24404 s/$/\\/; p
24405 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24406 ' >>$CONFIG_STATUS <conf$$subs.sed
24407 rm -f conf$$subs.sed
24408 cat >>$CONFIG_STATUS <<_ACEOF
24409 :end
24410 s/|#_!!_#|//g
24411 CEOF$ac_eof
24412 _ACEOF
24413
24414
24415 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24416 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24417 # trailing colons and then remove the whole line if VPATH becomes empty
24418 # (actually we leave an empty line to preserve line numbers).
24419 if test "x$srcdir" = x.; then
24420   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24421 s/:*\$(srcdir):*/:/
24422 s/:*\${srcdir}:*/:/
24423 s/:*@srcdir@:*/:/
24424 s/^\([^=]*=[     ]*\):*/\1/
24425 s/:*$//
24426 s/^[^=]*=[       ]*$//
24427 }'
24428 fi
24429
24430 cat >>$CONFIG_STATUS <<\_ACEOF
24431 fi # test -n "$CONFIG_FILES"
24432
24433
24434 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24435 do
24436   case $ac_tag in
24437   :[FHLC]) ac_mode=$ac_tag; continue;;
24438   esac
24439   case $ac_mode$ac_tag in
24440   :[FHL]*:*);;
24441   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24442 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24443    { (exit 1); exit 1; }; };;
24444   :[FH]-) ac_tag=-:-;;
24445   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24446   esac
24447   ac_save_IFS=$IFS
24448   IFS=:
24449   set x $ac_tag
24450   IFS=$ac_save_IFS
24451   shift
24452   ac_file=$1
24453   shift
24454
24455   case $ac_mode in
24456   :L) ac_source=$1;;
24457   :[FH])
24458     ac_file_inputs=
24459     for ac_f
24460     do
24461       case $ac_f in
24462       -) ac_f="$tmp/stdin";;
24463       *) # Look for the file first in the build tree, then in the source tree
24464          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24465          # because $ac_f cannot contain `:'.
24466          test -f "$ac_f" ||
24467            case $ac_f in
24468            [\\/$]*) false;;
24469            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24470            esac ||
24471            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24472 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24473    { (exit 1); exit 1; }; };;
24474       esac
24475       ac_file_inputs="$ac_file_inputs $ac_f"
24476     done
24477
24478     # Let's still pretend it is `configure' which instantiates (i.e., don't
24479     # use $as_me), people would be surprised to read:
24480     #    /* config.h.  Generated by config.status.  */
24481     configure_input="Generated from "`IFS=:
24482           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24483     if test x"$ac_file" != x-; then
24484       configure_input="$ac_file.  $configure_input"
24485       { echo "$as_me:$LINENO: creating $ac_file" >&5
24486 echo "$as_me: creating $ac_file" >&6;}
24487     fi
24488
24489     case $ac_tag in
24490     *:-:* | *:-) cat >"$tmp/stdin";;
24491     esac
24492     ;;
24493   esac
24494
24495   ac_dir=`$as_dirname -- "$ac_file" ||
24496 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24497          X"$ac_file" : 'X\(//\)[^/]' \| \
24498          X"$ac_file" : 'X\(//\)$' \| \
24499          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24500 echo X"$ac_file" |
24501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24502             s//\1/
24503             q
24504           }
24505           /^X\(\/\/\)[^/].*/{
24506             s//\1/
24507             q
24508           }
24509           /^X\(\/\/\)$/{
24510             s//\1/
24511             q
24512           }
24513           /^X\(\/\).*/{
24514             s//\1/
24515             q
24516           }
24517           s/.*/./; q'`
24518   { as_dir="$ac_dir"
24519   case $as_dir in #(
24520   -*) as_dir=./$as_dir;;
24521   esac
24522   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24523     as_dirs=
24524     while :; do
24525       case $as_dir in #(
24526       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24527       *) as_qdir=$as_dir;;
24528       esac
24529       as_dirs="'$as_qdir' $as_dirs"
24530       as_dir=`$as_dirname -- "$as_dir" ||
24531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24532          X"$as_dir" : 'X\(//\)[^/]' \| \
24533          X"$as_dir" : 'X\(//\)$' \| \
24534          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24535 echo X"$as_dir" |
24536     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24537             s//\1/
24538             q
24539           }
24540           /^X\(\/\/\)[^/].*/{
24541             s//\1/
24542             q
24543           }
24544           /^X\(\/\/\)$/{
24545             s//\1/
24546             q
24547           }
24548           /^X\(\/\).*/{
24549             s//\1/
24550             q
24551           }
24552           s/.*/./; q'`
24553       test -d "$as_dir" && break
24554     done
24555     test -z "$as_dirs" || eval "mkdir $as_dirs"
24556   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24557 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24558    { (exit 1); exit 1; }; }; }
24559   ac_builddir=.
24560
24561 case "$ac_dir" in
24562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24563 *)
24564   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24565   # A ".." for each directory in $ac_dir_suffix.
24566   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24567   case $ac_top_builddir_sub in
24568   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24569   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24570   esac ;;
24571 esac
24572 ac_abs_top_builddir=$ac_pwd
24573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24574 # for backward compatibility:
24575 ac_top_builddir=$ac_top_build_prefix
24576
24577 case $srcdir in
24578   .)  # We are building in place.
24579     ac_srcdir=.
24580     ac_top_srcdir=$ac_top_builddir_sub
24581     ac_abs_top_srcdir=$ac_pwd ;;
24582   [\\/]* | ?:[\\/]* )  # Absolute name.
24583     ac_srcdir=$srcdir$ac_dir_suffix;
24584     ac_top_srcdir=$srcdir
24585     ac_abs_top_srcdir=$srcdir ;;
24586   *) # Relative name.
24587     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24588     ac_top_srcdir=$ac_top_build_prefix$srcdir
24589     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24590 esac
24591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24592
24593
24594   case $ac_mode in
24595   :F)
24596   #
24597   # CONFIG_FILE
24598   #
24599
24600   case $INSTALL in
24601   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24602   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24603   esac
24604   ac_MKDIR_P=$MKDIR_P
24605   case $MKDIR_P in
24606   [\\/$]* | ?:[\\/]* ) ;;
24607   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24608   esac
24609 _ACEOF
24610
24611 cat >>$CONFIG_STATUS <<\_ACEOF
24612 # If the template does not know about datarootdir, expand it.
24613 # FIXME: This hack should be removed a few years after 2.60.
24614 ac_datarootdir_hack=; ac_datarootdir_seen=
24615
24616 case `sed -n '/datarootdir/ {
24617   p
24618   q
24619 }
24620 /@datadir@/p
24621 /@docdir@/p
24622 /@infodir@/p
24623 /@localedir@/p
24624 /@mandir@/p
24625 ' $ac_file_inputs` in
24626 *datarootdir*) ac_datarootdir_seen=yes;;
24627 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24628   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24629 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24630 _ACEOF
24631 cat >>$CONFIG_STATUS <<_ACEOF
24632   ac_datarootdir_hack='
24633   s&@datadir@&$datadir&g
24634   s&@docdir@&$docdir&g
24635   s&@infodir@&$infodir&g
24636   s&@localedir@&$localedir&g
24637   s&@mandir@&$mandir&g
24638     s&\\\${datarootdir}&$datarootdir&g' ;;
24639 esac
24640 _ACEOF
24641
24642 # Neutralize VPATH when `$srcdir' = `.'.
24643 # Shell code in configure.ac might set extrasub.
24644 # FIXME: do we really want to maintain this feature?
24645 cat >>$CONFIG_STATUS <<_ACEOF
24646   sed "$ac_vpsub
24647 $extrasub
24648 _ACEOF
24649 cat >>$CONFIG_STATUS <<\_ACEOF
24650 :t
24651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24652 s&@configure_input@&$configure_input&;t t
24653 s&@top_builddir@&$ac_top_builddir_sub&;t t
24654 s&@srcdir@&$ac_srcdir&;t t
24655 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24656 s&@top_srcdir@&$ac_top_srcdir&;t t
24657 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24658 s&@builddir@&$ac_builddir&;t t
24659 s&@abs_builddir@&$ac_abs_builddir&;t t
24660 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24661 s&@INSTALL@&$ac_INSTALL&;t t
24662 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24663 $ac_datarootdir_hack
24664 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24665
24666 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24667   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24668   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24669   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24670 which seems to be undefined.  Please make sure it is defined." >&5
24671 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24672 which seems to be undefined.  Please make sure it is defined." >&2;}
24673
24674   rm -f "$tmp/stdin"
24675   case $ac_file in
24676   -) cat "$tmp/out"; rm -f "$tmp/out";;
24677   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24678   esac
24679  ;;
24680   :H)
24681   #
24682   # CONFIG_HEADER
24683   #
24684 _ACEOF
24685
24686 # Transform confdefs.h into a sed script `conftest.defines', that
24687 # substitutes the proper values into config.h.in to produce config.h.
24688 rm -f conftest.defines conftest.tail
24689 # First, append a space to every undef/define line, to ease matching.
24690 echo 's/$/ /' >conftest.defines
24691 # Then, protect against being on the right side of a sed subst, or in
24692 # an unquoted here document, in config.status.  If some macros were
24693 # called several times there might be several #defines for the same
24694 # symbol, which is useless.  But do not sort them, since the last
24695 # AC_DEFINE must be honored.
24696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24697 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24698 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24699 # PARAMS is the parameter list in the macro definition--in most cases, it's
24700 # just an empty string.
24701 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24702 ac_dB='\\)[      (].*,\\1define\\2'
24703 ac_dC=' '
24704 ac_dD=' ,'
24705
24706 uniq confdefs.h |
24707   sed -n '
24708         t rset
24709         :rset
24710         s/^[     ]*#[    ]*define[       ][      ]*//
24711         t ok
24712         d
24713         :ok
24714         s/[\\&,]/\\&/g
24715         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24716         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24717   ' >>conftest.defines
24718
24719 # Remove the space that was appended to ease matching.
24720 # Then replace #undef with comments.  This is necessary, for
24721 # example, in the case of _POSIX_SOURCE, which is predefined and required
24722 # on some systems where configure will not decide to define it.
24723 # (The regexp can be short, since the line contains either #define or #undef.)
24724 echo 's/ $//
24725 s,^[     #]*u.*,/* & */,' >>conftest.defines
24726
24727 # Break up conftest.defines:
24728 ac_max_sed_lines=50
24729
24730 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24731 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24732 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24733 # et cetera.
24734 ac_in='$ac_file_inputs'
24735 ac_out='"$tmp/out1"'
24736 ac_nxt='"$tmp/out2"'
24737
24738 while :
24739 do
24740   # Write a here document:
24741     cat >>$CONFIG_STATUS <<_ACEOF
24742     # First, check the format of the line:
24743     cat >"\$tmp/defines.sed" <<\\CEOF
24744 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24745 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24746 b
24747 :def
24748 _ACEOF
24749   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24750   echo 'CEOF
24751     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24752   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24753   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24754   grep . conftest.tail >/dev/null || break
24755   rm -f conftest.defines
24756   mv conftest.tail conftest.defines
24757 done
24758 rm -f conftest.defines conftest.tail
24759
24760 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24761 cat >>$CONFIG_STATUS <<\_ACEOF
24762   if test x"$ac_file" != x-; then
24763     echo "/* $configure_input  */" >"$tmp/config.h"
24764     cat "$ac_result" >>"$tmp/config.h"
24765     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24766       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24767 echo "$as_me: $ac_file is unchanged" >&6;}
24768     else
24769       rm -f $ac_file
24770       mv "$tmp/config.h" $ac_file
24771     fi
24772   else
24773     echo "/* $configure_input  */"
24774     cat "$ac_result"
24775   fi
24776   rm -f "$tmp/out12"
24777 # Compute $ac_file's index in $config_headers.
24778 _am_arg=$ac_file
24779 _am_stamp_count=1
24780 for _am_header in $config_headers :; do
24781   case $_am_header in
24782     $_am_arg | $_am_arg:* )
24783       break ;;
24784     * )
24785       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24786   esac
24787 done
24788 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24789 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24790          X"$_am_arg" : 'X\(//\)[^/]' \| \
24791          X"$_am_arg" : 'X\(//\)$' \| \
24792          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24793 echo X"$_am_arg" |
24794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24795             s//\1/
24796             q
24797           }
24798           /^X\(\/\/\)[^/].*/{
24799             s//\1/
24800             q
24801           }
24802           /^X\(\/\/\)$/{
24803             s//\1/
24804             q
24805           }
24806           /^X\(\/\).*/{
24807             s//\1/
24808             q
24809           }
24810           s/.*/./; q'`/stamp-h$_am_stamp_count
24811  ;;
24812
24813   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24814 echo "$as_me: executing $ac_file commands" >&6;}
24815  ;;
24816   esac
24817
24818
24819   case $ac_file$ac_mode in
24820     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24821   # Strip MF so we end up with the name of the file.
24822   mf=`echo "$mf" | sed -e 's/:.*$//'`
24823   # Check whether this is an Automake generated Makefile or not.
24824   # We used to match only the files named `Makefile.in', but
24825   # some people rename them; so instead we look at the file content.
24826   # Grep'ing the first line is not enough: some people post-process
24827   # each Makefile.in and add a new line on top of each file to say so.
24828   # Grep'ing the whole file is not good either: AIX grep has a line
24829   # limit of 2048, but all sed's we know have understand at least 4000.
24830   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24831     dirpart=`$as_dirname -- "$mf" ||
24832 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24833          X"$mf" : 'X\(//\)[^/]' \| \
24834          X"$mf" : 'X\(//\)$' \| \
24835          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24836 echo X"$mf" |
24837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24838             s//\1/
24839             q
24840           }
24841           /^X\(\/\/\)[^/].*/{
24842             s//\1/
24843             q
24844           }
24845           /^X\(\/\/\)$/{
24846             s//\1/
24847             q
24848           }
24849           /^X\(\/\).*/{
24850             s//\1/
24851             q
24852           }
24853           s/.*/./; q'`
24854   else
24855     continue
24856   fi
24857   # Extract the definition of DEPDIR, am__include, and am__quote
24858   # from the Makefile without running `make'.
24859   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24860   test -z "$DEPDIR" && continue
24861   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24862   test -z "am__include" && continue
24863   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24864   # When using ansi2knr, U may be empty or an underscore; expand it
24865   U=`sed -n 's/^U = //p' < "$mf"`
24866   # Find all dependency output files, they are included files with
24867   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24868   # simplest approach to changing $(DEPDIR) to its actual value in the
24869   # expansion.
24870   for file in `sed -n "
24871     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24872        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24873     # Make sure the directory exists.
24874     test -f "$dirpart/$file" && continue
24875     fdir=`$as_dirname -- "$file" ||
24876 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24877          X"$file" : 'X\(//\)[^/]' \| \
24878          X"$file" : 'X\(//\)$' \| \
24879          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24880 echo X"$file" |
24881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24882             s//\1/
24883             q
24884           }
24885           /^X\(\/\/\)[^/].*/{
24886             s//\1/
24887             q
24888           }
24889           /^X\(\/\/\)$/{
24890             s//\1/
24891             q
24892           }
24893           /^X\(\/\).*/{
24894             s//\1/
24895             q
24896           }
24897           s/.*/./; q'`
24898     { as_dir=$dirpart/$fdir
24899   case $as_dir in #(
24900   -*) as_dir=./$as_dir;;
24901   esac
24902   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24903     as_dirs=
24904     while :; do
24905       case $as_dir in #(
24906       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24907       *) as_qdir=$as_dir;;
24908       esac
24909       as_dirs="'$as_qdir' $as_dirs"
24910       as_dir=`$as_dirname -- "$as_dir" ||
24911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24912          X"$as_dir" : 'X\(//\)[^/]' \| \
24913          X"$as_dir" : 'X\(//\)$' \| \
24914          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24915 echo X"$as_dir" |
24916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24917             s//\1/
24918             q
24919           }
24920           /^X\(\/\/\)[^/].*/{
24921             s//\1/
24922             q
24923           }
24924           /^X\(\/\/\)$/{
24925             s//\1/
24926             q
24927           }
24928           /^X\(\/\).*/{
24929             s//\1/
24930             q
24931           }
24932           s/.*/./; q'`
24933       test -d "$as_dir" && break
24934     done
24935     test -z "$as_dirs" || eval "mkdir $as_dirs"
24936   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24937 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24938    { (exit 1); exit 1; }; }; }
24939     # echo "creating $dirpart/$file"
24940     echo '# dummy' > "$dirpart/$file"
24941   done
24942 done
24943  ;;
24944
24945   esac
24946 done # for ac_tag
24947
24948
24949 { (exit 0); exit 0; }
24950 _ACEOF
24951 chmod +x $CONFIG_STATUS
24952 ac_clean_files=$ac_clean_files_save
24953
24954
24955 # configure is writing to config.log, and then calls config.status.
24956 # config.status does its own redirection, appending to config.log.
24957 # Unfortunately, on DOS this fails, as config.log is still kept open
24958 # by configure, so config.status won't be able to write to it; its
24959 # output is simply discarded.  So we exec the FD to /dev/null,
24960 # effectively closing config.log, so it can be properly (re)opened and
24961 # appended to by config.status.  When coming back to configure, we
24962 # need to make the FD available again.
24963 if test "$no_create" != yes; then
24964   ac_cs_success=:
24965   ac_config_status_args=
24966   test "$silent" = yes &&
24967     ac_config_status_args="$ac_config_status_args --quiet"
24968   exec 5>/dev/null
24969   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24970   exec 5>>config.log
24971   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24972   # would make configure fail if this is the last instruction.
24973   $ac_cs_success || { (exit 1); exit 1; }
24974 fi
24975