ae51b2914bd7d9f0ea282166f0d52d159d1a7b37
[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.1.
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.1'
732 PACKAGE_STRING='glog 0.1.1'
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 ac_google_start_namespace
888 ac_google_end_namespace
889 ac_google_namespace
890 ac_cv_cxx_using_operator
891 ac_cv___attribute___noreturn
892 ac_cv___attribute___printf_4_5
893 ac_cv_have___builtin_expect
894 ac_cv_have_stdint_h
895 ac_cv_have_systypes_h
896 ac_cv_have_inttypes_h
897 ac_cv_have_uint16_t
898 ac_cv_have_u_int16_t
899 ac_cv_have___uint16
900 ac_cv_have_libgflags
901 GFLAGS_LIBS
902 LIBOBJS
903 LTLIBOBJS'
904 ac_subst_files=''
905       ac_precious_vars='build_alias
906 host_alias
907 target_alias
908 CC
909 CFLAGS
910 LDFLAGS
911 LIBS
912 CPPFLAGS
913 CPP
914 CXX
915 CXXFLAGS
916 CCC
917 CXXCPP
918 F77
919 FFLAGS'
920
921
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 # The variables have the same names as the options, with
926 # dashes changed to underlines.
927 cache_file=/dev/null
928 exec_prefix=NONE
929 no_create=
930 no_recursion=
931 prefix=NONE
932 program_prefix=NONE
933 program_suffix=NONE
934 program_transform_name=s,x,x,
935 silent=
936 site=
937 srcdir=
938 verbose=
939 x_includes=NONE
940 x_libraries=NONE
941
942 # Installation directory options.
943 # These are left unexpanded so users can "make install exec_prefix=/foo"
944 # and all the variables that are supposed to be based on exec_prefix
945 # by default will actually change.
946 # Use braces instead of parens because sh, perl, etc. also accept them.
947 # (The list follows the same order as the GNU Coding Standards.)
948 bindir='${exec_prefix}/bin'
949 sbindir='${exec_prefix}/sbin'
950 libexecdir='${exec_prefix}/libexec'
951 datarootdir='${prefix}/share'
952 datadir='${datarootdir}'
953 sysconfdir='${prefix}/etc'
954 sharedstatedir='${prefix}/com'
955 localstatedir='${prefix}/var'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
959 infodir='${datarootdir}/info'
960 htmldir='${docdir}'
961 dvidir='${docdir}'
962 pdfdir='${docdir}'
963 psdir='${docdir}'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
967
968 ac_prev=
969 ac_dashdash=
970 for ac_option
971 do
972   # If the previous option needs an argument, assign it.
973   if test -n "$ac_prev"; then
974     eval $ac_prev=\$ac_option
975     ac_prev=
976     continue
977   fi
978
979   case $ac_option in
980   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981   *)    ac_optarg=yes ;;
982   esac
983
984   # Accept the important Cygnus configure options, so we can diagnose typos.
985
986   case $ac_dashdash$ac_option in
987   --)
988     ac_dashdash=yes ;;
989
990   -bindir | --bindir | --bindi | --bind | --bin | --bi)
991     ac_prev=bindir ;;
992   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
993     bindir=$ac_optarg ;;
994
995   -build | --build | --buil | --bui | --bu)
996     ac_prev=build_alias ;;
997   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
998     build_alias=$ac_optarg ;;
999
1000   -cache-file | --cache-file | --cache-fil | --cache-fi \
1001   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1002     ac_prev=cache_file ;;
1003   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1004   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1005     cache_file=$ac_optarg ;;
1006
1007   --config-cache | -C)
1008     cache_file=config.cache ;;
1009
1010   -datadir | --datadir | --datadi | --datad)
1011     ac_prev=datadir ;;
1012   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1013     datadir=$ac_optarg ;;
1014
1015   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1016   | --dataroo | --dataro | --datar)
1017     ac_prev=datarootdir ;;
1018   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1019   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1020     datarootdir=$ac_optarg ;;
1021
1022   -disable-* | --disable-*)
1023     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024     # Reject names that are not valid shell variable names.
1025     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027    { (exit 1); exit 1; }; }
1028     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029     eval enable_$ac_feature=no ;;
1030
1031   -docdir | --docdir | --docdi | --doc | --do)
1032     ac_prev=docdir ;;
1033   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034     docdir=$ac_optarg ;;
1035
1036   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037     ac_prev=dvidir ;;
1038   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039     dvidir=$ac_optarg ;;
1040
1041   -enable-* | --enable-*)
1042     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043     # Reject names that are not valid shell variable names.
1044     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1046    { (exit 1); exit 1; }; }
1047     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1048     eval enable_$ac_feature=\$ac_optarg ;;
1049
1050   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052   | --exec | --exe | --ex)
1053     ac_prev=exec_prefix ;;
1054   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056   | --exec=* | --exe=* | --ex=*)
1057     exec_prefix=$ac_optarg ;;
1058
1059   -gas | --gas | --ga | --g)
1060     # Obsolete; use --with-gas.
1061     with_gas=yes ;;
1062
1063   -help | --help | --hel | --he | -h)
1064     ac_init_help=long ;;
1065   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066     ac_init_help=recursive ;;
1067   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068     ac_init_help=short ;;
1069
1070   -host | --host | --hos | --ho)
1071     ac_prev=host_alias ;;
1072   -host=* | --host=* | --hos=* | --ho=*)
1073     host_alias=$ac_optarg ;;
1074
1075   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076     ac_prev=htmldir ;;
1077   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078   | --ht=*)
1079     htmldir=$ac_optarg ;;
1080
1081   -includedir | --includedir | --includedi | --included | --include \
1082   | --includ | --inclu | --incl | --inc)
1083     ac_prev=includedir ;;
1084   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085   | --includ=* | --inclu=* | --incl=* | --inc=*)
1086     includedir=$ac_optarg ;;
1087
1088   -infodir | --infodir | --infodi | --infod | --info | --inf)
1089     ac_prev=infodir ;;
1090   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091     infodir=$ac_optarg ;;
1092
1093   -libdir | --libdir | --libdi | --libd)
1094     ac_prev=libdir ;;
1095   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096     libdir=$ac_optarg ;;
1097
1098   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099   | --libexe | --libex | --libe)
1100     ac_prev=libexecdir ;;
1101   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102   | --libexe=* | --libex=* | --libe=*)
1103     libexecdir=$ac_optarg ;;
1104
1105   -localedir | --localedir | --localedi | --localed | --locale)
1106     ac_prev=localedir ;;
1107   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108     localedir=$ac_optarg ;;
1109
1110   -localstatedir | --localstatedir | --localstatedi | --localstated \
1111   | --localstate | --localstat | --localsta | --localst | --locals)
1112     ac_prev=localstatedir ;;
1113   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115     localstatedir=$ac_optarg ;;
1116
1117   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118     ac_prev=mandir ;;
1119   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120     mandir=$ac_optarg ;;
1121
1122   -nfp | --nfp | --nf)
1123     # Obsolete; use --without-fp.
1124     with_fp=no ;;
1125
1126   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127   | --no-cr | --no-c | -n)
1128     no_create=yes ;;
1129
1130   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132     no_recursion=yes ;;
1133
1134   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136   | --oldin | --oldi | --old | --ol | --o)
1137     ac_prev=oldincludedir ;;
1138   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141     oldincludedir=$ac_optarg ;;
1142
1143   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144     ac_prev=prefix ;;
1145   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146     prefix=$ac_optarg ;;
1147
1148   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149   | --program-pre | --program-pr | --program-p)
1150     ac_prev=program_prefix ;;
1151   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153     program_prefix=$ac_optarg ;;
1154
1155   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156   | --program-suf | --program-su | --program-s)
1157     ac_prev=program_suffix ;;
1158   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160     program_suffix=$ac_optarg ;;
1161
1162   -program-transform-name | --program-transform-name \
1163   | --program-transform-nam | --program-transform-na \
1164   | --program-transform-n | --program-transform- \
1165   | --program-transform | --program-transfor \
1166   | --program-transfo | --program-transf \
1167   | --program-trans | --program-tran \
1168   | --progr-tra | --program-tr | --program-t)
1169     ac_prev=program_transform_name ;;
1170   -program-transform-name=* | --program-transform-name=* \
1171   | --program-transform-nam=* | --program-transform-na=* \
1172   | --program-transform-n=* | --program-transform-=* \
1173   | --program-transform=* | --program-transfor=* \
1174   | --program-transfo=* | --program-transf=* \
1175   | --program-trans=* | --program-tran=* \
1176   | --progr-tra=* | --program-tr=* | --program-t=*)
1177     program_transform_name=$ac_optarg ;;
1178
1179   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180     ac_prev=pdfdir ;;
1181   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182     pdfdir=$ac_optarg ;;
1183
1184   -psdir | --psdir | --psdi | --psd | --ps)
1185     ac_prev=psdir ;;
1186   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187     psdir=$ac_optarg ;;
1188
1189   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190   | -silent | --silent | --silen | --sile | --sil)
1191     silent=yes ;;
1192
1193   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194     ac_prev=sbindir ;;
1195   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196   | --sbi=* | --sb=*)
1197     sbindir=$ac_optarg ;;
1198
1199   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201   | --sharedst | --shareds | --shared | --share | --shar \
1202   | --sha | --sh)
1203     ac_prev=sharedstatedir ;;
1204   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207   | --sha=* | --sh=*)
1208     sharedstatedir=$ac_optarg ;;
1209
1210   -site | --site | --sit)
1211     ac_prev=site ;;
1212   -site=* | --site=* | --sit=*)
1213     site=$ac_optarg ;;
1214
1215   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216     ac_prev=srcdir ;;
1217   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218     srcdir=$ac_optarg ;;
1219
1220   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221   | --syscon | --sysco | --sysc | --sys | --sy)
1222     ac_prev=sysconfdir ;;
1223   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225     sysconfdir=$ac_optarg ;;
1226
1227   -target | --target | --targe | --targ | --tar | --ta | --t)
1228     ac_prev=target_alias ;;
1229   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230     target_alias=$ac_optarg ;;
1231
1232   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233     verbose=yes ;;
1234
1235   -version | --version | --versio | --versi | --vers | -V)
1236     ac_init_version=: ;;
1237
1238   -with-* | --with-*)
1239     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242       { echo "$as_me: error: invalid package name: $ac_package" >&2
1243    { (exit 1); exit 1; }; }
1244     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1245     eval with_$ac_package=\$ac_optarg ;;
1246
1247   -without-* | --without-*)
1248     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249     # Reject names that are not valid shell variable names.
1250     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251       { echo "$as_me: error: invalid package name: $ac_package" >&2
1252    { (exit 1); exit 1; }; }
1253     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1254     eval with_$ac_package=no ;;
1255
1256   --x)
1257     # Obsolete; use --with-x.
1258     with_x=yes ;;
1259
1260   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261   | --x-incl | --x-inc | --x-in | --x-i)
1262     ac_prev=x_includes ;;
1263   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265     x_includes=$ac_optarg ;;
1266
1267   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269     ac_prev=x_libraries ;;
1270   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272     x_libraries=$ac_optarg ;;
1273
1274   -*) { echo "$as_me: error: unrecognized option: $ac_option
1275 Try \`$0 --help' for more information." >&2
1276    { (exit 1); exit 1; }; }
1277     ;;
1278
1279   *=*)
1280     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281     # Reject names that are not valid shell variable names.
1282     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1283       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1284    { (exit 1); exit 1; }; }
1285     eval $ac_envvar=\$ac_optarg
1286     export $ac_envvar ;;
1287
1288   *)
1289     # FIXME: should be removed in autoconf 3.0.
1290     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294     ;;
1295
1296   esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301   { echo "$as_me: error: missing argument to $ac_option" >&2
1302    { (exit 1); exit 1; }; }
1303 fi
1304
1305 # Be sure to have absolute directory names.
1306 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307                 datadir sysconfdir sharedstatedir localstatedir includedir \
1308                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309                 libdir localedir mandir
1310 do
1311   eval ac_val=\$$ac_var
1312   case $ac_val in
1313     [\\/$]* | ?:[\\/]* )  continue;;
1314     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315   esac
1316   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1317    { (exit 1); exit 1; }; }
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329   if test "x$build_alias" = x; then
1330     cross_compiling=maybe
1331     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332     If a cross compiler is detected then cross compile mode will be used." >&2
1333   elif test "x$build_alias" != "x$host_alias"; then
1334     cross_compiling=yes
1335   fi
1336 fi
1337
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341 test "$silent" = yes && exec 6>/dev/null
1342
1343
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347   { echo "$as_me: error: Working directory cannot be determined" >&2
1348    { (exit 1); exit 1; }; }
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350   { echo "$as_me: error: pwd does not report name of working directory" >&2
1351    { (exit 1); exit 1; }; }
1352
1353
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356   ac_srcdir_defaulted=yes
1357   # Try the directory containing this script, then the parent directory.
1358   ac_confdir=`$as_dirname -- "$0" ||
1359 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360          X"$0" : 'X\(//\)[^/]' \| \
1361          X"$0" : 'X\(//\)$' \| \
1362          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1363 echo X"$0" |
1364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\/\)[^/].*/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\).*/{
1377             s//\1/
1378             q
1379           }
1380           s/.*/./; q'`
1381   srcdir=$ac_confdir
1382   if test ! -r "$srcdir/$ac_unique_file"; then
1383     srcdir=..
1384   fi
1385 else
1386   ac_srcdir_defaulted=no
1387 fi
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1391    { (exit 1); exit 1; }; }
1392 fi
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1396    { (exit 1); exit 1; }; }
1397         pwd)`
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400   srcdir=.
1401 fi
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1405 case $srcdir in
1406 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1407 esac
1408 for ac_var in $ac_precious_vars; do
1409   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1410   eval ac_env_${ac_var}_value=\$${ac_var}
1411   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1412   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1413 done
1414
1415 #
1416 # Report the --help message.
1417 #
1418 if test "$ac_init_help" = "long"; then
1419   # Omit some internal or obsolete options to make the list less imposing.
1420   # This message is too long to be a string in the A/UX 3.1 sh.
1421   cat <<_ACEOF
1422 \`configure' configures glog 0.1.1 to adapt to many kinds of systems.
1423
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1425
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE.  See below for descriptions of some of the useful variables.
1428
1429 Defaults for the options are specified in brackets.
1430
1431 Configuration:
1432   -h, --help              display this help and exit
1433       --help=short        display options specific to this package
1434       --help=recursive    display the short help of all the included packages
1435   -V, --version           display version information and exit
1436   -q, --quiet, --silent   do not print \`checking...' messages
1437       --cache-file=FILE   cache test results in FILE [disabled]
1438   -C, --config-cache      alias for \`--cache-file=config.cache'
1439   -n, --no-create         do not create output files
1440       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1441
1442 Installation directories:
1443   --prefix=PREFIX         install architecture-independent files in PREFIX
1444                           [$ac_default_prefix]
1445   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1446                           [PREFIX]
1447
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1452
1453 For better control, use the options below.
1454
1455 Fine tuning of the installation directories:
1456   --bindir=DIR           user executables [EPREFIX/bin]
1457   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1458   --libexecdir=DIR       program executables [EPREFIX/libexec]
1459   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1460   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1461   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1462   --libdir=DIR           object code libraries [EPREFIX/lib]
1463   --includedir=DIR       C header files [PREFIX/include]
1464   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1465   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1466   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1467   --infodir=DIR          info documentation [DATAROOTDIR/info]
1468   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1469   --mandir=DIR           man documentation [DATAROOTDIR/man]
1470   --docdir=DIR           documentation root [DATAROOTDIR/doc/glog]
1471   --htmldir=DIR          html documentation [DOCDIR]
1472   --dvidir=DIR           dvi documentation [DOCDIR]
1473   --pdfdir=DIR           pdf documentation [DOCDIR]
1474   --psdir=DIR            ps documentation [DOCDIR]
1475 _ACEOF
1476
1477   cat <<\_ACEOF
1478
1479 Program names:
1480   --program-prefix=PREFIX            prepend PREFIX to installed program names
1481   --program-suffix=SUFFIX            append SUFFIX to installed program names
1482   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1483
1484 System types:
1485   --build=BUILD     configure for building on BUILD [guessed]
1486   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491   case $ac_init_help in
1492      short | recursive ) echo "Configuration of glog 0.1.1:";;
1493    esac
1494   cat <<\_ACEOF
1495
1496 Optional Features:
1497   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1498   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499   --disable-dependency-tracking  speeds up one-time build
1500   --enable-dependency-tracking   do not reject slow dependency extractors
1501   --enable-shared[=PKGS]  build shared libraries [default=yes]
1502   --enable-static[=PKGS]  build static libraries [default=yes]
1503   --enable-fast-install[=PKGS]
1504                           optimize for fast installation [default=yes]
1505   --disable-libtool-lock  avoid locking (might break parallel builds)
1506   --enable-frame-pointers On x86_64 systems, compile with
1507                           -fno-omit-frame-pointer (see INSTALL)
1508   --enable-namespace=FOO to define these Google
1509                              classes in the FOO namespace. --disable-namespace
1510                              to define them in the global namespace. Default
1511                              is to define them in namespace google.
1512
1513 Optional Packages:
1514   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1517   --with-pic              try to use only PIC/non-PIC objects [default=use
1518                           both]
1519   --with-tags[=TAGS]      include additional configurations [automatic]
1520
1521 Some influential environment variables:
1522   CC          C compiler command
1523   CFLAGS      C compiler flags
1524   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525               nonstandard directory <lib dir>
1526   LIBS        libraries to pass to the linker, e.g. -l<library>
1527   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528               you have headers in a nonstandard directory <include dir>
1529   CPP         C preprocessor
1530   CXX         C++ compiler command
1531   CXXFLAGS    C++ compiler flags
1532   CXXCPP      C++ preprocessor
1533   F77         Fortran 77 compiler command
1534   FFLAGS      Fortran 77 compiler flags
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 Report bugs to <opensource@google.com>.
1540 _ACEOF
1541 ac_status=$?
1542 fi
1543
1544 if test "$ac_init_help" = "recursive"; then
1545   # If there are subdirs, report their specific --help.
1546   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547     test -d "$ac_dir" || continue
1548     ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1554   # A ".." for each directory in $ac_dir_suffix.
1555   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1556   case $ac_top_builddir_sub in
1557   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559   esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567   .)  # We are building in place.
1568     ac_srcdir=.
1569     ac_top_srcdir=$ac_top_builddir_sub
1570     ac_abs_top_srcdir=$ac_pwd ;;
1571   [\\/]* | ?:[\\/]* )  # Absolute name.
1572     ac_srcdir=$srcdir$ac_dir_suffix;
1573     ac_top_srcdir=$srcdir
1574     ac_abs_top_srcdir=$srcdir ;;
1575   *) # Relative name.
1576     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577     ac_top_srcdir=$ac_top_build_prefix$srcdir
1578     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582     cd "$ac_dir" || { ac_status=$?; continue; }
1583     # Check for guested configure.
1584     if test -f "$ac_srcdir/configure.gnu"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587     elif test -f "$ac_srcdir/configure"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure" --help=recursive
1590     else
1591       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592     fi || ac_status=$?
1593     cd "$ac_pwd" || { ac_status=$?; break; }
1594   done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599   cat <<\_ACEOF
1600 glog configure 0.1.1
1601 generated by GNU Autoconf 2.61
1602
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608   exit
1609 fi
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1613
1614 It was created by glog $as_me 0.1.1, which was
1615 generated by GNU Autoconf 2.61.  Invocation command line was
1616
1617   $ $0 $@
1618
1619 _ACEOF
1620 exec 5>>config.log
1621 {
1622 cat <<_ASUNAME
1623 ## --------- ##
1624 ## Platform. ##
1625 ## --------- ##
1626
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1632
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1635
1636 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1637 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1640 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1641 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1642 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1643
1644 _ASUNAME
1645
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   echo "PATH: $as_dir"
1652 done
1653 IFS=$as_save_IFS
1654
1655 } >&5
1656
1657 cat >&5 <<_ACEOF
1658
1659
1660 ## ----------- ##
1661 ## Core tests. ##
1662 ## ----------- ##
1663
1664 _ACEOF
1665
1666
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1672 ac_configure_args=
1673 ac_configure_args0=
1674 ac_configure_args1=
1675 ac_must_keep_next=false
1676 for ac_pass in 1 2
1677 do
1678   for ac_arg
1679   do
1680     case $ac_arg in
1681     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683     | -silent | --silent | --silen | --sile | --sil)
1684       continue ;;
1685     *\'*)
1686       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1687     esac
1688     case $ac_pass in
1689     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1690     2)
1691       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692       if test $ac_must_keep_next = true; then
1693         ac_must_keep_next=false # Got value, back to normal.
1694       else
1695         case $ac_arg in
1696           *=* | --config-cache | -C | -disable-* | --disable-* \
1697           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699           | -with-* | --with-* | -without-* | --without-* | --x)
1700             case "$ac_configure_args0 " in
1701               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702             esac
1703             ;;
1704           -* ) ac_must_keep_next=true ;;
1705         esac
1706       fi
1707       ac_configure_args="$ac_configure_args '$ac_arg'"
1708       ;;
1709     esac
1710   done
1711 done
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1714
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log.  We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721   # Save into config.log some information that might help in debugging.
1722   {
1723     echo
1724
1725     cat <<\_ASBOX
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1729 _ASBOX
1730     echo
1731     # The following way of writing the cache mishandles newlines in values,
1732 (
1733   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734     eval ac_val=\$$ac_var
1735     case $ac_val in #(
1736     *${as_nl}*)
1737       case $ac_var in #(
1738       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1739 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1740       esac
1741       case $ac_var in #(
1742       _ | IFS | as_nl) ;; #(
1743       *) $as_unset $ac_var ;;
1744       esac ;;
1745     esac
1746   done
1747   (set) 2>&1 |
1748     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749     *${as_nl}ac_space=\ *)
1750       sed -n \
1751         "s/'\''/'\''\\\\'\'''\''/g;
1752           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753       ;; #(
1754     *)
1755       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1756       ;;
1757     esac |
1758     sort
1759 )
1760     echo
1761
1762     cat <<\_ASBOX
1763 ## ----------------- ##
1764 ## Output variables. ##
1765 ## ----------------- ##
1766 _ASBOX
1767     echo
1768     for ac_var in $ac_subst_vars
1769     do
1770       eval ac_val=\$$ac_var
1771       case $ac_val in
1772       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1773       esac
1774       echo "$ac_var='\''$ac_val'\''"
1775     done | sort
1776     echo
1777
1778     if test -n "$ac_subst_files"; then
1779       cat <<\_ASBOX
1780 ## ------------------- ##
1781 ## File substitutions. ##
1782 ## ------------------- ##
1783 _ASBOX
1784       echo
1785       for ac_var in $ac_subst_files
1786       do
1787         eval ac_val=\$$ac_var
1788         case $ac_val in
1789         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1790         esac
1791         echo "$ac_var='\''$ac_val'\''"
1792       done | sort
1793       echo
1794     fi
1795
1796     if test -s confdefs.h; then
1797       cat <<\_ASBOX
1798 ## ----------- ##
1799 ## confdefs.h. ##
1800 ## ----------- ##
1801 _ASBOX
1802       echo
1803       cat confdefs.h
1804       echo
1805     fi
1806     test "$ac_signal" != 0 &&
1807       echo "$as_me: caught signal $ac_signal"
1808     echo "$as_me: exit $exit_status"
1809   } >&5
1810   rm -f core *.core core.conftest.* &&
1811     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1812     exit $exit_status
1813 ' 0
1814 for ac_signal in 1 2 13 15; do
1815   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816 done
1817 ac_signal=0
1818
1819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1820 rm -f -r conftest* confdefs.h
1821
1822 # Predefined preprocessor variables.
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_NAME "$PACKAGE_NAME"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_STRING "$PACKAGE_STRING"
1841 _ACEOF
1842
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846 _ACEOF
1847
1848
1849 # Let the site file select an alternate cache file if it wants to.
1850 # Prefer explicitly selected file to automatically selected ones.
1851 if test -n "$CONFIG_SITE"; then
1852   set x "$CONFIG_SITE"
1853 elif test "x$prefix" != xNONE; then
1854   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1855 else
1856   set x "$ac_default_prefix/share/config.site" \
1857         "$ac_default_prefix/etc/config.site"
1858 fi
1859 shift
1860 for ac_site_file
1861 do
1862   if test -r "$ac_site_file"; then
1863     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 echo "$as_me: loading site script $ac_site_file" >&6;}
1865     sed 's/^/| /' "$ac_site_file" >&5
1866     . "$ac_site_file"
1867   fi
1868 done
1869
1870 if test -r "$cache_file"; then
1871   # Some versions of bash will fail to source /dev/null (special
1872   # files actually), so we avoid doing that.
1873   if test -f "$cache_file"; then
1874     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 echo "$as_me: loading cache $cache_file" >&6;}
1876     case $cache_file in
1877       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878       *)                      . "./$cache_file";;
1879     esac
1880   fi
1881 else
1882   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 echo "$as_me: creating cache $cache_file" >&6;}
1884   >$cache_file
1885 fi
1886
1887 # Check that the precious variables saved in the cache have kept the same
1888 # value.
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892   eval ac_new_set=\$ac_env_${ac_var}_set
1893   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894   eval ac_new_val=\$ac_env_${ac_var}_value
1895   case $ac_old_set,$ac_new_set in
1896     set,)
1897       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899       ac_cache_corrupted=: ;;
1900     ,set)
1901       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1903       ac_cache_corrupted=: ;;
1904     ,);;
1905     *)
1906       if test "x$ac_old_val" != "x$ac_new_val"; then
1907         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1908 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1909         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1910 echo "$as_me:   former value:  $ac_old_val" >&2;}
1911         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1912 echo "$as_me:   current value: $ac_new_val" >&2;}
1913         ac_cache_corrupted=:
1914       fi;;
1915   esac
1916   # Pass precious variables to config.status.
1917   if test "$ac_new_set" = set; then
1918     case $ac_new_val in
1919     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1920     *) ac_arg=$ac_var=$ac_new_val ;;
1921     esac
1922     case " $ac_configure_args " in
1923       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1924       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1925     esac
1926   fi
1927 done
1928 if $ac_cache_corrupted; then
1929   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1930 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1931   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1932 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1933    { (exit 1); exit 1; }; }
1934 fi
1935
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 ac_ext=c
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965
1966
1967 # The argument here is just something that should be in the current directory
1968 # (for sanity checking)
1969
1970 am__api_version='1.10'
1971
1972 ac_aux_dir=
1973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1974   if test -f "$ac_dir/install-sh"; then
1975     ac_aux_dir=$ac_dir
1976     ac_install_sh="$ac_aux_dir/install-sh -c"
1977     break
1978   elif test -f "$ac_dir/install.sh"; then
1979     ac_aux_dir=$ac_dir
1980     ac_install_sh="$ac_aux_dir/install.sh -c"
1981     break
1982   elif test -f "$ac_dir/shtool"; then
1983     ac_aux_dir=$ac_dir
1984     ac_install_sh="$ac_aux_dir/shtool install -c"
1985     break
1986   fi
1987 done
1988 if test -z "$ac_aux_dir"; then
1989   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2001
2002
2003 # Find a good install program.  We prefer a C program (faster),
2004 # so one script is as good as another.  But avoid the broken or
2005 # incompatible versions:
2006 # SysV /etc/install, /usr/sbin/install
2007 # SunOS /usr/etc/install
2008 # IRIX /sbin/install
2009 # AIX /bin/install
2010 # AmigaOS /C/install, which installs bootblocks on floppy discs
2011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2014 # OS/2's system install, which has a completely different semantic
2015 # ./install, which can be erroneously created by make from ./install.sh.
2016 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2017 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2018 if test -z "$INSTALL"; then
2019 if test "${ac_cv_path_install+set}" = set; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025   IFS=$as_save_IFS
2026   test -z "$as_dir" && as_dir=.
2027   # Account for people who put trailing slashes in PATH elements.
2028 case $as_dir/ in
2029   ./ | .// | /cC/* | \
2030   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2031   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2032   /usr/ucb/* ) ;;
2033   *)
2034     # OSF1 and SCO ODT 3.0 have their own names for install.
2035     # Don't use installbsd from OSF since it installs stuff as root
2036     # by default.
2037     for ac_prog in ginstall scoinst install; do
2038       for ac_exec_ext in '' $ac_executable_extensions; do
2039         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2040           if test $ac_prog = install &&
2041             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2042             # AIX install.  It has an incompatible calling convention.
2043             :
2044           elif test $ac_prog = install &&
2045             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2046             # program-specific install script used by HP pwplus--don't use.
2047             :
2048           else
2049             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2050             break 3
2051           fi
2052         fi
2053       done
2054     done
2055     ;;
2056 esac
2057 done
2058 IFS=$as_save_IFS
2059
2060
2061 fi
2062   if test "${ac_cv_path_install+set}" = set; then
2063     INSTALL=$ac_cv_path_install
2064   else
2065     # As a last resort, use the slow shell script.  Don't cache a
2066     # value for INSTALL within a source directory, because that will
2067     # break other packages using the cache if that directory is
2068     # removed, or if the value is a relative name.
2069     INSTALL=$ac_install_sh
2070   fi
2071 fi
2072 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2073 echo "${ECHO_T}$INSTALL" >&6; }
2074
2075 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2076 # It thinks the first close brace ends the variable substitution.
2077 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2078
2079 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2080
2081 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2082
2083 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2084 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2085 # Just in case
2086 sleep 1
2087 echo timestamp > conftest.file
2088 # Do `set' in a subshell so we don't clobber the current shell's
2089 # arguments.  Must try -L first in case configure is actually a
2090 # symlink; some systems play weird games with the mod time of symlinks
2091 # (eg FreeBSD returns the mod time of the symlink's containing
2092 # directory).
2093 if (
2094    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2095    if test "$*" = "X"; then
2096       # -L didn't work.
2097       set X `ls -t $srcdir/configure conftest.file`
2098    fi
2099    rm -f conftest.file
2100    if test "$*" != "X $srcdir/configure conftest.file" \
2101       && test "$*" != "X conftest.file $srcdir/configure"; then
2102
2103       # If neither matched, then we have a broken ls.  This can happen
2104       # if, for instance, CONFIG_SHELL is bash and it inherits a
2105       # broken ls alias from the environment.  This has actually
2106       # happened.  Such a system could not be considered "sane".
2107       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2108 alias in your environment" >&5
2109 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2110 alias in your environment" >&2;}
2111    { (exit 1); exit 1; }; }
2112    fi
2113
2114    test "$2" = conftest.file
2115    )
2116 then
2117    # Ok.
2118    :
2119 else
2120    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2121 Check your system clock" >&5
2122 echo "$as_me: error: newly created file is older than distributed files!
2123 Check your system clock" >&2;}
2124    { (exit 1); exit 1; }; }
2125 fi
2126 { echo "$as_me:$LINENO: result: yes" >&5
2127 echo "${ECHO_T}yes" >&6; }
2128 test "$program_prefix" != NONE &&
2129   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2130 # Use a double $ so make ignores it.
2131 test "$program_suffix" != NONE &&
2132   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2133 # Double any \ or $.  echo might interpret backslashes.
2134 # By default was `s,x,x', remove it if useless.
2135 cat <<\_ACEOF >conftest.sed
2136 s/[\\$]/&&/g;s/;s,x,x,$//
2137 _ACEOF
2138 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2139 rm -f conftest.sed
2140
2141 # expand $ac_aux_dir to an absolute path
2142 am_aux_dir=`cd $ac_aux_dir && pwd`
2143
2144 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2145 # Use eval to expand $SHELL
2146 if eval "$MISSING --run true"; then
2147   am_missing_run="$MISSING --run "
2148 else
2149   am_missing_run=
2150   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2151 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2152 fi
2153
2154 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2155 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2156 if test -z "$MKDIR_P"; then
2157   if test "${ac_cv_path_mkdir+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_prog in mkdir gmkdir; do
2166          for ac_exec_ext in '' $ac_executable_extensions; do
2167            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2168            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2169              'mkdir (GNU coreutils) '* | \
2170              'mkdir (coreutils) '* | \
2171              'mkdir (fileutils) '4.1*)
2172                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2173                break 3;;
2174            esac
2175          done
2176        done
2177 done
2178 IFS=$as_save_IFS
2179
2180 fi
2181
2182   if test "${ac_cv_path_mkdir+set}" = set; then
2183     MKDIR_P="$ac_cv_path_mkdir -p"
2184   else
2185     # As a last resort, use the slow shell script.  Don't cache a
2186     # value for MKDIR_P within a source directory, because that will
2187     # break other packages using the cache if that directory is
2188     # removed, or if the value is a relative name.
2189     test -d ./--version && rmdir ./--version
2190     MKDIR_P="$ac_install_sh -d"
2191   fi
2192 fi
2193 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2194 echo "${ECHO_T}$MKDIR_P" >&6; }
2195
2196 mkdir_p="$MKDIR_P"
2197 case $mkdir_p in
2198   [\\/$]* | ?:[\\/]*) ;;
2199   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2200 esac
2201
2202 for ac_prog in gawk mawk nawk awk
2203 do
2204   # Extract the first word of "$ac_prog", so it can be a program name with args.
2205 set dummy $ac_prog; ac_word=$2
2206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 if test "${ac_cv_prog_AWK+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   if test -n "$AWK"; then
2212   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2216 do
2217   IFS=$as_save_IFS
2218   test -z "$as_dir" && as_dir=.
2219   for ac_exec_ext in '' $ac_executable_extensions; do
2220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221     ac_cv_prog_AWK="$ac_prog"
2222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223     break 2
2224   fi
2225 done
2226 done
2227 IFS=$as_save_IFS
2228
2229 fi
2230 fi
2231 AWK=$ac_cv_prog_AWK
2232 if test -n "$AWK"; then
2233   { echo "$as_me:$LINENO: result: $AWK" >&5
2234 echo "${ECHO_T}$AWK" >&6; }
2235 else
2236   { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2238 fi
2239
2240
2241   test -n "$AWK" && break
2242 done
2243
2244 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2245 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2246 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2247 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   cat >conftest.make <<\_ACEOF
2251 SHELL = /bin/sh
2252 all:
2253         @echo '@@@%%%=$(MAKE)=@@@%%%'
2254 _ACEOF
2255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2256 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2257   *@@@%%%=?*=@@@%%%*)
2258     eval ac_cv_prog_make_${ac_make}_set=yes;;
2259   *)
2260     eval ac_cv_prog_make_${ac_make}_set=no;;
2261 esac
2262 rm -f conftest.make
2263 fi
2264 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2265   { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2267   SET_MAKE=
2268 else
2269   { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2271   SET_MAKE="MAKE=${MAKE-make}"
2272 fi
2273
2274 rm -rf .tst 2>/dev/null
2275 mkdir .tst 2>/dev/null
2276 if test -d .tst; then
2277   am__leading_dot=.
2278 else
2279   am__leading_dot=_
2280 fi
2281 rmdir .tst 2>/dev/null
2282
2283 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2284   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2285   # is not polluted with repeated "-I."
2286   am__isrc=' -I$(srcdir)'
2287   # test to see if srcdir already configured
2288   if test -f $srcdir/config.status; then
2289     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2290 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2291    { (exit 1); exit 1; }; }
2292   fi
2293 fi
2294
2295 # test whether we have cygpath
2296 if test -z "$CYGPATH_W"; then
2297   if (cygpath --version) >/dev/null 2>/dev/null; then
2298     CYGPATH_W='cygpath -w'
2299   else
2300     CYGPATH_W=echo
2301   fi
2302 fi
2303
2304
2305 # Define the identity of the package.
2306  PACKAGE='glog'
2307  VERSION='0.1.1'
2308
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE "$PACKAGE"
2312 _ACEOF
2313
2314
2315 cat >>confdefs.h <<_ACEOF
2316 #define VERSION "$VERSION"
2317 _ACEOF
2318
2319 # Some tools Automake needs.
2320
2321 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2322
2323
2324 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2325
2326
2327 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2328
2329
2330 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2331
2332
2333 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2334
2335 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2336
2337 # Installed binaries are usually stripped using `strip' when the user
2338 # run `make install-strip'.  However `strip' might not be the right
2339 # tool to use in cross-compilation environments, therefore Automake
2340 # will honor the `STRIP' environment variable to overrule this program.
2341 if test "$cross_compiling" != no; then
2342   if test -n "$ac_tool_prefix"; then
2343   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}strip; ac_word=$2
2345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2347 if test "${ac_cv_prog_STRIP+set}" = set; then
2348   echo $ECHO_N "(cached) $ECHO_C" >&6
2349 else
2350   if test -n "$STRIP"; then
2351   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356   IFS=$as_save_IFS
2357   test -z "$as_dir" && as_dir=.
2358   for ac_exec_ext in '' $ac_executable_extensions; do
2359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362     break 2
2363   fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2367
2368 fi
2369 fi
2370 STRIP=$ac_cv_prog_STRIP
2371 if test -n "$STRIP"; then
2372   { echo "$as_me:$LINENO: result: $STRIP" >&5
2373 echo "${ECHO_T}$STRIP" >&6; }
2374 else
2375   { echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6; }
2377 fi
2378
2379
2380 fi
2381 if test -z "$ac_cv_prog_STRIP"; then
2382   ac_ct_STRIP=$STRIP
2383   # Extract the first word of "strip", so it can be a program name with args.
2384 set dummy strip; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2388   echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390   if test -n "$ac_ct_STRIP"; then
2391   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2395 do
2396   IFS=$as_save_IFS
2397   test -z "$as_dir" && as_dir=.
2398   for ac_exec_ext in '' $ac_executable_extensions; do
2399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400     ac_cv_prog_ac_ct_STRIP="strip"
2401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402     break 2
2403   fi
2404 done
2405 done
2406 IFS=$as_save_IFS
2407
2408 fi
2409 fi
2410 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2411 if test -n "$ac_ct_STRIP"; then
2412   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2413 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2414 else
2415   { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2417 fi
2418
2419   if test "x$ac_ct_STRIP" = x; then
2420     STRIP=":"
2421   else
2422     case $cross_compiling:$ac_tool_warned in
2423 yes:)
2424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet.  If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet.  If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2431 esac
2432     STRIP=$ac_ct_STRIP
2433   fi
2434 else
2435   STRIP="$ac_cv_prog_STRIP"
2436 fi
2437
2438 fi
2439 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2440
2441 # We need awk for the "check" target.  The system "awk" is bad on
2442 # some platforms.
2443 # Always define AMTAR for backward compatibility.
2444
2445 AMTAR=${AMTAR-"${am_missing_run}tar"}
2446
2447 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2448
2449
2450
2451
2452
2453 ac_config_headers="$ac_config_headers src/config.h"
2454
2455
2456 # Checks for programs.
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462 if test -n "$ac_tool_prefix"; then
2463   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   if test -n "$CC"; then
2471   ac_cv_prog_CC="$CC" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478   for ac_exec_ext in '' $ac_executable_extensions; do
2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482     break 2
2483   fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 CC=$ac_cv_prog_CC
2491 if test -n "$CC"; then
2492   { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2494 else
2495   { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2497 fi
2498
2499
2500 fi
2501 if test -z "$ac_cv_prog_CC"; then
2502   ac_ct_CC=$CC
2503   # Extract the first word of "gcc", so it can be a program name with args.
2504 set dummy gcc; ac_word=$2
2505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508   echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510   if test -n "$ac_ct_CC"; then
2511   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516   IFS=$as_save_IFS
2517   test -z "$as_dir" && as_dir=.
2518   for ac_exec_ext in '' $ac_executable_extensions; do
2519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520     ac_cv_prog_ac_ct_CC="gcc"
2521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522     break 2
2523   fi
2524 done
2525 done
2526 IFS=$as_save_IFS
2527
2528 fi
2529 fi
2530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531 if test -n "$ac_ct_CC"; then
2532   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2533 echo "${ECHO_T}$ac_ct_CC" >&6; }
2534 else
2535   { echo "$as_me:$LINENO: result: no" >&5
2536 echo "${ECHO_T}no" >&6; }
2537 fi
2538
2539   if test "x$ac_ct_CC" = x; then
2540     CC=""
2541   else
2542     case $cross_compiling:$ac_tool_warned in
2543 yes:)
2544 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet.  If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&5
2547 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet.  If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550 ac_tool_warned=yes ;;
2551 esac
2552     CC=$ac_ct_CC
2553   fi
2554 else
2555   CC="$ac_cv_prog_CC"
2556 fi
2557
2558 if test -z "$CC"; then
2559           if test -n "$ac_tool_prefix"; then
2560     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}cc; ac_word=$2
2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564 if test "${ac_cv_prog_CC+set}" = set; then
2565   echo $ECHO_N "(cached) $ECHO_C" >&6
2566 else
2567   if test -n "$CC"; then
2568   ac_cv_prog_CC="$CC" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575   for ac_exec_ext in '' $ac_executable_extensions; do
2576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577     ac_cv_prog_CC="${ac_tool_prefix}cc"
2578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580   fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 CC=$ac_cv_prog_CC
2588 if test -n "$CC"; then
2589   { echo "$as_me:$LINENO: result: $CC" >&5
2590 echo "${ECHO_T}$CC" >&6; }
2591 else
2592   { echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6; }
2594 fi
2595
2596
2597   fi
2598 fi
2599 if test -z "$CC"; then
2600   # Extract the first word of "cc", so it can be a program name with args.
2601 set dummy cc; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_CC+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$CC"; then
2608   ac_cv_prog_CC="$CC" # Let the user override the test.
2609 else
2610   ac_prog_rejected=no
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2619        ac_prog_rejected=yes
2620        continue
2621      fi
2622     ac_cv_prog_CC="cc"
2623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624     break 2
2625   fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 if test $ac_prog_rejected = yes; then
2631   # We found a bogon in the path, so make sure we never use it.
2632   set dummy $ac_cv_prog_CC
2633   shift
2634   if test $# != 0; then
2635     # We chose a different compiler from the bogus one.
2636     # However, it has the same basename, so the bogon will be chosen
2637     # first if we set CC to just the basename; use the full file name.
2638     shift
2639     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2640   fi
2641 fi
2642 fi
2643 fi
2644 CC=$ac_cv_prog_CC
2645 if test -n "$CC"; then
2646   { echo "$as_me:$LINENO: result: $CC" >&5
2647 echo "${ECHO_T}$CC" >&6; }
2648 else
2649   { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2651 fi
2652
2653
2654 fi
2655 if test -z "$CC"; then
2656   if test -n "$ac_tool_prefix"; then
2657   for ac_prog in cl.exe
2658   do
2659     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664   echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666   if test -n "$CC"; then
2667   ac_cv_prog_CC="$CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672   IFS=$as_save_IFS
2673   test -z "$as_dir" && as_dir=.
2674   for ac_exec_ext in '' $ac_executable_extensions; do
2675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678     break 2
2679   fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688   { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2690 else
2691   { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2693 fi
2694
2695
2696     test -n "$CC" && break
2697   done
2698 fi
2699 if test -z "$CC"; then
2700   ac_ct_CC=$CC
2701   for ac_prog in cl.exe
2702 do
2703   # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   if test -n "$ac_ct_CC"; then
2711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718   for ac_exec_ext in '' $ac_executable_extensions; do
2719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720     ac_cv_prog_ac_ct_CC="$ac_prog"
2721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722     break 2
2723   fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733 echo "${ECHO_T}$ac_ct_CC" >&6; }
2734 else
2735   { echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6; }
2737 fi
2738
2739
2740   test -n "$ac_ct_CC" && break
2741 done
2742
2743   if test "x$ac_ct_CC" = x; then
2744     CC=""
2745   else
2746     case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749 whose name does not start with the host triplet.  If you think this
2750 configuration is useful to you, please write to autoconf@gnu.org." >&5
2751 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752 whose name does not start with the host triplet.  If you think this
2753 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754 ac_tool_warned=yes ;;
2755 esac
2756     CC=$ac_ct_CC
2757   fi
2758 fi
2759
2760 fi
2761
2762
2763 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2764 See \`config.log' for more details." >&5
2765 echo "$as_me: error: no acceptable C compiler found in \$PATH
2766 See \`config.log' for more details." >&2;}
2767    { (exit 1); exit 1; }; }
2768
2769 # Provide some information about the compiler.
2770 echo "$as_me:$LINENO: checking for C compiler version" >&5
2771 ac_compiler=`set X $ac_compile; echo $2`
2772 { (ac_try="$ac_compiler --version >&5"
2773 case "(($ac_try" in
2774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775   *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778   (eval "$ac_compiler --version >&5") 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }
2782 { (ac_try="$ac_compiler -v >&5"
2783 case "(($ac_try" in
2784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785   *) ac_try_echo=$ac_try;;
2786 esac
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788   (eval "$ac_compiler -v >&5") 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }
2792 { (ac_try="$ac_compiler -V >&5"
2793 case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_compiler -V >&5") 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }
2802
2803 cat >conftest.$ac_ext <<_ACEOF
2804 /* confdefs.h.  */
2805 _ACEOF
2806 cat confdefs.h >>conftest.$ac_ext
2807 cat >>conftest.$ac_ext <<_ACEOF
2808 /* end confdefs.h.  */
2809
2810 int
2811 main ()
2812 {
2813
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 ac_clean_files_save=$ac_clean_files
2819 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2820 # Try to create an executable without -o first, disregard a.out.
2821 # It will help us diagnose broken compilers, and finding out an intuition
2822 # of exeext.
2823 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2824 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2825 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826 #
2827 # List of possible output files, starting from the most likely.
2828 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2829 # only as a last resort.  b.out is created by i960 compilers.
2830 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2831 #
2832 # The IRIX 6 linker writes into existing files which may not be
2833 # executable, retaining their permissions.  Remove them first so a
2834 # subsequent execution test works.
2835 ac_rmfiles=
2836 for ac_file in $ac_files
2837 do
2838   case $ac_file in
2839     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2841   esac
2842 done
2843 rm -f $ac_rmfiles
2844
2845 if { (ac_try="$ac_link_default"
2846 case "(($ac_try" in
2847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848   *) ac_try_echo=$ac_try;;
2849 esac
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851   (eval "$ac_link_default") 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); }; then
2855   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2858 # so that the user can short-circuit this test for compilers unknown to
2859 # Autoconf.
2860 for ac_file in $ac_files ''
2861 do
2862   test -f "$ac_file" || continue
2863   case $ac_file in
2864     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2865         ;;
2866     [ab].out )
2867         # We found the default executable, but exeext='' is most
2868         # certainly right.
2869         break;;
2870     *.* )
2871         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872         then :; else
2873            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874         fi
2875         # We set ac_cv_exeext here because the later test for it is not
2876         # safe: cross compilers may not add the suffix if given an `-o'
2877         # argument, so we may need to know it at that point already.
2878         # Even if this section looks crufty: it has the advantage of
2879         # actually working.
2880         break;;
2881     * )
2882         break;;
2883   esac
2884 done
2885 test "$ac_cv_exeext" = no && ac_cv_exeext=
2886
2887 else
2888   ac_file=''
2889 fi
2890
2891 { echo "$as_me:$LINENO: result: $ac_file" >&5
2892 echo "${ECHO_T}$ac_file" >&6; }
2893 if test -z "$ac_file"; then
2894   echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2898 See \`config.log' for more details." >&5
2899 echo "$as_me: error: C compiler cannot create executables
2900 See \`config.log' for more details." >&2;}
2901    { (exit 77); exit 77; }; }
2902 fi
2903
2904 ac_exeext=$ac_cv_exeext
2905
2906 # Check that the compiler produces executables we can run.  If not, either
2907 # the compiler is broken, or we cross compile.
2908 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2909 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2910 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2911 # If not cross compiling, check that we can run a simple program.
2912 if test "$cross_compiling" != yes; then
2913   if { ac_try='./$ac_file'
2914   { (case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919   (eval "$ac_try") 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923     cross_compiling=no
2924   else
2925     if test "$cross_compiling" = maybe; then
2926         cross_compiling=yes
2927     else
2928         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2929 If you meant to cross compile, use \`--host'.
2930 See \`config.log' for more details." >&5
2931 echo "$as_me: error: cannot run C compiled programs.
2932 If you meant to cross compile, use \`--host'.
2933 See \`config.log' for more details." >&2;}
2934    { (exit 1); exit 1; }; }
2935     fi
2936   fi
2937 fi
2938 { echo "$as_me:$LINENO: result: yes" >&5
2939 echo "${ECHO_T}yes" >&6; }
2940
2941 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2942 ac_clean_files=$ac_clean_files_save
2943 # Check that the compiler produces executables we can run.  If not, either
2944 # the compiler is broken, or we cross compile.
2945 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2946 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2947 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2948 echo "${ECHO_T}$cross_compiling" >&6; }
2949
2950 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2951 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2952 if { (ac_try="$ac_link"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958   (eval "$ac_link") 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; then
2962   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2963 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2964 # work properly (i.e., refer to `conftest.exe'), while it won't with
2965 # `rm'.
2966 for ac_file in conftest.exe conftest conftest.*; do
2967   test -f "$ac_file" || continue
2968   case $ac_file in
2969     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2970     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2971           break;;
2972     * ) break;;
2973   esac
2974 done
2975 else
2976   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2977 See \`config.log' for more details." >&5
2978 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2979 See \`config.log' for more details." >&2;}
2980    { (exit 1); exit 1; }; }
2981 fi
2982
2983 rm -f conftest$ac_cv_exeext
2984 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2985 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2986
2987 rm -f conftest.$ac_ext
2988 EXEEXT=$ac_cv_exeext
2989 ac_exeext=$EXEEXT
2990 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2991 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2992 if test "${ac_cv_objext+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005
3006   ;
3007   return 0;
3008 }
3009 _ACEOF
3010 rm -f conftest.o conftest.obj
3011 if { (ac_try="$ac_compile"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compile") 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }; then
3021   for ac_file in conftest.o conftest.obj conftest.*; do
3022   test -f "$ac_file" || continue;
3023   case $ac_file in
3024     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3025     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026        break;;
3027   esac
3028 done
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3034 See \`config.log' for more details." >&5
3035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." >&2;}
3037    { (exit 1); exit 1; }; }
3038 fi
3039
3040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3041 fi
3042 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3043 echo "${ECHO_T}$ac_cv_objext" >&6; }
3044 OBJEXT=$ac_cv_objext
3045 ac_objext=$OBJEXT
3046 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3049   echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051   cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061 #ifndef __GNUC__
3062        choke me
3063 #endif
3064
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_compile") 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } && {
3083          test -z "$ac_c_werror_flag" ||
3084          test ! -s conftest.err
3085        } && test -s conftest.$ac_objext; then
3086   ac_compiler_gnu=yes
3087 else
3088   echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091         ac_compiler_gnu=no
3092 fi
3093
3094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3096
3097 fi
3098 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3100 GCC=`test $ac_compiler_gnu = yes && echo yes`
3101 ac_test_CFLAGS=${CFLAGS+set}
3102 ac_save_CFLAGS=$CFLAGS
3103 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_cc_g+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   ac_save_c_werror_flag=$ac_c_werror_flag
3109    ac_c_werror_flag=yes
3110    ac_cv_prog_cc_g=no
3111    CFLAGS="-g"
3112    cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122
3123   ;
3124   return 0;
3125 }
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compile") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } && {
3141          test -z "$ac_c_werror_flag" ||
3142          test ! -s conftest.err
3143        } && test -s conftest.$ac_objext; then
3144   ac_cv_prog_cc_g=yes
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149         CFLAGS=""
3150       cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } && {
3179          test -z "$ac_c_werror_flag" ||
3180          test ! -s conftest.err
3181        } && test -s conftest.$ac_objext; then
3182   :
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187         ac_c_werror_flag=$ac_save_c_werror_flag
3188          CFLAGS="-g"
3189          cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h.  */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h.  */
3195
3196 int
3197 main ()
3198 {
3199
3200   ;
3201   return 0;
3202 }
3203 _ACEOF
3204 rm -f conftest.$ac_objext
3205 if { (ac_try="$ac_compile"
3206 case "(($ac_try" in
3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208   *) ac_try_echo=$ac_try;;
3209 esac
3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211   (eval "$ac_compile") 2>conftest.er1
3212   ac_status=$?
3213   grep -v '^ *+' conftest.er1 >conftest.err
3214   rm -f conftest.er1
3215   cat conftest.err >&5
3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217   (exit $ac_status); } && {
3218          test -z "$ac_c_werror_flag" ||
3219          test ! -s conftest.err
3220        } && test -s conftest.$ac_objext; then
3221   ac_cv_prog_cc_g=yes
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
3227 fi
3228
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 fi
3231
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 fi
3234
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236    ac_c_werror_flag=$ac_save_c_werror_flag
3237 fi
3238 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240 if test "$ac_test_CFLAGS" = set; then
3241   CFLAGS=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243   if test "$GCC" = yes; then
3244     CFLAGS="-g -O2"
3245   else
3246     CFLAGS="-g"
3247   fi
3248 else
3249   if test "$GCC" = yes; then
3250     CFLAGS="-O2"
3251   else
3252     CFLAGS=
3253   fi
3254 fi
3255 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_cc_c89+set}" = set; then
3258   echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260   ac_cv_prog_cc_c89=no
3261 ac_save_CC=$CC
3262 cat >conftest.$ac_ext <<_ACEOF
3263 /* confdefs.h.  */
3264 _ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h.  */
3268 #include <stdarg.h>
3269 #include <stdio.h>
3270 #include <sys/types.h>
3271 #include <sys/stat.h>
3272 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3273 struct buf { int x; };
3274 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275 static char *e (p, i)
3276      char **p;
3277      int i;
3278 {
3279   return p[i];
3280 }
3281 static char *f (char * (*g) (char **, int), char **p, ...)
3282 {
3283   char *s;
3284   va_list v;
3285   va_start (v,p);
3286   s = g (p, va_arg (v,int));
3287   va_end (v);
3288   return s;
3289 }
3290
3291 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3292    function prototypes and stuff, but not '\xHH' hex character constants.
3293    These don't provoke an error unfortunately, instead are silently treated
3294    as 'x'.  The following induces an error, until -std is added to get
3295    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3296    array size at least.  It's necessary to write '\x00'==0 to get something
3297    that's true only with -std.  */
3298 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
3300 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301    inside strings and character constants.  */
3302 #define FOO(x) 'x'
3303 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
3305 int test (int i, double x);
3306 struct s1 {int (*f) (int a);};
3307 struct s2 {int (*f) (double a);};
3308 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309 int argc;
3310 char **argv;
3311 int
3312 main ()
3313 {
3314 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3315   ;
3316   return 0;
3317 }
3318 _ACEOF
3319 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321 do
3322   CC="$ac_save_CC $ac_arg"
3323   rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3325 case "(($ac_try" in
3326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327   *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330   (eval "$ac_compile") 2>conftest.er1
3331   ac_status=$?
3332   grep -v '^ *+' conftest.er1 >conftest.err
3333   rm -f conftest.er1
3334   cat conftest.err >&5
3335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336   (exit $ac_status); } && {
3337          test -z "$ac_c_werror_flag" ||
3338          test ! -s conftest.err
3339        } && test -s conftest.$ac_objext; then
3340   ac_cv_prog_cc_c89=$ac_arg
3341 else
3342   echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345
3346 fi
3347
3348 rm -f core conftest.err conftest.$ac_objext
3349   test "x$ac_cv_prog_cc_c89" != "xno" && break
3350 done
3351 rm -f conftest.$ac_ext
3352 CC=$ac_save_CC
3353
3354 fi
3355 # AC_CACHE_VAL
3356 case "x$ac_cv_prog_cc_c89" in
3357   x)
3358     { echo "$as_me:$LINENO: result: none needed" >&5
3359 echo "${ECHO_T}none needed" >&6; } ;;
3360   xno)
3361     { echo "$as_me:$LINENO: result: unsupported" >&5
3362 echo "${ECHO_T}unsupported" >&6; } ;;
3363   *)
3364     CC="$CC $ac_cv_prog_cc_c89"
3365     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3367 esac
3368
3369
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 DEPDIR="${am__leading_dot}deps"
3376
3377 ac_config_commands="$ac_config_commands depfiles"
3378
3379
3380 am_make=${MAKE-make}
3381 cat > confinc << 'END'
3382 am__doit:
3383         @echo done
3384 .PHONY: am__doit
3385 END
3386 # If we don't find an include directive, just comment out the code.
3387 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3389 am__include="#"
3390 am__quote=
3391 _am_result=none
3392 # First try GNU make style include.
3393 echo "include confinc" > confmf
3394 # We grep out `Entering directory' and `Leaving directory'
3395 # messages which can occur if `w' ends up in MAKEFLAGS.
3396 # In particular we don't look at `^make:' because GNU make might
3397 # be invoked under some other name (usually "gmake"), in which
3398 # case it prints its new name instead of `make'.
3399 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3400    am__include=include
3401    am__quote=
3402    _am_result=GNU
3403 fi
3404 # Now try BSD make style include.
3405 if test "$am__include" = "#"; then
3406    echo '.include "confinc"' > confmf
3407    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3408       am__include=.include
3409       am__quote="\""
3410       _am_result=BSD
3411    fi
3412 fi
3413
3414
3415 { echo "$as_me:$LINENO: result: $_am_result" >&5
3416 echo "${ECHO_T}$_am_result" >&6; }
3417 rm -f confinc confmf
3418
3419 # Check whether --enable-dependency-tracking was given.
3420 if test "${enable_dependency_tracking+set}" = set; then
3421   enableval=$enable_dependency_tracking;
3422 fi
3423
3424 if test "x$enable_dependency_tracking" != xno; then
3425   am_depcomp="$ac_aux_dir/depcomp"
3426   AMDEPBACKSLASH='\'
3427 fi
3428  if test "x$enable_dependency_tracking" != xno; then
3429   AMDEP_TRUE=
3430   AMDEP_FALSE='#'
3431 else
3432   AMDEP_TRUE='#'
3433   AMDEP_FALSE=
3434 fi
3435
3436
3437
3438 depcc="$CC"   am_compiler_list=
3439
3440 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3442 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446   # We make a subdir and do the tests there.  Otherwise we can end up
3447   # making bogus files that we don't know about and never remove.  For
3448   # instance it was reported that on HP-UX the gcc test will end up
3449   # making a dummy file named `D' -- because `-MD' means `put the output
3450   # in D'.
3451   mkdir conftest.dir
3452   # Copy depcomp to subdir because otherwise we won't find it if we're
3453   # using a relative directory.
3454   cp "$am_depcomp" conftest.dir
3455   cd conftest.dir
3456   # We will build objects and dependencies in a subdirectory because
3457   # it helps to detect inapplicable dependency modes.  For instance
3458   # both Tru64's cc and ICC support -MD to output dependencies as a
3459   # side effect of compilation, but ICC will put the dependencies in
3460   # the current directory while Tru64 will put them in the object
3461   # directory.
3462   mkdir sub
3463
3464   am_cv_CC_dependencies_compiler_type=none
3465   if test "$am_compiler_list" = ""; then
3466      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467   fi
3468   for depmode in $am_compiler_list; do
3469     # Setup a source with many dependencies, because some compilers
3470     # like to wrap large dependency lists on column 80 (with \), and
3471     # we should not choose a depcomp mode which is confused by this.
3472     #
3473     # We need to recreate these files for each test, as the compiler may
3474     # overwrite some of them when testing with obscure command lines.
3475     # This happens at least with the AIX C compiler.
3476     : > sub/conftest.c
3477     for i in 1 2 3 4 5 6; do
3478       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480       # Solaris 8's {/usr,}/bin/sh.
3481       touch sub/conftst$i.h
3482     done
3483     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3484
3485     case $depmode in
3486     nosideeffect)
3487       # after this tag, mechanisms are not by side-effect, so they'll
3488       # only be used when explicitly requested
3489       if test "x$enable_dependency_tracking" = xyes; then
3490         continue
3491       else
3492         break
3493       fi
3494       ;;
3495     none) break ;;
3496     esac
3497     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498     # mode.  It turns out that the SunPro C++ compiler does not properly
3499     # handle `-M -o', and we need to detect this.
3500     if depmode=$depmode \
3501        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504          >/dev/null 2>conftest.err &&
3505        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3506        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3507        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3508        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3509       # icc doesn't choke on unknown options, it will just issue warnings
3510       # or remarks (even with -Werror).  So we grep stderr for any message
3511       # that says an option was ignored or not supported.
3512       # When given -MP, icc 7.0 and 7.1 complain thusly:
3513       #   icc: Command line warning: ignoring option '-M'; no argument required
3514       # The diagnosis changed in icc 8.0:
3515       #   icc: Command line remark: option '-MP' not supported
3516       if (grep 'ignoring option' conftest.err ||
3517           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3518         am_cv_CC_dependencies_compiler_type=$depmode
3519         break
3520       fi
3521     fi
3522   done
3523
3524   cd ..
3525   rm -rf conftest.dir
3526 else
3527   am_cv_CC_dependencies_compiler_type=none
3528 fi
3529
3530 fi
3531 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3532 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3533 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3534
3535  if
3536   test "x$enable_dependency_tracking" != xno \
3537   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3538   am__fastdepCC_TRUE=
3539   am__fastdepCC_FALSE='#'
3540 else
3541   am__fastdepCC_TRUE='#'
3542   am__fastdepCC_FALSE=
3543 fi
3544
3545
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3552 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3553 # On Suns, sometimes $CPP names a directory.
3554 if test -n "$CPP" && test -d "$CPP"; then
3555   CPP=
3556 fi
3557 if test -z "$CPP"; then
3558   if test "${ac_cv_prog_CPP+set}" = set; then
3559   echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561       # Double quotes because CPP needs to be expanded
3562     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3563     do
3564       ac_preproc_ok=false
3565 for ac_c_preproc_warn_flag in '' yes
3566 do
3567   # Use a header file that comes with gcc, so configuring glibc
3568   # with a fresh cross-compiler works.
3569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570   # <limits.h> exists even on freestanding compilers.
3571   # On the NeXT, cc -E runs the code through the compiler's parser,
3572   # not just through cpp. "Syntax error" is here to catch this case.
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579 #ifdef __STDC__
3580 # include <limits.h>
3581 #else
3582 # include <assert.h>
3583 #endif
3584                      Syntax error
3585 _ACEOF
3586 if { (ac_try="$ac_cpp conftest.$ac_ext"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } >/dev/null && {
3599          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3600          test ! -s conftest.err
3601        }; then
3602   :
3603 else
3604   echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3606
3607   # Broken: fails on valid input.
3608 continue
3609 fi
3610
3611 rm -f conftest.err conftest.$ac_ext
3612
3613   # OK, works on sane cases.  Now check whether nonexistent headers
3614   # can be detected and how.
3615   cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621 #include <ac_nonexistent.h>
3622 _ACEOF
3623 if { (ac_try="$ac_cpp conftest.$ac_ext"
3624 case "(($ac_try" in
3625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626   *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3630   ac_status=$?
3631   grep -v '^ *+' conftest.er1 >conftest.err
3632   rm -f conftest.er1
3633   cat conftest.err >&5
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } >/dev/null && {
3636          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3637          test ! -s conftest.err
3638        }; then
3639   # Broken: success on invalid input.
3640 continue
3641 else
3642   echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645   # Passes both tests.
3646 ac_preproc_ok=:
3647 break
3648 fi
3649
3650 rm -f conftest.err conftest.$ac_ext
3651
3652 done
3653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3654 rm -f conftest.err conftest.$ac_ext
3655 if $ac_preproc_ok; then
3656   break
3657 fi
3658
3659     done
3660     ac_cv_prog_CPP=$CPP
3661
3662 fi
3663   CPP=$ac_cv_prog_CPP
3664 else
3665   ac_cv_prog_CPP=$CPP
3666 fi
3667 { echo "$as_me:$LINENO: result: $CPP" >&5
3668 echo "${ECHO_T}$CPP" >&6; }
3669 ac_preproc_ok=false
3670 for ac_c_preproc_warn_flag in '' yes
3671 do
3672   # Use a header file that comes with gcc, so configuring glibc
3673   # with a fresh cross-compiler works.
3674   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3675   # <limits.h> exists even on freestanding compilers.
3676   # On the NeXT, cc -E runs the code through the compiler's parser,
3677   # not just through cpp. "Syntax error" is here to catch this case.
3678   cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h.  */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h.  */
3684 #ifdef __STDC__
3685 # include <limits.h>
3686 #else
3687 # include <assert.h>
3688 #endif
3689                      Syntax error
3690 _ACEOF
3691 if { (ac_try="$ac_cpp conftest.$ac_ext"
3692 case "(($ac_try" in
3693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694   *) ac_try_echo=$ac_try;;
3695 esac
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3698   ac_status=$?
3699   grep -v '^ *+' conftest.er1 >conftest.err
3700   rm -f conftest.er1
3701   cat conftest.err >&5
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); } >/dev/null && {
3704          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3705          test ! -s conftest.err
3706        }; then
3707   :
3708 else
3709   echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3711
3712   # Broken: fails on valid input.
3713 continue
3714 fi
3715
3716 rm -f conftest.err conftest.$ac_ext
3717
3718   # OK, works on sane cases.  Now check whether nonexistent headers
3719   # can be detected and how.
3720   cat >conftest.$ac_ext <<_ACEOF
3721 /* confdefs.h.  */
3722 _ACEOF
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h.  */
3726 #include <ac_nonexistent.h>
3727 _ACEOF
3728 if { (ac_try="$ac_cpp conftest.$ac_ext"
3729 case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3735   ac_status=$?
3736   grep -v '^ *+' conftest.er1 >conftest.err
3737   rm -f conftest.er1
3738   cat conftest.err >&5
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); } >/dev/null && {
3741          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3742          test ! -s conftest.err
3743        }; then
3744   # Broken: success on invalid input.
3745 continue
3746 else
3747   echo "$as_me: failed program was:" >&5
3748 sed 's/^/| /' conftest.$ac_ext >&5
3749
3750   # Passes both tests.
3751 ac_preproc_ok=:
3752 break
3753 fi
3754
3755 rm -f conftest.err conftest.$ac_ext
3756
3757 done
3758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3759 rm -f conftest.err conftest.$ac_ext
3760 if $ac_preproc_ok; then
3761   :
3762 else
3763   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3766 See \`config.log' for more details." >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776 ac_ext=cpp
3777 ac_cpp='$CXXCPP $CPPFLAGS'
3778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3781 if test -z "$CXX"; then
3782   if test -n "$CCC"; then
3783     CXX=$CCC
3784   else
3785     if test -n "$ac_tool_prefix"; then
3786   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3787   do
3788     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3789 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3792 if test "${ac_cv_prog_CXX+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   if test -n "$CXX"; then
3796   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3800 do
3801   IFS=$as_save_IFS
3802   test -z "$as_dir" && as_dir=.
3803   for ac_exec_ext in '' $ac_executable_extensions; do
3804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3807     break 2
3808   fi
3809 done
3810 done
3811 IFS=$as_save_IFS
3812
3813 fi
3814 fi
3815 CXX=$ac_cv_prog_CXX
3816 if test -n "$CXX"; then
3817   { echo "$as_me:$LINENO: result: $CXX" >&5
3818 echo "${ECHO_T}$CXX" >&6; }
3819 else
3820   { echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6; }
3822 fi
3823
3824
3825     test -n "$CXX" && break
3826   done
3827 fi
3828 if test -z "$CXX"; then
3829   ac_ct_CXX=$CXX
3830   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3831 do
3832   # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3836 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   if test -n "$ac_ct_CXX"; then
3840   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_exec_ext in '' $ac_executable_extensions; do
3848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849     ac_cv_prog_ac_ct_CXX="$ac_prog"
3850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851     break 2
3852   fi
3853 done
3854 done
3855 IFS=$as_save_IFS
3856
3857 fi
3858 fi
3859 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3860 if test -n "$ac_ct_CXX"; then
3861   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3862 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3863 else
3864   { echo "$as_me:$LINENO: result: no" >&5
3865 echo "${ECHO_T}no" >&6; }
3866 fi
3867
3868
3869   test -n "$ac_ct_CXX" && break
3870 done
3871
3872   if test "x$ac_ct_CXX" = x; then
3873     CXX="g++"
3874   else
3875     case $cross_compiling:$ac_tool_warned in
3876 yes:)
3877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3878 whose name does not start with the host triplet.  If you think this
3879 configuration is useful to you, please write to autoconf@gnu.org." >&5
3880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3881 whose name does not start with the host triplet.  If you think this
3882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3883 ac_tool_warned=yes ;;
3884 esac
3885     CXX=$ac_ct_CXX
3886   fi
3887 fi
3888
3889   fi
3890 fi
3891 # Provide some information about the compiler.
3892 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3893 ac_compiler=`set X $ac_compile; echo $2`
3894 { (ac_try="$ac_compiler --version >&5"
3895 case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_compiler --version >&5") 2>&5
3901   ac_status=$?
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); }
3904 { (ac_try="$ac_compiler -v >&5"
3905 case "(($ac_try" in
3906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907   *) ac_try_echo=$ac_try;;
3908 esac
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910   (eval "$ac_compiler -v >&5") 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }
3914 { (ac_try="$ac_compiler -V >&5"
3915 case "(($ac_try" in
3916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917   *) ac_try_echo=$ac_try;;
3918 esac
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920   (eval "$ac_compiler -V >&5") 2>&5
3921   ac_status=$?
3922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923   (exit $ac_status); }
3924
3925 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3926 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3927 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3928   echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930   cat >conftest.$ac_ext <<_ACEOF
3931 /* confdefs.h.  */
3932 _ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h.  */
3936
3937 int
3938 main ()
3939 {
3940 #ifndef __GNUC__
3941        choke me
3942 #endif
3943
3944   ;
3945   return 0;
3946 }
3947 _ACEOF
3948 rm -f conftest.$ac_objext
3949 if { (ac_try="$ac_compile"
3950 case "(($ac_try" in
3951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952   *) ac_try_echo=$ac_try;;
3953 esac
3954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3955   (eval "$ac_compile") 2>conftest.er1
3956   ac_status=$?
3957   grep -v '^ *+' conftest.er1 >conftest.err
3958   rm -f conftest.er1
3959   cat conftest.err >&5
3960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961   (exit $ac_status); } && {
3962          test -z "$ac_cxx_werror_flag" ||
3963          test ! -s conftest.err
3964        } && test -s conftest.$ac_objext; then
3965   ac_compiler_gnu=yes
3966 else
3967   echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3969
3970         ac_compiler_gnu=no
3971 fi
3972
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3975
3976 fi
3977 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3978 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3979 GXX=`test $ac_compiler_gnu = yes && echo yes`
3980 ac_test_CXXFLAGS=${CXXFLAGS+set}
3981 ac_save_CXXFLAGS=$CXXFLAGS
3982 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3983 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3984 if test "${ac_cv_prog_cxx_g+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3988    ac_cxx_werror_flag=yes
3989    ac_cv_prog_cxx_g=no
3990    CXXFLAGS="-g"
3991    cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (ac_try="$ac_compile"
4008 case "(($ac_try" in
4009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010   *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013   (eval "$ac_compile") 2>conftest.er1
4014   ac_status=$?
4015   grep -v '^ *+' conftest.er1 >conftest.err
4016   rm -f conftest.er1
4017   cat conftest.err >&5
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); } && {
4020          test -z "$ac_cxx_werror_flag" ||
4021          test ! -s conftest.err
4022        } && test -s conftest.$ac_objext; then
4023   ac_cv_prog_cxx_g=yes
4024 else
4025   echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4027
4028         CXXFLAGS=""
4029       cat >conftest.$ac_ext <<_ACEOF
4030 /* confdefs.h.  */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h.  */
4035
4036 int
4037 main ()
4038 {
4039
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4046 case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051   (eval "$ac_compile") 2>conftest.er1
4052   ac_status=$?
4053   grep -v '^ *+' conftest.er1 >conftest.err
4054   rm -f conftest.er1
4055   cat conftest.err >&5
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); } && {
4058          test -z "$ac_cxx_werror_flag" ||
4059          test ! -s conftest.err
4060        } && test -s conftest.$ac_objext; then
4061   :
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4067          CXXFLAGS="-g"
4068          cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074
4075 int
4076 main ()
4077 {
4078
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4085 case "(($ac_try" in
4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087   *) ac_try_echo=$ac_try;;
4088 esac
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090   (eval "$ac_compile") 2>conftest.er1
4091   ac_status=$?
4092   grep -v '^ *+' conftest.er1 >conftest.err
4093   rm -f conftest.er1
4094   cat conftest.err >&5
4095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096   (exit $ac_status); } && {
4097          test -z "$ac_cxx_werror_flag" ||
4098          test ! -s conftest.err
4099        } && test -s conftest.$ac_objext; then
4100   ac_cv_prog_cxx_g=yes
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105
4106 fi
4107
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 fi
4110
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 fi
4113
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4116 fi
4117 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4118 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4119 if test "$ac_test_CXXFLAGS" = set; then
4120   CXXFLAGS=$ac_save_CXXFLAGS
4121 elif test $ac_cv_prog_cxx_g = yes; then
4122   if test "$GXX" = yes; then
4123     CXXFLAGS="-g -O2"
4124   else
4125     CXXFLAGS="-g"
4126   fi
4127 else
4128   if test "$GXX" = yes; then
4129     CXXFLAGS="-O2"
4130   else
4131     CXXFLAGS=
4132   fi
4133 fi
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140 depcc="$CXX"  am_compiler_list=
4141
4142 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4143 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4144 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4148   # We make a subdir and do the tests there.  Otherwise we can end up
4149   # making bogus files that we don't know about and never remove.  For
4150   # instance it was reported that on HP-UX the gcc test will end up
4151   # making a dummy file named `D' -- because `-MD' means `put the output
4152   # in D'.
4153   mkdir conftest.dir
4154   # Copy depcomp to subdir because otherwise we won't find it if we're
4155   # using a relative directory.
4156   cp "$am_depcomp" conftest.dir
4157   cd conftest.dir
4158   # We will build objects and dependencies in a subdirectory because
4159   # it helps to detect inapplicable dependency modes.  For instance
4160   # both Tru64's cc and ICC support -MD to output dependencies as a
4161   # side effect of compilation, but ICC will put the dependencies in
4162   # the current directory while Tru64 will put them in the object
4163   # directory.
4164   mkdir sub
4165
4166   am_cv_CXX_dependencies_compiler_type=none
4167   if test "$am_compiler_list" = ""; then
4168      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4169   fi
4170   for depmode in $am_compiler_list; do
4171     # Setup a source with many dependencies, because some compilers
4172     # like to wrap large dependency lists on column 80 (with \), and
4173     # we should not choose a depcomp mode which is confused by this.
4174     #
4175     # We need to recreate these files for each test, as the compiler may
4176     # overwrite some of them when testing with obscure command lines.
4177     # This happens at least with the AIX C compiler.
4178     : > sub/conftest.c
4179     for i in 1 2 3 4 5 6; do
4180       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4181       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4182       # Solaris 8's {/usr,}/bin/sh.
4183       touch sub/conftst$i.h
4184     done
4185     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4186
4187     case $depmode in
4188     nosideeffect)
4189       # after this tag, mechanisms are not by side-effect, so they'll
4190       # only be used when explicitly requested
4191       if test "x$enable_dependency_tracking" = xyes; then
4192         continue
4193       else
4194         break
4195       fi
4196       ;;
4197     none) break ;;
4198     esac
4199     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4200     # mode.  It turns out that the SunPro C++ compiler does not properly
4201     # handle `-M -o', and we need to detect this.
4202     if depmode=$depmode \
4203        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4204        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4205        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4206          >/dev/null 2>conftest.err &&
4207        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4208        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4209        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4210        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4211       # icc doesn't choke on unknown options, it will just issue warnings
4212       # or remarks (even with -Werror).  So we grep stderr for any message
4213       # that says an option was ignored or not supported.
4214       # When given -MP, icc 7.0 and 7.1 complain thusly:
4215       #   icc: Command line warning: ignoring option '-M'; no argument required
4216       # The diagnosis changed in icc 8.0:
4217       #   icc: Command line remark: option '-MP' not supported
4218       if (grep 'ignoring option' conftest.err ||
4219           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4220         am_cv_CXX_dependencies_compiler_type=$depmode
4221         break
4222       fi
4223     fi
4224   done
4225
4226   cd ..
4227   rm -rf conftest.dir
4228 else
4229   am_cv_CXX_dependencies_compiler_type=none
4230 fi
4231
4232 fi
4233 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4234 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4235 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4236
4237  if
4238   test "x$enable_dependency_tracking" != xno \
4239   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4240   am__fastdepCXX_TRUE=
4241   am__fastdepCXX_FALSE='#'
4242 else
4243   am__fastdepCXX_TRUE='#'
4244   am__fastdepCXX_FALSE=
4245 fi
4246
4247
4248  if test "$GCC" = yes; then
4249   GCC_TRUE=
4250   GCC_FALSE='#'
4251 else
4252   GCC_TRUE='#'
4253   GCC_FALSE=
4254 fi
4255    # let the Makefile know if we're gcc
4256
4257 # Check whether --enable-shared was given.
4258 if test "${enable_shared+set}" = set; then
4259   enableval=$enable_shared; p=${PACKAGE-default}
4260     case $enableval in
4261     yes) enable_shared=yes ;;
4262     no) enable_shared=no ;;
4263     *)
4264       enable_shared=no
4265       # Look at the argument we got.  We use all the common list separators.
4266       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4267       for pkg in $enableval; do
4268         IFS="$lt_save_ifs"
4269         if test "X$pkg" = "X$p"; then
4270           enable_shared=yes
4271         fi
4272       done
4273       IFS="$lt_save_ifs"
4274       ;;
4275     esac
4276 else
4277   enable_shared=yes
4278 fi
4279
4280
4281 # Check whether --enable-static was given.
4282 if test "${enable_static+set}" = set; then
4283   enableval=$enable_static; p=${PACKAGE-default}
4284     case $enableval in
4285     yes) enable_static=yes ;;
4286     no) enable_static=no ;;
4287     *)
4288      enable_static=no
4289       # Look at the argument we got.  We use all the common list separators.
4290       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4291       for pkg in $enableval; do
4292         IFS="$lt_save_ifs"
4293         if test "X$pkg" = "X$p"; then
4294           enable_static=yes
4295         fi
4296       done
4297       IFS="$lt_save_ifs"
4298       ;;
4299     esac
4300 else
4301   enable_static=yes
4302 fi
4303
4304
4305 # Check whether --enable-fast-install was given.
4306 if test "${enable_fast_install+set}" = set; then
4307   enableval=$enable_fast_install; p=${PACKAGE-default}
4308     case $enableval in
4309     yes) enable_fast_install=yes ;;
4310     no) enable_fast_install=no ;;
4311     *)
4312       enable_fast_install=no
4313       # Look at the argument we got.  We use all the common list separators.
4314       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4315       for pkg in $enableval; do
4316         IFS="$lt_save_ifs"
4317         if test "X$pkg" = "X$p"; then
4318           enable_fast_install=yes
4319         fi
4320       done
4321       IFS="$lt_save_ifs"
4322       ;;
4323     esac
4324 else
4325   enable_fast_install=yes
4326 fi
4327
4328
4329 # Make sure we can run config.sub.
4330 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4331   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4332 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4333    { (exit 1); exit 1; }; }
4334
4335 { echo "$as_me:$LINENO: checking build system type" >&5
4336 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4337 if test "${ac_cv_build+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   ac_build_alias=$build_alias
4341 test "x$ac_build_alias" = x &&
4342   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4343 test "x$ac_build_alias" = x &&
4344   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4345 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4346    { (exit 1); exit 1; }; }
4347 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4348   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4349 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4350    { (exit 1); exit 1; }; }
4351
4352 fi
4353 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4354 echo "${ECHO_T}$ac_cv_build" >&6; }
4355 case $ac_cv_build in
4356 *-*-*) ;;
4357 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4358 echo "$as_me: error: invalid value of canonical build" >&2;}
4359    { (exit 1); exit 1; }; };;
4360 esac
4361 build=$ac_cv_build
4362 ac_save_IFS=$IFS; IFS='-'
4363 set x $ac_cv_build
4364 shift
4365 build_cpu=$1
4366 build_vendor=$2
4367 shift; shift
4368 # Remember, the first character of IFS is used to create $*,
4369 # except with old shells:
4370 build_os=$*
4371 IFS=$ac_save_IFS
4372 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4373
4374
4375 { echo "$as_me:$LINENO: checking host system type" >&5
4376 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4377 if test "${ac_cv_host+set}" = set; then
4378   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380   if test "x$host_alias" = x; then
4381   ac_cv_host=$ac_cv_build
4382 else
4383   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4384     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4385 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4386    { (exit 1); exit 1; }; }
4387 fi
4388
4389 fi
4390 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4391 echo "${ECHO_T}$ac_cv_host" >&6; }
4392 case $ac_cv_host in
4393 *-*-*) ;;
4394 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4395 echo "$as_me: error: invalid value of canonical host" >&2;}
4396    { (exit 1); exit 1; }; };;
4397 esac
4398 host=$ac_cv_host
4399 ac_save_IFS=$IFS; IFS='-'
4400 set x $ac_cv_host
4401 shift
4402 host_cpu=$1
4403 host_vendor=$2
4404 shift; shift
4405 # Remember, the first character of IFS is used to create $*,
4406 # except with old shells:
4407 host_os=$*
4408 IFS=$ac_save_IFS
4409 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4410
4411
4412 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4413 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4414 if test "${lt_cv_path_SED+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   # Loop through the user's path and test for sed and gsed.
4418 # Then use that list of sed's as ones to test for truncation.
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4421 do
4422   IFS=$as_save_IFS
4423   test -z "$as_dir" && as_dir=.
4424   for lt_ac_prog in sed gsed; do
4425     for ac_exec_ext in '' $ac_executable_extensions; do
4426       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4427         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4428       fi
4429     done
4430   done
4431 done
4432 IFS=$as_save_IFS
4433 lt_ac_max=0
4434 lt_ac_count=0
4435 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4436 # along with /bin/sed that truncates output.
4437 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4438   test ! -f $lt_ac_sed && continue
4439   cat /dev/null > conftest.in
4440   lt_ac_count=0
4441   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4442   # Check for GNU sed and select it if it is found.
4443   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4444     lt_cv_path_SED=$lt_ac_sed
4445     break
4446   fi
4447   while true; do
4448     cat conftest.in conftest.in >conftest.tmp
4449     mv conftest.tmp conftest.in
4450     cp conftest.in conftest.nl
4451     echo >>conftest.nl
4452     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4453     cmp -s conftest.out conftest.nl || break
4454     # 10000 chars as input seems more than enough
4455     test $lt_ac_count -gt 10 && break
4456     lt_ac_count=`expr $lt_ac_count + 1`
4457     if test $lt_ac_count -gt $lt_ac_max; then
4458       lt_ac_max=$lt_ac_count
4459       lt_cv_path_SED=$lt_ac_sed
4460     fi
4461   done
4462 done
4463
4464 fi
4465
4466 SED=$lt_cv_path_SED
4467
4468 { echo "$as_me:$LINENO: result: $SED" >&5
4469 echo "${ECHO_T}$SED" >&6; }
4470
4471 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4472 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_GREP+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   # Extract the first word of "grep ggrep" to use in msg output
4477 if test -z "$GREP"; then
4478 set dummy grep ggrep; ac_prog_name=$2
4479 if test "${ac_cv_path_GREP+set}" = set; then
4480   echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482   ac_path_GREP_found=false
4483 # Loop through the user's path and test for each of PROGNAME-LIST
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_prog in grep ggrep; do
4490   for ac_exec_ext in '' $ac_executable_extensions; do
4491     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4492     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4493     # Check for GNU ac_path_GREP and select it if it is found.
4494   # Check for GNU $ac_path_GREP
4495 case `"$ac_path_GREP" --version 2>&1` in
4496 *GNU*)
4497   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4498 *)
4499   ac_count=0
4500   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4501   while :
4502   do
4503     cat "conftest.in" "conftest.in" >"conftest.tmp"
4504     mv "conftest.tmp" "conftest.in"
4505     cp "conftest.in" "conftest.nl"
4506     echo 'GREP' >> "conftest.nl"
4507     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4508     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4509     ac_count=`expr $ac_count + 1`
4510     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4511       # Best one so far, save it but keep looking for a better one
4512       ac_cv_path_GREP="$ac_path_GREP"
4513       ac_path_GREP_max=$ac_count
4514     fi
4515     # 10*(2^10) chars as input seems more than enough
4516     test $ac_count -gt 10 && break
4517   done
4518   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4519 esac
4520
4521
4522     $ac_path_GREP_found && break 3
4523   done
4524 done
4525
4526 done
4527 IFS=$as_save_IFS
4528
4529
4530 fi
4531
4532 GREP="$ac_cv_path_GREP"
4533 if test -z "$GREP"; then
4534   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4535 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4536    { (exit 1); exit 1; }; }
4537 fi
4538
4539 else
4540   ac_cv_path_GREP=$GREP
4541 fi
4542
4543
4544 fi
4545 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4546 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4547  GREP="$ac_cv_path_GREP"
4548
4549
4550 { echo "$as_me:$LINENO: checking for egrep" >&5
4551 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4552 if test "${ac_cv_path_EGREP+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4556    then ac_cv_path_EGREP="$GREP -E"
4557    else
4558      # Extract the first word of "egrep" to use in msg output
4559 if test -z "$EGREP"; then
4560 set dummy egrep; ac_prog_name=$2
4561 if test "${ac_cv_path_EGREP+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   ac_path_EGREP_found=false
4565 # Loop through the user's path and test for each of PROGNAME-LIST
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_prog in egrep; do
4572   for ac_exec_ext in '' $ac_executable_extensions; do
4573     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4574     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4575     # Check for GNU ac_path_EGREP and select it if it is found.
4576   # Check for GNU $ac_path_EGREP
4577 case `"$ac_path_EGREP" --version 2>&1` in
4578 *GNU*)
4579   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4580 *)
4581   ac_count=0
4582   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4583   while :
4584   do
4585     cat "conftest.in" "conftest.in" >"conftest.tmp"
4586     mv "conftest.tmp" "conftest.in"
4587     cp "conftest.in" "conftest.nl"
4588     echo 'EGREP' >> "conftest.nl"
4589     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591     ac_count=`expr $ac_count + 1`
4592     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4593       # Best one so far, save it but keep looking for a better one
4594       ac_cv_path_EGREP="$ac_path_EGREP"
4595       ac_path_EGREP_max=$ac_count
4596     fi
4597     # 10*(2^10) chars as input seems more than enough
4598     test $ac_count -gt 10 && break
4599   done
4600   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4601 esac
4602
4603
4604     $ac_path_EGREP_found && break 3
4605   done
4606 done
4607
4608 done
4609 IFS=$as_save_IFS
4610
4611
4612 fi
4613
4614 EGREP="$ac_cv_path_EGREP"
4615 if test -z "$EGREP"; then
4616   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4617 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4618    { (exit 1); exit 1; }; }
4619 fi
4620
4621 else
4622   ac_cv_path_EGREP=$EGREP
4623 fi
4624
4625
4626    fi
4627 fi
4628 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4629 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4630  EGREP="$ac_cv_path_EGREP"
4631
4632
4633
4634 # Check whether --with-gnu-ld was given.
4635 if test "${with_gnu_ld+set}" = set; then
4636   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4637 else
4638   with_gnu_ld=no
4639 fi
4640
4641 ac_prog=ld
4642 if test "$GCC" = yes; then
4643   # Check if gcc -print-prog-name=ld gives a path.
4644   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4645 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4646   case $host in
4647   *-*-mingw*)
4648     # gcc leaves a trailing carriage return which upsets mingw
4649     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4650   *)
4651     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4652   esac
4653   case $ac_prog in
4654     # Accept absolute paths.
4655     [\\/]* | ?:[\\/]*)
4656       re_direlt='/[^/][^/]*/\.\./'
4657       # Canonicalize the pathname of ld
4658       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4659       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4660         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4661       done
4662       test -z "$LD" && LD="$ac_prog"
4663       ;;
4664   "")
4665     # If it fails, then pretend we aren't using GCC.
4666     ac_prog=ld
4667     ;;
4668   *)
4669     # If it is relative, then search for the first ld in PATH.
4670     with_gnu_ld=unknown
4671     ;;
4672   esac
4673 elif test "$with_gnu_ld" = yes; then
4674   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4675 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4676 else
4677   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4678 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4679 fi
4680 if test "${lt_cv_path_LD+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   if test -z "$LD"; then
4684   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4685   for ac_dir in $PATH; do
4686     IFS="$lt_save_ifs"
4687     test -z "$ac_dir" && ac_dir=.
4688     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4689       lt_cv_path_LD="$ac_dir/$ac_prog"
4690       # Check to see if the program is GNU ld.  I'd rather use --version,
4691       # but apparently some variants of GNU ld only accept -v.
4692       # Break only if it was the GNU/non-GNU ld that we prefer.
4693       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4694       *GNU* | *'with BFD'*)
4695         test "$with_gnu_ld" != no && break
4696         ;;
4697       *)
4698         test "$with_gnu_ld" != yes && break
4699         ;;
4700       esac
4701     fi
4702   done
4703   IFS="$lt_save_ifs"
4704 else
4705   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4706 fi
4707 fi
4708
4709 LD="$lt_cv_path_LD"
4710 if test -n "$LD"; then
4711   { echo "$as_me:$LINENO: result: $LD" >&5
4712 echo "${ECHO_T}$LD" >&6; }
4713 else
4714   { echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6; }
4716 fi
4717 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4718 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4719    { (exit 1); exit 1; }; }
4720 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4721 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4722 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4726 case `$LD -v 2>&1 </dev/null` in
4727 *GNU* | *'with BFD'*)
4728   lt_cv_prog_gnu_ld=yes
4729   ;;
4730 *)
4731   lt_cv_prog_gnu_ld=no
4732   ;;
4733 esac
4734 fi
4735 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4736 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4737 with_gnu_ld=$lt_cv_prog_gnu_ld
4738
4739
4740 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4741 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4742 if test "${lt_cv_ld_reload_flag+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   lt_cv_ld_reload_flag='-r'
4746 fi
4747 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4748 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4749 reload_flag=$lt_cv_ld_reload_flag
4750 case $reload_flag in
4751 "" | " "*) ;;
4752 *) reload_flag=" $reload_flag" ;;
4753 esac
4754 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4755 case $host_os in
4756   darwin*)
4757     if test "$GCC" = yes; then
4758       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4759     else
4760       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4761     fi
4762     ;;
4763 esac
4764
4765 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4766 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4767 if test "${lt_cv_path_NM+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   if test -n "$NM"; then
4771   # Let the user override the test.
4772   lt_cv_path_NM="$NM"
4773 else
4774   lt_nm_to_check="${ac_tool_prefix}nm"
4775   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4776     lt_nm_to_check="$lt_nm_to_check nm"
4777   fi
4778   for lt_tmp_nm in $lt_nm_to_check; do
4779     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4780     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4781       IFS="$lt_save_ifs"
4782       test -z "$ac_dir" && ac_dir=.
4783       tmp_nm="$ac_dir/$lt_tmp_nm"
4784       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4785         # Check to see if the nm accepts a BSD-compat flag.
4786         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4787         #   nm: unknown option "B" ignored
4788         # Tru64's nm complains that /dev/null is an invalid object file
4789         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4790         */dev/null* | *'Invalid file or object type'*)
4791           lt_cv_path_NM="$tmp_nm -B"
4792           break
4793           ;;
4794         *)
4795           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4796           */dev/null*)
4797             lt_cv_path_NM="$tmp_nm -p"
4798             break
4799             ;;
4800           *)
4801             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4802             continue # so that we can try to find one that supports BSD flags
4803             ;;
4804           esac
4805           ;;
4806         esac
4807       fi
4808     done
4809     IFS="$lt_save_ifs"
4810   done
4811   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4812 fi
4813 fi
4814 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4815 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4816 NM="$lt_cv_path_NM"
4817
4818 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4819 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4820 LN_S=$as_ln_s
4821 if test "$LN_S" = "ln -s"; then
4822   { echo "$as_me:$LINENO: result: yes" >&5
4823 echo "${ECHO_T}yes" >&6; }
4824 else
4825   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4826 echo "${ECHO_T}no, using $LN_S" >&6; }
4827 fi
4828
4829 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4830 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4831 if test "${lt_cv_deplibs_check_method+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   lt_cv_file_magic_cmd='$MAGIC_CMD'
4835 lt_cv_file_magic_test_file=
4836 lt_cv_deplibs_check_method='unknown'
4837 # Need to set the preceding variable on all platforms that support
4838 # interlibrary dependencies.
4839 # 'none' -- dependencies not supported.
4840 # `unknown' -- same as none, but documents that we really don't know.
4841 # 'pass_all' -- all dependencies passed with no checks.
4842 # 'test_compile' -- check by making test program.
4843 # 'file_magic [[regex]]' -- check by looking for files in library path
4844 # which responds to the $file_magic_cmd with a given extended regex.
4845 # If you have `file' or equivalent on your system and you're not sure
4846 # whether `pass_all' will *always* work, you probably want this one.
4847
4848 case $host_os in
4849 aix[4-9]*)
4850   lt_cv_deplibs_check_method=pass_all
4851   ;;
4852
4853 beos*)
4854   lt_cv_deplibs_check_method=pass_all
4855   ;;
4856
4857 bsdi[45]*)
4858   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4859   lt_cv_file_magic_cmd='/usr/bin/file -L'
4860   lt_cv_file_magic_test_file=/shlib/libc.so
4861   ;;
4862
4863 cygwin*)
4864   # func_win32_libid is a shell function defined in ltmain.sh
4865   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4866   lt_cv_file_magic_cmd='func_win32_libid'
4867   ;;
4868
4869 mingw* | pw32*)
4870   # Base MSYS/MinGW do not provide the 'file' command needed by
4871   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4872   # unless we find 'file', for example because we are cross-compiling.
4873   if ( file / ) >/dev/null 2>&1; then
4874     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4875     lt_cv_file_magic_cmd='func_win32_libid'
4876   else
4877     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4878     lt_cv_file_magic_cmd='$OBJDUMP -f'
4879   fi
4880   ;;
4881
4882 darwin* | rhapsody*)
4883   lt_cv_deplibs_check_method=pass_all
4884   ;;
4885
4886 freebsd* | dragonfly*)
4887   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4888     case $host_cpu in
4889     i*86 )
4890       # Not sure whether the presence of OpenBSD here was a mistake.
4891       # Let's accept both of them until this is cleared up.
4892       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4893       lt_cv_file_magic_cmd=/usr/bin/file
4894       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4895       ;;
4896     esac
4897   else
4898     lt_cv_deplibs_check_method=pass_all
4899   fi
4900   ;;
4901
4902 gnu*)
4903   lt_cv_deplibs_check_method=pass_all
4904   ;;
4905
4906 hpux10.20* | hpux11*)
4907   lt_cv_file_magic_cmd=/usr/bin/file
4908   case $host_cpu in
4909   ia64*)
4910     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4911     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4912     ;;
4913   hppa*64*)
4914     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]'
4915     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4916     ;;
4917   *)
4918     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4919     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4920     ;;
4921   esac
4922   ;;
4923
4924 interix[3-9]*)
4925   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4926   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4927   ;;
4928
4929 irix5* | irix6* | nonstopux*)
4930   case $LD in
4931   *-32|*"-32 ") libmagic=32-bit;;
4932   *-n32|*"-n32 ") libmagic=N32;;
4933   *-64|*"-64 ") libmagic=64-bit;;
4934   *) libmagic=never-match;;
4935   esac
4936   lt_cv_deplibs_check_method=pass_all
4937   ;;
4938
4939 # This must be Linux ELF.
4940 linux* | k*bsd*-gnu)
4941   lt_cv_deplibs_check_method=pass_all
4942   ;;
4943
4944 netbsd* | netbsdelf*-gnu)
4945   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4946     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4947   else
4948     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4949   fi
4950   ;;
4951
4952 newos6*)
4953   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4954   lt_cv_file_magic_cmd=/usr/bin/file
4955   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4956   ;;
4957
4958 nto-qnx*)
4959   lt_cv_deplibs_check_method=unknown
4960   ;;
4961
4962 openbsd*)
4963   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4964     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4965   else
4966     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4967   fi
4968   ;;
4969
4970 osf3* | osf4* | osf5*)
4971   lt_cv_deplibs_check_method=pass_all
4972   ;;
4973
4974 rdos*)
4975   lt_cv_deplibs_check_method=pass_all
4976   ;;
4977
4978 solaris*)
4979   lt_cv_deplibs_check_method=pass_all
4980   ;;
4981
4982 sysv4 | sysv4.3*)
4983   case $host_vendor in
4984   motorola)
4985     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]'
4986     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4987     ;;
4988   ncr)
4989     lt_cv_deplibs_check_method=pass_all
4990     ;;
4991   sequent)
4992     lt_cv_file_magic_cmd='/bin/file'
4993     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4994     ;;
4995   sni)
4996     lt_cv_file_magic_cmd='/bin/file'
4997     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4998     lt_cv_file_magic_test_file=/lib/libc.so
4999     ;;
5000   siemens)
5001     lt_cv_deplibs_check_method=pass_all
5002     ;;
5003   pc)
5004     lt_cv_deplibs_check_method=pass_all
5005     ;;
5006   esac
5007   ;;
5008
5009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5010   lt_cv_deplibs_check_method=pass_all
5011   ;;
5012 esac
5013
5014 fi
5015 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5016 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5017 file_magic_cmd=$lt_cv_file_magic_cmd
5018 deplibs_check_method=$lt_cv_deplibs_check_method
5019 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5020
5021
5022
5023
5024 # If no C compiler was specified, use CC.
5025 LTCC=${LTCC-"$CC"}
5026
5027 # If no C compiler flags were specified, use CFLAGS.
5028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5029
5030 # Allow CC to be a program name with arguments.
5031 compiler=$CC
5032
5033
5034 # Check whether --enable-libtool-lock was given.
5035 if test "${enable_libtool_lock+set}" = set; then
5036   enableval=$enable_libtool_lock;
5037 fi
5038
5039 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5040
5041 # Some flags need to be propagated to the compiler or linker for good
5042 # libtool support.
5043 case $host in
5044 ia64-*-hpux*)
5045   # Find out which ABI we are using.
5046   echo 'int i;' > conftest.$ac_ext
5047   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048   (eval $ac_compile) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; then
5052     case `/usr/bin/file conftest.$ac_objext` in
5053     *ELF-32*)
5054       HPUX_IA64_MODE="32"
5055       ;;
5056     *ELF-64*)
5057       HPUX_IA64_MODE="64"
5058       ;;
5059     esac
5060   fi
5061   rm -rf conftest*
5062   ;;
5063 *-*-irix6*)
5064   # Find out which ABI we are using.
5065   echo '#line 5065 "configure"' > conftest.$ac_ext
5066   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067   (eval $ac_compile) 2>&5
5068   ac_status=$?
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); }; then
5071    if test "$lt_cv_prog_gnu_ld" = yes; then
5072     case `/usr/bin/file conftest.$ac_objext` in
5073     *32-bit*)
5074       LD="${LD-ld} -melf32bsmip"
5075       ;;
5076     *N32*)
5077       LD="${LD-ld} -melf32bmipn32"
5078       ;;
5079     *64-bit*)
5080       LD="${LD-ld} -melf64bmip"
5081       ;;
5082     esac
5083    else
5084     case `/usr/bin/file conftest.$ac_objext` in
5085     *32-bit*)
5086       LD="${LD-ld} -32"
5087       ;;
5088     *N32*)
5089       LD="${LD-ld} -n32"
5090       ;;
5091     *64-bit*)
5092       LD="${LD-ld} -64"
5093       ;;
5094     esac
5095    fi
5096   fi
5097   rm -rf conftest*
5098   ;;
5099
5100 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5101 s390*-*linux*|sparc*-*linux*)
5102   # Find out which ABI we are using.
5103   echo 'int i;' > conftest.$ac_ext
5104   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5105   (eval $ac_compile) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; then
5109     case `/usr/bin/file conftest.o` in
5110     *32-bit*)
5111       case $host in
5112         x86_64-*kfreebsd*-gnu)
5113           LD="${LD-ld} -m elf_i386_fbsd"
5114           ;;
5115         x86_64-*linux*)
5116           LD="${LD-ld} -m elf_i386"
5117           ;;
5118         ppc64-*linux*|powerpc64-*linux*)
5119           LD="${LD-ld} -m elf32ppclinux"
5120           ;;
5121         s390x-*linux*)
5122           LD="${LD-ld} -m elf_s390"
5123           ;;
5124         sparc64-*linux*)
5125           LD="${LD-ld} -m elf32_sparc"
5126           ;;
5127       esac
5128       ;;
5129     *64-bit*)
5130       case $host in
5131         x86_64-*kfreebsd*-gnu)
5132           LD="${LD-ld} -m elf_x86_64_fbsd"
5133           ;;
5134         x86_64-*linux*)
5135           LD="${LD-ld} -m elf_x86_64"
5136           ;;
5137         ppc*-*linux*|powerpc*-*linux*)
5138           LD="${LD-ld} -m elf64ppc"
5139           ;;
5140         s390*-*linux*)
5141           LD="${LD-ld} -m elf64_s390"
5142           ;;
5143         sparc*-*linux*)
5144           LD="${LD-ld} -m elf64_sparc"
5145           ;;
5146       esac
5147       ;;
5148     esac
5149   fi
5150   rm -rf conftest*
5151   ;;
5152
5153 *-*-sco3.2v5*)
5154   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5155   SAVE_CFLAGS="$CFLAGS"
5156   CFLAGS="$CFLAGS -belf"
5157   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5158 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5159 if test "${lt_cv_cc_needs_belf+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   ac_ext=c
5163 ac_cpp='$CPP $CPPFLAGS'
5164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167
5168      cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h.  */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h.  */
5174
5175 int
5176 main ()
5177 {
5178
5179   ;
5180   return 0;
5181 }
5182 _ACEOF
5183 rm -f conftest.$ac_objext conftest$ac_exeext
5184 if { (ac_try="$ac_link"
5185 case "(($ac_try" in
5186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187   *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190   (eval "$ac_link") 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } && {
5197          test -z "$ac_c_werror_flag" ||
5198          test ! -s conftest.err
5199        } && test -s conftest$ac_exeext &&
5200        $as_test_x conftest$ac_exeext; then
5201   lt_cv_cc_needs_belf=yes
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206         lt_cv_cc_needs_belf=no
5207 fi
5208
5209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5210       conftest$ac_exeext conftest.$ac_ext
5211      ac_ext=c
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216
5217 fi
5218 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5219 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5220   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5221     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5222     CFLAGS="$SAVE_CFLAGS"
5223   fi
5224   ;;
5225 sparc*-*solaris*)
5226   # Find out which ABI we are using.
5227   echo 'int i;' > conftest.$ac_ext
5228   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229   (eval $ac_compile) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); }; then
5233     case `/usr/bin/file conftest.o` in
5234     *64-bit*)
5235       case $lt_cv_prog_gnu_ld in
5236       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5237       *)
5238         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5239           LD="${LD-ld} -64"
5240         fi
5241         ;;
5242       esac
5243       ;;
5244     esac
5245   fi
5246   rm -rf conftest*
5247   ;;
5248
5249
5250 esac
5251
5252 need_locks="$enable_libtool_lock"
5253
5254
5255
5256 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5257 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5258 if test "${ac_cv_header_stdc+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 #include <stdlib.h>
5268 #include <stdarg.h>
5269 #include <string.h>
5270 #include <float.h>
5271
5272 int
5273 main ()
5274 {
5275
5276   ;
5277   return 0;
5278 }
5279 _ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (ac_try="$ac_compile"
5282 case "(($ac_try" in
5283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284   *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287   (eval "$ac_compile") 2>conftest.er1
5288   ac_status=$?
5289   grep -v '^ *+' conftest.er1 >conftest.err
5290   rm -f conftest.er1
5291   cat conftest.err >&5
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); } && {
5294          test -z "$ac_c_werror_flag" ||
5295          test ! -s conftest.err
5296        } && test -s conftest.$ac_objext; then
5297   ac_cv_header_stdc=yes
5298 else
5299   echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5301
5302         ac_cv_header_stdc=no
5303 fi
5304
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306
5307 if test $ac_cv_header_stdc = yes; then
5308   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5309   cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315 #include <string.h>
5316
5317 _ACEOF
5318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319   $EGREP "memchr" >/dev/null 2>&1; then
5320   :
5321 else
5322   ac_cv_header_stdc=no
5323 fi
5324 rm -f conftest*
5325
5326 fi
5327
5328 if test $ac_cv_header_stdc = yes; then
5329   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5330   cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h.  */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h.  */
5336 #include <stdlib.h>
5337
5338 _ACEOF
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340   $EGREP "free" >/dev/null 2>&1; then
5341   :
5342 else
5343   ac_cv_header_stdc=no
5344 fi
5345 rm -f conftest*
5346
5347 fi
5348
5349 if test $ac_cv_header_stdc = yes; then
5350   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5351   if test "$cross_compiling" = yes; then
5352   :
5353 else
5354   cat >conftest.$ac_ext <<_ACEOF
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360 #include <ctype.h>
5361 #include <stdlib.h>
5362 #if ((' ' & 0x0FF) == 0x020)
5363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5365 #else
5366 # define ISLOWER(c) \
5367                    (('a' <= (c) && (c) <= 'i') \
5368                      || ('j' <= (c) && (c) <= 'r') \
5369                      || ('s' <= (c) && (c) <= 'z'))
5370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5371 #endif
5372
5373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5374 int
5375 main ()
5376 {
5377   int i;
5378   for (i = 0; i < 256; i++)
5379     if (XOR (islower (i), ISLOWER (i))
5380         || toupper (i) != TOUPPER (i))
5381       return 2;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest$ac_exeext
5386 if { (ac_try="$ac_link"
5387 case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_link") 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5396   { (case "(($ac_try" in
5397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398   *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401   (eval "$ac_try") 2>&5
5402   ac_status=$?
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); }; }; then
5405   :
5406 else
5407   echo "$as_me: program exited with status $ac_status" >&5
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ( exit $ac_status )
5412 ac_cv_header_stdc=no
5413 fi
5414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5415 fi
5416
5417
5418 fi
5419 fi
5420 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5421 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5422 if test $ac_cv_header_stdc = yes; then
5423
5424 cat >>confdefs.h <<\_ACEOF
5425 #define STDC_HEADERS 1
5426 _ACEOF
5427
5428 fi
5429
5430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5441                   inttypes.h stdint.h unistd.h
5442 do
5443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h.  */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h.  */
5455 $ac_includes_default
5456
5457 #include <$ac_header>
5458 _ACEOF
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5461 case "(($ac_try" in
5462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463   *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466   (eval "$ac_compile") 2>conftest.er1
5467   ac_status=$?
5468   grep -v '^ *+' conftest.er1 >conftest.err
5469   rm -f conftest.er1
5470   cat conftest.err >&5
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); } && {
5473          test -z "$ac_c_werror_flag" ||
5474          test ! -s conftest.err
5475        } && test -s conftest.$ac_objext; then
5476   eval "$as_ac_Header=yes"
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481         eval "$as_ac_Header=no"
5482 fi
5483
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5485 fi
5486 ac_res=`eval echo '${'$as_ac_Header'}'`
5487                { echo "$as_me:$LINENO: result: $ac_res" >&5
5488 echo "${ECHO_T}$ac_res" >&6; }
5489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5490   cat >>confdefs.h <<_ACEOF
5491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5492 _ACEOF
5493
5494 fi
5495
5496 done
5497
5498
5499
5500 for ac_header in dlfcn.h
5501 do
5502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5507   echo $ECHO_N "(cached) $ECHO_C" >&6
5508 fi
5509 ac_res=`eval echo '${'$as_ac_Header'}'`
5510                { echo "$as_me:$LINENO: result: $ac_res" >&5
5511 echo "${ECHO_T}$ac_res" >&6; }
5512 else
5513   # Is the header compilable?
5514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 $ac_includes_default
5523 #include <$ac_header>
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529   *) ac_try_echo=$ac_try;;
5530 esac
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532   (eval "$ac_compile") 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } && {
5539          test -z "$ac_c_werror_flag" ||
5540          test ! -s conftest.err
5541        } && test -s conftest.$ac_objext; then
5542   ac_header_compiler=yes
5543 else
5544   echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547         ac_header_compiler=no
5548 fi
5549
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5552 echo "${ECHO_T}$ac_header_compiler" >&6; }
5553
5554 # Is the header present?
5555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563 #include <$ac_header>
5564 _ACEOF
5565 if { (ac_try="$ac_cpp conftest.$ac_ext"
5566 case "(($ac_try" in
5567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568   *) ac_try_echo=$ac_try;;
5569 esac
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5572   ac_status=$?
5573   grep -v '^ *+' conftest.er1 >conftest.err
5574   rm -f conftest.er1
5575   cat conftest.err >&5
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } >/dev/null && {
5578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5579          test ! -s conftest.err
5580        }; then
5581   ac_header_preproc=yes
5582 else
5583   echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586   ac_header_preproc=no
5587 fi
5588
5589 rm -f conftest.err conftest.$ac_ext
5590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5591 echo "${ECHO_T}$ac_header_preproc" >&6; }
5592
5593 # So?  What about this header?
5594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5595   yes:no: )
5596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5600     ac_header_preproc=yes
5601     ;;
5602   no:yes:* )
5603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5615     ( cat <<\_ASBOX
5616 ## ------------------------------------ ##
5617 ## Report this to opensource@google.com ##
5618 ## ------------------------------------ ##
5619 _ASBOX
5620      ) | sed "s/^/$as_me: WARNING:     /" >&2
5621     ;;
5622 esac
5623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   eval "$as_ac_Header=\$ac_header_preproc"
5629 fi
5630 ac_res=`eval echo '${'$as_ac_Header'}'`
5631                { echo "$as_me:$LINENO: result: $ac_res" >&5
5632 echo "${ECHO_T}$ac_res" >&6; }
5633
5634 fi
5635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5636   cat >>confdefs.h <<_ACEOF
5637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5638 _ACEOF
5639
5640 fi
5641
5642 done
5643
5644
5645
5646 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5647     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5648     (test "X$CXX" != "Xg++"))) ; then
5649   ac_ext=cpp
5650 ac_cpp='$CXXCPP $CPPFLAGS'
5651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5654 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5655 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5656 if test -z "$CXXCPP"; then
5657   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660       # Double quotes because CXXCPP needs to be expanded
5661     for CXXCPP in "$CXX -E" "/lib/cpp"
5662     do
5663       ac_preproc_ok=false
5664 for ac_cxx_preproc_warn_flag in '' yes
5665 do
5666   # Use a header file that comes with gcc, so configuring glibc
5667   # with a fresh cross-compiler works.
5668   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669   # <limits.h> exists even on freestanding compilers.
5670   # On the NeXT, cc -E runs the code through the compiler's parser,
5671   # not just through cpp. "Syntax error" is here to catch this case.
5672   cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h.  */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h.  */
5678 #ifdef __STDC__
5679 # include <limits.h>
5680 #else
5681 # include <assert.h>
5682 #endif
5683                      Syntax error
5684 _ACEOF
5685 if { (ac_try="$ac_cpp conftest.$ac_ext"
5686 case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5692   ac_status=$?
5693   grep -v '^ *+' conftest.er1 >conftest.err
5694   rm -f conftest.er1
5695   cat conftest.err >&5
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); } >/dev/null && {
5698          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5699          test ! -s conftest.err
5700        }; then
5701   :
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706   # Broken: fails on valid input.
5707 continue
5708 fi
5709
5710 rm -f conftest.err conftest.$ac_ext
5711
5712   # OK, works on sane cases.  Now check whether nonexistent headers
5713   # can be detected and how.
5714   cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h.  */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h.  */
5720 #include <ac_nonexistent.h>
5721 _ACEOF
5722 if { (ac_try="$ac_cpp conftest.$ac_ext"
5723 case "(($ac_try" in
5724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725   *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5729   ac_status=$?
5730   grep -v '^ *+' conftest.er1 >conftest.err
5731   rm -f conftest.er1
5732   cat conftest.err >&5
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); } >/dev/null && {
5735          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5736          test ! -s conftest.err
5737        }; then
5738   # Broken: success on invalid input.
5739 continue
5740 else
5741   echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744   # Passes both tests.
5745 ac_preproc_ok=:
5746 break
5747 fi
5748
5749 rm -f conftest.err conftest.$ac_ext
5750
5751 done
5752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5753 rm -f conftest.err conftest.$ac_ext
5754 if $ac_preproc_ok; then
5755   break
5756 fi
5757
5758     done
5759     ac_cv_prog_CXXCPP=$CXXCPP
5760
5761 fi
5762   CXXCPP=$ac_cv_prog_CXXCPP
5763 else
5764   ac_cv_prog_CXXCPP=$CXXCPP
5765 fi
5766 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5767 echo "${ECHO_T}$CXXCPP" >&6; }
5768 ac_preproc_ok=false
5769 for ac_cxx_preproc_warn_flag in '' yes
5770 do
5771   # Use a header file that comes with gcc, so configuring glibc
5772   # with a fresh cross-compiler works.
5773   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5774   # <limits.h> exists even on freestanding compilers.
5775   # On the NeXT, cc -E runs the code through the compiler's parser,
5776   # not just through cpp. "Syntax error" is here to catch this case.
5777   cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783 #ifdef __STDC__
5784 # include <limits.h>
5785 #else
5786 # include <assert.h>
5787 #endif
5788                      Syntax error
5789 _ACEOF
5790 if { (ac_try="$ac_cpp conftest.$ac_ext"
5791 case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } >/dev/null && {
5803          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5804          test ! -s conftest.err
5805        }; then
5806   :
5807 else
5808   echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811   # Broken: fails on valid input.
5812 continue
5813 fi
5814
5815 rm -f conftest.err conftest.$ac_ext
5816
5817   # OK, works on sane cases.  Now check whether nonexistent headers
5818   # can be detected and how.
5819   cat >conftest.$ac_ext <<_ACEOF
5820 /* confdefs.h.  */
5821 _ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h.  */
5825 #include <ac_nonexistent.h>
5826 _ACEOF
5827 if { (ac_try="$ac_cpp conftest.$ac_ext"
5828 case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834   ac_status=$?
5835   grep -v '^ *+' conftest.er1 >conftest.err
5836   rm -f conftest.er1
5837   cat conftest.err >&5
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); } >/dev/null && {
5840          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5841          test ! -s conftest.err
5842        }; then
5843   # Broken: success on invalid input.
5844 continue
5845 else
5846   echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849   # Passes both tests.
5850 ac_preproc_ok=:
5851 break
5852 fi
5853
5854 rm -f conftest.err conftest.$ac_ext
5855
5856 done
5857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5858 rm -f conftest.err conftest.$ac_ext
5859 if $ac_preproc_ok; then
5860   :
5861 else
5862   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5863 See \`config.log' for more details." >&5
5864 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5865 See \`config.log' for more details." >&2;}
5866    { (exit 1); exit 1; }; }
5867 fi
5868
5869 ac_ext=cpp
5870 ac_cpp='$CXXCPP $CPPFLAGS'
5871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5874
5875 fi
5876
5877
5878 ac_ext=f
5879 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5880 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5882 if test -n "$ac_tool_prefix"; then
5883   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
5884   do
5885     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5889 if test "${ac_cv_prog_F77+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   if test -n "$F77"; then
5893   ac_cv_prog_F77="$F77" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908 IFS=$as_save_IFS
5909
5910 fi
5911 fi
5912 F77=$ac_cv_prog_F77
5913 if test -n "$F77"; then
5914   { echo "$as_me:$LINENO: result: $F77" >&5
5915 echo "${ECHO_T}$F77" >&6; }
5916 else
5917   { echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6; }
5919 fi
5920
5921
5922     test -n "$F77" && break
5923   done
5924 fi
5925 if test -z "$F77"; then
5926   ac_ct_F77=$F77
5927   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
5928 do
5929   # Extract the first word of "$ac_prog", so it can be a program name with args.
5930 set dummy $ac_prog; ac_word=$2
5931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5933 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5934   echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936   if test -n "$ac_ct_F77"; then
5937   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5938 else
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 for as_dir in $PATH
5941 do
5942   IFS=$as_save_IFS
5943   test -z "$as_dir" && as_dir=.
5944   for ac_exec_ext in '' $ac_executable_extensions; do
5945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946     ac_cv_prog_ac_ct_F77="$ac_prog"
5947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5948     break 2
5949   fi
5950 done
5951 done
5952 IFS=$as_save_IFS
5953
5954 fi
5955 fi
5956 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5957 if test -n "$ac_ct_F77"; then
5958   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5959 echo "${ECHO_T}$ac_ct_F77" >&6; }
5960 else
5961   { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5963 fi
5964
5965
5966   test -n "$ac_ct_F77" && break
5967 done
5968
5969   if test "x$ac_ct_F77" = x; then
5970     F77=""
5971   else
5972     case $cross_compiling:$ac_tool_warned in
5973 yes:)
5974 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5975 whose name does not start with the host triplet.  If you think this
5976 configuration is useful to you, please write to autoconf@gnu.org." >&5
5977 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5978 whose name does not start with the host triplet.  If you think this
5979 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5980 ac_tool_warned=yes ;;
5981 esac
5982     F77=$ac_ct_F77
5983   fi
5984 fi
5985
5986
5987 # Provide some information about the compiler.
5988 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5989 ac_compiler=`set X $ac_compile; echo $2`
5990 { (ac_try="$ac_compiler --version >&5"
5991 case "(($ac_try" in
5992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993   *) ac_try_echo=$ac_try;;
5994 esac
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996   (eval "$ac_compiler --version >&5") 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }
6000 { (ac_try="$ac_compiler -v >&5"
6001 case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006   (eval "$ac_compiler -v >&5") 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }
6010 { (ac_try="$ac_compiler -V >&5"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_compiler -V >&5") 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }
6020 rm -f a.out
6021
6022 # If we don't use `.F' as extension, the preprocessor is not run on the
6023 # input file.  (Note that this only needs to work for GNU compilers.)
6024 ac_save_ext=$ac_ext
6025 ac_ext=F
6026 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6027 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6028 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   cat >conftest.$ac_ext <<_ACEOF
6032       program main
6033 #ifndef __GNUC__
6034        choke me
6035 #endif
6036
6037       end
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6041 case "(($ac_try" in
6042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043   *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046   (eval "$ac_compile") 2>conftest.er1
6047   ac_status=$?
6048   grep -v '^ *+' conftest.er1 >conftest.err
6049   rm -f conftest.er1
6050   cat conftest.err >&5
6051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052   (exit $ac_status); } && {
6053          test -z "$ac_f77_werror_flag" ||
6054          test ! -s conftest.err
6055        } && test -s conftest.$ac_objext; then
6056   ac_compiler_gnu=yes
6057 else
6058   echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061         ac_compiler_gnu=no
6062 fi
6063
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6066
6067 fi
6068 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6069 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6070 ac_ext=$ac_save_ext
6071 ac_test_FFLAGS=${FFLAGS+set}
6072 ac_save_FFLAGS=$FFLAGS
6073 FFLAGS=
6074 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6075 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6076 if test "${ac_cv_prog_f77_g+set}" = set; then
6077   echo $ECHO_N "(cached) $ECHO_C" >&6
6078 else
6079   FFLAGS=-g
6080 cat >conftest.$ac_ext <<_ACEOF
6081       program main
6082
6083       end
6084 _ACEOF
6085 rm -f conftest.$ac_objext
6086 if { (ac_try="$ac_compile"
6087 case "(($ac_try" in
6088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089   *) ac_try_echo=$ac_try;;
6090 esac
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092   (eval "$ac_compile") 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
6096   cat conftest.err >&5
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } && {
6099          test -z "$ac_f77_werror_flag" ||
6100          test ! -s conftest.err
6101        } && test -s conftest.$ac_objext; then
6102   ac_cv_prog_f77_g=yes
6103 else
6104   echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6106
6107         ac_cv_prog_f77_g=no
6108 fi
6109
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111
6112 fi
6113 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6114 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6115 if test "$ac_test_FFLAGS" = set; then
6116   FFLAGS=$ac_save_FFLAGS
6117 elif test $ac_cv_prog_f77_g = yes; then
6118   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6119     FFLAGS="-g -O2"
6120   else
6121     FFLAGS="-g"
6122   fi
6123 else
6124   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6125     FFLAGS="-O2"
6126   else
6127     FFLAGS=
6128   fi
6129 fi
6130
6131 G77=`test $ac_compiler_gnu = yes && echo yes`
6132 ac_ext=c
6133 ac_cpp='$CPP $CPPFLAGS'
6134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
6138
6139
6140 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6141 # find the maximum length of command line arguments
6142 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6143 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6144 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147     i=0
6148   teststring="ABCD"
6149
6150   case $build_os in
6151   msdosdjgpp*)
6152     # On DJGPP, this test can blow up pretty badly due to problems in libc
6153     # (any single argument exceeding 2000 bytes causes a buffer overrun
6154     # during glob expansion).  Even if it were fixed, the result of this
6155     # check would be larger than it should be.
6156     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6157     ;;
6158
6159   gnu*)
6160     # Under GNU Hurd, this test is not required because there is
6161     # no limit to the length of command line arguments.
6162     # Libtool will interpret -1 as no limit whatsoever
6163     lt_cv_sys_max_cmd_len=-1;
6164     ;;
6165
6166   cygwin* | mingw*)
6167     # On Win9x/ME, this test blows up -- it succeeds, but takes
6168     # about 5 minutes as the teststring grows exponentially.
6169     # Worse, since 9x/ME are not pre-emptively multitasking,
6170     # you end up with a "frozen" computer, even though with patience
6171     # the test eventually succeeds (with a max line length of 256k).
6172     # Instead, let's just punt: use the minimum linelength reported by
6173     # all of the supported platforms: 8192 (on NT/2K/XP).
6174     lt_cv_sys_max_cmd_len=8192;
6175     ;;
6176
6177   amigaos*)
6178     # On AmigaOS with pdksh, this test takes hours, literally.
6179     # So we just punt and use a minimum line length of 8192.
6180     lt_cv_sys_max_cmd_len=8192;
6181     ;;
6182
6183   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6184     # This has been around since 386BSD, at least.  Likely further.
6185     if test -x /sbin/sysctl; then
6186       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6187     elif test -x /usr/sbin/sysctl; then
6188       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6189     else
6190       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6191     fi
6192     # And add a safety zone
6193     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6194     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6195     ;;
6196
6197   interix*)
6198     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6199     lt_cv_sys_max_cmd_len=196608
6200     ;;
6201
6202   osf*)
6203     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6204     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6205     # nice to cause kernel panics so lets avoid the loop below.
6206     # First set a reasonable default.
6207     lt_cv_sys_max_cmd_len=16384
6208     #
6209     if test -x /sbin/sysconfig; then
6210       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6211         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6212       esac
6213     fi
6214     ;;
6215   sco3.2v5*)
6216     lt_cv_sys_max_cmd_len=102400
6217     ;;
6218   sysv5* | sco5v6* | sysv4.2uw2*)
6219     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6220     if test -n "$kargmax"; then
6221       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6222     else
6223       lt_cv_sys_max_cmd_len=32768
6224     fi
6225     ;;
6226   *)
6227     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6228     if test -n "$lt_cv_sys_max_cmd_len"; then
6229       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6230       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6231     else
6232       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6233       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6234                = "XX$teststring") >/dev/null 2>&1 &&
6235               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6236               lt_cv_sys_max_cmd_len=$new_result &&
6237               test $i != 17 # 1/2 MB should be enough
6238       do
6239         i=`expr $i + 1`
6240         teststring=$teststring$teststring
6241       done
6242       teststring=
6243       # Add a significant safety factor because C++ compilers can tack on massive
6244       # amounts of additional arguments before passing them to the linker.
6245       # It appears as though 1/2 is a usable value.
6246       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6247     fi
6248     ;;
6249   esac
6250
6251 fi
6252
6253 if test -n $lt_cv_sys_max_cmd_len ; then
6254   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6255 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6256 else
6257   { echo "$as_me:$LINENO: result: none" >&5
6258 echo "${ECHO_T}none" >&6; }
6259 fi
6260
6261
6262
6263
6264
6265 # Check for command to grab the raw symbol name followed by C symbol from nm.
6266 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6267 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6268 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271
6272 # These are sane defaults that work on at least a few old systems.
6273 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6274
6275 # Character class describing NM global symbol codes.
6276 symcode='[BCDEGRST]'
6277
6278 # Regexp to match symbols that can be accessed directly from C.
6279 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6280
6281 # Transform an extracted symbol line into a proper C declaration
6282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6283
6284 # Transform an extracted symbol line into symbol name and symbol address
6285 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'"
6286
6287 # Define system-specific variables.
6288 case $host_os in
6289 aix*)
6290   symcode='[BCDT]'
6291   ;;
6292 cygwin* | mingw* | pw32*)
6293   symcode='[ABCDGISTW]'
6294   ;;
6295 hpux*) # Its linker distinguishes data from code symbols
6296   if test "$host_cpu" = ia64; then
6297     symcode='[ABCDEGRST]'
6298   fi
6299   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6300   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'"
6301   ;;
6302 linux* | k*bsd*-gnu)
6303   if test "$host_cpu" = ia64; then
6304     symcode='[ABCDGIRSTW]'
6305     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6306     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'"
6307   fi
6308   ;;
6309 irix* | nonstopux*)
6310   symcode='[BCDEGRST]'
6311   ;;
6312 osf*)
6313   symcode='[BCDEGQRST]'
6314   ;;
6315 solaris*)
6316   symcode='[BDRT]'
6317   ;;
6318 sco3.2v5*)
6319   symcode='[DT]'
6320   ;;
6321 sysv4.2uw2*)
6322   symcode='[DT]'
6323   ;;
6324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6325   symcode='[ABDT]'
6326   ;;
6327 sysv4)
6328   symcode='[DFNSTU]'
6329   ;;
6330 esac
6331
6332 # Handle CRLF in mingw tool chain
6333 opt_cr=
6334 case $build_os in
6335 mingw*)
6336   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6337   ;;
6338 esac
6339
6340 # If we're using GNU nm, then use its standard symbol codes.
6341 case `$NM -V 2>&1` in
6342 *GNU* | *'with BFD'*)
6343   symcode='[ABCDGIRSTW]' ;;
6344 esac
6345
6346 # Try without a prefix undercore, then with it.
6347 for ac_symprfx in "" "_"; do
6348
6349   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6350   symxfrm="\\1 $ac_symprfx\\2 \\2"
6351
6352   # Write the raw and C identifiers.
6353   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6354
6355   # Check to see that the pipe works correctly.
6356   pipe_works=no
6357
6358   rm -f conftest*
6359   cat > conftest.$ac_ext <<EOF
6360 #ifdef __cplusplus
6361 extern "C" {
6362 #endif
6363 char nm_test_var;
6364 void nm_test_func(){}
6365 #ifdef __cplusplus
6366 }
6367 #endif
6368 int main(){nm_test_var='a';nm_test_func();return(0);}
6369 EOF
6370
6371   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6372   (eval $ac_compile) 2>&5
6373   ac_status=$?
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); }; then
6376     # Now try to grab the symbols.
6377     nlist=conftest.nm
6378     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6379   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); } && test -s "$nlist"; then
6383       # Try sorting and uniquifying the output.
6384       if sort "$nlist" | uniq > "$nlist"T; then
6385         mv -f "$nlist"T "$nlist"
6386       else
6387         rm -f "$nlist"T
6388       fi
6389
6390       # Make sure that we snagged all the symbols we need.
6391       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6392         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6393           cat <<EOF > conftest.$ac_ext
6394 #ifdef __cplusplus
6395 extern "C" {
6396 #endif
6397
6398 EOF
6399           # Now generate the symbol file.
6400           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6401
6402           cat <<EOF >> conftest.$ac_ext
6403 #if defined (__STDC__) && __STDC__
6404 # define lt_ptr_t void *
6405 #else
6406 # define lt_ptr_t char *
6407 # define const
6408 #endif
6409
6410 /* The mapping between symbol names and symbols. */
6411 const struct {
6412   const char *name;
6413   lt_ptr_t address;
6414 }
6415 lt_preloaded_symbols[] =
6416 {
6417 EOF
6418           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6419           cat <<\EOF >> conftest.$ac_ext
6420   {0, (lt_ptr_t) 0}
6421 };
6422
6423 #ifdef __cplusplus
6424 }
6425 #endif
6426 EOF
6427           # Now try linking the two files.
6428           mv conftest.$ac_objext conftstm.$ac_objext
6429           lt_save_LIBS="$LIBS"
6430           lt_save_CFLAGS="$CFLAGS"
6431           LIBS="conftstm.$ac_objext"
6432           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6433           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6434   (eval $ac_link) 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6438             pipe_works=yes
6439           fi
6440           LIBS="$lt_save_LIBS"
6441           CFLAGS="$lt_save_CFLAGS"
6442         else
6443           echo "cannot find nm_test_func in $nlist" >&5
6444         fi
6445       else
6446         echo "cannot find nm_test_var in $nlist" >&5
6447       fi
6448     else
6449       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6450     fi
6451   else
6452     echo "$progname: failed program was:" >&5
6453     cat conftest.$ac_ext >&5
6454   fi
6455   rm -rf conftest* conftst*
6456
6457   # Do not use the global_symbol_pipe unless it works.
6458   if test "$pipe_works" = yes; then
6459     break
6460   else
6461     lt_cv_sys_global_symbol_pipe=
6462   fi
6463 done
6464
6465 fi
6466
6467 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6468   lt_cv_sys_global_symbol_to_cdecl=
6469 fi
6470 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6471   { echo "$as_me:$LINENO: result: failed" >&5
6472 echo "${ECHO_T}failed" >&6; }
6473 else
6474   { echo "$as_me:$LINENO: result: ok" >&5
6475 echo "${ECHO_T}ok" >&6; }
6476 fi
6477
6478 { echo "$as_me:$LINENO: checking for objdir" >&5
6479 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6480 if test "${lt_cv_objdir+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   rm -f .libs 2>/dev/null
6484 mkdir .libs 2>/dev/null
6485 if test -d .libs; then
6486   lt_cv_objdir=.libs
6487 else
6488   # MS-DOS does not allow filenames that begin with a dot.
6489   lt_cv_objdir=_libs
6490 fi
6491 rmdir .libs 2>/dev/null
6492 fi
6493 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6494 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6495 objdir=$lt_cv_objdir
6496
6497
6498
6499
6500
6501 case $host_os in
6502 aix3*)
6503   # AIX sometimes has problems with the GCC collect2 program.  For some
6504   # reason, if we set the COLLECT_NAMES environment variable, the problems
6505   # vanish in a puff of smoke.
6506   if test "X${COLLECT_NAMES+set}" != Xset; then
6507     COLLECT_NAMES=
6508     export COLLECT_NAMES
6509   fi
6510   ;;
6511 esac
6512
6513 # Sed substitution that helps us do robust quoting.  It backslashifies
6514 # metacharacters that are still active within double-quoted strings.
6515 Xsed='sed -e 1s/^X//'
6516 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6517
6518 # Same as above, but do not quote variable references.
6519 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6520
6521 # Sed substitution to delay expansion of an escaped shell variable in a
6522 # double_quote_subst'ed string.
6523 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6524
6525 # Sed substitution to avoid accidental globbing in evaled expressions
6526 no_glob_subst='s/\*/\\\*/g'
6527
6528 # Constants:
6529 rm="rm -f"
6530
6531 # Global variables:
6532 default_ofile=libtool
6533 can_build_shared=yes
6534
6535 # All known linkers require a `.a' archive for static linking (except MSVC,
6536 # which needs '.lib').
6537 libext=a
6538 ltmain="$ac_aux_dir/ltmain.sh"
6539 ofile="$default_ofile"
6540 with_gnu_ld="$lt_cv_prog_gnu_ld"
6541
6542 if test -n "$ac_tool_prefix"; then
6543   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}ar; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_prog_AR+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   if test -n "$AR"; then
6551   ac_cv_prog_AR="$AR" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558   for ac_exec_ext in '' $ac_executable_extensions; do
6559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560     ac_cv_prog_AR="${ac_tool_prefix}ar"
6561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 AR=$ac_cv_prog_AR
6571 if test -n "$AR"; then
6572   { echo "$as_me:$LINENO: result: $AR" >&5
6573 echo "${ECHO_T}$AR" >&6; }
6574 else
6575   { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_prog_AR"; then
6582   ac_ct_AR=$AR
6583   # Extract the first word of "ar", so it can be a program name with args.
6584 set dummy ar; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   if test -n "$ac_ct_AR"; then
6591   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598   for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_prog_ac_ct_AR="ar"
6601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6611 if test -n "$ac_ct_AR"; then
6612   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6613 echo "${ECHO_T}$ac_ct_AR" >&6; }
6614 else
6615   { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6617 fi
6618
6619   if test "x$ac_ct_AR" = x; then
6620     AR="false"
6621   else
6622     case $cross_compiling:$ac_tool_warned in
6623 yes:)
6624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6625 whose name does not start with the host triplet.  If you think this
6626 configuration is useful to you, please write to autoconf@gnu.org." >&5
6627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6628 whose name does not start with the host triplet.  If you think this
6629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6630 ac_tool_warned=yes ;;
6631 esac
6632     AR=$ac_ct_AR
6633   fi
6634 else
6635   AR="$ac_cv_prog_AR"
6636 fi
6637
6638 if test -n "$ac_tool_prefix"; then
6639   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6640 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643 if test "${ac_cv_prog_RANLIB+set}" = set; then
6644   echo $ECHO_N "(cached) $ECHO_C" >&6
6645 else
6646   if test -n "$RANLIB"; then
6647   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   test -z "$as_dir" && as_dir=.
6654   for ac_exec_ext in '' $ac_executable_extensions; do
6655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6656     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658     break 2
6659   fi
6660 done
6661 done
6662 IFS=$as_save_IFS
6663
6664 fi
6665 fi
6666 RANLIB=$ac_cv_prog_RANLIB
6667 if test -n "$RANLIB"; then
6668   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6669 echo "${ECHO_T}$RANLIB" >&6; }
6670 else
6671   { echo "$as_me:$LINENO: result: no" >&5
6672 echo "${ECHO_T}no" >&6; }
6673 fi
6674
6675
6676 fi
6677 if test -z "$ac_cv_prog_RANLIB"; then
6678   ac_ct_RANLIB=$RANLIB
6679   # Extract the first word of "ranlib", so it can be a program name with args.
6680 set dummy ranlib; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6684   echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686   if test -n "$ac_ct_RANLIB"; then
6687   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692   IFS=$as_save_IFS
6693   test -z "$as_dir" && as_dir=.
6694   for ac_exec_ext in '' $ac_executable_extensions; do
6695   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696     ac_cv_prog_ac_ct_RANLIB="ranlib"
6697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698     break 2
6699   fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6707 if test -n "$ac_ct_RANLIB"; then
6708   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6709 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6710 else
6711   { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715   if test "x$ac_ct_RANLIB" = x; then
6716     RANLIB=":"
6717   else
6718     case $cross_compiling:$ac_tool_warned in
6719 yes:)
6720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet.  If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&5
6723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6724 whose name does not start with the host triplet.  If you think this
6725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6726 ac_tool_warned=yes ;;
6727 esac
6728     RANLIB=$ac_ct_RANLIB
6729   fi
6730 else
6731   RANLIB="$ac_cv_prog_RANLIB"
6732 fi
6733
6734 if test -n "$ac_tool_prefix"; then
6735   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}strip; ac_word=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_prog_STRIP+set}" = set; then
6740   echo $ECHO_N "(cached) $ECHO_C" >&6
6741 else
6742   if test -n "$STRIP"; then
6743   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748   IFS=$as_save_IFS
6749   test -z "$as_dir" && as_dir=.
6750   for ac_exec_ext in '' $ac_executable_extensions; do
6751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6752     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754     break 2
6755   fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 STRIP=$ac_cv_prog_STRIP
6763 if test -n "$STRIP"; then
6764   { echo "$as_me:$LINENO: result: $STRIP" >&5
6765 echo "${ECHO_T}$STRIP" >&6; }
6766 else
6767   { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6769 fi
6770
6771
6772 fi
6773 if test -z "$ac_cv_prog_STRIP"; then
6774   ac_ct_STRIP=$STRIP
6775   # Extract the first word of "strip", so it can be a program name with args.
6776 set dummy strip; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   if test -n "$ac_ct_STRIP"; then
6783   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790   for ac_exec_ext in '' $ac_executable_extensions; do
6791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792     ac_cv_prog_ac_ct_STRIP="strip"
6793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6803 if test -n "$ac_ct_STRIP"; then
6804   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6805 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6806 else
6807   { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811   if test "x$ac_ct_STRIP" = x; then
6812     STRIP=":"
6813   else
6814     case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6817 whose name does not start with the host triplet.  If you think this
6818 configuration is useful to you, please write to autoconf@gnu.org." >&5
6819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6820 whose name does not start with the host triplet.  If you think this
6821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824     STRIP=$ac_ct_STRIP
6825   fi
6826 else
6827   STRIP="$ac_cv_prog_STRIP"
6828 fi
6829
6830
6831 old_CC="$CC"
6832 old_CFLAGS="$CFLAGS"
6833
6834 # Set sane defaults for various variables
6835 test -z "$AR" && AR=ar
6836 test -z "$AR_FLAGS" && AR_FLAGS=cru
6837 test -z "$AS" && AS=as
6838 test -z "$CC" && CC=cc
6839 test -z "$LTCC" && LTCC=$CC
6840 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6841 test -z "$DLLTOOL" && DLLTOOL=dlltool
6842 test -z "$LD" && LD=ld
6843 test -z "$LN_S" && LN_S="ln -s"
6844 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6845 test -z "$NM" && NM=nm
6846 test -z "$SED" && SED=sed
6847 test -z "$OBJDUMP" && OBJDUMP=objdump
6848 test -z "$RANLIB" && RANLIB=:
6849 test -z "$STRIP" && STRIP=:
6850 test -z "$ac_objext" && ac_objext=o
6851
6852 # Determine commands to create old-style static archives.
6853 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6854 old_postinstall_cmds='chmod 644 $oldlib'
6855 old_postuninstall_cmds=
6856
6857 if test -n "$RANLIB"; then
6858   case $host_os in
6859   openbsd*)
6860     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6861     ;;
6862   *)
6863     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6864     ;;
6865   esac
6866   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6867 fi
6868
6869 for cc_temp in $compiler""; do
6870   case $cc_temp in
6871     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6872     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6873     \-*) ;;
6874     *) break;;
6875   esac
6876 done
6877 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6878
6879
6880 # Only perform the check for file, if the check method requires it
6881 case $deplibs_check_method in
6882 file_magic*)
6883   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6884     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6885 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6886 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6887   echo $ECHO_N "(cached) $ECHO_C" >&6
6888 else
6889   case $MAGIC_CMD in
6890 [\\/*] |  ?:[\\/]*)
6891   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6892   ;;
6893 *)
6894   lt_save_MAGIC_CMD="$MAGIC_CMD"
6895   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6896   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6897   for ac_dir in $ac_dummy; do
6898     IFS="$lt_save_ifs"
6899     test -z "$ac_dir" && ac_dir=.
6900     if test -f $ac_dir/${ac_tool_prefix}file; then
6901       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6902       if test -n "$file_magic_test_file"; then
6903         case $deplibs_check_method in
6904         "file_magic "*)
6905           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6906           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6907           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6908             $EGREP "$file_magic_regex" > /dev/null; then
6909             :
6910           else
6911             cat <<EOF 1>&2
6912
6913 *** Warning: the command libtool uses to detect shared libraries,
6914 *** $file_magic_cmd, produces output that libtool cannot recognize.
6915 *** The result is that libtool may fail to recognize shared libraries
6916 *** as such.  This will affect the creation of libtool libraries that
6917 *** depend on shared libraries, but programs linked with such libtool
6918 *** libraries will work regardless of this problem.  Nevertheless, you
6919 *** may want to report the problem to your system manager and/or to
6920 *** bug-libtool@gnu.org
6921
6922 EOF
6923           fi ;;
6924         esac
6925       fi
6926       break
6927     fi
6928   done
6929   IFS="$lt_save_ifs"
6930   MAGIC_CMD="$lt_save_MAGIC_CMD"
6931   ;;
6932 esac
6933 fi
6934
6935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6936 if test -n "$MAGIC_CMD"; then
6937   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6938 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944 if test -z "$lt_cv_path_MAGIC_CMD"; then
6945   if test -n "$ac_tool_prefix"; then
6946     { echo "$as_me:$LINENO: checking for file" >&5
6947 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6948 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   case $MAGIC_CMD in
6952 [\\/*] |  ?:[\\/]*)
6953   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6954   ;;
6955 *)
6956   lt_save_MAGIC_CMD="$MAGIC_CMD"
6957   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6958   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6959   for ac_dir in $ac_dummy; do
6960     IFS="$lt_save_ifs"
6961     test -z "$ac_dir" && ac_dir=.
6962     if test -f $ac_dir/file; then
6963       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6964       if test -n "$file_magic_test_file"; then
6965         case $deplibs_check_method in
6966         "file_magic "*)
6967           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6968           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6969           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6970             $EGREP "$file_magic_regex" > /dev/null; then
6971             :
6972           else
6973             cat <<EOF 1>&2
6974
6975 *** Warning: the command libtool uses to detect shared libraries,
6976 *** $file_magic_cmd, produces output that libtool cannot recognize.
6977 *** The result is that libtool may fail to recognize shared libraries
6978 *** as such.  This will affect the creation of libtool libraries that
6979 *** depend on shared libraries, but programs linked with such libtool
6980 *** libraries will work regardless of this problem.  Nevertheless, you
6981 *** may want to report the problem to your system manager and/or to
6982 *** bug-libtool@gnu.org
6983
6984 EOF
6985           fi ;;
6986         esac
6987       fi
6988       break
6989     fi
6990   done
6991   IFS="$lt_save_ifs"
6992   MAGIC_CMD="$lt_save_MAGIC_CMD"
6993   ;;
6994 esac
6995 fi
6996
6997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6998 if test -n "$MAGIC_CMD"; then
6999   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7000 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7001 else
7002   { echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6; }
7004 fi
7005
7006   else
7007     MAGIC_CMD=:
7008   fi
7009 fi
7010
7011   fi
7012   ;;
7013 esac
7014
7015
7016   case $host_os in
7017     rhapsody* | darwin*)
7018     if test -n "$ac_tool_prefix"; then
7019   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7024   echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026   if test -n "$DSYMUTIL"; then
7027   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7031 do
7032   IFS=$as_save_IFS
7033   test -z "$as_dir" && as_dir=.
7034   for ac_exec_ext in '' $ac_executable_extensions; do
7035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038     break 2
7039   fi
7040 done
7041 done
7042 IFS=$as_save_IFS
7043
7044 fi
7045 fi
7046 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7047 if test -n "$DSYMUTIL"; then
7048   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7049 echo "${ECHO_T}$DSYMUTIL" >&6; }
7050 else
7051   { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7053 fi
7054
7055
7056 fi
7057 if test -z "$ac_cv_prog_DSYMUTIL"; then
7058   ac_ct_DSYMUTIL=$DSYMUTIL
7059   # Extract the first word of "dsymutil", so it can be a program name with args.
7060 set dummy dsymutil; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7064   echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066   if test -n "$ac_ct_DSYMUTIL"; then
7067   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7071 do
7072   IFS=$as_save_IFS
7073   test -z "$as_dir" && as_dir=.
7074   for ac_exec_ext in '' $ac_executable_extensions; do
7075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078     break 2
7079   fi
7080 done
7081 done
7082 IFS=$as_save_IFS
7083
7084 fi
7085 fi
7086 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7087 if test -n "$ac_ct_DSYMUTIL"; then
7088   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7089 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7090 else
7091   { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7093 fi
7094
7095   if test "x$ac_ct_DSYMUTIL" = x; then
7096     DSYMUTIL=":"
7097   else
7098     case $cross_compiling:$ac_tool_warned in
7099 yes:)
7100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet.  If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&5
7103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7104 whose name does not start with the host triplet.  If you think this
7105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7106 ac_tool_warned=yes ;;
7107 esac
7108     DSYMUTIL=$ac_ct_DSYMUTIL
7109   fi
7110 else
7111   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7112 fi
7113
7114     if test -n "$ac_tool_prefix"; then
7115   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7116 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7120   echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7122   if test -n "$NMEDIT"; then
7123   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130   for ac_exec_ext in '' $ac_executable_extensions; do
7131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 NMEDIT=$ac_cv_prog_NMEDIT
7143 if test -n "$NMEDIT"; then
7144   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7145 echo "${ECHO_T}$NMEDIT" >&6; }
7146 else
7147   { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7149 fi
7150
7151
7152 fi
7153 if test -z "$ac_cv_prog_NMEDIT"; then
7154   ac_ct_NMEDIT=$NMEDIT
7155   # Extract the first word of "nmedit", so it can be a program name with args.
7156 set dummy nmedit; ac_word=$2
7157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7160   echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162   if test -n "$ac_ct_NMEDIT"; then
7163   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170   for ac_exec_ext in '' $ac_executable_extensions; do
7171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177 done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7183 if test -n "$ac_ct_NMEDIT"; then
7184   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7185 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7186 else
7187   { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7189 fi
7190
7191   if test "x$ac_ct_NMEDIT" = x; then
7192     NMEDIT=":"
7193   else
7194     case $cross_compiling:$ac_tool_warned in
7195 yes:)
7196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet.  If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&5
7199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet.  If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204     NMEDIT=$ac_ct_NMEDIT
7205   fi
7206 else
7207   NMEDIT="$ac_cv_prog_NMEDIT"
7208 fi
7209
7210
7211     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7212 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7213 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   lt_cv_apple_cc_single_mod=no
7217       if test -z "${LT_MULTI_MODULE}"; then
7218    # By default we will add the -single_module flag. You can override
7219    # by either setting the environment variable LT_MULTI_MODULE
7220    # non-empty at configure time, or by adding -multi_module to the
7221    # link flags.
7222    echo "int foo(void){return 1;}" > conftest.c
7223    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7224      -dynamiclib ${wl}-single_module conftest.c
7225    if test -f libconftest.dylib; then
7226      lt_cv_apple_cc_single_mod=yes
7227      rm -rf libconftest.dylib*
7228    fi
7229    rm conftest.c
7230       fi
7231 fi
7232 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7233 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7234     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7235 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7236 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   lt_cv_ld_exported_symbols_list=no
7240       save_LDFLAGS=$LDFLAGS
7241       echo "_main" > conftest.sym
7242       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7243       cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h.  */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h.  */
7249
7250 int
7251 main ()
7252 {
7253
7254   ;
7255   return 0;
7256 }
7257 _ACEOF
7258 rm -f conftest.$ac_objext conftest$ac_exeext
7259 if { (ac_try="$ac_link"
7260 case "(($ac_try" in
7261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262   *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265   (eval "$ac_link") 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } && {
7272          test -z "$ac_c_werror_flag" ||
7273          test ! -s conftest.err
7274        } && test -s conftest$ac_exeext &&
7275        $as_test_x conftest$ac_exeext; then
7276   lt_cv_ld_exported_symbols_list=yes
7277 else
7278   echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281         lt_cv_ld_exported_symbols_list=no
7282 fi
7283
7284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7285       conftest$ac_exeext conftest.$ac_ext
7286    LDFLAGS="$save_LDFLAGS"
7287
7288 fi
7289 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7290 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7291     case $host_os in
7292     rhapsody* | darwin1.[0123])
7293       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7294     darwin1.*)
7295      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7296     darwin*)
7297       # if running on 10.5 or later, the deployment target defaults
7298       # to the OS version, if on x86, and 10.4, the deployment
7299       # target defaults to 10.4. Don't you love it?
7300       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7301    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7302      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7303    10.[012]*)
7304      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7305    10.*)
7306      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7307       esac
7308     ;;
7309   esac
7310     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7311       _lt_dar_single_mod='$single_module'
7312     fi
7313     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7314       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7315     else
7316       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7317     fi
7318     if test "$DSYMUTIL" != ":"; then
7319       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7320     else
7321       _lt_dsymutil=
7322     fi
7323     ;;
7324   esac
7325
7326
7327 enable_dlopen=no
7328 enable_win32_dll=no
7329
7330 # Check whether --enable-libtool-lock was given.
7331 if test "${enable_libtool_lock+set}" = set; then
7332   enableval=$enable_libtool_lock;
7333 fi
7334
7335 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7336
7337
7338 # Check whether --with-pic was given.
7339 if test "${with_pic+set}" = set; then
7340   withval=$with_pic; pic_mode="$withval"
7341 else
7342   pic_mode=default
7343 fi
7344
7345 test -z "$pic_mode" && pic_mode=default
7346
7347 # Use C for the default configuration in the libtool script
7348 tagname=
7349 lt_save_CC="$CC"
7350 ac_ext=c
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355
7356
7357 # Source file extension for C test sources.
7358 ac_ext=c
7359
7360 # Object file extension for compiled C test sources.
7361 objext=o
7362 objext=$objext
7363
7364 # Code to be used in simple compile tests
7365 lt_simple_compile_test_code="int some_variable = 0;"
7366
7367 # Code to be used in simple link tests
7368 lt_simple_link_test_code='int main(){return(0);}'
7369
7370
7371 # If no C compiler was specified, use CC.
7372 LTCC=${LTCC-"$CC"}
7373
7374 # If no C compiler flags were specified, use CFLAGS.
7375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7376
7377 # Allow CC to be a program name with arguments.
7378 compiler=$CC
7379
7380
7381 # save warnings/boilerplate of simple test code
7382 ac_outfile=conftest.$ac_objext
7383 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7385 _lt_compiler_boilerplate=`cat conftest.err`
7386 $rm conftest*
7387
7388 ac_outfile=conftest.$ac_objext
7389 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7391 _lt_linker_boilerplate=`cat conftest.err`
7392 $rm -r conftest*
7393
7394
7395
7396 lt_prog_compiler_no_builtin_flag=
7397
7398 if test "$GCC" = yes; then
7399   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7400
7401
7402 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7403 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7404 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7405   echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407   lt_cv_prog_compiler_rtti_exceptions=no
7408   ac_outfile=conftest.$ac_objext
7409    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7410    lt_compiler_flag="-fno-rtti -fno-exceptions"
7411    # Insert the option either (1) after the last *FLAGS variable, or
7412    # (2) before a word containing "conftest.", or (3) at the end.
7413    # Note that $ac_compile itself does not contain backslashes and begins
7414    # with a dollar sign (not a hyphen), so the echo should work correctly.
7415    # The option is referenced via a variable to avoid confusing sed.
7416    lt_compile=`echo "$ac_compile" | $SED \
7417    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7418    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7419    -e 's:$: $lt_compiler_flag:'`
7420    (eval echo "\"\$as_me:7420: $lt_compile\"" >&5)
7421    (eval "$lt_compile" 2>conftest.err)
7422    ac_status=$?
7423    cat conftest.err >&5
7424    echo "$as_me:7424: \$? = $ac_status" >&5
7425    if (exit $ac_status) && test -s "$ac_outfile"; then
7426      # The compiler can only warn and ignore the option if not recognized
7427      # So say no if there are warnings other than the usual output.
7428      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7429      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7430      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7431        lt_cv_prog_compiler_rtti_exceptions=yes
7432      fi
7433    fi
7434    $rm conftest*
7435
7436 fi
7437 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7438 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7439
7440 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7441     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7442 else
7443     :
7444 fi
7445
7446 fi
7447
7448 lt_prog_compiler_wl=
7449 lt_prog_compiler_pic=
7450 lt_prog_compiler_static=
7451
7452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7454
7455   if test "$GCC" = yes; then
7456     lt_prog_compiler_wl='-Wl,'
7457     lt_prog_compiler_static='-static'
7458
7459     case $host_os in
7460       aix*)
7461       # All AIX code is PIC.
7462       if test "$host_cpu" = ia64; then
7463         # AIX 5 now supports IA64 processor
7464         lt_prog_compiler_static='-Bstatic'
7465       fi
7466       ;;
7467
7468     amigaos*)
7469       # FIXME: we need at least 68020 code to build shared libraries, but
7470       # adding the `-m68020' flag to GCC prevents building anything better,
7471       # like `-m68040'.
7472       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7473       ;;
7474
7475     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7476       # PIC is the default for these OSes.
7477       ;;
7478
7479     mingw* | cygwin* | pw32* | os2*)
7480       # This hack is so that the source file can tell whether it is being
7481       # built for inclusion in a dll (and should export symbols for example).
7482       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7483       # (--disable-auto-import) libraries
7484       lt_prog_compiler_pic='-DDLL_EXPORT'
7485       ;;
7486
7487     darwin* | rhapsody*)
7488       # PIC is the default on this platform
7489       # Common symbols not allowed in MH_DYLIB files
7490       lt_prog_compiler_pic='-fno-common'
7491       ;;
7492
7493     interix[3-9]*)
7494       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7495       # Instead, we relocate shared libraries at runtime.
7496       ;;
7497
7498     msdosdjgpp*)
7499       # Just because we use GCC doesn't mean we suddenly get shared libraries
7500       # on systems that don't support them.
7501       lt_prog_compiler_can_build_shared=no
7502       enable_shared=no
7503       ;;
7504
7505     sysv4*MP*)
7506       if test -d /usr/nec; then
7507         lt_prog_compiler_pic=-Kconform_pic
7508       fi
7509       ;;
7510
7511     hpux*)
7512       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7513       # not for PA HP-UX.
7514       case $host_cpu in
7515       hppa*64*|ia64*)
7516         # +Z the default
7517         ;;
7518       *)
7519         lt_prog_compiler_pic='-fPIC'
7520         ;;
7521       esac
7522       ;;
7523
7524     *)
7525       lt_prog_compiler_pic='-fPIC'
7526       ;;
7527     esac
7528   else
7529     # PORTME Check for flag to pass linker flags through the system compiler.
7530     case $host_os in
7531     aix*)
7532       lt_prog_compiler_wl='-Wl,'
7533       if test "$host_cpu" = ia64; then
7534         # AIX 5 now supports IA64 processor
7535         lt_prog_compiler_static='-Bstatic'
7536       else
7537         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7538       fi
7539       ;;
7540       darwin*)
7541         # PIC is the default on this platform
7542         # Common symbols not allowed in MH_DYLIB files
7543        case $cc_basename in
7544          xlc*)
7545          lt_prog_compiler_pic='-qnocommon'
7546          lt_prog_compiler_wl='-Wl,'
7547          ;;
7548        esac
7549        ;;
7550
7551     mingw* | cygwin* | pw32* | os2*)
7552       # This hack is so that the source file can tell whether it is being
7553       # built for inclusion in a dll (and should export symbols for example).
7554       lt_prog_compiler_pic='-DDLL_EXPORT'
7555       ;;
7556
7557     hpux9* | hpux10* | hpux11*)
7558       lt_prog_compiler_wl='-Wl,'
7559       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7560       # not for PA HP-UX.
7561       case $host_cpu in
7562       hppa*64*|ia64*)
7563         # +Z the default
7564         ;;
7565       *)
7566         lt_prog_compiler_pic='+Z'
7567         ;;
7568       esac
7569       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7570       lt_prog_compiler_static='${wl}-a ${wl}archive'
7571       ;;
7572
7573     irix5* | irix6* | nonstopux*)
7574       lt_prog_compiler_wl='-Wl,'
7575       # PIC (with -KPIC) is the default.
7576       lt_prog_compiler_static='-non_shared'
7577       ;;
7578
7579     newsos6)
7580       lt_prog_compiler_pic='-KPIC'
7581       lt_prog_compiler_static='-Bstatic'
7582       ;;
7583
7584     linux* | k*bsd*-gnu)
7585       case $cc_basename in
7586       icc* | ecc*)
7587         lt_prog_compiler_wl='-Wl,'
7588         lt_prog_compiler_pic='-KPIC'
7589         lt_prog_compiler_static='-static'
7590         ;;
7591       pgcc* | pgf77* | pgf90* | pgf95*)
7592         # Portland Group compilers (*not* the Pentium gcc compiler,
7593         # which looks to be a dead project)
7594         lt_prog_compiler_wl='-Wl,'
7595         lt_prog_compiler_pic='-fpic'
7596         lt_prog_compiler_static='-Bstatic'
7597         ;;
7598       ccc*)
7599         lt_prog_compiler_wl='-Wl,'
7600         # All Alpha code is PIC.
7601         lt_prog_compiler_static='-non_shared'
7602         ;;
7603       *)
7604         case `$CC -V 2>&1 | sed 5q` in
7605         *Sun\ C*)
7606           # Sun C 5.9
7607           lt_prog_compiler_pic='-KPIC'
7608           lt_prog_compiler_static='-Bstatic'
7609           lt_prog_compiler_wl='-Wl,'
7610           ;;
7611         *Sun\ F*)
7612           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7613           lt_prog_compiler_pic='-KPIC'
7614           lt_prog_compiler_static='-Bstatic'
7615           lt_prog_compiler_wl=''
7616           ;;
7617         esac
7618         ;;
7619       esac
7620       ;;
7621
7622     osf3* | osf4* | osf5*)
7623       lt_prog_compiler_wl='-Wl,'
7624       # All OSF/1 code is PIC.
7625       lt_prog_compiler_static='-non_shared'
7626       ;;
7627
7628     rdos*)
7629       lt_prog_compiler_static='-non_shared'
7630       ;;
7631
7632     solaris*)
7633       lt_prog_compiler_pic='-KPIC'
7634       lt_prog_compiler_static='-Bstatic'
7635       case $cc_basename in
7636       f77* | f90* | f95*)
7637         lt_prog_compiler_wl='-Qoption ld ';;
7638       *)
7639         lt_prog_compiler_wl='-Wl,';;
7640       esac
7641       ;;
7642
7643     sunos4*)
7644       lt_prog_compiler_wl='-Qoption ld '
7645       lt_prog_compiler_pic='-PIC'
7646       lt_prog_compiler_static='-Bstatic'
7647       ;;
7648
7649     sysv4 | sysv4.2uw2* | sysv4.3*)
7650       lt_prog_compiler_wl='-Wl,'
7651       lt_prog_compiler_pic='-KPIC'
7652       lt_prog_compiler_static='-Bstatic'
7653       ;;
7654
7655     sysv4*MP*)
7656       if test -d /usr/nec ;then
7657         lt_prog_compiler_pic='-Kconform_pic'
7658         lt_prog_compiler_static='-Bstatic'
7659       fi
7660       ;;
7661
7662     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7663       lt_prog_compiler_wl='-Wl,'
7664       lt_prog_compiler_pic='-KPIC'
7665       lt_prog_compiler_static='-Bstatic'
7666       ;;
7667
7668     unicos*)
7669       lt_prog_compiler_wl='-Wl,'
7670       lt_prog_compiler_can_build_shared=no
7671       ;;
7672
7673     uts4*)
7674       lt_prog_compiler_pic='-pic'
7675       lt_prog_compiler_static='-Bstatic'
7676       ;;
7677
7678     *)
7679       lt_prog_compiler_can_build_shared=no
7680       ;;
7681     esac
7682   fi
7683
7684 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7685 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7686
7687 #
7688 # Check to make sure the PIC flag actually works.
7689 #
7690 if test -n "$lt_prog_compiler_pic"; then
7691
7692 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7693 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7694 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7695   echo $ECHO_N "(cached) $ECHO_C" >&6
7696 else
7697   lt_cv_prog_compiler_pic_works=no
7698   ac_outfile=conftest.$ac_objext
7699    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7700    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7701    # Insert the option either (1) after the last *FLAGS variable, or
7702    # (2) before a word containing "conftest.", or (3) at the end.
7703    # Note that $ac_compile itself does not contain backslashes and begins
7704    # with a dollar sign (not a hyphen), so the echo should work correctly.
7705    # The option is referenced via a variable to avoid confusing sed.
7706    lt_compile=`echo "$ac_compile" | $SED \
7707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7709    -e 's:$: $lt_compiler_flag:'`
7710    (eval echo "\"\$as_me:7710: $lt_compile\"" >&5)
7711    (eval "$lt_compile" 2>conftest.err)
7712    ac_status=$?
7713    cat conftest.err >&5
7714    echo "$as_me:7714: \$? = $ac_status" >&5
7715    if (exit $ac_status) && test -s "$ac_outfile"; then
7716      # The compiler can only warn and ignore the option if not recognized
7717      # So say no if there are warnings other than the usual output.
7718      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7719      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7720      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7721        lt_cv_prog_compiler_pic_works=yes
7722      fi
7723    fi
7724    $rm conftest*
7725
7726 fi
7727 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7728 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7729
7730 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7731     case $lt_prog_compiler_pic in
7732      "" | " "*) ;;
7733      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7734      esac
7735 else
7736     lt_prog_compiler_pic=
7737      lt_prog_compiler_can_build_shared=no
7738 fi
7739
7740 fi
7741 case $host_os in
7742   # For platforms which do not support PIC, -DPIC is meaningless:
7743   *djgpp*)
7744     lt_prog_compiler_pic=
7745     ;;
7746   *)
7747     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7748     ;;
7749 esac
7750
7751 #
7752 # Check to make sure the static flag actually works.
7753 #
7754 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7755 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7756 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7757 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   lt_cv_prog_compiler_static_works=no
7761    save_LDFLAGS="$LDFLAGS"
7762    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7763    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7764    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7765      # The linker can only warn and ignore the option if not recognized
7766      # So say no if there are warnings
7767      if test -s conftest.err; then
7768        # Append any errors to the config.log.
7769        cat conftest.err 1>&5
7770        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7771        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7772        if diff conftest.exp conftest.er2 >/dev/null; then
7773          lt_cv_prog_compiler_static_works=yes
7774        fi
7775      else
7776        lt_cv_prog_compiler_static_works=yes
7777      fi
7778    fi
7779    $rm -r conftest*
7780    LDFLAGS="$save_LDFLAGS"
7781
7782 fi
7783 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7784 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7785
7786 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7787     :
7788 else
7789     lt_prog_compiler_static=
7790 fi
7791
7792
7793 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7794 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7795 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   lt_cv_prog_compiler_c_o=no
7799    $rm -r conftest 2>/dev/null
7800    mkdir conftest
7801    cd conftest
7802    mkdir out
7803    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7804
7805    lt_compiler_flag="-o out/conftest2.$ac_objext"
7806    # Insert the option either (1) after the last *FLAGS variable, or
7807    # (2) before a word containing "conftest.", or (3) at the end.
7808    # Note that $ac_compile itself does not contain backslashes and begins
7809    # with a dollar sign (not a hyphen), so the echo should work correctly.
7810    lt_compile=`echo "$ac_compile" | $SED \
7811    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7812    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7813    -e 's:$: $lt_compiler_flag:'`
7814    (eval echo "\"\$as_me:7814: $lt_compile\"" >&5)
7815    (eval "$lt_compile" 2>out/conftest.err)
7816    ac_status=$?
7817    cat out/conftest.err >&5
7818    echo "$as_me:7818: \$? = $ac_status" >&5
7819    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7820    then
7821      # The compiler can only warn and ignore the option if not recognized
7822      # So say no if there are warnings
7823      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7824      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7825      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7826        lt_cv_prog_compiler_c_o=yes
7827      fi
7828    fi
7829    chmod u+w . 2>&5
7830    $rm conftest*
7831    # SGI C++ compiler will create directory out/ii_files/ for
7832    # template instantiation
7833    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7834    $rm out/* && rmdir out
7835    cd ..
7836    rmdir conftest
7837    $rm conftest*
7838
7839 fi
7840 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7841 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7842
7843
7844 hard_links="nottested"
7845 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7846   # do not overwrite the value of need_locks provided by the user
7847   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7848 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7849   hard_links=yes
7850   $rm conftest*
7851   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7852   touch conftest.a
7853   ln conftest.a conftest.b 2>&5 || hard_links=no
7854   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7855   { echo "$as_me:$LINENO: result: $hard_links" >&5
7856 echo "${ECHO_T}$hard_links" >&6; }
7857   if test "$hard_links" = no; then
7858     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7859 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7860     need_locks=warn
7861   fi
7862 else
7863   need_locks=no
7864 fi
7865
7866 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7867 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7868
7869   runpath_var=
7870   allow_undefined_flag=
7871   enable_shared_with_static_runtimes=no
7872   archive_cmds=
7873   archive_expsym_cmds=
7874   old_archive_From_new_cmds=
7875   old_archive_from_expsyms_cmds=
7876   export_dynamic_flag_spec=
7877   whole_archive_flag_spec=
7878   thread_safe_flag_spec=
7879   hardcode_libdir_flag_spec=
7880   hardcode_libdir_flag_spec_ld=
7881   hardcode_libdir_separator=
7882   hardcode_direct=no
7883   hardcode_minus_L=no
7884   hardcode_shlibpath_var=unsupported
7885   link_all_deplibs=unknown
7886   hardcode_automatic=no
7887   module_cmds=
7888   module_expsym_cmds=
7889   always_export_symbols=no
7890   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7891   # include_expsyms should be a list of space-separated symbols to be *always*
7892   # included in the symbol list
7893   include_expsyms=
7894   # exclude_expsyms can be an extended regexp of symbols to exclude
7895   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7896   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7897   # as well as any symbol that contains `d'.
7898   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7899   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7900   # platforms (ab)use it in PIC code, but their linkers get confused if
7901   # the symbol is explicitly referenced.  Since portable code cannot
7902   # rely on this symbol name, it's probably fine to never include it in
7903   # preloaded symbol tables.
7904   # Exclude shared library initialization/finalization symbols.
7905   extract_expsyms_cmds=
7906   # Just being paranoid about ensuring that cc_basename is set.
7907   for cc_temp in $compiler""; do
7908   case $cc_temp in
7909     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7910     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7911     \-*) ;;
7912     *) break;;
7913   esac
7914 done
7915 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7916
7917   case $host_os in
7918   cygwin* | mingw* | pw32*)
7919     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7920     # When not using gcc, we currently assume that we are using
7921     # Microsoft Visual C++.
7922     if test "$GCC" != yes; then
7923       with_gnu_ld=no
7924     fi
7925     ;;
7926   interix*)
7927     # we just hope/assume this is gcc and not c89 (= MSVC++)
7928     with_gnu_ld=yes
7929     ;;
7930   openbsd*)
7931     with_gnu_ld=no
7932     ;;
7933   esac
7934
7935   ld_shlibs=yes
7936   if test "$with_gnu_ld" = yes; then
7937     # If archive_cmds runs LD, not CC, wlarc should be empty
7938     wlarc='${wl}'
7939
7940     # Set some defaults for GNU ld with shared library support. These
7941     # are reset later if shared libraries are not supported. Putting them
7942     # here allows them to be overridden if necessary.
7943     runpath_var=LD_RUN_PATH
7944     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7945     export_dynamic_flag_spec='${wl}--export-dynamic'
7946     # ancient GNU ld didn't support --whole-archive et. al.
7947     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7948         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7949       else
7950         whole_archive_flag_spec=
7951     fi
7952     supports_anon_versioning=no
7953     case `$LD -v 2>/dev/null` in
7954       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7955       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7956       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7957       *\ 2.11.*) ;; # other 2.11 versions
7958       *) supports_anon_versioning=yes ;;
7959     esac
7960
7961     # See if GNU ld supports shared libraries.
7962     case $host_os in
7963     aix[3-9]*)
7964       # On AIX/PPC, the GNU linker is very broken
7965       if test "$host_cpu" != ia64; then
7966         ld_shlibs=no
7967         cat <<EOF 1>&2
7968
7969 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7970 *** to be unable to reliably create shared libraries on AIX.
7971 *** Therefore, libtool is disabling shared libraries support.  If you
7972 *** really care for shared libraries, you may want to modify your PATH
7973 *** so that a non-GNU linker is found, and then restart.
7974
7975 EOF
7976       fi
7977       ;;
7978
7979     amigaos*)
7980       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)'
7981       hardcode_libdir_flag_spec='-L$libdir'
7982       hardcode_minus_L=yes
7983
7984       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7985       # that the semantics of dynamic libraries on AmigaOS, at least up
7986       # to version 4, is to share data among multiple programs linked
7987       # with the same dynamic library.  Since this doesn't match the
7988       # behavior of shared libraries on other platforms, we can't use
7989       # them.
7990       ld_shlibs=no
7991       ;;
7992
7993     beos*)
7994       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7995         allow_undefined_flag=unsupported
7996         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7997         # support --undefined.  This deserves some investigation.  FIXME
7998         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7999       else
8000         ld_shlibs=no
8001       fi
8002       ;;
8003
8004     cygwin* | mingw* | pw32*)
8005       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8006       # as there is no search path for DLLs.
8007       hardcode_libdir_flag_spec='-L$libdir'
8008       allow_undefined_flag=unsupported
8009       always_export_symbols=no
8010       enable_shared_with_static_runtimes=yes
8011       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8012
8013       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8014         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8015         # If the export-symbols file already is a .def file (1st line
8016         # is EXPORTS), use it as is; otherwise, prepend...
8017         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8018           cp $export_symbols $output_objdir/$soname.def;
8019         else
8020           echo EXPORTS > $output_objdir/$soname.def;
8021           cat $export_symbols >> $output_objdir/$soname.def;
8022         fi~
8023         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8024       else
8025         ld_shlibs=no
8026       fi
8027       ;;
8028
8029     interix[3-9]*)
8030       hardcode_direct=no
8031       hardcode_shlibpath_var=no
8032       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8033       export_dynamic_flag_spec='${wl}-E'
8034       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8035       # Instead, shared libraries are loaded at an image base (0x10000000 by
8036       # default) and relocated if they conflict, which is a slow very memory
8037       # consuming and fragmenting process.  To avoid this, we pick a random,
8038       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8039       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8040       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8041       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'
8042       ;;
8043
8044     gnu* | linux* | k*bsd*-gnu)
8045       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8046         tmp_addflag=
8047         case $cc_basename,$host_cpu in
8048         pgcc*)                          # Portland Group C compiler
8049           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'
8050           tmp_addflag=' $pic_flag'
8051           ;;
8052         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8053           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'
8054           tmp_addflag=' $pic_flag -Mnomain' ;;
8055         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8056           tmp_addflag=' -i_dynamic' ;;
8057         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8058           tmp_addflag=' -i_dynamic -nofor_main' ;;
8059         ifc* | ifort*)                  # Intel Fortran compiler
8060           tmp_addflag=' -nofor_main' ;;
8061         esac
8062         case `$CC -V 2>&1 | sed 5q` in
8063         *Sun\ C*)                       # Sun C 5.9
8064           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'
8065           tmp_sharedflag='-G' ;;
8066         *Sun\ F*)                       # Sun Fortran 8.3
8067           tmp_sharedflag='-G' ;;
8068         *)
8069           tmp_sharedflag='-shared' ;;
8070         esac
8071         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8072
8073         if test $supports_anon_versioning = yes; then
8074           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8075   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8076   $echo "local: *; };" >> $output_objdir/$libname.ver~
8077           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8078         fi
8079         link_all_deplibs=no
8080       else
8081         ld_shlibs=no
8082       fi
8083       ;;
8084
8085     netbsd* | netbsdelf*-gnu)
8086       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8087         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8088         wlarc=
8089       else
8090         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8091         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8092       fi
8093       ;;
8094
8095     solaris*)
8096       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8097         ld_shlibs=no
8098         cat <<EOF 1>&2
8099
8100 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8101 *** create shared libraries on Solaris systems.  Therefore, libtool
8102 *** is disabling shared libraries support.  We urge you to upgrade GNU
8103 *** binutils to release 2.9.1 or newer.  Another option is to modify
8104 *** your PATH or compiler configuration so that the native linker is
8105 *** used, and then restart.
8106
8107 EOF
8108       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8109         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8110         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8111       else
8112         ld_shlibs=no
8113       fi
8114       ;;
8115
8116     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8117       case `$LD -v 2>&1` in
8118         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8119         ld_shlibs=no
8120         cat <<_LT_EOF 1>&2
8121
8122 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8123 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8124 *** is disabling shared libraries support.  We urge you to upgrade GNU
8125 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8126 *** your PATH or compiler configuration so that the native linker is
8127 *** used, and then restart.
8128
8129 _LT_EOF
8130         ;;
8131         *)
8132           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8133             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8134             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8135             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8136           else
8137             ld_shlibs=no
8138           fi
8139         ;;
8140       esac
8141       ;;
8142
8143     sunos4*)
8144       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8145       wlarc=
8146       hardcode_direct=yes
8147       hardcode_shlibpath_var=no
8148       ;;
8149
8150     *)
8151       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8152         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8153         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8154       else
8155         ld_shlibs=no
8156       fi
8157       ;;
8158     esac
8159
8160     if test "$ld_shlibs" = no; then
8161       runpath_var=
8162       hardcode_libdir_flag_spec=
8163       export_dynamic_flag_spec=
8164       whole_archive_flag_spec=
8165     fi
8166   else
8167     # PORTME fill in a description of your system's linker (not GNU ld)
8168     case $host_os in
8169     aix3*)
8170       allow_undefined_flag=unsupported
8171       always_export_symbols=yes
8172       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'
8173       # Note: this linker hardcodes the directories in LIBPATH if there
8174       # are no directories specified by -L.
8175       hardcode_minus_L=yes
8176       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8177         # Neither direct hardcoding nor static linking is supported with a
8178         # broken collect2.
8179         hardcode_direct=unsupported
8180       fi
8181       ;;
8182
8183     aix[4-9]*)
8184       if test "$host_cpu" = ia64; then
8185         # On IA64, the linker does run time linking by default, so we don't
8186         # have to do anything special.
8187         aix_use_runtimelinking=no
8188         exp_sym_flag='-Bexport'
8189         no_entry_flag=""
8190       else
8191         # If we're using GNU nm, then we don't want the "-C" option.
8192         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8193         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8194           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'
8195         else
8196           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'
8197         fi
8198         aix_use_runtimelinking=no
8199
8200         # Test if we are trying to use run time linking or normal
8201         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8202         # need to do runtime linking.
8203         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8204           for ld_flag in $LDFLAGS; do
8205           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8206             aix_use_runtimelinking=yes
8207             break
8208           fi
8209           done
8210           ;;
8211         esac
8212
8213         exp_sym_flag='-bexport'
8214         no_entry_flag='-bnoentry'
8215       fi
8216
8217       # When large executables or shared objects are built, AIX ld can
8218       # have problems creating the table of contents.  If linking a library
8219       # or program results in "error TOC overflow" add -mminimal-toc to
8220       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8221       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8222
8223       archive_cmds=''
8224       hardcode_direct=yes
8225       hardcode_libdir_separator=':'
8226       link_all_deplibs=yes
8227
8228       if test "$GCC" = yes; then
8229         case $host_os in aix4.[012]|aix4.[012].*)
8230         # We only want to do this on AIX 4.2 and lower, the check
8231         # below for broken collect2 doesn't work under 4.3+
8232           collect2name=`${CC} -print-prog-name=collect2`
8233           if test -f "$collect2name" && \
8234            strings "$collect2name" | grep resolve_lib_name >/dev/null
8235           then
8236           # We have reworked collect2
8237           :
8238           else
8239           # We have old collect2
8240           hardcode_direct=unsupported
8241           # It fails to find uninstalled libraries when the uninstalled
8242           # path is not listed in the libpath.  Setting hardcode_minus_L
8243           # to unsupported forces relinking
8244           hardcode_minus_L=yes
8245           hardcode_libdir_flag_spec='-L$libdir'
8246           hardcode_libdir_separator=
8247           fi
8248           ;;
8249         esac
8250         shared_flag='-shared'
8251         if test "$aix_use_runtimelinking" = yes; then
8252           shared_flag="$shared_flag "'${wl}-G'
8253         fi
8254       else
8255         # not using gcc
8256         if test "$host_cpu" = ia64; then
8257         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8258         # chokes on -Wl,-G. The following line is correct:
8259           shared_flag='-G'
8260         else
8261           if test "$aix_use_runtimelinking" = yes; then
8262             shared_flag='${wl}-G'
8263           else
8264             shared_flag='${wl}-bM:SRE'
8265           fi
8266         fi
8267       fi
8268
8269       # It seems that -bexpall does not export symbols beginning with
8270       # underscore (_), so it is better to generate a list of symbols to export.
8271       always_export_symbols=yes
8272       if test "$aix_use_runtimelinking" = yes; then
8273         # Warning - without using the other runtime loading flags (-brtl),
8274         # -berok will link without error, but may produce a broken library.
8275         allow_undefined_flag='-berok'
8276        # Determine the default libpath from the value encoded in an empty executable.
8277        cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283
8284 int
8285 main ()
8286 {
8287
8288   ;
8289   return 0;
8290 }
8291 _ACEOF
8292 rm -f conftest.$ac_objext conftest$ac_exeext
8293 if { (ac_try="$ac_link"
8294 case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_link") 2>conftest.er1
8300   ac_status=$?
8301   grep -v '^ *+' conftest.er1 >conftest.err
8302   rm -f conftest.er1
8303   cat conftest.err >&5
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); } && {
8306          test -z "$ac_c_werror_flag" ||
8307          test ! -s conftest.err
8308        } && test -s conftest$ac_exeext &&
8309        $as_test_x conftest$ac_exeext; then
8310
8311 lt_aix_libpath_sed='
8312     /Import File Strings/,/^$/ {
8313         /^0/ {
8314             s/^0  *\(.*\)$/\1/
8315             p
8316         }
8317     }'
8318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8319 # Check for a 64-bit object if we didn't find anything.
8320 if test -z "$aix_libpath"; then
8321   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8322 fi
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327
8328 fi
8329
8330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8331       conftest$ac_exeext conftest.$ac_ext
8332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8333
8334        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8335         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"
8336        else
8337         if test "$host_cpu" = ia64; then
8338           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8339           allow_undefined_flag="-z nodefs"
8340           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"
8341         else
8342          # Determine the default libpath from the value encoded in an empty executable.
8343          cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349
8350 int
8351 main ()
8352 {
8353
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (ac_try="$ac_link"
8360 case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365   (eval "$ac_link") 2>conftest.er1
8366   ac_status=$?
8367   grep -v '^ *+' conftest.er1 >conftest.err
8368   rm -f conftest.er1
8369   cat conftest.err >&5
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } && {
8372          test -z "$ac_c_werror_flag" ||
8373          test ! -s conftest.err
8374        } && test -s conftest$ac_exeext &&
8375        $as_test_x conftest$ac_exeext; then
8376
8377 lt_aix_libpath_sed='
8378     /Import File Strings/,/^$/ {
8379         /^0/ {
8380             s/^0  *\(.*\)$/\1/
8381             p
8382         }
8383     }'
8384 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8385 # Check for a 64-bit object if we didn't find anything.
8386 if test -z "$aix_libpath"; then
8387   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8388 fi
8389 else
8390   echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393
8394 fi
8395
8396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8397       conftest$ac_exeext conftest.$ac_ext
8398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8399
8400          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8401           # Warning - without using the other run time loading flags,
8402           # -berok will link without error, but may produce a broken library.
8403           no_undefined_flag=' ${wl}-bernotok'
8404           allow_undefined_flag=' ${wl}-berok'
8405           # Exported symbols can be pulled into shared objects from archives
8406           whole_archive_flag_spec='$convenience'
8407           archive_cmds_need_lc=yes
8408           # This is similar to how AIX traditionally builds its shared libraries.
8409           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'
8410         fi
8411       fi
8412       ;;
8413
8414     amigaos*)
8415       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)'
8416       hardcode_libdir_flag_spec='-L$libdir'
8417       hardcode_minus_L=yes
8418       # see comment about different semantics on the GNU ld section
8419       ld_shlibs=no
8420       ;;
8421
8422     bsdi[45]*)
8423       export_dynamic_flag_spec=-rdynamic
8424       ;;
8425
8426     cygwin* | mingw* | pw32*)
8427       # When not using gcc, we currently assume that we are using
8428       # Microsoft Visual C++.
8429       # hardcode_libdir_flag_spec is actually meaningless, as there is
8430       # no search path for DLLs.
8431       hardcode_libdir_flag_spec=' '
8432       allow_undefined_flag=unsupported
8433       # Tell ltmain to make .lib files, not .a files.
8434       libext=lib
8435       # Tell ltmain to make .dll files, not .so files.
8436       shrext_cmds=".dll"
8437       # FIXME: Setting linknames here is a bad hack.
8438       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8439       # The linker will automatically build a .lib file if we build a DLL.
8440       old_archive_From_new_cmds='true'
8441       # FIXME: Should let the user specify the lib program.
8442       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8443       fix_srcfile_path='`cygpath -w "$srcfile"`'
8444       enable_shared_with_static_runtimes=yes
8445       ;;
8446
8447     darwin* | rhapsody*)
8448       case $host_os in
8449         rhapsody* | darwin1.[012])
8450          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8451          ;;
8452        *) # Darwin 1.3 on
8453          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8454            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8455          else
8456            case ${MACOSX_DEPLOYMENT_TARGET} in
8457              10.[012])
8458                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8459                ;;
8460              10.*)
8461                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8462                ;;
8463            esac
8464          fi
8465          ;;
8466       esac
8467       archive_cmds_need_lc=no
8468       hardcode_direct=no
8469       hardcode_automatic=yes
8470       hardcode_shlibpath_var=unsupported
8471       whole_archive_flag_spec=''
8472       link_all_deplibs=yes
8473     if test "$GCC" = yes ; then
8474         output_verbose_link_cmd='echo'
8475         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8476         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8477         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}"
8478         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}"
8479     else
8480       case $cc_basename in
8481         xlc*)
8482          output_verbose_link_cmd='echo'
8483          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8484          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8485           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8486          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}'
8487           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}'
8488           ;;
8489        *)
8490          ld_shlibs=no
8491           ;;
8492       esac
8493     fi
8494       ;;
8495
8496     dgux*)
8497       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498       hardcode_libdir_flag_spec='-L$libdir'
8499       hardcode_shlibpath_var=no
8500       ;;
8501
8502     freebsd1*)
8503       ld_shlibs=no
8504       ;;
8505
8506     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8507     # support.  Future versions do this automatically, but an explicit c++rt0.o
8508     # does not break anything, and helps significantly (at the cost of a little
8509     # extra space).
8510     freebsd2.2*)
8511       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8512       hardcode_libdir_flag_spec='-R$libdir'
8513       hardcode_direct=yes
8514       hardcode_shlibpath_var=no
8515       ;;
8516
8517     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8518     freebsd2*)
8519       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8520       hardcode_direct=yes
8521       hardcode_minus_L=yes
8522       hardcode_shlibpath_var=no
8523       ;;
8524
8525     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8526     freebsd* | dragonfly*)
8527       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8528       hardcode_libdir_flag_spec='-R$libdir'
8529       hardcode_direct=yes
8530       hardcode_shlibpath_var=no
8531       ;;
8532
8533     hpux9*)
8534       if test "$GCC" = yes; then
8535         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'
8536       else
8537         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'
8538       fi
8539       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8540       hardcode_libdir_separator=:
8541       hardcode_direct=yes
8542
8543       # hardcode_minus_L: Not really in the search PATH,
8544       # but as the default location of the library.
8545       hardcode_minus_L=yes
8546       export_dynamic_flag_spec='${wl}-E'
8547       ;;
8548
8549     hpux10*)
8550       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8551         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8552       else
8553         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8554       fi
8555       if test "$with_gnu_ld" = no; then
8556         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8557         hardcode_libdir_separator=:
8558
8559         hardcode_direct=yes
8560         export_dynamic_flag_spec='${wl}-E'
8561
8562         # hardcode_minus_L: Not really in the search PATH,
8563         # but as the default location of the library.
8564         hardcode_minus_L=yes
8565       fi
8566       ;;
8567
8568     hpux11*)
8569       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8570         case $host_cpu in
8571         hppa*64*)
8572           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8573           ;;
8574         ia64*)
8575           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8576           ;;
8577         *)
8578           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8579           ;;
8580         esac
8581       else
8582         case $host_cpu in
8583         hppa*64*)
8584           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8585           ;;
8586         ia64*)
8587           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8588           ;;
8589         *)
8590           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8591           ;;
8592         esac
8593       fi
8594       if test "$with_gnu_ld" = no; then
8595         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8596         hardcode_libdir_separator=:
8597
8598         case $host_cpu in
8599         hppa*64*|ia64*)
8600           hardcode_libdir_flag_spec_ld='+b $libdir'
8601           hardcode_direct=no
8602           hardcode_shlibpath_var=no
8603           ;;
8604         *)
8605           hardcode_direct=yes
8606           export_dynamic_flag_spec='${wl}-E'
8607
8608           # hardcode_minus_L: Not really in the search PATH,
8609           # but as the default location of the library.
8610           hardcode_minus_L=yes
8611           ;;
8612         esac
8613       fi
8614       ;;
8615
8616     irix5* | irix6* | nonstopux*)
8617       if test "$GCC" = yes; then
8618         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'
8619       else
8620         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'
8621         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8622       fi
8623       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8624       hardcode_libdir_separator=:
8625       link_all_deplibs=yes
8626       ;;
8627
8628     netbsd* | netbsdelf*-gnu)
8629       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8630         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8631       else
8632         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8633       fi
8634       hardcode_libdir_flag_spec='-R$libdir'
8635       hardcode_direct=yes
8636       hardcode_shlibpath_var=no
8637       ;;
8638
8639     newsos6)
8640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8641       hardcode_direct=yes
8642       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8643       hardcode_libdir_separator=:
8644       hardcode_shlibpath_var=no
8645       ;;
8646
8647     openbsd*)
8648       if test -f /usr/libexec/ld.so; then
8649         hardcode_direct=yes
8650         hardcode_shlibpath_var=no
8651         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8652           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8653           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8654           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8655           export_dynamic_flag_spec='${wl}-E'
8656         else
8657           case $host_os in
8658            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8659              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8660              hardcode_libdir_flag_spec='-R$libdir'
8661              ;;
8662            *)
8663              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8664              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8665              ;;
8666           esac
8667         fi
8668       else
8669         ld_shlibs=no
8670       fi
8671       ;;
8672
8673     os2*)
8674       hardcode_libdir_flag_spec='-L$libdir'
8675       hardcode_minus_L=yes
8676       allow_undefined_flag=unsupported
8677       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'
8678       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8679       ;;
8680
8681     osf3*)
8682       if test "$GCC" = yes; then
8683         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8684         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'
8685       else
8686         allow_undefined_flag=' -expect_unresolved \*'
8687         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'
8688       fi
8689       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690       hardcode_libdir_separator=:
8691       ;;
8692
8693     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8694       if test "$GCC" = yes; then
8695         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8696         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'
8697         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698       else
8699         allow_undefined_flag=' -expect_unresolved \*'
8700         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'
8701         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8702         $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'
8703
8704         # Both c and cxx compiler support -rpath directly
8705         hardcode_libdir_flag_spec='-rpath $libdir'
8706       fi
8707       hardcode_libdir_separator=:
8708       ;;
8709
8710     solaris*)
8711       no_undefined_flag=' -z text'
8712       if test "$GCC" = yes; then
8713         wlarc='${wl}'
8714         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8715         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8716           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8717       else
8718         wlarc=''
8719         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8721         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8722       fi
8723       hardcode_libdir_flag_spec='-R$libdir'
8724       hardcode_shlibpath_var=no
8725       case $host_os in
8726       solaris2.[0-5] | solaris2.[0-5].*) ;;
8727       *)
8728         # The compiler driver will combine and reorder linker options,
8729         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8730         # but is careful enough not to reorder.
8731         # Supported since Solaris 2.6 (maybe 2.5.1?)
8732         if test "$GCC" = yes; then
8733           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8734         else
8735           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8736         fi
8737         ;;
8738       esac
8739       link_all_deplibs=yes
8740       ;;
8741
8742     sunos4*)
8743       if test "x$host_vendor" = xsequent; then
8744         # Use $CC to link under sequent, because it throws in some extra .o
8745         # files that make .init and .fini sections work.
8746         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8747       else
8748         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8749       fi
8750       hardcode_libdir_flag_spec='-L$libdir'
8751       hardcode_direct=yes
8752       hardcode_minus_L=yes
8753       hardcode_shlibpath_var=no
8754       ;;
8755
8756     sysv4)
8757       case $host_vendor in
8758         sni)
8759           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760           hardcode_direct=yes # is this really true???
8761         ;;
8762         siemens)
8763           ## LD is ld it makes a PLAMLIB
8764           ## CC just makes a GrossModule.
8765           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8766           reload_cmds='$CC -r -o $output$reload_objs'
8767           hardcode_direct=no
8768         ;;
8769         motorola)
8770           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8771           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8772         ;;
8773       esac
8774       runpath_var='LD_RUN_PATH'
8775       hardcode_shlibpath_var=no
8776       ;;
8777
8778     sysv4.3*)
8779       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8780       hardcode_shlibpath_var=no
8781       export_dynamic_flag_spec='-Bexport'
8782       ;;
8783
8784     sysv4*MP*)
8785       if test -d /usr/nec; then
8786         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8787         hardcode_shlibpath_var=no
8788         runpath_var=LD_RUN_PATH
8789         hardcode_runpath_var=yes
8790         ld_shlibs=yes
8791       fi
8792       ;;
8793
8794     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8795       no_undefined_flag='${wl}-z,text'
8796       archive_cmds_need_lc=no
8797       hardcode_shlibpath_var=no
8798       runpath_var='LD_RUN_PATH'
8799
8800       if test "$GCC" = yes; then
8801         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8802         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803       else
8804         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8805         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806       fi
8807       ;;
8808
8809     sysv5* | sco3.2v5* | sco5v6*)
8810       # Note: We can NOT use -z defs as we might desire, because we do not
8811       # link with -lc, and that would cause any symbols used from libc to
8812       # always be unresolved, which means just about no library would
8813       # ever link correctly.  If we're not using GNU ld we use -z text
8814       # though, which does catch some bad symbols but isn't as heavy-handed
8815       # as -z defs.
8816       no_undefined_flag='${wl}-z,text'
8817       allow_undefined_flag='${wl}-z,nodefs'
8818       archive_cmds_need_lc=no
8819       hardcode_shlibpath_var=no
8820       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8821       hardcode_libdir_separator=':'
8822       link_all_deplibs=yes
8823       export_dynamic_flag_spec='${wl}-Bexport'
8824       runpath_var='LD_RUN_PATH'
8825
8826       if test "$GCC" = yes; then
8827         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8828         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8829       else
8830         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8831         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8832       fi
8833       ;;
8834
8835     uts4*)
8836       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837       hardcode_libdir_flag_spec='-L$libdir'
8838       hardcode_shlibpath_var=no
8839       ;;
8840
8841     *)
8842       ld_shlibs=no
8843       ;;
8844     esac
8845   fi
8846
8847 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8848 echo "${ECHO_T}$ld_shlibs" >&6; }
8849 test "$ld_shlibs" = no && can_build_shared=no
8850
8851 #
8852 # Do we need to explicitly link libc?
8853 #
8854 case "x$archive_cmds_need_lc" in
8855 x|xyes)
8856   # Assume -lc should be added
8857   archive_cmds_need_lc=yes
8858
8859   if test "$enable_shared" = yes && test "$GCC" = yes; then
8860     case $archive_cmds in
8861     *'~'*)
8862       # FIXME: we may have to deal with multi-command sequences.
8863       ;;
8864     '$CC '*)
8865       # Test whether the compiler implicitly links with -lc since on some
8866       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8867       # to ld, don't add -lc before -lgcc.
8868       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8869 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8870       $rm conftest*
8871       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8872
8873       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8874   (eval $ac_compile) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); } 2>conftest.err; then
8878         soname=conftest
8879         lib=conftest
8880         libobjs=conftest.$ac_objext
8881         deplibs=
8882         wl=$lt_prog_compiler_wl
8883         pic_flag=$lt_prog_compiler_pic
8884         compiler_flags=-v
8885         linker_flags=-v
8886         verstring=
8887         output_objdir=.
8888         libname=conftest
8889         lt_save_allow_undefined_flag=$allow_undefined_flag
8890         allow_undefined_flag=
8891         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8892   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8893   ac_status=$?
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); }
8896         then
8897           archive_cmds_need_lc=no
8898         else
8899           archive_cmds_need_lc=yes
8900         fi
8901         allow_undefined_flag=$lt_save_allow_undefined_flag
8902       else
8903         cat conftest.err 1>&5
8904       fi
8905       $rm conftest*
8906       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8907 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8908       ;;
8909     esac
8910   fi
8911   ;;
8912 esac
8913
8914 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8915 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8916 library_names_spec=
8917 libname_spec='lib$name'
8918 soname_spec=
8919 shrext_cmds=".so"
8920 postinstall_cmds=
8921 postuninstall_cmds=
8922 finish_cmds=
8923 finish_eval=
8924 shlibpath_var=
8925 shlibpath_overrides_runpath=unknown
8926 version_type=none
8927 dynamic_linker="$host_os ld.so"
8928 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8929
8930 if test "$GCC" = yes; then
8931   case $host_os in
8932     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8933     *) lt_awk_arg="/^libraries:/" ;;
8934   esac
8935   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8936   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8937     # if the path contains ";" then we assume it to be the separator
8938     # otherwise default to the standard path separator (i.e. ":") - it is
8939     # assumed that no part of a normal pathname contains ";" but that should
8940     # okay in the real world where ";" in dirpaths is itself problematic.
8941     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8942   else
8943     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8944   fi
8945   # Ok, now we have the path, separated by spaces, we can step through it
8946   # and add multilib dir if necessary.
8947   lt_tmp_lt_search_path_spec=
8948   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8949   for lt_sys_path in $lt_search_path_spec; do
8950     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8951       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8952     else
8953       test -d "$lt_sys_path" && \
8954         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8955     fi
8956   done
8957   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8958 BEGIN {RS=" "; FS="/|\n";} {
8959   lt_foo="";
8960   lt_count=0;
8961   for (lt_i = NF; lt_i > 0; lt_i--) {
8962     if ($lt_i != "" && $lt_i != ".") {
8963       if ($lt_i == "..") {
8964         lt_count++;
8965       } else {
8966         if (lt_count == 0) {
8967           lt_foo="/" $lt_i lt_foo;
8968         } else {
8969           lt_count--;
8970         }
8971       }
8972     }
8973   }
8974   if (lt_foo != "") { lt_freq[lt_foo]++; }
8975   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8976 }'`
8977   sys_lib_search_path_spec=`echo $lt_search_path_spec`
8978 else
8979   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8980 fi
8981 need_lib_prefix=unknown
8982 hardcode_into_libs=no
8983
8984 # when you set need_version to no, make sure it does not cause -set_version
8985 # flags to be left without arguments
8986 need_version=unknown
8987
8988 case $host_os in
8989 aix3*)
8990   version_type=linux
8991   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8992   shlibpath_var=LIBPATH
8993
8994   # AIX 3 has no versioning support, so we append a major version to the name.
8995   soname_spec='${libname}${release}${shared_ext}$major'
8996   ;;
8997
8998 aix[4-9]*)
8999   version_type=linux
9000   need_lib_prefix=no
9001   need_version=no
9002   hardcode_into_libs=yes
9003   if test "$host_cpu" = ia64; then
9004     # AIX 5 supports IA64
9005     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9006     shlibpath_var=LD_LIBRARY_PATH
9007   else
9008     # With GCC up to 2.95.x, collect2 would create an import file
9009     # for dependence libraries.  The import file would start with
9010     # the line `#! .'.  This would cause the generated library to
9011     # depend on `.', always an invalid library.  This was fixed in
9012     # development snapshots of GCC prior to 3.0.
9013     case $host_os in
9014       aix4 | aix4.[01] | aix4.[01].*)
9015       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9016            echo ' yes '
9017            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9018         :
9019       else
9020         can_build_shared=no
9021       fi
9022       ;;
9023     esac
9024     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9025     # soname into executable. Probably we can add versioning support to
9026     # collect2, so additional links can be useful in future.
9027     if test "$aix_use_runtimelinking" = yes; then
9028       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9029       # instead of lib<name>.a to let people know that these are not
9030       # typical AIX shared libraries.
9031       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032     else
9033       # We preserve .a as extension for shared libraries through AIX4.2
9034       # and later when we are not doing run time linking.
9035       library_names_spec='${libname}${release}.a $libname.a'
9036       soname_spec='${libname}${release}${shared_ext}$major'
9037     fi
9038     shlibpath_var=LIBPATH
9039   fi
9040   ;;
9041
9042 amigaos*)
9043   library_names_spec='$libname.ixlibrary $libname.a'
9044   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9045   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'
9046   ;;
9047
9048 beos*)
9049   library_names_spec='${libname}${shared_ext}'
9050   dynamic_linker="$host_os ld.so"
9051   shlibpath_var=LIBRARY_PATH
9052   ;;
9053
9054 bsdi[45]*)
9055   version_type=linux
9056   need_version=no
9057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058   soname_spec='${libname}${release}${shared_ext}$major'
9059   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9060   shlibpath_var=LD_LIBRARY_PATH
9061   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9062   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9063   # the default ld.so.conf also contains /usr/contrib/lib and
9064   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9065   # libtool to hard-code these into programs
9066   ;;
9067
9068 cygwin* | mingw* | pw32*)
9069   version_type=windows
9070   shrext_cmds=".dll"
9071   need_version=no
9072   need_lib_prefix=no
9073
9074   case $GCC,$host_os in
9075   yes,cygwin* | yes,mingw* | yes,pw32*)
9076     library_names_spec='$libname.dll.a'
9077     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9078     postinstall_cmds='base_file=`basename \${file}`~
9079       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9080       dldir=$destdir/`dirname \$dlpath`~
9081       test -d \$dldir || mkdir -p \$dldir~
9082       $install_prog $dir/$dlname \$dldir/$dlname~
9083       chmod a+x \$dldir/$dlname'
9084     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9085       dlpath=$dir/\$dldll~
9086        $rm \$dlpath'
9087     shlibpath_overrides_runpath=yes
9088
9089     case $host_os in
9090     cygwin*)
9091       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9092       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9093       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9094       ;;
9095     mingw*)
9096       # MinGW DLLs use traditional 'lib' prefix
9097       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9098       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9099       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9100         # It is most probably a Windows format PATH printed by
9101         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9102         # path with ; separators, and with drive letters. We can handle the
9103         # drive letters (cygwin fileutils understands them), so leave them,
9104         # especially as we might pass files found there to a mingw objdump,
9105         # which wouldn't understand a cygwinified path. Ahh.
9106         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9107       else
9108         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9109       fi
9110       ;;
9111     pw32*)
9112       # pw32 DLLs use 'pw' prefix rather than 'lib'
9113       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9114       ;;
9115     esac
9116     ;;
9117
9118   *)
9119     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9120     ;;
9121   esac
9122   dynamic_linker='Win32 ld.exe'
9123   # FIXME: first we should search . and the directory the executable is in
9124   shlibpath_var=PATH
9125   ;;
9126
9127 darwin* | rhapsody*)
9128   dynamic_linker="$host_os dyld"
9129   version_type=darwin
9130   need_lib_prefix=no
9131   need_version=no
9132   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9133   soname_spec='${libname}${release}${major}$shared_ext'
9134   shlibpath_overrides_runpath=yes
9135   shlibpath_var=DYLD_LIBRARY_PATH
9136   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9137
9138   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9139   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9140   ;;
9141
9142 dgux*)
9143   version_type=linux
9144   need_lib_prefix=no
9145   need_version=no
9146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9147   soname_spec='${libname}${release}${shared_ext}$major'
9148   shlibpath_var=LD_LIBRARY_PATH
9149   ;;
9150
9151 freebsd1*)
9152   dynamic_linker=no
9153   ;;
9154
9155 freebsd* | dragonfly*)
9156   # DragonFly does not have aout.  When/if they implement a new
9157   # versioning mechanism, adjust this.
9158   if test -x /usr/bin/objformat; then
9159     objformat=`/usr/bin/objformat`
9160   else
9161     case $host_os in
9162     freebsd[123]*) objformat=aout ;;
9163     *) objformat=elf ;;
9164     esac
9165   fi
9166   version_type=freebsd-$objformat
9167   case $version_type in
9168     freebsd-elf*)
9169       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9170       need_version=no
9171       need_lib_prefix=no
9172       ;;
9173     freebsd-*)
9174       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9175       need_version=yes
9176       ;;
9177   esac
9178   shlibpath_var=LD_LIBRARY_PATH
9179   case $host_os in
9180   freebsd2*)
9181     shlibpath_overrides_runpath=yes
9182     ;;
9183   freebsd3.[01]* | freebsdelf3.[01]*)
9184     shlibpath_overrides_runpath=yes
9185     hardcode_into_libs=yes
9186     ;;
9187   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9188   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9189     shlibpath_overrides_runpath=no
9190     hardcode_into_libs=yes
9191     ;;
9192   *) # from 4.6 on, and DragonFly
9193     shlibpath_overrides_runpath=yes
9194     hardcode_into_libs=yes
9195     ;;
9196   esac
9197   ;;
9198
9199 gnu*)
9200   version_type=linux
9201   need_lib_prefix=no
9202   need_version=no
9203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9204   soname_spec='${libname}${release}${shared_ext}$major'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   hardcode_into_libs=yes
9207   ;;
9208
9209 hpux9* | hpux10* | hpux11*)
9210   # Give a soname corresponding to the major version so that dld.sl refuses to
9211   # link against other versions.
9212   version_type=sunos
9213   need_lib_prefix=no
9214   need_version=no
9215   case $host_cpu in
9216   ia64*)
9217     shrext_cmds='.so'
9218     hardcode_into_libs=yes
9219     dynamic_linker="$host_os dld.so"
9220     shlibpath_var=LD_LIBRARY_PATH
9221     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223     soname_spec='${libname}${release}${shared_ext}$major'
9224     if test "X$HPUX_IA64_MODE" = X32; then
9225       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9226     else
9227       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9228     fi
9229     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9230     ;;
9231    hppa*64*)
9232      shrext_cmds='.sl'
9233      hardcode_into_libs=yes
9234      dynamic_linker="$host_os dld.sl"
9235      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9236      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9237      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238      soname_spec='${libname}${release}${shared_ext}$major'
9239      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9240      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9241      ;;
9242    *)
9243     shrext_cmds='.sl'
9244     dynamic_linker="$host_os dld.sl"
9245     shlibpath_var=SHLIB_PATH
9246     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9248     soname_spec='${libname}${release}${shared_ext}$major'
9249     ;;
9250   esac
9251   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9252   postinstall_cmds='chmod 555 $lib'
9253   ;;
9254
9255 interix[3-9]*)
9256   version_type=linux
9257   need_lib_prefix=no
9258   need_version=no
9259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9260   soname_spec='${libname}${release}${shared_ext}$major'
9261   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9262   shlibpath_var=LD_LIBRARY_PATH
9263   shlibpath_overrides_runpath=no
9264   hardcode_into_libs=yes
9265   ;;
9266
9267 irix5* | irix6* | nonstopux*)
9268   case $host_os in
9269     nonstopux*) version_type=nonstopux ;;
9270     *)
9271         if test "$lt_cv_prog_gnu_ld" = yes; then
9272                 version_type=linux
9273         else
9274                 version_type=irix
9275         fi ;;
9276   esac
9277   need_lib_prefix=no
9278   need_version=no
9279   soname_spec='${libname}${release}${shared_ext}$major'
9280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9281   case $host_os in
9282   irix5* | nonstopux*)
9283     libsuff= shlibsuff=
9284     ;;
9285   *)
9286     case $LD in # libtool.m4 will add one of these switches to LD
9287     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9288       libsuff= shlibsuff= libmagic=32-bit;;
9289     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9290       libsuff=32 shlibsuff=N32 libmagic=N32;;
9291     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9292       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9293     *) libsuff= shlibsuff= libmagic=never-match;;
9294     esac
9295     ;;
9296   esac
9297   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9298   shlibpath_overrides_runpath=no
9299   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9300   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9301   hardcode_into_libs=yes
9302   ;;
9303
9304 # No shared lib support for Linux oldld, aout, or coff.
9305 linux*oldld* | linux*aout* | linux*coff*)
9306   dynamic_linker=no
9307   ;;
9308
9309 # This must be Linux ELF.
9310 linux* | k*bsd*-gnu)
9311   version_type=linux
9312   need_lib_prefix=no
9313   need_version=no
9314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9315   soname_spec='${libname}${release}${shared_ext}$major'
9316   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9317   shlibpath_var=LD_LIBRARY_PATH
9318   shlibpath_overrides_runpath=no
9319   # This implies no fast_install, which is unacceptable.
9320   # Some rework will be needed to allow for fast_install
9321   # before this can be enabled.
9322   hardcode_into_libs=yes
9323
9324   # Append ld.so.conf contents to the search path
9325   if test -f /etc/ld.so.conf; then
9326     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' ' '`
9327     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9328   fi
9329
9330   # We used to test for /lib/ld.so.1 and disable shared libraries on
9331   # powerpc, because MkLinux only supported shared libraries with the
9332   # GNU dynamic linker.  Since this was broken with cross compilers,
9333   # most powerpc-linux boxes support dynamic linking these days and
9334   # people can always --disable-shared, the test was removed, and we
9335   # assume the GNU/Linux dynamic linker is in use.
9336   dynamic_linker='GNU/Linux ld.so'
9337   ;;
9338
9339 netbsdelf*-gnu)
9340   version_type=linux
9341   need_lib_prefix=no
9342   need_version=no
9343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9344   soname_spec='${libname}${release}${shared_ext}$major'
9345   shlibpath_var=LD_LIBRARY_PATH
9346   shlibpath_overrides_runpath=no
9347   hardcode_into_libs=yes
9348   dynamic_linker='NetBSD ld.elf_so'
9349   ;;
9350
9351 netbsd*)
9352   version_type=sunos
9353   need_lib_prefix=no
9354   need_version=no
9355   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9357     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9358     dynamic_linker='NetBSD (a.out) ld.so'
9359   else
9360     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9361     soname_spec='${libname}${release}${shared_ext}$major'
9362     dynamic_linker='NetBSD ld.elf_so'
9363   fi
9364   shlibpath_var=LD_LIBRARY_PATH
9365   shlibpath_overrides_runpath=yes
9366   hardcode_into_libs=yes
9367   ;;
9368
9369 newsos6)
9370   version_type=linux
9371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9372   shlibpath_var=LD_LIBRARY_PATH
9373   shlibpath_overrides_runpath=yes
9374   ;;
9375
9376 nto-qnx*)
9377   version_type=linux
9378   need_lib_prefix=no
9379   need_version=no
9380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381   soname_spec='${libname}${release}${shared_ext}$major'
9382   shlibpath_var=LD_LIBRARY_PATH
9383   shlibpath_overrides_runpath=yes
9384   ;;
9385
9386 openbsd*)
9387   version_type=sunos
9388   sys_lib_dlsearch_path_spec="/usr/lib"
9389   need_lib_prefix=no
9390   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9391   case $host_os in
9392     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9393     *)                         need_version=no  ;;
9394   esac
9395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9396   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9397   shlibpath_var=LD_LIBRARY_PATH
9398   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9399     case $host_os in
9400       openbsd2.[89] | openbsd2.[89].*)
9401         shlibpath_overrides_runpath=no
9402         ;;
9403       *)
9404         shlibpath_overrides_runpath=yes
9405         ;;
9406       esac
9407   else
9408     shlibpath_overrides_runpath=yes
9409   fi
9410   ;;
9411
9412 os2*)
9413   libname_spec='$name'
9414   shrext_cmds=".dll"
9415   need_lib_prefix=no
9416   library_names_spec='$libname${shared_ext} $libname.a'
9417   dynamic_linker='OS/2 ld.exe'
9418   shlibpath_var=LIBPATH
9419   ;;
9420
9421 osf3* | osf4* | osf5*)
9422   version_type=osf
9423   need_lib_prefix=no
9424   need_version=no
9425   soname_spec='${libname}${release}${shared_ext}$major'
9426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427   shlibpath_var=LD_LIBRARY_PATH
9428   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9429   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9430   ;;
9431
9432 rdos*)
9433   dynamic_linker=no
9434   ;;
9435
9436 solaris*)
9437   version_type=linux
9438   need_lib_prefix=no
9439   need_version=no
9440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9441   soname_spec='${libname}${release}${shared_ext}$major'
9442   shlibpath_var=LD_LIBRARY_PATH
9443   shlibpath_overrides_runpath=yes
9444   hardcode_into_libs=yes
9445   # ldd complains unless libraries are executable
9446   postinstall_cmds='chmod +x $lib'
9447   ;;
9448
9449 sunos4*)
9450   version_type=sunos
9451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9452   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9453   shlibpath_var=LD_LIBRARY_PATH
9454   shlibpath_overrides_runpath=yes
9455   if test "$with_gnu_ld" = yes; then
9456     need_lib_prefix=no
9457   fi
9458   need_version=yes
9459   ;;
9460
9461 sysv4 | sysv4.3*)
9462   version_type=linux
9463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464   soname_spec='${libname}${release}${shared_ext}$major'
9465   shlibpath_var=LD_LIBRARY_PATH
9466   case $host_vendor in
9467     sni)
9468       shlibpath_overrides_runpath=no
9469       need_lib_prefix=no
9470       export_dynamic_flag_spec='${wl}-Blargedynsym'
9471       runpath_var=LD_RUN_PATH
9472       ;;
9473     siemens)
9474       need_lib_prefix=no
9475       ;;
9476     motorola)
9477       need_lib_prefix=no
9478       need_version=no
9479       shlibpath_overrides_runpath=no
9480       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9481       ;;
9482   esac
9483   ;;
9484
9485 sysv4*MP*)
9486   if test -d /usr/nec ;then
9487     version_type=linux
9488     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9489     soname_spec='$libname${shared_ext}.$major'
9490     shlibpath_var=LD_LIBRARY_PATH
9491   fi
9492   ;;
9493
9494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9495   version_type=freebsd-elf
9496   need_lib_prefix=no
9497   need_version=no
9498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9499   soname_spec='${libname}${release}${shared_ext}$major'
9500   shlibpath_var=LD_LIBRARY_PATH
9501   hardcode_into_libs=yes
9502   if test "$with_gnu_ld" = yes; then
9503     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9504     shlibpath_overrides_runpath=no
9505   else
9506     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9507     shlibpath_overrides_runpath=yes
9508     case $host_os in
9509       sco3.2v5*)
9510         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9511         ;;
9512     esac
9513   fi
9514   sys_lib_dlsearch_path_spec='/usr/lib'
9515   ;;
9516
9517 uts4*)
9518   version_type=linux
9519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9520   soname_spec='${libname}${release}${shared_ext}$major'
9521   shlibpath_var=LD_LIBRARY_PATH
9522   ;;
9523
9524 *)
9525   dynamic_linker=no
9526   ;;
9527 esac
9528 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9529 echo "${ECHO_T}$dynamic_linker" >&6; }
9530 test "$dynamic_linker" = no && can_build_shared=no
9531
9532 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9533   echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9536 fi
9537
9538 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9539 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9543 fi
9544
9545 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9546
9547 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9548 if test "$GCC" = yes; then
9549   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9550 fi
9551
9552 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9553 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9554 hardcode_action=
9555 if test -n "$hardcode_libdir_flag_spec" || \
9556    test -n "$runpath_var" || \
9557    test "X$hardcode_automatic" = "Xyes" ; then
9558
9559   # We can hardcode non-existant directories.
9560   if test "$hardcode_direct" != no &&
9561      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9562      # have to relink, otherwise we might link with an installed library
9563      # when we should be linking with a yet-to-be-installed one
9564      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9565      test "$hardcode_minus_L" != no; then
9566     # Linking always hardcodes the temporary library directory.
9567     hardcode_action=relink
9568   else
9569     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9570     hardcode_action=immediate
9571   fi
9572 else
9573   # We cannot hardcode anything, or else we can only hardcode existing
9574   # directories.
9575   hardcode_action=unsupported
9576 fi
9577 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9578 echo "${ECHO_T}$hardcode_action" >&6; }
9579
9580 if test "$hardcode_action" = relink; then
9581   # Fast installation is not supported
9582   enable_fast_install=no
9583 elif test "$shlibpath_overrides_runpath" = yes ||
9584      test "$enable_shared" = no; then
9585   # Fast installation is not necessary
9586   enable_fast_install=needless
9587 fi
9588
9589 striplib=
9590 old_striplib=
9591 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9592 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9593 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9594   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9595   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9596   { echo "$as_me:$LINENO: result: yes" >&5
9597 echo "${ECHO_T}yes" >&6; }
9598 else
9599 # FIXME - insert some real tests, host_os isn't really good enough
9600   case $host_os in
9601    darwin*)
9602        if test -n "$STRIP" ; then
9603          striplib="$STRIP -x"
9604          old_striplib="$STRIP -S"
9605          { echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6; }
9607        else
9608   { echo "$as_me:$LINENO: result: no" >&5
9609 echo "${ECHO_T}no" >&6; }
9610 fi
9611        ;;
9612    *)
9613   { echo "$as_me:$LINENO: result: no" >&5
9614 echo "${ECHO_T}no" >&6; }
9615     ;;
9616   esac
9617 fi
9618
9619 if test "x$enable_dlopen" != xyes; then
9620   enable_dlopen=unknown
9621   enable_dlopen_self=unknown
9622   enable_dlopen_self_static=unknown
9623 else
9624   lt_cv_dlopen=no
9625   lt_cv_dlopen_libs=
9626
9627   case $host_os in
9628   beos*)
9629     lt_cv_dlopen="load_add_on"
9630     lt_cv_dlopen_libs=
9631     lt_cv_dlopen_self=yes
9632     ;;
9633
9634   mingw* | pw32*)
9635     lt_cv_dlopen="LoadLibrary"
9636     lt_cv_dlopen_libs=
9637    ;;
9638
9639   cygwin*)
9640     lt_cv_dlopen="dlopen"
9641     lt_cv_dlopen_libs=
9642    ;;
9643
9644   darwin*)
9645   # if libdl is installed we need to link against it
9646     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9647 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9648 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9649   echo $ECHO_N "(cached) $ECHO_C" >&6
9650 else
9651   ac_check_lib_save_LIBS=$LIBS
9652 LIBS="-ldl  $LIBS"
9653 cat >conftest.$ac_ext <<_ACEOF
9654 /* confdefs.h.  */
9655 _ACEOF
9656 cat confdefs.h >>conftest.$ac_ext
9657 cat >>conftest.$ac_ext <<_ACEOF
9658 /* end confdefs.h.  */
9659
9660 /* Override any GCC internal prototype to avoid an error.
9661    Use char because int might match the return type of a GCC
9662    builtin and then its argument prototype would still apply.  */
9663 #ifdef __cplusplus
9664 extern "C"
9665 #endif
9666 char dlopen ();
9667 int
9668 main ()
9669 {
9670 return dlopen ();
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (ac_try="$ac_link"
9677 case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_link") 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } && {
9689          test -z "$ac_c_werror_flag" ||
9690          test ! -s conftest.err
9691        } && test -s conftest$ac_exeext &&
9692        $as_test_x conftest$ac_exeext; then
9693   ac_cv_lib_dl_dlopen=yes
9694 else
9695   echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698         ac_cv_lib_dl_dlopen=no
9699 fi
9700
9701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9702       conftest$ac_exeext conftest.$ac_ext
9703 LIBS=$ac_check_lib_save_LIBS
9704 fi
9705 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9706 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9707 if test $ac_cv_lib_dl_dlopen = yes; then
9708   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9709 else
9710
9711     lt_cv_dlopen="dyld"
9712     lt_cv_dlopen_libs=
9713     lt_cv_dlopen_self=yes
9714
9715 fi
9716
9717    ;;
9718
9719   *)
9720     { echo "$as_me:$LINENO: checking for shl_load" >&5
9721 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9722 if test "${ac_cv_func_shl_load+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h.  */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h.  */
9731 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9733 #define shl_load innocuous_shl_load
9734
9735 /* System header to define __stub macros and hopefully few prototypes,
9736     which can conflict with char shl_load (); below.
9737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9738     <limits.h> exists even on freestanding compilers.  */
9739
9740 #ifdef __STDC__
9741 # include <limits.h>
9742 #else
9743 # include <assert.h>
9744 #endif
9745
9746 #undef shl_load
9747
9748 /* Override any GCC internal prototype to avoid an error.
9749    Use char because int might match the return type of a GCC
9750    builtin and then its argument prototype would still apply.  */
9751 #ifdef __cplusplus
9752 extern "C"
9753 #endif
9754 char shl_load ();
9755 /* The GNU C library defines this for functions which it implements
9756     to always fail with ENOSYS.  Some functions are actually named
9757     something starting with __ and the normal name is an alias.  */
9758 #if defined __stub_shl_load || defined __stub___shl_load
9759 choke me
9760 #endif
9761
9762 int
9763 main ()
9764 {
9765 return shl_load ();
9766   ;
9767   return 0;
9768 }
9769 _ACEOF
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9772 case "(($ac_try" in
9773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774   *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777   (eval "$ac_link") 2>conftest.er1
9778   ac_status=$?
9779   grep -v '^ *+' conftest.er1 >conftest.err
9780   rm -f conftest.er1
9781   cat conftest.err >&5
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); } && {
9784          test -z "$ac_c_werror_flag" ||
9785          test ! -s conftest.err
9786        } && test -s conftest$ac_exeext &&
9787        $as_test_x conftest$ac_exeext; then
9788   ac_cv_func_shl_load=yes
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793         ac_cv_func_shl_load=no
9794 fi
9795
9796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9797       conftest$ac_exeext conftest.$ac_ext
9798 fi
9799 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9800 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9801 if test $ac_cv_func_shl_load = yes; then
9802   lt_cv_dlopen="shl_load"
9803 else
9804   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9805 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9806 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9807   echo $ECHO_N "(cached) $ECHO_C" >&6
9808 else
9809   ac_check_lib_save_LIBS=$LIBS
9810 LIBS="-ldld  $LIBS"
9811 cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817
9818 /* Override any GCC internal prototype to avoid an error.
9819    Use char because int might match the return type of a GCC
9820    builtin and then its argument prototype would still apply.  */
9821 #ifdef __cplusplus
9822 extern "C"
9823 #endif
9824 char shl_load ();
9825 int
9826 main ()
9827 {
9828 return shl_load ();
9829   ;
9830   return 0;
9831 }
9832 _ACEOF
9833 rm -f conftest.$ac_objext conftest$ac_exeext
9834 if { (ac_try="$ac_link"
9835 case "(($ac_try" in
9836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837   *) ac_try_echo=$ac_try;;
9838 esac
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840   (eval "$ac_link") 2>conftest.er1
9841   ac_status=$?
9842   grep -v '^ *+' conftest.er1 >conftest.err
9843   rm -f conftest.er1
9844   cat conftest.err >&5
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } && {
9847          test -z "$ac_c_werror_flag" ||
9848          test ! -s conftest.err
9849        } && test -s conftest$ac_exeext &&
9850        $as_test_x conftest$ac_exeext; then
9851   ac_cv_lib_dld_shl_load=yes
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856         ac_cv_lib_dld_shl_load=no
9857 fi
9858
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860       conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9862 fi
9863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9864 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9865 if test $ac_cv_lib_dld_shl_load = yes; then
9866   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9867 else
9868   { echo "$as_me:$LINENO: checking for dlopen" >&5
9869 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9870 if test "${ac_cv_func_dlopen+set}" = set; then
9871   echo $ECHO_N "(cached) $ECHO_C" >&6
9872 else
9873   cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9880    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9881 #define dlopen innocuous_dlopen
9882
9883 /* System header to define __stub macros and hopefully few prototypes,
9884     which can conflict with char dlopen (); below.
9885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9886     <limits.h> exists even on freestanding compilers.  */
9887
9888 #ifdef __STDC__
9889 # include <limits.h>
9890 #else
9891 # include <assert.h>
9892 #endif
9893
9894 #undef dlopen
9895
9896 /* Override any GCC internal prototype to avoid an error.
9897    Use char because int might match the return type of a GCC
9898    builtin and then its argument prototype would still apply.  */
9899 #ifdef __cplusplus
9900 extern "C"
9901 #endif
9902 char dlopen ();
9903 /* The GNU C library defines this for functions which it implements
9904     to always fail with ENOSYS.  Some functions are actually named
9905     something starting with __ and the normal name is an alias.  */
9906 #if defined __stub_dlopen || defined __stub___dlopen
9907 choke me
9908 #endif
9909
9910 int
9911 main ()
9912 {
9913 return dlopen ();
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (ac_try="$ac_link"
9920 case "(($ac_try" in
9921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922   *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925   (eval "$ac_link") 2>conftest.er1
9926   ac_status=$?
9927   grep -v '^ *+' conftest.er1 >conftest.err
9928   rm -f conftest.er1
9929   cat conftest.err >&5
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } && {
9932          test -z "$ac_c_werror_flag" ||
9933          test ! -s conftest.err
9934        } && test -s conftest$ac_exeext &&
9935        $as_test_x conftest$ac_exeext; then
9936   ac_cv_func_dlopen=yes
9937 else
9938   echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941         ac_cv_func_dlopen=no
9942 fi
9943
9944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9945       conftest$ac_exeext conftest.$ac_ext
9946 fi
9947 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9948 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9949 if test $ac_cv_func_dlopen = yes; then
9950   lt_cv_dlopen="dlopen"
9951 else
9952   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9953 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   ac_check_lib_save_LIBS=$LIBS
9958 LIBS="-ldl  $LIBS"
9959 cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965
9966 /* Override any GCC internal prototype to avoid an error.
9967    Use char because int might match the return type of a GCC
9968    builtin and then its argument prototype would still apply.  */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 char dlopen ();
9973 int
9974 main ()
9975 {
9976 return dlopen ();
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9983 case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_link") 2>conftest.er1
9989   ac_status=$?
9990   grep -v '^ *+' conftest.er1 >conftest.err
9991   rm -f conftest.er1
9992   cat conftest.err >&5
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } && {
9995          test -z "$ac_c_werror_flag" ||
9996          test ! -s conftest.err
9997        } && test -s conftest$ac_exeext &&
9998        $as_test_x conftest$ac_exeext; then
9999   ac_cv_lib_dl_dlopen=yes
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004         ac_cv_lib_dl_dlopen=no
10005 fi
10006
10007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10008       conftest$ac_exeext conftest.$ac_ext
10009 LIBS=$ac_check_lib_save_LIBS
10010 fi
10011 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10012 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10013 if test $ac_cv_lib_dl_dlopen = yes; then
10014   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10015 else
10016   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10017 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021   ac_check_lib_save_LIBS=$LIBS
10022 LIBS="-lsvld  $LIBS"
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h.  */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h.  */
10029
10030 /* Override any GCC internal prototype to avoid an error.
10031    Use char because int might match the return type of a GCC
10032    builtin and then its argument prototype would still apply.  */
10033 #ifdef __cplusplus
10034 extern "C"
10035 #endif
10036 char dlopen ();
10037 int
10038 main ()
10039 {
10040 return dlopen ();
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (ac_try="$ac_link"
10047 case "(($ac_try" in
10048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049   *) ac_try_echo=$ac_try;;
10050 esac
10051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052   (eval "$ac_link") 2>conftest.er1
10053   ac_status=$?
10054   grep -v '^ *+' conftest.er1 >conftest.err
10055   rm -f conftest.er1
10056   cat conftest.err >&5
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); } && {
10059          test -z "$ac_c_werror_flag" ||
10060          test ! -s conftest.err
10061        } && test -s conftest$ac_exeext &&
10062        $as_test_x conftest$ac_exeext; then
10063   ac_cv_lib_svld_dlopen=yes
10064 else
10065   echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068         ac_cv_lib_svld_dlopen=no
10069 fi
10070
10071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10072       conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10074 fi
10075 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10076 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10077 if test $ac_cv_lib_svld_dlopen = yes; then
10078   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10079 else
10080   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10081 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10082 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085   ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-ldld  $LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093
10094 /* Override any GCC internal prototype to avoid an error.
10095    Use char because int might match the return type of a GCC
10096    builtin and then its argument prototype would still apply.  */
10097 #ifdef __cplusplus
10098 extern "C"
10099 #endif
10100 char dld_link ();
10101 int
10102 main ()
10103 {
10104 return dld_link ();
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (ac_try="$ac_link"
10111 case "(($ac_try" in
10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113   *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116   (eval "$ac_link") 2>conftest.er1
10117   ac_status=$?
10118   grep -v '^ *+' conftest.er1 >conftest.err
10119   rm -f conftest.er1
10120   cat conftest.err >&5
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } && {
10123          test -z "$ac_c_werror_flag" ||
10124          test ! -s conftest.err
10125        } && test -s conftest$ac_exeext &&
10126        $as_test_x conftest$ac_exeext; then
10127   ac_cv_lib_dld_dld_link=yes
10128 else
10129   echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132         ac_cv_lib_dld_dld_link=no
10133 fi
10134
10135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10136       conftest$ac_exeext conftest.$ac_ext
10137 LIBS=$ac_check_lib_save_LIBS
10138 fi
10139 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10140 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10141 if test $ac_cv_lib_dld_dld_link = yes; then
10142   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10143 fi
10144
10145
10146 fi
10147
10148
10149 fi
10150
10151
10152 fi
10153
10154
10155 fi
10156
10157
10158 fi
10159
10160     ;;
10161   esac
10162
10163   if test "x$lt_cv_dlopen" != xno; then
10164     enable_dlopen=yes
10165   else
10166     enable_dlopen=no
10167   fi
10168
10169   case $lt_cv_dlopen in
10170   dlopen)
10171     save_CPPFLAGS="$CPPFLAGS"
10172     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10173
10174     save_LDFLAGS="$LDFLAGS"
10175     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10176
10177     save_LIBS="$LIBS"
10178     LIBS="$lt_cv_dlopen_libs $LIBS"
10179
10180     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10181 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10182 if test "${lt_cv_dlopen_self+set}" = set; then
10183   echo $ECHO_N "(cached) $ECHO_C" >&6
10184 else
10185           if test "$cross_compiling" = yes; then :
10186   lt_cv_dlopen_self=cross
10187 else
10188   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10189   lt_status=$lt_dlunknown
10190   cat > conftest.$ac_ext <<EOF
10191 #line 10191 "configure"
10192 #include "confdefs.h"
10193
10194 #if HAVE_DLFCN_H
10195 #include <dlfcn.h>
10196 #endif
10197
10198 #include <stdio.h>
10199
10200 #ifdef RTLD_GLOBAL
10201 #  define LT_DLGLOBAL           RTLD_GLOBAL
10202 #else
10203 #  ifdef DL_GLOBAL
10204 #    define LT_DLGLOBAL         DL_GLOBAL
10205 #  else
10206 #    define LT_DLGLOBAL         0
10207 #  endif
10208 #endif
10209
10210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10211    find out it does not work in some platform. */
10212 #ifndef LT_DLLAZY_OR_NOW
10213 #  ifdef RTLD_LAZY
10214 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10215 #  else
10216 #    ifdef DL_LAZY
10217 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10218 #    else
10219 #      ifdef RTLD_NOW
10220 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10221 #      else
10222 #        ifdef DL_NOW
10223 #          define LT_DLLAZY_OR_NOW      DL_NOW
10224 #        else
10225 #          define LT_DLLAZY_OR_NOW      0
10226 #        endif
10227 #      endif
10228 #    endif
10229 #  endif
10230 #endif
10231
10232 #ifdef __cplusplus
10233 extern "C" void exit (int);
10234 #endif
10235
10236 void fnord() { int i=42;}
10237 int main ()
10238 {
10239   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10240   int status = $lt_dlunknown;
10241
10242   if (self)
10243     {
10244       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10245       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10246       /* dlclose (self); */
10247     }
10248   else
10249     puts (dlerror ());
10250
10251     exit (status);
10252 }
10253 EOF
10254   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10255   (eval $ac_link) 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10259     (./conftest; exit; ) >&5 2>/dev/null
10260     lt_status=$?
10261     case x$lt_status in
10262       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10263       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10264       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10265     esac
10266   else :
10267     # compilation failed
10268     lt_cv_dlopen_self=no
10269   fi
10270 fi
10271 rm -fr conftest*
10272
10273
10274 fi
10275 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10276 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10277
10278     if test "x$lt_cv_dlopen_self" = xyes; then
10279       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10280       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10281 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10282 if test "${lt_cv_dlopen_self_static+set}" = set; then
10283   echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285           if test "$cross_compiling" = yes; then :
10286   lt_cv_dlopen_self_static=cross
10287 else
10288   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10289   lt_status=$lt_dlunknown
10290   cat > conftest.$ac_ext <<EOF
10291 #line 10291 "configure"
10292 #include "confdefs.h"
10293
10294 #if HAVE_DLFCN_H
10295 #include <dlfcn.h>
10296 #endif
10297
10298 #include <stdio.h>
10299
10300 #ifdef RTLD_GLOBAL
10301 #  define LT_DLGLOBAL           RTLD_GLOBAL
10302 #else
10303 #  ifdef DL_GLOBAL
10304 #    define LT_DLGLOBAL         DL_GLOBAL
10305 #  else
10306 #    define LT_DLGLOBAL         0
10307 #  endif
10308 #endif
10309
10310 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10311    find out it does not work in some platform. */
10312 #ifndef LT_DLLAZY_OR_NOW
10313 #  ifdef RTLD_LAZY
10314 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10315 #  else
10316 #    ifdef DL_LAZY
10317 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10318 #    else
10319 #      ifdef RTLD_NOW
10320 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10321 #      else
10322 #        ifdef DL_NOW
10323 #          define LT_DLLAZY_OR_NOW      DL_NOW
10324 #        else
10325 #          define LT_DLLAZY_OR_NOW      0
10326 #        endif
10327 #      endif
10328 #    endif
10329 #  endif
10330 #endif
10331
10332 #ifdef __cplusplus
10333 extern "C" void exit (int);
10334 #endif
10335
10336 void fnord() { int i=42;}
10337 int main ()
10338 {
10339   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10340   int status = $lt_dlunknown;
10341
10342   if (self)
10343     {
10344       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10345       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10346       /* dlclose (self); */
10347     }
10348   else
10349     puts (dlerror ());
10350
10351     exit (status);
10352 }
10353 EOF
10354   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10355   (eval $ac_link) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10359     (./conftest; exit; ) >&5 2>/dev/null
10360     lt_status=$?
10361     case x$lt_status in
10362       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10363       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10364       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10365     esac
10366   else :
10367     # compilation failed
10368     lt_cv_dlopen_self_static=no
10369   fi
10370 fi
10371 rm -fr conftest*
10372
10373
10374 fi
10375 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10376 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10377     fi
10378
10379     CPPFLAGS="$save_CPPFLAGS"
10380     LDFLAGS="$save_LDFLAGS"
10381     LIBS="$save_LIBS"
10382     ;;
10383   esac
10384
10385   case $lt_cv_dlopen_self in
10386   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10387   *) enable_dlopen_self=unknown ;;
10388   esac
10389
10390   case $lt_cv_dlopen_self_static in
10391   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10392   *) enable_dlopen_self_static=unknown ;;
10393   esac
10394 fi
10395
10396
10397 # Report which library types will actually be built
10398 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10399 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10400 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10401 echo "${ECHO_T}$can_build_shared" >&6; }
10402
10403 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10404 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10405 test "$can_build_shared" = "no" && enable_shared=no
10406
10407 # On AIX, shared libraries and static libraries use the same namespace, and
10408 # are all built from PIC.
10409 case $host_os in
10410 aix3*)
10411   test "$enable_shared" = yes && enable_static=no
10412   if test -n "$RANLIB"; then
10413     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10414     postinstall_cmds='$RANLIB $lib'
10415   fi
10416   ;;
10417
10418 aix[4-9]*)
10419   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10420     test "$enable_shared" = yes && enable_static=no
10421   fi
10422     ;;
10423 esac
10424 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10425 echo "${ECHO_T}$enable_shared" >&6; }
10426
10427 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10428 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10429 # Make sure either enable_shared or enable_static is yes.
10430 test "$enable_shared" = yes || enable_static=yes
10431 { echo "$as_me:$LINENO: result: $enable_static" >&5
10432 echo "${ECHO_T}$enable_static" >&6; }
10433
10434 # The else clause should only fire when bootstrapping the
10435 # libtool distribution, otherwise you forgot to ship ltmain.sh
10436 # with your package, and you will get complaints that there are
10437 # no rules to generate ltmain.sh.
10438 if test -f "$ltmain"; then
10439   # See if we are running on zsh, and set the options which allow our commands through
10440   # without removal of \ escapes.
10441   if test -n "${ZSH_VERSION+set}" ; then
10442     setopt NO_GLOB_SUBST
10443   fi
10444   # Now quote all the things that may contain metacharacters while being
10445   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10446   # variables and quote the copies for generation of the libtool script.
10447   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10448     SED SHELL STRIP \
10449     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10450     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10451     deplibs_check_method reload_flag reload_cmds need_locks \
10452     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10453     lt_cv_sys_global_symbol_to_c_name_address \
10454     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10455     old_postinstall_cmds old_postuninstall_cmds \
10456     compiler \
10457     CC \
10458     LD \
10459     lt_prog_compiler_wl \
10460     lt_prog_compiler_pic \
10461     lt_prog_compiler_static \
10462     lt_prog_compiler_no_builtin_flag \
10463     export_dynamic_flag_spec \
10464     thread_safe_flag_spec \
10465     whole_archive_flag_spec \
10466     enable_shared_with_static_runtimes \
10467     old_archive_cmds \
10468     old_archive_from_new_cmds \
10469     predep_objects \
10470     postdep_objects \
10471     predeps \
10472     postdeps \
10473     compiler_lib_search_path \
10474     compiler_lib_search_dirs \
10475     archive_cmds \
10476     archive_expsym_cmds \
10477     postinstall_cmds \
10478     postuninstall_cmds \
10479     old_archive_from_expsyms_cmds \
10480     allow_undefined_flag \
10481     no_undefined_flag \
10482     export_symbols_cmds \
10483     hardcode_libdir_flag_spec \
10484     hardcode_libdir_flag_spec_ld \
10485     hardcode_libdir_separator \
10486     hardcode_automatic \
10487     module_cmds \
10488     module_expsym_cmds \
10489     lt_cv_prog_compiler_c_o \
10490     fix_srcfile_path \
10491     exclude_expsyms \
10492     include_expsyms; do
10493
10494     case $var in
10495     old_archive_cmds | \
10496     old_archive_from_new_cmds | \
10497     archive_cmds | \
10498     archive_expsym_cmds | \
10499     module_cmds | \
10500     module_expsym_cmds | \
10501     old_archive_from_expsyms_cmds | \
10502     export_symbols_cmds | \
10503     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10504     postinstall_cmds | postuninstall_cmds | \
10505     old_postinstall_cmds | old_postuninstall_cmds | \
10506     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10507       # Double-quote double-evaled strings.
10508       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10509       ;;
10510     *)
10511       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10512       ;;
10513     esac
10514   done
10515
10516   case $lt_echo in
10517   *'\$0 --fallback-echo"')
10518     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10519     ;;
10520   esac
10521
10522 cfgfile="${ofile}T"
10523   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10524   $rm -f "$cfgfile"
10525   { echo "$as_me:$LINENO: creating $ofile" >&5
10526 echo "$as_me: creating $ofile" >&6;}
10527
10528   cat <<__EOF__ >> "$cfgfile"
10529 #! $SHELL
10530
10531 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10532 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10533 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10534 #
10535 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10536 # Free Software Foundation, Inc.
10537 #
10538 # This file is part of GNU Libtool:
10539 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10540 #
10541 # This program is free software; you can redistribute it and/or modify
10542 # it under the terms of the GNU General Public License as published by
10543 # the Free Software Foundation; either version 2 of the License, or
10544 # (at your option) any later version.
10545 #
10546 # This program is distributed in the hope that it will be useful, but
10547 # WITHOUT ANY WARRANTY; without even the implied warranty of
10548 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10549 # General Public License for more details.
10550 #
10551 # You should have received a copy of the GNU General Public License
10552 # along with this program; if not, write to the Free Software
10553 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10554 #
10555 # As a special exception to the GNU General Public License, if you
10556 # distribute this file as part of a program that contains a
10557 # configuration script generated by Autoconf, you may include it under
10558 # the same distribution terms that you use for the rest of that program.
10559
10560 # A sed program that does not truncate output.
10561 SED=$lt_SED
10562
10563 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10564 Xsed="$SED -e 1s/^X//"
10565
10566 # The HP-UX ksh and POSIX shell print the target directory to stdout
10567 # if CDPATH is set.
10568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10569
10570 # The names of the tagged configurations supported by this script.
10571 available_tags=
10572
10573 # ### BEGIN LIBTOOL CONFIG
10574
10575 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10576
10577 # Shell to use when invoking shell scripts.
10578 SHELL=$lt_SHELL
10579
10580 # Whether or not to build shared libraries.
10581 build_libtool_libs=$enable_shared
10582
10583 # Whether or not to build static libraries.
10584 build_old_libs=$enable_static
10585
10586 # Whether or not to add -lc for building shared libraries.
10587 build_libtool_need_lc=$archive_cmds_need_lc
10588
10589 # Whether or not to disallow shared libs when runtime libs are static
10590 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10591
10592 # Whether or not to optimize for fast installation.
10593 fast_install=$enable_fast_install
10594
10595 # The host system.
10596 host_alias=$host_alias
10597 host=$host
10598 host_os=$host_os
10599
10600 # The build system.
10601 build_alias=$build_alias
10602 build=$build
10603 build_os=$build_os
10604
10605 # An echo program that does not interpret backslashes.
10606 echo=$lt_echo
10607
10608 # The archiver.
10609 AR=$lt_AR
10610 AR_FLAGS=$lt_AR_FLAGS
10611
10612 # A C compiler.
10613 LTCC=$lt_LTCC
10614
10615 # LTCC compiler flags.
10616 LTCFLAGS=$lt_LTCFLAGS
10617
10618 # A language-specific compiler.
10619 CC=$lt_compiler
10620
10621 # Is the compiler the GNU C compiler?
10622 with_gcc=$GCC
10623
10624 # An ERE matcher.
10625 EGREP=$lt_EGREP
10626
10627 # The linker used to build libraries.
10628 LD=$lt_LD
10629
10630 # Whether we need hard or soft links.
10631 LN_S=$lt_LN_S
10632
10633 # A BSD-compatible nm program.
10634 NM=$lt_NM
10635
10636 # A symbol stripping program
10637 STRIP=$lt_STRIP
10638
10639 # Used to examine libraries when file_magic_cmd begins "file"
10640 MAGIC_CMD=$MAGIC_CMD
10641
10642 # Used on cygwin: DLL creation program.
10643 DLLTOOL="$DLLTOOL"
10644
10645 # Used on cygwin: object dumper.
10646 OBJDUMP="$OBJDUMP"
10647
10648 # Used on cygwin: assembler.
10649 AS="$AS"
10650
10651 # The name of the directory that contains temporary libtool files.
10652 objdir=$objdir
10653
10654 # How to create reloadable object files.
10655 reload_flag=$lt_reload_flag
10656 reload_cmds=$lt_reload_cmds
10657
10658 # How to pass a linker flag through the compiler.
10659 wl=$lt_lt_prog_compiler_wl
10660
10661 # Object file suffix (normally "o").
10662 objext="$ac_objext"
10663
10664 # Old archive suffix (normally "a").
10665 libext="$libext"
10666
10667 # Shared library suffix (normally ".so").
10668 shrext_cmds='$shrext_cmds'
10669
10670 # Executable file suffix (normally "").
10671 exeext="$exeext"
10672
10673 # Additional compiler flags for building library objects.
10674 pic_flag=$lt_lt_prog_compiler_pic
10675 pic_mode=$pic_mode
10676
10677 # What is the maximum length of a command?
10678 max_cmd_len=$lt_cv_sys_max_cmd_len
10679
10680 # Does compiler simultaneously support -c and -o options?
10681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10682
10683 # Must we lock files when doing compilation?
10684 need_locks=$lt_need_locks
10685
10686 # Do we need the lib prefix for modules?
10687 need_lib_prefix=$need_lib_prefix
10688
10689 # Do we need a version for libraries?
10690 need_version=$need_version
10691
10692 # Whether dlopen is supported.
10693 dlopen_support=$enable_dlopen
10694
10695 # Whether dlopen of programs is supported.
10696 dlopen_self=$enable_dlopen_self
10697
10698 # Whether dlopen of statically linked programs is supported.
10699 dlopen_self_static=$enable_dlopen_self_static
10700
10701 # Compiler flag to prevent dynamic linking.
10702 link_static_flag=$lt_lt_prog_compiler_static
10703
10704 # Compiler flag to turn off builtin functions.
10705 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10706
10707 # Compiler flag to allow reflexive dlopens.
10708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10709
10710 # Compiler flag to generate shared objects directly from archives.
10711 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10712
10713 # Compiler flag to generate thread-safe objects.
10714 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10715
10716 # Library versioning type.
10717 version_type=$version_type
10718
10719 # Format of library name prefix.
10720 libname_spec=$lt_libname_spec
10721
10722 # List of archive names.  First name is the real one, the rest are links.
10723 # The last name is the one that the linker finds with -lNAME.
10724 library_names_spec=$lt_library_names_spec
10725
10726 # The coded name of the library, if different from the real name.
10727 soname_spec=$lt_soname_spec
10728
10729 # Commands used to build and install an old-style archive.
10730 RANLIB=$lt_RANLIB
10731 old_archive_cmds=$lt_old_archive_cmds
10732 old_postinstall_cmds=$lt_old_postinstall_cmds
10733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10734
10735 # Create an old-style archive from a shared archive.
10736 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10737
10738 # Create a temporary old-style archive to link instead of a shared archive.
10739 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10740
10741 # Commands used to build and install a shared archive.
10742 archive_cmds=$lt_archive_cmds
10743 archive_expsym_cmds=$lt_archive_expsym_cmds
10744 postinstall_cmds=$lt_postinstall_cmds
10745 postuninstall_cmds=$lt_postuninstall_cmds
10746
10747 # Commands used to build a loadable module (assumed same as above if empty)
10748 module_cmds=$lt_module_cmds
10749 module_expsym_cmds=$lt_module_expsym_cmds
10750
10751 # Commands to strip libraries.
10752 old_striplib=$lt_old_striplib
10753 striplib=$lt_striplib
10754
10755 # Dependencies to place before the objects being linked to create a
10756 # shared library.
10757 predep_objects=$lt_predep_objects
10758
10759 # Dependencies to place after the objects being linked to create a
10760 # shared library.
10761 postdep_objects=$lt_postdep_objects
10762
10763 # Dependencies to place before the objects being linked to create a
10764 # shared library.
10765 predeps=$lt_predeps
10766
10767 # Dependencies to place after the objects being linked to create a
10768 # shared library.
10769 postdeps=$lt_postdeps
10770
10771 # The directories searched by this compiler when creating a shared
10772 # library
10773 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10774
10775 # The library search path used internally by the compiler when linking
10776 # a shared library.
10777 compiler_lib_search_path=$lt_compiler_lib_search_path
10778
10779 # Method to check whether dependent libraries are shared objects.
10780 deplibs_check_method=$lt_deplibs_check_method
10781
10782 # Command to use when deplibs_check_method == file_magic.
10783 file_magic_cmd=$lt_file_magic_cmd
10784
10785 # Flag that allows shared libraries with undefined symbols to be built.
10786 allow_undefined_flag=$lt_allow_undefined_flag
10787
10788 # Flag that forces no undefined symbols.
10789 no_undefined_flag=$lt_no_undefined_flag
10790
10791 # Commands used to finish a libtool library installation in a directory.
10792 finish_cmds=$lt_finish_cmds
10793
10794 # Same as above, but a single script fragment to be evaled but not shown.
10795 finish_eval=$lt_finish_eval
10796
10797 # Take the output of nm and produce a listing of raw symbols and C names.
10798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10799
10800 # Transform the output of nm in a proper C declaration
10801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10802
10803 # Transform the output of nm in a C name address pair
10804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10805
10806 # This is the shared library runtime path variable.
10807 runpath_var=$runpath_var
10808
10809 # This is the shared library path variable.
10810 shlibpath_var=$shlibpath_var
10811
10812 # Is shlibpath searched before the hard-coded library search path?
10813 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10814
10815 # How to hardcode a shared library path into an executable.
10816 hardcode_action=$hardcode_action
10817
10818 # Whether we should hardcode library paths into libraries.
10819 hardcode_into_libs=$hardcode_into_libs
10820
10821 # Flag to hardcode \$libdir into a binary during linking.
10822 # This must work even if \$libdir does not exist.
10823 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10824
10825 # If ld is used when linking, flag to hardcode \$libdir into
10826 # a binary during linking. This must work even if \$libdir does
10827 # not exist.
10828 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10829
10830 # Whether we need a single -rpath flag with a separated argument.
10831 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10832
10833 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10834 # resulting binary.
10835 hardcode_direct=$hardcode_direct
10836
10837 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10838 # resulting binary.
10839 hardcode_minus_L=$hardcode_minus_L
10840
10841 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10842 # the resulting binary.
10843 hardcode_shlibpath_var=$hardcode_shlibpath_var
10844
10845 # Set to yes if building a shared library automatically hardcodes DIR into the library
10846 # and all subsequent libraries and executables linked against it.
10847 hardcode_automatic=$hardcode_automatic
10848
10849 # Variables whose values should be saved in libtool wrapper scripts and
10850 # restored at relink time.
10851 variables_saved_for_relink="$variables_saved_for_relink"
10852
10853 # Whether libtool must link a program against all its dependency libraries.
10854 link_all_deplibs=$link_all_deplibs
10855
10856 # Compile-time system search path for libraries
10857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10858
10859 # Run-time system search path for libraries
10860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10861
10862 # Fix the shell variable \$srcfile for the compiler.
10863 fix_srcfile_path=$lt_fix_srcfile_path
10864
10865 # Set to yes if exported symbols are required.
10866 always_export_symbols=$always_export_symbols
10867
10868 # The commands to list exported symbols.
10869 export_symbols_cmds=$lt_export_symbols_cmds
10870
10871 # The commands to extract the exported symbol list from a shared archive.
10872 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10873
10874 # Symbols that should not be listed in the preloaded symbols.
10875 exclude_expsyms=$lt_exclude_expsyms
10876
10877 # Symbols that must always be exported.
10878 include_expsyms=$lt_include_expsyms
10879
10880 # ### END LIBTOOL CONFIG
10881
10882 __EOF__
10883
10884
10885   case $host_os in
10886   aix3*)
10887     cat <<\EOF >> "$cfgfile"
10888
10889 # AIX sometimes has problems with the GCC collect2 program.  For some
10890 # reason, if we set the COLLECT_NAMES environment variable, the problems
10891 # vanish in a puff of smoke.
10892 if test "X${COLLECT_NAMES+set}" != Xset; then
10893   COLLECT_NAMES=
10894   export COLLECT_NAMES
10895 fi
10896 EOF
10897     ;;
10898   esac
10899
10900   # We use sed instead of cat because bash on DJGPP gets confused if
10901   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10902   # text mode, it properly converts lines to CR/LF.  This bash problem
10903   # is reportedly fixed, but why not run on old versions too?
10904   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10905
10906   mv -f "$cfgfile" "$ofile" || \
10907     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10908   chmod +x "$ofile"
10909
10910 else
10911   # If there is no Makefile yet, we rely on a make rule to execute
10912   # `config.status --recheck' to rerun these tests and create the
10913   # libtool script then.
10914   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10915   if test -f "$ltmain_in"; then
10916     test -f Makefile && make "$ltmain"
10917   fi
10918 fi
10919
10920
10921 ac_ext=c
10922 ac_cpp='$CPP $CPPFLAGS'
10923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10926
10927 CC="$lt_save_CC"
10928
10929
10930 # Check whether --with-tags was given.
10931 if test "${with_tags+set}" = set; then
10932   withval=$with_tags; tagnames="$withval"
10933 fi
10934
10935
10936 if test -f "$ltmain" && test -n "$tagnames"; then
10937   if test ! -f "${ofile}"; then
10938     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10939 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10940   fi
10941
10942   if test -z "$LTCC"; then
10943     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10944     if test -z "$LTCC"; then
10945       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10946 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10947     else
10948       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10949 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10950     fi
10951   fi
10952   if test -z "$LTCFLAGS"; then
10953     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10954   fi
10955
10956   # Extract list of available tagged configurations in $ofile.
10957   # Note that this assumes the entire list is on one line.
10958   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10959
10960   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10961   for tagname in $tagnames; do
10962     IFS="$lt_save_ifs"
10963     # Check whether tagname contains only valid characters
10964     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10965     "") ;;
10966     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10967 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10968    { (exit 1); exit 1; }; }
10969         ;;
10970     esac
10971
10972     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10973     then
10974       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10975 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10976    { (exit 1); exit 1; }; }
10977     fi
10978
10979     # Update the list of available tags.
10980     if test -n "$tagname"; then
10981       echo appending configuration tag \"$tagname\" to $ofile
10982
10983       case $tagname in
10984       CXX)
10985         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10986             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10987             (test "X$CXX" != "Xg++"))) ; then
10988           ac_ext=cpp
10989 ac_cpp='$CXXCPP $CPPFLAGS'
10990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10993
10994
10995
10996
10997 archive_cmds_need_lc_CXX=no
10998 allow_undefined_flag_CXX=
10999 always_export_symbols_CXX=no
11000 archive_expsym_cmds_CXX=
11001 export_dynamic_flag_spec_CXX=
11002 hardcode_direct_CXX=no
11003 hardcode_libdir_flag_spec_CXX=
11004 hardcode_libdir_flag_spec_ld_CXX=
11005 hardcode_libdir_separator_CXX=
11006 hardcode_minus_L_CXX=no
11007 hardcode_shlibpath_var_CXX=unsupported
11008 hardcode_automatic_CXX=no
11009 module_cmds_CXX=
11010 module_expsym_cmds_CXX=
11011 link_all_deplibs_CXX=unknown
11012 old_archive_cmds_CXX=$old_archive_cmds
11013 no_undefined_flag_CXX=
11014 whole_archive_flag_spec_CXX=
11015 enable_shared_with_static_runtimes_CXX=no
11016
11017 # Dependencies to place before and after the object being linked:
11018 predep_objects_CXX=
11019 postdep_objects_CXX=
11020 predeps_CXX=
11021 postdeps_CXX=
11022 compiler_lib_search_path_CXX=
11023 compiler_lib_search_dirs_CXX=
11024
11025 # Source file extension for C++ test sources.
11026 ac_ext=cpp
11027
11028 # Object file extension for compiled C++ test sources.
11029 objext=o
11030 objext_CXX=$objext
11031
11032 # Code to be used in simple compile tests
11033 lt_simple_compile_test_code="int some_variable = 0;"
11034
11035 # Code to be used in simple link tests
11036 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11037
11038 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11039
11040 # If no C compiler was specified, use CC.
11041 LTCC=${LTCC-"$CC"}
11042
11043 # If no C compiler flags were specified, use CFLAGS.
11044 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11045
11046 # Allow CC to be a program name with arguments.
11047 compiler=$CC
11048
11049
11050 # save warnings/boilerplate of simple test code
11051 ac_outfile=conftest.$ac_objext
11052 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11053 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11054 _lt_compiler_boilerplate=`cat conftest.err`
11055 $rm conftest*
11056
11057 ac_outfile=conftest.$ac_objext
11058 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11059 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11060 _lt_linker_boilerplate=`cat conftest.err`
11061 $rm -r conftest*
11062
11063
11064 # Allow CC to be a program name with arguments.
11065 lt_save_CC=$CC
11066 lt_save_LD=$LD
11067 lt_save_GCC=$GCC
11068 GCC=$GXX
11069 lt_save_with_gnu_ld=$with_gnu_ld
11070 lt_save_path_LD=$lt_cv_path_LD
11071 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11072   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11073 else
11074   $as_unset lt_cv_prog_gnu_ld
11075 fi
11076 if test -n "${lt_cv_path_LDCXX+set}"; then
11077   lt_cv_path_LD=$lt_cv_path_LDCXX
11078 else
11079   $as_unset lt_cv_path_LD
11080 fi
11081 test -z "${LDCXX+set}" || LD=$LDCXX
11082 CC=${CXX-"c++"}
11083 compiler=$CC
11084 compiler_CXX=$CC
11085 for cc_temp in $compiler""; do
11086   case $cc_temp in
11087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11089     \-*) ;;
11090     *) break;;
11091   esac
11092 done
11093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11094
11095
11096 # We don't want -fno-exception wen compiling C++ code, so set the
11097 # no_builtin_flag separately
11098 if test "$GXX" = yes; then
11099   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11100 else
11101   lt_prog_compiler_no_builtin_flag_CXX=
11102 fi
11103
11104 if test "$GXX" = yes; then
11105   # Set up default GNU C++ configuration
11106
11107
11108 # Check whether --with-gnu-ld was given.
11109 if test "${with_gnu_ld+set}" = set; then
11110   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11111 else
11112   with_gnu_ld=no
11113 fi
11114
11115 ac_prog=ld
11116 if test "$GCC" = yes; then
11117   # Check if gcc -print-prog-name=ld gives a path.
11118   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11119 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11120   case $host in
11121   *-*-mingw*)
11122     # gcc leaves a trailing carriage return which upsets mingw
11123     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11124   *)
11125     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11126   esac
11127   case $ac_prog in
11128     # Accept absolute paths.
11129     [\\/]* | ?:[\\/]*)
11130       re_direlt='/[^/][^/]*/\.\./'
11131       # Canonicalize the pathname of ld
11132       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11133       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11134         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11135       done
11136       test -z "$LD" && LD="$ac_prog"
11137       ;;
11138   "")
11139     # If it fails, then pretend we aren't using GCC.
11140     ac_prog=ld
11141     ;;
11142   *)
11143     # If it is relative, then search for the first ld in PATH.
11144     with_gnu_ld=unknown
11145     ;;
11146   esac
11147 elif test "$with_gnu_ld" = yes; then
11148   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11149 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11150 else
11151   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11152 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11153 fi
11154 if test "${lt_cv_path_LD+set}" = set; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157   if test -z "$LD"; then
11158   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11159   for ac_dir in $PATH; do
11160     IFS="$lt_save_ifs"
11161     test -z "$ac_dir" && ac_dir=.
11162     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11163       lt_cv_path_LD="$ac_dir/$ac_prog"
11164       # Check to see if the program is GNU ld.  I'd rather use --version,
11165       # but apparently some variants of GNU ld only accept -v.
11166       # Break only if it was the GNU/non-GNU ld that we prefer.
11167       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11168       *GNU* | *'with BFD'*)
11169         test "$with_gnu_ld" != no && break
11170         ;;
11171       *)
11172         test "$with_gnu_ld" != yes && break
11173         ;;
11174       esac
11175     fi
11176   done
11177   IFS="$lt_save_ifs"
11178 else
11179   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11180 fi
11181 fi
11182
11183 LD="$lt_cv_path_LD"
11184 if test -n "$LD"; then
11185   { echo "$as_me:$LINENO: result: $LD" >&5
11186 echo "${ECHO_T}$LD" >&6; }
11187 else
11188   { echo "$as_me:$LINENO: result: no" >&5
11189 echo "${ECHO_T}no" >&6; }
11190 fi
11191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11193    { (exit 1); exit 1; }; }
11194 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11197   echo $ECHO_N "(cached) $ECHO_C" >&6
11198 else
11199   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11200 case `$LD -v 2>&1 </dev/null` in
11201 *GNU* | *'with BFD'*)
11202   lt_cv_prog_gnu_ld=yes
11203   ;;
11204 *)
11205   lt_cv_prog_gnu_ld=no
11206   ;;
11207 esac
11208 fi
11209 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11211 with_gnu_ld=$lt_cv_prog_gnu_ld
11212
11213
11214
11215   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11216   # archiving commands below assume that GNU ld is being used.
11217   if test "$with_gnu_ld" = yes; then
11218     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11219     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'
11220
11221     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11222     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11223
11224     # If archive_cmds runs LD, not CC, wlarc should be empty
11225     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11226     #     investigate it a little bit more. (MM)
11227     wlarc='${wl}'
11228
11229     # ancient GNU ld didn't support --whole-archive et. al.
11230     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11231         grep 'no-whole-archive' > /dev/null; then
11232       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11233     else
11234       whole_archive_flag_spec_CXX=
11235     fi
11236   else
11237     with_gnu_ld=no
11238     wlarc=
11239
11240     # A generic and very simple default shared library creation
11241     # command for GNU C++ for the case where it uses the native
11242     # linker, instead of GNU ld.  If possible, this setting should
11243     # overridden to take advantage of the native linker features on
11244     # the platform it is being used on.
11245     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11246   fi
11247
11248   # Commands to make compiler produce verbose output that lists
11249   # what "hidden" libraries, object files and flags are used when
11250   # linking a shared library.
11251   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11252
11253 else
11254   GXX=no
11255   with_gnu_ld=no
11256   wlarc=
11257 fi
11258
11259 # PORTME: fill in a description of your system's C++ link characteristics
11260 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11262 ld_shlibs_CXX=yes
11263 case $host_os in
11264   aix3*)
11265     # FIXME: insert proper C++ library support
11266     ld_shlibs_CXX=no
11267     ;;
11268   aix[4-9]*)
11269     if test "$host_cpu" = ia64; then
11270       # On IA64, the linker does run time linking by default, so we don't
11271       # have to do anything special.
11272       aix_use_runtimelinking=no
11273       exp_sym_flag='-Bexport'
11274       no_entry_flag=""
11275     else
11276       aix_use_runtimelinking=no
11277
11278       # Test if we are trying to use run time linking or normal
11279       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11280       # need to do runtime linking.
11281       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11282         for ld_flag in $LDFLAGS; do
11283           case $ld_flag in
11284           *-brtl*)
11285             aix_use_runtimelinking=yes
11286             break
11287             ;;
11288           esac
11289         done
11290         ;;
11291       esac
11292
11293       exp_sym_flag='-bexport'
11294       no_entry_flag='-bnoentry'
11295     fi
11296
11297     # When large executables or shared objects are built, AIX ld can
11298     # have problems creating the table of contents.  If linking a library
11299     # or program results in "error TOC overflow" add -mminimal-toc to
11300     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11301     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11302
11303     archive_cmds_CXX=''
11304     hardcode_direct_CXX=yes
11305     hardcode_libdir_separator_CXX=':'
11306     link_all_deplibs_CXX=yes
11307
11308     if test "$GXX" = yes; then
11309       case $host_os in aix4.[012]|aix4.[012].*)
11310       # We only want to do this on AIX 4.2 and lower, the check
11311       # below for broken collect2 doesn't work under 4.3+
11312         collect2name=`${CC} -print-prog-name=collect2`
11313         if test -f "$collect2name" && \
11314            strings "$collect2name" | grep resolve_lib_name >/dev/null
11315         then
11316           # We have reworked collect2
11317           :
11318         else
11319           # We have old collect2
11320           hardcode_direct_CXX=unsupported
11321           # It fails to find uninstalled libraries when the uninstalled
11322           # path is not listed in the libpath.  Setting hardcode_minus_L
11323           # to unsupported forces relinking
11324           hardcode_minus_L_CXX=yes
11325           hardcode_libdir_flag_spec_CXX='-L$libdir'
11326           hardcode_libdir_separator_CXX=
11327         fi
11328         ;;
11329       esac
11330       shared_flag='-shared'
11331       if test "$aix_use_runtimelinking" = yes; then
11332         shared_flag="$shared_flag "'${wl}-G'
11333       fi
11334     else
11335       # not using gcc
11336       if test "$host_cpu" = ia64; then
11337         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11338         # chokes on -Wl,-G. The following line is correct:
11339         shared_flag='-G'
11340       else
11341         if test "$aix_use_runtimelinking" = yes; then
11342           shared_flag='${wl}-G'
11343         else
11344           shared_flag='${wl}-bM:SRE'
11345         fi
11346       fi
11347     fi
11348
11349     # It seems that -bexpall does not export symbols beginning with
11350     # underscore (_), so it is better to generate a list of symbols to export.
11351     always_export_symbols_CXX=yes
11352     if test "$aix_use_runtimelinking" = yes; then
11353       # Warning - without using the other runtime loading flags (-brtl),
11354       # -berok will link without error, but may produce a broken library.
11355       allow_undefined_flag_CXX='-berok'
11356       # Determine the default libpath from the value encoded in an empty executable.
11357       cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363
11364 int
11365 main ()
11366 {
11367
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 rm -f conftest.$ac_objext conftest$ac_exeext
11373 if { (ac_try="$ac_link"
11374 case "(($ac_try" in
11375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376   *) ac_try_echo=$ac_try;;
11377 esac
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379   (eval "$ac_link") 2>conftest.er1
11380   ac_status=$?
11381   grep -v '^ *+' conftest.er1 >conftest.err
11382   rm -f conftest.er1
11383   cat conftest.err >&5
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } && {
11386          test -z "$ac_cxx_werror_flag" ||
11387          test ! -s conftest.err
11388        } && test -s conftest$ac_exeext &&
11389        $as_test_x conftest$ac_exeext; then
11390
11391 lt_aix_libpath_sed='
11392     /Import File Strings/,/^$/ {
11393         /^0/ {
11394             s/^0  *\(.*\)$/\1/
11395             p
11396         }
11397     }'
11398 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11399 # Check for a 64-bit object if we didn't find anything.
11400 if test -z "$aix_libpath"; then
11401   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11402 fi
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407
11408 fi
11409
11410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11411       conftest$ac_exeext conftest.$ac_ext
11412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11413
11414       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11415
11416       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"
11417      else
11418       if test "$host_cpu" = ia64; then
11419         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11420         allow_undefined_flag_CXX="-z nodefs"
11421         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"
11422       else
11423         # Determine the default libpath from the value encoded in an empty executable.
11424         cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430
11431 int
11432 main ()
11433 {
11434
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443   *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446   (eval "$ac_link") 2>conftest.er1
11447   ac_status=$?
11448   grep -v '^ *+' conftest.er1 >conftest.err
11449   rm -f conftest.er1
11450   cat conftest.err >&5
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); } && {
11453          test -z "$ac_cxx_werror_flag" ||
11454          test ! -s conftest.err
11455        } && test -s conftest$ac_exeext &&
11456        $as_test_x conftest$ac_exeext; then
11457
11458 lt_aix_libpath_sed='
11459     /Import File Strings/,/^$/ {
11460         /^0/ {
11461             s/^0  *\(.*\)$/\1/
11462             p
11463         }
11464     }'
11465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11466 # Check for a 64-bit object if we didn't find anything.
11467 if test -z "$aix_libpath"; then
11468   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11469 fi
11470 else
11471   echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474
11475 fi
11476
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478       conftest$ac_exeext conftest.$ac_ext
11479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11480
11481         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11482         # Warning - without using the other run time loading flags,
11483         # -berok will link without error, but may produce a broken library.
11484         no_undefined_flag_CXX=' ${wl}-bernotok'
11485         allow_undefined_flag_CXX=' ${wl}-berok'
11486         # Exported symbols can be pulled into shared objects from archives
11487         whole_archive_flag_spec_CXX='$convenience'
11488         archive_cmds_need_lc_CXX=yes
11489         # This is similar to how AIX traditionally builds its shared libraries.
11490         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'
11491       fi
11492     fi
11493     ;;
11494
11495   beos*)
11496     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11497       allow_undefined_flag_CXX=unsupported
11498       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11499       # support --undefined.  This deserves some investigation.  FIXME
11500       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501     else
11502       ld_shlibs_CXX=no
11503     fi
11504     ;;
11505
11506   chorus*)
11507     case $cc_basename in
11508       *)
11509         # FIXME: insert proper C++ library support
11510         ld_shlibs_CXX=no
11511         ;;
11512     esac
11513     ;;
11514
11515   cygwin* | mingw* | pw32*)
11516     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11517     # as there is no search path for DLLs.
11518     hardcode_libdir_flag_spec_CXX='-L$libdir'
11519     allow_undefined_flag_CXX=unsupported
11520     always_export_symbols_CXX=no
11521     enable_shared_with_static_runtimes_CXX=yes
11522
11523     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11524       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'
11525       # If the export-symbols file already is a .def file (1st line
11526       # is EXPORTS), use it as is; otherwise, prepend...
11527       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11528         cp $export_symbols $output_objdir/$soname.def;
11529       else
11530         echo EXPORTS > $output_objdir/$soname.def;
11531         cat $export_symbols >> $output_objdir/$soname.def;
11532       fi~
11533       $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'
11534     else
11535       ld_shlibs_CXX=no
11536     fi
11537   ;;
11538       darwin* | rhapsody*)
11539       archive_cmds_need_lc_CXX=no
11540       hardcode_direct_CXX=no
11541       hardcode_automatic_CXX=yes
11542       hardcode_shlibpath_var_CXX=unsupported
11543       whole_archive_flag_spec_CXX=''
11544       link_all_deplibs_CXX=yes
11545       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11546       if test "$GXX" = yes ; then
11547       output_verbose_link_cmd='echo'
11548       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}"
11549       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11550       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}"
11551       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}"
11552       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11553         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}"
11554         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}"
11555       fi
11556       else
11557       case $cc_basename in
11558         xlc*)
11559          output_verbose_link_cmd='echo'
11560           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'
11561           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11562           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11563           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}'
11564           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}'
11565           ;;
11566        *)
11567          ld_shlibs_CXX=no
11568           ;;
11569       esac
11570       fi
11571         ;;
11572
11573   dgux*)
11574     case $cc_basename in
11575       ec++*)
11576         # FIXME: insert proper C++ library support
11577         ld_shlibs_CXX=no
11578         ;;
11579       ghcx*)
11580         # Green Hills C++ Compiler
11581         # FIXME: insert proper C++ library support
11582         ld_shlibs_CXX=no
11583         ;;
11584       *)
11585         # FIXME: insert proper C++ library support
11586         ld_shlibs_CXX=no
11587         ;;
11588     esac
11589     ;;
11590   freebsd[12]*)
11591     # C++ shared libraries reported to be fairly broken before switch to ELF
11592     ld_shlibs_CXX=no
11593     ;;
11594   freebsd-elf*)
11595     archive_cmds_need_lc_CXX=no
11596     ;;
11597   freebsd* | dragonfly*)
11598     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11599     # conventions
11600     ld_shlibs_CXX=yes
11601     ;;
11602   gnu*)
11603     ;;
11604   hpux9*)
11605     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11606     hardcode_libdir_separator_CXX=:
11607     export_dynamic_flag_spec_CXX='${wl}-E'
11608     hardcode_direct_CXX=yes
11609     hardcode_minus_L_CXX=yes # Not in the search PATH,
11610                                 # but as the default
11611                                 # location of the library.
11612
11613     case $cc_basename in
11614     CC*)
11615       # FIXME: insert proper C++ library support
11616       ld_shlibs_CXX=no
11617       ;;
11618     aCC*)
11619       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'
11620       # Commands to make compiler produce verbose output that lists
11621       # what "hidden" libraries, object files and flags are used when
11622       # linking a shared library.
11623       #
11624       # There doesn't appear to be a way to prevent this compiler from
11625       # explicitly linking system object files so we need to strip them
11626       # from the output so that they don't get included in the library
11627       # dependencies.
11628       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'
11629       ;;
11630     *)
11631       if test "$GXX" = yes; then
11632         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'
11633       else
11634         # FIXME: insert proper C++ library support
11635         ld_shlibs_CXX=no
11636       fi
11637       ;;
11638     esac
11639     ;;
11640   hpux10*|hpux11*)
11641     if test $with_gnu_ld = no; then
11642       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11643       hardcode_libdir_separator_CXX=:
11644
11645       case $host_cpu in
11646       hppa*64*|ia64*) ;;
11647       *)
11648         export_dynamic_flag_spec_CXX='${wl}-E'
11649         ;;
11650       esac
11651     fi
11652     case $host_cpu in
11653     hppa*64*|ia64*)
11654       hardcode_direct_CXX=no
11655       hardcode_shlibpath_var_CXX=no
11656       ;;
11657     *)
11658       hardcode_direct_CXX=yes
11659       hardcode_minus_L_CXX=yes # Not in the search PATH,
11660                                               # but as the default
11661                                               # location of the library.
11662       ;;
11663     esac
11664
11665     case $cc_basename in
11666       CC*)
11667         # FIXME: insert proper C++ library support
11668         ld_shlibs_CXX=no
11669         ;;
11670       aCC*)
11671         case $host_cpu in
11672         hppa*64*)
11673           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11674           ;;
11675         ia64*)
11676           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11677           ;;
11678         *)
11679           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11680           ;;
11681         esac
11682         # Commands to make compiler produce verbose output that lists
11683         # what "hidden" libraries, object files and flags are used when
11684         # linking a shared library.
11685         #
11686         # There doesn't appear to be a way to prevent this compiler from
11687         # explicitly linking system object files so we need to strip them
11688         # from the output so that they don't get included in the library
11689         # dependencies.
11690         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'
11691         ;;
11692       *)
11693         if test "$GXX" = yes; then
11694           if test $with_gnu_ld = no; then
11695             case $host_cpu in
11696             hppa*64*)
11697               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11698               ;;
11699             ia64*)
11700               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11701               ;;
11702             *)
11703               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'
11704               ;;
11705             esac
11706           fi
11707         else
11708           # FIXME: insert proper C++ library support
11709           ld_shlibs_CXX=no
11710         fi
11711         ;;
11712     esac
11713     ;;
11714   interix[3-9]*)
11715     hardcode_direct_CXX=no
11716     hardcode_shlibpath_var_CXX=no
11717     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11718     export_dynamic_flag_spec_CXX='${wl}-E'
11719     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11720     # Instead, shared libraries are loaded at an image base (0x10000000 by
11721     # default) and relocated if they conflict, which is a slow very memory
11722     # consuming and fragmenting process.  To avoid this, we pick a random,
11723     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11724     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11725     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'
11726     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'
11727     ;;
11728   irix5* | irix6*)
11729     case $cc_basename in
11730       CC*)
11731         # SGI C++
11732         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'
11733
11734         # Archives containing C++ object files must be created using
11735         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11736         # necessary to make sure instantiated templates are included
11737         # in the archive.
11738         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11739         ;;
11740       *)
11741         if test "$GXX" = yes; then
11742           if test "$with_gnu_ld" = no; then
11743             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'
11744           else
11745             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'
11746           fi
11747         fi
11748         link_all_deplibs_CXX=yes
11749         ;;
11750     esac
11751     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11752     hardcode_libdir_separator_CXX=:
11753     ;;
11754   linux* | k*bsd*-gnu)
11755     case $cc_basename in
11756       KCC*)
11757         # Kuck and Associates, Inc. (KAI) C++ Compiler
11758
11759         # KCC will only create a shared library if the output file
11760         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11761         # to its proper name (with version) after linking.
11762         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'
11763         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'
11764         # Commands to make compiler produce verbose output that lists
11765         # what "hidden" libraries, object files and flags are used when
11766         # linking a shared library.
11767         #
11768         # There doesn't appear to be a way to prevent this compiler from
11769         # explicitly linking system object files so we need to strip them
11770         # from the output so that they don't get included in the library
11771         # dependencies.
11772         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'
11773
11774         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11775         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11776
11777         # Archives containing C++ object files must be created using
11778         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11779         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11780         ;;
11781       icpc*)
11782         # Intel C++
11783         with_gnu_ld=yes
11784         # version 8.0 and above of icpc choke on multiply defined symbols
11785         # if we add $predep_objects and $postdep_objects, however 7.1 and
11786         # earlier do not add the objects themselves.
11787         case `$CC -V 2>&1` in
11788         *"Version 7."*)
11789           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11790           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'
11791           ;;
11792         *)  # Version 8.0 or newer
11793           tmp_idyn=
11794           case $host_cpu in
11795             ia64*) tmp_idyn=' -i_dynamic';;
11796           esac
11797           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11798           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'
11799           ;;
11800         esac
11801         archive_cmds_need_lc_CXX=no
11802         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11803         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11804         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11805         ;;
11806       pgCC* | pgcpp*)
11807         # Portland Group C++ compiler
11808         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11809         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'
11810
11811         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11812         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11813         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'
11814         ;;
11815       cxx*)
11816         # Compaq C++
11817         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818         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'
11819
11820         runpath_var=LD_RUN_PATH
11821         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11822         hardcode_libdir_separator_CXX=:
11823
11824         # Commands to make compiler produce verbose output that lists
11825         # what "hidden" libraries, object files and flags are used when
11826         # linking a shared library.
11827         #
11828         # There doesn't appear to be a way to prevent this compiler from
11829         # explicitly linking system object files so we need to strip them
11830         # from the output so that they don't get included in the library
11831         # dependencies.
11832         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'
11833         ;;
11834       *)
11835         case `$CC -V 2>&1 | sed 5q` in
11836         *Sun\ C*)
11837           # Sun C++ 5.9
11838           no_undefined_flag_CXX=' -zdefs'
11839           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11840           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'
11841           hardcode_libdir_flag_spec_CXX='-R$libdir'
11842           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'
11843
11844           # Not sure whether something based on
11845           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11846           # would be better.
11847           output_verbose_link_cmd='echo'
11848
11849           # Archives containing C++ object files must be created using
11850           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11851           # necessary to make sure instantiated templates are included
11852           # in the archive.
11853           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11854           ;;
11855         esac
11856         ;;
11857     esac
11858     ;;
11859   lynxos*)
11860     # FIXME: insert proper C++ library support
11861     ld_shlibs_CXX=no
11862     ;;
11863   m88k*)
11864     # FIXME: insert proper C++ library support
11865     ld_shlibs_CXX=no
11866     ;;
11867   mvs*)
11868     case $cc_basename in
11869       cxx*)
11870         # FIXME: insert proper C++ library support
11871         ld_shlibs_CXX=no
11872         ;;
11873       *)
11874         # FIXME: insert proper C++ library support
11875         ld_shlibs_CXX=no
11876         ;;
11877     esac
11878     ;;
11879   netbsd* | netbsdelf*-gnu)
11880     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11881       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11882       wlarc=
11883       hardcode_libdir_flag_spec_CXX='-R$libdir'
11884       hardcode_direct_CXX=yes
11885       hardcode_shlibpath_var_CXX=no
11886     fi
11887     # Workaround some broken pre-1.5 toolchains
11888     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11889     ;;
11890   openbsd2*)
11891     # C++ shared libraries are fairly broken
11892     ld_shlibs_CXX=no
11893     ;;
11894   openbsd*)
11895     if test -f /usr/libexec/ld.so; then
11896       hardcode_direct_CXX=yes
11897       hardcode_shlibpath_var_CXX=no
11898       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11899       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11900       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11901         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11902         export_dynamic_flag_spec_CXX='${wl}-E'
11903         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11904       fi
11905       output_verbose_link_cmd='echo'
11906     else
11907       ld_shlibs_CXX=no
11908     fi
11909     ;;
11910   osf3*)
11911     case $cc_basename in
11912       KCC*)
11913         # Kuck and Associates, Inc. (KAI) C++ Compiler
11914
11915         # KCC will only create a shared library if the output file
11916         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11917         # to its proper name (with version) after linking.
11918         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'
11919
11920         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11921         hardcode_libdir_separator_CXX=:
11922
11923         # Archives containing C++ object files must be created using
11924         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11925         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11926
11927         ;;
11928       RCC*)
11929         # Rational C++ 2.4.1
11930         # FIXME: insert proper C++ library support
11931         ld_shlibs_CXX=no
11932         ;;
11933       cxx*)
11934         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11935         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'
11936
11937         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11938         hardcode_libdir_separator_CXX=:
11939
11940         # Commands to make compiler produce verbose output that lists
11941         # what "hidden" libraries, object files and flags are used when
11942         # linking a shared library.
11943         #
11944         # There doesn't appear to be a way to prevent this compiler from
11945         # explicitly linking system object files so we need to strip them
11946         # from the output so that they don't get included in the library
11947         # dependencies.
11948         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'
11949         ;;
11950       *)
11951         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11952           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11953           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'
11954
11955           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11956           hardcode_libdir_separator_CXX=:
11957
11958           # Commands to make compiler produce verbose output that lists
11959           # what "hidden" libraries, object files and flags are used when
11960           # linking a shared library.
11961           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11962
11963         else
11964           # FIXME: insert proper C++ library support
11965           ld_shlibs_CXX=no
11966         fi
11967         ;;
11968     esac
11969     ;;
11970   osf4* | osf5*)
11971     case $cc_basename in
11972       KCC*)
11973         # Kuck and Associates, Inc. (KAI) C++ Compiler
11974
11975         # KCC will only create a shared library if the output file
11976         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11977         # to its proper name (with version) after linking.
11978         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'
11979
11980         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11981         hardcode_libdir_separator_CXX=:
11982
11983         # Archives containing C++ object files must be created using
11984         # the KAI C++ compiler.
11985         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11986         ;;
11987       RCC*)
11988         # Rational C++ 2.4.1
11989         # FIXME: insert proper C++ library support
11990         ld_shlibs_CXX=no
11991         ;;
11992       cxx*)
11993         allow_undefined_flag_CXX=' -expect_unresolved \*'
11994         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'
11995         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11996           echo "-hidden">> $lib.exp~
11997           $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~
11998           $rm $lib.exp'
11999
12000         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12001         hardcode_libdir_separator_CXX=:
12002
12003         # Commands to make compiler produce verbose output that lists
12004         # what "hidden" libraries, object files and flags are used when
12005         # linking a shared library.
12006         #
12007         # There doesn't appear to be a way to prevent this compiler from
12008         # explicitly linking system object files so we need to strip them
12009         # from the output so that they don't get included in the library
12010         # dependencies.
12011         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'
12012         ;;
12013       *)
12014         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12015           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12016          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'
12017
12018           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12019           hardcode_libdir_separator_CXX=:
12020
12021           # Commands to make compiler produce verbose output that lists
12022           # what "hidden" libraries, object files and flags are used when
12023           # linking a shared library.
12024           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12025
12026         else
12027           # FIXME: insert proper C++ library support
12028           ld_shlibs_CXX=no
12029         fi
12030         ;;
12031     esac
12032     ;;
12033   psos*)
12034     # FIXME: insert proper C++ library support
12035     ld_shlibs_CXX=no
12036     ;;
12037   sunos4*)
12038     case $cc_basename in
12039       CC*)
12040         # Sun C++ 4.x
12041         # FIXME: insert proper C++ library support
12042         ld_shlibs_CXX=no
12043         ;;
12044       lcc*)
12045         # Lucid
12046         # FIXME: insert proper C++ library support
12047         ld_shlibs_CXX=no
12048         ;;
12049       *)
12050         # FIXME: insert proper C++ library support
12051         ld_shlibs_CXX=no
12052         ;;
12053     esac
12054     ;;
12055   solaris*)
12056     case $cc_basename in
12057       CC*)
12058         # Sun C++ 4.2, 5.x and Centerline C++
12059         archive_cmds_need_lc_CXX=yes
12060         no_undefined_flag_CXX=' -zdefs'
12061         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12062         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12063         $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'
12064
12065         hardcode_libdir_flag_spec_CXX='-R$libdir'
12066         hardcode_shlibpath_var_CXX=no
12067         case $host_os in
12068           solaris2.[0-5] | solaris2.[0-5].*) ;;
12069           *)
12070             # The compiler driver will combine and reorder linker options,
12071             # but understands `-z linker_flag'.
12072             # Supported since Solaris 2.6 (maybe 2.5.1?)
12073             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12074             ;;
12075         esac
12076         link_all_deplibs_CXX=yes
12077
12078         output_verbose_link_cmd='echo'
12079
12080         # Archives containing C++ object files must be created using
12081         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12082         # necessary to make sure instantiated templates are included
12083         # in the archive.
12084         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12085         ;;
12086       gcx*)
12087         # Green Hills C++ Compiler
12088         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12089
12090         # The C++ compiler must be used to create the archive.
12091         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12092         ;;
12093       *)
12094         # GNU C++ compiler with Solaris linker
12095         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12096           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12097           if $CC --version | grep -v '^2\.7' > /dev/null; then
12098             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12099             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12100                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12101
12102             # Commands to make compiler produce verbose output that lists
12103             # what "hidden" libraries, object files and flags are used when
12104             # linking a shared library.
12105             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12106           else
12107             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12108             # platform.
12109             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12110             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12111                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12112
12113             # Commands to make compiler produce verbose output that lists
12114             # what "hidden" libraries, object files and flags are used when
12115             # linking a shared library.
12116             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12117           fi
12118
12119           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12120           case $host_os in
12121           solaris2.[0-5] | solaris2.[0-5].*) ;;
12122           *)
12123             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12124             ;;
12125           esac
12126         fi
12127         ;;
12128     esac
12129     ;;
12130   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12131     no_undefined_flag_CXX='${wl}-z,text'
12132     archive_cmds_need_lc_CXX=no
12133     hardcode_shlibpath_var_CXX=no
12134     runpath_var='LD_RUN_PATH'
12135
12136     case $cc_basename in
12137       CC*)
12138         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12140         ;;
12141       *)
12142         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144         ;;
12145     esac
12146     ;;
12147   sysv5* | sco3.2v5* | sco5v6*)
12148     # Note: We can NOT use -z defs as we might desire, because we do not
12149     # link with -lc, and that would cause any symbols used from libc to
12150     # always be unresolved, which means just about no library would
12151     # ever link correctly.  If we're not using GNU ld we use -z text
12152     # though, which does catch some bad symbols but isn't as heavy-handed
12153     # as -z defs.
12154     # For security reasons, it is highly recommended that you always
12155     # use absolute paths for naming shared libraries, and exclude the
12156     # DT_RUNPATH tag from executables and libraries.  But doing so
12157     # requires that you compile everything twice, which is a pain.
12158     # So that behaviour is only enabled if SCOABSPATH is set to a
12159     # non-empty value in the environment.  Most likely only useful for
12160     # creating official distributions of packages.
12161     # This is a hack until libtool officially supports absolute path
12162     # names for shared libraries.
12163     no_undefined_flag_CXX='${wl}-z,text'
12164     allow_undefined_flag_CXX='${wl}-z,nodefs'
12165     archive_cmds_need_lc_CXX=no
12166     hardcode_shlibpath_var_CXX=no
12167     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12168     hardcode_libdir_separator_CXX=':'
12169     link_all_deplibs_CXX=yes
12170     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12171     runpath_var='LD_RUN_PATH'
12172
12173     case $cc_basename in
12174       CC*)
12175         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12176         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12177         ;;
12178       *)
12179         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12180         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12181         ;;
12182     esac
12183     ;;
12184   tandem*)
12185     case $cc_basename in
12186       NCC*)
12187         # NonStop-UX NCC 3.20
12188         # FIXME: insert proper C++ library support
12189         ld_shlibs_CXX=no
12190         ;;
12191       *)
12192         # FIXME: insert proper C++ library support
12193         ld_shlibs_CXX=no
12194         ;;
12195     esac
12196     ;;
12197   vxworks*)
12198     # FIXME: insert proper C++ library support
12199     ld_shlibs_CXX=no
12200     ;;
12201   *)
12202     # FIXME: insert proper C++ library support
12203     ld_shlibs_CXX=no
12204     ;;
12205 esac
12206 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12207 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12208 test "$ld_shlibs_CXX" = no && can_build_shared=no
12209
12210 GCC_CXX="$GXX"
12211 LD_CXX="$LD"
12212
12213 cat > conftest.$ac_ext <<EOF
12214 class Foo
12215 {
12216 public:
12217   Foo (void) { a = 0; }
12218 private:
12219   int a;
12220 };
12221 EOF
12222
12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224   (eval $ac_compile) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; then
12228   # Parse the compiler output and extract the necessary
12229   # objects, libraries and library flags.
12230
12231   # Sentinel used to keep track of whether or not we are before
12232   # the conftest object file.
12233   pre_test_object_deps_done=no
12234
12235   # The `*' in the case matches for architectures that use `case' in
12236   # $output_verbose_cmd can trigger glob expansion during the loop
12237   # eval without this substitution.
12238   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12239
12240   for p in `eval $output_verbose_link_cmd`; do
12241     case $p in
12242
12243     -L* | -R* | -l*)
12244        # Some compilers place space between "-{L,R}" and the path.
12245        # Remove the space.
12246        if test $p = "-L" \
12247           || test $p = "-R"; then
12248          prev=$p
12249          continue
12250        else
12251          prev=
12252        fi
12253
12254        if test "$pre_test_object_deps_done" = no; then
12255          case $p in
12256          -L* | -R*)
12257            # Internal compiler library paths should come after those
12258            # provided the user.  The postdeps already come after the
12259            # user supplied libs so there is no need to process them.
12260            if test -z "$compiler_lib_search_path_CXX"; then
12261              compiler_lib_search_path_CXX="${prev}${p}"
12262            else
12263              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12264            fi
12265            ;;
12266          # The "-l" case would never come before the object being
12267          # linked, so don't bother handling this case.
12268          esac
12269        else
12270          if test -z "$postdeps_CXX"; then
12271            postdeps_CXX="${prev}${p}"
12272          else
12273            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12274          fi
12275        fi
12276        ;;
12277
12278     *.$objext)
12279        # This assumes that the test object file only shows up
12280        # once in the compiler output.
12281        if test "$p" = "conftest.$objext"; then
12282          pre_test_object_deps_done=yes
12283          continue
12284        fi
12285
12286        if test "$pre_test_object_deps_done" = no; then
12287          if test -z "$predep_objects_CXX"; then
12288            predep_objects_CXX="$p"
12289          else
12290            predep_objects_CXX="$predep_objects_CXX $p"
12291          fi
12292        else
12293          if test -z "$postdep_objects_CXX"; then
12294            postdep_objects_CXX="$p"
12295          else
12296            postdep_objects_CXX="$postdep_objects_CXX $p"
12297          fi
12298        fi
12299        ;;
12300
12301     *) ;; # Ignore the rest.
12302
12303     esac
12304   done
12305
12306   # Clean up.
12307   rm -f a.out a.exe
12308 else
12309   echo "libtool.m4: error: problem compiling CXX test program"
12310 fi
12311
12312 $rm -f confest.$objext
12313
12314 compiler_lib_search_dirs_CXX=
12315 if test -n "$compiler_lib_search_path_CXX"; then
12316   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12317 fi
12318
12319 # PORTME: override above test on systems where it is broken
12320 case $host_os in
12321 interix[3-9]*)
12322   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12323   # hack all around it, let's just trust "g++" to DTRT.
12324   predep_objects_CXX=
12325   postdep_objects_CXX=
12326   postdeps_CXX=
12327   ;;
12328
12329 linux*)
12330   case `$CC -V 2>&1 | sed 5q` in
12331   *Sun\ C*)
12332     # Sun C++ 5.9
12333     #
12334     # The more standards-conforming stlport4 library is
12335     # incompatible with the Cstd library. Avoid specifying
12336     # it if it's in CXXFLAGS. Ignore libCrun as
12337     # -library=stlport4 depends on it.
12338     case " $CXX $CXXFLAGS " in
12339     *" -library=stlport4 "*)
12340       solaris_use_stlport4=yes
12341       ;;
12342     esac
12343     if test "$solaris_use_stlport4" != yes; then
12344       postdeps_CXX='-library=Cstd -library=Crun'
12345     fi
12346     ;;
12347   esac
12348   ;;
12349
12350 solaris*)
12351   case $cc_basename in
12352   CC*)
12353     # The more standards-conforming stlport4 library is
12354     # incompatible with the Cstd library. Avoid specifying
12355     # it if it's in CXXFLAGS. Ignore libCrun as
12356     # -library=stlport4 depends on it.
12357     case " $CXX $CXXFLAGS " in
12358     *" -library=stlport4 "*)
12359       solaris_use_stlport4=yes
12360       ;;
12361     esac
12362
12363     # Adding this requires a known-good setup of shared libraries for
12364     # Sun compiler versions before 5.6, else PIC objects from an old
12365     # archive will be linked into the output, leading to subtle bugs.
12366     if test "$solaris_use_stlport4" != yes; then
12367       postdeps_CXX='-library=Cstd -library=Crun'
12368     fi
12369     ;;
12370   esac
12371   ;;
12372 esac
12373
12374 case " $postdeps_CXX " in
12375 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12376 esac
12377
12378 lt_prog_compiler_wl_CXX=
12379 lt_prog_compiler_pic_CXX=
12380 lt_prog_compiler_static_CXX=
12381
12382 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12383 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12384
12385   # C++ specific cases for pic, static, wl, etc.
12386   if test "$GXX" = yes; then
12387     lt_prog_compiler_wl_CXX='-Wl,'
12388     lt_prog_compiler_static_CXX='-static'
12389
12390     case $host_os in
12391     aix*)
12392       # All AIX code is PIC.
12393       if test "$host_cpu" = ia64; then
12394         # AIX 5 now supports IA64 processor
12395         lt_prog_compiler_static_CXX='-Bstatic'
12396       fi
12397       ;;
12398     amigaos*)
12399       # FIXME: we need at least 68020 code to build shared libraries, but
12400       # adding the `-m68020' flag to GCC prevents building anything better,
12401       # like `-m68040'.
12402       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12403       ;;
12404     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12405       # PIC is the default for these OSes.
12406       ;;
12407     mingw* | cygwin* | os2* | pw32*)
12408       # This hack is so that the source file can tell whether it is being
12409       # built for inclusion in a dll (and should export symbols for example).
12410       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12411       # (--disable-auto-import) libraries
12412       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12413       ;;
12414     darwin* | rhapsody*)
12415       # PIC is the default on this platform
12416       # Common symbols not allowed in MH_DYLIB files
12417       lt_prog_compiler_pic_CXX='-fno-common'
12418       ;;
12419     *djgpp*)
12420       # DJGPP does not support shared libraries at all
12421       lt_prog_compiler_pic_CXX=
12422       ;;
12423     interix[3-9]*)
12424       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12425       # Instead, we relocate shared libraries at runtime.
12426       ;;
12427     sysv4*MP*)
12428       if test -d /usr/nec; then
12429         lt_prog_compiler_pic_CXX=-Kconform_pic
12430       fi
12431       ;;
12432     hpux*)
12433       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12434       # not for PA HP-UX.
12435       case $host_cpu in
12436       hppa*64*|ia64*)
12437         ;;
12438       *)
12439         lt_prog_compiler_pic_CXX='-fPIC'
12440         ;;
12441       esac
12442       ;;
12443     *)
12444       lt_prog_compiler_pic_CXX='-fPIC'
12445       ;;
12446     esac
12447   else
12448     case $host_os in
12449       aix[4-9]*)
12450         # All AIX code is PIC.
12451         if test "$host_cpu" = ia64; then
12452           # AIX 5 now supports IA64 processor
12453           lt_prog_compiler_static_CXX='-Bstatic'
12454         else
12455           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12456         fi
12457         ;;
12458       chorus*)
12459         case $cc_basename in
12460         cxch68*)
12461           # Green Hills C++ Compiler
12462           # _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"
12463           ;;
12464         esac
12465         ;;
12466        darwin*)
12467          # PIC is the default on this platform
12468          # Common symbols not allowed in MH_DYLIB files
12469          case $cc_basename in
12470            xlc*)
12471            lt_prog_compiler_pic_CXX='-qnocommon'
12472            lt_prog_compiler_wl_CXX='-Wl,'
12473            ;;
12474          esac
12475        ;;
12476       dgux*)
12477         case $cc_basename in
12478           ec++*)
12479             lt_prog_compiler_pic_CXX='-KPIC'
12480             ;;
12481           ghcx*)
12482             # Green Hills C++ Compiler
12483             lt_prog_compiler_pic_CXX='-pic'
12484             ;;
12485           *)
12486             ;;
12487         esac
12488         ;;
12489       freebsd* | dragonfly*)
12490         # FreeBSD uses GNU C++
12491         ;;
12492       hpux9* | hpux10* | hpux11*)
12493         case $cc_basename in
12494           CC*)
12495             lt_prog_compiler_wl_CXX='-Wl,'
12496             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12497             if test "$host_cpu" != ia64; then
12498               lt_prog_compiler_pic_CXX='+Z'
12499             fi
12500             ;;
12501           aCC*)
12502             lt_prog_compiler_wl_CXX='-Wl,'
12503             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12504             case $host_cpu in
12505             hppa*64*|ia64*)
12506               # +Z the default
12507               ;;
12508             *)
12509               lt_prog_compiler_pic_CXX='+Z'
12510               ;;
12511             esac
12512             ;;
12513           *)
12514             ;;
12515         esac
12516         ;;
12517       interix*)
12518         # This is c89, which is MS Visual C++ (no shared libs)
12519         # Anyone wants to do a port?
12520         ;;
12521       irix5* | irix6* | nonstopux*)
12522         case $cc_basename in
12523           CC*)
12524             lt_prog_compiler_wl_CXX='-Wl,'
12525             lt_prog_compiler_static_CXX='-non_shared'
12526             # CC pic flag -KPIC is the default.
12527             ;;
12528           *)
12529             ;;
12530         esac
12531         ;;
12532       linux* | k*bsd*-gnu)
12533         case $cc_basename in
12534           KCC*)
12535             # KAI C++ Compiler
12536             lt_prog_compiler_wl_CXX='--backend -Wl,'
12537             lt_prog_compiler_pic_CXX='-fPIC'
12538             ;;
12539           icpc* | ecpc*)
12540             # Intel C++
12541             lt_prog_compiler_wl_CXX='-Wl,'
12542             lt_prog_compiler_pic_CXX='-KPIC'
12543             lt_prog_compiler_static_CXX='-static'
12544             ;;
12545           pgCC* | pgcpp*)
12546             # Portland Group C++ compiler.
12547             lt_prog_compiler_wl_CXX='-Wl,'
12548             lt_prog_compiler_pic_CXX='-fpic'
12549             lt_prog_compiler_static_CXX='-Bstatic'
12550             ;;
12551           cxx*)
12552             # Compaq C++
12553             # Make sure the PIC flag is empty.  It appears that all Alpha
12554             # Linux and Compaq Tru64 Unix objects are PIC.
12555             lt_prog_compiler_pic_CXX=
12556             lt_prog_compiler_static_CXX='-non_shared'
12557             ;;
12558           *)
12559             case `$CC -V 2>&1 | sed 5q` in
12560             *Sun\ C*)
12561               # Sun C++ 5.9
12562               lt_prog_compiler_pic_CXX='-KPIC'
12563               lt_prog_compiler_static_CXX='-Bstatic'
12564               lt_prog_compiler_wl_CXX='-Qoption ld '
12565               ;;
12566             esac
12567             ;;
12568         esac
12569         ;;
12570       lynxos*)
12571         ;;
12572       m88k*)
12573         ;;
12574       mvs*)
12575         case $cc_basename in
12576           cxx*)
12577             lt_prog_compiler_pic_CXX='-W c,exportall'
12578             ;;
12579           *)
12580             ;;
12581         esac
12582         ;;
12583       netbsd* | netbsdelf*-gnu)
12584         ;;
12585       osf3* | osf4* | osf5*)
12586         case $cc_basename in
12587           KCC*)
12588             lt_prog_compiler_wl_CXX='--backend -Wl,'
12589             ;;
12590           RCC*)
12591             # Rational C++ 2.4.1
12592             lt_prog_compiler_pic_CXX='-pic'
12593             ;;
12594           cxx*)
12595             # Digital/Compaq C++
12596             lt_prog_compiler_wl_CXX='-Wl,'
12597             # Make sure the PIC flag is empty.  It appears that all Alpha
12598             # Linux and Compaq Tru64 Unix objects are PIC.
12599             lt_prog_compiler_pic_CXX=
12600             lt_prog_compiler_static_CXX='-non_shared'
12601             ;;
12602           *)
12603             ;;
12604         esac
12605         ;;
12606       psos*)
12607         ;;
12608       solaris*)
12609         case $cc_basename in
12610           CC*)
12611             # Sun C++ 4.2, 5.x and Centerline C++
12612             lt_prog_compiler_pic_CXX='-KPIC'
12613             lt_prog_compiler_static_CXX='-Bstatic'
12614             lt_prog_compiler_wl_CXX='-Qoption ld '
12615             ;;
12616           gcx*)
12617             # Green Hills C++ Compiler
12618             lt_prog_compiler_pic_CXX='-PIC'
12619             ;;
12620           *)
12621             ;;
12622         esac
12623         ;;
12624       sunos4*)
12625         case $cc_basename in
12626           CC*)
12627             # Sun C++ 4.x
12628             lt_prog_compiler_pic_CXX='-pic'
12629             lt_prog_compiler_static_CXX='-Bstatic'
12630             ;;
12631           lcc*)
12632             # Lucid
12633             lt_prog_compiler_pic_CXX='-pic'
12634             ;;
12635           *)
12636             ;;
12637         esac
12638         ;;
12639       tandem*)
12640         case $cc_basename in
12641           NCC*)
12642             # NonStop-UX NCC 3.20
12643             lt_prog_compiler_pic_CXX='-KPIC'
12644             ;;
12645           *)
12646             ;;
12647         esac
12648         ;;
12649       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12650         case $cc_basename in
12651           CC*)
12652             lt_prog_compiler_wl_CXX='-Wl,'
12653             lt_prog_compiler_pic_CXX='-KPIC'
12654             lt_prog_compiler_static_CXX='-Bstatic'
12655             ;;
12656         esac
12657         ;;
12658       vxworks*)
12659         ;;
12660       *)
12661         lt_prog_compiler_can_build_shared_CXX=no
12662         ;;
12663     esac
12664   fi
12665
12666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12667 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12668
12669 #
12670 # Check to make sure the PIC flag actually works.
12671 #
12672 if test -n "$lt_prog_compiler_pic_CXX"; then
12673
12674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12676 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12677   echo $ECHO_N "(cached) $ECHO_C" >&6
12678 else
12679   lt_cv_prog_compiler_pic_works_CXX=no
12680   ac_outfile=conftest.$ac_objext
12681    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12682    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12683    # Insert the option either (1) after the last *FLAGS variable, or
12684    # (2) before a word containing "conftest.", or (3) at the end.
12685    # Note that $ac_compile itself does not contain backslashes and begins
12686    # with a dollar sign (not a hyphen), so the echo should work correctly.
12687    # The option is referenced via a variable to avoid confusing sed.
12688    lt_compile=`echo "$ac_compile" | $SED \
12689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12691    -e 's:$: $lt_compiler_flag:'`
12692    (eval echo "\"\$as_me:12692: $lt_compile\"" >&5)
12693    (eval "$lt_compile" 2>conftest.err)
12694    ac_status=$?
12695    cat conftest.err >&5
12696    echo "$as_me:12696: \$? = $ac_status" >&5
12697    if (exit $ac_status) && test -s "$ac_outfile"; then
12698      # The compiler can only warn and ignore the option if not recognized
12699      # So say no if there are warnings other than the usual output.
12700      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12703        lt_cv_prog_compiler_pic_works_CXX=yes
12704      fi
12705    fi
12706    $rm conftest*
12707
12708 fi
12709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12710 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12711
12712 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12713     case $lt_prog_compiler_pic_CXX in
12714      "" | " "*) ;;
12715      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12716      esac
12717 else
12718     lt_prog_compiler_pic_CXX=
12719      lt_prog_compiler_can_build_shared_CXX=no
12720 fi
12721
12722 fi
12723 case $host_os in
12724   # For platforms which do not support PIC, -DPIC is meaningless:
12725   *djgpp*)
12726     lt_prog_compiler_pic_CXX=
12727     ;;
12728   *)
12729     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12730     ;;
12731 esac
12732
12733 #
12734 # Check to make sure the static flag actually works.
12735 #
12736 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12737 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12738 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12739 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12740   echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742   lt_cv_prog_compiler_static_works_CXX=no
12743    save_LDFLAGS="$LDFLAGS"
12744    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12745    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12746    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12747      # The linker can only warn and ignore the option if not recognized
12748      # So say no if there are warnings
12749      if test -s conftest.err; then
12750        # Append any errors to the config.log.
12751        cat conftest.err 1>&5
12752        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12753        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12754        if diff conftest.exp conftest.er2 >/dev/null; then
12755          lt_cv_prog_compiler_static_works_CXX=yes
12756        fi
12757      else
12758        lt_cv_prog_compiler_static_works_CXX=yes
12759      fi
12760    fi
12761    $rm -r conftest*
12762    LDFLAGS="$save_LDFLAGS"
12763
12764 fi
12765 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12766 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12767
12768 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12769     :
12770 else
12771     lt_prog_compiler_static_CXX=
12772 fi
12773
12774
12775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12777 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12778   echo $ECHO_N "(cached) $ECHO_C" >&6
12779 else
12780   lt_cv_prog_compiler_c_o_CXX=no
12781    $rm -r conftest 2>/dev/null
12782    mkdir conftest
12783    cd conftest
12784    mkdir out
12785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12786
12787    lt_compiler_flag="-o out/conftest2.$ac_objext"
12788    # Insert the option either (1) after the last *FLAGS variable, or
12789    # (2) before a word containing "conftest.", or (3) at the end.
12790    # Note that $ac_compile itself does not contain backslashes and begins
12791    # with a dollar sign (not a hyphen), so the echo should work correctly.
12792    lt_compile=`echo "$ac_compile" | $SED \
12793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12795    -e 's:$: $lt_compiler_flag:'`
12796    (eval echo "\"\$as_me:12796: $lt_compile\"" >&5)
12797    (eval "$lt_compile" 2>out/conftest.err)
12798    ac_status=$?
12799    cat out/conftest.err >&5
12800    echo "$as_me:12800: \$? = $ac_status" >&5
12801    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12802    then
12803      # The compiler can only warn and ignore the option if not recognized
12804      # So say no if there are warnings
12805      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12806      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12807      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12808        lt_cv_prog_compiler_c_o_CXX=yes
12809      fi
12810    fi
12811    chmod u+w . 2>&5
12812    $rm conftest*
12813    # SGI C++ compiler will create directory out/ii_files/ for
12814    # template instantiation
12815    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12816    $rm out/* && rmdir out
12817    cd ..
12818    rmdir conftest
12819    $rm conftest*
12820
12821 fi
12822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12824
12825
12826 hard_links="nottested"
12827 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12828   # do not overwrite the value of need_locks provided by the user
12829   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12831   hard_links=yes
12832   $rm conftest*
12833   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12834   touch conftest.a
12835   ln conftest.a conftest.b 2>&5 || hard_links=no
12836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12837   { echo "$as_me:$LINENO: result: $hard_links" >&5
12838 echo "${ECHO_T}$hard_links" >&6; }
12839   if test "$hard_links" = no; then
12840     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12842     need_locks=warn
12843   fi
12844 else
12845   need_locks=no
12846 fi
12847
12848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12850
12851   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12852   case $host_os in
12853   aix[4-9]*)
12854     # If we're using GNU nm, then we don't want the "-C" option.
12855     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12856     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12857       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'
12858     else
12859       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'
12860     fi
12861     ;;
12862   pw32*)
12863     export_symbols_cmds_CXX="$ltdll_cmds"
12864   ;;
12865   cygwin* | mingw*)
12866     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'
12867   ;;
12868   linux* | k*bsd*-gnu)
12869     link_all_deplibs_CXX=no
12870   ;;
12871   *)
12872     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12873   ;;
12874   esac
12875   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12876
12877 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12878 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12879 test "$ld_shlibs_CXX" = no && can_build_shared=no
12880
12881 #
12882 # Do we need to explicitly link libc?
12883 #
12884 case "x$archive_cmds_need_lc_CXX" in
12885 x|xyes)
12886   # Assume -lc should be added
12887   archive_cmds_need_lc_CXX=yes
12888
12889   if test "$enable_shared" = yes && test "$GCC" = yes; then
12890     case $archive_cmds_CXX in
12891     *'~'*)
12892       # FIXME: we may have to deal with multi-command sequences.
12893       ;;
12894     '$CC '*)
12895       # Test whether the compiler implicitly links with -lc since on some
12896       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12897       # to ld, don't add -lc before -lgcc.
12898       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12900       $rm conftest*
12901       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12902
12903       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904   (eval $ac_compile) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } 2>conftest.err; then
12908         soname=conftest
12909         lib=conftest
12910         libobjs=conftest.$ac_objext
12911         deplibs=
12912         wl=$lt_prog_compiler_wl_CXX
12913         pic_flag=$lt_prog_compiler_pic_CXX
12914         compiler_flags=-v
12915         linker_flags=-v
12916         verstring=
12917         output_objdir=.
12918         libname=conftest
12919         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12920         allow_undefined_flag_CXX=
12921         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12922   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12923   ac_status=$?
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); }
12926         then
12927           archive_cmds_need_lc_CXX=no
12928         else
12929           archive_cmds_need_lc_CXX=yes
12930         fi
12931         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12932       else
12933         cat conftest.err 1>&5
12934       fi
12935       $rm conftest*
12936       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12937 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12938       ;;
12939     esac
12940   fi
12941   ;;
12942 esac
12943
12944 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12946 library_names_spec=
12947 libname_spec='lib$name'
12948 soname_spec=
12949 shrext_cmds=".so"
12950 postinstall_cmds=
12951 postuninstall_cmds=
12952 finish_cmds=
12953 finish_eval=
12954 shlibpath_var=
12955 shlibpath_overrides_runpath=unknown
12956 version_type=none
12957 dynamic_linker="$host_os ld.so"
12958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12959
12960 need_lib_prefix=unknown
12961 hardcode_into_libs=no
12962
12963 # when you set need_version to no, make sure it does not cause -set_version
12964 # flags to be left without arguments
12965 need_version=unknown
12966
12967 case $host_os in
12968 aix3*)
12969   version_type=linux
12970   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12971   shlibpath_var=LIBPATH
12972
12973   # AIX 3 has no versioning support, so we append a major version to the name.
12974   soname_spec='${libname}${release}${shared_ext}$major'
12975   ;;
12976
12977 aix[4-9]*)
12978   version_type=linux
12979   need_lib_prefix=no
12980   need_version=no
12981   hardcode_into_libs=yes
12982   if test "$host_cpu" = ia64; then
12983     # AIX 5 supports IA64
12984     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12985     shlibpath_var=LD_LIBRARY_PATH
12986   else
12987     # With GCC up to 2.95.x, collect2 would create an import file
12988     # for dependence libraries.  The import file would start with
12989     # the line `#! .'.  This would cause the generated library to
12990     # depend on `.', always an invalid library.  This was fixed in
12991     # development snapshots of GCC prior to 3.0.
12992     case $host_os in
12993       aix4 | aix4.[01] | aix4.[01].*)
12994       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12995            echo ' yes '
12996            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12997         :
12998       else
12999         can_build_shared=no
13000       fi
13001       ;;
13002     esac
13003     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13004     # soname into executable. Probably we can add versioning support to
13005     # collect2, so additional links can be useful in future.
13006     if test "$aix_use_runtimelinking" = yes; then
13007       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13008       # instead of lib<name>.a to let people know that these are not
13009       # typical AIX shared libraries.
13010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011     else
13012       # We preserve .a as extension for shared libraries through AIX4.2
13013       # and later when we are not doing run time linking.
13014       library_names_spec='${libname}${release}.a $libname.a'
13015       soname_spec='${libname}${release}${shared_ext}$major'
13016     fi
13017     shlibpath_var=LIBPATH
13018   fi
13019   ;;
13020
13021 amigaos*)
13022   library_names_spec='$libname.ixlibrary $libname.a'
13023   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13024   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'
13025   ;;
13026
13027 beos*)
13028   library_names_spec='${libname}${shared_ext}'
13029   dynamic_linker="$host_os ld.so"
13030   shlibpath_var=LIBRARY_PATH
13031   ;;
13032
13033 bsdi[45]*)
13034   version_type=linux
13035   need_version=no
13036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13037   soname_spec='${libname}${release}${shared_ext}$major'
13038   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13039   shlibpath_var=LD_LIBRARY_PATH
13040   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13041   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13042   # the default ld.so.conf also contains /usr/contrib/lib and
13043   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13044   # libtool to hard-code these into programs
13045   ;;
13046
13047 cygwin* | mingw* | pw32*)
13048   version_type=windows
13049   shrext_cmds=".dll"
13050   need_version=no
13051   need_lib_prefix=no
13052
13053   case $GCC,$host_os in
13054   yes,cygwin* | yes,mingw* | yes,pw32*)
13055     library_names_spec='$libname.dll.a'
13056     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13057     postinstall_cmds='base_file=`basename \${file}`~
13058       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13059       dldir=$destdir/`dirname \$dlpath`~
13060       test -d \$dldir || mkdir -p \$dldir~
13061       $install_prog $dir/$dlname \$dldir/$dlname~
13062       chmod a+x \$dldir/$dlname'
13063     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13064       dlpath=$dir/\$dldll~
13065        $rm \$dlpath'
13066     shlibpath_overrides_runpath=yes
13067
13068     case $host_os in
13069     cygwin*)
13070       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13071       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13072       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13073       ;;
13074     mingw*)
13075       # MinGW DLLs use traditional 'lib' prefix
13076       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13077       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13078       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13079         # It is most probably a Windows format PATH printed by
13080         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13081         # path with ; separators, and with drive letters. We can handle the
13082         # drive letters (cygwin fileutils understands them), so leave them,
13083         # especially as we might pass files found there to a mingw objdump,
13084         # which wouldn't understand a cygwinified path. Ahh.
13085         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13086       else
13087         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13088       fi
13089       ;;
13090     pw32*)
13091       # pw32 DLLs use 'pw' prefix rather than 'lib'
13092       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13093       ;;
13094     esac
13095     ;;
13096
13097   *)
13098     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13099     ;;
13100   esac
13101   dynamic_linker='Win32 ld.exe'
13102   # FIXME: first we should search . and the directory the executable is in
13103   shlibpath_var=PATH
13104   ;;
13105
13106 darwin* | rhapsody*)
13107   dynamic_linker="$host_os dyld"
13108   version_type=darwin
13109   need_lib_prefix=no
13110   need_version=no
13111   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13112   soname_spec='${libname}${release}${major}$shared_ext'
13113   shlibpath_overrides_runpath=yes
13114   shlibpath_var=DYLD_LIBRARY_PATH
13115   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13116
13117   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13118   ;;
13119
13120 dgux*)
13121   version_type=linux
13122   need_lib_prefix=no
13123   need_version=no
13124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13125   soname_spec='${libname}${release}${shared_ext}$major'
13126   shlibpath_var=LD_LIBRARY_PATH
13127   ;;
13128
13129 freebsd1*)
13130   dynamic_linker=no
13131   ;;
13132
13133 freebsd* | dragonfly*)
13134   # DragonFly does not have aout.  When/if they implement a new
13135   # versioning mechanism, adjust this.
13136   if test -x /usr/bin/objformat; then
13137     objformat=`/usr/bin/objformat`
13138   else
13139     case $host_os in
13140     freebsd[123]*) objformat=aout ;;
13141     *) objformat=elf ;;
13142     esac
13143   fi
13144   version_type=freebsd-$objformat
13145   case $version_type in
13146     freebsd-elf*)
13147       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13148       need_version=no
13149       need_lib_prefix=no
13150       ;;
13151     freebsd-*)
13152       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13153       need_version=yes
13154       ;;
13155   esac
13156   shlibpath_var=LD_LIBRARY_PATH
13157   case $host_os in
13158   freebsd2*)
13159     shlibpath_overrides_runpath=yes
13160     ;;
13161   freebsd3.[01]* | freebsdelf3.[01]*)
13162     shlibpath_overrides_runpath=yes
13163     hardcode_into_libs=yes
13164     ;;
13165   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13166   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13167     shlibpath_overrides_runpath=no
13168     hardcode_into_libs=yes
13169     ;;
13170   *) # from 4.6 on, and DragonFly
13171     shlibpath_overrides_runpath=yes
13172     hardcode_into_libs=yes
13173     ;;
13174   esac
13175   ;;
13176
13177 gnu*)
13178   version_type=linux
13179   need_lib_prefix=no
13180   need_version=no
13181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13182   soname_spec='${libname}${release}${shared_ext}$major'
13183   shlibpath_var=LD_LIBRARY_PATH
13184   hardcode_into_libs=yes
13185   ;;
13186
13187 hpux9* | hpux10* | hpux11*)
13188   # Give a soname corresponding to the major version so that dld.sl refuses to
13189   # link against other versions.
13190   version_type=sunos
13191   need_lib_prefix=no
13192   need_version=no
13193   case $host_cpu in
13194   ia64*)
13195     shrext_cmds='.so'
13196     hardcode_into_libs=yes
13197     dynamic_linker="$host_os dld.so"
13198     shlibpath_var=LD_LIBRARY_PATH
13199     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13201     soname_spec='${libname}${release}${shared_ext}$major'
13202     if test "X$HPUX_IA64_MODE" = X32; then
13203       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13204     else
13205       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13206     fi
13207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13208     ;;
13209    hppa*64*)
13210      shrext_cmds='.sl'
13211      hardcode_into_libs=yes
13212      dynamic_linker="$host_os dld.sl"
13213      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13214      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13215      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216      soname_spec='${libname}${release}${shared_ext}$major'
13217      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13218      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13219      ;;
13220    *)
13221     shrext_cmds='.sl'
13222     dynamic_linker="$host_os dld.sl"
13223     shlibpath_var=SHLIB_PATH
13224     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13225     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13226     soname_spec='${libname}${release}${shared_ext}$major'
13227     ;;
13228   esac
13229   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13230   postinstall_cmds='chmod 555 $lib'
13231   ;;
13232
13233 interix[3-9]*)
13234   version_type=linux
13235   need_lib_prefix=no
13236   need_version=no
13237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13238   soname_spec='${libname}${release}${shared_ext}$major'
13239   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13240   shlibpath_var=LD_LIBRARY_PATH
13241   shlibpath_overrides_runpath=no
13242   hardcode_into_libs=yes
13243   ;;
13244
13245 irix5* | irix6* | nonstopux*)
13246   case $host_os in
13247     nonstopux*) version_type=nonstopux ;;
13248     *)
13249         if test "$lt_cv_prog_gnu_ld" = yes; then
13250                 version_type=linux
13251         else
13252                 version_type=irix
13253         fi ;;
13254   esac
13255   need_lib_prefix=no
13256   need_version=no
13257   soname_spec='${libname}${release}${shared_ext}$major'
13258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13259   case $host_os in
13260   irix5* | nonstopux*)
13261     libsuff= shlibsuff=
13262     ;;
13263   *)
13264     case $LD in # libtool.m4 will add one of these switches to LD
13265     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13266       libsuff= shlibsuff= libmagic=32-bit;;
13267     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13268       libsuff=32 shlibsuff=N32 libmagic=N32;;
13269     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13270       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13271     *) libsuff= shlibsuff= libmagic=never-match;;
13272     esac
13273     ;;
13274   esac
13275   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13276   shlibpath_overrides_runpath=no
13277   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13278   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13279   hardcode_into_libs=yes
13280   ;;
13281
13282 # No shared lib support for Linux oldld, aout, or coff.
13283 linux*oldld* | linux*aout* | linux*coff*)
13284   dynamic_linker=no
13285   ;;
13286
13287 # This must be Linux ELF.
13288 linux* | k*bsd*-gnu)
13289   version_type=linux
13290   need_lib_prefix=no
13291   need_version=no
13292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13293   soname_spec='${libname}${release}${shared_ext}$major'
13294   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13295   shlibpath_var=LD_LIBRARY_PATH
13296   shlibpath_overrides_runpath=no
13297   # This implies no fast_install, which is unacceptable.
13298   # Some rework will be needed to allow for fast_install
13299   # before this can be enabled.
13300   hardcode_into_libs=yes
13301
13302   # Append ld.so.conf contents to the search path
13303   if test -f /etc/ld.so.conf; then
13304     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' ' '`
13305     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13306   fi
13307
13308   # We used to test for /lib/ld.so.1 and disable shared libraries on
13309   # powerpc, because MkLinux only supported shared libraries with the
13310   # GNU dynamic linker.  Since this was broken with cross compilers,
13311   # most powerpc-linux boxes support dynamic linking these days and
13312   # people can always --disable-shared, the test was removed, and we
13313   # assume the GNU/Linux dynamic linker is in use.
13314   dynamic_linker='GNU/Linux ld.so'
13315   ;;
13316
13317 netbsdelf*-gnu)
13318   version_type=linux
13319   need_lib_prefix=no
13320   need_version=no
13321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13322   soname_spec='${libname}${release}${shared_ext}$major'
13323   shlibpath_var=LD_LIBRARY_PATH
13324   shlibpath_overrides_runpath=no
13325   hardcode_into_libs=yes
13326   dynamic_linker='NetBSD ld.elf_so'
13327   ;;
13328
13329 netbsd*)
13330   version_type=sunos
13331   need_lib_prefix=no
13332   need_version=no
13333   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13335     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13336     dynamic_linker='NetBSD (a.out) ld.so'
13337   else
13338     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13339     soname_spec='${libname}${release}${shared_ext}$major'
13340     dynamic_linker='NetBSD ld.elf_so'
13341   fi
13342   shlibpath_var=LD_LIBRARY_PATH
13343   shlibpath_overrides_runpath=yes
13344   hardcode_into_libs=yes
13345   ;;
13346
13347 newsos6)
13348   version_type=linux
13349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13350   shlibpath_var=LD_LIBRARY_PATH
13351   shlibpath_overrides_runpath=yes
13352   ;;
13353
13354 nto-qnx*)
13355   version_type=linux
13356   need_lib_prefix=no
13357   need_version=no
13358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13359   soname_spec='${libname}${release}${shared_ext}$major'
13360   shlibpath_var=LD_LIBRARY_PATH
13361   shlibpath_overrides_runpath=yes
13362   ;;
13363
13364 openbsd*)
13365   version_type=sunos
13366   sys_lib_dlsearch_path_spec="/usr/lib"
13367   need_lib_prefix=no
13368   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13369   case $host_os in
13370     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13371     *)                         need_version=no  ;;
13372   esac
13373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13374   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13375   shlibpath_var=LD_LIBRARY_PATH
13376   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13377     case $host_os in
13378       openbsd2.[89] | openbsd2.[89].*)
13379         shlibpath_overrides_runpath=no
13380         ;;
13381       *)
13382         shlibpath_overrides_runpath=yes
13383         ;;
13384       esac
13385   else
13386     shlibpath_overrides_runpath=yes
13387   fi
13388   ;;
13389
13390 os2*)
13391   libname_spec='$name'
13392   shrext_cmds=".dll"
13393   need_lib_prefix=no
13394   library_names_spec='$libname${shared_ext} $libname.a'
13395   dynamic_linker='OS/2 ld.exe'
13396   shlibpath_var=LIBPATH
13397   ;;
13398
13399 osf3* | osf4* | osf5*)
13400   version_type=osf
13401   need_lib_prefix=no
13402   need_version=no
13403   soname_spec='${libname}${release}${shared_ext}$major'
13404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13405   shlibpath_var=LD_LIBRARY_PATH
13406   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13407   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13408   ;;
13409
13410 rdos*)
13411   dynamic_linker=no
13412   ;;
13413
13414 solaris*)
13415   version_type=linux
13416   need_lib_prefix=no
13417   need_version=no
13418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13419   soname_spec='${libname}${release}${shared_ext}$major'
13420   shlibpath_var=LD_LIBRARY_PATH
13421   shlibpath_overrides_runpath=yes
13422   hardcode_into_libs=yes
13423   # ldd complains unless libraries are executable
13424   postinstall_cmds='chmod +x $lib'
13425   ;;
13426
13427 sunos4*)
13428   version_type=sunos
13429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13430   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13431   shlibpath_var=LD_LIBRARY_PATH
13432   shlibpath_overrides_runpath=yes
13433   if test "$with_gnu_ld" = yes; then
13434     need_lib_prefix=no
13435   fi
13436   need_version=yes
13437   ;;
13438
13439 sysv4 | sysv4.3*)
13440   version_type=linux
13441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13442   soname_spec='${libname}${release}${shared_ext}$major'
13443   shlibpath_var=LD_LIBRARY_PATH
13444   case $host_vendor in
13445     sni)
13446       shlibpath_overrides_runpath=no
13447       need_lib_prefix=no
13448       export_dynamic_flag_spec='${wl}-Blargedynsym'
13449       runpath_var=LD_RUN_PATH
13450       ;;
13451     siemens)
13452       need_lib_prefix=no
13453       ;;
13454     motorola)
13455       need_lib_prefix=no
13456       need_version=no
13457       shlibpath_overrides_runpath=no
13458       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13459       ;;
13460   esac
13461   ;;
13462
13463 sysv4*MP*)
13464   if test -d /usr/nec ;then
13465     version_type=linux
13466     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13467     soname_spec='$libname${shared_ext}.$major'
13468     shlibpath_var=LD_LIBRARY_PATH
13469   fi
13470   ;;
13471
13472 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13473   version_type=freebsd-elf
13474   need_lib_prefix=no
13475   need_version=no
13476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13477   soname_spec='${libname}${release}${shared_ext}$major'
13478   shlibpath_var=LD_LIBRARY_PATH
13479   hardcode_into_libs=yes
13480   if test "$with_gnu_ld" = yes; then
13481     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13482     shlibpath_overrides_runpath=no
13483   else
13484     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13485     shlibpath_overrides_runpath=yes
13486     case $host_os in
13487       sco3.2v5*)
13488         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13489         ;;
13490     esac
13491   fi
13492   sys_lib_dlsearch_path_spec='/usr/lib'
13493   ;;
13494
13495 uts4*)
13496   version_type=linux
13497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498   soname_spec='${libname}${release}${shared_ext}$major'
13499   shlibpath_var=LD_LIBRARY_PATH
13500   ;;
13501
13502 *)
13503   dynamic_linker=no
13504   ;;
13505 esac
13506 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13507 echo "${ECHO_T}$dynamic_linker" >&6; }
13508 test "$dynamic_linker" = no && can_build_shared=no
13509
13510 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13511   echo $ECHO_N "(cached) $ECHO_C" >&6
13512 else
13513   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13514 fi
13515
13516 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13517 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13518   echo $ECHO_N "(cached) $ECHO_C" >&6
13519 else
13520   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13521 fi
13522
13523 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13524
13525 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13526 if test "$GCC" = yes; then
13527   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13528 fi
13529
13530 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13531 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13532 hardcode_action_CXX=
13533 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13534    test -n "$runpath_var_CXX" || \
13535    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13536
13537   # We can hardcode non-existant directories.
13538   if test "$hardcode_direct_CXX" != no &&
13539      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13540      # have to relink, otherwise we might link with an installed library
13541      # when we should be linking with a yet-to-be-installed one
13542      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13543      test "$hardcode_minus_L_CXX" != no; then
13544     # Linking always hardcodes the temporary library directory.
13545     hardcode_action_CXX=relink
13546   else
13547     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13548     hardcode_action_CXX=immediate
13549   fi
13550 else
13551   # We cannot hardcode anything, or else we can only hardcode existing
13552   # directories.
13553   hardcode_action_CXX=unsupported
13554 fi
13555 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13556 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13557
13558 if test "$hardcode_action_CXX" = relink; then
13559   # Fast installation is not supported
13560   enable_fast_install=no
13561 elif test "$shlibpath_overrides_runpath" = yes ||
13562      test "$enable_shared" = no; then
13563   # Fast installation is not necessary
13564   enable_fast_install=needless
13565 fi
13566
13567
13568 # The else clause should only fire when bootstrapping the
13569 # libtool distribution, otherwise you forgot to ship ltmain.sh
13570 # with your package, and you will get complaints that there are
13571 # no rules to generate ltmain.sh.
13572 if test -f "$ltmain"; then
13573   # See if we are running on zsh, and set the options which allow our commands through
13574   # without removal of \ escapes.
13575   if test -n "${ZSH_VERSION+set}" ; then
13576     setopt NO_GLOB_SUBST
13577   fi
13578   # Now quote all the things that may contain metacharacters while being
13579   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13580   # variables and quote the copies for generation of the libtool script.
13581   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13582     SED SHELL STRIP \
13583     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13584     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13585     deplibs_check_method reload_flag reload_cmds need_locks \
13586     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13587     lt_cv_sys_global_symbol_to_c_name_address \
13588     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13589     old_postinstall_cmds old_postuninstall_cmds \
13590     compiler_CXX \
13591     CC_CXX \
13592     LD_CXX \
13593     lt_prog_compiler_wl_CXX \
13594     lt_prog_compiler_pic_CXX \
13595     lt_prog_compiler_static_CXX \
13596     lt_prog_compiler_no_builtin_flag_CXX \
13597     export_dynamic_flag_spec_CXX \
13598     thread_safe_flag_spec_CXX \
13599     whole_archive_flag_spec_CXX \
13600     enable_shared_with_static_runtimes_CXX \
13601     old_archive_cmds_CXX \
13602     old_archive_from_new_cmds_CXX \
13603     predep_objects_CXX \
13604     postdep_objects_CXX \
13605     predeps_CXX \
13606     postdeps_CXX \
13607     compiler_lib_search_path_CXX \
13608     compiler_lib_search_dirs_CXX \
13609     archive_cmds_CXX \
13610     archive_expsym_cmds_CXX \
13611     postinstall_cmds_CXX \
13612     postuninstall_cmds_CXX \
13613     old_archive_from_expsyms_cmds_CXX \
13614     allow_undefined_flag_CXX \
13615     no_undefined_flag_CXX \
13616     export_symbols_cmds_CXX \
13617     hardcode_libdir_flag_spec_CXX \
13618     hardcode_libdir_flag_spec_ld_CXX \
13619     hardcode_libdir_separator_CXX \
13620     hardcode_automatic_CXX \
13621     module_cmds_CXX \
13622     module_expsym_cmds_CXX \
13623     lt_cv_prog_compiler_c_o_CXX \
13624     fix_srcfile_path_CXX \
13625     exclude_expsyms_CXX \
13626     include_expsyms_CXX; do
13627
13628     case $var in
13629     old_archive_cmds_CXX | \
13630     old_archive_from_new_cmds_CXX | \
13631     archive_cmds_CXX | \
13632     archive_expsym_cmds_CXX | \
13633     module_cmds_CXX | \
13634     module_expsym_cmds_CXX | \
13635     old_archive_from_expsyms_cmds_CXX | \
13636     export_symbols_cmds_CXX | \
13637     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13638     postinstall_cmds | postuninstall_cmds | \
13639     old_postinstall_cmds | old_postuninstall_cmds | \
13640     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13641       # Double-quote double-evaled strings.
13642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13643       ;;
13644     *)
13645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13646       ;;
13647     esac
13648   done
13649
13650   case $lt_echo in
13651   *'\$0 --fallback-echo"')
13652     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13653     ;;
13654   esac
13655
13656 cfgfile="$ofile"
13657
13658   cat <<__EOF__ >> "$cfgfile"
13659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13660
13661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13662
13663 # Shell to use when invoking shell scripts.
13664 SHELL=$lt_SHELL
13665
13666 # Whether or not to build shared libraries.
13667 build_libtool_libs=$enable_shared
13668
13669 # Whether or not to build static libraries.
13670 build_old_libs=$enable_static
13671
13672 # Whether or not to add -lc for building shared libraries.
13673 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13674
13675 # Whether or not to disallow shared libs when runtime libs are static
13676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13677
13678 # Whether or not to optimize for fast installation.
13679 fast_install=$enable_fast_install
13680
13681 # The host system.
13682 host_alias=$host_alias
13683 host=$host
13684 host_os=$host_os
13685
13686 # The build system.
13687 build_alias=$build_alias
13688 build=$build
13689 build_os=$build_os
13690
13691 # An echo program that does not interpret backslashes.
13692 echo=$lt_echo
13693
13694 # The archiver.
13695 AR=$lt_AR
13696 AR_FLAGS=$lt_AR_FLAGS
13697
13698 # A C compiler.
13699 LTCC=$lt_LTCC
13700
13701 # LTCC compiler flags.
13702 LTCFLAGS=$lt_LTCFLAGS
13703
13704 # A language-specific compiler.
13705 CC=$lt_compiler_CXX
13706
13707 # Is the compiler the GNU C compiler?
13708 with_gcc=$GCC_CXX
13709
13710 # An ERE matcher.
13711 EGREP=$lt_EGREP
13712
13713 # The linker used to build libraries.
13714 LD=$lt_LD_CXX
13715
13716 # Whether we need hard or soft links.
13717 LN_S=$lt_LN_S
13718
13719 # A BSD-compatible nm program.
13720 NM=$lt_NM
13721
13722 # A symbol stripping program
13723 STRIP=$lt_STRIP
13724
13725 # Used to examine libraries when file_magic_cmd begins "file"
13726 MAGIC_CMD=$MAGIC_CMD
13727
13728 # Used on cygwin: DLL creation program.
13729 DLLTOOL="$DLLTOOL"
13730
13731 # Used on cygwin: object dumper.
13732 OBJDUMP="$OBJDUMP"
13733
13734 # Used on cygwin: assembler.
13735 AS="$AS"
13736
13737 # The name of the directory that contains temporary libtool files.
13738 objdir=$objdir
13739
13740 # How to create reloadable object files.
13741 reload_flag=$lt_reload_flag
13742 reload_cmds=$lt_reload_cmds
13743
13744 # How to pass a linker flag through the compiler.
13745 wl=$lt_lt_prog_compiler_wl_CXX
13746
13747 # Object file suffix (normally "o").
13748 objext="$ac_objext"
13749
13750 # Old archive suffix (normally "a").
13751 libext="$libext"
13752
13753 # Shared library suffix (normally ".so").
13754 shrext_cmds='$shrext_cmds'
13755
13756 # Executable file suffix (normally "").
13757 exeext="$exeext"
13758
13759 # Additional compiler flags for building library objects.
13760 pic_flag=$lt_lt_prog_compiler_pic_CXX
13761 pic_mode=$pic_mode
13762
13763 # What is the maximum length of a command?
13764 max_cmd_len=$lt_cv_sys_max_cmd_len
13765
13766 # Does compiler simultaneously support -c and -o options?
13767 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13768
13769 # Must we lock files when doing compilation?
13770 need_locks=$lt_need_locks
13771
13772 # Do we need the lib prefix for modules?
13773 need_lib_prefix=$need_lib_prefix
13774
13775 # Do we need a version for libraries?
13776 need_version=$need_version
13777
13778 # Whether dlopen is supported.
13779 dlopen_support=$enable_dlopen
13780
13781 # Whether dlopen of programs is supported.
13782 dlopen_self=$enable_dlopen_self
13783
13784 # Whether dlopen of statically linked programs is supported.
13785 dlopen_self_static=$enable_dlopen_self_static
13786
13787 # Compiler flag to prevent dynamic linking.
13788 link_static_flag=$lt_lt_prog_compiler_static_CXX
13789
13790 # Compiler flag to turn off builtin functions.
13791 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13792
13793 # Compiler flag to allow reflexive dlopens.
13794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13795
13796 # Compiler flag to generate shared objects directly from archives.
13797 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13798
13799 # Compiler flag to generate thread-safe objects.
13800 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13801
13802 # Library versioning type.
13803 version_type=$version_type
13804
13805 # Format of library name prefix.
13806 libname_spec=$lt_libname_spec
13807
13808 # List of archive names.  First name is the real one, the rest are links.
13809 # The last name is the one that the linker finds with -lNAME.
13810 library_names_spec=$lt_library_names_spec
13811
13812 # The coded name of the library, if different from the real name.
13813 soname_spec=$lt_soname_spec
13814
13815 # Commands used to build and install an old-style archive.
13816 RANLIB=$lt_RANLIB
13817 old_archive_cmds=$lt_old_archive_cmds_CXX
13818 old_postinstall_cmds=$lt_old_postinstall_cmds
13819 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13820
13821 # Create an old-style archive from a shared archive.
13822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13823
13824 # Create a temporary old-style archive to link instead of a shared archive.
13825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13826
13827 # Commands used to build and install a shared archive.
13828 archive_cmds=$lt_archive_cmds_CXX
13829 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13830 postinstall_cmds=$lt_postinstall_cmds
13831 postuninstall_cmds=$lt_postuninstall_cmds
13832
13833 # Commands used to build a loadable module (assumed same as above if empty)
13834 module_cmds=$lt_module_cmds_CXX
13835 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13836
13837 # Commands to strip libraries.
13838 old_striplib=$lt_old_striplib
13839 striplib=$lt_striplib
13840
13841 # Dependencies to place before the objects being linked to create a
13842 # shared library.
13843 predep_objects=$lt_predep_objects_CXX
13844
13845 # Dependencies to place after the objects being linked to create a
13846 # shared library.
13847 postdep_objects=$lt_postdep_objects_CXX
13848
13849 # Dependencies to place before the objects being linked to create a
13850 # shared library.
13851 predeps=$lt_predeps_CXX
13852
13853 # Dependencies to place after the objects being linked to create a
13854 # shared library.
13855 postdeps=$lt_postdeps_CXX
13856
13857 # The directories searched by this compiler when creating a shared
13858 # library
13859 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13860
13861 # The library search path used internally by the compiler when linking
13862 # a shared library.
13863 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13864
13865 # Method to check whether dependent libraries are shared objects.
13866 deplibs_check_method=$lt_deplibs_check_method
13867
13868 # Command to use when deplibs_check_method == file_magic.
13869 file_magic_cmd=$lt_file_magic_cmd
13870
13871 # Flag that allows shared libraries with undefined symbols to be built.
13872 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13873
13874 # Flag that forces no undefined symbols.
13875 no_undefined_flag=$lt_no_undefined_flag_CXX
13876
13877 # Commands used to finish a libtool library installation in a directory.
13878 finish_cmds=$lt_finish_cmds
13879
13880 # Same as above, but a single script fragment to be evaled but not shown.
13881 finish_eval=$lt_finish_eval
13882
13883 # Take the output of nm and produce a listing of raw symbols and C names.
13884 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13885
13886 # Transform the output of nm in a proper C declaration
13887 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13888
13889 # Transform the output of nm in a C name address pair
13890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13891
13892 # This is the shared library runtime path variable.
13893 runpath_var=$runpath_var
13894
13895 # This is the shared library path variable.
13896 shlibpath_var=$shlibpath_var
13897
13898 # Is shlibpath searched before the hard-coded library search path?
13899 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13900
13901 # How to hardcode a shared library path into an executable.
13902 hardcode_action=$hardcode_action_CXX
13903
13904 # Whether we should hardcode library paths into libraries.
13905 hardcode_into_libs=$hardcode_into_libs
13906
13907 # Flag to hardcode \$libdir into a binary during linking.
13908 # This must work even if \$libdir does not exist.
13909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13910
13911 # If ld is used when linking, flag to hardcode \$libdir into
13912 # a binary during linking. This must work even if \$libdir does
13913 # not exist.
13914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13915
13916 # Whether we need a single -rpath flag with a separated argument.
13917 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13918
13919 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13920 # resulting binary.
13921 hardcode_direct=$hardcode_direct_CXX
13922
13923 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13924 # resulting binary.
13925 hardcode_minus_L=$hardcode_minus_L_CXX
13926
13927 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13928 # the resulting binary.
13929 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13930
13931 # Set to yes if building a shared library automatically hardcodes DIR into the library
13932 # and all subsequent libraries and executables linked against it.
13933 hardcode_automatic=$hardcode_automatic_CXX
13934
13935 # Variables whose values should be saved in libtool wrapper scripts and
13936 # restored at relink time.
13937 variables_saved_for_relink="$variables_saved_for_relink"
13938
13939 # Whether libtool must link a program against all its dependency libraries.
13940 link_all_deplibs=$link_all_deplibs_CXX
13941
13942 # Compile-time system search path for libraries
13943 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13944
13945 # Run-time system search path for libraries
13946 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13947
13948 # Fix the shell variable \$srcfile for the compiler.
13949 fix_srcfile_path=$lt_fix_srcfile_path
13950
13951 # Set to yes if exported symbols are required.
13952 always_export_symbols=$always_export_symbols_CXX
13953
13954 # The commands to list exported symbols.
13955 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13956
13957 # The commands to extract the exported symbol list from a shared archive.
13958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13959
13960 # Symbols that should not be listed in the preloaded symbols.
13961 exclude_expsyms=$lt_exclude_expsyms_CXX
13962
13963 # Symbols that must always be exported.
13964 include_expsyms=$lt_include_expsyms_CXX
13965
13966 # ### END LIBTOOL TAG CONFIG: $tagname
13967
13968 __EOF__
13969
13970
13971 else
13972   # If there is no Makefile yet, we rely on a make rule to execute
13973   # `config.status --recheck' to rerun these tests and create the
13974   # libtool script then.
13975   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13976   if test -f "$ltmain_in"; then
13977     test -f Makefile && make "$ltmain"
13978   fi
13979 fi
13980
13981
13982 ac_ext=c
13983 ac_cpp='$CPP $CPPFLAGS'
13984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13987
13988 CC=$lt_save_CC
13989 LDCXX=$LD
13990 LD=$lt_save_LD
13991 GCC=$lt_save_GCC
13992 with_gnu_ldcxx=$with_gnu_ld
13993 with_gnu_ld=$lt_save_with_gnu_ld
13994 lt_cv_path_LDCXX=$lt_cv_path_LD
13995 lt_cv_path_LD=$lt_save_path_LD
13996 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13997 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13998
13999         else
14000           tagname=""
14001         fi
14002         ;;
14003
14004       F77)
14005         if test -n "$F77" && test "X$F77" != "Xno"; then
14006
14007 ac_ext=f
14008 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14009 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14010 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14011
14012
14013 archive_cmds_need_lc_F77=no
14014 allow_undefined_flag_F77=
14015 always_export_symbols_F77=no
14016 archive_expsym_cmds_F77=
14017 export_dynamic_flag_spec_F77=
14018 hardcode_direct_F77=no
14019 hardcode_libdir_flag_spec_F77=
14020 hardcode_libdir_flag_spec_ld_F77=
14021 hardcode_libdir_separator_F77=
14022 hardcode_minus_L_F77=no
14023 hardcode_automatic_F77=no
14024 module_cmds_F77=
14025 module_expsym_cmds_F77=
14026 link_all_deplibs_F77=unknown
14027 old_archive_cmds_F77=$old_archive_cmds
14028 no_undefined_flag_F77=
14029 whole_archive_flag_spec_F77=
14030 enable_shared_with_static_runtimes_F77=no
14031
14032 # Source file extension for f77 test sources.
14033 ac_ext=f
14034
14035 # Object file extension for compiled f77 test sources.
14036 objext=o
14037 objext_F77=$objext
14038
14039 # Code to be used in simple compile tests
14040 lt_simple_compile_test_code="\
14041       subroutine t
14042       return
14043       end
14044 "
14045
14046 # Code to be used in simple link tests
14047 lt_simple_link_test_code="\
14048       program t
14049       end
14050 "
14051
14052 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14053
14054 # If no C compiler was specified, use CC.
14055 LTCC=${LTCC-"$CC"}
14056
14057 # If no C compiler flags were specified, use CFLAGS.
14058 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14059
14060 # Allow CC to be a program name with arguments.
14061 compiler=$CC
14062
14063
14064 # save warnings/boilerplate of simple test code
14065 ac_outfile=conftest.$ac_objext
14066 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14067 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14068 _lt_compiler_boilerplate=`cat conftest.err`
14069 $rm conftest*
14070
14071 ac_outfile=conftest.$ac_objext
14072 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14073 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14074 _lt_linker_boilerplate=`cat conftest.err`
14075 $rm -r conftest*
14076
14077
14078 # Allow CC to be a program name with arguments.
14079 lt_save_CC="$CC"
14080 CC=${F77-"f77"}
14081 compiler=$CC
14082 compiler_F77=$CC
14083 for cc_temp in $compiler""; do
14084   case $cc_temp in
14085     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14086     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14087     \-*) ;;
14088     *) break;;
14089   esac
14090 done
14091 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14092
14093
14094 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14095 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14096 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14097 echo "${ECHO_T}$can_build_shared" >&6; }
14098
14099 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14100 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14101 test "$can_build_shared" = "no" && enable_shared=no
14102
14103 # On AIX, shared libraries and static libraries use the same namespace, and
14104 # are all built from PIC.
14105 case $host_os in
14106 aix3*)
14107   test "$enable_shared" = yes && enable_static=no
14108   if test -n "$RANLIB"; then
14109     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14110     postinstall_cmds='$RANLIB $lib'
14111   fi
14112   ;;
14113 aix[4-9]*)
14114   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14115     test "$enable_shared" = yes && enable_static=no
14116   fi
14117   ;;
14118 esac
14119 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14120 echo "${ECHO_T}$enable_shared" >&6; }
14121
14122 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14123 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14124 # Make sure either enable_shared or enable_static is yes.
14125 test "$enable_shared" = yes || enable_static=yes
14126 { echo "$as_me:$LINENO: result: $enable_static" >&5
14127 echo "${ECHO_T}$enable_static" >&6; }
14128
14129 GCC_F77="$G77"
14130 LD_F77="$LD"
14131
14132 lt_prog_compiler_wl_F77=
14133 lt_prog_compiler_pic_F77=
14134 lt_prog_compiler_static_F77=
14135
14136 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14137 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14138
14139   if test "$GCC" = yes; then
14140     lt_prog_compiler_wl_F77='-Wl,'
14141     lt_prog_compiler_static_F77='-static'
14142
14143     case $host_os in
14144       aix*)
14145       # All AIX code is PIC.
14146       if test "$host_cpu" = ia64; then
14147         # AIX 5 now supports IA64 processor
14148         lt_prog_compiler_static_F77='-Bstatic'
14149       fi
14150       ;;
14151
14152     amigaos*)
14153       # FIXME: we need at least 68020 code to build shared libraries, but
14154       # adding the `-m68020' flag to GCC prevents building anything better,
14155       # like `-m68040'.
14156       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14157       ;;
14158
14159     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14160       # PIC is the default for these OSes.
14161       ;;
14162
14163     mingw* | cygwin* | pw32* | os2*)
14164       # This hack is so that the source file can tell whether it is being
14165       # built for inclusion in a dll (and should export symbols for example).
14166       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14167       # (--disable-auto-import) libraries
14168       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14169       ;;
14170
14171     darwin* | rhapsody*)
14172       # PIC is the default on this platform
14173       # Common symbols not allowed in MH_DYLIB files
14174       lt_prog_compiler_pic_F77='-fno-common'
14175       ;;
14176
14177     interix[3-9]*)
14178       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14179       # Instead, we relocate shared libraries at runtime.
14180       ;;
14181
14182     msdosdjgpp*)
14183       # Just because we use GCC doesn't mean we suddenly get shared libraries
14184       # on systems that don't support them.
14185       lt_prog_compiler_can_build_shared_F77=no
14186       enable_shared=no
14187       ;;
14188
14189     sysv4*MP*)
14190       if test -d /usr/nec; then
14191         lt_prog_compiler_pic_F77=-Kconform_pic
14192       fi
14193       ;;
14194
14195     hpux*)
14196       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14197       # not for PA HP-UX.
14198       case $host_cpu in
14199       hppa*64*|ia64*)
14200         # +Z the default
14201         ;;
14202       *)
14203         lt_prog_compiler_pic_F77='-fPIC'
14204         ;;
14205       esac
14206       ;;
14207
14208     *)
14209       lt_prog_compiler_pic_F77='-fPIC'
14210       ;;
14211     esac
14212   else
14213     # PORTME Check for flag to pass linker flags through the system compiler.
14214     case $host_os in
14215     aix*)
14216       lt_prog_compiler_wl_F77='-Wl,'
14217       if test "$host_cpu" = ia64; then
14218         # AIX 5 now supports IA64 processor
14219         lt_prog_compiler_static_F77='-Bstatic'
14220       else
14221         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14222       fi
14223       ;;
14224       darwin*)
14225         # PIC is the default on this platform
14226         # Common symbols not allowed in MH_DYLIB files
14227        case $cc_basename in
14228          xlc*)
14229          lt_prog_compiler_pic_F77='-qnocommon'
14230          lt_prog_compiler_wl_F77='-Wl,'
14231          ;;
14232        esac
14233        ;;
14234
14235     mingw* | cygwin* | pw32* | os2*)
14236       # This hack is so that the source file can tell whether it is being
14237       # built for inclusion in a dll (and should export symbols for example).
14238       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14239       ;;
14240
14241     hpux9* | hpux10* | hpux11*)
14242       lt_prog_compiler_wl_F77='-Wl,'
14243       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14244       # not for PA HP-UX.
14245       case $host_cpu in
14246       hppa*64*|ia64*)
14247         # +Z the default
14248         ;;
14249       *)
14250         lt_prog_compiler_pic_F77='+Z'
14251         ;;
14252       esac
14253       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14254       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14255       ;;
14256
14257     irix5* | irix6* | nonstopux*)
14258       lt_prog_compiler_wl_F77='-Wl,'
14259       # PIC (with -KPIC) is the default.
14260       lt_prog_compiler_static_F77='-non_shared'
14261       ;;
14262
14263     newsos6)
14264       lt_prog_compiler_pic_F77='-KPIC'
14265       lt_prog_compiler_static_F77='-Bstatic'
14266       ;;
14267
14268     linux* | k*bsd*-gnu)
14269       case $cc_basename in
14270       icc* | ecc*)
14271         lt_prog_compiler_wl_F77='-Wl,'
14272         lt_prog_compiler_pic_F77='-KPIC'
14273         lt_prog_compiler_static_F77='-static'
14274         ;;
14275       pgcc* | pgf77* | pgf90* | pgf95*)
14276         # Portland Group compilers (*not* the Pentium gcc compiler,
14277         # which looks to be a dead project)
14278         lt_prog_compiler_wl_F77='-Wl,'
14279         lt_prog_compiler_pic_F77='-fpic'
14280         lt_prog_compiler_static_F77='-Bstatic'
14281         ;;
14282       ccc*)
14283         lt_prog_compiler_wl_F77='-Wl,'
14284         # All Alpha code is PIC.
14285         lt_prog_compiler_static_F77='-non_shared'
14286         ;;
14287       *)
14288         case `$CC -V 2>&1 | sed 5q` in
14289         *Sun\ C*)
14290           # Sun C 5.9
14291           lt_prog_compiler_pic_F77='-KPIC'
14292           lt_prog_compiler_static_F77='-Bstatic'
14293           lt_prog_compiler_wl_F77='-Wl,'
14294           ;;
14295         *Sun\ F*)
14296           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14297           lt_prog_compiler_pic_F77='-KPIC'
14298           lt_prog_compiler_static_F77='-Bstatic'
14299           lt_prog_compiler_wl_F77=''
14300           ;;
14301         esac
14302         ;;
14303       esac
14304       ;;
14305
14306     osf3* | osf4* | osf5*)
14307       lt_prog_compiler_wl_F77='-Wl,'
14308       # All OSF/1 code is PIC.
14309       lt_prog_compiler_static_F77='-non_shared'
14310       ;;
14311
14312     rdos*)
14313       lt_prog_compiler_static_F77='-non_shared'
14314       ;;
14315
14316     solaris*)
14317       lt_prog_compiler_pic_F77='-KPIC'
14318       lt_prog_compiler_static_F77='-Bstatic'
14319       case $cc_basename in
14320       f77* | f90* | f95*)
14321         lt_prog_compiler_wl_F77='-Qoption ld ';;
14322       *)
14323         lt_prog_compiler_wl_F77='-Wl,';;
14324       esac
14325       ;;
14326
14327     sunos4*)
14328       lt_prog_compiler_wl_F77='-Qoption ld '
14329       lt_prog_compiler_pic_F77='-PIC'
14330       lt_prog_compiler_static_F77='-Bstatic'
14331       ;;
14332
14333     sysv4 | sysv4.2uw2* | sysv4.3*)
14334       lt_prog_compiler_wl_F77='-Wl,'
14335       lt_prog_compiler_pic_F77='-KPIC'
14336       lt_prog_compiler_static_F77='-Bstatic'
14337       ;;
14338
14339     sysv4*MP*)
14340       if test -d /usr/nec ;then
14341         lt_prog_compiler_pic_F77='-Kconform_pic'
14342         lt_prog_compiler_static_F77='-Bstatic'
14343       fi
14344       ;;
14345
14346     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14347       lt_prog_compiler_wl_F77='-Wl,'
14348       lt_prog_compiler_pic_F77='-KPIC'
14349       lt_prog_compiler_static_F77='-Bstatic'
14350       ;;
14351
14352     unicos*)
14353       lt_prog_compiler_wl_F77='-Wl,'
14354       lt_prog_compiler_can_build_shared_F77=no
14355       ;;
14356
14357     uts4*)
14358       lt_prog_compiler_pic_F77='-pic'
14359       lt_prog_compiler_static_F77='-Bstatic'
14360       ;;
14361
14362     *)
14363       lt_prog_compiler_can_build_shared_F77=no
14364       ;;
14365     esac
14366   fi
14367
14368 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14369 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14370
14371 #
14372 # Check to make sure the PIC flag actually works.
14373 #
14374 if test -n "$lt_prog_compiler_pic_F77"; then
14375
14376 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14377 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14378 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14379   echo $ECHO_N "(cached) $ECHO_C" >&6
14380 else
14381   lt_cv_prog_compiler_pic_works_F77=no
14382   ac_outfile=conftest.$ac_objext
14383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14384    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14385    # Insert the option either (1) after the last *FLAGS variable, or
14386    # (2) before a word containing "conftest.", or (3) at the end.
14387    # Note that $ac_compile itself does not contain backslashes and begins
14388    # with a dollar sign (not a hyphen), so the echo should work correctly.
14389    # The option is referenced via a variable to avoid confusing sed.
14390    lt_compile=`echo "$ac_compile" | $SED \
14391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14393    -e 's:$: $lt_compiler_flag:'`
14394    (eval echo "\"\$as_me:14394: $lt_compile\"" >&5)
14395    (eval "$lt_compile" 2>conftest.err)
14396    ac_status=$?
14397    cat conftest.err >&5
14398    echo "$as_me:14398: \$? = $ac_status" >&5
14399    if (exit $ac_status) && test -s "$ac_outfile"; then
14400      # The compiler can only warn and ignore the option if not recognized
14401      # So say no if there are warnings other than the usual output.
14402      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14403      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14404      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14405        lt_cv_prog_compiler_pic_works_F77=yes
14406      fi
14407    fi
14408    $rm conftest*
14409
14410 fi
14411 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14412 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14413
14414 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14415     case $lt_prog_compiler_pic_F77 in
14416      "" | " "*) ;;
14417      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14418      esac
14419 else
14420     lt_prog_compiler_pic_F77=
14421      lt_prog_compiler_can_build_shared_F77=no
14422 fi
14423
14424 fi
14425 case $host_os in
14426   # For platforms which do not support PIC, -DPIC is meaningless:
14427   *djgpp*)
14428     lt_prog_compiler_pic_F77=
14429     ;;
14430   *)
14431     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14432     ;;
14433 esac
14434
14435 #
14436 # Check to make sure the static flag actually works.
14437 #
14438 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14439 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14440 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14441 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444   lt_cv_prog_compiler_static_works_F77=no
14445    save_LDFLAGS="$LDFLAGS"
14446    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14447    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14448    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14449      # The linker can only warn and ignore the option if not recognized
14450      # So say no if there are warnings
14451      if test -s conftest.err; then
14452        # Append any errors to the config.log.
14453        cat conftest.err 1>&5
14454        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14455        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14456        if diff conftest.exp conftest.er2 >/dev/null; then
14457          lt_cv_prog_compiler_static_works_F77=yes
14458        fi
14459      else
14460        lt_cv_prog_compiler_static_works_F77=yes
14461      fi
14462    fi
14463    $rm -r conftest*
14464    LDFLAGS="$save_LDFLAGS"
14465
14466 fi
14467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14468 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14469
14470 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14471     :
14472 else
14473     lt_prog_compiler_static_F77=
14474 fi
14475
14476
14477 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14478 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14479 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14480   echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482   lt_cv_prog_compiler_c_o_F77=no
14483    $rm -r conftest 2>/dev/null
14484    mkdir conftest
14485    cd conftest
14486    mkdir out
14487    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14488
14489    lt_compiler_flag="-o out/conftest2.$ac_objext"
14490    # Insert the option either (1) after the last *FLAGS variable, or
14491    # (2) before a word containing "conftest.", or (3) at the end.
14492    # Note that $ac_compile itself does not contain backslashes and begins
14493    # with a dollar sign (not a hyphen), so the echo should work correctly.
14494    lt_compile=`echo "$ac_compile" | $SED \
14495    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14496    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14497    -e 's:$: $lt_compiler_flag:'`
14498    (eval echo "\"\$as_me:14498: $lt_compile\"" >&5)
14499    (eval "$lt_compile" 2>out/conftest.err)
14500    ac_status=$?
14501    cat out/conftest.err >&5
14502    echo "$as_me:14502: \$? = $ac_status" >&5
14503    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14504    then
14505      # The compiler can only warn and ignore the option if not recognized
14506      # So say no if there are warnings
14507      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14508      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14509      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14510        lt_cv_prog_compiler_c_o_F77=yes
14511      fi
14512    fi
14513    chmod u+w . 2>&5
14514    $rm conftest*
14515    # SGI C++ compiler will create directory out/ii_files/ for
14516    # template instantiation
14517    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14518    $rm out/* && rmdir out
14519    cd ..
14520    rmdir conftest
14521    $rm conftest*
14522
14523 fi
14524 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14525 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14526
14527
14528 hard_links="nottested"
14529 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14530   # do not overwrite the value of need_locks provided by the user
14531   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14532 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14533   hard_links=yes
14534   $rm conftest*
14535   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14536   touch conftest.a
14537   ln conftest.a conftest.b 2>&5 || hard_links=no
14538   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14539   { echo "$as_me:$LINENO: result: $hard_links" >&5
14540 echo "${ECHO_T}$hard_links" >&6; }
14541   if test "$hard_links" = no; then
14542     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14543 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14544     need_locks=warn
14545   fi
14546 else
14547   need_locks=no
14548 fi
14549
14550 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14551 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14552
14553   runpath_var=
14554   allow_undefined_flag_F77=
14555   enable_shared_with_static_runtimes_F77=no
14556   archive_cmds_F77=
14557   archive_expsym_cmds_F77=
14558   old_archive_From_new_cmds_F77=
14559   old_archive_from_expsyms_cmds_F77=
14560   export_dynamic_flag_spec_F77=
14561   whole_archive_flag_spec_F77=
14562   thread_safe_flag_spec_F77=
14563   hardcode_libdir_flag_spec_F77=
14564   hardcode_libdir_flag_spec_ld_F77=
14565   hardcode_libdir_separator_F77=
14566   hardcode_direct_F77=no
14567   hardcode_minus_L_F77=no
14568   hardcode_shlibpath_var_F77=unsupported
14569   link_all_deplibs_F77=unknown
14570   hardcode_automatic_F77=no
14571   module_cmds_F77=
14572   module_expsym_cmds_F77=
14573   always_export_symbols_F77=no
14574   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14575   # include_expsyms should be a list of space-separated symbols to be *always*
14576   # included in the symbol list
14577   include_expsyms_F77=
14578   # exclude_expsyms can be an extended regexp of symbols to exclude
14579   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14580   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14581   # as well as any symbol that contains `d'.
14582   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14583   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14584   # platforms (ab)use it in PIC code, but their linkers get confused if
14585   # the symbol is explicitly referenced.  Since portable code cannot
14586   # rely on this symbol name, it's probably fine to never include it in
14587   # preloaded symbol tables.
14588   # Exclude shared library initialization/finalization symbols.
14589   extract_expsyms_cmds=
14590   # Just being paranoid about ensuring that cc_basename is set.
14591   for cc_temp in $compiler""; do
14592   case $cc_temp in
14593     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14594     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14595     \-*) ;;
14596     *) break;;
14597   esac
14598 done
14599 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14600
14601   case $host_os in
14602   cygwin* | mingw* | pw32*)
14603     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14604     # When not using gcc, we currently assume that we are using
14605     # Microsoft Visual C++.
14606     if test "$GCC" != yes; then
14607       with_gnu_ld=no
14608     fi
14609     ;;
14610   interix*)
14611     # we just hope/assume this is gcc and not c89 (= MSVC++)
14612     with_gnu_ld=yes
14613     ;;
14614   openbsd*)
14615     with_gnu_ld=no
14616     ;;
14617   esac
14618
14619   ld_shlibs_F77=yes
14620   if test "$with_gnu_ld" = yes; then
14621     # If archive_cmds runs LD, not CC, wlarc should be empty
14622     wlarc='${wl}'
14623
14624     # Set some defaults for GNU ld with shared library support. These
14625     # are reset later if shared libraries are not supported. Putting them
14626     # here allows them to be overridden if necessary.
14627     runpath_var=LD_RUN_PATH
14628     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14629     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14630     # ancient GNU ld didn't support --whole-archive et. al.
14631     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14632         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14633       else
14634         whole_archive_flag_spec_F77=
14635     fi
14636     supports_anon_versioning=no
14637     case `$LD -v 2>/dev/null` in
14638       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14639       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14640       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14641       *\ 2.11.*) ;; # other 2.11 versions
14642       *) supports_anon_versioning=yes ;;
14643     esac
14644
14645     # See if GNU ld supports shared libraries.
14646     case $host_os in
14647     aix[3-9]*)
14648       # On AIX/PPC, the GNU linker is very broken
14649       if test "$host_cpu" != ia64; then
14650         ld_shlibs_F77=no
14651         cat <<EOF 1>&2
14652
14653 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14654 *** to be unable to reliably create shared libraries on AIX.
14655 *** Therefore, libtool is disabling shared libraries support.  If you
14656 *** really care for shared libraries, you may want to modify your PATH
14657 *** so that a non-GNU linker is found, and then restart.
14658
14659 EOF
14660       fi
14661       ;;
14662
14663     amigaos*)
14664       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)'
14665       hardcode_libdir_flag_spec_F77='-L$libdir'
14666       hardcode_minus_L_F77=yes
14667
14668       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14669       # that the semantics of dynamic libraries on AmigaOS, at least up
14670       # to version 4, is to share data among multiple programs linked
14671       # with the same dynamic library.  Since this doesn't match the
14672       # behavior of shared libraries on other platforms, we can't use
14673       # them.
14674       ld_shlibs_F77=no
14675       ;;
14676
14677     beos*)
14678       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14679         allow_undefined_flag_F77=unsupported
14680         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14681         # support --undefined.  This deserves some investigation.  FIXME
14682         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14683       else
14684         ld_shlibs_F77=no
14685       fi
14686       ;;
14687
14688     cygwin* | mingw* | pw32*)
14689       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14690       # as there is no search path for DLLs.
14691       hardcode_libdir_flag_spec_F77='-L$libdir'
14692       allow_undefined_flag_F77=unsupported
14693       always_export_symbols_F77=no
14694       enable_shared_with_static_runtimes_F77=yes
14695       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14696
14697       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14698         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14699         # If the export-symbols file already is a .def file (1st line
14700         # is EXPORTS), use it as is; otherwise, prepend...
14701         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14702           cp $export_symbols $output_objdir/$soname.def;
14703         else
14704           echo EXPORTS > $output_objdir/$soname.def;
14705           cat $export_symbols >> $output_objdir/$soname.def;
14706         fi~
14707         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14708       else
14709         ld_shlibs_F77=no
14710       fi
14711       ;;
14712
14713     interix[3-9]*)
14714       hardcode_direct_F77=no
14715       hardcode_shlibpath_var_F77=no
14716       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14717       export_dynamic_flag_spec_F77='${wl}-E'
14718       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14719       # Instead, shared libraries are loaded at an image base (0x10000000 by
14720       # default) and relocated if they conflict, which is a slow very memory
14721       # consuming and fragmenting process.  To avoid this, we pick a random,
14722       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14723       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14724       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'
14725       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'
14726       ;;
14727
14728     gnu* | linux* | k*bsd*-gnu)
14729       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14730         tmp_addflag=
14731         case $cc_basename,$host_cpu in
14732         pgcc*)                          # Portland Group C compiler
14733           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'
14734           tmp_addflag=' $pic_flag'
14735           ;;
14736         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14737           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'
14738           tmp_addflag=' $pic_flag -Mnomain' ;;
14739         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14740           tmp_addflag=' -i_dynamic' ;;
14741         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14742           tmp_addflag=' -i_dynamic -nofor_main' ;;
14743         ifc* | ifort*)                  # Intel Fortran compiler
14744           tmp_addflag=' -nofor_main' ;;
14745         esac
14746         case `$CC -V 2>&1 | sed 5q` in
14747         *Sun\ C*)                       # Sun C 5.9
14748           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'
14749           tmp_sharedflag='-G' ;;
14750         *Sun\ F*)                       # Sun Fortran 8.3
14751           tmp_sharedflag='-G' ;;
14752         *)
14753           tmp_sharedflag='-shared' ;;
14754         esac
14755         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14756
14757         if test $supports_anon_versioning = yes; then
14758           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14759   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14760   $echo "local: *; };" >> $output_objdir/$libname.ver~
14761           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14762         fi
14763         link_all_deplibs_F77=no
14764       else
14765         ld_shlibs_F77=no
14766       fi
14767       ;;
14768
14769     netbsd* | netbsdelf*-gnu)
14770       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14771         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14772         wlarc=
14773       else
14774         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14776       fi
14777       ;;
14778
14779     solaris*)
14780       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14781         ld_shlibs_F77=no
14782         cat <<EOF 1>&2
14783
14784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14785 *** create shared libraries on Solaris systems.  Therefore, libtool
14786 *** is disabling shared libraries support.  We urge you to upgrade GNU
14787 *** binutils to release 2.9.1 or newer.  Another option is to modify
14788 *** your PATH or compiler configuration so that the native linker is
14789 *** used, and then restart.
14790
14791 EOF
14792       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14793         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14794         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14795       else
14796         ld_shlibs_F77=no
14797       fi
14798       ;;
14799
14800     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14801       case `$LD -v 2>&1` in
14802         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14803         ld_shlibs_F77=no
14804         cat <<_LT_EOF 1>&2
14805
14806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14807 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14808 *** is disabling shared libraries support.  We urge you to upgrade GNU
14809 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14810 *** your PATH or compiler configuration so that the native linker is
14811 *** used, and then restart.
14812
14813 _LT_EOF
14814         ;;
14815         *)
14816           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14817             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14818             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14819             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14820           else
14821             ld_shlibs_F77=no
14822           fi
14823         ;;
14824       esac
14825       ;;
14826
14827     sunos4*)
14828       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14829       wlarc=
14830       hardcode_direct_F77=yes
14831       hardcode_shlibpath_var_F77=no
14832       ;;
14833
14834     *)
14835       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14836         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14838       else
14839         ld_shlibs_F77=no
14840       fi
14841       ;;
14842     esac
14843
14844     if test "$ld_shlibs_F77" = no; then
14845       runpath_var=
14846       hardcode_libdir_flag_spec_F77=
14847       export_dynamic_flag_spec_F77=
14848       whole_archive_flag_spec_F77=
14849     fi
14850   else
14851     # PORTME fill in a description of your system's linker (not GNU ld)
14852     case $host_os in
14853     aix3*)
14854       allow_undefined_flag_F77=unsupported
14855       always_export_symbols_F77=yes
14856       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'
14857       # Note: this linker hardcodes the directories in LIBPATH if there
14858       # are no directories specified by -L.
14859       hardcode_minus_L_F77=yes
14860       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14861         # Neither direct hardcoding nor static linking is supported with a
14862         # broken collect2.
14863         hardcode_direct_F77=unsupported
14864       fi
14865       ;;
14866
14867     aix[4-9]*)
14868       if test "$host_cpu" = ia64; then
14869         # On IA64, the linker does run time linking by default, so we don't
14870         # have to do anything special.
14871         aix_use_runtimelinking=no
14872         exp_sym_flag='-Bexport'
14873         no_entry_flag=""
14874       else
14875         # If we're using GNU nm, then we don't want the "-C" option.
14876         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14877         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14878           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'
14879         else
14880           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'
14881         fi
14882         aix_use_runtimelinking=no
14883
14884         # Test if we are trying to use run time linking or normal
14885         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14886         # need to do runtime linking.
14887         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14888           for ld_flag in $LDFLAGS; do
14889           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14890             aix_use_runtimelinking=yes
14891             break
14892           fi
14893           done
14894           ;;
14895         esac
14896
14897         exp_sym_flag='-bexport'
14898         no_entry_flag='-bnoentry'
14899       fi
14900
14901       # When large executables or shared objects are built, AIX ld can
14902       # have problems creating the table of contents.  If linking a library
14903       # or program results in "error TOC overflow" add -mminimal-toc to
14904       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14905       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14906
14907       archive_cmds_F77=''
14908       hardcode_direct_F77=yes
14909       hardcode_libdir_separator_F77=':'
14910       link_all_deplibs_F77=yes
14911
14912       if test "$GCC" = yes; then
14913         case $host_os in aix4.[012]|aix4.[012].*)
14914         # We only want to do this on AIX 4.2 and lower, the check
14915         # below for broken collect2 doesn't work under 4.3+
14916           collect2name=`${CC} -print-prog-name=collect2`
14917           if test -f "$collect2name" && \
14918            strings "$collect2name" | grep resolve_lib_name >/dev/null
14919           then
14920           # We have reworked collect2
14921           :
14922           else
14923           # We have old collect2
14924           hardcode_direct_F77=unsupported
14925           # It fails to find uninstalled libraries when the uninstalled
14926           # path is not listed in the libpath.  Setting hardcode_minus_L
14927           # to unsupported forces relinking
14928           hardcode_minus_L_F77=yes
14929           hardcode_libdir_flag_spec_F77='-L$libdir'
14930           hardcode_libdir_separator_F77=
14931           fi
14932           ;;
14933         esac
14934         shared_flag='-shared'
14935         if test "$aix_use_runtimelinking" = yes; then
14936           shared_flag="$shared_flag "'${wl}-G'
14937         fi
14938       else
14939         # not using gcc
14940         if test "$host_cpu" = ia64; then
14941         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14942         # chokes on -Wl,-G. The following line is correct:
14943           shared_flag='-G'
14944         else
14945           if test "$aix_use_runtimelinking" = yes; then
14946             shared_flag='${wl}-G'
14947           else
14948             shared_flag='${wl}-bM:SRE'
14949           fi
14950         fi
14951       fi
14952
14953       # It seems that -bexpall does not export symbols beginning with
14954       # underscore (_), so it is better to generate a list of symbols to export.
14955       always_export_symbols_F77=yes
14956       if test "$aix_use_runtimelinking" = yes; then
14957         # Warning - without using the other runtime loading flags (-brtl),
14958         # -berok will link without error, but may produce a broken library.
14959         allow_undefined_flag_F77='-berok'
14960        # Determine the default libpath from the value encoded in an empty executable.
14961        cat >conftest.$ac_ext <<_ACEOF
14962       program main
14963
14964       end
14965 _ACEOF
14966 rm -f conftest.$ac_objext conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_link") 2>conftest.er1
14974   ac_status=$?
14975   grep -v '^ *+' conftest.er1 >conftest.err
14976   rm -f conftest.er1
14977   cat conftest.err >&5
14978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979   (exit $ac_status); } && {
14980          test -z "$ac_f77_werror_flag" ||
14981          test ! -s conftest.err
14982        } && test -s conftest$ac_exeext &&
14983        $as_test_x conftest$ac_exeext; then
14984
14985 lt_aix_libpath_sed='
14986     /Import File Strings/,/^$/ {
14987         /^0/ {
14988             s/^0  *\(.*\)$/\1/
14989             p
14990         }
14991     }'
14992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14993 # Check for a 64-bit object if we didn't find anything.
14994 if test -z "$aix_libpath"; then
14995   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14996 fi
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001
15002 fi
15003
15004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15005       conftest$ac_exeext conftest.$ac_ext
15006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15007
15008        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15009         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"
15010        else
15011         if test "$host_cpu" = ia64; then
15012           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15013           allow_undefined_flag_F77="-z nodefs"
15014           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"
15015         else
15016          # Determine the default libpath from the value encoded in an empty executable.
15017          cat >conftest.$ac_ext <<_ACEOF
15018       program main
15019
15020       end
15021 _ACEOF
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (ac_try="$ac_link"
15024 case "(($ac_try" in
15025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026   *) ac_try_echo=$ac_try;;
15027 esac
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029   (eval "$ac_link") 2>conftest.er1
15030   ac_status=$?
15031   grep -v '^ *+' conftest.er1 >conftest.err
15032   rm -f conftest.er1
15033   cat conftest.err >&5
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); } && {
15036          test -z "$ac_f77_werror_flag" ||
15037          test ! -s conftest.err
15038        } && test -s conftest$ac_exeext &&
15039        $as_test_x conftest$ac_exeext; then
15040
15041 lt_aix_libpath_sed='
15042     /Import File Strings/,/^$/ {
15043         /^0/ {
15044             s/^0  *\(.*\)$/\1/
15045             p
15046         }
15047     }'
15048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 # Check for a 64-bit object if we didn't find anything.
15050 if test -z "$aix_libpath"; then
15051   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15052 fi
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057
15058 fi
15059
15060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061       conftest$ac_exeext conftest.$ac_ext
15062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15063
15064          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15065           # Warning - without using the other run time loading flags,
15066           # -berok will link without error, but may produce a broken library.
15067           no_undefined_flag_F77=' ${wl}-bernotok'
15068           allow_undefined_flag_F77=' ${wl}-berok'
15069           # Exported symbols can be pulled into shared objects from archives
15070           whole_archive_flag_spec_F77='$convenience'
15071           archive_cmds_need_lc_F77=yes
15072           # This is similar to how AIX traditionally builds its shared libraries.
15073           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'
15074         fi
15075       fi
15076       ;;
15077
15078     amigaos*)
15079       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)'
15080       hardcode_libdir_flag_spec_F77='-L$libdir'
15081       hardcode_minus_L_F77=yes
15082       # see comment about different semantics on the GNU ld section
15083       ld_shlibs_F77=no
15084       ;;
15085
15086     bsdi[45]*)
15087       export_dynamic_flag_spec_F77=-rdynamic
15088       ;;
15089
15090     cygwin* | mingw* | pw32*)
15091       # When not using gcc, we currently assume that we are using
15092       # Microsoft Visual C++.
15093       # hardcode_libdir_flag_spec is actually meaningless, as there is
15094       # no search path for DLLs.
15095       hardcode_libdir_flag_spec_F77=' '
15096       allow_undefined_flag_F77=unsupported
15097       # Tell ltmain to make .lib files, not .a files.
15098       libext=lib
15099       # Tell ltmain to make .dll files, not .so files.
15100       shrext_cmds=".dll"
15101       # FIXME: Setting linknames here is a bad hack.
15102       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15103       # The linker will automatically build a .lib file if we build a DLL.
15104       old_archive_From_new_cmds_F77='true'
15105       # FIXME: Should let the user specify the lib program.
15106       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15107       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15108       enable_shared_with_static_runtimes_F77=yes
15109       ;;
15110
15111     darwin* | rhapsody*)
15112       case $host_os in
15113         rhapsody* | darwin1.[012])
15114          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15115          ;;
15116        *) # Darwin 1.3 on
15117          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15118            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15119          else
15120            case ${MACOSX_DEPLOYMENT_TARGET} in
15121              10.[012])
15122                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15123                ;;
15124              10.*)
15125                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15126                ;;
15127            esac
15128          fi
15129          ;;
15130       esac
15131       archive_cmds_need_lc_F77=no
15132       hardcode_direct_F77=no
15133       hardcode_automatic_F77=yes
15134       hardcode_shlibpath_var_F77=unsupported
15135       whole_archive_flag_spec_F77=''
15136       link_all_deplibs_F77=yes
15137     if test "$GCC" = yes ; then
15138         output_verbose_link_cmd='echo'
15139         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}"
15140         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15141         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}"
15142         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}"
15143     else
15144       case $cc_basename in
15145         xlc*)
15146          output_verbose_link_cmd='echo'
15147          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15148          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15149           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15150          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}'
15151           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}'
15152           ;;
15153        *)
15154          ld_shlibs_F77=no
15155           ;;
15156       esac
15157     fi
15158       ;;
15159
15160     dgux*)
15161       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15162       hardcode_libdir_flag_spec_F77='-L$libdir'
15163       hardcode_shlibpath_var_F77=no
15164       ;;
15165
15166     freebsd1*)
15167       ld_shlibs_F77=no
15168       ;;
15169
15170     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15171     # support.  Future versions do this automatically, but an explicit c++rt0.o
15172     # does not break anything, and helps significantly (at the cost of a little
15173     # extra space).
15174     freebsd2.2*)
15175       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15176       hardcode_libdir_flag_spec_F77='-R$libdir'
15177       hardcode_direct_F77=yes
15178       hardcode_shlibpath_var_F77=no
15179       ;;
15180
15181     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15182     freebsd2*)
15183       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15184       hardcode_direct_F77=yes
15185       hardcode_minus_L_F77=yes
15186       hardcode_shlibpath_var_F77=no
15187       ;;
15188
15189     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15190     freebsd* | dragonfly*)
15191       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15192       hardcode_libdir_flag_spec_F77='-R$libdir'
15193       hardcode_direct_F77=yes
15194       hardcode_shlibpath_var_F77=no
15195       ;;
15196
15197     hpux9*)
15198       if test "$GCC" = yes; then
15199         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'
15200       else
15201         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'
15202       fi
15203       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15204       hardcode_libdir_separator_F77=:
15205       hardcode_direct_F77=yes
15206
15207       # hardcode_minus_L: Not really in the search PATH,
15208       # but as the default location of the library.
15209       hardcode_minus_L_F77=yes
15210       export_dynamic_flag_spec_F77='${wl}-E'
15211       ;;
15212
15213     hpux10*)
15214       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15215         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15216       else
15217         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15218       fi
15219       if test "$with_gnu_ld" = no; then
15220         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15221         hardcode_libdir_separator_F77=:
15222
15223         hardcode_direct_F77=yes
15224         export_dynamic_flag_spec_F77='${wl}-E'
15225
15226         # hardcode_minus_L: Not really in the search PATH,
15227         # but as the default location of the library.
15228         hardcode_minus_L_F77=yes
15229       fi
15230       ;;
15231
15232     hpux11*)
15233       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15234         case $host_cpu in
15235         hppa*64*)
15236           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15237           ;;
15238         ia64*)
15239           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15240           ;;
15241         *)
15242           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15243           ;;
15244         esac
15245       else
15246         case $host_cpu in
15247         hppa*64*)
15248           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15249           ;;
15250         ia64*)
15251           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15252           ;;
15253         *)
15254           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15255           ;;
15256         esac
15257       fi
15258       if test "$with_gnu_ld" = no; then
15259         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15260         hardcode_libdir_separator_F77=:
15261
15262         case $host_cpu in
15263         hppa*64*|ia64*)
15264           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15265           hardcode_direct_F77=no
15266           hardcode_shlibpath_var_F77=no
15267           ;;
15268         *)
15269           hardcode_direct_F77=yes
15270           export_dynamic_flag_spec_F77='${wl}-E'
15271
15272           # hardcode_minus_L: Not really in the search PATH,
15273           # but as the default location of the library.
15274           hardcode_minus_L_F77=yes
15275           ;;
15276         esac
15277       fi
15278       ;;
15279
15280     irix5* | irix6* | nonstopux*)
15281       if test "$GCC" = yes; then
15282         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'
15283       else
15284         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'
15285         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15286       fi
15287       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15288       hardcode_libdir_separator_F77=:
15289       link_all_deplibs_F77=yes
15290       ;;
15291
15292     netbsd* | netbsdelf*-gnu)
15293       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15294         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15295       else
15296         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15297       fi
15298       hardcode_libdir_flag_spec_F77='-R$libdir'
15299       hardcode_direct_F77=yes
15300       hardcode_shlibpath_var_F77=no
15301       ;;
15302
15303     newsos6)
15304       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305       hardcode_direct_F77=yes
15306       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15307       hardcode_libdir_separator_F77=:
15308       hardcode_shlibpath_var_F77=no
15309       ;;
15310
15311     openbsd*)
15312       if test -f /usr/libexec/ld.so; then
15313         hardcode_direct_F77=yes
15314         hardcode_shlibpath_var_F77=no
15315         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15316           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15317           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15318           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15319           export_dynamic_flag_spec_F77='${wl}-E'
15320         else
15321           case $host_os in
15322            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15323              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15324              hardcode_libdir_flag_spec_F77='-R$libdir'
15325              ;;
15326            *)
15327              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15328              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15329              ;;
15330           esac
15331         fi
15332       else
15333         ld_shlibs_F77=no
15334       fi
15335       ;;
15336
15337     os2*)
15338       hardcode_libdir_flag_spec_F77='-L$libdir'
15339       hardcode_minus_L_F77=yes
15340       allow_undefined_flag_F77=unsupported
15341       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'
15342       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15343       ;;
15344
15345     osf3*)
15346       if test "$GCC" = yes; then
15347         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15348         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'
15349       else
15350         allow_undefined_flag_F77=' -expect_unresolved \*'
15351         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'
15352       fi
15353       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15354       hardcode_libdir_separator_F77=:
15355       ;;
15356
15357     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15358       if test "$GCC" = yes; then
15359         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15360         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'
15361         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15362       else
15363         allow_undefined_flag_F77=' -expect_unresolved \*'
15364         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'
15365         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~
15366         $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'
15367
15368         # Both c and cxx compiler support -rpath directly
15369         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15370       fi
15371       hardcode_libdir_separator_F77=:
15372       ;;
15373
15374     solaris*)
15375       no_undefined_flag_F77=' -z text'
15376       if test "$GCC" = yes; then
15377         wlarc='${wl}'
15378         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15379         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15380           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15381       else
15382         wlarc=''
15383         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15384         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15385         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15386       fi
15387       hardcode_libdir_flag_spec_F77='-R$libdir'
15388       hardcode_shlibpath_var_F77=no
15389       case $host_os in
15390       solaris2.[0-5] | solaris2.[0-5].*) ;;
15391       *)
15392         # The compiler driver will combine and reorder linker options,
15393         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15394         # but is careful enough not to reorder.
15395         # Supported since Solaris 2.6 (maybe 2.5.1?)
15396         if test "$GCC" = yes; then
15397           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15398         else
15399           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15400         fi
15401         ;;
15402       esac
15403       link_all_deplibs_F77=yes
15404       ;;
15405
15406     sunos4*)
15407       if test "x$host_vendor" = xsequent; then
15408         # Use $CC to link under sequent, because it throws in some extra .o
15409         # files that make .init and .fini sections work.
15410         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15411       else
15412         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15413       fi
15414       hardcode_libdir_flag_spec_F77='-L$libdir'
15415       hardcode_direct_F77=yes
15416       hardcode_minus_L_F77=yes
15417       hardcode_shlibpath_var_F77=no
15418       ;;
15419
15420     sysv4)
15421       case $host_vendor in
15422         sni)
15423           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15424           hardcode_direct_F77=yes # is this really true???
15425         ;;
15426         siemens)
15427           ## LD is ld it makes a PLAMLIB
15428           ## CC just makes a GrossModule.
15429           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15430           reload_cmds_F77='$CC -r -o $output$reload_objs'
15431           hardcode_direct_F77=no
15432         ;;
15433         motorola)
15434           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15435           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15436         ;;
15437       esac
15438       runpath_var='LD_RUN_PATH'
15439       hardcode_shlibpath_var_F77=no
15440       ;;
15441
15442     sysv4.3*)
15443       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15444       hardcode_shlibpath_var_F77=no
15445       export_dynamic_flag_spec_F77='-Bexport'
15446       ;;
15447
15448     sysv4*MP*)
15449       if test -d /usr/nec; then
15450         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15451         hardcode_shlibpath_var_F77=no
15452         runpath_var=LD_RUN_PATH
15453         hardcode_runpath_var=yes
15454         ld_shlibs_F77=yes
15455       fi
15456       ;;
15457
15458     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15459       no_undefined_flag_F77='${wl}-z,text'
15460       archive_cmds_need_lc_F77=no
15461       hardcode_shlibpath_var_F77=no
15462       runpath_var='LD_RUN_PATH'
15463
15464       if test "$GCC" = yes; then
15465         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15466         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15467       else
15468         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15469         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470       fi
15471       ;;
15472
15473     sysv5* | sco3.2v5* | sco5v6*)
15474       # Note: We can NOT use -z defs as we might desire, because we do not
15475       # link with -lc, and that would cause any symbols used from libc to
15476       # always be unresolved, which means just about no library would
15477       # ever link correctly.  If we're not using GNU ld we use -z text
15478       # though, which does catch some bad symbols but isn't as heavy-handed
15479       # as -z defs.
15480       no_undefined_flag_F77='${wl}-z,text'
15481       allow_undefined_flag_F77='${wl}-z,nodefs'
15482       archive_cmds_need_lc_F77=no
15483       hardcode_shlibpath_var_F77=no
15484       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15485       hardcode_libdir_separator_F77=':'
15486       link_all_deplibs_F77=yes
15487       export_dynamic_flag_spec_F77='${wl}-Bexport'
15488       runpath_var='LD_RUN_PATH'
15489
15490       if test "$GCC" = yes; then
15491         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15492         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15493       else
15494         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15495         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15496       fi
15497       ;;
15498
15499     uts4*)
15500       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15501       hardcode_libdir_flag_spec_F77='-L$libdir'
15502       hardcode_shlibpath_var_F77=no
15503       ;;
15504
15505     *)
15506       ld_shlibs_F77=no
15507       ;;
15508     esac
15509   fi
15510
15511 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15512 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15513 test "$ld_shlibs_F77" = no && can_build_shared=no
15514
15515 #
15516 # Do we need to explicitly link libc?
15517 #
15518 case "x$archive_cmds_need_lc_F77" in
15519 x|xyes)
15520   # Assume -lc should be added
15521   archive_cmds_need_lc_F77=yes
15522
15523   if test "$enable_shared" = yes && test "$GCC" = yes; then
15524     case $archive_cmds_F77 in
15525     *'~'*)
15526       # FIXME: we may have to deal with multi-command sequences.
15527       ;;
15528     '$CC '*)
15529       # Test whether the compiler implicitly links with -lc since on some
15530       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15531       # to ld, don't add -lc before -lgcc.
15532       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15533 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15534       $rm conftest*
15535       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15536
15537       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538   (eval $ac_compile) 2>&5
15539   ac_status=$?
15540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541   (exit $ac_status); } 2>conftest.err; then
15542         soname=conftest
15543         lib=conftest
15544         libobjs=conftest.$ac_objext
15545         deplibs=
15546         wl=$lt_prog_compiler_wl_F77
15547         pic_flag=$lt_prog_compiler_pic_F77
15548         compiler_flags=-v
15549         linker_flags=-v
15550         verstring=
15551         output_objdir=.
15552         libname=conftest
15553         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15554         allow_undefined_flag_F77=
15555         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15556   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }
15560         then
15561           archive_cmds_need_lc_F77=no
15562         else
15563           archive_cmds_need_lc_F77=yes
15564         fi
15565         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15566       else
15567         cat conftest.err 1>&5
15568       fi
15569       $rm conftest*
15570       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15571 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15572       ;;
15573     esac
15574   fi
15575   ;;
15576 esac
15577
15578 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15579 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15580 library_names_spec=
15581 libname_spec='lib$name'
15582 soname_spec=
15583 shrext_cmds=".so"
15584 postinstall_cmds=
15585 postuninstall_cmds=
15586 finish_cmds=
15587 finish_eval=
15588 shlibpath_var=
15589 shlibpath_overrides_runpath=unknown
15590 version_type=none
15591 dynamic_linker="$host_os ld.so"
15592 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15593
15594 need_lib_prefix=unknown
15595 hardcode_into_libs=no
15596
15597 # when you set need_version to no, make sure it does not cause -set_version
15598 # flags to be left without arguments
15599 need_version=unknown
15600
15601 case $host_os in
15602 aix3*)
15603   version_type=linux
15604   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15605   shlibpath_var=LIBPATH
15606
15607   # AIX 3 has no versioning support, so we append a major version to the name.
15608   soname_spec='${libname}${release}${shared_ext}$major'
15609   ;;
15610
15611 aix[4-9]*)
15612   version_type=linux
15613   need_lib_prefix=no
15614   need_version=no
15615   hardcode_into_libs=yes
15616   if test "$host_cpu" = ia64; then
15617     # AIX 5 supports IA64
15618     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15619     shlibpath_var=LD_LIBRARY_PATH
15620   else
15621     # With GCC up to 2.95.x, collect2 would create an import file
15622     # for dependence libraries.  The import file would start with
15623     # the line `#! .'.  This would cause the generated library to
15624     # depend on `.', always an invalid library.  This was fixed in
15625     # development snapshots of GCC prior to 3.0.
15626     case $host_os in
15627       aix4 | aix4.[01] | aix4.[01].*)
15628       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15629            echo ' yes '
15630            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15631         :
15632       else
15633         can_build_shared=no
15634       fi
15635       ;;
15636     esac
15637     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15638     # soname into executable. Probably we can add versioning support to
15639     # collect2, so additional links can be useful in future.
15640     if test "$aix_use_runtimelinking" = yes; then
15641       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15642       # instead of lib<name>.a to let people know that these are not
15643       # typical AIX shared libraries.
15644       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645     else
15646       # We preserve .a as extension for shared libraries through AIX4.2
15647       # and later when we are not doing run time linking.
15648       library_names_spec='${libname}${release}.a $libname.a'
15649       soname_spec='${libname}${release}${shared_ext}$major'
15650     fi
15651     shlibpath_var=LIBPATH
15652   fi
15653   ;;
15654
15655 amigaos*)
15656   library_names_spec='$libname.ixlibrary $libname.a'
15657   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15658   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'
15659   ;;
15660
15661 beos*)
15662   library_names_spec='${libname}${shared_ext}'
15663   dynamic_linker="$host_os ld.so"
15664   shlibpath_var=LIBRARY_PATH
15665   ;;
15666
15667 bsdi[45]*)
15668   version_type=linux
15669   need_version=no
15670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15671   soname_spec='${libname}${release}${shared_ext}$major'
15672   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15673   shlibpath_var=LD_LIBRARY_PATH
15674   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15675   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15676   # the default ld.so.conf also contains /usr/contrib/lib and
15677   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15678   # libtool to hard-code these into programs
15679   ;;
15680
15681 cygwin* | mingw* | pw32*)
15682   version_type=windows
15683   shrext_cmds=".dll"
15684   need_version=no
15685   need_lib_prefix=no
15686
15687   case $GCC,$host_os in
15688   yes,cygwin* | yes,mingw* | yes,pw32*)
15689     library_names_spec='$libname.dll.a'
15690     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15691     postinstall_cmds='base_file=`basename \${file}`~
15692       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15693       dldir=$destdir/`dirname \$dlpath`~
15694       test -d \$dldir || mkdir -p \$dldir~
15695       $install_prog $dir/$dlname \$dldir/$dlname~
15696       chmod a+x \$dldir/$dlname'
15697     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15698       dlpath=$dir/\$dldll~
15699        $rm \$dlpath'
15700     shlibpath_overrides_runpath=yes
15701
15702     case $host_os in
15703     cygwin*)
15704       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15705       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15707       ;;
15708     mingw*)
15709       # MinGW DLLs use traditional 'lib' prefix
15710       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15711       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15712       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15713         # It is most probably a Windows format PATH printed by
15714         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15715         # path with ; separators, and with drive letters. We can handle the
15716         # drive letters (cygwin fileutils understands them), so leave them,
15717         # especially as we might pass files found there to a mingw objdump,
15718         # which wouldn't understand a cygwinified path. Ahh.
15719         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15720       else
15721         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15722       fi
15723       ;;
15724     pw32*)
15725       # pw32 DLLs use 'pw' prefix rather than 'lib'
15726       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15727       ;;
15728     esac
15729     ;;
15730
15731   *)
15732     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15733     ;;
15734   esac
15735   dynamic_linker='Win32 ld.exe'
15736   # FIXME: first we should search . and the directory the executable is in
15737   shlibpath_var=PATH
15738   ;;
15739
15740 darwin* | rhapsody*)
15741   dynamic_linker="$host_os dyld"
15742   version_type=darwin
15743   need_lib_prefix=no
15744   need_version=no
15745   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15746   soname_spec='${libname}${release}${major}$shared_ext'
15747   shlibpath_overrides_runpath=yes
15748   shlibpath_var=DYLD_LIBRARY_PATH
15749   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15750
15751   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15752   ;;
15753
15754 dgux*)
15755   version_type=linux
15756   need_lib_prefix=no
15757   need_version=no
15758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15759   soname_spec='${libname}${release}${shared_ext}$major'
15760   shlibpath_var=LD_LIBRARY_PATH
15761   ;;
15762
15763 freebsd1*)
15764   dynamic_linker=no
15765   ;;
15766
15767 freebsd* | dragonfly*)
15768   # DragonFly does not have aout.  When/if they implement a new
15769   # versioning mechanism, adjust this.
15770   if test -x /usr/bin/objformat; then
15771     objformat=`/usr/bin/objformat`
15772   else
15773     case $host_os in
15774     freebsd[123]*) objformat=aout ;;
15775     *) objformat=elf ;;
15776     esac
15777   fi
15778   version_type=freebsd-$objformat
15779   case $version_type in
15780     freebsd-elf*)
15781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15782       need_version=no
15783       need_lib_prefix=no
15784       ;;
15785     freebsd-*)
15786       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15787       need_version=yes
15788       ;;
15789   esac
15790   shlibpath_var=LD_LIBRARY_PATH
15791   case $host_os in
15792   freebsd2*)
15793     shlibpath_overrides_runpath=yes
15794     ;;
15795   freebsd3.[01]* | freebsdelf3.[01]*)
15796     shlibpath_overrides_runpath=yes
15797     hardcode_into_libs=yes
15798     ;;
15799   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15800   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15801     shlibpath_overrides_runpath=no
15802     hardcode_into_libs=yes
15803     ;;
15804   *) # from 4.6 on, and DragonFly
15805     shlibpath_overrides_runpath=yes
15806     hardcode_into_libs=yes
15807     ;;
15808   esac
15809   ;;
15810
15811 gnu*)
15812   version_type=linux
15813   need_lib_prefix=no
15814   need_version=no
15815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15816   soname_spec='${libname}${release}${shared_ext}$major'
15817   shlibpath_var=LD_LIBRARY_PATH
15818   hardcode_into_libs=yes
15819   ;;
15820
15821 hpux9* | hpux10* | hpux11*)
15822   # Give a soname corresponding to the major version so that dld.sl refuses to
15823   # link against other versions.
15824   version_type=sunos
15825   need_lib_prefix=no
15826   need_version=no
15827   case $host_cpu in
15828   ia64*)
15829     shrext_cmds='.so'
15830     hardcode_into_libs=yes
15831     dynamic_linker="$host_os dld.so"
15832     shlibpath_var=LD_LIBRARY_PATH
15833     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835     soname_spec='${libname}${release}${shared_ext}$major'
15836     if test "X$HPUX_IA64_MODE" = X32; then
15837       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15838     else
15839       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15840     fi
15841     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15842     ;;
15843    hppa*64*)
15844      shrext_cmds='.sl'
15845      hardcode_into_libs=yes
15846      dynamic_linker="$host_os dld.sl"
15847      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15848      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15849      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15850      soname_spec='${libname}${release}${shared_ext}$major'
15851      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15852      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15853      ;;
15854    *)
15855     shrext_cmds='.sl'
15856     dynamic_linker="$host_os dld.sl"
15857     shlibpath_var=SHLIB_PATH
15858     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860     soname_spec='${libname}${release}${shared_ext}$major'
15861     ;;
15862   esac
15863   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15864   postinstall_cmds='chmod 555 $lib'
15865   ;;
15866
15867 interix[3-9]*)
15868   version_type=linux
15869   need_lib_prefix=no
15870   need_version=no
15871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15872   soname_spec='${libname}${release}${shared_ext}$major'
15873   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15874   shlibpath_var=LD_LIBRARY_PATH
15875   shlibpath_overrides_runpath=no
15876   hardcode_into_libs=yes
15877   ;;
15878
15879 irix5* | irix6* | nonstopux*)
15880   case $host_os in
15881     nonstopux*) version_type=nonstopux ;;
15882     *)
15883         if test "$lt_cv_prog_gnu_ld" = yes; then
15884                 version_type=linux
15885         else
15886                 version_type=irix
15887         fi ;;
15888   esac
15889   need_lib_prefix=no
15890   need_version=no
15891   soname_spec='${libname}${release}${shared_ext}$major'
15892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15893   case $host_os in
15894   irix5* | nonstopux*)
15895     libsuff= shlibsuff=
15896     ;;
15897   *)
15898     case $LD in # libtool.m4 will add one of these switches to LD
15899     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15900       libsuff= shlibsuff= libmagic=32-bit;;
15901     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15902       libsuff=32 shlibsuff=N32 libmagic=N32;;
15903     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15904       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15905     *) libsuff= shlibsuff= libmagic=never-match;;
15906     esac
15907     ;;
15908   esac
15909   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15910   shlibpath_overrides_runpath=no
15911   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15912   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15913   hardcode_into_libs=yes
15914   ;;
15915
15916 # No shared lib support for Linux oldld, aout, or coff.
15917 linux*oldld* | linux*aout* | linux*coff*)
15918   dynamic_linker=no
15919   ;;
15920
15921 # This must be Linux ELF.
15922 linux* | k*bsd*-gnu)
15923   version_type=linux
15924   need_lib_prefix=no
15925   need_version=no
15926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927   soname_spec='${libname}${release}${shared_ext}$major'
15928   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15929   shlibpath_var=LD_LIBRARY_PATH
15930   shlibpath_overrides_runpath=no
15931   # This implies no fast_install, which is unacceptable.
15932   # Some rework will be needed to allow for fast_install
15933   # before this can be enabled.
15934   hardcode_into_libs=yes
15935
15936   # Append ld.so.conf contents to the search path
15937   if test -f /etc/ld.so.conf; then
15938     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' ' '`
15939     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15940   fi
15941
15942   # We used to test for /lib/ld.so.1 and disable shared libraries on
15943   # powerpc, because MkLinux only supported shared libraries with the
15944   # GNU dynamic linker.  Since this was broken with cross compilers,
15945   # most powerpc-linux boxes support dynamic linking these days and
15946   # people can always --disable-shared, the test was removed, and we
15947   # assume the GNU/Linux dynamic linker is in use.
15948   dynamic_linker='GNU/Linux ld.so'
15949   ;;
15950
15951 netbsdelf*-gnu)
15952   version_type=linux
15953   need_lib_prefix=no
15954   need_version=no
15955   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15956   soname_spec='${libname}${release}${shared_ext}$major'
15957   shlibpath_var=LD_LIBRARY_PATH
15958   shlibpath_overrides_runpath=no
15959   hardcode_into_libs=yes
15960   dynamic_linker='NetBSD ld.elf_so'
15961   ;;
15962
15963 netbsd*)
15964   version_type=sunos
15965   need_lib_prefix=no
15966   need_version=no
15967   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15969     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15970     dynamic_linker='NetBSD (a.out) ld.so'
15971   else
15972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15973     soname_spec='${libname}${release}${shared_ext}$major'
15974     dynamic_linker='NetBSD ld.elf_so'
15975   fi
15976   shlibpath_var=LD_LIBRARY_PATH
15977   shlibpath_overrides_runpath=yes
15978   hardcode_into_libs=yes
15979   ;;
15980
15981 newsos6)
15982   version_type=linux
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15984   shlibpath_var=LD_LIBRARY_PATH
15985   shlibpath_overrides_runpath=yes
15986   ;;
15987
15988 nto-qnx*)
15989   version_type=linux
15990   need_lib_prefix=no
15991   need_version=no
15992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993   soname_spec='${libname}${release}${shared_ext}$major'
15994   shlibpath_var=LD_LIBRARY_PATH
15995   shlibpath_overrides_runpath=yes
15996   ;;
15997
15998 openbsd*)
15999   version_type=sunos
16000   sys_lib_dlsearch_path_spec="/usr/lib"
16001   need_lib_prefix=no
16002   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16003   case $host_os in
16004     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16005     *)                         need_version=no  ;;
16006   esac
16007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16008   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16009   shlibpath_var=LD_LIBRARY_PATH
16010   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16011     case $host_os in
16012       openbsd2.[89] | openbsd2.[89].*)
16013         shlibpath_overrides_runpath=no
16014         ;;
16015       *)
16016         shlibpath_overrides_runpath=yes
16017         ;;
16018       esac
16019   else
16020     shlibpath_overrides_runpath=yes
16021   fi
16022   ;;
16023
16024 os2*)
16025   libname_spec='$name'
16026   shrext_cmds=".dll"
16027   need_lib_prefix=no
16028   library_names_spec='$libname${shared_ext} $libname.a'
16029   dynamic_linker='OS/2 ld.exe'
16030   shlibpath_var=LIBPATH
16031   ;;
16032
16033 osf3* | osf4* | osf5*)
16034   version_type=osf
16035   need_lib_prefix=no
16036   need_version=no
16037   soname_spec='${libname}${release}${shared_ext}$major'
16038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16039   shlibpath_var=LD_LIBRARY_PATH
16040   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16041   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16042   ;;
16043
16044 rdos*)
16045   dynamic_linker=no
16046   ;;
16047
16048 solaris*)
16049   version_type=linux
16050   need_lib_prefix=no
16051   need_version=no
16052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053   soname_spec='${libname}${release}${shared_ext}$major'
16054   shlibpath_var=LD_LIBRARY_PATH
16055   shlibpath_overrides_runpath=yes
16056   hardcode_into_libs=yes
16057   # ldd complains unless libraries are executable
16058   postinstall_cmds='chmod +x $lib'
16059   ;;
16060
16061 sunos4*)
16062   version_type=sunos
16063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16064   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16065   shlibpath_var=LD_LIBRARY_PATH
16066   shlibpath_overrides_runpath=yes
16067   if test "$with_gnu_ld" = yes; then
16068     need_lib_prefix=no
16069   fi
16070   need_version=yes
16071   ;;
16072
16073 sysv4 | sysv4.3*)
16074   version_type=linux
16075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076   soname_spec='${libname}${release}${shared_ext}$major'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   case $host_vendor in
16079     sni)
16080       shlibpath_overrides_runpath=no
16081       need_lib_prefix=no
16082       export_dynamic_flag_spec='${wl}-Blargedynsym'
16083       runpath_var=LD_RUN_PATH
16084       ;;
16085     siemens)
16086       need_lib_prefix=no
16087       ;;
16088     motorola)
16089       need_lib_prefix=no
16090       need_version=no
16091       shlibpath_overrides_runpath=no
16092       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16093       ;;
16094   esac
16095   ;;
16096
16097 sysv4*MP*)
16098   if test -d /usr/nec ;then
16099     version_type=linux
16100     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16101     soname_spec='$libname${shared_ext}.$major'
16102     shlibpath_var=LD_LIBRARY_PATH
16103   fi
16104   ;;
16105
16106 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16107   version_type=freebsd-elf
16108   need_lib_prefix=no
16109   need_version=no
16110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16111   soname_spec='${libname}${release}${shared_ext}$major'
16112   shlibpath_var=LD_LIBRARY_PATH
16113   hardcode_into_libs=yes
16114   if test "$with_gnu_ld" = yes; then
16115     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16116     shlibpath_overrides_runpath=no
16117   else
16118     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16119     shlibpath_overrides_runpath=yes
16120     case $host_os in
16121       sco3.2v5*)
16122         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16123         ;;
16124     esac
16125   fi
16126   sys_lib_dlsearch_path_spec='/usr/lib'
16127   ;;
16128
16129 uts4*)
16130   version_type=linux
16131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132   soname_spec='${libname}${release}${shared_ext}$major'
16133   shlibpath_var=LD_LIBRARY_PATH
16134   ;;
16135
16136 *)
16137   dynamic_linker=no
16138   ;;
16139 esac
16140 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16141 echo "${ECHO_T}$dynamic_linker" >&6; }
16142 test "$dynamic_linker" = no && can_build_shared=no
16143
16144 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16148 fi
16149
16150 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16151 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16152   echo $ECHO_N "(cached) $ECHO_C" >&6
16153 else
16154   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16155 fi
16156
16157 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16158
16159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16160 if test "$GCC" = yes; then
16161   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16162 fi
16163
16164 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16165 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16166 hardcode_action_F77=
16167 if test -n "$hardcode_libdir_flag_spec_F77" || \
16168    test -n "$runpath_var_F77" || \
16169    test "X$hardcode_automatic_F77" = "Xyes" ; then
16170
16171   # We can hardcode non-existant directories.
16172   if test "$hardcode_direct_F77" != no &&
16173      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16174      # have to relink, otherwise we might link with an installed library
16175      # when we should be linking with a yet-to-be-installed one
16176      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16177      test "$hardcode_minus_L_F77" != no; then
16178     # Linking always hardcodes the temporary library directory.
16179     hardcode_action_F77=relink
16180   else
16181     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16182     hardcode_action_F77=immediate
16183   fi
16184 else
16185   # We cannot hardcode anything, or else we can only hardcode existing
16186   # directories.
16187   hardcode_action_F77=unsupported
16188 fi
16189 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16190 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16191
16192 if test "$hardcode_action_F77" = relink; then
16193   # Fast installation is not supported
16194   enable_fast_install=no
16195 elif test "$shlibpath_overrides_runpath" = yes ||
16196      test "$enable_shared" = no; then
16197   # Fast installation is not necessary
16198   enable_fast_install=needless
16199 fi
16200
16201
16202 # The else clause should only fire when bootstrapping the
16203 # libtool distribution, otherwise you forgot to ship ltmain.sh
16204 # with your package, and you will get complaints that there are
16205 # no rules to generate ltmain.sh.
16206 if test -f "$ltmain"; then
16207   # See if we are running on zsh, and set the options which allow our commands through
16208   # without removal of \ escapes.
16209   if test -n "${ZSH_VERSION+set}" ; then
16210     setopt NO_GLOB_SUBST
16211   fi
16212   # Now quote all the things that may contain metacharacters while being
16213   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16214   # variables and quote the copies for generation of the libtool script.
16215   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16216     SED SHELL STRIP \
16217     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16218     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16219     deplibs_check_method reload_flag reload_cmds need_locks \
16220     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16221     lt_cv_sys_global_symbol_to_c_name_address \
16222     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16223     old_postinstall_cmds old_postuninstall_cmds \
16224     compiler_F77 \
16225     CC_F77 \
16226     LD_F77 \
16227     lt_prog_compiler_wl_F77 \
16228     lt_prog_compiler_pic_F77 \
16229     lt_prog_compiler_static_F77 \
16230     lt_prog_compiler_no_builtin_flag_F77 \
16231     export_dynamic_flag_spec_F77 \
16232     thread_safe_flag_spec_F77 \
16233     whole_archive_flag_spec_F77 \
16234     enable_shared_with_static_runtimes_F77 \
16235     old_archive_cmds_F77 \
16236     old_archive_from_new_cmds_F77 \
16237     predep_objects_F77 \
16238     postdep_objects_F77 \
16239     predeps_F77 \
16240     postdeps_F77 \
16241     compiler_lib_search_path_F77 \
16242     compiler_lib_search_dirs_F77 \
16243     archive_cmds_F77 \
16244     archive_expsym_cmds_F77 \
16245     postinstall_cmds_F77 \
16246     postuninstall_cmds_F77 \
16247     old_archive_from_expsyms_cmds_F77 \
16248     allow_undefined_flag_F77 \
16249     no_undefined_flag_F77 \
16250     export_symbols_cmds_F77 \
16251     hardcode_libdir_flag_spec_F77 \
16252     hardcode_libdir_flag_spec_ld_F77 \
16253     hardcode_libdir_separator_F77 \
16254     hardcode_automatic_F77 \
16255     module_cmds_F77 \
16256     module_expsym_cmds_F77 \
16257     lt_cv_prog_compiler_c_o_F77 \
16258     fix_srcfile_path_F77 \
16259     exclude_expsyms_F77 \
16260     include_expsyms_F77; do
16261
16262     case $var in
16263     old_archive_cmds_F77 | \
16264     old_archive_from_new_cmds_F77 | \
16265     archive_cmds_F77 | \
16266     archive_expsym_cmds_F77 | \
16267     module_cmds_F77 | \
16268     module_expsym_cmds_F77 | \
16269     old_archive_from_expsyms_cmds_F77 | \
16270     export_symbols_cmds_F77 | \
16271     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16272     postinstall_cmds | postuninstall_cmds | \
16273     old_postinstall_cmds | old_postuninstall_cmds | \
16274     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16275       # Double-quote double-evaled strings.
16276       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16277       ;;
16278     *)
16279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16280       ;;
16281     esac
16282   done
16283
16284   case $lt_echo in
16285   *'\$0 --fallback-echo"')
16286     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16287     ;;
16288   esac
16289
16290 cfgfile="$ofile"
16291
16292   cat <<__EOF__ >> "$cfgfile"
16293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16294
16295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16296
16297 # Shell to use when invoking shell scripts.
16298 SHELL=$lt_SHELL
16299
16300 # Whether or not to build shared libraries.
16301 build_libtool_libs=$enable_shared
16302
16303 # Whether or not to build static libraries.
16304 build_old_libs=$enable_static
16305
16306 # Whether or not to add -lc for building shared libraries.
16307 build_libtool_need_lc=$archive_cmds_need_lc_F77
16308
16309 # Whether or not to disallow shared libs when runtime libs are static
16310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16311
16312 # Whether or not to optimize for fast installation.
16313 fast_install=$enable_fast_install
16314
16315 # The host system.
16316 host_alias=$host_alias
16317 host=$host
16318 host_os=$host_os
16319
16320 # The build system.
16321 build_alias=$build_alias
16322 build=$build
16323 build_os=$build_os
16324
16325 # An echo program that does not interpret backslashes.
16326 echo=$lt_echo
16327
16328 # The archiver.
16329 AR=$lt_AR
16330 AR_FLAGS=$lt_AR_FLAGS
16331
16332 # A C compiler.
16333 LTCC=$lt_LTCC
16334
16335 # LTCC compiler flags.
16336 LTCFLAGS=$lt_LTCFLAGS
16337
16338 # A language-specific compiler.
16339 CC=$lt_compiler_F77
16340
16341 # Is the compiler the GNU C compiler?
16342 with_gcc=$GCC_F77
16343
16344 # An ERE matcher.
16345 EGREP=$lt_EGREP
16346
16347 # The linker used to build libraries.
16348 LD=$lt_LD_F77
16349
16350 # Whether we need hard or soft links.
16351 LN_S=$lt_LN_S
16352
16353 # A BSD-compatible nm program.
16354 NM=$lt_NM
16355
16356 # A symbol stripping program
16357 STRIP=$lt_STRIP
16358
16359 # Used to examine libraries when file_magic_cmd begins "file"
16360 MAGIC_CMD=$MAGIC_CMD
16361
16362 # Used on cygwin: DLL creation program.
16363 DLLTOOL="$DLLTOOL"
16364
16365 # Used on cygwin: object dumper.
16366 OBJDUMP="$OBJDUMP"
16367
16368 # Used on cygwin: assembler.
16369 AS="$AS"
16370
16371 # The name of the directory that contains temporary libtool files.
16372 objdir=$objdir
16373
16374 # How to create reloadable object files.
16375 reload_flag=$lt_reload_flag
16376 reload_cmds=$lt_reload_cmds
16377
16378 # How to pass a linker flag through the compiler.
16379 wl=$lt_lt_prog_compiler_wl_F77
16380
16381 # Object file suffix (normally "o").
16382 objext="$ac_objext"
16383
16384 # Old archive suffix (normally "a").
16385 libext="$libext"
16386
16387 # Shared library suffix (normally ".so").
16388 shrext_cmds='$shrext_cmds'
16389
16390 # Executable file suffix (normally "").
16391 exeext="$exeext"
16392
16393 # Additional compiler flags for building library objects.
16394 pic_flag=$lt_lt_prog_compiler_pic_F77
16395 pic_mode=$pic_mode
16396
16397 # What is the maximum length of a command?
16398 max_cmd_len=$lt_cv_sys_max_cmd_len
16399
16400 # Does compiler simultaneously support -c and -o options?
16401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16402
16403 # Must we lock files when doing compilation?
16404 need_locks=$lt_need_locks
16405
16406 # Do we need the lib prefix for modules?
16407 need_lib_prefix=$need_lib_prefix
16408
16409 # Do we need a version for libraries?
16410 need_version=$need_version
16411
16412 # Whether dlopen is supported.
16413 dlopen_support=$enable_dlopen
16414
16415 # Whether dlopen of programs is supported.
16416 dlopen_self=$enable_dlopen_self
16417
16418 # Whether dlopen of statically linked programs is supported.
16419 dlopen_self_static=$enable_dlopen_self_static
16420
16421 # Compiler flag to prevent dynamic linking.
16422 link_static_flag=$lt_lt_prog_compiler_static_F77
16423
16424 # Compiler flag to turn off builtin functions.
16425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16426
16427 # Compiler flag to allow reflexive dlopens.
16428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16429
16430 # Compiler flag to generate shared objects directly from archives.
16431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16432
16433 # Compiler flag to generate thread-safe objects.
16434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16435
16436 # Library versioning type.
16437 version_type=$version_type
16438
16439 # Format of library name prefix.
16440 libname_spec=$lt_libname_spec
16441
16442 # List of archive names.  First name is the real one, the rest are links.
16443 # The last name is the one that the linker finds with -lNAME.
16444 library_names_spec=$lt_library_names_spec
16445
16446 # The coded name of the library, if different from the real name.
16447 soname_spec=$lt_soname_spec
16448
16449 # Commands used to build and install an old-style archive.
16450 RANLIB=$lt_RANLIB
16451 old_archive_cmds=$lt_old_archive_cmds_F77
16452 old_postinstall_cmds=$lt_old_postinstall_cmds
16453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16454
16455 # Create an old-style archive from a shared archive.
16456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16457
16458 # Create a temporary old-style archive to link instead of a shared archive.
16459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16460
16461 # Commands used to build and install a shared archive.
16462 archive_cmds=$lt_archive_cmds_F77
16463 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16464 postinstall_cmds=$lt_postinstall_cmds
16465 postuninstall_cmds=$lt_postuninstall_cmds
16466
16467 # Commands used to build a loadable module (assumed same as above if empty)
16468 module_cmds=$lt_module_cmds_F77
16469 module_expsym_cmds=$lt_module_expsym_cmds_F77
16470
16471 # Commands to strip libraries.
16472 old_striplib=$lt_old_striplib
16473 striplib=$lt_striplib
16474
16475 # Dependencies to place before the objects being linked to create a
16476 # shared library.
16477 predep_objects=$lt_predep_objects_F77
16478
16479 # Dependencies to place after the objects being linked to create a
16480 # shared library.
16481 postdep_objects=$lt_postdep_objects_F77
16482
16483 # Dependencies to place before the objects being linked to create a
16484 # shared library.
16485 predeps=$lt_predeps_F77
16486
16487 # Dependencies to place after the objects being linked to create a
16488 # shared library.
16489 postdeps=$lt_postdeps_F77
16490
16491 # The directories searched by this compiler when creating a shared
16492 # library
16493 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16494
16495 # The library search path used internally by the compiler when linking
16496 # a shared library.
16497 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16498
16499 # Method to check whether dependent libraries are shared objects.
16500 deplibs_check_method=$lt_deplibs_check_method
16501
16502 # Command to use when deplibs_check_method == file_magic.
16503 file_magic_cmd=$lt_file_magic_cmd
16504
16505 # Flag that allows shared libraries with undefined symbols to be built.
16506 allow_undefined_flag=$lt_allow_undefined_flag_F77
16507
16508 # Flag that forces no undefined symbols.
16509 no_undefined_flag=$lt_no_undefined_flag_F77
16510
16511 # Commands used to finish a libtool library installation in a directory.
16512 finish_cmds=$lt_finish_cmds
16513
16514 # Same as above, but a single script fragment to be evaled but not shown.
16515 finish_eval=$lt_finish_eval
16516
16517 # Take the output of nm and produce a listing of raw symbols and C names.
16518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16519
16520 # Transform the output of nm in a proper C declaration
16521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16522
16523 # Transform the output of nm in a C name address pair
16524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16525
16526 # This is the shared library runtime path variable.
16527 runpath_var=$runpath_var
16528
16529 # This is the shared library path variable.
16530 shlibpath_var=$shlibpath_var
16531
16532 # Is shlibpath searched before the hard-coded library search path?
16533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16534
16535 # How to hardcode a shared library path into an executable.
16536 hardcode_action=$hardcode_action_F77
16537
16538 # Whether we should hardcode library paths into libraries.
16539 hardcode_into_libs=$hardcode_into_libs
16540
16541 # Flag to hardcode \$libdir into a binary during linking.
16542 # This must work even if \$libdir does not exist.
16543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16544
16545 # If ld is used when linking, flag to hardcode \$libdir into
16546 # a binary during linking. This must work even if \$libdir does
16547 # not exist.
16548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16549
16550 # Whether we need a single -rpath flag with a separated argument.
16551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16552
16553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16554 # resulting binary.
16555 hardcode_direct=$hardcode_direct_F77
16556
16557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16558 # resulting binary.
16559 hardcode_minus_L=$hardcode_minus_L_F77
16560
16561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16562 # the resulting binary.
16563 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16564
16565 # Set to yes if building a shared library automatically hardcodes DIR into the library
16566 # and all subsequent libraries and executables linked against it.
16567 hardcode_automatic=$hardcode_automatic_F77
16568
16569 # Variables whose values should be saved in libtool wrapper scripts and
16570 # restored at relink time.
16571 variables_saved_for_relink="$variables_saved_for_relink"
16572
16573 # Whether libtool must link a program against all its dependency libraries.
16574 link_all_deplibs=$link_all_deplibs_F77
16575
16576 # Compile-time system search path for libraries
16577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16578
16579 # Run-time system search path for libraries
16580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16581
16582 # Fix the shell variable \$srcfile for the compiler.
16583 fix_srcfile_path=$lt_fix_srcfile_path
16584
16585 # Set to yes if exported symbols are required.
16586 always_export_symbols=$always_export_symbols_F77
16587
16588 # The commands to list exported symbols.
16589 export_symbols_cmds=$lt_export_symbols_cmds_F77
16590
16591 # The commands to extract the exported symbol list from a shared archive.
16592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16593
16594 # Symbols that should not be listed in the preloaded symbols.
16595 exclude_expsyms=$lt_exclude_expsyms_F77
16596
16597 # Symbols that must always be exported.
16598 include_expsyms=$lt_include_expsyms_F77
16599
16600 # ### END LIBTOOL TAG CONFIG: $tagname
16601
16602 __EOF__
16603
16604
16605 else
16606   # If there is no Makefile yet, we rely on a make rule to execute
16607   # `config.status --recheck' to rerun these tests and create the
16608   # libtool script then.
16609   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16610   if test -f "$ltmain_in"; then
16611     test -f Makefile && make "$ltmain"
16612   fi
16613 fi
16614
16615
16616 ac_ext=c
16617 ac_cpp='$CPP $CPPFLAGS'
16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16621
16622 CC="$lt_save_CC"
16623
16624         else
16625           tagname=""
16626         fi
16627         ;;
16628
16629       GCJ)
16630         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16631
16632
16633 # Source file extension for Java test sources.
16634 ac_ext=java
16635
16636 # Object file extension for compiled Java test sources.
16637 objext=o
16638 objext_GCJ=$objext
16639
16640 # Code to be used in simple compile tests
16641 lt_simple_compile_test_code="class foo {}"
16642
16643 # Code to be used in simple link tests
16644 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16645
16646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16647
16648 # If no C compiler was specified, use CC.
16649 LTCC=${LTCC-"$CC"}
16650
16651 # If no C compiler flags were specified, use CFLAGS.
16652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16653
16654 # Allow CC to be a program name with arguments.
16655 compiler=$CC
16656
16657
16658 # save warnings/boilerplate of simple test code
16659 ac_outfile=conftest.$ac_objext
16660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16662 _lt_compiler_boilerplate=`cat conftest.err`
16663 $rm conftest*
16664
16665 ac_outfile=conftest.$ac_objext
16666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16668 _lt_linker_boilerplate=`cat conftest.err`
16669 $rm -r conftest*
16670
16671
16672 # Allow CC to be a program name with arguments.
16673 lt_save_CC="$CC"
16674 CC=${GCJ-"gcj"}
16675 compiler=$CC
16676 compiler_GCJ=$CC
16677 for cc_temp in $compiler""; do
16678   case $cc_temp in
16679     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16680     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16681     \-*) ;;
16682     *) break;;
16683   esac
16684 done
16685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16686
16687
16688 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16689 archive_cmds_need_lc_GCJ=no
16690
16691 old_archive_cmds_GCJ=$old_archive_cmds
16692
16693
16694 lt_prog_compiler_no_builtin_flag_GCJ=
16695
16696 if test "$GCC" = yes; then
16697   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16698
16699
16700 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16701 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16702 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16703   echo $ECHO_N "(cached) $ECHO_C" >&6
16704 else
16705   lt_cv_prog_compiler_rtti_exceptions=no
16706   ac_outfile=conftest.$ac_objext
16707    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16708    lt_compiler_flag="-fno-rtti -fno-exceptions"
16709    # Insert the option either (1) after the last *FLAGS variable, or
16710    # (2) before a word containing "conftest.", or (3) at the end.
16711    # Note that $ac_compile itself does not contain backslashes and begins
16712    # with a dollar sign (not a hyphen), so the echo should work correctly.
16713    # The option is referenced via a variable to avoid confusing sed.
16714    lt_compile=`echo "$ac_compile" | $SED \
16715    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16716    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16717    -e 's:$: $lt_compiler_flag:'`
16718    (eval echo "\"\$as_me:16718: $lt_compile\"" >&5)
16719    (eval "$lt_compile" 2>conftest.err)
16720    ac_status=$?
16721    cat conftest.err >&5
16722    echo "$as_me:16722: \$? = $ac_status" >&5
16723    if (exit $ac_status) && test -s "$ac_outfile"; then
16724      # The compiler can only warn and ignore the option if not recognized
16725      # So say no if there are warnings other than the usual output.
16726      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16727      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16728      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16729        lt_cv_prog_compiler_rtti_exceptions=yes
16730      fi
16731    fi
16732    $rm conftest*
16733
16734 fi
16735 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16736 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16737
16738 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16739     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16740 else
16741     :
16742 fi
16743
16744 fi
16745
16746 lt_prog_compiler_wl_GCJ=
16747 lt_prog_compiler_pic_GCJ=
16748 lt_prog_compiler_static_GCJ=
16749
16750 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16751 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16752
16753   if test "$GCC" = yes; then
16754     lt_prog_compiler_wl_GCJ='-Wl,'
16755     lt_prog_compiler_static_GCJ='-static'
16756
16757     case $host_os in
16758       aix*)
16759       # All AIX code is PIC.
16760       if test "$host_cpu" = ia64; then
16761         # AIX 5 now supports IA64 processor
16762         lt_prog_compiler_static_GCJ='-Bstatic'
16763       fi
16764       ;;
16765
16766     amigaos*)
16767       # FIXME: we need at least 68020 code to build shared libraries, but
16768       # adding the `-m68020' flag to GCC prevents building anything better,
16769       # like `-m68040'.
16770       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16771       ;;
16772
16773     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16774       # PIC is the default for these OSes.
16775       ;;
16776
16777     mingw* | cygwin* | pw32* | os2*)
16778       # This hack is so that the source file can tell whether it is being
16779       # built for inclusion in a dll (and should export symbols for example).
16780       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16781       # (--disable-auto-import) libraries
16782
16783       ;;
16784
16785     darwin* | rhapsody*)
16786       # PIC is the default on this platform
16787       # Common symbols not allowed in MH_DYLIB files
16788       lt_prog_compiler_pic_GCJ='-fno-common'
16789       ;;
16790
16791     interix[3-9]*)
16792       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16793       # Instead, we relocate shared libraries at runtime.
16794       ;;
16795
16796     msdosdjgpp*)
16797       # Just because we use GCC doesn't mean we suddenly get shared libraries
16798       # on systems that don't support them.
16799       lt_prog_compiler_can_build_shared_GCJ=no
16800       enable_shared=no
16801       ;;
16802
16803     sysv4*MP*)
16804       if test -d /usr/nec; then
16805         lt_prog_compiler_pic_GCJ=-Kconform_pic
16806       fi
16807       ;;
16808
16809     hpux*)
16810       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16811       # not for PA HP-UX.
16812       case $host_cpu in
16813       hppa*64*|ia64*)
16814         # +Z the default
16815         ;;
16816       *)
16817         lt_prog_compiler_pic_GCJ='-fPIC'
16818         ;;
16819       esac
16820       ;;
16821
16822     *)
16823       lt_prog_compiler_pic_GCJ='-fPIC'
16824       ;;
16825     esac
16826   else
16827     # PORTME Check for flag to pass linker flags through the system compiler.
16828     case $host_os in
16829     aix*)
16830       lt_prog_compiler_wl_GCJ='-Wl,'
16831       if test "$host_cpu" = ia64; then
16832         # AIX 5 now supports IA64 processor
16833         lt_prog_compiler_static_GCJ='-Bstatic'
16834       else
16835         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16836       fi
16837       ;;
16838       darwin*)
16839         # PIC is the default on this platform
16840         # Common symbols not allowed in MH_DYLIB files
16841        case $cc_basename in
16842          xlc*)
16843          lt_prog_compiler_pic_GCJ='-qnocommon'
16844          lt_prog_compiler_wl_GCJ='-Wl,'
16845          ;;
16846        esac
16847        ;;
16848
16849     mingw* | cygwin* | pw32* | os2*)
16850       # This hack is so that the source file can tell whether it is being
16851       # built for inclusion in a dll (and should export symbols for example).
16852
16853       ;;
16854
16855     hpux9* | hpux10* | hpux11*)
16856       lt_prog_compiler_wl_GCJ='-Wl,'
16857       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16858       # not for PA HP-UX.
16859       case $host_cpu in
16860       hppa*64*|ia64*)
16861         # +Z the default
16862         ;;
16863       *)
16864         lt_prog_compiler_pic_GCJ='+Z'
16865         ;;
16866       esac
16867       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16868       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16869       ;;
16870
16871     irix5* | irix6* | nonstopux*)
16872       lt_prog_compiler_wl_GCJ='-Wl,'
16873       # PIC (with -KPIC) is the default.
16874       lt_prog_compiler_static_GCJ='-non_shared'
16875       ;;
16876
16877     newsos6)
16878       lt_prog_compiler_pic_GCJ='-KPIC'
16879       lt_prog_compiler_static_GCJ='-Bstatic'
16880       ;;
16881
16882     linux* | k*bsd*-gnu)
16883       case $cc_basename in
16884       icc* | ecc*)
16885         lt_prog_compiler_wl_GCJ='-Wl,'
16886         lt_prog_compiler_pic_GCJ='-KPIC'
16887         lt_prog_compiler_static_GCJ='-static'
16888         ;;
16889       pgcc* | pgf77* | pgf90* | pgf95*)
16890         # Portland Group compilers (*not* the Pentium gcc compiler,
16891         # which looks to be a dead project)
16892         lt_prog_compiler_wl_GCJ='-Wl,'
16893         lt_prog_compiler_pic_GCJ='-fpic'
16894         lt_prog_compiler_static_GCJ='-Bstatic'
16895         ;;
16896       ccc*)
16897         lt_prog_compiler_wl_GCJ='-Wl,'
16898         # All Alpha code is PIC.
16899         lt_prog_compiler_static_GCJ='-non_shared'
16900         ;;
16901       *)
16902         case `$CC -V 2>&1 | sed 5q` in
16903         *Sun\ C*)
16904           # Sun C 5.9
16905           lt_prog_compiler_pic_GCJ='-KPIC'
16906           lt_prog_compiler_static_GCJ='-Bstatic'
16907           lt_prog_compiler_wl_GCJ='-Wl,'
16908           ;;
16909         *Sun\ F*)
16910           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16911           lt_prog_compiler_pic_GCJ='-KPIC'
16912           lt_prog_compiler_static_GCJ='-Bstatic'
16913           lt_prog_compiler_wl_GCJ=''
16914           ;;
16915         esac
16916         ;;
16917       esac
16918       ;;
16919
16920     osf3* | osf4* | osf5*)
16921       lt_prog_compiler_wl_GCJ='-Wl,'
16922       # All OSF/1 code is PIC.
16923       lt_prog_compiler_static_GCJ='-non_shared'
16924       ;;
16925
16926     rdos*)
16927       lt_prog_compiler_static_GCJ='-non_shared'
16928       ;;
16929
16930     solaris*)
16931       lt_prog_compiler_pic_GCJ='-KPIC'
16932       lt_prog_compiler_static_GCJ='-Bstatic'
16933       case $cc_basename in
16934       f77* | f90* | f95*)
16935         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16936       *)
16937         lt_prog_compiler_wl_GCJ='-Wl,';;
16938       esac
16939       ;;
16940
16941     sunos4*)
16942       lt_prog_compiler_wl_GCJ='-Qoption ld '
16943       lt_prog_compiler_pic_GCJ='-PIC'
16944       lt_prog_compiler_static_GCJ='-Bstatic'
16945       ;;
16946
16947     sysv4 | sysv4.2uw2* | sysv4.3*)
16948       lt_prog_compiler_wl_GCJ='-Wl,'
16949       lt_prog_compiler_pic_GCJ='-KPIC'
16950       lt_prog_compiler_static_GCJ='-Bstatic'
16951       ;;
16952
16953     sysv4*MP*)
16954       if test -d /usr/nec ;then
16955         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16956         lt_prog_compiler_static_GCJ='-Bstatic'
16957       fi
16958       ;;
16959
16960     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16961       lt_prog_compiler_wl_GCJ='-Wl,'
16962       lt_prog_compiler_pic_GCJ='-KPIC'
16963       lt_prog_compiler_static_GCJ='-Bstatic'
16964       ;;
16965
16966     unicos*)
16967       lt_prog_compiler_wl_GCJ='-Wl,'
16968       lt_prog_compiler_can_build_shared_GCJ=no
16969       ;;
16970
16971     uts4*)
16972       lt_prog_compiler_pic_GCJ='-pic'
16973       lt_prog_compiler_static_GCJ='-Bstatic'
16974       ;;
16975
16976     *)
16977       lt_prog_compiler_can_build_shared_GCJ=no
16978       ;;
16979     esac
16980   fi
16981
16982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16983 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16984
16985 #
16986 # Check to make sure the PIC flag actually works.
16987 #
16988 if test -n "$lt_prog_compiler_pic_GCJ"; then
16989
16990 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16991 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16992 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16993   echo $ECHO_N "(cached) $ECHO_C" >&6
16994 else
16995   lt_cv_prog_compiler_pic_works_GCJ=no
16996   ac_outfile=conftest.$ac_objext
16997    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16998    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16999    # Insert the option either (1) after the last *FLAGS variable, or
17000    # (2) before a word containing "conftest.", or (3) at the end.
17001    # Note that $ac_compile itself does not contain backslashes and begins
17002    # with a dollar sign (not a hyphen), so the echo should work correctly.
17003    # The option is referenced via a variable to avoid confusing sed.
17004    lt_compile=`echo "$ac_compile" | $SED \
17005    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17006    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17007    -e 's:$: $lt_compiler_flag:'`
17008    (eval echo "\"\$as_me:17008: $lt_compile\"" >&5)
17009    (eval "$lt_compile" 2>conftest.err)
17010    ac_status=$?
17011    cat conftest.err >&5
17012    echo "$as_me:17012: \$? = $ac_status" >&5
17013    if (exit $ac_status) && test -s "$ac_outfile"; then
17014      # The compiler can only warn and ignore the option if not recognized
17015      # So say no if there are warnings other than the usual output.
17016      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17017      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17018      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17019        lt_cv_prog_compiler_pic_works_GCJ=yes
17020      fi
17021    fi
17022    $rm conftest*
17023
17024 fi
17025 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17026 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17027
17028 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17029     case $lt_prog_compiler_pic_GCJ in
17030      "" | " "*) ;;
17031      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17032      esac
17033 else
17034     lt_prog_compiler_pic_GCJ=
17035      lt_prog_compiler_can_build_shared_GCJ=no
17036 fi
17037
17038 fi
17039 case $host_os in
17040   # For platforms which do not support PIC, -DPIC is meaningless:
17041   *djgpp*)
17042     lt_prog_compiler_pic_GCJ=
17043     ;;
17044   *)
17045     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17046     ;;
17047 esac
17048
17049 #
17050 # Check to make sure the static flag actually works.
17051 #
17052 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17053 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17054 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17055 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17056   echo $ECHO_N "(cached) $ECHO_C" >&6
17057 else
17058   lt_cv_prog_compiler_static_works_GCJ=no
17059    save_LDFLAGS="$LDFLAGS"
17060    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17061    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17062    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17063      # The linker can only warn and ignore the option if not recognized
17064      # So say no if there are warnings
17065      if test -s conftest.err; then
17066        # Append any errors to the config.log.
17067        cat conftest.err 1>&5
17068        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17069        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17070        if diff conftest.exp conftest.er2 >/dev/null; then
17071          lt_cv_prog_compiler_static_works_GCJ=yes
17072        fi
17073      else
17074        lt_cv_prog_compiler_static_works_GCJ=yes
17075      fi
17076    fi
17077    $rm -r conftest*
17078    LDFLAGS="$save_LDFLAGS"
17079
17080 fi
17081 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17082 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17083
17084 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17085     :
17086 else
17087     lt_prog_compiler_static_GCJ=
17088 fi
17089
17090
17091 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17092 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17093 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096   lt_cv_prog_compiler_c_o_GCJ=no
17097    $rm -r conftest 2>/dev/null
17098    mkdir conftest
17099    cd conftest
17100    mkdir out
17101    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17102
17103    lt_compiler_flag="-o out/conftest2.$ac_objext"
17104    # Insert the option either (1) after the last *FLAGS variable, or
17105    # (2) before a word containing "conftest.", or (3) at the end.
17106    # Note that $ac_compile itself does not contain backslashes and begins
17107    # with a dollar sign (not a hyphen), so the echo should work correctly.
17108    lt_compile=`echo "$ac_compile" | $SED \
17109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17111    -e 's:$: $lt_compiler_flag:'`
17112    (eval echo "\"\$as_me:17112: $lt_compile\"" >&5)
17113    (eval "$lt_compile" 2>out/conftest.err)
17114    ac_status=$?
17115    cat out/conftest.err >&5
17116    echo "$as_me:17116: \$? = $ac_status" >&5
17117    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17118    then
17119      # The compiler can only warn and ignore the option if not recognized
17120      # So say no if there are warnings
17121      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17122      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17123      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17124        lt_cv_prog_compiler_c_o_GCJ=yes
17125      fi
17126    fi
17127    chmod u+w . 2>&5
17128    $rm conftest*
17129    # SGI C++ compiler will create directory out/ii_files/ for
17130    # template instantiation
17131    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17132    $rm out/* && rmdir out
17133    cd ..
17134    rmdir conftest
17135    $rm conftest*
17136
17137 fi
17138 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17139 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17140
17141
17142 hard_links="nottested"
17143 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17144   # do not overwrite the value of need_locks provided by the user
17145   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17146 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17147   hard_links=yes
17148   $rm conftest*
17149   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17150   touch conftest.a
17151   ln conftest.a conftest.b 2>&5 || hard_links=no
17152   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17153   { echo "$as_me:$LINENO: result: $hard_links" >&5
17154 echo "${ECHO_T}$hard_links" >&6; }
17155   if test "$hard_links" = no; then
17156     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17157 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17158     need_locks=warn
17159   fi
17160 else
17161   need_locks=no
17162 fi
17163
17164 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17165 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17166
17167   runpath_var=
17168   allow_undefined_flag_GCJ=
17169   enable_shared_with_static_runtimes_GCJ=no
17170   archive_cmds_GCJ=
17171   archive_expsym_cmds_GCJ=
17172   old_archive_From_new_cmds_GCJ=
17173   old_archive_from_expsyms_cmds_GCJ=
17174   export_dynamic_flag_spec_GCJ=
17175   whole_archive_flag_spec_GCJ=
17176   thread_safe_flag_spec_GCJ=
17177   hardcode_libdir_flag_spec_GCJ=
17178   hardcode_libdir_flag_spec_ld_GCJ=
17179   hardcode_libdir_separator_GCJ=
17180   hardcode_direct_GCJ=no
17181   hardcode_minus_L_GCJ=no
17182   hardcode_shlibpath_var_GCJ=unsupported
17183   link_all_deplibs_GCJ=unknown
17184   hardcode_automatic_GCJ=no
17185   module_cmds_GCJ=
17186   module_expsym_cmds_GCJ=
17187   always_export_symbols_GCJ=no
17188   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17189   # include_expsyms should be a list of space-separated symbols to be *always*
17190   # included in the symbol list
17191   include_expsyms_GCJ=
17192   # exclude_expsyms can be an extended regexp of symbols to exclude
17193   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17194   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17195   # as well as any symbol that contains `d'.
17196   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17197   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17198   # platforms (ab)use it in PIC code, but their linkers get confused if
17199   # the symbol is explicitly referenced.  Since portable code cannot
17200   # rely on this symbol name, it's probably fine to never include it in
17201   # preloaded symbol tables.
17202   # Exclude shared library initialization/finalization symbols.
17203   extract_expsyms_cmds=
17204   # Just being paranoid about ensuring that cc_basename is set.
17205   for cc_temp in $compiler""; do
17206   case $cc_temp in
17207     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17208     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17209     \-*) ;;
17210     *) break;;
17211   esac
17212 done
17213 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17214
17215   case $host_os in
17216   cygwin* | mingw* | pw32*)
17217     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17218     # When not using gcc, we currently assume that we are using
17219     # Microsoft Visual C++.
17220     if test "$GCC" != yes; then
17221       with_gnu_ld=no
17222     fi
17223     ;;
17224   interix*)
17225     # we just hope/assume this is gcc and not c89 (= MSVC++)
17226     with_gnu_ld=yes
17227     ;;
17228   openbsd*)
17229     with_gnu_ld=no
17230     ;;
17231   esac
17232
17233   ld_shlibs_GCJ=yes
17234   if test "$with_gnu_ld" = yes; then
17235     # If archive_cmds runs LD, not CC, wlarc should be empty
17236     wlarc='${wl}'
17237
17238     # Set some defaults for GNU ld with shared library support. These
17239     # are reset later if shared libraries are not supported. Putting them
17240     # here allows them to be overridden if necessary.
17241     runpath_var=LD_RUN_PATH
17242     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17243     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17244     # ancient GNU ld didn't support --whole-archive et. al.
17245     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17246         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17247       else
17248         whole_archive_flag_spec_GCJ=
17249     fi
17250     supports_anon_versioning=no
17251     case `$LD -v 2>/dev/null` in
17252       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17253       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17254       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17255       *\ 2.11.*) ;; # other 2.11 versions
17256       *) supports_anon_versioning=yes ;;
17257     esac
17258
17259     # See if GNU ld supports shared libraries.
17260     case $host_os in
17261     aix[3-9]*)
17262       # On AIX/PPC, the GNU linker is very broken
17263       if test "$host_cpu" != ia64; then
17264         ld_shlibs_GCJ=no
17265         cat <<EOF 1>&2
17266
17267 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17268 *** to be unable to reliably create shared libraries on AIX.
17269 *** Therefore, libtool is disabling shared libraries support.  If you
17270 *** really care for shared libraries, you may want to modify your PATH
17271 *** so that a non-GNU linker is found, and then restart.
17272
17273 EOF
17274       fi
17275       ;;
17276
17277     amigaos*)
17278       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)'
17279       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280       hardcode_minus_L_GCJ=yes
17281
17282       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17283       # that the semantics of dynamic libraries on AmigaOS, at least up
17284       # to version 4, is to share data among multiple programs linked
17285       # with the same dynamic library.  Since this doesn't match the
17286       # behavior of shared libraries on other platforms, we can't use
17287       # them.
17288       ld_shlibs_GCJ=no
17289       ;;
17290
17291     beos*)
17292       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17293         allow_undefined_flag_GCJ=unsupported
17294         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17295         # support --undefined.  This deserves some investigation.  FIXME
17296         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17297       else
17298         ld_shlibs_GCJ=no
17299       fi
17300       ;;
17301
17302     cygwin* | mingw* | pw32*)
17303       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17304       # as there is no search path for DLLs.
17305       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17306       allow_undefined_flag_GCJ=unsupported
17307       always_export_symbols_GCJ=no
17308       enable_shared_with_static_runtimes_GCJ=yes
17309       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17310
17311       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17312         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17313         # If the export-symbols file already is a .def file (1st line
17314         # is EXPORTS), use it as is; otherwise, prepend...
17315         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17316           cp $export_symbols $output_objdir/$soname.def;
17317         else
17318           echo EXPORTS > $output_objdir/$soname.def;
17319           cat $export_symbols >> $output_objdir/$soname.def;
17320         fi~
17321         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17322       else
17323         ld_shlibs_GCJ=no
17324       fi
17325       ;;
17326
17327     interix[3-9]*)
17328       hardcode_direct_GCJ=no
17329       hardcode_shlibpath_var_GCJ=no
17330       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17331       export_dynamic_flag_spec_GCJ='${wl}-E'
17332       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17333       # Instead, shared libraries are loaded at an image base (0x10000000 by
17334       # default) and relocated if they conflict, which is a slow very memory
17335       # consuming and fragmenting process.  To avoid this, we pick a random,
17336       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17337       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17338       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'
17339       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'
17340       ;;
17341
17342     gnu* | linux* | k*bsd*-gnu)
17343       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17344         tmp_addflag=
17345         case $cc_basename,$host_cpu in
17346         pgcc*)                          # Portland Group C compiler
17347           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'
17348           tmp_addflag=' $pic_flag'
17349           ;;
17350         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17351           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'
17352           tmp_addflag=' $pic_flag -Mnomain' ;;
17353         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17354           tmp_addflag=' -i_dynamic' ;;
17355         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17356           tmp_addflag=' -i_dynamic -nofor_main' ;;
17357         ifc* | ifort*)                  # Intel Fortran compiler
17358           tmp_addflag=' -nofor_main' ;;
17359         esac
17360         case `$CC -V 2>&1 | sed 5q` in
17361         *Sun\ C*)                       # Sun C 5.9
17362           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'
17363           tmp_sharedflag='-G' ;;
17364         *Sun\ F*)                       # Sun Fortran 8.3
17365           tmp_sharedflag='-G' ;;
17366         *)
17367           tmp_sharedflag='-shared' ;;
17368         esac
17369         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17370
17371         if test $supports_anon_versioning = yes; then
17372           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17373   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17374   $echo "local: *; };" >> $output_objdir/$libname.ver~
17375           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17376         fi
17377         link_all_deplibs_GCJ=no
17378       else
17379         ld_shlibs_GCJ=no
17380       fi
17381       ;;
17382
17383     netbsd* | netbsdelf*-gnu)
17384       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17385         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17386         wlarc=
17387       else
17388         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17389         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17390       fi
17391       ;;
17392
17393     solaris*)
17394       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17395         ld_shlibs_GCJ=no
17396         cat <<EOF 1>&2
17397
17398 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17399 *** create shared libraries on Solaris systems.  Therefore, libtool
17400 *** is disabling shared libraries support.  We urge you to upgrade GNU
17401 *** binutils to release 2.9.1 or newer.  Another option is to modify
17402 *** your PATH or compiler configuration so that the native linker is
17403 *** used, and then restart.
17404
17405 EOF
17406       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17407         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17408         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17409       else
17410         ld_shlibs_GCJ=no
17411       fi
17412       ;;
17413
17414     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17415       case `$LD -v 2>&1` in
17416         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17417         ld_shlibs_GCJ=no
17418         cat <<_LT_EOF 1>&2
17419
17420 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17421 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17422 *** is disabling shared libraries support.  We urge you to upgrade GNU
17423 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17424 *** your PATH or compiler configuration so that the native linker is
17425 *** used, and then restart.
17426
17427 _LT_EOF
17428         ;;
17429         *)
17430           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17431             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17432             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17433             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17434           else
17435             ld_shlibs_GCJ=no
17436           fi
17437         ;;
17438       esac
17439       ;;
17440
17441     sunos4*)
17442       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17443       wlarc=
17444       hardcode_direct_GCJ=yes
17445       hardcode_shlibpath_var_GCJ=no
17446       ;;
17447
17448     *)
17449       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17450         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17451         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17452       else
17453         ld_shlibs_GCJ=no
17454       fi
17455       ;;
17456     esac
17457
17458     if test "$ld_shlibs_GCJ" = no; then
17459       runpath_var=
17460       hardcode_libdir_flag_spec_GCJ=
17461       export_dynamic_flag_spec_GCJ=
17462       whole_archive_flag_spec_GCJ=
17463     fi
17464   else
17465     # PORTME fill in a description of your system's linker (not GNU ld)
17466     case $host_os in
17467     aix3*)
17468       allow_undefined_flag_GCJ=unsupported
17469       always_export_symbols_GCJ=yes
17470       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'
17471       # Note: this linker hardcodes the directories in LIBPATH if there
17472       # are no directories specified by -L.
17473       hardcode_minus_L_GCJ=yes
17474       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17475         # Neither direct hardcoding nor static linking is supported with a
17476         # broken collect2.
17477         hardcode_direct_GCJ=unsupported
17478       fi
17479       ;;
17480
17481     aix[4-9]*)
17482       if test "$host_cpu" = ia64; then
17483         # On IA64, the linker does run time linking by default, so we don't
17484         # have to do anything special.
17485         aix_use_runtimelinking=no
17486         exp_sym_flag='-Bexport'
17487         no_entry_flag=""
17488       else
17489         # If we're using GNU nm, then we don't want the "-C" option.
17490         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17491         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17492           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'
17493         else
17494           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'
17495         fi
17496         aix_use_runtimelinking=no
17497
17498         # Test if we are trying to use run time linking or normal
17499         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17500         # need to do runtime linking.
17501         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17502           for ld_flag in $LDFLAGS; do
17503           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17504             aix_use_runtimelinking=yes
17505             break
17506           fi
17507           done
17508           ;;
17509         esac
17510
17511         exp_sym_flag='-bexport'
17512         no_entry_flag='-bnoentry'
17513       fi
17514
17515       # When large executables or shared objects are built, AIX ld can
17516       # have problems creating the table of contents.  If linking a library
17517       # or program results in "error TOC overflow" add -mminimal-toc to
17518       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17519       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17520
17521       archive_cmds_GCJ=''
17522       hardcode_direct_GCJ=yes
17523       hardcode_libdir_separator_GCJ=':'
17524       link_all_deplibs_GCJ=yes
17525
17526       if test "$GCC" = yes; then
17527         case $host_os in aix4.[012]|aix4.[012].*)
17528         # We only want to do this on AIX 4.2 and lower, the check
17529         # below for broken collect2 doesn't work under 4.3+
17530           collect2name=`${CC} -print-prog-name=collect2`
17531           if test -f "$collect2name" && \
17532            strings "$collect2name" | grep resolve_lib_name >/dev/null
17533           then
17534           # We have reworked collect2
17535           :
17536           else
17537           # We have old collect2
17538           hardcode_direct_GCJ=unsupported
17539           # It fails to find uninstalled libraries when the uninstalled
17540           # path is not listed in the libpath.  Setting hardcode_minus_L
17541           # to unsupported forces relinking
17542           hardcode_minus_L_GCJ=yes
17543           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17544           hardcode_libdir_separator_GCJ=
17545           fi
17546           ;;
17547         esac
17548         shared_flag='-shared'
17549         if test "$aix_use_runtimelinking" = yes; then
17550           shared_flag="$shared_flag "'${wl}-G'
17551         fi
17552       else
17553         # not using gcc
17554         if test "$host_cpu" = ia64; then
17555         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17556         # chokes on -Wl,-G. The following line is correct:
17557           shared_flag='-G'
17558         else
17559           if test "$aix_use_runtimelinking" = yes; then
17560             shared_flag='${wl}-G'
17561           else
17562             shared_flag='${wl}-bM:SRE'
17563           fi
17564         fi
17565       fi
17566
17567       # It seems that -bexpall does not export symbols beginning with
17568       # underscore (_), so it is better to generate a list of symbols to export.
17569       always_export_symbols_GCJ=yes
17570       if test "$aix_use_runtimelinking" = yes; then
17571         # Warning - without using the other runtime loading flags (-brtl),
17572         # -berok will link without error, but may produce a broken library.
17573         allow_undefined_flag_GCJ='-berok'
17574        # Determine the default libpath from the value encoded in an empty executable.
17575        cat >conftest.$ac_ext <<_ACEOF
17576 /* confdefs.h.  */
17577 _ACEOF
17578 cat confdefs.h >>conftest.$ac_ext
17579 cat >>conftest.$ac_ext <<_ACEOF
17580 /* end confdefs.h.  */
17581
17582 int
17583 main ()
17584 {
17585
17586   ;
17587   return 0;
17588 }
17589 _ACEOF
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (ac_try="$ac_link"
17592 case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_link") 2>conftest.er1
17598   ac_status=$?
17599   grep -v '^ *+' conftest.er1 >conftest.err
17600   rm -f conftest.er1
17601   cat conftest.err >&5
17602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603   (exit $ac_status); } && {
17604          test -z "$ac_c_werror_flag" ||
17605          test ! -s conftest.err
17606        } && test -s conftest$ac_exeext &&
17607        $as_test_x conftest$ac_exeext; then
17608
17609 lt_aix_libpath_sed='
17610     /Import File Strings/,/^$/ {
17611         /^0/ {
17612             s/^0  *\(.*\)$/\1/
17613             p
17614         }
17615     }'
17616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17617 # Check for a 64-bit object if we didn't find anything.
17618 if test -z "$aix_libpath"; then
17619   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17620 fi
17621 else
17622   echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17624
17625
17626 fi
17627
17628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17629       conftest$ac_exeext conftest.$ac_ext
17630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17631
17632        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17633         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"
17634        else
17635         if test "$host_cpu" = ia64; then
17636           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17637           allow_undefined_flag_GCJ="-z nodefs"
17638           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"
17639         else
17640          # Determine the default libpath from the value encoded in an empty executable.
17641          cat >conftest.$ac_ext <<_ACEOF
17642 /* confdefs.h.  */
17643 _ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h.  */
17647
17648 int
17649 main ()
17650 {
17651
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (ac_try="$ac_link"
17658 case "(($ac_try" in
17659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660   *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663   (eval "$ac_link") 2>conftest.er1
17664   ac_status=$?
17665   grep -v '^ *+' conftest.er1 >conftest.err
17666   rm -f conftest.er1
17667   cat conftest.err >&5
17668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669   (exit $ac_status); } && {
17670          test -z "$ac_c_werror_flag" ||
17671          test ! -s conftest.err
17672        } && test -s conftest$ac_exeext &&
17673        $as_test_x conftest$ac_exeext; then
17674
17675 lt_aix_libpath_sed='
17676     /Import File Strings/,/^$/ {
17677         /^0/ {
17678             s/^0  *\(.*\)$/\1/
17679             p
17680         }
17681     }'
17682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17683 # Check for a 64-bit object if we didn't find anything.
17684 if test -z "$aix_libpath"; then
17685   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17686 fi
17687 else
17688   echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
17691
17692 fi
17693
17694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17695       conftest$ac_exeext conftest.$ac_ext
17696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17697
17698          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17699           # Warning - without using the other run time loading flags,
17700           # -berok will link without error, but may produce a broken library.
17701           no_undefined_flag_GCJ=' ${wl}-bernotok'
17702           allow_undefined_flag_GCJ=' ${wl}-berok'
17703           # Exported symbols can be pulled into shared objects from archives
17704           whole_archive_flag_spec_GCJ='$convenience'
17705           archive_cmds_need_lc_GCJ=yes
17706           # This is similar to how AIX traditionally builds its shared libraries.
17707           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'
17708         fi
17709       fi
17710       ;;
17711
17712     amigaos*)
17713       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)'
17714       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17715       hardcode_minus_L_GCJ=yes
17716       # see comment about different semantics on the GNU ld section
17717       ld_shlibs_GCJ=no
17718       ;;
17719
17720     bsdi[45]*)
17721       export_dynamic_flag_spec_GCJ=-rdynamic
17722       ;;
17723
17724     cygwin* | mingw* | pw32*)
17725       # When not using gcc, we currently assume that we are using
17726       # Microsoft Visual C++.
17727       # hardcode_libdir_flag_spec is actually meaningless, as there is
17728       # no search path for DLLs.
17729       hardcode_libdir_flag_spec_GCJ=' '
17730       allow_undefined_flag_GCJ=unsupported
17731       # Tell ltmain to make .lib files, not .a files.
17732       libext=lib
17733       # Tell ltmain to make .dll files, not .so files.
17734       shrext_cmds=".dll"
17735       # FIXME: Setting linknames here is a bad hack.
17736       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17737       # The linker will automatically build a .lib file if we build a DLL.
17738       old_archive_From_new_cmds_GCJ='true'
17739       # FIXME: Should let the user specify the lib program.
17740       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17741       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17742       enable_shared_with_static_runtimes_GCJ=yes
17743       ;;
17744
17745     darwin* | rhapsody*)
17746       case $host_os in
17747         rhapsody* | darwin1.[012])
17748          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17749          ;;
17750        *) # Darwin 1.3 on
17751          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17752            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17753          else
17754            case ${MACOSX_DEPLOYMENT_TARGET} in
17755              10.[012])
17756                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17757                ;;
17758              10.*)
17759                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17760                ;;
17761            esac
17762          fi
17763          ;;
17764       esac
17765       archive_cmds_need_lc_GCJ=no
17766       hardcode_direct_GCJ=no
17767       hardcode_automatic_GCJ=yes
17768       hardcode_shlibpath_var_GCJ=unsupported
17769       whole_archive_flag_spec_GCJ=''
17770       link_all_deplibs_GCJ=yes
17771     if test "$GCC" = yes ; then
17772         output_verbose_link_cmd='echo'
17773         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}"
17774         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17775         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}"
17776         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}"
17777     else
17778       case $cc_basename in
17779         xlc*)
17780          output_verbose_link_cmd='echo'
17781          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17782          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17783           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17784          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}'
17785           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}'
17786           ;;
17787        *)
17788          ld_shlibs_GCJ=no
17789           ;;
17790       esac
17791     fi
17792       ;;
17793
17794     dgux*)
17795       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17796       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17797       hardcode_shlibpath_var_GCJ=no
17798       ;;
17799
17800     freebsd1*)
17801       ld_shlibs_GCJ=no
17802       ;;
17803
17804     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17805     # support.  Future versions do this automatically, but an explicit c++rt0.o
17806     # does not break anything, and helps significantly (at the cost of a little
17807     # extra space).
17808     freebsd2.2*)
17809       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17810       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17811       hardcode_direct_GCJ=yes
17812       hardcode_shlibpath_var_GCJ=no
17813       ;;
17814
17815     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17816     freebsd2*)
17817       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17818       hardcode_direct_GCJ=yes
17819       hardcode_minus_L_GCJ=yes
17820       hardcode_shlibpath_var_GCJ=no
17821       ;;
17822
17823     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17824     freebsd* | dragonfly*)
17825       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17826       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17827       hardcode_direct_GCJ=yes
17828       hardcode_shlibpath_var_GCJ=no
17829       ;;
17830
17831     hpux9*)
17832       if test "$GCC" = yes; then
17833         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'
17834       else
17835         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'
17836       fi
17837       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17838       hardcode_libdir_separator_GCJ=:
17839       hardcode_direct_GCJ=yes
17840
17841       # hardcode_minus_L: Not really in the search PATH,
17842       # but as the default location of the library.
17843       hardcode_minus_L_GCJ=yes
17844       export_dynamic_flag_spec_GCJ='${wl}-E'
17845       ;;
17846
17847     hpux10*)
17848       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17849         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17850       else
17851         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17852       fi
17853       if test "$with_gnu_ld" = no; then
17854         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17855         hardcode_libdir_separator_GCJ=:
17856
17857         hardcode_direct_GCJ=yes
17858         export_dynamic_flag_spec_GCJ='${wl}-E'
17859
17860         # hardcode_minus_L: Not really in the search PATH,
17861         # but as the default location of the library.
17862         hardcode_minus_L_GCJ=yes
17863       fi
17864       ;;
17865
17866     hpux11*)
17867       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17868         case $host_cpu in
17869         hppa*64*)
17870           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17871           ;;
17872         ia64*)
17873           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17874           ;;
17875         *)
17876           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17877           ;;
17878         esac
17879       else
17880         case $host_cpu in
17881         hppa*64*)
17882           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17883           ;;
17884         ia64*)
17885           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17886           ;;
17887         *)
17888           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17889           ;;
17890         esac
17891       fi
17892       if test "$with_gnu_ld" = no; then
17893         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17894         hardcode_libdir_separator_GCJ=:
17895
17896         case $host_cpu in
17897         hppa*64*|ia64*)
17898           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17899           hardcode_direct_GCJ=no
17900           hardcode_shlibpath_var_GCJ=no
17901           ;;
17902         *)
17903           hardcode_direct_GCJ=yes
17904           export_dynamic_flag_spec_GCJ='${wl}-E'
17905
17906           # hardcode_minus_L: Not really in the search PATH,
17907           # but as the default location of the library.
17908           hardcode_minus_L_GCJ=yes
17909           ;;
17910         esac
17911       fi
17912       ;;
17913
17914     irix5* | irix6* | nonstopux*)
17915       if test "$GCC" = yes; then
17916         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'
17917       else
17918         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'
17919         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17920       fi
17921       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17922       hardcode_libdir_separator_GCJ=:
17923       link_all_deplibs_GCJ=yes
17924       ;;
17925
17926     netbsd* | netbsdelf*-gnu)
17927       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17928         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17929       else
17930         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17931       fi
17932       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17933       hardcode_direct_GCJ=yes
17934       hardcode_shlibpath_var_GCJ=no
17935       ;;
17936
17937     newsos6)
17938       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17939       hardcode_direct_GCJ=yes
17940       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17941       hardcode_libdir_separator_GCJ=:
17942       hardcode_shlibpath_var_GCJ=no
17943       ;;
17944
17945     openbsd*)
17946       if test -f /usr/libexec/ld.so; then
17947         hardcode_direct_GCJ=yes
17948         hardcode_shlibpath_var_GCJ=no
17949         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17950           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17951           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17952           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17953           export_dynamic_flag_spec_GCJ='${wl}-E'
17954         else
17955           case $host_os in
17956            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17957              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17958              hardcode_libdir_flag_spec_GCJ='-R$libdir'
17959              ;;
17960            *)
17961              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17962              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17963              ;;
17964           esac
17965         fi
17966       else
17967         ld_shlibs_GCJ=no
17968       fi
17969       ;;
17970
17971     os2*)
17972       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17973       hardcode_minus_L_GCJ=yes
17974       allow_undefined_flag_GCJ=unsupported
17975       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'
17976       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17977       ;;
17978
17979     osf3*)
17980       if test "$GCC" = yes; then
17981         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17982         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'
17983       else
17984         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17985         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'
17986       fi
17987       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17988       hardcode_libdir_separator_GCJ=:
17989       ;;
17990
17991     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17992       if test "$GCC" = yes; then
17993         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17994         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'
17995         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17996       else
17997         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17998         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'
17999         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~
18000         $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'
18001
18002         # Both c and cxx compiler support -rpath directly
18003         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18004       fi
18005       hardcode_libdir_separator_GCJ=:
18006       ;;
18007
18008     solaris*)
18009       no_undefined_flag_GCJ=' -z text'
18010       if test "$GCC" = yes; then
18011         wlarc='${wl}'
18012         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18013         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18014           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18015       else
18016         wlarc=''
18017         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18019         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18020       fi
18021       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18022       hardcode_shlibpath_var_GCJ=no
18023       case $host_os in
18024       solaris2.[0-5] | solaris2.[0-5].*) ;;
18025       *)
18026         # The compiler driver will combine and reorder linker options,
18027         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18028         # but is careful enough not to reorder.
18029         # Supported since Solaris 2.6 (maybe 2.5.1?)
18030         if test "$GCC" = yes; then
18031           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18032         else
18033           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18034         fi
18035         ;;
18036       esac
18037       link_all_deplibs_GCJ=yes
18038       ;;
18039
18040     sunos4*)
18041       if test "x$host_vendor" = xsequent; then
18042         # Use $CC to link under sequent, because it throws in some extra .o
18043         # files that make .init and .fini sections work.
18044         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18045       else
18046         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18047       fi
18048       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18049       hardcode_direct_GCJ=yes
18050       hardcode_minus_L_GCJ=yes
18051       hardcode_shlibpath_var_GCJ=no
18052       ;;
18053
18054     sysv4)
18055       case $host_vendor in
18056         sni)
18057           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18058           hardcode_direct_GCJ=yes # is this really true???
18059         ;;
18060         siemens)
18061           ## LD is ld it makes a PLAMLIB
18062           ## CC just makes a GrossModule.
18063           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18064           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18065           hardcode_direct_GCJ=no
18066         ;;
18067         motorola)
18068           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18069           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18070         ;;
18071       esac
18072       runpath_var='LD_RUN_PATH'
18073       hardcode_shlibpath_var_GCJ=no
18074       ;;
18075
18076     sysv4.3*)
18077       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18078       hardcode_shlibpath_var_GCJ=no
18079       export_dynamic_flag_spec_GCJ='-Bexport'
18080       ;;
18081
18082     sysv4*MP*)
18083       if test -d /usr/nec; then
18084         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18085         hardcode_shlibpath_var_GCJ=no
18086         runpath_var=LD_RUN_PATH
18087         hardcode_runpath_var=yes
18088         ld_shlibs_GCJ=yes
18089       fi
18090       ;;
18091
18092     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18093       no_undefined_flag_GCJ='${wl}-z,text'
18094       archive_cmds_need_lc_GCJ=no
18095       hardcode_shlibpath_var_GCJ=no
18096       runpath_var='LD_RUN_PATH'
18097
18098       if test "$GCC" = yes; then
18099         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18100         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18101       else
18102         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18103         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104       fi
18105       ;;
18106
18107     sysv5* | sco3.2v5* | sco5v6*)
18108       # Note: We can NOT use -z defs as we might desire, because we do not
18109       # link with -lc, and that would cause any symbols used from libc to
18110       # always be unresolved, which means just about no library would
18111       # ever link correctly.  If we're not using GNU ld we use -z text
18112       # though, which does catch some bad symbols but isn't as heavy-handed
18113       # as -z defs.
18114       no_undefined_flag_GCJ='${wl}-z,text'
18115       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18116       archive_cmds_need_lc_GCJ=no
18117       hardcode_shlibpath_var_GCJ=no
18118       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18119       hardcode_libdir_separator_GCJ=':'
18120       link_all_deplibs_GCJ=yes
18121       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18122       runpath_var='LD_RUN_PATH'
18123
18124       if test "$GCC" = yes; then
18125         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18126         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18127       else
18128         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18129         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18130       fi
18131       ;;
18132
18133     uts4*)
18134       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18135       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18136       hardcode_shlibpath_var_GCJ=no
18137       ;;
18138
18139     *)
18140       ld_shlibs_GCJ=no
18141       ;;
18142     esac
18143   fi
18144
18145 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18146 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18147 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18148
18149 #
18150 # Do we need to explicitly link libc?
18151 #
18152 case "x$archive_cmds_need_lc_GCJ" in
18153 x|xyes)
18154   # Assume -lc should be added
18155   archive_cmds_need_lc_GCJ=yes
18156
18157   if test "$enable_shared" = yes && test "$GCC" = yes; then
18158     case $archive_cmds_GCJ in
18159     *'~'*)
18160       # FIXME: we may have to deal with multi-command sequences.
18161       ;;
18162     '$CC '*)
18163       # Test whether the compiler implicitly links with -lc since on some
18164       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18165       # to ld, don't add -lc before -lgcc.
18166       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18167 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18168       $rm conftest*
18169       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18170
18171       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172   (eval $ac_compile) 2>&5
18173   ac_status=$?
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } 2>conftest.err; then
18176         soname=conftest
18177         lib=conftest
18178         libobjs=conftest.$ac_objext
18179         deplibs=
18180         wl=$lt_prog_compiler_wl_GCJ
18181         pic_flag=$lt_prog_compiler_pic_GCJ
18182         compiler_flags=-v
18183         linker_flags=-v
18184         verstring=
18185         output_objdir=.
18186         libname=conftest
18187         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18188         allow_undefined_flag_GCJ=
18189         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18190   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18191   ac_status=$?
18192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193   (exit $ac_status); }
18194         then
18195           archive_cmds_need_lc_GCJ=no
18196         else
18197           archive_cmds_need_lc_GCJ=yes
18198         fi
18199         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18200       else
18201         cat conftest.err 1>&5
18202       fi
18203       $rm conftest*
18204       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18205 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18206       ;;
18207     esac
18208   fi
18209   ;;
18210 esac
18211
18212 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18213 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18214 library_names_spec=
18215 libname_spec='lib$name'
18216 soname_spec=
18217 shrext_cmds=".so"
18218 postinstall_cmds=
18219 postuninstall_cmds=
18220 finish_cmds=
18221 finish_eval=
18222 shlibpath_var=
18223 shlibpath_overrides_runpath=unknown
18224 version_type=none
18225 dynamic_linker="$host_os ld.so"
18226 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18227
18228 need_lib_prefix=unknown
18229 hardcode_into_libs=no
18230
18231 # when you set need_version to no, make sure it does not cause -set_version
18232 # flags to be left without arguments
18233 need_version=unknown
18234
18235 case $host_os in
18236 aix3*)
18237   version_type=linux
18238   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18239   shlibpath_var=LIBPATH
18240
18241   # AIX 3 has no versioning support, so we append a major version to the name.
18242   soname_spec='${libname}${release}${shared_ext}$major'
18243   ;;
18244
18245 aix[4-9]*)
18246   version_type=linux
18247   need_lib_prefix=no
18248   need_version=no
18249   hardcode_into_libs=yes
18250   if test "$host_cpu" = ia64; then
18251     # AIX 5 supports IA64
18252     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18253     shlibpath_var=LD_LIBRARY_PATH
18254   else
18255     # With GCC up to 2.95.x, collect2 would create an import file
18256     # for dependence libraries.  The import file would start with
18257     # the line `#! .'.  This would cause the generated library to
18258     # depend on `.', always an invalid library.  This was fixed in
18259     # development snapshots of GCC prior to 3.0.
18260     case $host_os in
18261       aix4 | aix4.[01] | aix4.[01].*)
18262       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18263            echo ' yes '
18264            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18265         :
18266       else
18267         can_build_shared=no
18268       fi
18269       ;;
18270     esac
18271     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18272     # soname into executable. Probably we can add versioning support to
18273     # collect2, so additional links can be useful in future.
18274     if test "$aix_use_runtimelinking" = yes; then
18275       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18276       # instead of lib<name>.a to let people know that these are not
18277       # typical AIX shared libraries.
18278       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18279     else
18280       # We preserve .a as extension for shared libraries through AIX4.2
18281       # and later when we are not doing run time linking.
18282       library_names_spec='${libname}${release}.a $libname.a'
18283       soname_spec='${libname}${release}${shared_ext}$major'
18284     fi
18285     shlibpath_var=LIBPATH
18286   fi
18287   ;;
18288
18289 amigaos*)
18290   library_names_spec='$libname.ixlibrary $libname.a'
18291   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18292   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'
18293   ;;
18294
18295 beos*)
18296   library_names_spec='${libname}${shared_ext}'
18297   dynamic_linker="$host_os ld.so"
18298   shlibpath_var=LIBRARY_PATH
18299   ;;
18300
18301 bsdi[45]*)
18302   version_type=linux
18303   need_version=no
18304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305   soname_spec='${libname}${release}${shared_ext}$major'
18306   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18307   shlibpath_var=LD_LIBRARY_PATH
18308   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18309   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18310   # the default ld.so.conf also contains /usr/contrib/lib and
18311   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18312   # libtool to hard-code these into programs
18313   ;;
18314
18315 cygwin* | mingw* | pw32*)
18316   version_type=windows
18317   shrext_cmds=".dll"
18318   need_version=no
18319   need_lib_prefix=no
18320
18321   case $GCC,$host_os in
18322   yes,cygwin* | yes,mingw* | yes,pw32*)
18323     library_names_spec='$libname.dll.a'
18324     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18325     postinstall_cmds='base_file=`basename \${file}`~
18326       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18327       dldir=$destdir/`dirname \$dlpath`~
18328       test -d \$dldir || mkdir -p \$dldir~
18329       $install_prog $dir/$dlname \$dldir/$dlname~
18330       chmod a+x \$dldir/$dlname'
18331     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18332       dlpath=$dir/\$dldll~
18333        $rm \$dlpath'
18334     shlibpath_overrides_runpath=yes
18335
18336     case $host_os in
18337     cygwin*)
18338       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18339       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18340       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18341       ;;
18342     mingw*)
18343       # MinGW DLLs use traditional 'lib' prefix
18344       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18345       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18346       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18347         # It is most probably a Windows format PATH printed by
18348         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18349         # path with ; separators, and with drive letters. We can handle the
18350         # drive letters (cygwin fileutils understands them), so leave them,
18351         # especially as we might pass files found there to a mingw objdump,
18352         # which wouldn't understand a cygwinified path. Ahh.
18353         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18354       else
18355         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18356       fi
18357       ;;
18358     pw32*)
18359       # pw32 DLLs use 'pw' prefix rather than 'lib'
18360       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18361       ;;
18362     esac
18363     ;;
18364
18365   *)
18366     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18367     ;;
18368   esac
18369   dynamic_linker='Win32 ld.exe'
18370   # FIXME: first we should search . and the directory the executable is in
18371   shlibpath_var=PATH
18372   ;;
18373
18374 darwin* | rhapsody*)
18375   dynamic_linker="$host_os dyld"
18376   version_type=darwin
18377   need_lib_prefix=no
18378   need_version=no
18379   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18380   soname_spec='${libname}${release}${major}$shared_ext'
18381   shlibpath_overrides_runpath=yes
18382   shlibpath_var=DYLD_LIBRARY_PATH
18383   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18384
18385   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18386   ;;
18387
18388 dgux*)
18389   version_type=linux
18390   need_lib_prefix=no
18391   need_version=no
18392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18393   soname_spec='${libname}${release}${shared_ext}$major'
18394   shlibpath_var=LD_LIBRARY_PATH
18395   ;;
18396
18397 freebsd1*)
18398   dynamic_linker=no
18399   ;;
18400
18401 freebsd* | dragonfly*)
18402   # DragonFly does not have aout.  When/if they implement a new
18403   # versioning mechanism, adjust this.
18404   if test -x /usr/bin/objformat; then
18405     objformat=`/usr/bin/objformat`
18406   else
18407     case $host_os in
18408     freebsd[123]*) objformat=aout ;;
18409     *) objformat=elf ;;
18410     esac
18411   fi
18412   version_type=freebsd-$objformat
18413   case $version_type in
18414     freebsd-elf*)
18415       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18416       need_version=no
18417       need_lib_prefix=no
18418       ;;
18419     freebsd-*)
18420       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18421       need_version=yes
18422       ;;
18423   esac
18424   shlibpath_var=LD_LIBRARY_PATH
18425   case $host_os in
18426   freebsd2*)
18427     shlibpath_overrides_runpath=yes
18428     ;;
18429   freebsd3.[01]* | freebsdelf3.[01]*)
18430     shlibpath_overrides_runpath=yes
18431     hardcode_into_libs=yes
18432     ;;
18433   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18434   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18435     shlibpath_overrides_runpath=no
18436     hardcode_into_libs=yes
18437     ;;
18438   *) # from 4.6 on, and DragonFly
18439     shlibpath_overrides_runpath=yes
18440     hardcode_into_libs=yes
18441     ;;
18442   esac
18443   ;;
18444
18445 gnu*)
18446   version_type=linux
18447   need_lib_prefix=no
18448   need_version=no
18449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18450   soname_spec='${libname}${release}${shared_ext}$major'
18451   shlibpath_var=LD_LIBRARY_PATH
18452   hardcode_into_libs=yes
18453   ;;
18454
18455 hpux9* | hpux10* | hpux11*)
18456   # Give a soname corresponding to the major version so that dld.sl refuses to
18457   # link against other versions.
18458   version_type=sunos
18459   need_lib_prefix=no
18460   need_version=no
18461   case $host_cpu in
18462   ia64*)
18463     shrext_cmds='.so'
18464     hardcode_into_libs=yes
18465     dynamic_linker="$host_os dld.so"
18466     shlibpath_var=LD_LIBRARY_PATH
18467     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18469     soname_spec='${libname}${release}${shared_ext}$major'
18470     if test "X$HPUX_IA64_MODE" = X32; then
18471       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18472     else
18473       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18474     fi
18475     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18476     ;;
18477    hppa*64*)
18478      shrext_cmds='.sl'
18479      hardcode_into_libs=yes
18480      dynamic_linker="$host_os dld.sl"
18481      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18482      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18483      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484      soname_spec='${libname}${release}${shared_ext}$major'
18485      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18486      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18487      ;;
18488    *)
18489     shrext_cmds='.sl'
18490     dynamic_linker="$host_os dld.sl"
18491     shlibpath_var=SHLIB_PATH
18492     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494     soname_spec='${libname}${release}${shared_ext}$major'
18495     ;;
18496   esac
18497   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18498   postinstall_cmds='chmod 555 $lib'
18499   ;;
18500
18501 interix[3-9]*)
18502   version_type=linux
18503   need_lib_prefix=no
18504   need_version=no
18505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18506   soname_spec='${libname}${release}${shared_ext}$major'
18507   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18508   shlibpath_var=LD_LIBRARY_PATH
18509   shlibpath_overrides_runpath=no
18510   hardcode_into_libs=yes
18511   ;;
18512
18513 irix5* | irix6* | nonstopux*)
18514   case $host_os in
18515     nonstopux*) version_type=nonstopux ;;
18516     *)
18517         if test "$lt_cv_prog_gnu_ld" = yes; then
18518                 version_type=linux
18519         else
18520                 version_type=irix
18521         fi ;;
18522   esac
18523   need_lib_prefix=no
18524   need_version=no
18525   soname_spec='${libname}${release}${shared_ext}$major'
18526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18527   case $host_os in
18528   irix5* | nonstopux*)
18529     libsuff= shlibsuff=
18530     ;;
18531   *)
18532     case $LD in # libtool.m4 will add one of these switches to LD
18533     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18534       libsuff= shlibsuff= libmagic=32-bit;;
18535     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18536       libsuff=32 shlibsuff=N32 libmagic=N32;;
18537     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18538       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18539     *) libsuff= shlibsuff= libmagic=never-match;;
18540     esac
18541     ;;
18542   esac
18543   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18544   shlibpath_overrides_runpath=no
18545   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18546   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18547   hardcode_into_libs=yes
18548   ;;
18549
18550 # No shared lib support for Linux oldld, aout, or coff.
18551 linux*oldld* | linux*aout* | linux*coff*)
18552   dynamic_linker=no
18553   ;;
18554
18555 # This must be Linux ELF.
18556 linux* | k*bsd*-gnu)
18557   version_type=linux
18558   need_lib_prefix=no
18559   need_version=no
18560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18561   soname_spec='${libname}${release}${shared_ext}$major'
18562   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18563   shlibpath_var=LD_LIBRARY_PATH
18564   shlibpath_overrides_runpath=no
18565   # This implies no fast_install, which is unacceptable.
18566   # Some rework will be needed to allow for fast_install
18567   # before this can be enabled.
18568   hardcode_into_libs=yes
18569
18570   # Append ld.so.conf contents to the search path
18571   if test -f /etc/ld.so.conf; then
18572     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' ' '`
18573     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18574   fi
18575
18576   # We used to test for /lib/ld.so.1 and disable shared libraries on
18577   # powerpc, because MkLinux only supported shared libraries with the
18578   # GNU dynamic linker.  Since this was broken with cross compilers,
18579   # most powerpc-linux boxes support dynamic linking these days and
18580   # people can always --disable-shared, the test was removed, and we
18581   # assume the GNU/Linux dynamic linker is in use.
18582   dynamic_linker='GNU/Linux ld.so'
18583   ;;
18584
18585 netbsdelf*-gnu)
18586   version_type=linux
18587   need_lib_prefix=no
18588   need_version=no
18589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18590   soname_spec='${libname}${release}${shared_ext}$major'
18591   shlibpath_var=LD_LIBRARY_PATH
18592   shlibpath_overrides_runpath=no
18593   hardcode_into_libs=yes
18594   dynamic_linker='NetBSD ld.elf_so'
18595   ;;
18596
18597 netbsd*)
18598   version_type=sunos
18599   need_lib_prefix=no
18600   need_version=no
18601   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18603     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18604     dynamic_linker='NetBSD (a.out) ld.so'
18605   else
18606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18607     soname_spec='${libname}${release}${shared_ext}$major'
18608     dynamic_linker='NetBSD ld.elf_so'
18609   fi
18610   shlibpath_var=LD_LIBRARY_PATH
18611   shlibpath_overrides_runpath=yes
18612   hardcode_into_libs=yes
18613   ;;
18614
18615 newsos6)
18616   version_type=linux
18617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18618   shlibpath_var=LD_LIBRARY_PATH
18619   shlibpath_overrides_runpath=yes
18620   ;;
18621
18622 nto-qnx*)
18623   version_type=linux
18624   need_lib_prefix=no
18625   need_version=no
18626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627   soname_spec='${libname}${release}${shared_ext}$major'
18628   shlibpath_var=LD_LIBRARY_PATH
18629   shlibpath_overrides_runpath=yes
18630   ;;
18631
18632 openbsd*)
18633   version_type=sunos
18634   sys_lib_dlsearch_path_spec="/usr/lib"
18635   need_lib_prefix=no
18636   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18637   case $host_os in
18638     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18639     *)                         need_version=no  ;;
18640   esac
18641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18643   shlibpath_var=LD_LIBRARY_PATH
18644   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18645     case $host_os in
18646       openbsd2.[89] | openbsd2.[89].*)
18647         shlibpath_overrides_runpath=no
18648         ;;
18649       *)
18650         shlibpath_overrides_runpath=yes
18651         ;;
18652       esac
18653   else
18654     shlibpath_overrides_runpath=yes
18655   fi
18656   ;;
18657
18658 os2*)
18659   libname_spec='$name'
18660   shrext_cmds=".dll"
18661   need_lib_prefix=no
18662   library_names_spec='$libname${shared_ext} $libname.a'
18663   dynamic_linker='OS/2 ld.exe'
18664   shlibpath_var=LIBPATH
18665   ;;
18666
18667 osf3* | osf4* | osf5*)
18668   version_type=osf
18669   need_lib_prefix=no
18670   need_version=no
18671   soname_spec='${libname}${release}${shared_ext}$major'
18672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18673   shlibpath_var=LD_LIBRARY_PATH
18674   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18675   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18676   ;;
18677
18678 rdos*)
18679   dynamic_linker=no
18680   ;;
18681
18682 solaris*)
18683   version_type=linux
18684   need_lib_prefix=no
18685   need_version=no
18686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687   soname_spec='${libname}${release}${shared_ext}$major'
18688   shlibpath_var=LD_LIBRARY_PATH
18689   shlibpath_overrides_runpath=yes
18690   hardcode_into_libs=yes
18691   # ldd complains unless libraries are executable
18692   postinstall_cmds='chmod +x $lib'
18693   ;;
18694
18695 sunos4*)
18696   version_type=sunos
18697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18698   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18699   shlibpath_var=LD_LIBRARY_PATH
18700   shlibpath_overrides_runpath=yes
18701   if test "$with_gnu_ld" = yes; then
18702     need_lib_prefix=no
18703   fi
18704   need_version=yes
18705   ;;
18706
18707 sysv4 | sysv4.3*)
18708   version_type=linux
18709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18710   soname_spec='${libname}${release}${shared_ext}$major'
18711   shlibpath_var=LD_LIBRARY_PATH
18712   case $host_vendor in
18713     sni)
18714       shlibpath_overrides_runpath=no
18715       need_lib_prefix=no
18716       export_dynamic_flag_spec='${wl}-Blargedynsym'
18717       runpath_var=LD_RUN_PATH
18718       ;;
18719     siemens)
18720       need_lib_prefix=no
18721       ;;
18722     motorola)
18723       need_lib_prefix=no
18724       need_version=no
18725       shlibpath_overrides_runpath=no
18726       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18727       ;;
18728   esac
18729   ;;
18730
18731 sysv4*MP*)
18732   if test -d /usr/nec ;then
18733     version_type=linux
18734     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18735     soname_spec='$libname${shared_ext}.$major'
18736     shlibpath_var=LD_LIBRARY_PATH
18737   fi
18738   ;;
18739
18740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18741   version_type=freebsd-elf
18742   need_lib_prefix=no
18743   need_version=no
18744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18745   soname_spec='${libname}${release}${shared_ext}$major'
18746   shlibpath_var=LD_LIBRARY_PATH
18747   hardcode_into_libs=yes
18748   if test "$with_gnu_ld" = yes; then
18749     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18750     shlibpath_overrides_runpath=no
18751   else
18752     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18753     shlibpath_overrides_runpath=yes
18754     case $host_os in
18755       sco3.2v5*)
18756         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18757         ;;
18758     esac
18759   fi
18760   sys_lib_dlsearch_path_spec='/usr/lib'
18761   ;;
18762
18763 uts4*)
18764   version_type=linux
18765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18766   soname_spec='${libname}${release}${shared_ext}$major'
18767   shlibpath_var=LD_LIBRARY_PATH
18768   ;;
18769
18770 *)
18771   dynamic_linker=no
18772   ;;
18773 esac
18774 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18775 echo "${ECHO_T}$dynamic_linker" >&6; }
18776 test "$dynamic_linker" = no && can_build_shared=no
18777
18778 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18782 fi
18783
18784 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18785 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18786   echo $ECHO_N "(cached) $ECHO_C" >&6
18787 else
18788   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18789 fi
18790
18791 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18792
18793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18794 if test "$GCC" = yes; then
18795   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18796 fi
18797
18798 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18799 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18800 hardcode_action_GCJ=
18801 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18802    test -n "$runpath_var_GCJ" || \
18803    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18804
18805   # We can hardcode non-existant directories.
18806   if test "$hardcode_direct_GCJ" != no &&
18807      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18808      # have to relink, otherwise we might link with an installed library
18809      # when we should be linking with a yet-to-be-installed one
18810      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18811      test "$hardcode_minus_L_GCJ" != no; then
18812     # Linking always hardcodes the temporary library directory.
18813     hardcode_action_GCJ=relink
18814   else
18815     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18816     hardcode_action_GCJ=immediate
18817   fi
18818 else
18819   # We cannot hardcode anything, or else we can only hardcode existing
18820   # directories.
18821   hardcode_action_GCJ=unsupported
18822 fi
18823 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18824 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18825
18826 if test "$hardcode_action_GCJ" = relink; then
18827   # Fast installation is not supported
18828   enable_fast_install=no
18829 elif test "$shlibpath_overrides_runpath" = yes ||
18830      test "$enable_shared" = no; then
18831   # Fast installation is not necessary
18832   enable_fast_install=needless
18833 fi
18834
18835
18836 # The else clause should only fire when bootstrapping the
18837 # libtool distribution, otherwise you forgot to ship ltmain.sh
18838 # with your package, and you will get complaints that there are
18839 # no rules to generate ltmain.sh.
18840 if test -f "$ltmain"; then
18841   # See if we are running on zsh, and set the options which allow our commands through
18842   # without removal of \ escapes.
18843   if test -n "${ZSH_VERSION+set}" ; then
18844     setopt NO_GLOB_SUBST
18845   fi
18846   # Now quote all the things that may contain metacharacters while being
18847   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18848   # variables and quote the copies for generation of the libtool script.
18849   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18850     SED SHELL STRIP \
18851     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18852     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18853     deplibs_check_method reload_flag reload_cmds need_locks \
18854     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18855     lt_cv_sys_global_symbol_to_c_name_address \
18856     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18857     old_postinstall_cmds old_postuninstall_cmds \
18858     compiler_GCJ \
18859     CC_GCJ \
18860     LD_GCJ \
18861     lt_prog_compiler_wl_GCJ \
18862     lt_prog_compiler_pic_GCJ \
18863     lt_prog_compiler_static_GCJ \
18864     lt_prog_compiler_no_builtin_flag_GCJ \
18865     export_dynamic_flag_spec_GCJ \
18866     thread_safe_flag_spec_GCJ \
18867     whole_archive_flag_spec_GCJ \
18868     enable_shared_with_static_runtimes_GCJ \
18869     old_archive_cmds_GCJ \
18870     old_archive_from_new_cmds_GCJ \
18871     predep_objects_GCJ \
18872     postdep_objects_GCJ \
18873     predeps_GCJ \
18874     postdeps_GCJ \
18875     compiler_lib_search_path_GCJ \
18876     compiler_lib_search_dirs_GCJ \
18877     archive_cmds_GCJ \
18878     archive_expsym_cmds_GCJ \
18879     postinstall_cmds_GCJ \
18880     postuninstall_cmds_GCJ \
18881     old_archive_from_expsyms_cmds_GCJ \
18882     allow_undefined_flag_GCJ \
18883     no_undefined_flag_GCJ \
18884     export_symbols_cmds_GCJ \
18885     hardcode_libdir_flag_spec_GCJ \
18886     hardcode_libdir_flag_spec_ld_GCJ \
18887     hardcode_libdir_separator_GCJ \
18888     hardcode_automatic_GCJ \
18889     module_cmds_GCJ \
18890     module_expsym_cmds_GCJ \
18891     lt_cv_prog_compiler_c_o_GCJ \
18892     fix_srcfile_path_GCJ \
18893     exclude_expsyms_GCJ \
18894     include_expsyms_GCJ; do
18895
18896     case $var in
18897     old_archive_cmds_GCJ | \
18898     old_archive_from_new_cmds_GCJ | \
18899     archive_cmds_GCJ | \
18900     archive_expsym_cmds_GCJ | \
18901     module_cmds_GCJ | \
18902     module_expsym_cmds_GCJ | \
18903     old_archive_from_expsyms_cmds_GCJ | \
18904     export_symbols_cmds_GCJ | \
18905     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18906     postinstall_cmds | postuninstall_cmds | \
18907     old_postinstall_cmds | old_postuninstall_cmds | \
18908     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18909       # Double-quote double-evaled strings.
18910       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18911       ;;
18912     *)
18913       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18914       ;;
18915     esac
18916   done
18917
18918   case $lt_echo in
18919   *'\$0 --fallback-echo"')
18920     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18921     ;;
18922   esac
18923
18924 cfgfile="$ofile"
18925
18926   cat <<__EOF__ >> "$cfgfile"
18927 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18928
18929 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18930
18931 # Shell to use when invoking shell scripts.
18932 SHELL=$lt_SHELL
18933
18934 # Whether or not to build shared libraries.
18935 build_libtool_libs=$enable_shared
18936
18937 # Whether or not to build static libraries.
18938 build_old_libs=$enable_static
18939
18940 # Whether or not to add -lc for building shared libraries.
18941 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18942
18943 # Whether or not to disallow shared libs when runtime libs are static
18944 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18945
18946 # Whether or not to optimize for fast installation.
18947 fast_install=$enable_fast_install
18948
18949 # The host system.
18950 host_alias=$host_alias
18951 host=$host
18952 host_os=$host_os
18953
18954 # The build system.
18955 build_alias=$build_alias
18956 build=$build
18957 build_os=$build_os
18958
18959 # An echo program that does not interpret backslashes.
18960 echo=$lt_echo
18961
18962 # The archiver.
18963 AR=$lt_AR
18964 AR_FLAGS=$lt_AR_FLAGS
18965
18966 # A C compiler.
18967 LTCC=$lt_LTCC
18968
18969 # LTCC compiler flags.
18970 LTCFLAGS=$lt_LTCFLAGS
18971
18972 # A language-specific compiler.
18973 CC=$lt_compiler_GCJ
18974
18975 # Is the compiler the GNU C compiler?
18976 with_gcc=$GCC_GCJ
18977
18978 # An ERE matcher.
18979 EGREP=$lt_EGREP
18980
18981 # The linker used to build libraries.
18982 LD=$lt_LD_GCJ
18983
18984 # Whether we need hard or soft links.
18985 LN_S=$lt_LN_S
18986
18987 # A BSD-compatible nm program.
18988 NM=$lt_NM
18989
18990 # A symbol stripping program
18991 STRIP=$lt_STRIP
18992
18993 # Used to examine libraries when file_magic_cmd begins "file"
18994 MAGIC_CMD=$MAGIC_CMD
18995
18996 # Used on cygwin: DLL creation program.
18997 DLLTOOL="$DLLTOOL"
18998
18999 # Used on cygwin: object dumper.
19000 OBJDUMP="$OBJDUMP"
19001
19002 # Used on cygwin: assembler.
19003 AS="$AS"
19004
19005 # The name of the directory that contains temporary libtool files.
19006 objdir=$objdir
19007
19008 # How to create reloadable object files.
19009 reload_flag=$lt_reload_flag
19010 reload_cmds=$lt_reload_cmds
19011
19012 # How to pass a linker flag through the compiler.
19013 wl=$lt_lt_prog_compiler_wl_GCJ
19014
19015 # Object file suffix (normally "o").
19016 objext="$ac_objext"
19017
19018 # Old archive suffix (normally "a").
19019 libext="$libext"
19020
19021 # Shared library suffix (normally ".so").
19022 shrext_cmds='$shrext_cmds'
19023
19024 # Executable file suffix (normally "").
19025 exeext="$exeext"
19026
19027 # Additional compiler flags for building library objects.
19028 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19029 pic_mode=$pic_mode
19030
19031 # What is the maximum length of a command?
19032 max_cmd_len=$lt_cv_sys_max_cmd_len
19033
19034 # Does compiler simultaneously support -c and -o options?
19035 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19036
19037 # Must we lock files when doing compilation?
19038 need_locks=$lt_need_locks
19039
19040 # Do we need the lib prefix for modules?
19041 need_lib_prefix=$need_lib_prefix
19042
19043 # Do we need a version for libraries?
19044 need_version=$need_version
19045
19046 # Whether dlopen is supported.
19047 dlopen_support=$enable_dlopen
19048
19049 # Whether dlopen of programs is supported.
19050 dlopen_self=$enable_dlopen_self
19051
19052 # Whether dlopen of statically linked programs is supported.
19053 dlopen_self_static=$enable_dlopen_self_static
19054
19055 # Compiler flag to prevent dynamic linking.
19056 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19057
19058 # Compiler flag to turn off builtin functions.
19059 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19060
19061 # Compiler flag to allow reflexive dlopens.
19062 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19063
19064 # Compiler flag to generate shared objects directly from archives.
19065 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19066
19067 # Compiler flag to generate thread-safe objects.
19068 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19069
19070 # Library versioning type.
19071 version_type=$version_type
19072
19073 # Format of library name prefix.
19074 libname_spec=$lt_libname_spec
19075
19076 # List of archive names.  First name is the real one, the rest are links.
19077 # The last name is the one that the linker finds with -lNAME.
19078 library_names_spec=$lt_library_names_spec
19079
19080 # The coded name of the library, if different from the real name.
19081 soname_spec=$lt_soname_spec
19082
19083 # Commands used to build and install an old-style archive.
19084 RANLIB=$lt_RANLIB
19085 old_archive_cmds=$lt_old_archive_cmds_GCJ
19086 old_postinstall_cmds=$lt_old_postinstall_cmds
19087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19088
19089 # Create an old-style archive from a shared archive.
19090 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19091
19092 # Create a temporary old-style archive to link instead of a shared archive.
19093 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19094
19095 # Commands used to build and install a shared archive.
19096 archive_cmds=$lt_archive_cmds_GCJ
19097 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19098 postinstall_cmds=$lt_postinstall_cmds
19099 postuninstall_cmds=$lt_postuninstall_cmds
19100
19101 # Commands used to build a loadable module (assumed same as above if empty)
19102 module_cmds=$lt_module_cmds_GCJ
19103 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19104
19105 # Commands to strip libraries.
19106 old_striplib=$lt_old_striplib
19107 striplib=$lt_striplib
19108
19109 # Dependencies to place before the objects being linked to create a
19110 # shared library.
19111 predep_objects=$lt_predep_objects_GCJ
19112
19113 # Dependencies to place after the objects being linked to create a
19114 # shared library.
19115 postdep_objects=$lt_postdep_objects_GCJ
19116
19117 # Dependencies to place before the objects being linked to create a
19118 # shared library.
19119 predeps=$lt_predeps_GCJ
19120
19121 # Dependencies to place after the objects being linked to create a
19122 # shared library.
19123 postdeps=$lt_postdeps_GCJ
19124
19125 # The directories searched by this compiler when creating a shared
19126 # library
19127 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19128
19129 # The library search path used internally by the compiler when linking
19130 # a shared library.
19131 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19132
19133 # Method to check whether dependent libraries are shared objects.
19134 deplibs_check_method=$lt_deplibs_check_method
19135
19136 # Command to use when deplibs_check_method == file_magic.
19137 file_magic_cmd=$lt_file_magic_cmd
19138
19139 # Flag that allows shared libraries with undefined symbols to be built.
19140 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19141
19142 # Flag that forces no undefined symbols.
19143 no_undefined_flag=$lt_no_undefined_flag_GCJ
19144
19145 # Commands used to finish a libtool library installation in a directory.
19146 finish_cmds=$lt_finish_cmds
19147
19148 # Same as above, but a single script fragment to be evaled but not shown.
19149 finish_eval=$lt_finish_eval
19150
19151 # Take the output of nm and produce a listing of raw symbols and C names.
19152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19153
19154 # Transform the output of nm in a proper C declaration
19155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19156
19157 # Transform the output of nm in a C name address pair
19158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19159
19160 # This is the shared library runtime path variable.
19161 runpath_var=$runpath_var
19162
19163 # This is the shared library path variable.
19164 shlibpath_var=$shlibpath_var
19165
19166 # Is shlibpath searched before the hard-coded library search path?
19167 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19168
19169 # How to hardcode a shared library path into an executable.
19170 hardcode_action=$hardcode_action_GCJ
19171
19172 # Whether we should hardcode library paths into libraries.
19173 hardcode_into_libs=$hardcode_into_libs
19174
19175 # Flag to hardcode \$libdir into a binary during linking.
19176 # This must work even if \$libdir does not exist.
19177 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19178
19179 # If ld is used when linking, flag to hardcode \$libdir into
19180 # a binary during linking. This must work even if \$libdir does
19181 # not exist.
19182 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19183
19184 # Whether we need a single -rpath flag with a separated argument.
19185 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19186
19187 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19188 # resulting binary.
19189 hardcode_direct=$hardcode_direct_GCJ
19190
19191 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19192 # resulting binary.
19193 hardcode_minus_L=$hardcode_minus_L_GCJ
19194
19195 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19196 # the resulting binary.
19197 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19198
19199 # Set to yes if building a shared library automatically hardcodes DIR into the library
19200 # and all subsequent libraries and executables linked against it.
19201 hardcode_automatic=$hardcode_automatic_GCJ
19202
19203 # Variables whose values should be saved in libtool wrapper scripts and
19204 # restored at relink time.
19205 variables_saved_for_relink="$variables_saved_for_relink"
19206
19207 # Whether libtool must link a program against all its dependency libraries.
19208 link_all_deplibs=$link_all_deplibs_GCJ
19209
19210 # Compile-time system search path for libraries
19211 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19212
19213 # Run-time system search path for libraries
19214 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19215
19216 # Fix the shell variable \$srcfile for the compiler.
19217 fix_srcfile_path=$lt_fix_srcfile_path
19218
19219 # Set to yes if exported symbols are required.
19220 always_export_symbols=$always_export_symbols_GCJ
19221
19222 # The commands to list exported symbols.
19223 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19224
19225 # The commands to extract the exported symbol list from a shared archive.
19226 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19227
19228 # Symbols that should not be listed in the preloaded symbols.
19229 exclude_expsyms=$lt_exclude_expsyms_GCJ
19230
19231 # Symbols that must always be exported.
19232 include_expsyms=$lt_include_expsyms_GCJ
19233
19234 # ### END LIBTOOL TAG CONFIG: $tagname
19235
19236 __EOF__
19237
19238
19239 else
19240   # If there is no Makefile yet, we rely on a make rule to execute
19241   # `config.status --recheck' to rerun these tests and create the
19242   # libtool script then.
19243   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19244   if test -f "$ltmain_in"; then
19245     test -f Makefile && make "$ltmain"
19246   fi
19247 fi
19248
19249
19250 ac_ext=c
19251 ac_cpp='$CPP $CPPFLAGS'
19252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19255
19256 CC="$lt_save_CC"
19257
19258         else
19259           tagname=""
19260         fi
19261         ;;
19262
19263       RC)
19264
19265
19266 # Source file extension for RC test sources.
19267 ac_ext=rc
19268
19269 # Object file extension for compiled RC test sources.
19270 objext=o
19271 objext_RC=$objext
19272
19273 # Code to be used in simple compile tests
19274 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19275
19276 # Code to be used in simple link tests
19277 lt_simple_link_test_code="$lt_simple_compile_test_code"
19278
19279 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19280
19281 # If no C compiler was specified, use CC.
19282 LTCC=${LTCC-"$CC"}
19283
19284 # If no C compiler flags were specified, use CFLAGS.
19285 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19286
19287 # Allow CC to be a program name with arguments.
19288 compiler=$CC
19289
19290
19291 # save warnings/boilerplate of simple test code
19292 ac_outfile=conftest.$ac_objext
19293 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19294 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19295 _lt_compiler_boilerplate=`cat conftest.err`
19296 $rm conftest*
19297
19298 ac_outfile=conftest.$ac_objext
19299 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19300 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19301 _lt_linker_boilerplate=`cat conftest.err`
19302 $rm -r conftest*
19303
19304
19305 # Allow CC to be a program name with arguments.
19306 lt_save_CC="$CC"
19307 CC=${RC-"windres"}
19308 compiler=$CC
19309 compiler_RC=$CC
19310 for cc_temp in $compiler""; do
19311   case $cc_temp in
19312     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19313     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19314     \-*) ;;
19315     *) break;;
19316   esac
19317 done
19318 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19319
19320 lt_cv_prog_compiler_c_o_RC=yes
19321
19322 # The else clause should only fire when bootstrapping the
19323 # libtool distribution, otherwise you forgot to ship ltmain.sh
19324 # with your package, and you will get complaints that there are
19325 # no rules to generate ltmain.sh.
19326 if test -f "$ltmain"; then
19327   # See if we are running on zsh, and set the options which allow our commands through
19328   # without removal of \ escapes.
19329   if test -n "${ZSH_VERSION+set}" ; then
19330     setopt NO_GLOB_SUBST
19331   fi
19332   # Now quote all the things that may contain metacharacters while being
19333   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19334   # variables and quote the copies for generation of the libtool script.
19335   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19336     SED SHELL STRIP \
19337     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19338     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19339     deplibs_check_method reload_flag reload_cmds need_locks \
19340     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19341     lt_cv_sys_global_symbol_to_c_name_address \
19342     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19343     old_postinstall_cmds old_postuninstall_cmds \
19344     compiler_RC \
19345     CC_RC \
19346     LD_RC \
19347     lt_prog_compiler_wl_RC \
19348     lt_prog_compiler_pic_RC \
19349     lt_prog_compiler_static_RC \
19350     lt_prog_compiler_no_builtin_flag_RC \
19351     export_dynamic_flag_spec_RC \
19352     thread_safe_flag_spec_RC \
19353     whole_archive_flag_spec_RC \
19354     enable_shared_with_static_runtimes_RC \
19355     old_archive_cmds_RC \
19356     old_archive_from_new_cmds_RC \
19357     predep_objects_RC \
19358     postdep_objects_RC \
19359     predeps_RC \
19360     postdeps_RC \
19361     compiler_lib_search_path_RC \
19362     compiler_lib_search_dirs_RC \
19363     archive_cmds_RC \
19364     archive_expsym_cmds_RC \
19365     postinstall_cmds_RC \
19366     postuninstall_cmds_RC \
19367     old_archive_from_expsyms_cmds_RC \
19368     allow_undefined_flag_RC \
19369     no_undefined_flag_RC \
19370     export_symbols_cmds_RC \
19371     hardcode_libdir_flag_spec_RC \
19372     hardcode_libdir_flag_spec_ld_RC \
19373     hardcode_libdir_separator_RC \
19374     hardcode_automatic_RC \
19375     module_cmds_RC \
19376     module_expsym_cmds_RC \
19377     lt_cv_prog_compiler_c_o_RC \
19378     fix_srcfile_path_RC \
19379     exclude_expsyms_RC \
19380     include_expsyms_RC; do
19381
19382     case $var in
19383     old_archive_cmds_RC | \
19384     old_archive_from_new_cmds_RC | \
19385     archive_cmds_RC | \
19386     archive_expsym_cmds_RC | \
19387     module_cmds_RC | \
19388     module_expsym_cmds_RC | \
19389     old_archive_from_expsyms_cmds_RC | \
19390     export_symbols_cmds_RC | \
19391     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19392     postinstall_cmds | postuninstall_cmds | \
19393     old_postinstall_cmds | old_postuninstall_cmds | \
19394     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19395       # Double-quote double-evaled strings.
19396       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19397       ;;
19398     *)
19399       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19400       ;;
19401     esac
19402   done
19403
19404   case $lt_echo in
19405   *'\$0 --fallback-echo"')
19406     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19407     ;;
19408   esac
19409
19410 cfgfile="$ofile"
19411
19412   cat <<__EOF__ >> "$cfgfile"
19413 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19414
19415 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19416
19417 # Shell to use when invoking shell scripts.
19418 SHELL=$lt_SHELL
19419
19420 # Whether or not to build shared libraries.
19421 build_libtool_libs=$enable_shared
19422
19423 # Whether or not to build static libraries.
19424 build_old_libs=$enable_static
19425
19426 # Whether or not to add -lc for building shared libraries.
19427 build_libtool_need_lc=$archive_cmds_need_lc_RC
19428
19429 # Whether or not to disallow shared libs when runtime libs are static
19430 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19431
19432 # Whether or not to optimize for fast installation.
19433 fast_install=$enable_fast_install
19434
19435 # The host system.
19436 host_alias=$host_alias
19437 host=$host
19438 host_os=$host_os
19439
19440 # The build system.
19441 build_alias=$build_alias
19442 build=$build
19443 build_os=$build_os
19444
19445 # An echo program that does not interpret backslashes.
19446 echo=$lt_echo
19447
19448 # The archiver.
19449 AR=$lt_AR
19450 AR_FLAGS=$lt_AR_FLAGS
19451
19452 # A C compiler.
19453 LTCC=$lt_LTCC
19454
19455 # LTCC compiler flags.
19456 LTCFLAGS=$lt_LTCFLAGS
19457
19458 # A language-specific compiler.
19459 CC=$lt_compiler_RC
19460
19461 # Is the compiler the GNU C compiler?
19462 with_gcc=$GCC_RC
19463
19464 # An ERE matcher.
19465 EGREP=$lt_EGREP
19466
19467 # The linker used to build libraries.
19468 LD=$lt_LD_RC
19469
19470 # Whether we need hard or soft links.
19471 LN_S=$lt_LN_S
19472
19473 # A BSD-compatible nm program.
19474 NM=$lt_NM
19475
19476 # A symbol stripping program
19477 STRIP=$lt_STRIP
19478
19479 # Used to examine libraries when file_magic_cmd begins "file"
19480 MAGIC_CMD=$MAGIC_CMD
19481
19482 # Used on cygwin: DLL creation program.
19483 DLLTOOL="$DLLTOOL"
19484
19485 # Used on cygwin: object dumper.
19486 OBJDUMP="$OBJDUMP"
19487
19488 # Used on cygwin: assembler.
19489 AS="$AS"
19490
19491 # The name of the directory that contains temporary libtool files.
19492 objdir=$objdir
19493
19494 # How to create reloadable object files.
19495 reload_flag=$lt_reload_flag
19496 reload_cmds=$lt_reload_cmds
19497
19498 # How to pass a linker flag through the compiler.
19499 wl=$lt_lt_prog_compiler_wl_RC
19500
19501 # Object file suffix (normally "o").
19502 objext="$ac_objext"
19503
19504 # Old archive suffix (normally "a").
19505 libext="$libext"
19506
19507 # Shared library suffix (normally ".so").
19508 shrext_cmds='$shrext_cmds'
19509
19510 # Executable file suffix (normally "").
19511 exeext="$exeext"
19512
19513 # Additional compiler flags for building library objects.
19514 pic_flag=$lt_lt_prog_compiler_pic_RC
19515 pic_mode=$pic_mode
19516
19517 # What is the maximum length of a command?
19518 max_cmd_len=$lt_cv_sys_max_cmd_len
19519
19520 # Does compiler simultaneously support -c and -o options?
19521 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19522
19523 # Must we lock files when doing compilation?
19524 need_locks=$lt_need_locks
19525
19526 # Do we need the lib prefix for modules?
19527 need_lib_prefix=$need_lib_prefix
19528
19529 # Do we need a version for libraries?
19530 need_version=$need_version
19531
19532 # Whether dlopen is supported.
19533 dlopen_support=$enable_dlopen
19534
19535 # Whether dlopen of programs is supported.
19536 dlopen_self=$enable_dlopen_self
19537
19538 # Whether dlopen of statically linked programs is supported.
19539 dlopen_self_static=$enable_dlopen_self_static
19540
19541 # Compiler flag to prevent dynamic linking.
19542 link_static_flag=$lt_lt_prog_compiler_static_RC
19543
19544 # Compiler flag to turn off builtin functions.
19545 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19546
19547 # Compiler flag to allow reflexive dlopens.
19548 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19549
19550 # Compiler flag to generate shared objects directly from archives.
19551 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19552
19553 # Compiler flag to generate thread-safe objects.
19554 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19555
19556 # Library versioning type.
19557 version_type=$version_type
19558
19559 # Format of library name prefix.
19560 libname_spec=$lt_libname_spec
19561
19562 # List of archive names.  First name is the real one, the rest are links.
19563 # The last name is the one that the linker finds with -lNAME.
19564 library_names_spec=$lt_library_names_spec
19565
19566 # The coded name of the library, if different from the real name.
19567 soname_spec=$lt_soname_spec
19568
19569 # Commands used to build and install an old-style archive.
19570 RANLIB=$lt_RANLIB
19571 old_archive_cmds=$lt_old_archive_cmds_RC
19572 old_postinstall_cmds=$lt_old_postinstall_cmds
19573 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19574
19575 # Create an old-style archive from a shared archive.
19576 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19577
19578 # Create a temporary old-style archive to link instead of a shared archive.
19579 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19580
19581 # Commands used to build and install a shared archive.
19582 archive_cmds=$lt_archive_cmds_RC
19583 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19584 postinstall_cmds=$lt_postinstall_cmds
19585 postuninstall_cmds=$lt_postuninstall_cmds
19586
19587 # Commands used to build a loadable module (assumed same as above if empty)
19588 module_cmds=$lt_module_cmds_RC
19589 module_expsym_cmds=$lt_module_expsym_cmds_RC
19590
19591 # Commands to strip libraries.
19592 old_striplib=$lt_old_striplib
19593 striplib=$lt_striplib
19594
19595 # Dependencies to place before the objects being linked to create a
19596 # shared library.
19597 predep_objects=$lt_predep_objects_RC
19598
19599 # Dependencies to place after the objects being linked to create a
19600 # shared library.
19601 postdep_objects=$lt_postdep_objects_RC
19602
19603 # Dependencies to place before the objects being linked to create a
19604 # shared library.
19605 predeps=$lt_predeps_RC
19606
19607 # Dependencies to place after the objects being linked to create a
19608 # shared library.
19609 postdeps=$lt_postdeps_RC
19610
19611 # The directories searched by this compiler when creating a shared
19612 # library
19613 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19614
19615 # The library search path used internally by the compiler when linking
19616 # a shared library.
19617 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19618
19619 # Method to check whether dependent libraries are shared objects.
19620 deplibs_check_method=$lt_deplibs_check_method
19621
19622 # Command to use when deplibs_check_method == file_magic.
19623 file_magic_cmd=$lt_file_magic_cmd
19624
19625 # Flag that allows shared libraries with undefined symbols to be built.
19626 allow_undefined_flag=$lt_allow_undefined_flag_RC
19627
19628 # Flag that forces no undefined symbols.
19629 no_undefined_flag=$lt_no_undefined_flag_RC
19630
19631 # Commands used to finish a libtool library installation in a directory.
19632 finish_cmds=$lt_finish_cmds
19633
19634 # Same as above, but a single script fragment to be evaled but not shown.
19635 finish_eval=$lt_finish_eval
19636
19637 # Take the output of nm and produce a listing of raw symbols and C names.
19638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19639
19640 # Transform the output of nm in a proper C declaration
19641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19642
19643 # Transform the output of nm in a C name address pair
19644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19645
19646 # This is the shared library runtime path variable.
19647 runpath_var=$runpath_var
19648
19649 # This is the shared library path variable.
19650 shlibpath_var=$shlibpath_var
19651
19652 # Is shlibpath searched before the hard-coded library search path?
19653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19654
19655 # How to hardcode a shared library path into an executable.
19656 hardcode_action=$hardcode_action_RC
19657
19658 # Whether we should hardcode library paths into libraries.
19659 hardcode_into_libs=$hardcode_into_libs
19660
19661 # Flag to hardcode \$libdir into a binary during linking.
19662 # This must work even if \$libdir does not exist.
19663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19664
19665 # If ld is used when linking, flag to hardcode \$libdir into
19666 # a binary during linking. This must work even if \$libdir does
19667 # not exist.
19668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19669
19670 # Whether we need a single -rpath flag with a separated argument.
19671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19672
19673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19674 # resulting binary.
19675 hardcode_direct=$hardcode_direct_RC
19676
19677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19678 # resulting binary.
19679 hardcode_minus_L=$hardcode_minus_L_RC
19680
19681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19682 # the resulting binary.
19683 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19684
19685 # Set to yes if building a shared library automatically hardcodes DIR into the library
19686 # and all subsequent libraries and executables linked against it.
19687 hardcode_automatic=$hardcode_automatic_RC
19688
19689 # Variables whose values should be saved in libtool wrapper scripts and
19690 # restored at relink time.
19691 variables_saved_for_relink="$variables_saved_for_relink"
19692
19693 # Whether libtool must link a program against all its dependency libraries.
19694 link_all_deplibs=$link_all_deplibs_RC
19695
19696 # Compile-time system search path for libraries
19697 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19698
19699 # Run-time system search path for libraries
19700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19701
19702 # Fix the shell variable \$srcfile for the compiler.
19703 fix_srcfile_path=$lt_fix_srcfile_path
19704
19705 # Set to yes if exported symbols are required.
19706 always_export_symbols=$always_export_symbols_RC
19707
19708 # The commands to list exported symbols.
19709 export_symbols_cmds=$lt_export_symbols_cmds_RC
19710
19711 # The commands to extract the exported symbol list from a shared archive.
19712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19713
19714 # Symbols that should not be listed in the preloaded symbols.
19715 exclude_expsyms=$lt_exclude_expsyms_RC
19716
19717 # Symbols that must always be exported.
19718 include_expsyms=$lt_include_expsyms_RC
19719
19720 # ### END LIBTOOL TAG CONFIG: $tagname
19721
19722 __EOF__
19723
19724
19725 else
19726   # If there is no Makefile yet, we rely on a make rule to execute
19727   # `config.status --recheck' to rerun these tests and create the
19728   # libtool script then.
19729   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19730   if test -f "$ltmain_in"; then
19731     test -f Makefile && make "$ltmain"
19732   fi
19733 fi
19734
19735
19736 ac_ext=c
19737 ac_cpp='$CPP $CPPFLAGS'
19738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19741
19742 CC="$lt_save_CC"
19743
19744         ;;
19745
19746       *)
19747         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19748 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19749    { (exit 1); exit 1; }; }
19750         ;;
19751       esac
19752
19753       # Append the new tag name to the list of available tags.
19754       if test -n "$tagname" ; then
19755       available_tags="$available_tags $tagname"
19756     fi
19757     fi
19758   done
19759   IFS="$lt_save_ifs"
19760
19761   # Now substitute the updated list of available tags.
19762   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19763     mv "${ofile}T" "$ofile"
19764     chmod +x "$ofile"
19765   else
19766     rm -f "${ofile}T"
19767     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19768 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19769    { (exit 1); exit 1; }; }
19770   fi
19771 fi
19772
19773
19774
19775 # This can be used to rebuild libtool when needed
19776 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19777
19778 # Always use our own libtool.
19779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19780
19781 # Prevent multiple expansion
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804 # Check whether some low-level functions/files are available
19805 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19806 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19807 if test "${ac_cv_header_stdc+set}" = set; then
19808   echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810   cat >conftest.$ac_ext <<_ACEOF
19811 /* confdefs.h.  */
19812 _ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h.  */
19816 #include <stdlib.h>
19817 #include <stdarg.h>
19818 #include <string.h>
19819 #include <float.h>
19820
19821 int
19822 main ()
19823 {
19824
19825   ;
19826   return 0;
19827 }
19828 _ACEOF
19829 rm -f conftest.$ac_objext
19830 if { (ac_try="$ac_compile"
19831 case "(($ac_try" in
19832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833   *) ac_try_echo=$ac_try;;
19834 esac
19835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836   (eval "$ac_compile") 2>conftest.er1
19837   ac_status=$?
19838   grep -v '^ *+' conftest.er1 >conftest.err
19839   rm -f conftest.er1
19840   cat conftest.err >&5
19841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842   (exit $ac_status); } && {
19843          test -z "$ac_c_werror_flag" ||
19844          test ! -s conftest.err
19845        } && test -s conftest.$ac_objext; then
19846   ac_cv_header_stdc=yes
19847 else
19848   echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851         ac_cv_header_stdc=no
19852 fi
19853
19854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19855
19856 if test $ac_cv_header_stdc = yes; then
19857   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19858   cat >conftest.$ac_ext <<_ACEOF
19859 /* confdefs.h.  */
19860 _ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h.  */
19864 #include <string.h>
19865
19866 _ACEOF
19867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19868   $EGREP "memchr" >/dev/null 2>&1; then
19869   :
19870 else
19871   ac_cv_header_stdc=no
19872 fi
19873 rm -f conftest*
19874
19875 fi
19876
19877 if test $ac_cv_header_stdc = yes; then
19878   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19879   cat >conftest.$ac_ext <<_ACEOF
19880 /* confdefs.h.  */
19881 _ACEOF
19882 cat confdefs.h >>conftest.$ac_ext
19883 cat >>conftest.$ac_ext <<_ACEOF
19884 /* end confdefs.h.  */
19885 #include <stdlib.h>
19886
19887 _ACEOF
19888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19889   $EGREP "free" >/dev/null 2>&1; then
19890   :
19891 else
19892   ac_cv_header_stdc=no
19893 fi
19894 rm -f conftest*
19895
19896 fi
19897
19898 if test $ac_cv_header_stdc = yes; then
19899   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19900   if test "$cross_compiling" = yes; then
19901   :
19902 else
19903   cat >conftest.$ac_ext <<_ACEOF
19904 /* confdefs.h.  */
19905 _ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h.  */
19909 #include <ctype.h>
19910 #include <stdlib.h>
19911 #if ((' ' & 0x0FF) == 0x020)
19912 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19913 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19914 #else
19915 # define ISLOWER(c) \
19916                    (('a' <= (c) && (c) <= 'i') \
19917                      || ('j' <= (c) && (c) <= 'r') \
19918                      || ('s' <= (c) && (c) <= 'z'))
19919 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19920 #endif
19921
19922 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19923 int
19924 main ()
19925 {
19926   int i;
19927   for (i = 0; i < 256; i++)
19928     if (XOR (islower (i), ISLOWER (i))
19929         || toupper (i) != TOUPPER (i))
19930       return 2;
19931   return 0;
19932 }
19933 _ACEOF
19934 rm -f conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941   (eval "$ac_link") 2>&5
19942   ac_status=$?
19943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19945   { (case "(($ac_try" in
19946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19947   *) ac_try_echo=$ac_try;;
19948 esac
19949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19950   (eval "$ac_try") 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; }; then
19954   :
19955 else
19956   echo "$as_me: program exited with status $ac_status" >&5
19957 echo "$as_me: failed program was:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19959
19960 ( exit $ac_status )
19961 ac_cv_header_stdc=no
19962 fi
19963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19964 fi
19965
19966
19967 fi
19968 fi
19969 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19970 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19971 if test $ac_cv_header_stdc = yes; then
19972
19973 cat >>confdefs.h <<\_ACEOF
19974 #define STDC_HEADERS 1
19975 _ACEOF
19976
19977 fi
19978
19979
19980 # These are tested for by AC_HEADER_STDC, but I check again to set the var
19981 if test "${ac_cv_header_stdint_h+set}" = set; then
19982   { echo "$as_me:$LINENO: checking for stdint.h" >&5
19983 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19984 if test "${ac_cv_header_stdint_h+set}" = set; then
19985   echo $ECHO_N "(cached) $ECHO_C" >&6
19986 fi
19987 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19988 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
19989 else
19990   # Is the header compilable?
19991 { echo "$as_me:$LINENO: checking stdint.h usability" >&5
19992 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6; }
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h.  */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h.  */
19999 $ac_includes_default
20000 #include <stdint.h>
20001 _ACEOF
20002 rm -f conftest.$ac_objext
20003 if { (ac_try="$ac_compile"
20004 case "(($ac_try" in
20005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006   *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009   (eval "$ac_compile") 2>conftest.er1
20010   ac_status=$?
20011   grep -v '^ *+' conftest.er1 >conftest.err
20012   rm -f conftest.er1
20013   cat conftest.err >&5
20014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015   (exit $ac_status); } && {
20016          test -z "$ac_c_werror_flag" ||
20017          test ! -s conftest.err
20018        } && test -s conftest.$ac_objext; then
20019   ac_header_compiler=yes
20020 else
20021   echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024         ac_header_compiler=no
20025 fi
20026
20027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20029 echo "${ECHO_T}$ac_header_compiler" >&6; }
20030
20031 # Is the header present?
20032 { echo "$as_me:$LINENO: checking stdint.h presence" >&5
20033 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6; }
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 #include <stdint.h>
20041 _ACEOF
20042 if { (ac_try="$ac_cpp conftest.$ac_ext"
20043 case "(($ac_try" in
20044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045   *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20049   ac_status=$?
20050   grep -v '^ *+' conftest.er1 >conftest.err
20051   rm -f conftest.er1
20052   cat conftest.err >&5
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); } >/dev/null && {
20055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20056          test ! -s conftest.err
20057        }; then
20058   ac_header_preproc=yes
20059 else
20060   echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20062
20063   ac_header_preproc=no
20064 fi
20065
20066 rm -f conftest.err conftest.$ac_ext
20067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20068 echo "${ECHO_T}$ac_header_preproc" >&6; }
20069
20070 # So?  What about this header?
20071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20072   yes:no: )
20073     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20074 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20075     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20076 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20077     ac_header_preproc=yes
20078     ;;
20079   no:yes:* )
20080     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20081 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
20082     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
20083 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
20084     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20085 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20086     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
20087 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20088     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20089 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
20090     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20091 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
20092     ( cat <<\_ASBOX
20093 ## ------------------------------------ ##
20094 ## Report this to opensource@google.com ##
20095 ## ------------------------------------ ##
20096 _ASBOX
20097      ) | sed "s/^/$as_me: WARNING:     /" >&2
20098     ;;
20099 esac
20100 { echo "$as_me:$LINENO: checking for stdint.h" >&5
20101 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
20102 if test "${ac_cv_header_stdint_h+set}" = set; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105   ac_cv_header_stdint_h=$ac_header_preproc
20106 fi
20107 { echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20108 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6; }
20109
20110 fi
20111 if test $ac_cv_header_stdint_h = yes; then
20112   ac_cv_have_stdint_h=1
20113 else
20114   ac_cv_have_stdint_h=0
20115 fi
20116
20117
20118 if test "${ac_cv_header_sys_types_h+set}" = set; then
20119   { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20120 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20121 if test "${ac_cv_header_sys_types_h+set}" = set; then
20122   echo $ECHO_N "(cached) $ECHO_C" >&6
20123 fi
20124 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20125 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20126 else
20127   # Is the header compilable?
20128 { echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20129 echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6; }
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136 $ac_includes_default
20137 #include <sys/types.h>
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143   *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146   (eval "$ac_compile") 2>conftest.er1
20147   ac_status=$?
20148   grep -v '^ *+' conftest.er1 >conftest.err
20149   rm -f conftest.er1
20150   cat conftest.err >&5
20151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152   (exit $ac_status); } && {
20153          test -z "$ac_c_werror_flag" ||
20154          test ! -s conftest.err
20155        } && test -s conftest.$ac_objext; then
20156   ac_header_compiler=yes
20157 else
20158   echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161         ac_header_compiler=no
20162 fi
20163
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20166 echo "${ECHO_T}$ac_header_compiler" >&6; }
20167
20168 # Is the header present?
20169 { echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20170 echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6; }
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h.  */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h.  */
20177 #include <sys/types.h>
20178 _ACEOF
20179 if { (ac_try="$ac_cpp conftest.$ac_ext"
20180 case "(($ac_try" in
20181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182   *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } >/dev/null && {
20192          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20193          test ! -s conftest.err
20194        }; then
20195   ac_header_preproc=yes
20196 else
20197   echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200   ac_header_preproc=no
20201 fi
20202
20203 rm -f conftest.err conftest.$ac_ext
20204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20205 echo "${ECHO_T}$ac_header_preproc" >&6; }
20206
20207 # So?  What about this header?
20208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20209   yes:no: )
20210     { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20211 echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20212     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20213 echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20214     ac_header_preproc=yes
20215     ;;
20216   no:yes:* )
20217     { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20218 echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
20219     { echo "$as_me:$LINENO: WARNING: sys/types.h:     check for missing prerequisite headers?" >&5
20220 echo "$as_me: WARNING: sys/types.h:     check for missing prerequisite headers?" >&2;}
20221     { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20222 echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20223     { echo "$as_me:$LINENO: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&5
20224 echo "$as_me: WARNING: sys/types.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20225     { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20226 echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
20227     { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20228 echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
20229     ( cat <<\_ASBOX
20230 ## ------------------------------------ ##
20231 ## Report this to opensource@google.com ##
20232 ## ------------------------------------ ##
20233 _ASBOX
20234      ) | sed "s/^/$as_me: WARNING:     /" >&2
20235     ;;
20236 esac
20237 { echo "$as_me:$LINENO: checking for sys/types.h" >&5
20238 echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6; }
20239 if test "${ac_cv_header_sys_types_h+set}" = set; then
20240   echo $ECHO_N "(cached) $ECHO_C" >&6
20241 else
20242   ac_cv_header_sys_types_h=$ac_header_preproc
20243 fi
20244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20245 echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6; }
20246
20247 fi
20248 if test $ac_cv_header_sys_types_h = yes; then
20249   ac_cv_have_systypes_h=1
20250 else
20251   ac_cv_have_systypes_h=0
20252 fi
20253
20254
20255 if test "${ac_cv_header_inttypes_h+set}" = set; then
20256   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20257 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20258 if test "${ac_cv_header_inttypes_h+set}" = set; then
20259   echo $ECHO_N "(cached) $ECHO_C" >&6
20260 fi
20261 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20262 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20263 else
20264   # Is the header compilable?
20265 { echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20266 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6; }
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 $ac_includes_default
20274 #include <inttypes.h>
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280   *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283   (eval "$ac_compile") 2>conftest.er1
20284   ac_status=$?
20285   grep -v '^ *+' conftest.er1 >conftest.err
20286   rm -f conftest.er1
20287   cat conftest.err >&5
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); } && {
20290          test -z "$ac_c_werror_flag" ||
20291          test ! -s conftest.err
20292        } && test -s conftest.$ac_objext; then
20293   ac_header_compiler=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298         ac_header_compiler=no
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303 echo "${ECHO_T}$ac_header_compiler" >&6; }
20304
20305 # Is the header present?
20306 { echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20307 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314 #include <inttypes.h>
20315 _ACEOF
20316 if { (ac_try="$ac_cpp conftest.$ac_ext"
20317 case "(($ac_try" in
20318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319   *) ac_try_echo=$ac_try;;
20320 esac
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20323   ac_status=$?
20324   grep -v '^ *+' conftest.er1 >conftest.err
20325   rm -f conftest.er1
20326   cat conftest.err >&5
20327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328   (exit $ac_status); } >/dev/null && {
20329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20330          test ! -s conftest.err
20331        }; then
20332   ac_header_preproc=yes
20333 else
20334   echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337   ac_header_preproc=no
20338 fi
20339
20340 rm -f conftest.err conftest.$ac_ext
20341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20342 echo "${ECHO_T}$ac_header_preproc" >&6; }
20343
20344 # So?  What about this header?
20345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20346   yes:no: )
20347     { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20348 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20349     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20350 echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20351     ac_header_preproc=yes
20352     ;;
20353   no:yes:* )
20354     { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20355 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
20356     { echo "$as_me:$LINENO: WARNING: inttypes.h:     check for missing prerequisite headers?" >&5
20357 echo "$as_me: WARNING: inttypes.h:     check for missing prerequisite headers?" >&2;}
20358     { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20359 echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20360     { echo "$as_me:$LINENO: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&5
20361 echo "$as_me: WARNING: inttypes.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20362     { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20363 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
20364     { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20365 echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
20366     ( cat <<\_ASBOX
20367 ## ------------------------------------ ##
20368 ## Report this to opensource@google.com ##
20369 ## ------------------------------------ ##
20370 _ASBOX
20371      ) | sed "s/^/$as_me: WARNING:     /" >&2
20372     ;;
20373 esac
20374 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20375 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20376 if test "${ac_cv_header_inttypes_h+set}" = set; then
20377   echo $ECHO_N "(cached) $ECHO_C" >&6
20378 else
20379   ac_cv_header_inttypes_h=$ac_header_preproc
20380 fi
20381 { echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20382 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6; }
20383
20384 fi
20385 if test $ac_cv_header_inttypes_h = yes; then
20386   ac_cv_have_inttypes_h=1
20387 else
20388   ac_cv_have_inttypes_h=0
20389 fi
20390
20391
20392
20393 for ac_header in syscall.h
20394 do
20395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20397   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20400   echo $ECHO_N "(cached) $ECHO_C" >&6
20401 fi
20402 ac_res=`eval echo '${'$as_ac_Header'}'`
20403                { echo "$as_me:$LINENO: result: $ac_res" >&5
20404 echo "${ECHO_T}$ac_res" >&6; }
20405 else
20406   # Is the header compilable?
20407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 $ac_includes_default
20416 #include <$ac_header>
20417 _ACEOF
20418 rm -f conftest.$ac_objext
20419 if { (ac_try="$ac_compile"
20420 case "(($ac_try" in
20421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422   *) ac_try_echo=$ac_try;;
20423 esac
20424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425   (eval "$ac_compile") 2>conftest.er1
20426   ac_status=$?
20427   grep -v '^ *+' conftest.er1 >conftest.err
20428   rm -f conftest.er1
20429   cat conftest.err >&5
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); } && {
20432          test -z "$ac_c_werror_flag" ||
20433          test ! -s conftest.err
20434        } && test -s conftest.$ac_objext; then
20435   ac_header_compiler=yes
20436 else
20437   echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440         ac_header_compiler=no
20441 fi
20442
20443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20445 echo "${ECHO_T}$ac_header_compiler" >&6; }
20446
20447 # Is the header present?
20448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h.  */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h.  */
20456 #include <$ac_header>
20457 _ACEOF
20458 if { (ac_try="$ac_cpp conftest.$ac_ext"
20459 case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } >/dev/null && {
20471          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20472          test ! -s conftest.err
20473        }; then
20474   ac_header_preproc=yes
20475 else
20476   echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479   ac_header_preproc=no
20480 fi
20481
20482 rm -f conftest.err conftest.$ac_ext
20483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20484 echo "${ECHO_T}$ac_header_preproc" >&6; }
20485
20486 # So?  What about this header?
20487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20488   yes:no: )
20489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20493     ac_header_preproc=yes
20494     ;;
20495   no:yes:* )
20496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20508     ( cat <<\_ASBOX
20509 ## ------------------------------------ ##
20510 ## Report this to opensource@google.com ##
20511 ## ------------------------------------ ##
20512 _ASBOX
20513      ) | sed "s/^/$as_me: WARNING:     /" >&2
20514     ;;
20515 esac
20516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20519   echo $ECHO_N "(cached) $ECHO_C" >&6
20520 else
20521   eval "$as_ac_Header=\$ac_header_preproc"
20522 fi
20523 ac_res=`eval echo '${'$as_ac_Header'}'`
20524                { echo "$as_me:$LINENO: result: $ac_res" >&5
20525 echo "${ECHO_T}$ac_res" >&6; }
20526
20527 fi
20528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20529   cat >>confdefs.h <<_ACEOF
20530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20531 _ACEOF
20532
20533 fi
20534
20535 done
20536
20537
20538 for ac_header in sys/syscall.h
20539 do
20540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20542   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 fi
20547 ac_res=`eval echo '${'$as_ac_Header'}'`
20548                { echo "$as_me:$LINENO: result: $ac_res" >&5
20549 echo "${ECHO_T}$ac_res" >&6; }
20550 else
20551   # Is the header compilable?
20552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20554 cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h.  */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h.  */
20560 $ac_includes_default
20561 #include <$ac_header>
20562 _ACEOF
20563 rm -f conftest.$ac_objext
20564 if { (ac_try="$ac_compile"
20565 case "(($ac_try" in
20566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567   *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570   (eval "$ac_compile") 2>conftest.er1
20571   ac_status=$?
20572   grep -v '^ *+' conftest.er1 >conftest.err
20573   rm -f conftest.er1
20574   cat conftest.err >&5
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); } && {
20577          test -z "$ac_c_werror_flag" ||
20578          test ! -s conftest.err
20579        } && test -s conftest.$ac_objext; then
20580   ac_header_compiler=yes
20581 else
20582   echo "$as_me: failed program was:" >&5
20583 sed 's/^/| /' conftest.$ac_ext >&5
20584
20585         ac_header_compiler=no
20586 fi
20587
20588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20590 echo "${ECHO_T}$ac_header_compiler" >&6; }
20591
20592 # Is the header present?
20593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20595 cat >conftest.$ac_ext <<_ACEOF
20596 /* confdefs.h.  */
20597 _ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h.  */
20601 #include <$ac_header>
20602 _ACEOF
20603 if { (ac_try="$ac_cpp conftest.$ac_ext"
20604 case "(($ac_try" in
20605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606   *) ac_try_echo=$ac_try;;
20607 esac
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } >/dev/null && {
20616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20617          test ! -s conftest.err
20618        }; then
20619   ac_header_preproc=yes
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624   ac_header_preproc=no
20625 fi
20626
20627 rm -f conftest.err conftest.$ac_ext
20628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20629 echo "${ECHO_T}$ac_header_preproc" >&6; }
20630
20631 # So?  What about this header?
20632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20633   yes:no: )
20634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20638     ac_header_preproc=yes
20639     ;;
20640   no:yes:* )
20641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20653     ( cat <<\_ASBOX
20654 ## ------------------------------------ ##
20655 ## Report this to opensource@google.com ##
20656 ## ------------------------------------ ##
20657 _ASBOX
20658      ) | sed "s/^/$as_me: WARNING:     /" >&2
20659     ;;
20660 esac
20661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20664   echo $ECHO_N "(cached) $ECHO_C" >&6
20665 else
20666   eval "$as_ac_Header=\$ac_header_preproc"
20667 fi
20668 ac_res=`eval echo '${'$as_ac_Header'}'`
20669                { echo "$as_me:$LINENO: result: $ac_res" >&5
20670 echo "${ECHO_T}$ac_res" >&6; }
20671
20672 fi
20673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20674   cat >>confdefs.h <<_ACEOF
20675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20676 _ACEOF
20677
20678 fi
20679
20680 done
20681
20682 # For backtrace with glibc.
20683 # TODO(hamaji): Support other platforms using libgcc.
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
20830 for ac_header in ucontext.h
20831 do
20832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20834   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20837   echo $ECHO_N "(cached) $ECHO_C" >&6
20838 fi
20839 ac_res=`eval echo '${'$as_ac_Header'}'`
20840                { echo "$as_me:$LINENO: result: $ac_res" >&5
20841 echo "${ECHO_T}$ac_res" >&6; }
20842 else
20843   # Is the header compilable?
20844 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20846 cat >conftest.$ac_ext <<_ACEOF
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852 $ac_includes_default
20853 #include <$ac_header>
20854 _ACEOF
20855 rm -f conftest.$ac_objext
20856 if { (ac_try="$ac_compile"
20857 case "(($ac_try" in
20858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20859   *) ac_try_echo=$ac_try;;
20860 esac
20861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20862   (eval "$ac_compile") 2>conftest.er1
20863   ac_status=$?
20864   grep -v '^ *+' conftest.er1 >conftest.err
20865   rm -f conftest.er1
20866   cat conftest.err >&5
20867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868   (exit $ac_status); } && {
20869          test -z "$ac_c_werror_flag" ||
20870          test ! -s conftest.err
20871        } && test -s conftest.$ac_objext; then
20872   ac_header_compiler=yes
20873 else
20874   echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20876
20877         ac_header_compiler=no
20878 fi
20879
20880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20881 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20882 echo "${ECHO_T}$ac_header_compiler" >&6; }
20883
20884 # Is the header present?
20885 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20887 cat >conftest.$ac_ext <<_ACEOF
20888 /* confdefs.h.  */
20889 _ACEOF
20890 cat confdefs.h >>conftest.$ac_ext
20891 cat >>conftest.$ac_ext <<_ACEOF
20892 /* end confdefs.h.  */
20893 #include <$ac_header>
20894 _ACEOF
20895 if { (ac_try="$ac_cpp conftest.$ac_ext"
20896 case "(($ac_try" in
20897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898   *) ac_try_echo=$ac_try;;
20899 esac
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20902   ac_status=$?
20903   grep -v '^ *+' conftest.er1 >conftest.err
20904   rm -f conftest.er1
20905   cat conftest.err >&5
20906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907   (exit $ac_status); } >/dev/null && {
20908          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20909          test ! -s conftest.err
20910        }; then
20911   ac_header_preproc=yes
20912 else
20913   echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916   ac_header_preproc=no
20917 fi
20918
20919 rm -f conftest.err conftest.$ac_ext
20920 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20921 echo "${ECHO_T}$ac_header_preproc" >&6; }
20922
20923 # So?  What about this header?
20924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20925   yes:no: )
20926     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20927 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20929 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20930     ac_header_preproc=yes
20931     ;;
20932   no:yes:* )
20933     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20934 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20935     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20936 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20937     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20938 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20939     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20940 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20941     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20942 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20943     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20944 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20945     ( cat <<\_ASBOX
20946 ## ------------------------------------ ##
20947 ## Report this to opensource@google.com ##
20948 ## ------------------------------------ ##
20949 _ASBOX
20950      ) | sed "s/^/$as_me: WARNING:     /" >&2
20951     ;;
20952 esac
20953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20956   echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958   eval "$as_ac_Header=\$ac_header_preproc"
20959 fi
20960 ac_res=`eval echo '${'$as_ac_Header'}'`
20961                { echo "$as_me:$LINENO: result: $ac_res" >&5
20962 echo "${ECHO_T}$ac_res" >&6; }
20963
20964 fi
20965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20966   cat >>confdefs.h <<_ACEOF
20967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20968 _ACEOF
20969
20970 fi
20971
20972 done
20973
20974
20975 { echo "$as_me:$LINENO: checking for void *" >&5
20976 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
20977 if test "${ac_cv_type_void_p+set}" = set; then
20978   echo $ECHO_N "(cached) $ECHO_C" >&6
20979 else
20980   cat >conftest.$ac_ext <<_ACEOF
20981 /* confdefs.h.  */
20982 _ACEOF
20983 cat confdefs.h >>conftest.$ac_ext
20984 cat >>conftest.$ac_ext <<_ACEOF
20985 /* end confdefs.h.  */
20986 $ac_includes_default
20987 typedef void * ac__type_new_;
20988 int
20989 main ()
20990 {
20991 if ((ac__type_new_ *) 0)
20992   return 0;
20993 if (sizeof (ac__type_new_))
20994   return 0;
20995   ;
20996   return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003   *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006   (eval "$ac_compile") 2>conftest.er1
21007   ac_status=$?
21008   grep -v '^ *+' conftest.er1 >conftest.err
21009   rm -f conftest.er1
21010   cat conftest.err >&5
21011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012   (exit $ac_status); } && {
21013          test -z "$ac_c_werror_flag" ||
21014          test ! -s conftest.err
21015        } && test -s conftest.$ac_objext; then
21016   ac_cv_type_void_p=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021         ac_cv_type_void_p=no
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 fi
21026 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
21027 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
21028
21029 # The cast to long int works around a bug in the HP C Compiler
21030 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21031 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21032 # This bug is HP SR number 8606223364.
21033 { echo "$as_me:$LINENO: checking size of void *" >&5
21034 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21035 if test "${ac_cv_sizeof_void_p+set}" = set; then
21036   echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038   if test "$cross_compiling" = yes; then
21039   # Depending upon the size, compute the lo and hi bounds.
21040 cat >conftest.$ac_ext <<_ACEOF
21041 /* confdefs.h.  */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h.  */
21046 $ac_includes_default
21047    typedef void * ac__type_sizeof_;
21048 int
21049 main ()
21050 {
21051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21052 test_array [0] = 0
21053
21054   ;
21055   return 0;
21056 }
21057 _ACEOF
21058 rm -f conftest.$ac_objext
21059 if { (ac_try="$ac_compile"
21060 case "(($ac_try" in
21061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062   *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065   (eval "$ac_compile") 2>conftest.er1
21066   ac_status=$?
21067   grep -v '^ *+' conftest.er1 >conftest.err
21068   rm -f conftest.er1
21069   cat conftest.err >&5
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } && {
21072          test -z "$ac_c_werror_flag" ||
21073          test ! -s conftest.err
21074        } && test -s conftest.$ac_objext; then
21075   ac_lo=0 ac_mid=0
21076   while :; do
21077     cat >conftest.$ac_ext <<_ACEOF
21078 /* confdefs.h.  */
21079 _ACEOF
21080 cat confdefs.h >>conftest.$ac_ext
21081 cat >>conftest.$ac_ext <<_ACEOF
21082 /* end confdefs.h.  */
21083 $ac_includes_default
21084    typedef void * ac__type_sizeof_;
21085 int
21086 main ()
21087 {
21088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21089 test_array [0] = 0
21090
21091   ;
21092   return 0;
21093 }
21094 _ACEOF
21095 rm -f conftest.$ac_objext
21096 if { (ac_try="$ac_compile"
21097 case "(($ac_try" in
21098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099   *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102   (eval "$ac_compile") 2>conftest.er1
21103   ac_status=$?
21104   grep -v '^ *+' conftest.er1 >conftest.err
21105   rm -f conftest.er1
21106   cat conftest.err >&5
21107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108   (exit $ac_status); } && {
21109          test -z "$ac_c_werror_flag" ||
21110          test ! -s conftest.err
21111        } && test -s conftest.$ac_objext; then
21112   ac_hi=$ac_mid; break
21113 else
21114   echo "$as_me: failed program was:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21116
21117         ac_lo=`expr $ac_mid + 1`
21118                         if test $ac_lo -le $ac_mid; then
21119                           ac_lo= ac_hi=
21120                           break
21121                         fi
21122                         ac_mid=`expr 2 '*' $ac_mid + 1`
21123 fi
21124
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126   done
21127 else
21128   echo "$as_me: failed program was:" >&5
21129 sed 's/^/| /' conftest.$ac_ext >&5
21130
21131         cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h.  */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h.  */
21137 $ac_includes_default
21138    typedef void * ac__type_sizeof_;
21139 int
21140 main ()
21141 {
21142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21143 test_array [0] = 0
21144
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 rm -f conftest.$ac_objext
21150 if { (ac_try="$ac_compile"
21151 case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_compile") 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } && {
21163          test -z "$ac_c_werror_flag" ||
21164          test ! -s conftest.err
21165        } && test -s conftest.$ac_objext; then
21166   ac_hi=-1 ac_mid=-1
21167   while :; do
21168     cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h.  */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h.  */
21174 $ac_includes_default
21175    typedef void * ac__type_sizeof_;
21176 int
21177 main ()
21178 {
21179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21180 test_array [0] = 0
21181
21182   ;
21183   return 0;
21184 }
21185 _ACEOF
21186 rm -f conftest.$ac_objext
21187 if { (ac_try="$ac_compile"
21188 case "(($ac_try" in
21189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190   *) ac_try_echo=$ac_try;;
21191 esac
21192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21193   (eval "$ac_compile") 2>conftest.er1
21194   ac_status=$?
21195   grep -v '^ *+' conftest.er1 >conftest.err
21196   rm -f conftest.er1
21197   cat conftest.err >&5
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); } && {
21200          test -z "$ac_c_werror_flag" ||
21201          test ! -s conftest.err
21202        } && test -s conftest.$ac_objext; then
21203   ac_lo=$ac_mid; break
21204 else
21205   echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21207
21208         ac_hi=`expr '(' $ac_mid ')' - 1`
21209                         if test $ac_mid -le $ac_hi; then
21210                           ac_lo= ac_hi=
21211                           break
21212                         fi
21213                         ac_mid=`expr 2 '*' $ac_mid`
21214 fi
21215
21216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21217   done
21218 else
21219   echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21221
21222         ac_lo= ac_hi=
21223 fi
21224
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 fi
21227
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 # Binary search between lo and hi bounds.
21230 while test "x$ac_lo" != "x$ac_hi"; do
21231   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21232   cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 $ac_includes_default
21239    typedef void * ac__type_sizeof_;
21240 int
21241 main ()
21242 {
21243 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21244 test_array [0] = 0
21245
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_compile") 2>conftest.er1
21258   ac_status=$?
21259   grep -v '^ *+' conftest.er1 >conftest.err
21260   rm -f conftest.er1
21261   cat conftest.err >&5
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } && {
21264          test -z "$ac_c_werror_flag" ||
21265          test ! -s conftest.err
21266        } && test -s conftest.$ac_objext; then
21267   ac_hi=$ac_mid
21268 else
21269   echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272         ac_lo=`expr '(' $ac_mid ')' + 1`
21273 fi
21274
21275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21276 done
21277 case $ac_lo in
21278 ?*) ac_cv_sizeof_void_p=$ac_lo;;
21279 '') if test "$ac_cv_type_void_p" = yes; then
21280      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21281 See \`config.log' for more details." >&5
21282 echo "$as_me: error: cannot compute sizeof (void *)
21283 See \`config.log' for more details." >&2;}
21284    { (exit 77); exit 77; }; }
21285    else
21286      ac_cv_sizeof_void_p=0
21287    fi ;;
21288 esac
21289 else
21290   cat >conftest.$ac_ext <<_ACEOF
21291 /* confdefs.h.  */
21292 _ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h.  */
21296 $ac_includes_default
21297    typedef void * ac__type_sizeof_;
21298 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21299 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21300 #include <stdio.h>
21301 #include <stdlib.h>
21302 int
21303 main ()
21304 {
21305
21306   FILE *f = fopen ("conftest.val", "w");
21307   if (! f)
21308     return 1;
21309   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21310     {
21311       long int i = longval ();
21312       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21313         return 1;
21314       fprintf (f, "%ld\n", i);
21315     }
21316   else
21317     {
21318       unsigned long int i = ulongval ();
21319       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21320         return 1;
21321       fprintf (f, "%lu\n", i);
21322     }
21323   return ferror (f) || fclose (f) != 0;
21324
21325   ;
21326   return 0;
21327 }
21328 _ACEOF
21329 rm -f conftest$ac_exeext
21330 if { (ac_try="$ac_link"
21331 case "(($ac_try" in
21332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333   *) ac_try_echo=$ac_try;;
21334 esac
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336   (eval "$ac_link") 2>&5
21337   ac_status=$?
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21340   { (case "(($ac_try" in
21341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342   *) ac_try_echo=$ac_try;;
21343 esac
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345   (eval "$ac_try") 2>&5
21346   ac_status=$?
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); }; }; then
21349   ac_cv_sizeof_void_p=`cat conftest.val`
21350 else
21351   echo "$as_me: program exited with status $ac_status" >&5
21352 echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355 ( exit $ac_status )
21356 if test "$ac_cv_type_void_p" = yes; then
21357      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
21358 See \`config.log' for more details." >&5
21359 echo "$as_me: error: cannot compute sizeof (void *)
21360 See \`config.log' for more details." >&2;}
21361    { (exit 77); exit 77; }; }
21362    else
21363      ac_cv_sizeof_void_p=0
21364    fi
21365 fi
21366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21367 fi
21368 rm -f conftest.val
21369 fi
21370 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21371 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21372
21373
21374
21375 cat >>confdefs.h <<_ACEOF
21376 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21377 _ACEOF
21378
21379
21380
21381 # These are the types I need.  We look for them in either stdint.h,
21382 # sys/types.h, or inttypes.h, all of which are part of the default-includes.
21383 { echo "$as_me:$LINENO: checking for uint16_t" >&5
21384 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
21385 if test "${ac_cv_type_uint16_t+set}" = set; then
21386   echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388   cat >conftest.$ac_ext <<_ACEOF
21389 /* confdefs.h.  */
21390 _ACEOF
21391 cat confdefs.h >>conftest.$ac_ext
21392 cat >>conftest.$ac_ext <<_ACEOF
21393 /* end confdefs.h.  */
21394 $ac_includes_default
21395 typedef uint16_t ac__type_new_;
21396 int
21397 main ()
21398 {
21399 if ((ac__type_new_ *) 0)
21400   return 0;
21401 if (sizeof (ac__type_new_))
21402   return 0;
21403   ;
21404   return 0;
21405 }
21406 _ACEOF
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411   *) ac_try_echo=$ac_try;;
21412 esac
21413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21414   (eval "$ac_compile") 2>conftest.er1
21415   ac_status=$?
21416   grep -v '^ *+' conftest.er1 >conftest.err
21417   rm -f conftest.er1
21418   cat conftest.err >&5
21419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420   (exit $ac_status); } && {
21421          test -z "$ac_c_werror_flag" ||
21422          test ! -s conftest.err
21423        } && test -s conftest.$ac_objext; then
21424   ac_cv_type_uint16_t=yes
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429         ac_cv_type_uint16_t=no
21430 fi
21431
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 fi
21434 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21435 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
21436 if test $ac_cv_type_uint16_t = yes; then
21437   ac_cv_have_uint16_t=1
21438 else
21439   ac_cv_have_uint16_t=0
21440 fi
21441
21442 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
21443 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
21444 if test "${ac_cv_type_u_int16_t+set}" = set; then
21445   echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21447   cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h.  */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h.  */
21453 $ac_includes_default
21454 typedef u_int16_t ac__type_new_;
21455 int
21456 main ()
21457 {
21458 if ((ac__type_new_ *) 0)
21459   return 0;
21460 if (sizeof (ac__type_new_))
21461   return 0;
21462   ;
21463   return 0;
21464 }
21465 _ACEOF
21466 rm -f conftest.$ac_objext
21467 if { (ac_try="$ac_compile"
21468 case "(($ac_try" in
21469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470   *) ac_try_echo=$ac_try;;
21471 esac
21472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473   (eval "$ac_compile") 2>conftest.er1
21474   ac_status=$?
21475   grep -v '^ *+' conftest.er1 >conftest.err
21476   rm -f conftest.er1
21477   cat conftest.err >&5
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } && {
21480          test -z "$ac_c_werror_flag" ||
21481          test ! -s conftest.err
21482        } && test -s conftest.$ac_objext; then
21483   ac_cv_type_u_int16_t=yes
21484 else
21485   echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21487
21488         ac_cv_type_u_int16_t=no
21489 fi
21490
21491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21492 fi
21493 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
21494 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
21495 if test $ac_cv_type_u_int16_t = yes; then
21496   ac_cv_have_u_int16_t=1
21497 else
21498   ac_cv_have_u_int16_t=0
21499 fi
21500
21501 { echo "$as_me:$LINENO: checking for __uint16" >&5
21502 echo $ECHO_N "checking for __uint16... $ECHO_C" >&6; }
21503 if test "${ac_cv_type___uint16+set}" = set; then
21504   echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506   cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 $ac_includes_default
21513 typedef __uint16 ac__type_new_;
21514 int
21515 main ()
21516 {
21517 if ((ac__type_new_ *) 0)
21518   return 0;
21519 if (sizeof (ac__type_new_))
21520   return 0;
21521   ;
21522   return 0;
21523 }
21524 _ACEOF
21525 rm -f conftest.$ac_objext
21526 if { (ac_try="$ac_compile"
21527 case "(($ac_try" in
21528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529   *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532   (eval "$ac_compile") 2>conftest.er1
21533   ac_status=$?
21534   grep -v '^ *+' conftest.er1 >conftest.err
21535   rm -f conftest.er1
21536   cat conftest.err >&5
21537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538   (exit $ac_status); } && {
21539          test -z "$ac_c_werror_flag" ||
21540          test ! -s conftest.err
21541        } && test -s conftest.$ac_objext; then
21542   ac_cv_type___uint16=yes
21543 else
21544   echo "$as_me: failed program was:" >&5
21545 sed 's/^/| /' conftest.$ac_ext >&5
21546
21547         ac_cv_type___uint16=no
21548 fi
21549
21550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21551 fi
21552 { echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
21553 echo "${ECHO_T}$ac_cv_type___uint16" >&6; }
21554 if test $ac_cv_type___uint16 = yes; then
21555   ac_cv_have___uint16=1
21556 else
21557   ac_cv_have___uint16=0
21558 fi
21559
21560
21561 { echo "$as_me:$LINENO: checking for sigaltstack" >&5
21562 echo $ECHO_N "checking for sigaltstack... $ECHO_C" >&6; }
21563 if test "${ac_cv_func_sigaltstack+set}" = set; then
21564   echo $ECHO_N "(cached) $ECHO_C" >&6
21565 else
21566   cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572 /* Define sigaltstack to an innocuous variant, in case <limits.h> declares sigaltstack.
21573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21574 #define sigaltstack innocuous_sigaltstack
21575
21576 /* System header to define __stub macros and hopefully few prototypes,
21577     which can conflict with char sigaltstack (); below.
21578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21579     <limits.h> exists even on freestanding compilers.  */
21580
21581 #ifdef __STDC__
21582 # include <limits.h>
21583 #else
21584 # include <assert.h>
21585 #endif
21586
21587 #undef sigaltstack
21588
21589 /* Override any GCC internal prototype to avoid an error.
21590    Use char because int might match the return type of a GCC
21591    builtin and then its argument prototype would still apply.  */
21592 #ifdef __cplusplus
21593 extern "C"
21594 #endif
21595 char sigaltstack ();
21596 /* The GNU C library defines this for functions which it implements
21597     to always fail with ENOSYS.  Some functions are actually named
21598     something starting with __ and the normal name is an alias.  */
21599 #if defined __stub_sigaltstack || defined __stub___sigaltstack
21600 choke me
21601 #endif
21602
21603 int
21604 main ()
21605 {
21606 return sigaltstack ();
21607   ;
21608   return 0;
21609 }
21610 _ACEOF
21611 rm -f conftest.$ac_objext conftest$ac_exeext
21612 if { (ac_try="$ac_link"
21613 case "(($ac_try" in
21614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615   *) ac_try_echo=$ac_try;;
21616 esac
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618   (eval "$ac_link") 2>conftest.er1
21619   ac_status=$?
21620   grep -v '^ *+' conftest.er1 >conftest.err
21621   rm -f conftest.er1
21622   cat conftest.err >&5
21623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624   (exit $ac_status); } && {
21625          test -z "$ac_c_werror_flag" ||
21626          test ! -s conftest.err
21627        } && test -s conftest$ac_exeext &&
21628        $as_test_x conftest$ac_exeext; then
21629   ac_cv_func_sigaltstack=yes
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634         ac_cv_func_sigaltstack=no
21635 fi
21636
21637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21638       conftest$ac_exeext conftest.$ac_ext
21639 fi
21640 { echo "$as_me:$LINENO: result: $ac_cv_func_sigaltstack" >&5
21641 echo "${ECHO_T}$ac_cv_func_sigaltstack" >&6; }
21642 if test $ac_cv_func_sigaltstack = yes; then
21643
21644 cat >>confdefs.h <<\_ACEOF
21645 #define HAVE_SIGALTSTACK 1
21646 _ACEOF
21647
21648 fi
21649
21650 { echo "$as_me:$LINENO: checking for dladdr" >&5
21651 echo $ECHO_N "checking for dladdr... $ECHO_C" >&6; }
21652 if test "${ac_cv_func_dladdr+set}" = set; then
21653   echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655   cat >conftest.$ac_ext <<_ACEOF
21656 /* confdefs.h.  */
21657 _ACEOF
21658 cat confdefs.h >>conftest.$ac_ext
21659 cat >>conftest.$ac_ext <<_ACEOF
21660 /* end confdefs.h.  */
21661 /* Define dladdr to an innocuous variant, in case <limits.h> declares dladdr.
21662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21663 #define dladdr innocuous_dladdr
21664
21665 /* System header to define __stub macros and hopefully few prototypes,
21666     which can conflict with char dladdr (); below.
21667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21668     <limits.h> exists even on freestanding compilers.  */
21669
21670 #ifdef __STDC__
21671 # include <limits.h>
21672 #else
21673 # include <assert.h>
21674 #endif
21675
21676 #undef dladdr
21677
21678 /* Override any GCC internal prototype to avoid an error.
21679    Use char because int might match the return type of a GCC
21680    builtin and then its argument prototype would still apply.  */
21681 #ifdef __cplusplus
21682 extern "C"
21683 #endif
21684 char dladdr ();
21685 /* The GNU C library defines this for functions which it implements
21686     to always fail with ENOSYS.  Some functions are actually named
21687     something starting with __ and the normal name is an alias.  */
21688 #if defined __stub_dladdr || defined __stub___dladdr
21689 choke me
21690 #endif
21691
21692 int
21693 main ()
21694 {
21695 return dladdr ();
21696   ;
21697   return 0;
21698 }
21699 _ACEOF
21700 rm -f conftest.$ac_objext conftest$ac_exeext
21701 if { (ac_try="$ac_link"
21702 case "(($ac_try" in
21703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704   *) ac_try_echo=$ac_try;;
21705 esac
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707   (eval "$ac_link") 2>conftest.er1
21708   ac_status=$?
21709   grep -v '^ *+' conftest.er1 >conftest.err
21710   rm -f conftest.er1
21711   cat conftest.err >&5
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); } && {
21714          test -z "$ac_c_werror_flag" ||
21715          test ! -s conftest.err
21716        } && test -s conftest$ac_exeext &&
21717        $as_test_x conftest$ac_exeext; then
21718   ac_cv_func_dladdr=yes
21719 else
21720   echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723         ac_cv_func_dladdr=no
21724 fi
21725
21726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21727       conftest$ac_exeext conftest.$ac_ext
21728 fi
21729 { echo "$as_me:$LINENO: result: $ac_cv_func_dladdr" >&5
21730 echo "${ECHO_T}$ac_cv_func_dladdr" >&6; }
21731 if test $ac_cv_func_dladdr = yes; then
21732
21733 cat >>confdefs.h <<\_ACEOF
21734 #define HAVE_DLADDR 1
21735 _ACEOF
21736
21737 fi
21738
21739
21740
21741   { echo "$as_me:$LINENO: checking for __attribute__" >&5
21742 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
21743   if test "${ac_cv___attribute__+set}" = set; then
21744   echo $ECHO_N "(cached) $ECHO_C" >&6
21745 else
21746
21747     cat >conftest.$ac_ext <<_ACEOF
21748 /* confdefs.h.  */
21749 _ACEOF
21750 cat confdefs.h >>conftest.$ac_ext
21751 cat >>conftest.$ac_ext <<_ACEOF
21752 /* end confdefs.h.  */
21753 #include <stdlib.h>
21754        static void foo(void) __attribute__ ((unused));
21755        void foo(void) { exit(1); }
21756 int
21757 main ()
21758 {
21759
21760   ;
21761   return 0;
21762 }
21763 _ACEOF
21764 rm -f conftest.$ac_objext
21765 if { (ac_try="$ac_compile"
21766 case "(($ac_try" in
21767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21768   *) ac_try_echo=$ac_try;;
21769 esac
21770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21771   (eval "$ac_compile") 2>conftest.er1
21772   ac_status=$?
21773   grep -v '^ *+' conftest.er1 >conftest.err
21774   rm -f conftest.er1
21775   cat conftest.err >&5
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); } && {
21778          test -z "$ac_c_werror_flag" ||
21779          test ! -s conftest.err
21780        } && test -s conftest.$ac_objext; then
21781   ac_cv___attribute__=yes
21782 else
21783   echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786         ac_cv___attribute__=no
21787
21788 fi
21789
21790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21791 fi
21792
21793   if test "$ac_cv___attribute__" = "yes"; then
21794
21795 cat >>confdefs.h <<\_ACEOF
21796 #define HAVE___ATTRIBUTE__ 1
21797 _ACEOF
21798
21799   fi
21800   { echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
21801 echo "${ECHO_T}$ac_cv___attribute__" >&6; }
21802
21803 # We only care about these two attributes.
21804 if test x"$ac_cv___attribute__" = x"yes"; then
21805   ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
21806   ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
21807 else
21808   ac_cv___attribute___noreturn=
21809   ac_cv___attribute___printf_4_5=
21810 fi
21811
21812
21813   { echo "$as_me:$LINENO: checking for __builtin_expect" >&5
21814 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6; }
21815   if test "${ac_cv___builtin_expect+set}" = set; then
21816   echo $ECHO_N "(cached) $ECHO_C" >&6
21817 else
21818
21819     cat >conftest.$ac_ext <<_ACEOF
21820 /* confdefs.h.  */
21821 _ACEOF
21822 cat confdefs.h >>conftest.$ac_ext
21823 cat >>conftest.$ac_ext <<_ACEOF
21824 /* end confdefs.h.  */
21825 int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
21826 int
21827 main ()
21828 {
21829
21830   ;
21831   return 0;
21832 }
21833 _ACEOF
21834 rm -f conftest.$ac_objext
21835 if { (ac_try="$ac_compile"
21836 case "(($ac_try" in
21837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838   *) ac_try_echo=$ac_try;;
21839 esac
21840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841   (eval "$ac_compile") 2>conftest.er1
21842   ac_status=$?
21843   grep -v '^ *+' conftest.er1 >conftest.err
21844   rm -f conftest.er1
21845   cat conftest.err >&5
21846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847   (exit $ac_status); } && {
21848          test -z "$ac_c_werror_flag" ||
21849          test ! -s conftest.err
21850        } && test -s conftest.$ac_objext; then
21851   ac_cv___builtin_expect=yes
21852 else
21853   echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856         ac_cv___builtin_expect=no
21857
21858 fi
21859
21860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861 fi
21862
21863   if test "$ac_cv___builtin_expect" = "yes"; then
21864
21865 cat >>confdefs.h <<\_ACEOF
21866 #define HAVE___BUILTIN_EXPECT 1
21867 _ACEOF
21868
21869   fi
21870   { echo "$as_me:$LINENO: result: $ac_cv___builtin_expect" >&5
21871 echo "${ECHO_T}$ac_cv___builtin_expect" >&6; }
21872
21873 if test x"$ac_cv___builtin_expect" = x"yes"; then
21874   ac_cv_have___builtin_expect=1
21875 else
21876   ac_cv_have___builtin_expect=0
21877 fi
21878
21879
21880   { echo "$as_me:$LINENO: checking for __sync_val_compare_and_swap" >&5
21881 echo $ECHO_N "checking for __sync_val_compare_and_swap... $ECHO_C" >&6; }
21882   if test "${ac_cv___sync_val_compare_and_swap+set}" = set; then
21883   echo $ECHO_N "(cached) $ECHO_C" >&6
21884 else
21885
21886     cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h.  */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h.  */
21892 int main() { int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0; }
21893 int
21894 main ()
21895 {
21896
21897   ;
21898   return 0;
21899 }
21900 _ACEOF
21901 rm -f conftest.$ac_objext conftest$ac_exeext
21902 if { (ac_try="$ac_link"
21903 case "(($ac_try" in
21904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905   *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908   (eval "$ac_link") 2>conftest.er1
21909   ac_status=$?
21910   grep -v '^ *+' conftest.er1 >conftest.err
21911   rm -f conftest.er1
21912   cat conftest.err >&5
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); } && {
21915          test -z "$ac_c_werror_flag" ||
21916          test ! -s conftest.err
21917        } && test -s conftest$ac_exeext &&
21918        $as_test_x conftest$ac_exeext; then
21919   ac_cv___sync_val_compare_and_swap=yes
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924         ac_cv___sync_val_compare_and_swap=no
21925
21926 fi
21927
21928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21929       conftest$ac_exeext conftest.$ac_ext
21930 fi
21931
21932   if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
21933
21934 cat >>confdefs.h <<\_ACEOF
21935 #define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1
21936 _ACEOF
21937
21938   fi
21939   { echo "$as_me:$LINENO: result: $ac_cv___sync_val_compare_and_swap" >&5
21940 echo "${ECHO_T}$ac_cv___sync_val_compare_and_swap" >&6; }
21941
21942
21943 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
21944 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
21945 # Check whether --enable-frame_pointers was given.
21946 if test "${enable_frame_pointers+set}" = set; then
21947   enableval=$enable_frame_pointers; enable_frame_pointers=no
21948 fi
21949
21950 cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h.  */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h.  */
21956
21957 int
21958 main ()
21959 {
21960 return __x86_64__ == 1 ? 0 : 1
21961   ;
21962   return 0;
21963 }
21964 _ACEOF
21965 rm -f conftest.$ac_objext
21966 if { (ac_try="$ac_compile"
21967 case "(($ac_try" in
21968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21969   *) ac_try_echo=$ac_try;;
21970 esac
21971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21972   (eval "$ac_compile") 2>conftest.er1
21973   ac_status=$?
21974   grep -v '^ *+' conftest.er1 >conftest.err
21975   rm -f conftest.er1
21976   cat conftest.err >&5
21977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978   (exit $ac_status); } && {
21979          test -z "$ac_c_werror_flag" ||
21980          test ! -s conftest.err
21981        } && test -s conftest.$ac_objext; then
21982   is_x86_64=yes
21983 else
21984   echo "$as_me: failed program was:" >&5
21985 sed 's/^/| /' conftest.$ac_ext >&5
21986
21987         is_x86_64=no
21988 fi
21989
21990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991  if test "$enable_frame_pointers" = yes; then
21992   ENABLE_FRAME_POINTERS_TRUE=
21993   ENABLE_FRAME_POINTERS_FALSE='#'
21994 else
21995   ENABLE_FRAME_POINTERS_TRUE='#'
21996   ENABLE_FRAME_POINTERS_FALSE=
21997 fi
21998
21999  if test "$is_x86_64" = yes; then
22000   X86_64_TRUE=
22001   X86_64_FALSE='#'
22002 else
22003   X86_64_TRUE='#'
22004   X86_64_FALSE=
22005 fi
22006
22007
22008 # Some of the code in this directory depends on pthreads
22009
22010
22011
22012 ac_ext=c
22013 ac_cpp='$CPP $CPPFLAGS'
22014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22017
22018 acx_pthread_ok=no
22019
22020 # We used to check for pthread.h first, but this fails if pthread.h
22021 # requires special compiler flags (e.g. on True64 or Sequent).
22022 # It gets checked for in the link test anyway.
22023
22024 # First of all, check if the user has set any of the PTHREAD_LIBS,
22025 # etcetera environment variables, and if threads linking works using
22026 # them:
22027 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22028         save_CFLAGS="$CFLAGS"
22029         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22030         save_LIBS="$LIBS"
22031         LIBS="$PTHREAD_LIBS $LIBS"
22032         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22033 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
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
22041 /* Override any GCC internal prototype to avoid an error.
22042    Use char because int might match the return type of a GCC
22043    builtin and then its argument prototype would still apply.  */
22044 #ifdef __cplusplus
22045 extern "C"
22046 #endif
22047 char pthread_join ();
22048 int
22049 main ()
22050 {
22051 return pthread_join ();
22052   ;
22053   return 0;
22054 }
22055 _ACEOF
22056 rm -f conftest.$ac_objext conftest$ac_exeext
22057 if { (ac_try="$ac_link"
22058 case "(($ac_try" in
22059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060   *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063   (eval "$ac_link") 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } && {
22070          test -z "$ac_c_werror_flag" ||
22071          test ! -s conftest.err
22072        } && test -s conftest$ac_exeext &&
22073        $as_test_x conftest$ac_exeext; then
22074   acx_pthread_ok=yes
22075 else
22076   echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22078
22079
22080 fi
22081
22082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22083       conftest$ac_exeext conftest.$ac_ext
22084         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22085 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22086         if test x"$acx_pthread_ok" = xno; then
22087                 PTHREAD_LIBS=""
22088                 PTHREAD_CFLAGS=""
22089         fi
22090         LIBS="$save_LIBS"
22091         CFLAGS="$save_CFLAGS"
22092 fi
22093
22094 # We must check for the threads library under a number of different
22095 # names; the ordering is very important because some systems
22096 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22097 # libraries is broken (non-POSIX).
22098
22099 # Create a list of thread flags to try.  Items starting with a "-" are
22100 # C compiler flags, and other items are library names, except for "none"
22101 # which indicates that we try without any flags at all, and "pthread-config"
22102 # which is a program returning the flags for the Pth emulation library.
22103
22104 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22105
22106 # The ordering *is* (sometimes) important.  Some notes on the
22107 # individual items follow:
22108
22109 # pthreads: AIX (must check this before -lpthread)
22110 # none: in case threads are in libc; should be tried before -Kthread and
22111 #       other compiler flags to prevent continual compiler warnings
22112 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22113 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22114 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22115 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22116 # -pthreads: Solaris/gcc
22117 # -mthreads: Mingw32/gcc, Lynx/gcc
22118 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22119 #      doesn't hurt to check since this sometimes defines pthreads too;
22120 #      also defines -D_REENTRANT)
22121 #      ... -mt is also the pthreads flag for HP/aCC
22122 # pthread: Linux, etcetera
22123 # --thread-safe: KAI C++
22124 # pthread-config: use pthread-config program (for GNU Pth library)
22125
22126 case "${host_cpu}-${host_os}" in
22127         *solaris*)
22128
22129         # On Solaris (at least, for some versions), libc contains stubbed
22130         # (non-functional) versions of the pthreads routines, so link-based
22131         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
22132         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
22133         # a function called by this macro, so we could check for that, but
22134         # who knows whether they'll stub that too in a future libc.)  So,
22135         # we'll just look for -pthreads and -lpthread first:
22136
22137         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22138         ;;
22139 esac
22140
22141 if test x"$acx_pthread_ok" = xno; then
22142 for flag in $acx_pthread_flags; do
22143
22144         case $flag in
22145                 none)
22146                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22147 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22148                 ;;
22149
22150                 -*)
22151                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22152 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22153                 PTHREAD_CFLAGS="$flag"
22154                 ;;
22155
22156                 pthread-config)
22157                 # Extract the first word of "pthread-config", so it can be a program name with args.
22158 set dummy pthread-config; ac_word=$2
22159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22161 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22162   echo $ECHO_N "(cached) $ECHO_C" >&6
22163 else
22164   if test -n "$acx_pthread_config"; then
22165   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22166 else
22167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22168 for as_dir in $PATH
22169 do
22170   IFS=$as_save_IFS
22171   test -z "$as_dir" && as_dir=.
22172   for ac_exec_ext in '' $ac_executable_extensions; do
22173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22174     ac_cv_prog_acx_pthread_config="yes"
22175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22176     break 2
22177   fi
22178 done
22179 done
22180 IFS=$as_save_IFS
22181
22182   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22183 fi
22184 fi
22185 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22186 if test -n "$acx_pthread_config"; then
22187   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22188 echo "${ECHO_T}$acx_pthread_config" >&6; }
22189 else
22190   { echo "$as_me:$LINENO: result: no" >&5
22191 echo "${ECHO_T}no" >&6; }
22192 fi
22193
22194
22195                 if test x"$acx_pthread_config" = xno; then continue; fi
22196                 PTHREAD_CFLAGS="`pthread-config --cflags`"
22197                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22198                 ;;
22199
22200                 *)
22201                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22202 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22203                 PTHREAD_LIBS="-l$flag"
22204                 ;;
22205         esac
22206
22207         save_LIBS="$LIBS"
22208         save_CFLAGS="$CFLAGS"
22209         LIBS="$PTHREAD_LIBS $LIBS"
22210         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22211
22212         # Check for various functions.  We must include pthread.h,
22213         # since some functions may be macros.  (On the Sequent, we
22214         # need a special flag -Kthread to make this header compile.)
22215         # We check for pthread_join because it is in -lpthread on IRIX
22216         # while pthread_create is in libc.  We check for pthread_attr_init
22217         # due to DEC craziness with -lpthreads.  We check for
22218         # pthread_cleanup_push because it is one of the few pthread
22219         # functions on Solaris that doesn't have a non-functional libc stub.
22220         # We try pthread_create on general principles.
22221         cat >conftest.$ac_ext <<_ACEOF
22222 /* confdefs.h.  */
22223 _ACEOF
22224 cat confdefs.h >>conftest.$ac_ext
22225 cat >>conftest.$ac_ext <<_ACEOF
22226 /* end confdefs.h.  */
22227 #include <pthread.h>
22228 int
22229 main ()
22230 {
22231 pthread_t th; pthread_join(th, 0);
22232                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
22233                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22234   ;
22235   return 0;
22236 }
22237 _ACEOF
22238 rm -f conftest.$ac_objext conftest$ac_exeext
22239 if { (ac_try="$ac_link"
22240 case "(($ac_try" in
22241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242   *) ac_try_echo=$ac_try;;
22243 esac
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245   (eval "$ac_link") 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } && {
22252          test -z "$ac_c_werror_flag" ||
22253          test ! -s conftest.err
22254        } && test -s conftest$ac_exeext &&
22255        $as_test_x conftest$ac_exeext; then
22256   acx_pthread_ok=yes
22257 else
22258   echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261
22262 fi
22263
22264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22265       conftest$ac_exeext conftest.$ac_ext
22266
22267         LIBS="$save_LIBS"
22268         CFLAGS="$save_CFLAGS"
22269
22270         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22271 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22272         if test "x$acx_pthread_ok" = xyes; then
22273                 break;
22274         fi
22275
22276         PTHREAD_LIBS=""
22277         PTHREAD_CFLAGS=""
22278 done
22279 fi
22280
22281 # Various other checks:
22282 if test "x$acx_pthread_ok" = xyes; then
22283         save_LIBS="$LIBS"
22284         LIBS="$PTHREAD_LIBS $LIBS"
22285         save_CFLAGS="$CFLAGS"
22286         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22287
22288         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22289         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22290 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22291         attr_name=unknown
22292         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22293             cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h.  */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h.  */
22299 #include <pthread.h>
22300 int
22301 main ()
22302 {
22303 int attr=$attr; return attr;
22304   ;
22305   return 0;
22306 }
22307 _ACEOF
22308 rm -f conftest.$ac_objext conftest$ac_exeext
22309 if { (ac_try="$ac_link"
22310 case "(($ac_try" in
22311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312   *) ac_try_echo=$ac_try;;
22313 esac
22314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22315   (eval "$ac_link") 2>conftest.er1
22316   ac_status=$?
22317   grep -v '^ *+' conftest.er1 >conftest.err
22318   rm -f conftest.er1
22319   cat conftest.err >&5
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); } && {
22322          test -z "$ac_c_werror_flag" ||
22323          test ! -s conftest.err
22324        } && test -s conftest$ac_exeext &&
22325        $as_test_x conftest$ac_exeext; then
22326   attr_name=$attr; break
22327 else
22328   echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331
22332 fi
22333
22334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22335       conftest$ac_exeext conftest.$ac_ext
22336         done
22337         { echo "$as_me:$LINENO: result: $attr_name" >&5
22338 echo "${ECHO_T}$attr_name" >&6; }
22339         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22340
22341 cat >>confdefs.h <<_ACEOF
22342 #define PTHREAD_CREATE_JOINABLE $attr_name
22343 _ACEOF
22344
22345         fi
22346
22347         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22348 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22349         flag=no
22350         case "${host_cpu}-${host_os}" in
22351             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
22352             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22353         esac
22354         { echo "$as_me:$LINENO: result: ${flag}" >&5
22355 echo "${ECHO_T}${flag}" >&6; }
22356         if test "x$flag" != xno; then
22357             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22358         fi
22359
22360         LIBS="$save_LIBS"
22361         CFLAGS="$save_CFLAGS"
22362         # More AIX lossage: must compile with xlc_r or cc_r
22363         if test x"$GCC" != xyes; then
22364           for ac_prog in xlc_r cc_r
22365 do
22366   # Extract the first word of "$ac_prog", so it can be a program name with args.
22367 set dummy $ac_prog; ac_word=$2
22368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22370 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   if test -n "$PTHREAD_CC"; then
22374   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22375 else
22376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22377 for as_dir in $PATH
22378 do
22379   IFS=$as_save_IFS
22380   test -z "$as_dir" && as_dir=.
22381   for ac_exec_ext in '' $ac_executable_extensions; do
22382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22383     ac_cv_prog_PTHREAD_CC="$ac_prog"
22384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22385     break 2
22386   fi
22387 done
22388 done
22389 IFS=$as_save_IFS
22390
22391 fi
22392 fi
22393 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22394 if test -n "$PTHREAD_CC"; then
22395   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22396 echo "${ECHO_T}$PTHREAD_CC" >&6; }
22397 else
22398   { echo "$as_me:$LINENO: result: no" >&5
22399 echo "${ECHO_T}no" >&6; }
22400 fi
22401
22402
22403   test -n "$PTHREAD_CC" && break
22404 done
22405 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22406
22407         else
22408           PTHREAD_CC=$CC
22409         fi
22410
22411    # The next part tries to detect GCC inconsistency with -shared on some
22412    # architectures and systems. The problem is that in certain
22413    # configurations, when -shared is specified, GCC "forgets" to
22414    # internally use various flags which are still necessary.
22415
22416    { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
22417 echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
22418    check_inconsistencies=yes
22419    case "${host_cpu}-${host_os}" in
22420      *-darwin*) check_inconsistencies=no ;;
22421    esac
22422    if test x"$GCC" != xyes -o "x$check_inconsistencies" != xyes ; then
22423       { echo "$as_me:$LINENO: result: no" >&5
22424 echo "${ECHO_T}no" >&6; }
22425    else
22426       { echo "$as_me:$LINENO: result: yes" >&5
22427 echo "${ECHO_T}yes" >&6; }
22428
22429       # In order not to create several levels of indentation, we test
22430       # the value of "$ok" until we find out the cure or run out of
22431       # ideas.
22432       ok="no"
22433
22434       #
22435       # Prepare the flags
22436       #
22437       save_CFLAGS="$CFLAGS"
22438       save_LIBS="$LIBS"
22439       save_CC="$CC"
22440       # Try with the flags determined by the earlier checks.
22441       #
22442       # -Wl,-z,defs forces link-time symbol resolution, so that the
22443       # linking checks with -shared actually have any value
22444       #
22445       # FIXME: -fPIC is required for -shared on many architectures,
22446       # so we specify it here, but the right way would probably be to
22447       # properly detect whether it is actually required.
22448       CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
22449       LIBS="$PTHREAD_LIBS $LIBS"
22450       CC="$PTHREAD_CC"
22451
22452       { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
22453 echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
22454       cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h.  */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h.  */
22460 #include <pthread.h>
22461 int
22462 main ()
22463 {
22464 pthread_t th; pthread_join(th, 0);
22465          pthread_attr_init(0); pthread_cleanup_push(0, 0);
22466          pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22467   ;
22468   return 0;
22469 }
22470 _ACEOF
22471 rm -f conftest.$ac_objext conftest$ac_exeext
22472 if { (ac_try="$ac_link"
22473 case "(($ac_try" in
22474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475   *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478   (eval "$ac_link") 2>conftest.er1
22479   ac_status=$?
22480   grep -v '^ *+' conftest.er1 >conftest.err
22481   rm -f conftest.er1
22482   cat conftest.err >&5
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); } && {
22485          test -z "$ac_c_werror_flag" ||
22486          test ! -s conftest.err
22487        } && test -s conftest$ac_exeext &&
22488        $as_test_x conftest$ac_exeext; then
22489   ok=yes
22490 else
22491   echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494
22495 fi
22496
22497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22498       conftest$ac_exeext conftest.$ac_ext
22499
22500       if test "x$ok" = xyes; then
22501          { echo "$as_me:$LINENO: result: yes" >&5
22502 echo "${ECHO_T}yes" >&6; }
22503       else
22504          { echo "$as_me:$LINENO: result: no" >&5
22505 echo "${ECHO_T}no" >&6; }
22506       fi
22507
22508       #
22509       # Linux gcc on some architectures such as mips/mipsel forgets
22510       # about -lpthread
22511       #
22512       if test x"$ok" = xno; then
22513          { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
22514 echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
22515          LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
22516          cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h.  */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h.  */
22522 #include <pthread.h>
22523 int
22524 main ()
22525 {
22526 pthread_t th; pthread_join(th, 0);
22527             pthread_attr_init(0); pthread_cleanup_push(0, 0);
22528             pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22529   ;
22530   return 0;
22531 }
22532 _ACEOF
22533 rm -f conftest.$ac_objext conftest$ac_exeext
22534 if { (ac_try="$ac_link"
22535 case "(($ac_try" in
22536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537   *) ac_try_echo=$ac_try;;
22538 esac
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540   (eval "$ac_link") 2>conftest.er1
22541   ac_status=$?
22542   grep -v '^ *+' conftest.er1 >conftest.err
22543   rm -f conftest.er1
22544   cat conftest.err >&5
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); } && {
22547          test -z "$ac_c_werror_flag" ||
22548          test ! -s conftest.err
22549        } && test -s conftest$ac_exeext &&
22550        $as_test_x conftest$ac_exeext; then
22551   ok=yes
22552 else
22553   echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556
22557 fi
22558
22559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22560       conftest$ac_exeext conftest.$ac_ext
22561
22562          if test "x$ok" = xyes; then
22563             { echo "$as_me:$LINENO: result: yes" >&5
22564 echo "${ECHO_T}yes" >&6; }
22565             PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
22566          else
22567             { echo "$as_me:$LINENO: result: no" >&5
22568 echo "${ECHO_T}no" >&6; }
22569          fi
22570       fi
22571       #
22572       # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
22573       #
22574       if test x"$ok" = xno; then
22575          { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
22576 echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
22577          LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
22578          cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h.  */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h.  */
22584 #include <pthread.h>
22585 int
22586 main ()
22587 {
22588 pthread_t th; pthread_join(th, 0);
22589               pthread_attr_init(0); pthread_cleanup_push(0, 0);
22590               pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22591   ;
22592   return 0;
22593 }
22594 _ACEOF
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599   *) ac_try_echo=$ac_try;;
22600 esac
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602   (eval "$ac_link") 2>conftest.er1
22603   ac_status=$?
22604   grep -v '^ *+' conftest.er1 >conftest.err
22605   rm -f conftest.er1
22606   cat conftest.err >&5
22607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608   (exit $ac_status); } && {
22609          test -z "$ac_c_werror_flag" ||
22610          test ! -s conftest.err
22611        } && test -s conftest$ac_exeext &&
22612        $as_test_x conftest$ac_exeext; then
22613   ok=yes
22614 else
22615   echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22617
22618
22619 fi
22620
22621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22622       conftest$ac_exeext conftest.$ac_ext
22623
22624          if test "x$ok" = xyes; then
22625             { echo "$as_me:$LINENO: result: yes" >&5
22626 echo "${ECHO_T}yes" >&6; }
22627             PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
22628          else
22629             { echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6; }
22631          fi
22632       fi
22633       if test x"$ok" = xno; then
22634          # OK, we have run out of ideas
22635          { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
22636 echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
22637
22638          # so it's not safe to assume that we may use pthreads
22639          acx_pthread_ok=no
22640       fi
22641
22642       CFLAGS="$save_CFLAGS"
22643       LIBS="$save_LIBS"
22644       CC="$save_CC"
22645    fi
22646 else
22647         PTHREAD_CC="$CC"
22648 fi
22649
22650
22651
22652
22653
22654 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22655 if test x"$acx_pthread_ok" = xyes; then
22656
22657 cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_PTHREAD 1
22659 _ACEOF
22660
22661         :
22662 else
22663         acx_pthread_ok=no
22664
22665 fi
22666 ac_ext=c
22667 ac_cpp='$CPP $CPPFLAGS'
22668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22671
22672
22673
22674 # Check if there is google-gflags library installed.
22675 { echo "$as_me:$LINENO: checking for main in -lgflags" >&5
22676 echo $ECHO_N "checking for main in -lgflags... $ECHO_C" >&6; }
22677 if test "${ac_cv_lib_gflags_main+set}" = set; then
22678   echo $ECHO_N "(cached) $ECHO_C" >&6
22679 else
22680   ac_check_lib_save_LIBS=$LIBS
22681 LIBS="-lgflags  $LIBS"
22682 cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688
22689
22690 int
22691 main ()
22692 {
22693 return main ();
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (ac_try="$ac_link"
22700 case "(($ac_try" in
22701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702   *) ac_try_echo=$ac_try;;
22703 esac
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705   (eval "$ac_link") 2>conftest.er1
22706   ac_status=$?
22707   grep -v '^ *+' conftest.er1 >conftest.err
22708   rm -f conftest.er1
22709   cat conftest.err >&5
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); } && {
22712          test -z "$ac_c_werror_flag" ||
22713          test ! -s conftest.err
22714        } && test -s conftest$ac_exeext &&
22715        $as_test_x conftest$ac_exeext; then
22716   ac_cv_lib_gflags_main=yes
22717 else
22718   echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22720
22721         ac_cv_lib_gflags_main=no
22722 fi
22723
22724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725       conftest$ac_exeext conftest.$ac_ext
22726 LIBS=$ac_check_lib_save_LIBS
22727 fi
22728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gflags_main" >&5
22729 echo "${ECHO_T}$ac_cv_lib_gflags_main" >&6; }
22730 if test $ac_cv_lib_gflags_main = yes; then
22731   ac_cv_have_libgflags=1
22732 else
22733   ac_cv_have_libgflags=0
22734 fi
22735
22736 if test x"$ac_cv_have_libgflags" = x"1"; then
22737   GFLAGS_LIBS=-lgflags
22738
22739 cat >>confdefs.h <<\_ACEOF
22740 #define HAVE_LIB_GFLAGS 1
22741 _ACEOF
22742
22743 else
22744   GFLAGS_LIBS=
22745 fi
22746
22747 # We'd like to use read/write locks in several places in the code.
22748 # See if our pthreads support extends to that.  Note: for linux, it
22749 # does as long as you define _XOPEN_SOURCE appropriately.
22750 { echo "$as_me:$LINENO: checking support for pthread_rwlock_* functions" >&5
22751 echo $ECHO_N "checking support for pthread_rwlock_* functions... $ECHO_C" >&6; }
22752 if test "${ac_rwlock+set}" = set; then
22753   echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755
22756  ac_ext=c
22757 ac_cpp='$CPP $CPPFLAGS'
22758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22761
22762  cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h.  */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h.  */
22768 #define _XOPEN_SOURCE 500
22769                  #include <pthread.h>
22770 int
22771 main ()
22772 {
22773 pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
22774                  pthread_rwlock_rdlock(&l);
22775                  return 0;
22776   ;
22777   return 0;
22778 }
22779 _ACEOF
22780 rm -f conftest.$ac_objext
22781 if { (ac_try="$ac_compile"
22782 case "(($ac_try" in
22783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784   *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787   (eval "$ac_compile") 2>conftest.er1
22788   ac_status=$?
22789   grep -v '^ *+' conftest.er1 >conftest.err
22790   rm -f conftest.er1
22791   cat conftest.err >&5
22792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793   (exit $ac_status); } && {
22794          test -z "$ac_c_werror_flag" ||
22795          test ! -s conftest.err
22796        } && test -s conftest.$ac_objext; then
22797   ac_rwlock=yes
22798 else
22799   echo "$as_me: failed program was:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22801
22802         ac_rwlock=no
22803 fi
22804
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806  ac_ext=c
22807 ac_cpp='$CPP $CPPFLAGS'
22808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22811
22812
22813 fi
22814 { echo "$as_me:$LINENO: result: $ac_rwlock" >&5
22815 echo "${ECHO_T}$ac_rwlock" >&6; }
22816 if test "$ac_rwlock" = yes; then
22817
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_RWLOCK 1
22820 _ACEOF
22821
22822 fi
22823
22824
22825 # Find out what namespace 'normal' STL code lives in, and also what namespace
22826 # the user wants our classes to be defined in
22827 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22828 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
22829 if test "${ac_cv_cxx_namespaces+set}" = set; then
22830   echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832
22833                   ac_ext=cpp
22834 ac_cpp='$CXXCPP $CPPFLAGS'
22835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22838
22839                   cat >conftest.$ac_ext <<_ACEOF
22840 /* confdefs.h.  */
22841 _ACEOF
22842 cat confdefs.h >>conftest.$ac_ext
22843 cat >>conftest.$ac_ext <<_ACEOF
22844 /* end confdefs.h.  */
22845 namespace Outer {
22846                                     namespace Inner { int i = 0; }}
22847 int
22848 main ()
22849 {
22850 using namespace Outer::Inner; return i;
22851   ;
22852   return 0;
22853 }
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859   *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862   (eval "$ac_compile") 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } && {
22869          test -z "$ac_cxx_werror_flag" ||
22870          test ! -s conftest.err
22871        } && test -s conftest.$ac_objext; then
22872   ac_cv_cxx_namespaces=yes
22873 else
22874   echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22876
22877         ac_cv_cxx_namespaces=no
22878 fi
22879
22880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22881                   ac_ext=c
22882 ac_cpp='$CPP $CPPFLAGS'
22883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22886
22887 fi
22888 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22889 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
22890   if test "$ac_cv_cxx_namespaces" = yes; then
22891
22892 cat >>confdefs.h <<\_ACEOF
22893 #define HAVE_NAMESPACES 1
22894 _ACEOF
22895
22896   fi
22897 { echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
22898 echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6; }
22899 if test "${ac_cv_cxx_stl_namespace+set}" = set; then
22900   echo $ECHO_N "(cached) $ECHO_C" >&6
22901 else
22902
22903
22904       ac_ext=cpp
22905 ac_cpp='$CXXCPP $CPPFLAGS'
22906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22909
22910       cat >conftest.$ac_ext <<_ACEOF
22911 /* confdefs.h.  */
22912 _ACEOF
22913 cat confdefs.h >>conftest.$ac_ext
22914 cat >>conftest.$ac_ext <<_ACEOF
22915 /* end confdefs.h.  */
22916 #include <vector>
22917 int
22918 main ()
22919 {
22920 vector<int> t; return 0;
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 rm -f conftest.$ac_objext
22926 if { (ac_try="$ac_compile"
22927 case "(($ac_try" in
22928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929   *) ac_try_echo=$ac_try;;
22930 esac
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932   (eval "$ac_compile") 2>conftest.er1
22933   ac_status=$?
22934   grep -v '^ *+' conftest.er1 >conftest.err
22935   rm -f conftest.er1
22936   cat conftest.err >&5
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } && {
22939          test -z "$ac_cxx_werror_flag" ||
22940          test ! -s conftest.err
22941        } && test -s conftest.$ac_objext; then
22942   ac_cv_cxx_stl_namespace=none
22943 else
22944   echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22946
22947
22948 fi
22949
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951       cat >conftest.$ac_ext <<_ACEOF
22952 /* confdefs.h.  */
22953 _ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h.  */
22957 #include <vector>
22958 int
22959 main ()
22960 {
22961 std::vector<int> t; return 0;
22962   ;
22963   return 0;
22964 }
22965 _ACEOF
22966 rm -f conftest.$ac_objext
22967 if { (ac_try="$ac_compile"
22968 case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_compile") 2>conftest.er1
22974   ac_status=$?
22975   grep -v '^ *+' conftest.er1 >conftest.err
22976   rm -f conftest.er1
22977   cat conftest.err >&5
22978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979   (exit $ac_status); } && {
22980          test -z "$ac_cxx_werror_flag" ||
22981          test ! -s conftest.err
22982        } && test -s conftest.$ac_objext; then
22983   ac_cv_cxx_stl_namespace=std
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988
22989 fi
22990
22991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992       ac_ext=c
22993 ac_cpp='$CPP $CPPFLAGS'
22994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22997
22998 fi
22999 { echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
23000 echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6; }
23001    if test "$ac_cv_cxx_stl_namespace" = none; then
23002
23003 cat >>confdefs.h <<\_ACEOF
23004 #define STL_NAMESPACE
23005 _ACEOF
23006
23007    fi
23008    if test "$ac_cv_cxx_stl_namespace" = std; then
23009
23010 cat >>confdefs.h <<\_ACEOF
23011 #define STL_NAMESPACE std
23012 _ACEOF
23013
23014    fi
23015
23016 google_namespace_default=google
23017    # Check whether --enable-namespace was given.
23018 if test "${enable_namespace+set}" = set; then
23019   enableval=$enable_namespace; case "$enableval" in
23020                     yes) google_namespace="$google_namespace_default" ;;
23021                      no) google_namespace="" ;;
23022                       *) google_namespace="$enableval" ;;
23023                   esac
23024 else
23025   google_namespace="$google_namespace_default"
23026 fi
23027
23028    if test -n "$google_namespace"; then
23029      ac_google_namespace="$google_namespace"
23030      ac_google_start_namespace="namespace $google_namespace {"
23031      ac_google_end_namespace="}"
23032    else
23033      ac_google_namespace=""
23034      ac_google_start_namespace=""
23035      ac_google_end_namespace=""
23036    fi
23037
23038 cat >>confdefs.h <<_ACEOF
23039 #define GOOGLE_NAMESPACE $ac_google_namespace
23040 _ACEOF
23041
23042
23043 cat >>confdefs.h <<_ACEOF
23044 #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
23045 _ACEOF
23046
23047
23048 cat >>confdefs.h <<_ACEOF
23049 #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
23050 _ACEOF
23051
23052
23053
23054 { echo "$as_me:$LINENO: checking whether compiler supports using ::operator<<" >&5
23055 echo $ECHO_N "checking whether compiler supports using ::operator<<... $ECHO_C" >&6; }
23056 if test "${ac_cv_cxx_using_operator+set}" = set; then
23057   echo $ECHO_N "(cached) $ECHO_C" >&6
23058 else
23059
23060        ac_ext=cpp
23061 ac_cpp='$CXXCPP $CPPFLAGS'
23062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23065
23066        cat >conftest.$ac_ext <<_ACEOF
23067 /* confdefs.h.  */
23068 _ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h.  */
23072 #include <iostream>
23073                        std::ostream& operator<<(std::ostream&, struct s);
23074 int
23075 main ()
23076 {
23077 using ::operator<<; 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_cxx_werror_flag" ||
23097          test ! -s conftest.err
23098        } && test -s conftest.$ac_objext; then
23099   ac_cv_cxx_using_operator=1
23100 else
23101   echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104         ac_cv_cxx_using_operator=0
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 fi
23115 { echo "$as_me:$LINENO: result: $ac_cv_cxx_using_operator" >&5
23116 echo "${ECHO_T}$ac_cv_cxx_using_operator" >&6; }
23117   if test "$ac_cv_cxx_using_operator" = 1; then
23118
23119 cat >>confdefs.h <<\_ACEOF
23120 #define HAVE_USING_OPERATOR 1
23121 _ACEOF
23122
23123   fi
23124
23125 # We want to access the "PC" (Program Counter) register from a struct
23126 # ucontext.  Every system has its own way of doing that.  We try all the
23127 # possibilities we know about.  Note REG_PC should come first (REG_RIP
23128 # is also defined on solaris, but does the wrong thing).
23129 { echo "$as_me:$LINENO: checking how to access the program counter from a struct ucontext" >&5
23130 echo $ECHO_N "checking how to access the program counter from a struct ucontext... $ECHO_C" >&6; }
23131 pc_fields="           uc_mcontext.gregs[REG_PC]"  # Solaris x86 (32 + 64 bit)
23132 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
23133 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
23134 pc_fields="$pc_fields uc_mcontext.sc_ip"            # Linux (ia64)
23135 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
23136 pc_fields="$pc_fields uc_mcontext.gregs[R15]"     # Linux (arm old [untested])
23137 pc_fields="$pc_fields uc_mcontext.arm_pc"           # Linux (arm new [untested])
23138 pc_fields="$pc_fields uc_mcontext.mc_eip"           # FreeBSD (i386)
23139 pc_fields="$pc_fields uc_mcontext.mc_rip"           # FreeBSD (x86_64 [untested])
23140 pc_fields="$pc_fields uc_mcontext->ss.eip"          # OS X (i386, <=10.4)
23141 pc_fields="$pc_fields uc_mcontext->__ss.__eip"      # OS X (i386, >=10.5)
23142 pc_fields="$pc_fields uc_mcontext->ss.rip"          # OS X (x86_64)
23143 pc_fields="$pc_fields uc_mcontext->__ss.__rip"      # OS X (>=10.5 [untested])
23144 pc_fields="$pc_fields uc_mcontext->ss.srr0"         # OS X (ppc, ppc64 [untested])
23145 pc_fields="$pc_fields uc_mcontext->__ss.__srr0"     # OS X (>=10.5 [untested])
23146 pc_field_found=false
23147 for pc_field in $pc_fields; do
23148   if ! $pc_field_found; then
23149     cat >conftest.$ac_ext <<_ACEOF
23150 /* confdefs.h.  */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h.  */
23155 #define _GNU_SOURCE 1
23156                     #include <ucontext.h>
23157 int
23158 main ()
23159 {
23160 ucontext_t u; return u.$pc_field == 0;
23161   ;
23162   return 0;
23163 }
23164 _ACEOF
23165 rm -f conftest.$ac_objext
23166 if { (ac_try="$ac_compile"
23167 case "(($ac_try" in
23168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23169   *) ac_try_echo=$ac_try;;
23170 esac
23171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23172   (eval "$ac_compile") 2>conftest.er1
23173   ac_status=$?
23174   grep -v '^ *+' conftest.er1 >conftest.err
23175   rm -f conftest.er1
23176   cat conftest.err >&5
23177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178   (exit $ac_status); } && {
23179          test -z "$ac_c_werror_flag" ||
23180          test ! -s conftest.err
23181        } && test -s conftest.$ac_objext; then
23182
23183 cat >>confdefs.h <<_ACEOF
23184 #define PC_FROM_UCONTEXT $pc_field
23185 _ACEOF
23186
23187                    { echo "$as_me:$LINENO: result: $pc_field" >&5
23188 echo "${ECHO_T}$pc_field" >&6; }
23189                  pc_field_found=true
23190 else
23191   echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194
23195 fi
23196
23197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23198   fi
23199 done
23200 if ! $pc_field_found; then
23201   { echo "$as_me:$LINENO: WARNING: Could not find the PC.  Will not output failed addresses..." >&5
23202 echo "$as_me: WARNING: Could not find the PC.  Will not output failed addresses..." >&2;}
23203 fi
23204
23205 # These are what's needed by logging.h.in and raw_logging.h.in
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222 # Write generated configuration file
23223 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"
23224
23225 cat >confcache <<\_ACEOF
23226 # This file is a shell script that caches the results of configure
23227 # tests run on this system so they can be shared between configure
23228 # scripts and configure runs, see configure's option --config-cache.
23229 # It is not useful on other systems.  If it contains results you don't
23230 # want to keep, you may remove or edit it.
23231 #
23232 # config.status only pays attention to the cache file if you give it
23233 # the --recheck option to rerun configure.
23234 #
23235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23237 # following values.
23238
23239 _ACEOF
23240
23241 # The following way of writing the cache mishandles newlines in values,
23242 # but we know of no workaround that is simple, portable, and efficient.
23243 # So, we kill variables containing newlines.
23244 # Ultrix sh set writes to stderr and can't be redirected directly,
23245 # and sets the high bit in the cache file unless we assign to the vars.
23246 (
23247   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23248     eval ac_val=\$$ac_var
23249     case $ac_val in #(
23250     *${as_nl}*)
23251       case $ac_var in #(
23252       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23253 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23254       esac
23255       case $ac_var in #(
23256       _ | IFS | as_nl) ;; #(
23257       *) $as_unset $ac_var ;;
23258       esac ;;
23259     esac
23260   done
23261
23262   (set) 2>&1 |
23263     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23264     *${as_nl}ac_space=\ *)
23265       # `set' does not quote correctly, so add quotes (double-quote
23266       # substitution turns \\\\ into \\, and sed turns \\ into \).
23267       sed -n \
23268         "s/'/'\\\\''/g;
23269           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23270       ;; #(
23271     *)
23272       # `set' quotes correctly as required by POSIX, so do not add quotes.
23273       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23274       ;;
23275     esac |
23276     sort
23277 ) |
23278   sed '
23279      /^ac_cv_env_/b end
23280      t clear
23281      :clear
23282      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23283      t end
23284      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23285      :end' >>confcache
23286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23287   if test -w "$cache_file"; then
23288     test "x$cache_file" != "x/dev/null" &&
23289       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23290 echo "$as_me: updating cache $cache_file" >&6;}
23291     cat confcache >$cache_file
23292   else
23293     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23294 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23295   fi
23296 fi
23297 rm -f confcache
23298
23299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23300 # Let make expand exec_prefix.
23301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23302
23303 DEFS=-DHAVE_CONFIG_H
23304
23305 ac_libobjs=
23306 ac_ltlibobjs=
23307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23308   # 1. Remove the extension, and $U if already installed.
23309   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23310   ac_i=`echo "$ac_i" | sed "$ac_script"`
23311   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23312   #    will be set to the directory where LIBOBJS objects are built.
23313   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23314   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23315 done
23316 LIBOBJS=$ac_libobjs
23317
23318 LTLIBOBJS=$ac_ltlibobjs
23319
23320
23321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23322   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23323 Usually this means the macro was only invoked conditionally." >&5
23324 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23325 Usually this means the macro was only invoked conditionally." >&2;}
23326    { (exit 1); exit 1; }; }
23327 fi
23328 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23329   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23330 Usually this means the macro was only invoked conditionally." >&5
23331 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23332 Usually this means the macro was only invoked conditionally." >&2;}
23333    { (exit 1); exit 1; }; }
23334 fi
23335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23336   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23337 Usually this means the macro was only invoked conditionally." >&5
23338 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23339 Usually this means the macro was only invoked conditionally." >&2;}
23340    { (exit 1); exit 1; }; }
23341 fi
23342 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
23343   { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
23344 Usually this means the macro was only invoked conditionally." >&5
23345 echo "$as_me: error: conditional \"GCC\" was never defined.
23346 Usually this means the macro was only invoked conditionally." >&2;}
23347    { (exit 1); exit 1; }; }
23348 fi
23349 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
23350   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
23351 Usually this means the macro was only invoked conditionally." >&5
23352 echo "$as_me: error: conditional \"ENABLE_FRAME_POINTERS\" was never defined.
23353 Usually this means the macro was only invoked conditionally." >&2;}
23354    { (exit 1); exit 1; }; }
23355 fi
23356 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
23357   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
23358 Usually this means the macro was only invoked conditionally." >&5
23359 echo "$as_me: error: conditional \"X86_64\" was never defined.
23360 Usually this means the macro was only invoked conditionally." >&2;}
23361    { (exit 1); exit 1; }; }
23362 fi
23363
23364 : ${CONFIG_STATUS=./config.status}
23365 ac_clean_files_save=$ac_clean_files
23366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23369 cat >$CONFIG_STATUS <<_ACEOF
23370 #! $SHELL
23371 # Generated by $as_me.
23372 # Run this file to recreate the current configuration.
23373 # Compiler output produced by configure, useful for debugging
23374 # configure, is in config.log if it exists.
23375
23376 debug=false
23377 ac_cs_recheck=false
23378 ac_cs_silent=false
23379 SHELL=\${CONFIG_SHELL-$SHELL}
23380 _ACEOF
23381
23382 cat >>$CONFIG_STATUS <<\_ACEOF
23383 ## --------------------- ##
23384 ## M4sh Initialization.  ##
23385 ## --------------------- ##
23386
23387 # Be more Bourne compatible
23388 DUALCASE=1; export DUALCASE # for MKS sh
23389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23390   emulate sh
23391   NULLCMD=:
23392   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23393   # is contrary to our usage.  Disable this feature.
23394   alias -g '${1+"$@"}'='"$@"'
23395   setopt NO_GLOB_SUBST
23396 else
23397   case `(set -o) 2>/dev/null` in
23398   *posix*) set -o posix ;;
23399 esac
23400
23401 fi
23402
23403
23404
23405
23406 # PATH needs CR
23407 # Avoid depending upon Character Ranges.
23408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23411 as_cr_digits='0123456789'
23412 as_cr_alnum=$as_cr_Letters$as_cr_digits
23413
23414 # The user is always right.
23415 if test "${PATH_SEPARATOR+set}" != set; then
23416   echo "#! /bin/sh" >conf$$.sh
23417   echo  "exit 0"   >>conf$$.sh
23418   chmod +x conf$$.sh
23419   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23420     PATH_SEPARATOR=';'
23421   else
23422     PATH_SEPARATOR=:
23423   fi
23424   rm -f conf$$.sh
23425 fi
23426
23427 # Support unset when possible.
23428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23429   as_unset=unset
23430 else
23431   as_unset=false
23432 fi
23433
23434
23435 # IFS
23436 # We need space, tab and new line, in precisely that order.  Quoting is
23437 # there to prevent editors from complaining about space-tab.
23438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23439 # splitting by setting IFS to empty value.)
23440 as_nl='
23441 '
23442 IFS=" ""        $as_nl"
23443
23444 # Find who we are.  Look in the path if we contain no directory separator.
23445 case $0 in
23446   *[\\/]* ) as_myself=$0 ;;
23447   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23448 for as_dir in $PATH
23449 do
23450   IFS=$as_save_IFS
23451   test -z "$as_dir" && as_dir=.
23452   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23453 done
23454 IFS=$as_save_IFS
23455
23456      ;;
23457 esac
23458 # We did not find ourselves, most probably we were run as `sh COMMAND'
23459 # in which case we are not to be found in the path.
23460 if test "x$as_myself" = x; then
23461   as_myself=$0
23462 fi
23463 if test ! -f "$as_myself"; then
23464   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23465   { (exit 1); exit 1; }
23466 fi
23467
23468 # Work around bugs in pre-3.0 UWIN ksh.
23469 for as_var in ENV MAIL MAILPATH
23470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23471 done
23472 PS1='$ '
23473 PS2='> '
23474 PS4='+ '
23475
23476 # NLS nuisances.
23477 for as_var in \
23478   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23479   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23480   LC_TELEPHONE LC_TIME
23481 do
23482   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23483     eval $as_var=C; export $as_var
23484   else
23485     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23486   fi
23487 done
23488
23489 # Required to use basename.
23490 if expr a : '\(a\)' >/dev/null 2>&1 &&
23491    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23492   as_expr=expr
23493 else
23494   as_expr=false
23495 fi
23496
23497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23498   as_basename=basename
23499 else
23500   as_basename=false
23501 fi
23502
23503
23504 # Name of the executable.
23505 as_me=`$as_basename -- "$0" ||
23506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23507          X"$0" : 'X\(//\)$' \| \
23508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23509 echo X/"$0" |
23510     sed '/^.*\/\([^/][^/]*\)\/*$/{
23511             s//\1/
23512             q
23513           }
23514           /^X\/\(\/\/\)$/{
23515             s//\1/
23516             q
23517           }
23518           /^X\/\(\/\).*/{
23519             s//\1/
23520             q
23521           }
23522           s/.*/./; q'`
23523
23524 # CDPATH.
23525 $as_unset CDPATH
23526
23527
23528
23529   as_lineno_1=$LINENO
23530   as_lineno_2=$LINENO
23531   test "x$as_lineno_1" != "x$as_lineno_2" &&
23532   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23533
23534   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23535   # uniformly replaced by the line number.  The first 'sed' inserts a
23536   # line-number line after each line using $LINENO; the second 'sed'
23537   # does the real work.  The second script uses 'N' to pair each
23538   # line-number line with the line containing $LINENO, and appends
23539   # trailing '-' during substitution so that $LINENO is not a special
23540   # case at line end.
23541   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23542   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23543   # E. McMahon (1931-1989) for sed's syntax.  :-)
23544   sed -n '
23545     p
23546     /[$]LINENO/=
23547   ' <$as_myself |
23548     sed '
23549       s/[$]LINENO.*/&-/
23550       t lineno
23551       b
23552       :lineno
23553       N
23554       :loop
23555       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23556       t loop
23557       s/-\n.*//
23558     ' >$as_me.lineno &&
23559   chmod +x "$as_me.lineno" ||
23560     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23561    { (exit 1); exit 1; }; }
23562
23563   # Don't try to exec as it changes $[0], causing all sort of problems
23564   # (the dirname of $[0] is not the place where we might find the
23565   # original and so on.  Autoconf is especially sensitive to this).
23566   . "./$as_me.lineno"
23567   # Exit status is that of the last command.
23568   exit
23569 }
23570
23571
23572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23573   as_dirname=dirname
23574 else
23575   as_dirname=false
23576 fi
23577
23578 ECHO_C= ECHO_N= ECHO_T=
23579 case `echo -n x` in
23580 -n*)
23581   case `echo 'x\c'` in
23582   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23583   *)   ECHO_C='\c';;
23584   esac;;
23585 *)
23586   ECHO_N='-n';;
23587 esac
23588
23589 if expr a : '\(a\)' >/dev/null 2>&1 &&
23590    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23591   as_expr=expr
23592 else
23593   as_expr=false
23594 fi
23595
23596 rm -f conf$$ conf$$.exe conf$$.file
23597 if test -d conf$$.dir; then
23598   rm -f conf$$.dir/conf$$.file
23599 else
23600   rm -f conf$$.dir
23601   mkdir conf$$.dir
23602 fi
23603 echo >conf$$.file
23604 if ln -s conf$$.file conf$$ 2>/dev/null; then
23605   as_ln_s='ln -s'
23606   # ... but there are two gotchas:
23607   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23608   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23609   # In both cases, we have to default to `cp -p'.
23610   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23611     as_ln_s='cp -p'
23612 elif ln conf$$.file conf$$ 2>/dev/null; then
23613   as_ln_s=ln
23614 else
23615   as_ln_s='cp -p'
23616 fi
23617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23618 rmdir conf$$.dir 2>/dev/null
23619
23620 if mkdir -p . 2>/dev/null; then
23621   as_mkdir_p=:
23622 else
23623   test -d ./-p && rmdir ./-p
23624   as_mkdir_p=false
23625 fi
23626
23627 if test -x / >/dev/null 2>&1; then
23628   as_test_x='test -x'
23629 else
23630   if ls -dL / >/dev/null 2>&1; then
23631     as_ls_L_option=L
23632   else
23633     as_ls_L_option=
23634   fi
23635   as_test_x='
23636     eval sh -c '\''
23637       if test -d "$1"; then
23638         test -d "$1/.";
23639       else
23640         case $1 in
23641         -*)set "./$1";;
23642         esac;
23643         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23644         ???[sx]*):;;*)false;;esac;fi
23645     '\'' sh
23646   '
23647 fi
23648 as_executable_p=$as_test_x
23649
23650 # Sed expression to map a string onto a valid CPP name.
23651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23652
23653 # Sed expression to map a string onto a valid variable name.
23654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23655
23656
23657 exec 6>&1
23658
23659 # Save the log message, to keep $[0] and so on meaningful, and to
23660 # report actual input values of CONFIG_FILES etc. instead of their
23661 # values after options handling.
23662 ac_log="
23663 This file was extended by glog $as_me 0.1.1, which was
23664 generated by GNU Autoconf 2.61.  Invocation command line was
23665
23666   CONFIG_FILES    = $CONFIG_FILES
23667   CONFIG_HEADERS  = $CONFIG_HEADERS
23668   CONFIG_LINKS    = $CONFIG_LINKS
23669   CONFIG_COMMANDS = $CONFIG_COMMANDS
23670   $ $0 $@
23671
23672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23673 "
23674
23675 _ACEOF
23676
23677 cat >>$CONFIG_STATUS <<_ACEOF
23678 # Files that config.status was made for.
23679 config_files="$ac_config_files"
23680 config_headers="$ac_config_headers"
23681 config_commands="$ac_config_commands"
23682
23683 _ACEOF
23684
23685 cat >>$CONFIG_STATUS <<\_ACEOF
23686 ac_cs_usage="\
23687 \`$as_me' instantiates files from templates according to the
23688 current configuration.
23689
23690 Usage: $0 [OPTIONS] [FILE]...
23691
23692   -h, --help       print this help, then exit
23693   -V, --version    print version number and configuration settings, then exit
23694   -q, --quiet      do not print progress messages
23695   -d, --debug      don't remove temporary files
23696       --recheck    update $as_me by reconfiguring in the same conditions
23697   --file=FILE[:TEMPLATE]
23698                    instantiate the configuration file FILE
23699   --header=FILE[:TEMPLATE]
23700                    instantiate the configuration header FILE
23701
23702 Configuration files:
23703 $config_files
23704
23705 Configuration headers:
23706 $config_headers
23707
23708 Configuration commands:
23709 $config_commands
23710
23711 Report bugs to <bug-autoconf@gnu.org>."
23712
23713 _ACEOF
23714 cat >>$CONFIG_STATUS <<_ACEOF
23715 ac_cs_version="\\
23716 glog config.status 0.1.1
23717 configured by $0, generated by GNU Autoconf 2.61,
23718   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23719
23720 Copyright (C) 2006 Free Software Foundation, Inc.
23721 This config.status script is free software; the Free Software Foundation
23722 gives unlimited permission to copy, distribute and modify it."
23723
23724 ac_pwd='$ac_pwd'
23725 srcdir='$srcdir'
23726 INSTALL='$INSTALL'
23727 MKDIR_P='$MKDIR_P'
23728 _ACEOF
23729
23730 cat >>$CONFIG_STATUS <<\_ACEOF
23731 # If no file are specified by the user, then we need to provide default
23732 # value.  By we need to know if files were specified by the user.
23733 ac_need_defaults=:
23734 while test $# != 0
23735 do
23736   case $1 in
23737   --*=*)
23738     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23739     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23740     ac_shift=:
23741     ;;
23742   *)
23743     ac_option=$1
23744     ac_optarg=$2
23745     ac_shift=shift
23746     ;;
23747   esac
23748
23749   case $ac_option in
23750   # Handling of the options.
23751   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23752     ac_cs_recheck=: ;;
23753   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23754     echo "$ac_cs_version"; exit ;;
23755   --debug | --debu | --deb | --de | --d | -d )
23756     debug=: ;;
23757   --file | --fil | --fi | --f )
23758     $ac_shift
23759     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23760     ac_need_defaults=false;;
23761   --header | --heade | --head | --hea )
23762     $ac_shift
23763     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23764     ac_need_defaults=false;;
23765   --he | --h)
23766     # Conflict between --help and --header
23767     { echo "$as_me: error: ambiguous option: $1
23768 Try \`$0 --help' for more information." >&2
23769    { (exit 1); exit 1; }; };;
23770   --help | --hel | -h )
23771     echo "$ac_cs_usage"; exit ;;
23772   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23773   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23774     ac_cs_silent=: ;;
23775
23776   # This is an error.
23777   -*) { echo "$as_me: error: unrecognized option: $1
23778 Try \`$0 --help' for more information." >&2
23779    { (exit 1); exit 1; }; } ;;
23780
23781   *) ac_config_targets="$ac_config_targets $1"
23782      ac_need_defaults=false ;;
23783
23784   esac
23785   shift
23786 done
23787
23788 ac_configure_extra_args=
23789
23790 if $ac_cs_silent; then
23791   exec 6>/dev/null
23792   ac_configure_extra_args="$ac_configure_extra_args --silent"
23793 fi
23794
23795 _ACEOF
23796 cat >>$CONFIG_STATUS <<_ACEOF
23797 if \$ac_cs_recheck; then
23798   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23799   CONFIG_SHELL=$SHELL
23800   export CONFIG_SHELL
23801   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23802 fi
23803
23804 _ACEOF
23805 cat >>$CONFIG_STATUS <<\_ACEOF
23806 exec 5>>config.log
23807 {
23808   echo
23809   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23810 ## Running $as_me. ##
23811 _ASBOX
23812   echo "$ac_log"
23813 } >&5
23814
23815 _ACEOF
23816 cat >>$CONFIG_STATUS <<_ACEOF
23817 #
23818 # INIT-COMMANDS
23819 #
23820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23821
23822 _ACEOF
23823
23824 cat >>$CONFIG_STATUS <<\_ACEOF
23825
23826 # Handling of arguments.
23827 for ac_config_target in $ac_config_targets
23828 do
23829   case $ac_config_target in
23830     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
23831     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23832     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23833     "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
23834     "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
23835     "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
23836     "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
23837
23838   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23839 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23840    { (exit 1); exit 1; }; };;
23841   esac
23842 done
23843
23844
23845 # If the user did not use the arguments to specify the items to instantiate,
23846 # then the envvar interface is used.  Set only those that are not.
23847 # We use the long form for the default assignment because of an extremely
23848 # bizarre bug on SunOS 4.1.3.
23849 if $ac_need_defaults; then
23850   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23851   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23852   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23853 fi
23854
23855 # Have a temporary directory for convenience.  Make it in the build tree
23856 # simply because there is no reason against having it here, and in addition,
23857 # creating and moving files from /tmp can sometimes cause problems.
23858 # Hook for its removal unless debugging.
23859 # Note that there is a small window in which the directory will not be cleaned:
23860 # after its creation but before its name has been assigned to `$tmp'.
23861 $debug ||
23862 {
23863   tmp=
23864   trap 'exit_status=$?
23865   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23866 ' 0
23867   trap '{ (exit 1); exit 1; }' 1 2 13 15
23868 }
23869 # Create a (secure) tmp directory for tmp files.
23870
23871 {
23872   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23873   test -n "$tmp" && test -d "$tmp"
23874 }  ||
23875 {
23876   tmp=./conf$$-$RANDOM
23877   (umask 077 && mkdir "$tmp")
23878 } ||
23879 {
23880    echo "$me: cannot create a temporary directory in ." >&2
23881    { (exit 1); exit 1; }
23882 }
23883
23884 #
23885 # Set up the sed scripts for CONFIG_FILES section.
23886 #
23887
23888 # No need to generate the scripts if there are no CONFIG_FILES.
23889 # This happens for instance when ./config.status config.h
23890 if test -n "$CONFIG_FILES"; then
23891
23892 _ACEOF
23893
23894
23895
23896 ac_delim='%!_!# '
23897 for ac_last_try in false false false false false :; do
23898   cat >conf$$subs.sed <<_ACEOF
23899 SHELL!$SHELL$ac_delim
23900 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23901 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23902 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23903 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23904 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23905 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23906 exec_prefix!$exec_prefix$ac_delim
23907 prefix!$prefix$ac_delim
23908 program_transform_name!$program_transform_name$ac_delim
23909 bindir!$bindir$ac_delim
23910 sbindir!$sbindir$ac_delim
23911 libexecdir!$libexecdir$ac_delim
23912 datarootdir!$datarootdir$ac_delim
23913 datadir!$datadir$ac_delim
23914 sysconfdir!$sysconfdir$ac_delim
23915 sharedstatedir!$sharedstatedir$ac_delim
23916 localstatedir!$localstatedir$ac_delim
23917 includedir!$includedir$ac_delim
23918 oldincludedir!$oldincludedir$ac_delim
23919 docdir!$docdir$ac_delim
23920 infodir!$infodir$ac_delim
23921 htmldir!$htmldir$ac_delim
23922 dvidir!$dvidir$ac_delim
23923 pdfdir!$pdfdir$ac_delim
23924 psdir!$psdir$ac_delim
23925 libdir!$libdir$ac_delim
23926 localedir!$localedir$ac_delim
23927 mandir!$mandir$ac_delim
23928 DEFS!$DEFS$ac_delim
23929 ECHO_C!$ECHO_C$ac_delim
23930 ECHO_N!$ECHO_N$ac_delim
23931 ECHO_T!$ECHO_T$ac_delim
23932 LIBS!$LIBS$ac_delim
23933 build_alias!$build_alias$ac_delim
23934 host_alias!$host_alias$ac_delim
23935 target_alias!$target_alias$ac_delim
23936 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23937 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23938 INSTALL_DATA!$INSTALL_DATA$ac_delim
23939 am__isrc!$am__isrc$ac_delim
23940 CYGPATH_W!$CYGPATH_W$ac_delim
23941 PACKAGE!$PACKAGE$ac_delim
23942 VERSION!$VERSION$ac_delim
23943 ACLOCAL!$ACLOCAL$ac_delim
23944 AUTOCONF!$AUTOCONF$ac_delim
23945 AUTOMAKE!$AUTOMAKE$ac_delim
23946 AUTOHEADER!$AUTOHEADER$ac_delim
23947 MAKEINFO!$MAKEINFO$ac_delim
23948 install_sh!$install_sh$ac_delim
23949 STRIP!$STRIP$ac_delim
23950 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23951 mkdir_p!$mkdir_p$ac_delim
23952 AWK!$AWK$ac_delim
23953 SET_MAKE!$SET_MAKE$ac_delim
23954 am__leading_dot!$am__leading_dot$ac_delim
23955 AMTAR!$AMTAR$ac_delim
23956 am__tar!$am__tar$ac_delim
23957 am__untar!$am__untar$ac_delim
23958 CC!$CC$ac_delim
23959 CFLAGS!$CFLAGS$ac_delim
23960 LDFLAGS!$LDFLAGS$ac_delim
23961 CPPFLAGS!$CPPFLAGS$ac_delim
23962 ac_ct_CC!$ac_ct_CC$ac_delim
23963 EXEEXT!$EXEEXT$ac_delim
23964 OBJEXT!$OBJEXT$ac_delim
23965 DEPDIR!$DEPDIR$ac_delim
23966 am__include!$am__include$ac_delim
23967 am__quote!$am__quote$ac_delim
23968 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23969 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23970 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23971 CCDEPMODE!$CCDEPMODE$ac_delim
23972 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23973 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23974 CPP!$CPP$ac_delim
23975 CXX!$CXX$ac_delim
23976 CXXFLAGS!$CXXFLAGS$ac_delim
23977 ac_ct_CXX!$ac_ct_CXX$ac_delim
23978 CXXDEPMODE!$CXXDEPMODE$ac_delim
23979 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23980 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23981 GCC_TRUE!$GCC_TRUE$ac_delim
23982 GCC_FALSE!$GCC_FALSE$ac_delim
23983 build!$build$ac_delim
23984 build_cpu!$build_cpu$ac_delim
23985 build_vendor!$build_vendor$ac_delim
23986 build_os!$build_os$ac_delim
23987 host!$host$ac_delim
23988 host_cpu!$host_cpu$ac_delim
23989 host_vendor!$host_vendor$ac_delim
23990 host_os!$host_os$ac_delim
23991 SED!$SED$ac_delim
23992 GREP!$GREP$ac_delim
23993 EGREP!$EGREP$ac_delim
23994 LN_S!$LN_S$ac_delim
23995 ECHO!$ECHO$ac_delim
23996 _ACEOF
23997
23998   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23999     break
24000   elif $ac_last_try; then
24001     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24002 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24003    { (exit 1); exit 1; }; }
24004   else
24005     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24006   fi
24007 done
24008
24009 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24010 if test -n "$ac_eof"; then
24011   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24012   ac_eof=`expr $ac_eof + 1`
24013 fi
24014
24015 cat >>$CONFIG_STATUS <<_ACEOF
24016 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24018 _ACEOF
24019 sed '
24020 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24021 s/^/s,@/; s/!/@,|#_!!_#|/
24022 :n
24023 t n
24024 s/'"$ac_delim"'$/,g/; t
24025 s/$/\\/; p
24026 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24027 ' >>$CONFIG_STATUS <conf$$subs.sed
24028 rm -f conf$$subs.sed
24029 cat >>$CONFIG_STATUS <<_ACEOF
24030 CEOF$ac_eof
24031 _ACEOF
24032
24033
24034 ac_delim='%!_!# '
24035 for ac_last_try in false false false false false :; do
24036   cat >conf$$subs.sed <<_ACEOF
24037 AR!$AR$ac_delim
24038 RANLIB!$RANLIB$ac_delim
24039 DSYMUTIL!$DSYMUTIL$ac_delim
24040 NMEDIT!$NMEDIT$ac_delim
24041 CXXCPP!$CXXCPP$ac_delim
24042 F77!$F77$ac_delim
24043 FFLAGS!$FFLAGS$ac_delim
24044 ac_ct_F77!$ac_ct_F77$ac_delim
24045 LIBTOOL!$LIBTOOL$ac_delim
24046 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
24047 ENABLE_FRAME_POINTERS_TRUE!$ENABLE_FRAME_POINTERS_TRUE$ac_delim
24048 ENABLE_FRAME_POINTERS_FALSE!$ENABLE_FRAME_POINTERS_FALSE$ac_delim
24049 X86_64_TRUE!$X86_64_TRUE$ac_delim
24050 X86_64_FALSE!$X86_64_FALSE$ac_delim
24051 acx_pthread_config!$acx_pthread_config$ac_delim
24052 PTHREAD_CC!$PTHREAD_CC$ac_delim
24053 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
24054 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
24055 ac_google_start_namespace!$ac_google_start_namespace$ac_delim
24056 ac_google_end_namespace!$ac_google_end_namespace$ac_delim
24057 ac_google_namespace!$ac_google_namespace$ac_delim
24058 ac_cv_cxx_using_operator!$ac_cv_cxx_using_operator$ac_delim
24059 ac_cv___attribute___noreturn!$ac_cv___attribute___noreturn$ac_delim
24060 ac_cv___attribute___printf_4_5!$ac_cv___attribute___printf_4_5$ac_delim
24061 ac_cv_have___builtin_expect!$ac_cv_have___builtin_expect$ac_delim
24062 ac_cv_have_stdint_h!$ac_cv_have_stdint_h$ac_delim
24063 ac_cv_have_systypes_h!$ac_cv_have_systypes_h$ac_delim
24064 ac_cv_have_inttypes_h!$ac_cv_have_inttypes_h$ac_delim
24065 ac_cv_have_uint16_t!$ac_cv_have_uint16_t$ac_delim
24066 ac_cv_have_u_int16_t!$ac_cv_have_u_int16_t$ac_delim
24067 ac_cv_have___uint16!$ac_cv_have___uint16$ac_delim
24068 ac_cv_have_libgflags!$ac_cv_have_libgflags$ac_delim
24069 GFLAGS_LIBS!$GFLAGS_LIBS$ac_delim
24070 LIBOBJS!$LIBOBJS$ac_delim
24071 LTLIBOBJS!$LTLIBOBJS$ac_delim
24072 _ACEOF
24073
24074   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 35; then
24075     break
24076   elif $ac_last_try; then
24077     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24078 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24079    { (exit 1); exit 1; }; }
24080   else
24081     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24082   fi
24083 done
24084
24085 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24086 if test -n "$ac_eof"; then
24087   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24088   ac_eof=`expr $ac_eof + 1`
24089 fi
24090
24091 cat >>$CONFIG_STATUS <<_ACEOF
24092 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24094 _ACEOF
24095 sed '
24096 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24097 s/^/s,@/; s/!/@,|#_!!_#|/
24098 :n
24099 t n
24100 s/'"$ac_delim"'$/,g/; t
24101 s/$/\\/; p
24102 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24103 ' >>$CONFIG_STATUS <conf$$subs.sed
24104 rm -f conf$$subs.sed
24105 cat >>$CONFIG_STATUS <<_ACEOF
24106 :end
24107 s/|#_!!_#|//g
24108 CEOF$ac_eof
24109 _ACEOF
24110
24111
24112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24114 # trailing colons and then remove the whole line if VPATH becomes empty
24115 # (actually we leave an empty line to preserve line numbers).
24116 if test "x$srcdir" = x.; then
24117   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24118 s/:*\$(srcdir):*/:/
24119 s/:*\${srcdir}:*/:/
24120 s/:*@srcdir@:*/:/
24121 s/^\([^=]*=[     ]*\):*/\1/
24122 s/:*$//
24123 s/^[^=]*=[       ]*$//
24124 }'
24125 fi
24126
24127 cat >>$CONFIG_STATUS <<\_ACEOF
24128 fi # test -n "$CONFIG_FILES"
24129
24130
24131 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24132 do
24133   case $ac_tag in
24134   :[FHLC]) ac_mode=$ac_tag; continue;;
24135   esac
24136   case $ac_mode$ac_tag in
24137   :[FHL]*:*);;
24138   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24139 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24140    { (exit 1); exit 1; }; };;
24141   :[FH]-) ac_tag=-:-;;
24142   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24143   esac
24144   ac_save_IFS=$IFS
24145   IFS=:
24146   set x $ac_tag
24147   IFS=$ac_save_IFS
24148   shift
24149   ac_file=$1
24150   shift
24151
24152   case $ac_mode in
24153   :L) ac_source=$1;;
24154   :[FH])
24155     ac_file_inputs=
24156     for ac_f
24157     do
24158       case $ac_f in
24159       -) ac_f="$tmp/stdin";;
24160       *) # Look for the file first in the build tree, then in the source tree
24161          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24162          # because $ac_f cannot contain `:'.
24163          test -f "$ac_f" ||
24164            case $ac_f in
24165            [\\/$]*) false;;
24166            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24167            esac ||
24168            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24169 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24170    { (exit 1); exit 1; }; };;
24171       esac
24172       ac_file_inputs="$ac_file_inputs $ac_f"
24173     done
24174
24175     # Let's still pretend it is `configure' which instantiates (i.e., don't
24176     # use $as_me), people would be surprised to read:
24177     #    /* config.h.  Generated by config.status.  */
24178     configure_input="Generated from "`IFS=:
24179           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24180     if test x"$ac_file" != x-; then
24181       configure_input="$ac_file.  $configure_input"
24182       { echo "$as_me:$LINENO: creating $ac_file" >&5
24183 echo "$as_me: creating $ac_file" >&6;}
24184     fi
24185
24186     case $ac_tag in
24187     *:-:* | *:-) cat >"$tmp/stdin";;
24188     esac
24189     ;;
24190   esac
24191
24192   ac_dir=`$as_dirname -- "$ac_file" ||
24193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24194          X"$ac_file" : 'X\(//\)[^/]' \| \
24195          X"$ac_file" : 'X\(//\)$' \| \
24196          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24197 echo X"$ac_file" |
24198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24199             s//\1/
24200             q
24201           }
24202           /^X\(\/\/\)[^/].*/{
24203             s//\1/
24204             q
24205           }
24206           /^X\(\/\/\)$/{
24207             s//\1/
24208             q
24209           }
24210           /^X\(\/\).*/{
24211             s//\1/
24212             q
24213           }
24214           s/.*/./; q'`
24215   { as_dir="$ac_dir"
24216   case $as_dir in #(
24217   -*) as_dir=./$as_dir;;
24218   esac
24219   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24220     as_dirs=
24221     while :; do
24222       case $as_dir in #(
24223       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24224       *) as_qdir=$as_dir;;
24225       esac
24226       as_dirs="'$as_qdir' $as_dirs"
24227       as_dir=`$as_dirname -- "$as_dir" ||
24228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24229          X"$as_dir" : 'X\(//\)[^/]' \| \
24230          X"$as_dir" : 'X\(//\)$' \| \
24231          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24232 echo X"$as_dir" |
24233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24234             s//\1/
24235             q
24236           }
24237           /^X\(\/\/\)[^/].*/{
24238             s//\1/
24239             q
24240           }
24241           /^X\(\/\/\)$/{
24242             s//\1/
24243             q
24244           }
24245           /^X\(\/\).*/{
24246             s//\1/
24247             q
24248           }
24249           s/.*/./; q'`
24250       test -d "$as_dir" && break
24251     done
24252     test -z "$as_dirs" || eval "mkdir $as_dirs"
24253   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24254 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24255    { (exit 1); exit 1; }; }; }
24256   ac_builddir=.
24257
24258 case "$ac_dir" in
24259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24260 *)
24261   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24262   # A ".." for each directory in $ac_dir_suffix.
24263   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24264   case $ac_top_builddir_sub in
24265   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24266   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24267   esac ;;
24268 esac
24269 ac_abs_top_builddir=$ac_pwd
24270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24271 # for backward compatibility:
24272 ac_top_builddir=$ac_top_build_prefix
24273
24274 case $srcdir in
24275   .)  # We are building in place.
24276     ac_srcdir=.
24277     ac_top_srcdir=$ac_top_builddir_sub
24278     ac_abs_top_srcdir=$ac_pwd ;;
24279   [\\/]* | ?:[\\/]* )  # Absolute name.
24280     ac_srcdir=$srcdir$ac_dir_suffix;
24281     ac_top_srcdir=$srcdir
24282     ac_abs_top_srcdir=$srcdir ;;
24283   *) # Relative name.
24284     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24285     ac_top_srcdir=$ac_top_build_prefix$srcdir
24286     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24287 esac
24288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24289
24290
24291   case $ac_mode in
24292   :F)
24293   #
24294   # CONFIG_FILE
24295   #
24296
24297   case $INSTALL in
24298   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24299   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24300   esac
24301   ac_MKDIR_P=$MKDIR_P
24302   case $MKDIR_P in
24303   [\\/$]* | ?:[\\/]* ) ;;
24304   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24305   esac
24306 _ACEOF
24307
24308 cat >>$CONFIG_STATUS <<\_ACEOF
24309 # If the template does not know about datarootdir, expand it.
24310 # FIXME: This hack should be removed a few years after 2.60.
24311 ac_datarootdir_hack=; ac_datarootdir_seen=
24312
24313 case `sed -n '/datarootdir/ {
24314   p
24315   q
24316 }
24317 /@datadir@/p
24318 /@docdir@/p
24319 /@infodir@/p
24320 /@localedir@/p
24321 /@mandir@/p
24322 ' $ac_file_inputs` in
24323 *datarootdir*) ac_datarootdir_seen=yes;;
24324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24325   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24326 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24327 _ACEOF
24328 cat >>$CONFIG_STATUS <<_ACEOF
24329   ac_datarootdir_hack='
24330   s&@datadir@&$datadir&g
24331   s&@docdir@&$docdir&g
24332   s&@infodir@&$infodir&g
24333   s&@localedir@&$localedir&g
24334   s&@mandir@&$mandir&g
24335     s&\\\${datarootdir}&$datarootdir&g' ;;
24336 esac
24337 _ACEOF
24338
24339 # Neutralize VPATH when `$srcdir' = `.'.
24340 # Shell code in configure.ac might set extrasub.
24341 # FIXME: do we really want to maintain this feature?
24342 cat >>$CONFIG_STATUS <<_ACEOF
24343   sed "$ac_vpsub
24344 $extrasub
24345 _ACEOF
24346 cat >>$CONFIG_STATUS <<\_ACEOF
24347 :t
24348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24349 s&@configure_input@&$configure_input&;t t
24350 s&@top_builddir@&$ac_top_builddir_sub&;t t
24351 s&@srcdir@&$ac_srcdir&;t t
24352 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24353 s&@top_srcdir@&$ac_top_srcdir&;t t
24354 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24355 s&@builddir@&$ac_builddir&;t t
24356 s&@abs_builddir@&$ac_abs_builddir&;t t
24357 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24358 s&@INSTALL@&$ac_INSTALL&;t t
24359 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24360 $ac_datarootdir_hack
24361 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24362
24363 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24364   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24365   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24366   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24367 which seems to be undefined.  Please make sure it is defined." >&5
24368 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24369 which seems to be undefined.  Please make sure it is defined." >&2;}
24370
24371   rm -f "$tmp/stdin"
24372   case $ac_file in
24373   -) cat "$tmp/out"; rm -f "$tmp/out";;
24374   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24375   esac
24376  ;;
24377   :H)
24378   #
24379   # CONFIG_HEADER
24380   #
24381 _ACEOF
24382
24383 # Transform confdefs.h into a sed script `conftest.defines', that
24384 # substitutes the proper values into config.h.in to produce config.h.
24385 rm -f conftest.defines conftest.tail
24386 # First, append a space to every undef/define line, to ease matching.
24387 echo 's/$/ /' >conftest.defines
24388 # Then, protect against being on the right side of a sed subst, or in
24389 # an unquoted here document, in config.status.  If some macros were
24390 # called several times there might be several #defines for the same
24391 # symbol, which is useless.  But do not sort them, since the last
24392 # AC_DEFINE must be honored.
24393 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24394 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24395 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24396 # PARAMS is the parameter list in the macro definition--in most cases, it's
24397 # just an empty string.
24398 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24399 ac_dB='\\)[      (].*,\\1define\\2'
24400 ac_dC=' '
24401 ac_dD=' ,'
24402
24403 uniq confdefs.h |
24404   sed -n '
24405         t rset
24406         :rset
24407         s/^[     ]*#[    ]*define[       ][      ]*//
24408         t ok
24409         d
24410         :ok
24411         s/[\\&,]/\\&/g
24412         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24413         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24414   ' >>conftest.defines
24415
24416 # Remove the space that was appended to ease matching.
24417 # Then replace #undef with comments.  This is necessary, for
24418 # example, in the case of _POSIX_SOURCE, which is predefined and required
24419 # on some systems where configure will not decide to define it.
24420 # (The regexp can be short, since the line contains either #define or #undef.)
24421 echo 's/ $//
24422 s,^[     #]*u.*,/* & */,' >>conftest.defines
24423
24424 # Break up conftest.defines:
24425 ac_max_sed_lines=50
24426
24427 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24428 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24429 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24430 # et cetera.
24431 ac_in='$ac_file_inputs'
24432 ac_out='"$tmp/out1"'
24433 ac_nxt='"$tmp/out2"'
24434
24435 while :
24436 do
24437   # Write a here document:
24438     cat >>$CONFIG_STATUS <<_ACEOF
24439     # First, check the format of the line:
24440     cat >"\$tmp/defines.sed" <<\\CEOF
24441 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24442 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24443 b
24444 :def
24445 _ACEOF
24446   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24447   echo 'CEOF
24448     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24449   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24450   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24451   grep . conftest.tail >/dev/null || break
24452   rm -f conftest.defines
24453   mv conftest.tail conftest.defines
24454 done
24455 rm -f conftest.defines conftest.tail
24456
24457 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24458 cat >>$CONFIG_STATUS <<\_ACEOF
24459   if test x"$ac_file" != x-; then
24460     echo "/* $configure_input  */" >"$tmp/config.h"
24461     cat "$ac_result" >>"$tmp/config.h"
24462     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24463       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24464 echo "$as_me: $ac_file is unchanged" >&6;}
24465     else
24466       rm -f $ac_file
24467       mv "$tmp/config.h" $ac_file
24468     fi
24469   else
24470     echo "/* $configure_input  */"
24471     cat "$ac_result"
24472   fi
24473   rm -f "$tmp/out12"
24474 # Compute $ac_file's index in $config_headers.
24475 _am_arg=$ac_file
24476 _am_stamp_count=1
24477 for _am_header in $config_headers :; do
24478   case $_am_header in
24479     $_am_arg | $_am_arg:* )
24480       break ;;
24481     * )
24482       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24483   esac
24484 done
24485 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24486 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24487          X"$_am_arg" : 'X\(//\)[^/]' \| \
24488          X"$_am_arg" : 'X\(//\)$' \| \
24489          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24490 echo X"$_am_arg" |
24491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24492             s//\1/
24493             q
24494           }
24495           /^X\(\/\/\)[^/].*/{
24496             s//\1/
24497             q
24498           }
24499           /^X\(\/\/\)$/{
24500             s//\1/
24501             q
24502           }
24503           /^X\(\/\).*/{
24504             s//\1/
24505             q
24506           }
24507           s/.*/./; q'`/stamp-h$_am_stamp_count
24508  ;;
24509
24510   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24511 echo "$as_me: executing $ac_file commands" >&6;}
24512  ;;
24513   esac
24514
24515
24516   case $ac_file$ac_mode in
24517     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24518   # Strip MF so we end up with the name of the file.
24519   mf=`echo "$mf" | sed -e 's/:.*$//'`
24520   # Check whether this is an Automake generated Makefile or not.
24521   # We used to match only the files named `Makefile.in', but
24522   # some people rename them; so instead we look at the file content.
24523   # Grep'ing the first line is not enough: some people post-process
24524   # each Makefile.in and add a new line on top of each file to say so.
24525   # Grep'ing the whole file is not good either: AIX grep has a line
24526   # limit of 2048, but all sed's we know have understand at least 4000.
24527   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24528     dirpart=`$as_dirname -- "$mf" ||
24529 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24530          X"$mf" : 'X\(//\)[^/]' \| \
24531          X"$mf" : 'X\(//\)$' \| \
24532          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24533 echo X"$mf" |
24534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24535             s//\1/
24536             q
24537           }
24538           /^X\(\/\/\)[^/].*/{
24539             s//\1/
24540             q
24541           }
24542           /^X\(\/\/\)$/{
24543             s//\1/
24544             q
24545           }
24546           /^X\(\/\).*/{
24547             s//\1/
24548             q
24549           }
24550           s/.*/./; q'`
24551   else
24552     continue
24553   fi
24554   # Extract the definition of DEPDIR, am__include, and am__quote
24555   # from the Makefile without running `make'.
24556   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24557   test -z "$DEPDIR" && continue
24558   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24559   test -z "am__include" && continue
24560   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24561   # When using ansi2knr, U may be empty or an underscore; expand it
24562   U=`sed -n 's/^U = //p' < "$mf"`
24563   # Find all dependency output files, they are included files with
24564   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24565   # simplest approach to changing $(DEPDIR) to its actual value in the
24566   # expansion.
24567   for file in `sed -n "
24568     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24569        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24570     # Make sure the directory exists.
24571     test -f "$dirpart/$file" && continue
24572     fdir=`$as_dirname -- "$file" ||
24573 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24574          X"$file" : 'X\(//\)[^/]' \| \
24575          X"$file" : 'X\(//\)$' \| \
24576          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24577 echo X"$file" |
24578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24579             s//\1/
24580             q
24581           }
24582           /^X\(\/\/\)[^/].*/{
24583             s//\1/
24584             q
24585           }
24586           /^X\(\/\/\)$/{
24587             s//\1/
24588             q
24589           }
24590           /^X\(\/\).*/{
24591             s//\1/
24592             q
24593           }
24594           s/.*/./; q'`
24595     { as_dir=$dirpart/$fdir
24596   case $as_dir in #(
24597   -*) as_dir=./$as_dir;;
24598   esac
24599   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24600     as_dirs=
24601     while :; do
24602       case $as_dir in #(
24603       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24604       *) as_qdir=$as_dir;;
24605       esac
24606       as_dirs="'$as_qdir' $as_dirs"
24607       as_dir=`$as_dirname -- "$as_dir" ||
24608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24609          X"$as_dir" : 'X\(//\)[^/]' \| \
24610          X"$as_dir" : 'X\(//\)$' \| \
24611          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24612 echo X"$as_dir" |
24613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24614             s//\1/
24615             q
24616           }
24617           /^X\(\/\/\)[^/].*/{
24618             s//\1/
24619             q
24620           }
24621           /^X\(\/\/\)$/{
24622             s//\1/
24623             q
24624           }
24625           /^X\(\/\).*/{
24626             s//\1/
24627             q
24628           }
24629           s/.*/./; q'`
24630       test -d "$as_dir" && break
24631     done
24632     test -z "$as_dirs" || eval "mkdir $as_dirs"
24633   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24634 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24635    { (exit 1); exit 1; }; }; }
24636     # echo "creating $dirpart/$file"
24637     echo '# dummy' > "$dirpart/$file"
24638   done
24639 done
24640  ;;
24641
24642   esac
24643 done # for ac_tag
24644
24645
24646 { (exit 0); exit 0; }
24647 _ACEOF
24648 chmod +x $CONFIG_STATUS
24649 ac_clean_files=$ac_clean_files_save
24650
24651
24652 # configure is writing to config.log, and then calls config.status.
24653 # config.status does its own redirection, appending to config.log.
24654 # Unfortunately, on DOS this fails, as config.log is still kept open
24655 # by configure, so config.status won't be able to write to it; its
24656 # output is simply discarded.  So we exec the FD to /dev/null,
24657 # effectively closing config.log, so it can be properly (re)opened and
24658 # appended to by config.status.  When coming back to configure, we
24659 # need to make the FD available again.
24660 if test "$no_create" != yes; then
24661   ac_cs_success=:
24662   ac_config_status_args=
24663   test "$silent" = yes &&
24664     ac_config_status_args="$ac_config_status_args --quiet"
24665   exec 5>/dev/null
24666   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24667   exec 5>>config.log
24668   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24669   # would make configure fail if this is the last instruction.
24670   $ac_cs_success || { (exit 1); exit 1; }
24671 fi
24672