OSDN Git Service

*** empty log message ***
[chasen-legacy/chasen.git] / autom4te.cache / output.1
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61.
4 @%:@ 
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359     
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIB@&t@OBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="README"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 MAINTAINER_MODE_TRUE
829 MAINTAINER_MODE_FALSE
830 MAINT
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 CXX
848 CXXFLAGS
849 ac_ct_CXX
850 CXXDEPMODE
851 am__fastdepCXX_TRUE
852 am__fastdepCXX_FALSE
853 build
854 build_cpu
855 build_vendor
856 build_os
857 host
858 host_cpu
859 host_vendor
860 host_os
861 GREP
862 EGREP
863 LN_S
864 ECHO
865 AR
866 RANLIB
867 CPP
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873 LEX
874 LEX_OUTPUT_ROOT
875 LEXLIB
876 LTVERSION
877 LIB@&t@OBJS
878 ICONV_CFLAGS
879 RCPATH
880 LTLIBOBJS'
881 ac_subst_files=''
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CC
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CXX
891 CXXFLAGS
892 CCC
893 CPP
894 CXXCPP
895 F77
896 FFLAGS'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
944
945 ac_prev=
946 ac_dashdash=
947 for ac_option
948 do
949   # If the previous option needs an argument, assign it.
950   if test -n "$ac_prev"; then
951     eval $ac_prev=\$ac_option
952     ac_prev=
953     continue
954   fi
955
956   case $ac_option in
957   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958   *)    ac_optarg=yes ;;
959   esac
960
961   # Accept the important Cygnus configure options, so we can diagnose typos.
962
963   case $ac_dashdash$ac_option in
964   --)
965     ac_dashdash=yes ;;
966
967   -bindir | --bindir | --bindi | --bind | --bin | --bi)
968     ac_prev=bindir ;;
969   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970     bindir=$ac_optarg ;;
971
972   -build | --build | --buil | --bui | --bu)
973     ac_prev=build_alias ;;
974   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975     build_alias=$ac_optarg ;;
976
977   -cache-file | --cache-file | --cache-fil | --cache-fi \
978   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979     ac_prev=cache_file ;;
980   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982     cache_file=$ac_optarg ;;
983
984   --config-cache | -C)
985     cache_file=config.cache ;;
986
987   -datadir | --datadir | --datadi | --datad)
988     ac_prev=datadir ;;
989   -datadir=* | --datadir=* | --datadi=* | --datad=*)
990     datadir=$ac_optarg ;;
991
992   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993   | --dataroo | --dataro | --datar)
994     ac_prev=datarootdir ;;
995   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997     datarootdir=$ac_optarg ;;
998
999   -disable-* | --disable-*)
1000     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004    { (exit 1); exit 1; }; }
1005     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006     eval enable_$ac_feature=no ;;
1007
1008   -docdir | --docdir | --docdi | --doc | --do)
1009     ac_prev=docdir ;;
1010   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011     docdir=$ac_optarg ;;
1012
1013   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014     ac_prev=dvidir ;;
1015   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016     dvidir=$ac_optarg ;;
1017
1018   -enable-* | --enable-*)
1019     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023    { (exit 1); exit 1; }; }
1024     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025     eval enable_$ac_feature=\$ac_optarg ;;
1026
1027   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029   | --exec | --exe | --ex)
1030     ac_prev=exec_prefix ;;
1031   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033   | --exec=* | --exe=* | --ex=*)
1034     exec_prefix=$ac_optarg ;;
1035
1036   -gas | --gas | --ga | --g)
1037     # Obsolete; use --with-gas.
1038     with_gas=yes ;;
1039
1040   -help | --help | --hel | --he | -h)
1041     ac_init_help=long ;;
1042   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043     ac_init_help=recursive ;;
1044   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045     ac_init_help=short ;;
1046
1047   -host | --host | --hos | --ho)
1048     ac_prev=host_alias ;;
1049   -host=* | --host=* | --hos=* | --ho=*)
1050     host_alias=$ac_optarg ;;
1051
1052   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053     ac_prev=htmldir ;;
1054   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055   | --ht=*)
1056     htmldir=$ac_optarg ;;
1057
1058   -includedir | --includedir | --includedi | --included | --include \
1059   | --includ | --inclu | --incl | --inc)
1060     ac_prev=includedir ;;
1061   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062   | --includ=* | --inclu=* | --incl=* | --inc=*)
1063     includedir=$ac_optarg ;;
1064
1065   -infodir | --infodir | --infodi | --infod | --info | --inf)
1066     ac_prev=infodir ;;
1067   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068     infodir=$ac_optarg ;;
1069
1070   -libdir | --libdir | --libdi | --libd)
1071     ac_prev=libdir ;;
1072   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073     libdir=$ac_optarg ;;
1074
1075   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076   | --libexe | --libex | --libe)
1077     ac_prev=libexecdir ;;
1078   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079   | --libexe=* | --libex=* | --libe=*)
1080     libexecdir=$ac_optarg ;;
1081
1082   -localedir | --localedir | --localedi | --localed | --locale)
1083     ac_prev=localedir ;;
1084   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085     localedir=$ac_optarg ;;
1086
1087   -localstatedir | --localstatedir | --localstatedi | --localstated \
1088   | --localstate | --localstat | --localsta | --localst | --locals)
1089     ac_prev=localstatedir ;;
1090   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092     localstatedir=$ac_optarg ;;
1093
1094   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095     ac_prev=mandir ;;
1096   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097     mandir=$ac_optarg ;;
1098
1099   -nfp | --nfp | --nf)
1100     # Obsolete; use --without-fp.
1101     with_fp=no ;;
1102
1103   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104   | --no-cr | --no-c | -n)
1105     no_create=yes ;;
1106
1107   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109     no_recursion=yes ;;
1110
1111   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113   | --oldin | --oldi | --old | --ol | --o)
1114     ac_prev=oldincludedir ;;
1115   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118     oldincludedir=$ac_optarg ;;
1119
1120   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121     ac_prev=prefix ;;
1122   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123     prefix=$ac_optarg ;;
1124
1125   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126   | --program-pre | --program-pr | --program-p)
1127     ac_prev=program_prefix ;;
1128   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130     program_prefix=$ac_optarg ;;
1131
1132   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133   | --program-suf | --program-su | --program-s)
1134     ac_prev=program_suffix ;;
1135   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137     program_suffix=$ac_optarg ;;
1138
1139   -program-transform-name | --program-transform-name \
1140   | --program-transform-nam | --program-transform-na \
1141   | --program-transform-n | --program-transform- \
1142   | --program-transform | --program-transfor \
1143   | --program-transfo | --program-transf \
1144   | --program-trans | --program-tran \
1145   | --progr-tra | --program-tr | --program-t)
1146     ac_prev=program_transform_name ;;
1147   -program-transform-name=* | --program-transform-name=* \
1148   | --program-transform-nam=* | --program-transform-na=* \
1149   | --program-transform-n=* | --program-transform-=* \
1150   | --program-transform=* | --program-transfor=* \
1151   | --program-transfo=* | --program-transf=* \
1152   | --program-trans=* | --program-tran=* \
1153   | --progr-tra=* | --program-tr=* | --program-t=*)
1154     program_transform_name=$ac_optarg ;;
1155
1156   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157     ac_prev=pdfdir ;;
1158   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159     pdfdir=$ac_optarg ;;
1160
1161   -psdir | --psdir | --psdi | --psd | --ps)
1162     ac_prev=psdir ;;
1163   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164     psdir=$ac_optarg ;;
1165
1166   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167   | -silent | --silent | --silen | --sile | --sil)
1168     silent=yes ;;
1169
1170   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171     ac_prev=sbindir ;;
1172   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173   | --sbi=* | --sb=*)
1174     sbindir=$ac_optarg ;;
1175
1176   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178   | --sharedst | --shareds | --shared | --share | --shar \
1179   | --sha | --sh)
1180     ac_prev=sharedstatedir ;;
1181   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184   | --sha=* | --sh=*)
1185     sharedstatedir=$ac_optarg ;;
1186
1187   -site | --site | --sit)
1188     ac_prev=site ;;
1189   -site=* | --site=* | --sit=*)
1190     site=$ac_optarg ;;
1191
1192   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193     ac_prev=srcdir ;;
1194   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195     srcdir=$ac_optarg ;;
1196
1197   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198   | --syscon | --sysco | --sysc | --sys | --sy)
1199     ac_prev=sysconfdir ;;
1200   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202     sysconfdir=$ac_optarg ;;
1203
1204   -target | --target | --targe | --targ | --tar | --ta | --t)
1205     ac_prev=target_alias ;;
1206   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207     target_alias=$ac_optarg ;;
1208
1209   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210     verbose=yes ;;
1211
1212   -version | --version | --versio | --versi | --vers | -V)
1213     ac_init_version=: ;;
1214
1215   -with-* | --with-*)
1216     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219       { echo "$as_me: error: invalid package name: $ac_package" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222     eval with_$ac_package=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228       { echo "$as_me: error: invalid package name: $ac_package" >&2
1229    { (exit 1); exit 1; }; }
1230     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231     eval with_$ac_package=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253    { (exit 1); exit 1; }; }
1254     ;;
1255
1256   *=*)
1257     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261    { (exit 1); exit 1; }; }
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   { echo "$as_me: error: missing argument to $ac_option" >&2
1279    { (exit 1); exit 1; }; }
1280 fi
1281
1282 # Be sure to have absolute directory names.
1283 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284                 datadir sysconfdir sharedstatedir localstatedir includedir \
1285                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286                 libdir localedir mandir
1287 do
1288   eval ac_val=\$$ac_var
1289   case $ac_val in
1290     [\\/$]* | ?:[\\/]* )  continue;;
1291     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292   esac
1293   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294    { (exit 1); exit 1; }; }
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306   if test "x$build_alias" = x; then
1307     cross_compiling=maybe
1308     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309     If a cross compiler is detected then cross compile mode will be used." >&2
1310   elif test "x$build_alias" != "x$host_alias"; then
1311     cross_compiling=yes
1312   fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324   { echo "$as_me: error: Working directory cannot be determined" >&2
1325    { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327   { echo "$as_me: error: pwd does not report name of working directory" >&2
1328    { (exit 1); exit 1; }; }
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333   ac_srcdir_defaulted=yes
1334   # Try the directory containing this script, then the parent directory.
1335   ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337          X"$0" : 'X\(//\)[^/]' \| \
1338          X"$0" : 'X\(//\)$' \| \
1339          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340 echo X"$0" |
1341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)[^/].*/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\).*/{
1354             s//\1/
1355             q
1356           }
1357           s/.*/./; q'`
1358   srcdir=$ac_confdir
1359   if test ! -r "$srcdir/$ac_unique_file"; then
1360     srcdir=..
1361   fi
1362 else
1363   ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368    { (exit 1); exit 1; }; }
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373    { (exit 1); exit 1; }; }
1374         pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377   srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_env_${ac_var}_value=\$${ac_var}
1388   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396   # Omit some internal or obsolete options to make the list less imposing.
1397   # This message is too long to be a string in the A/UX 3.1 sh.
1398   cat <<_ACEOF
1399 \`configure' configures this package to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE.  See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409   -h, --help              display this help and exit
1410       --help=short        display options specific to this package
1411       --help=recursive    display the short help of all the included packages
1412   -V, --version           display version information and exit
1413   -q, --quiet, --silent   do not print \`checking...' messages
1414       --cache-file=FILE   cache test results in FILE [disabled]
1415   -C, --config-cache      alias for \`--cache-file=config.cache'
1416   -n, --no-create         do not create output files
1417       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420   --prefix=PREFIX         install architecture-independent files in PREFIX
1421                           [$ac_default_prefix]
1422   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423                           [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433   --bindir=DIR           user executables [EPREFIX/bin]
1434   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1435   --libexecdir=DIR       program executables [EPREFIX/libexec]
1436   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1437   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1438   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1439   --libdir=DIR           object code libraries [EPREFIX/lib]
1440   --includedir=DIR       C header files [PREFIX/include]
1441   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1442   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1443   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1444   --infodir=DIR          info documentation [DATAROOTDIR/info]
1445   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1446   --mandir=DIR           man documentation [DATAROOTDIR/man]
1447   --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1448   --htmldir=DIR          html documentation [DOCDIR]
1449   --dvidir=DIR           dvi documentation [DOCDIR]
1450   --pdfdir=DIR           pdf documentation [DOCDIR]
1451   --psdir=DIR            ps documentation [DOCDIR]
1452 _ACEOF
1453
1454   cat <<\_ACEOF
1455
1456 Program names:
1457   --program-prefix=PREFIX            prepend PREFIX to installed program names
1458   --program-suffix=SUFFIX            append SUFFIX to installed program names
1459   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461 System types:
1462   --build=BUILD     configure for building on BUILD [guessed]
1463   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468
1469   cat <<\_ACEOF
1470
1471 Optional Features:
1472   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1473   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1474   --enable-maintainer-mode  enable make rules and dependencies not useful
1475                           (and sometimes confusing) to the casual installer
1476   --disable-dependency-tracking  speeds up one-time build
1477   --enable-dependency-tracking   do not reject slow dependency extractors
1478   --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1479   --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1480   --enable-fast-install@<:@=PKGS@:>@ 
1481                           optimize for fast installation @<:@default=yes@:>@
1482   --disable-libtool-lock  avoid locking (might break parallel builds)
1483
1484 Optional Packages:
1485   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1486   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1487   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1488   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1489                           both@:>@
1490   --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1491   --with-darts=DIR      specify a path for the header file of Darts
1492   --with-libiconv=DIR   use libiconv in DIR
1493
1494 Some influential environment variables:
1495   CC          C compiler command
1496   CFLAGS      C compiler flags
1497   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1498               nonstandard directory <lib dir>
1499   LIBS        libraries to pass to the linker, e.g. -l<library>
1500   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1501               you have headers in a nonstandard directory <include dir>
1502   CXX         C++ compiler command
1503   CXXFLAGS    C++ compiler flags
1504   CPP         C preprocessor
1505   CXXCPP      C++ preprocessor
1506   F77         Fortran 77 compiler command
1507   FFLAGS      Fortran 77 compiler flags
1508
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1511
1512 _ACEOF
1513 ac_status=$?
1514 fi
1515
1516 if test "$ac_init_help" = "recursive"; then
1517   # If there are subdirs, report their specific --help.
1518   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519     test -d "$ac_dir" || continue
1520     ac_builddir=.
1521
1522 case "$ac_dir" in
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *)
1525   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1526   # A ".." for each directory in $ac_dir_suffix.
1527   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1528   case $ac_top_builddir_sub in
1529   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531   esac ;;
1532 esac
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1537
1538 case $srcdir in
1539   .)  # We are building in place.
1540     ac_srcdir=.
1541     ac_top_srcdir=$ac_top_builddir_sub
1542     ac_abs_top_srcdir=$ac_pwd ;;
1543   [\\/]* | ?:[\\/]* )  # Absolute name.
1544     ac_srcdir=$srcdir$ac_dir_suffix;
1545     ac_top_srcdir=$srcdir
1546     ac_abs_top_srcdir=$srcdir ;;
1547   *) # Relative name.
1548     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549     ac_top_srcdir=$ac_top_build_prefix$srcdir
1550     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 esac
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553
1554     cd "$ac_dir" || { ac_status=$?; continue; }
1555     # Check for guested configure.
1556     if test -f "$ac_srcdir/configure.gnu"; then
1557       echo &&
1558       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559     elif test -f "$ac_srcdir/configure"; then
1560       echo &&
1561       $SHELL "$ac_srcdir/configure" --help=recursive
1562     else
1563       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564     fi || ac_status=$?
1565     cd "$ac_pwd" || { ac_status=$?; break; }
1566   done
1567 fi
1568
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1571   cat <<\_ACEOF
1572 configure
1573 generated by GNU Autoconf 2.61
1574
1575 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1576 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1579 _ACEOF
1580   exit
1581 fi
1582 cat >config.log <<_ACEOF
1583 This file contains any messages produced by compilers while
1584 running configure, to aid debugging if configure makes a mistake.
1585
1586 It was created by $as_me, which was
1587 generated by GNU Autoconf 2.61.  Invocation command line was
1588
1589   $ $0 $@
1590
1591 _ACEOF
1592 exec 5>>config.log
1593 {
1594 cat <<_ASUNAME
1595 @%:@@%:@ --------- @%:@@%:@
1596 @%:@@%:@ Platform. @%:@@%:@
1597 @%:@@%:@ --------- @%:@@%:@
1598
1599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604
1605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1607
1608 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1609 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1610 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1611 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1612 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1613 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1614 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1615
1616 _ASUNAME
1617
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 for as_dir in $PATH
1620 do
1621   IFS=$as_save_IFS
1622   test -z "$as_dir" && as_dir=.
1623   echo "PATH: $as_dir"
1624 done
1625 IFS=$as_save_IFS
1626
1627 } >&5
1628
1629 cat >&5 <<_ACEOF
1630
1631
1632 @%:@@%:@ ----------- @%:@@%:@
1633 @%:@@%:@ Core tests. @%:@@%:@
1634 @%:@@%:@ ----------- @%:@@%:@
1635
1636 _ACEOF
1637
1638
1639 # Keep a trace of the command line.
1640 # Strip out --no-create and --no-recursion so they do not pile up.
1641 # Strip out --silent because we don't want to record it for future runs.
1642 # Also quote any args containing shell meta-characters.
1643 # Make two passes to allow for proper duplicate-argument suppression.
1644 ac_configure_args=
1645 ac_configure_args0=
1646 ac_configure_args1=
1647 ac_must_keep_next=false
1648 for ac_pass in 1 2
1649 do
1650   for ac_arg
1651   do
1652     case $ac_arg in
1653     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655     | -silent | --silent | --silen | --sile | --sil)
1656       continue ;;
1657     *\'*)
1658       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659     esac
1660     case $ac_pass in
1661     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1662     2)
1663       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664       if test $ac_must_keep_next = true; then
1665         ac_must_keep_next=false # Got value, back to normal.
1666       else
1667         case $ac_arg in
1668           *=* | --config-cache | -C | -disable-* | --disable-* \
1669           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671           | -with-* | --with-* | -without-* | --without-* | --x)
1672             case "$ac_configure_args0 " in
1673               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674             esac
1675             ;;
1676           -* ) ac_must_keep_next=true ;;
1677         esac
1678       fi
1679       ac_configure_args="$ac_configure_args '$ac_arg'"
1680       ;;
1681     esac
1682   done
1683 done
1684 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686
1687 # When interrupted or exit'd, cleanup temporary files, and complete
1688 # config.log.  We remove comments because anyway the quotes in there
1689 # would cause problems or look ugly.
1690 # WARNING: Use '\'' to represent an apostrophe within the trap.
1691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692 trap 'exit_status=$?
1693   # Save into config.log some information that might help in debugging.
1694   {
1695     echo
1696
1697     cat <<\_ASBOX
1698 @%:@@%:@ ---------------- @%:@@%:@
1699 @%:@@%:@ Cache variables. @%:@@%:@
1700 @%:@@%:@ ---------------- @%:@@%:@
1701 _ASBOX
1702     echo
1703     # The following way of writing the cache mishandles newlines in values,
1704 (
1705   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706     eval ac_val=\$$ac_var
1707     case $ac_val in #(
1708     *${as_nl}*)
1709       case $ac_var in #(
1710       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712       esac
1713       case $ac_var in #(
1714       _ | IFS | as_nl) ;; #(
1715       *) $as_unset $ac_var ;;
1716       esac ;;
1717     esac
1718   done
1719   (set) 2>&1 |
1720     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721     *${as_nl}ac_space=\ *)
1722       sed -n \
1723         "s/'\''/'\''\\\\'\'''\''/g;
1724           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725       ;; #(
1726     *)
1727       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1728       ;;
1729     esac |
1730     sort
1731 )
1732     echo
1733
1734     cat <<\_ASBOX
1735 @%:@@%:@ ----------------- @%:@@%:@
1736 @%:@@%:@ Output variables. @%:@@%:@
1737 @%:@@%:@ ----------------- @%:@@%:@
1738 _ASBOX
1739     echo
1740     for ac_var in $ac_subst_vars
1741     do
1742       eval ac_val=\$$ac_var
1743       case $ac_val in
1744       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1745       esac
1746       echo "$ac_var='\''$ac_val'\''"
1747     done | sort
1748     echo
1749
1750     if test -n "$ac_subst_files"; then
1751       cat <<\_ASBOX
1752 @%:@@%:@ ------------------- @%:@@%:@
1753 @%:@@%:@ File substitutions. @%:@@%:@
1754 @%:@@%:@ ------------------- @%:@@%:@
1755 _ASBOX
1756       echo
1757       for ac_var in $ac_subst_files
1758       do
1759         eval ac_val=\$$ac_var
1760         case $ac_val in
1761         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1762         esac
1763         echo "$ac_var='\''$ac_val'\''"
1764       done | sort
1765       echo
1766     fi
1767
1768     if test -s confdefs.h; then
1769       cat <<\_ASBOX
1770 @%:@@%:@ ----------- @%:@@%:@
1771 @%:@@%:@ confdefs.h. @%:@@%:@
1772 @%:@@%:@ ----------- @%:@@%:@
1773 _ASBOX
1774       echo
1775       cat confdefs.h
1776       echo
1777     fi
1778     test "$ac_signal" != 0 &&
1779       echo "$as_me: caught signal $ac_signal"
1780     echo "$as_me: exit $exit_status"
1781   } >&5
1782   rm -f core *.core core.conftest.* &&
1783     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784     exit $exit_status
1785 ' 0
1786 for ac_signal in 1 2 13 15; do
1787   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1788 done
1789 ac_signal=0
1790
1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1792 rm -f -r conftest* confdefs.h
1793
1794 # Predefined preprocessor variables.
1795
1796 cat >>confdefs.h <<_ACEOF
1797 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1808 _ACEOF
1809
1810
1811 cat >>confdefs.h <<_ACEOF
1812 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1818 _ACEOF
1819
1820
1821 # Let the site file select an alternate cache file if it wants to.
1822 # Prefer explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824   set x "$CONFIG_SITE"
1825 elif test "x$prefix" != xNONE; then
1826   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1827 else
1828   set x "$ac_default_prefix/share/config.site" \
1829         "$ac_default_prefix/etc/config.site"
1830 fi
1831 shift
1832 for ac_site_file
1833 do
1834   if test -r "$ac_site_file"; then
1835     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 echo "$as_me: loading site script $ac_site_file" >&6;}
1837     sed 's/^/| /' "$ac_site_file" >&5
1838     . "$ac_site_file"
1839   fi
1840 done
1841
1842 if test -r "$cache_file"; then
1843   # Some versions of bash will fail to source /dev/null (special
1844   # files actually), so we avoid doing that.
1845   if test -f "$cache_file"; then
1846     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 echo "$as_me: loading cache $cache_file" >&6;}
1848     case $cache_file in
1849       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850       *)                      . "./$cache_file";;
1851     esac
1852   fi
1853 else
1854   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 echo "$as_me: creating cache $cache_file" >&6;}
1856   >$cache_file
1857 fi
1858
1859 # Check that the precious variables saved in the cache have kept the same
1860 # value.
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864   eval ac_new_set=\$ac_env_${ac_var}_set
1865   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866   eval ac_new_val=\$ac_env_${ac_var}_value
1867   case $ac_old_set,$ac_new_set in
1868     set,)
1869       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871       ac_cache_corrupted=: ;;
1872     ,set)
1873       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875       ac_cache_corrupted=: ;;
1876     ,);;
1877     *)
1878       if test "x$ac_old_val" != "x$ac_new_val"; then
1879         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1882 echo "$as_me:   former value:  $ac_old_val" >&2;}
1883         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1884 echo "$as_me:   current value: $ac_new_val" >&2;}
1885         ac_cache_corrupted=:
1886       fi;;
1887   esac
1888   # Pass precious variables to config.status.
1889   if test "$ac_new_set" = set; then
1890     case $ac_new_val in
1891     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892     *) ac_arg=$ac_var=$ac_new_val ;;
1893     esac
1894     case " $ac_configure_args " in
1895       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1896       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1897     esac
1898   fi
1899 done
1900 if $ac_cache_corrupted; then
1901   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924 ac_ext=c
1925 ac_cpp='$CPP $CPPFLAGS'
1926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929
1930
1931
1932 am__api_version="1.9"
1933 ac_aux_dir=
1934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1935   if test -f "$ac_dir/install-sh"; then
1936     ac_aux_dir=$ac_dir
1937     ac_install_sh="$ac_aux_dir/install-sh -c"
1938     break
1939   elif test -f "$ac_dir/install.sh"; then
1940     ac_aux_dir=$ac_dir
1941     ac_install_sh="$ac_aux_dir/install.sh -c"
1942     break
1943   elif test -f "$ac_dir/shtool"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/shtool install -c"
1946     break
1947   fi
1948 done
1949 if test -z "$ac_aux_dir"; then
1950   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1951 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1952    { (exit 1); exit 1; }; }
1953 fi
1954
1955 # These three variables are undocumented and unsupported,
1956 # and are intended to be withdrawn in a future Autoconf release.
1957 # They can cause serious problems if a builder's source tree is in a directory
1958 # whose full name contains unusual characters.
1959 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1960 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1961 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1962
1963
1964 # Find a good install program.  We prefer a C program (faster),
1965 # so one script is as good as another.  But avoid the broken or
1966 # incompatible versions:
1967 # SysV /etc/install, /usr/sbin/install
1968 # SunOS /usr/etc/install
1969 # IRIX /sbin/install
1970 # AIX /bin/install
1971 # AmigaOS /C/install, which installs bootblocks on floppy discs
1972 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1973 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1974 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1975 # OS/2's system install, which has a completely different semantic
1976 # ./install, which can be erroneously created by make from ./install.sh.
1977 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1978 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1979 if test -z "$INSTALL"; then
1980 if test "${ac_cv_path_install+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   # Account for people who put trailing slashes in PATH elements.
1989 case $as_dir/ in
1990   ./ | .// | /cC/* | \
1991   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1992   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1993   /usr/ucb/* ) ;;
1994   *)
1995     # OSF1 and SCO ODT 3.0 have their own names for install.
1996     # Don't use installbsd from OSF since it installs stuff as root
1997     # by default.
1998     for ac_prog in ginstall scoinst install; do
1999       for ac_exec_ext in '' $ac_executable_extensions; do
2000         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2001           if test $ac_prog = install &&
2002             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2003             # AIX install.  It has an incompatible calling convention.
2004             :
2005           elif test $ac_prog = install &&
2006             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2007             # program-specific install script used by HP pwplus--don't use.
2008             :
2009           else
2010             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2011             break 3
2012           fi
2013         fi
2014       done
2015     done
2016     ;;
2017 esac
2018 done
2019 IFS=$as_save_IFS
2020
2021
2022 fi
2023   if test "${ac_cv_path_install+set}" = set; then
2024     INSTALL=$ac_cv_path_install
2025   else
2026     # As a last resort, use the slow shell script.  Don't cache a
2027     # value for INSTALL within a source directory, because that will
2028     # break other packages using the cache if that directory is
2029     # removed, or if the value is a relative name.
2030     INSTALL=$ac_install_sh
2031   fi
2032 fi
2033 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2034 echo "${ECHO_T}$INSTALL" >&6; }
2035
2036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2037 # It thinks the first close brace ends the variable substitution.
2038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2039
2040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2041
2042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2043
2044 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2045 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2046 # Just in case
2047 sleep 1
2048 echo timestamp > conftest.file
2049 # Do `set' in a subshell so we don't clobber the current shell's
2050 # arguments.  Must try -L first in case configure is actually a
2051 # symlink; some systems play weird games with the mod time of symlinks
2052 # (eg FreeBSD returns the mod time of the symlink's containing
2053 # directory).
2054 if (
2055    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2056    if test "$*" = "X"; then
2057       # -L didn't work.
2058       set X `ls -t $srcdir/configure conftest.file`
2059    fi
2060    rm -f conftest.file
2061    if test "$*" != "X $srcdir/configure conftest.file" \
2062       && test "$*" != "X conftest.file $srcdir/configure"; then
2063
2064       # If neither matched, then we have a broken ls.  This can happen
2065       # if, for instance, CONFIG_SHELL is bash and it inherits a
2066       # broken ls alias from the environment.  This has actually
2067       # happened.  Such a system could not be considered "sane".
2068       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2069 alias in your environment" >&5
2070 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2071 alias in your environment" >&2;}
2072    { (exit 1); exit 1; }; }
2073    fi
2074
2075    test "$2" = conftest.file
2076    )
2077 then
2078    # Ok.
2079    :
2080 else
2081    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2082 Check your system clock" >&5
2083 echo "$as_me: error: newly created file is older than distributed files!
2084 Check your system clock" >&2;}
2085    { (exit 1); exit 1; }; }
2086 fi
2087 { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089 test "$program_prefix" != NONE &&
2090   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2091 # Use a double $ so make ignores it.
2092 test "$program_suffix" != NONE &&
2093   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2094 # Double any \ or $.  echo might interpret backslashes.
2095 # By default was `s,x,x', remove it if useless.
2096 cat <<\_ACEOF >conftest.sed
2097 s/[\\$]/&&/g;s/;s,x,x,$//
2098 _ACEOF
2099 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2100 rm -f conftest.sed
2101
2102 # expand $ac_aux_dir to an absolute path
2103 am_aux_dir=`cd $ac_aux_dir && pwd`
2104
2105 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2106 # Use eval to expand $SHELL
2107 if eval "$MISSING --run true"; then
2108   am_missing_run="$MISSING --run "
2109 else
2110   am_missing_run=
2111   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2112 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2113 fi
2114
2115 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2116   # We used to keeping the `.' as first argument, in order to
2117   # allow $(mkdir_p) to be used without argument.  As in
2118   #   $(mkdir_p) $(somedir)
2119   # where $(somedir) is conditionally defined.  However this is wrong
2120   # for two reasons:
2121   #  1. if the package is installed by a user who cannot write `.'
2122   #     make install will fail,
2123   #  2. the above comment should most certainly read
2124   #     $(mkdir_p) $(DESTDIR)$(somedir)
2125   #     so it does not work when $(somedir) is undefined and
2126   #     $(DESTDIR) is not.
2127   #  To support the latter case, we have to write
2128   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2129   #  so the `.' trick is pointless.
2130   mkdir_p='mkdir -p --'
2131 else
2132   # On NextStep and OpenStep, the `mkdir' command does not
2133   # recognize any option.  It will interpret all options as
2134   # directories to create, and then abort because `.' already
2135   # exists.
2136   for d in ./-p ./--version;
2137   do
2138     test -d $d && rmdir $d
2139   done
2140   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2141   if test -f "$ac_aux_dir/mkinstalldirs"; then
2142     mkdir_p='$(mkinstalldirs)'
2143   else
2144     mkdir_p='$(install_sh) -d'
2145   fi
2146 fi
2147
2148 for ac_prog in gawk mawk nawk awk
2149 do
2150   # Extract the first word of "$ac_prog", so it can be a program name with args.
2151 set dummy $ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_AWK+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$AWK"; then
2158   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167     ac_cv_prog_AWK="$ac_prog"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 AWK=$ac_cv_prog_AWK
2178 if test -n "$AWK"; then
2179   { echo "$as_me:$LINENO: result: $AWK" >&5
2180 echo "${ECHO_T}$AWK" >&6; }
2181 else
2182   { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187   test -n "$AWK" && break
2188 done
2189
2190 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2191 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2192 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2193 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   cat >conftest.make <<\_ACEOF
2197 SHELL = /bin/sh
2198 all:
2199         @echo '@@@%%%=$(MAKE)=@@@%%%'
2200 _ACEOF
2201 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2202 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2203   *@@@%%%=?*=@@@%%%*)
2204     eval ac_cv_prog_make_${ac_make}_set=yes;;
2205   *)
2206     eval ac_cv_prog_make_${ac_make}_set=no;;
2207 esac
2208 rm -f conftest.make
2209 fi
2210 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2211   { echo "$as_me:$LINENO: result: yes" >&5
2212 echo "${ECHO_T}yes" >&6; }
2213   SET_MAKE=
2214 else
2215   { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217   SET_MAKE="MAKE=${MAKE-make}"
2218 fi
2219
2220 rm -rf .tst 2>/dev/null
2221 mkdir .tst 2>/dev/null
2222 if test -d .tst; then
2223   am__leading_dot=.
2224 else
2225   am__leading_dot=_
2226 fi
2227 rmdir .tst 2>/dev/null
2228
2229 # test to see if srcdir already configured
2230 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2231    test -f $srcdir/config.status; then
2232   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2233 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2234    { (exit 1); exit 1; }; }
2235 fi
2236
2237 # test whether we have cygpath
2238 if test -z "$CYGPATH_W"; then
2239   if (cygpath --version) >/dev/null 2>/dev/null; then
2240     CYGPATH_W='cygpath -w'
2241   else
2242     CYGPATH_W=echo
2243   fi
2244 fi
2245
2246
2247 # Define the identity of the package.
2248  PACKAGE=chasen
2249  VERSION=2.4.0-preview5
2250
2251
2252 cat >>confdefs.h <<_ACEOF
2253 @%:@define PACKAGE "$PACKAGE"
2254 _ACEOF
2255
2256  
2257 cat >>confdefs.h <<_ACEOF
2258 @%:@define VERSION "$VERSION"
2259 _ACEOF
2260
2261 # Some tools Automake needs.
2262
2263 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2264
2265
2266 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2267
2268
2269 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2270
2271
2272 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2273
2274
2275 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2276
2277 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2278
2279 # Installed binaries are usually stripped using `strip' when the user
2280 # run `make install-strip'.  However `strip' might not be the right
2281 # tool to use in cross-compilation environments, therefore Automake
2282 # will honor the `STRIP' environment variable to overrule this program.
2283 if test "$cross_compiling" != no; then
2284   if test -n "$ac_tool_prefix"; then
2285   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2286 set dummy ${ac_tool_prefix}strip; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_prog_STRIP+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$STRIP"; then
2293   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2302     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308 IFS=$as_save_IFS
2309
2310 fi
2311 fi
2312 STRIP=$ac_cv_prog_STRIP
2313 if test -n "$STRIP"; then
2314   { echo "$as_me:$LINENO: result: $STRIP" >&5
2315 echo "${ECHO_T}$STRIP" >&6; }
2316 else
2317   { echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6; }
2319 fi
2320
2321
2322 fi
2323 if test -z "$ac_cv_prog_STRIP"; then
2324   ac_ct_STRIP=$STRIP
2325   # Extract the first word of "strip", so it can be a program name with args.
2326 set dummy strip; ac_word=$2
2327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   if test -n "$ac_ct_STRIP"; then
2333   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342     ac_cv_prog_ac_ct_STRIP="strip"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348 IFS=$as_save_IFS
2349
2350 fi
2351 fi
2352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2353 if test -n "$ac_ct_STRIP"; then
2354   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2355 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2356 else
2357   { echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6; }
2359 fi
2360
2361   if test "x$ac_ct_STRIP" = x; then
2362     STRIP=":"
2363   else
2364     case $cross_compiling:$ac_tool_warned in
2365 yes:)
2366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet.  If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&5
2369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2370 whose name does not start with the host triplet.  If you think this
2371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2372 ac_tool_warned=yes ;;
2373 esac
2374     STRIP=$ac_ct_STRIP
2375   fi
2376 else
2377   STRIP="$ac_cv_prog_STRIP"
2378 fi
2379
2380 fi
2381 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2382
2383 # We need awk for the "check" target.  The system "awk" is bad on
2384 # some platforms.
2385 # Always define AMTAR for backward compatibility.
2386
2387 AMTAR=${AMTAR-"${am_missing_run}tar"}
2388
2389 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2390
2391
2392
2393
2394
2395 ac_config_headers="$ac_config_headers config.h"
2396
2397 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2398 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2399     # Check whether --enable-maintainer-mode was given.
2400 if test "${enable_maintainer_mode+set}" = set; then
2401   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2402 else
2403   USE_MAINTAINER_MODE=no
2404 fi
2405
2406   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2407 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2408    
2409
2410 if test $USE_MAINTAINER_MODE = yes; then
2411   MAINTAINER_MODE_TRUE=
2412   MAINTAINER_MODE_FALSE='#'
2413 else
2414   MAINTAINER_MODE_TRUE='#'
2415   MAINTAINER_MODE_FALSE=
2416 fi
2417
2418   MAINT=$MAINTAINER_MODE_TRUE
2419   
2420
2421
2422 ac_ext=c
2423 ac_cpp='$CPP $CPPFLAGS'
2424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 if test -n "$ac_tool_prefix"; then
2428   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2432 if test "${ac_cv_prog_CC+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   if test -n "$CC"; then
2436   ac_cv_prog_CC="$CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
2442   test -z "$as_dir" && as_dir=.
2443   for ac_exec_ext in '' $ac_executable_extensions; do
2444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2445     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448   fi
2449 done
2450 done
2451 IFS=$as_save_IFS
2452
2453 fi
2454 fi
2455 CC=$ac_cv_prog_CC
2456 if test -n "$CC"; then
2457   { echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6; }
2459 else
2460   { echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6; }
2462 fi
2463
2464
2465 fi
2466 if test -z "$ac_cv_prog_CC"; then
2467   ac_ct_CC=$CC
2468   # Extract the first word of "gcc", so it can be a program name with args.
2469 set dummy gcc; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$ac_ct_CC"; then
2476   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485     ac_cv_prog_ac_ct_CC="gcc"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491 IFS=$as_save_IFS
2492
2493 fi
2494 fi
2495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2496 if test -n "$ac_ct_CC"; then
2497   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2498 echo "${ECHO_T}$ac_ct_CC" >&6; }
2499 else
2500   { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2502 fi
2503
2504   if test "x$ac_ct_CC" = x; then
2505     CC=""
2506   else
2507     case $cross_compiling:$ac_tool_warned in
2508 yes:)
2509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2510 whose name does not start with the host triplet.  If you think this
2511 configuration is useful to you, please write to autoconf@gnu.org." >&5
2512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2513 whose name does not start with the host triplet.  If you think this
2514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2515 ac_tool_warned=yes ;;
2516 esac
2517     CC=$ac_ct_CC
2518   fi
2519 else
2520   CC="$ac_cv_prog_CC"
2521 fi
2522
2523 if test -z "$CC"; then
2524           if test -n "$ac_tool_prefix"; then
2525     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}cc; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542     ac_cv_prog_CC="${ac_tool_prefix}cc"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2556 else
2557   { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2559 fi
2560
2561
2562   fi
2563 fi
2564 if test -z "$CC"; then
2565   # Extract the first word of "cc", so it can be a program name with args.
2566 set dummy cc; ac_word=$2
2567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2569 if test "${ac_cv_prog_CC+set}" = set; then
2570   echo $ECHO_N "(cached) $ECHO_C" >&6
2571 else
2572   if test -n "$CC"; then
2573   ac_cv_prog_CC="$CC" # Let the user override the test.
2574 else
2575   ac_prog_rejected=no
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581   for ac_exec_ext in '' $ac_executable_extensions; do
2582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584        ac_prog_rejected=yes
2585        continue
2586      fi
2587     ac_cv_prog_CC="cc"
2588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592 done
2593 IFS=$as_save_IFS
2594
2595 if test $ac_prog_rejected = yes; then
2596   # We found a bogon in the path, so make sure we never use it.
2597   set dummy $ac_cv_prog_CC
2598   shift
2599   if test $@%:@ != 0; then
2600     # We chose a different compiler from the bogus one.
2601     # However, it has the same basename, so the bogon will be chosen
2602     # first if we set CC to just the basename; use the full file name.
2603     shift
2604     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2605   fi
2606 fi
2607 fi
2608 fi
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611   { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2613 else
2614   { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2616 fi
2617
2618
2619 fi
2620 if test -z "$CC"; then
2621   if test -n "$ac_tool_prefix"; then
2622   for ac_prog in cl.exe
2623   do
2624     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_CC+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   if test -n "$CC"; then
2632   ac_cv_prog_CC="$CC" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639   for ac_exec_ext in '' $ac_executable_extensions; do
2640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646 done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 CC=$ac_cv_prog_CC
2652 if test -n "$CC"; then
2653   { echo "$as_me:$LINENO: result: $CC" >&5
2654 echo "${ECHO_T}$CC" >&6; }
2655 else
2656   { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2658 fi
2659
2660
2661     test -n "$CC" && break
2662   done
2663 fi
2664 if test -z "$CC"; then
2665   ac_ct_CC=$CC
2666   for ac_prog in cl.exe
2667 do
2668   # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2673   echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675   if test -n "$ac_ct_CC"; then
2676   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683   for ac_exec_ext in '' $ac_executable_extensions; do
2684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685     ac_cv_prog_ac_ct_CC="$ac_prog"
2686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690 done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6; }
2699 else
2700   { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2702 fi
2703
2704
2705   test -n "$ac_ct_CC" && break
2706 done
2707
2708   if test "x$ac_ct_CC" = x; then
2709     CC=""
2710   else
2711     case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet.  If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet.  If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719 ac_tool_warned=yes ;;
2720 esac
2721     CC=$ac_ct_CC
2722   fi
2723 fi
2724
2725 fi
2726
2727
2728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details." >&5
2730 echo "$as_me: error: no acceptable C compiler found in \$PATH
2731 See \`config.log' for more details." >&2;}
2732    { (exit 1); exit 1; }; }
2733
2734 # Provide some information about the compiler.
2735 echo "$as_me:$LINENO: checking for C compiler version" >&5
2736 ac_compiler=`set X $ac_compile; echo $2`
2737 { (ac_try="$ac_compiler --version >&5"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743   (eval "$ac_compiler --version >&5") 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }
2747 { (ac_try="$ac_compiler -v >&5"
2748 case "(($ac_try" in
2749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750   *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753   (eval "$ac_compiler -v >&5") 2>&5
2754   ac_status=$?
2755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756   (exit $ac_status); }
2757 { (ac_try="$ac_compiler -V >&5"
2758 case "(($ac_try" in
2759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760   *) ac_try_echo=$ac_try;;
2761 esac
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763   (eval "$ac_compiler -V >&5") 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }
2767
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774
2775 int
2776 main ()
2777 {
2778
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 ac_clean_files_save=$ac_clean_files
2784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2785 # Try to create an executable without -o first, disregard a.out.
2786 # It will help us diagnose broken compilers, and finding out an intuition
2787 # of exeext.
2788 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2791 #
2792 # List of possible output files, starting from the most likely.
2793 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2794 # only as a last resort.  b.out is created by i960 compilers.
2795 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2796 #
2797 # The IRIX 6 linker writes into existing files which may not be
2798 # executable, retaining their permissions.  Remove them first so a
2799 # subsequent execution test works.
2800 ac_rmfiles=
2801 for ac_file in $ac_files
2802 do
2803   case $ac_file in
2804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2805     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2806   esac
2807 done
2808 rm -f $ac_rmfiles
2809
2810 if { (ac_try="$ac_link_default"
2811 case "(($ac_try" in
2812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813   *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816   (eval "$ac_link_default") 2>&5
2817   ac_status=$?
2818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819   (exit $ac_status); }; then
2820   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2822 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2823 # so that the user can short-circuit this test for compilers unknown to
2824 # Autoconf.
2825 for ac_file in $ac_files ''
2826 do
2827   test -f "$ac_file" || continue
2828   case $ac_file in
2829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2830         ;;
2831     [ab].out )
2832         # We found the default executable, but exeext='' is most
2833         # certainly right.
2834         break;;
2835     *.* )
2836         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2837         then :; else
2838            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2839         fi
2840         # We set ac_cv_exeext here because the later test for it is not
2841         # safe: cross compilers may not add the suffix if given an `-o'
2842         # argument, so we may need to know it at that point already.
2843         # Even if this section looks crufty: it has the advantage of
2844         # actually working.
2845         break;;
2846     * )
2847         break;;
2848   esac
2849 done
2850 test "$ac_cv_exeext" = no && ac_cv_exeext=
2851
2852 else
2853   ac_file=''
2854 fi
2855
2856 { echo "$as_me:$LINENO: result: $ac_file" >&5
2857 echo "${ECHO_T}$ac_file" >&6; }
2858 if test -z "$ac_file"; then
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&2;}
2866    { (exit 77); exit 77; }; }
2867 fi
2868
2869 ac_exeext=$ac_cv_exeext
2870
2871 # Check that the compiler produces executables we can run.  If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2874 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2875 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2876 # If not cross compiling, check that we can run a simple program.
2877 if test "$cross_compiling" != yes; then
2878   if { ac_try='./$ac_file'
2879   { (case "(($ac_try" in
2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881   *) ac_try_echo=$ac_try;;
2882 esac
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884   (eval "$ac_try") 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); }; }; then
2888     cross_compiling=no
2889   else
2890     if test "$cross_compiling" = maybe; then
2891         cross_compiling=yes
2892     else
2893         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2894 If you meant to cross compile, use \`--host'.
2895 See \`config.log' for more details." >&5
2896 echo "$as_me: error: cannot run C compiled programs.
2897 If you meant to cross compile, use \`--host'.
2898 See \`config.log' for more details." >&2;}
2899    { (exit 1); exit 1; }; }
2900     fi
2901   fi
2902 fi
2903 { echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6; }
2905
2906 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2907 ac_clean_files=$ac_clean_files_save
2908 # Check that the compiler produces executables we can run.  If not, either
2909 # the compiler is broken, or we cross compile.
2910 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2911 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2912 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2913 echo "${ECHO_T}$cross_compiling" >&6; }
2914
2915 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2916 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2917 if { (ac_try="$ac_link"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_link") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; then
2927   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2928 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2929 # work properly (i.e., refer to `conftest.exe'), while it won't with
2930 # `rm'.
2931 for ac_file in conftest.exe conftest conftest.*; do
2932   test -f "$ac_file" || continue
2933   case $ac_file in
2934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2935     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936           break;;
2937     * ) break;;
2938   esac
2939 done
2940 else
2941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2942 See \`config.log' for more details." >&5
2943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2944 See \`config.log' for more details." >&2;}
2945    { (exit 1); exit 1; }; }
2946 fi
2947
2948 rm -f conftest$ac_cv_exeext
2949 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2950 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2951
2952 rm -f conftest.$ac_ext
2953 EXEEXT=$ac_cv_exeext
2954 ac_exeext=$EXEEXT
2955 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2957 if test "${ac_cv_objext+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.o conftest.obj
2976 if { (ac_try="$ac_compile"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_compile") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; then
2986   for ac_file in conftest.o conftest.obj conftest.*; do
2987   test -f "$ac_file" || continue;
2988   case $ac_file in
2989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2990     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2991        break;;
2992   esac
2993 done
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2999 See \`config.log' for more details." >&5
3000 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3001 See \`config.log' for more details." >&2;}
3002    { (exit 1); exit 1; }; }
3003 fi
3004
3005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3006 fi
3007 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3008 echo "${ECHO_T}$ac_cv_objext" >&6; }
3009 OBJEXT=$ac_cv_objext
3010 ac_objext=$OBJEXT
3011 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3012 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3013 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3014   echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016   cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022
3023 int
3024 main ()
3025 {
3026 #ifndef __GNUC__
3027        choke me
3028 #endif
3029
3030   ;
3031   return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_compile") 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } && {
3048          test -z "$ac_c_werror_flag" ||
3049          test ! -s conftest.err
3050        } && test -s conftest.$ac_objext; then
3051   ac_compiler_gnu=yes
3052 else
3053   echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056         ac_compiler_gnu=no
3057 fi
3058
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3061
3062 fi
3063 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3065 GCC=`test $ac_compiler_gnu = yes && echo yes`
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_cc_g+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   ac_save_c_werror_flag=$ac_c_werror_flag
3074    ac_c_werror_flag=yes
3075    ac_cv_prog_cc_g=no
3076    CFLAGS="-g"
3077    cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083
3084 int
3085 main ()
3086 {
3087
3088   ;
3089   return 0;
3090 }
3091 _ACEOF
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_compile") 2>conftest.er1
3100   ac_status=$?
3101   grep -v '^ *+' conftest.er1 >conftest.err
3102   rm -f conftest.er1
3103   cat conftest.err >&5
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); } && {
3106          test -z "$ac_c_werror_flag" ||
3107          test ! -s conftest.err
3108        } && test -s conftest.$ac_objext; then
3109   ac_cv_prog_cc_g=yes
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114         CFLAGS=""
3115       cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h.  */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h.  */
3121
3122 int
3123 main ()
3124 {
3125
3126   ;
3127   return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_compile") 2>conftest.er1
3138   ac_status=$?
3139   grep -v '^ *+' conftest.er1 >conftest.err
3140   rm -f conftest.er1
3141   cat conftest.err >&5
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); } && {
3144          test -z "$ac_c_werror_flag" ||
3145          test ! -s conftest.err
3146        } && test -s conftest.$ac_objext; then
3147   :
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152         ac_c_werror_flag=$ac_save_c_werror_flag
3153          CFLAGS="-g"
3154          cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3171 case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_compile") 2>conftest.er1
3177   ac_status=$?
3178   grep -v '^ *+' conftest.er1 >conftest.err
3179   rm -f conftest.er1
3180   cat conftest.err >&5
3181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182   (exit $ac_status); } && {
3183          test -z "$ac_c_werror_flag" ||
3184          test ! -s conftest.err
3185        } && test -s conftest.$ac_objext; then
3186   ac_cv_prog_cc_g=yes
3187 else
3188   echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191         
3192 fi
3193
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 fi
3196
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201    ac_c_werror_flag=$ac_save_c_werror_flag
3202 fi
3203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3204 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3205 if test "$ac_test_CFLAGS" = set; then
3206   CFLAGS=$ac_save_CFLAGS
3207 elif test $ac_cv_prog_cc_g = yes; then
3208   if test "$GCC" = yes; then
3209     CFLAGS="-g -O2"
3210   else
3211     CFLAGS="-g"
3212   fi
3213 else
3214   if test "$GCC" = yes; then
3215     CFLAGS="-O2"
3216   else
3217     CFLAGS=
3218   fi
3219 fi
3220 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3221 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_cc_c89+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   ac_cv_prog_cc_c89=no
3226 ac_save_CC=$CC
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233 #include <stdarg.h>
3234 #include <stdio.h>
3235 #include <sys/types.h>
3236 #include <sys/stat.h>
3237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3238 struct buf { int x; };
3239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240 static char *e (p, i)
3241      char **p;
3242      int i;
3243 {
3244   return p[i];
3245 }
3246 static char *f (char * (*g) (char **, int), char **p, ...)
3247 {
3248   char *s;
3249   va_list v;
3250   va_start (v,p);
3251   s = g (p, va_arg (v,int));
3252   va_end (v);
3253   return s;
3254 }
3255
3256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3257    function prototypes and stuff, but not '\xHH' hex character constants.
3258    These don't provoke an error unfortunately, instead are silently treated
3259    as 'x'.  The following induces an error, until -std is added to get
3260    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3261    array size at least.  It's necessary to write '\x00'==0 to get something
3262    that's true only with -std.  */
3263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3264
3265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266    inside strings and character constants.  */
3267 #define FOO(x) 'x'
3268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3269
3270 int test (int i, double x);
3271 struct s1 {int (*f) (int a);};
3272 struct s2 {int (*f) (double a);};
3273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274 int argc;
3275 char **argv;
3276 int
3277 main ()
3278 {
3279 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286 do
3287   CC="$ac_save_CC $ac_arg"
3288   rm -f conftest.$ac_objext
3289 if { (ac_try="$ac_compile"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_compile") 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } && {
3302          test -z "$ac_c_werror_flag" ||
3303          test ! -s conftest.err
3304        } && test -s conftest.$ac_objext; then
3305   ac_cv_prog_cc_c89=$ac_arg
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310         
3311 fi
3312
3313 rm -f core conftest.err conftest.$ac_objext 
3314   test "x$ac_cv_prog_cc_c89" != "xno" && break
3315 done
3316 rm -f conftest.$ac_ext
3317 CC=$ac_save_CC
3318
3319 fi
3320 # AC_CACHE_VAL
3321 case "x$ac_cv_prog_cc_c89" in
3322   x)
3323     { echo "$as_me:$LINENO: result: none needed" >&5
3324 echo "${ECHO_T}none needed" >&6; } ;;
3325   xno)
3326     { echo "$as_me:$LINENO: result: unsupported" >&5
3327 echo "${ECHO_T}unsupported" >&6; } ;;
3328   *)
3329     CC="$CC $ac_cv_prog_cc_c89"
3330     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3331 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3332 esac
3333
3334
3335 ac_ext=c
3336 ac_cpp='$CPP $CPPFLAGS'
3337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 DEPDIR="${am__leading_dot}deps"
3341
3342 ac_config_commands="$ac_config_commands depfiles"
3343
3344
3345 am_make=${MAKE-make}
3346 cat > confinc << 'END'
3347 am__doit:
3348         @echo done
3349 .PHONY: am__doit
3350 END
3351 # If we don't find an include directive, just comment out the code.
3352 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3353 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3354 am__include="#"
3355 am__quote=
3356 _am_result=none
3357 # First try GNU make style include.
3358 echo "include confinc" > confmf
3359 # We grep out `Entering directory' and `Leaving directory'
3360 # messages which can occur if `w' ends up in MAKEFLAGS.
3361 # In particular we don't look at `^make:' because GNU make might
3362 # be invoked under some other name (usually "gmake"), in which
3363 # case it prints its new name instead of `make'.
3364 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3365    am__include=include
3366    am__quote=
3367    _am_result=GNU
3368 fi
3369 # Now try BSD make style include.
3370 if test "$am__include" = "#"; then
3371    echo '.include "confinc"' > confmf
3372    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3373       am__include=.include
3374       am__quote="\""
3375       _am_result=BSD
3376    fi
3377 fi
3378
3379
3380 { echo "$as_me:$LINENO: result: $_am_result" >&5
3381 echo "${ECHO_T}$_am_result" >&6; }
3382 rm -f confinc confmf
3383
3384 # Check whether --enable-dependency-tracking was given.
3385 if test "${enable_dependency_tracking+set}" = set; then
3386   enableval=$enable_dependency_tracking; 
3387 fi
3388
3389 if test "x$enable_dependency_tracking" != xno; then
3390   am_depcomp="$ac_aux_dir/depcomp"
3391   AMDEPBACKSLASH='\'
3392 fi
3393  
3394
3395 if test "x$enable_dependency_tracking" != xno; then
3396   AMDEP_TRUE=
3397   AMDEP_FALSE='#'
3398 else
3399   AMDEP_TRUE='#'
3400   AMDEP_FALSE=
3401 fi
3402
3403
3404
3405
3406 depcc="$CC"   am_compiler_list=
3407
3408 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414   # We make a subdir and do the tests there.  Otherwise we can end up
3415   # making bogus files that we don't know about and never remove.  For
3416   # instance it was reported that on HP-UX the gcc test will end up
3417   # making a dummy file named `D' -- because `-MD' means `put the output
3418   # in D'.
3419   mkdir conftest.dir
3420   # Copy depcomp to subdir because otherwise we won't find it if we're
3421   # using a relative directory.
3422   cp "$am_depcomp" conftest.dir
3423   cd conftest.dir
3424   # We will build objects and dependencies in a subdirectory because
3425   # it helps to detect inapplicable dependency modes.  For instance
3426   # both Tru64's cc and ICC support -MD to output dependencies as a
3427   # side effect of compilation, but ICC will put the dependencies in
3428   # the current directory while Tru64 will put them in the object
3429   # directory.
3430   mkdir sub
3431
3432   am_cv_CC_dependencies_compiler_type=none
3433   if test "$am_compiler_list" = ""; then
3434      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435   fi
3436   for depmode in $am_compiler_list; do
3437     # Setup a source with many dependencies, because some compilers
3438     # like to wrap large dependency lists on column 80 (with \), and
3439     # we should not choose a depcomp mode which is confused by this.
3440     #
3441     # We need to recreate these files for each test, as the compiler may
3442     # overwrite some of them when testing with obscure command lines.
3443     # This happens at least with the AIX C compiler.
3444     : > sub/conftest.c
3445     for i in 1 2 3 4 5 6; do
3446       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448       # Solaris 8's {/usr,}/bin/sh.
3449       touch sub/conftst$i.h
3450     done
3451     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3452
3453     case $depmode in
3454     nosideeffect)
3455       # after this tag, mechanisms are not by side-effect, so they'll
3456       # only be used when explicitly requested
3457       if test "x$enable_dependency_tracking" = xyes; then
3458         continue
3459       else
3460         break
3461       fi
3462       ;;
3463     none) break ;;
3464     esac
3465     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466     # mode.  It turns out that the SunPro C++ compiler does not properly
3467     # handle `-M -o', and we need to detect this.
3468     if depmode=$depmode \
3469        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472          >/dev/null 2>conftest.err &&
3473        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476       # icc doesn't choke on unknown options, it will just issue warnings
3477       # or remarks (even with -Werror).  So we grep stderr for any message
3478       # that says an option was ignored or not supported.
3479       # When given -MP, icc 7.0 and 7.1 complain thusly:
3480       #   icc: Command line warning: ignoring option '-M'; no argument required
3481       # The diagnosis changed in icc 8.0:
3482       #   icc: Command line remark: option '-MP' not supported
3483       if (grep 'ignoring option' conftest.err ||
3484           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485         am_cv_CC_dependencies_compiler_type=$depmode
3486         break
3487       fi
3488     fi
3489   done
3490
3491   cd ..
3492   rm -rf conftest.dir
3493 else
3494   am_cv_CC_dependencies_compiler_type=none
3495 fi
3496
3497 fi
3498 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3501
3502  
3503
3504 if 
3505   test "x$enable_dependency_tracking" != xno \
3506   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3507   am__fastdepCC_TRUE=
3508   am__fastdepCC_FALSE='#'
3509 else
3510   am__fastdepCC_TRUE='#'
3511   am__fastdepCC_FALSE=
3512 fi
3513
3514
3515 ac_ext=cpp
3516 ac_cpp='$CXXCPP $CPPFLAGS'
3517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3520 if test -z "$CXX"; then
3521   if test -n "$CCC"; then
3522     CXX=$CCC
3523   else
3524     if test -n "$ac_tool_prefix"; then
3525   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3526   do
3527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3531 if test "${ac_cv_prog_CXX+set}" = set; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534   if test -n "$CXX"; then
3535   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540   IFS=$as_save_IFS
3541   test -z "$as_dir" && as_dir=.
3542   for ac_exec_ext in '' $ac_executable_extensions; do
3543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546     break 2
3547   fi
3548 done
3549 done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 CXX=$ac_cv_prog_CXX
3555 if test -n "$CXX"; then
3556   { echo "$as_me:$LINENO: result: $CXX" >&5
3557 echo "${ECHO_T}$CXX" >&6; }
3558 else
3559   { echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6; }
3561 fi
3562
3563
3564     test -n "$CXX" && break
3565   done
3566 fi
3567 if test -z "$CXX"; then
3568   ac_ct_CXX=$CXX
3569   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3570 do
3571   # Extract the first word of "$ac_prog", so it can be a program name with args.
3572 set dummy $ac_prog; ac_word=$2
3573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3575 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   if test -n "$ac_ct_CXX"; then
3579   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3580 else
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582 for as_dir in $PATH
3583 do
3584   IFS=$as_save_IFS
3585   test -z "$as_dir" && as_dir=.
3586   for ac_exec_ext in '' $ac_executable_extensions; do
3587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588     ac_cv_prog_ac_ct_CXX="$ac_prog"
3589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590     break 2
3591   fi
3592 done
3593 done
3594 IFS=$as_save_IFS
3595
3596 fi
3597 fi
3598 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3599 if test -n "$ac_ct_CXX"; then
3600   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3601 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3602 else
3603   { echo "$as_me:$LINENO: result: no" >&5
3604 echo "${ECHO_T}no" >&6; }
3605 fi
3606
3607
3608   test -n "$ac_ct_CXX" && break
3609 done
3610
3611   if test "x$ac_ct_CXX" = x; then
3612     CXX="g++"
3613   else
3614     case $cross_compiling:$ac_tool_warned in
3615 yes:)
3616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3617 whose name does not start with the host triplet.  If you think this
3618 configuration is useful to you, please write to autoconf@gnu.org." >&5
3619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3620 whose name does not start with the host triplet.  If you think this
3621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3622 ac_tool_warned=yes ;;
3623 esac
3624     CXX=$ac_ct_CXX
3625   fi
3626 fi
3627
3628   fi
3629 fi
3630 # Provide some information about the compiler.
3631 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3632 ac_compiler=`set X $ac_compile; echo $2`
3633 { (ac_try="$ac_compiler --version >&5"
3634 case "(($ac_try" in
3635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636   *) ac_try_echo=$ac_try;;
3637 esac
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639   (eval "$ac_compiler --version >&5") 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }
3643 { (ac_try="$ac_compiler -v >&5"
3644 case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649   (eval "$ac_compiler -v >&5") 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }
3653 { (ac_try="$ac_compiler -V >&5"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659   (eval "$ac_compiler -V >&5") 2>&5
3660   ac_status=$?
3661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662   (exit $ac_status); }
3663
3664 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3665 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3666 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675
3676 int
3677 main ()
3678 {
3679 #ifndef __GNUC__
3680        choke me
3681 #endif
3682
3683   ;
3684   return 0;
3685 }
3686 _ACEOF
3687 rm -f conftest.$ac_objext
3688 if { (ac_try="$ac_compile"
3689 case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694   (eval "$ac_compile") 2>conftest.er1
3695   ac_status=$?
3696   grep -v '^ *+' conftest.er1 >conftest.err
3697   rm -f conftest.er1
3698   cat conftest.err >&5
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); } && {
3701          test -z "$ac_cxx_werror_flag" ||
3702          test ! -s conftest.err
3703        } && test -s conftest.$ac_objext; then
3704   ac_compiler_gnu=yes
3705 else
3706   echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709         ac_compiler_gnu=no
3710 fi
3711
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3714
3715 fi
3716 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3717 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3718 GXX=`test $ac_compiler_gnu = yes && echo yes`
3719 ac_test_CXXFLAGS=${CXXFLAGS+set}
3720 ac_save_CXXFLAGS=$CXXFLAGS
3721 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3722 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_cxx_g+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3727    ac_cxx_werror_flag=yes
3728    ac_cv_prog_cxx_g=no
3729    CXXFLAGS="-g"
3730    cat >conftest.$ac_ext <<_ACEOF
3731 /* confdefs.h.  */
3732 _ACEOF
3733 cat confdefs.h >>conftest.$ac_ext
3734 cat >>conftest.$ac_ext <<_ACEOF
3735 /* end confdefs.h.  */
3736
3737 int
3738 main ()
3739 {
3740
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3747 case "(($ac_try" in
3748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749   *) ac_try_echo=$ac_try;;
3750 esac
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752   (eval "$ac_compile") 2>conftest.er1
3753   ac_status=$?
3754   grep -v '^ *+' conftest.er1 >conftest.err
3755   rm -f conftest.er1
3756   cat conftest.err >&5
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); } && {
3759          test -z "$ac_cxx_werror_flag" ||
3760          test ! -s conftest.err
3761        } && test -s conftest.$ac_objext; then
3762   ac_cv_prog_cxx_g=yes
3763 else
3764   echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3766
3767         CXXFLAGS=""
3768       cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h.  */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h.  */
3774
3775 int
3776 main ()
3777 {
3778
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3785 case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790   (eval "$ac_compile") 2>conftest.er1
3791   ac_status=$?
3792   grep -v '^ *+' conftest.er1 >conftest.err
3793   rm -f conftest.er1
3794   cat conftest.err >&5
3795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796   (exit $ac_status); } && {
3797          test -z "$ac_cxx_werror_flag" ||
3798          test ! -s conftest.err
3799        } && test -s conftest.$ac_objext; then
3800   :
3801 else
3802   echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3806          CXXFLAGS="-g"
3807          cat >conftest.$ac_ext <<_ACEOF
3808 /* confdefs.h.  */
3809 _ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h.  */
3813
3814 int
3815 main ()
3816 {
3817
3818   ;
3819   return 0;
3820 }
3821 _ACEOF
3822 rm -f conftest.$ac_objext
3823 if { (ac_try="$ac_compile"
3824 case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829   (eval "$ac_compile") 2>conftest.er1
3830   ac_status=$?
3831   grep -v '^ *+' conftest.er1 >conftest.err
3832   rm -f conftest.er1
3833   cat conftest.err >&5
3834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835   (exit $ac_status); } && {
3836          test -z "$ac_cxx_werror_flag" ||
3837          test ! -s conftest.err
3838        } && test -s conftest.$ac_objext; then
3839   ac_cv_prog_cxx_g=yes
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844         
3845 fi
3846
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 fi
3852
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3855 fi
3856 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3857 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3858 if test "$ac_test_CXXFLAGS" = set; then
3859   CXXFLAGS=$ac_save_CXXFLAGS
3860 elif test $ac_cv_prog_cxx_g = yes; then
3861   if test "$GXX" = yes; then
3862     CXXFLAGS="-g -O2"
3863   else
3864     CXXFLAGS="-g"
3865   fi
3866 else
3867   if test "$GXX" = yes; then
3868     CXXFLAGS="-O2"
3869   else
3870     CXXFLAGS=
3871   fi
3872 fi
3873 ac_ext=c
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878
3879 depcc="$CXX"  am_compiler_list=
3880
3881 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3882 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3883 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3887   # We make a subdir and do the tests there.  Otherwise we can end up
3888   # making bogus files that we don't know about and never remove.  For
3889   # instance it was reported that on HP-UX the gcc test will end up
3890   # making a dummy file named `D' -- because `-MD' means `put the output
3891   # in D'.
3892   mkdir conftest.dir
3893   # Copy depcomp to subdir because otherwise we won't find it if we're
3894   # using a relative directory.
3895   cp "$am_depcomp" conftest.dir
3896   cd conftest.dir
3897   # We will build objects and dependencies in a subdirectory because
3898   # it helps to detect inapplicable dependency modes.  For instance
3899   # both Tru64's cc and ICC support -MD to output dependencies as a
3900   # side effect of compilation, but ICC will put the dependencies in
3901   # the current directory while Tru64 will put them in the object
3902   # directory.
3903   mkdir sub
3904
3905   am_cv_CXX_dependencies_compiler_type=none
3906   if test "$am_compiler_list" = ""; then
3907      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3908   fi
3909   for depmode in $am_compiler_list; do
3910     # Setup a source with many dependencies, because some compilers
3911     # like to wrap large dependency lists on column 80 (with \), and
3912     # we should not choose a depcomp mode which is confused by this.
3913     #
3914     # We need to recreate these files for each test, as the compiler may
3915     # overwrite some of them when testing with obscure command lines.
3916     # This happens at least with the AIX C compiler.
3917     : > sub/conftest.c
3918     for i in 1 2 3 4 5 6; do
3919       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3920       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3921       # Solaris 8's {/usr,}/bin/sh.
3922       touch sub/conftst$i.h
3923     done
3924     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3925
3926     case $depmode in
3927     nosideeffect)
3928       # after this tag, mechanisms are not by side-effect, so they'll
3929       # only be used when explicitly requested
3930       if test "x$enable_dependency_tracking" = xyes; then
3931         continue
3932       else
3933         break
3934       fi
3935       ;;
3936     none) break ;;
3937     esac
3938     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3939     # mode.  It turns out that the SunPro C++ compiler does not properly
3940     # handle `-M -o', and we need to detect this.
3941     if depmode=$depmode \
3942        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3943        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3944        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3945          >/dev/null 2>conftest.err &&
3946        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3948        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949       # icc doesn't choke on unknown options, it will just issue warnings
3950       # or remarks (even with -Werror).  So we grep stderr for any message
3951       # that says an option was ignored or not supported.
3952       # When given -MP, icc 7.0 and 7.1 complain thusly:
3953       #   icc: Command line warning: ignoring option '-M'; no argument required
3954       # The diagnosis changed in icc 8.0:
3955       #   icc: Command line remark: option '-MP' not supported
3956       if (grep 'ignoring option' conftest.err ||
3957           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958         am_cv_CXX_dependencies_compiler_type=$depmode
3959         break
3960       fi
3961     fi
3962   done
3963
3964   cd ..
3965   rm -rf conftest.dir
3966 else
3967   am_cv_CXX_dependencies_compiler_type=none
3968 fi
3969
3970 fi
3971 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3972 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3973 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3974
3975  
3976
3977 if 
3978   test "x$enable_dependency_tracking" != xno \
3979   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3980   am__fastdepCXX_TRUE=
3981   am__fastdepCXX_FALSE='#'
3982 else
3983   am__fastdepCXX_TRUE='#'
3984   am__fastdepCXX_FALSE=
3985 fi
3986
3987
3988 # Check whether --enable-shared was given.
3989 if test "${enable_shared+set}" = set; then
3990   enableval=$enable_shared; p=${PACKAGE-default}
3991     case $enableval in
3992     yes) enable_shared=yes ;;
3993     no) enable_shared=no ;;
3994     *)
3995       enable_shared=no
3996       # Look at the argument we got.  We use all the common list separators.
3997       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3998       for pkg in $enableval; do
3999         IFS="$lt_save_ifs"
4000         if test "X$pkg" = "X$p"; then
4001           enable_shared=yes
4002         fi
4003       done
4004       IFS="$lt_save_ifs"
4005       ;;
4006     esac
4007 else
4008   enable_shared=yes
4009 fi
4010
4011
4012 # Check whether --enable-static was given.
4013 if test "${enable_static+set}" = set; then
4014   enableval=$enable_static; p=${PACKAGE-default}
4015     case $enableval in
4016     yes) enable_static=yes ;;
4017     no) enable_static=no ;;
4018     *)
4019      enable_static=no
4020       # Look at the argument we got.  We use all the common list separators.
4021       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4022       for pkg in $enableval; do
4023         IFS="$lt_save_ifs"
4024         if test "X$pkg" = "X$p"; then
4025           enable_static=yes
4026         fi
4027       done
4028       IFS="$lt_save_ifs"
4029       ;;
4030     esac
4031 else
4032   enable_static=yes
4033 fi
4034
4035
4036 # Check whether --enable-fast-install was given.
4037 if test "${enable_fast_install+set}" = set; then
4038   enableval=$enable_fast_install; p=${PACKAGE-default}
4039     case $enableval in
4040     yes) enable_fast_install=yes ;;
4041     no) enable_fast_install=no ;;
4042     *)
4043       enable_fast_install=no
4044       # Look at the argument we got.  We use all the common list separators.
4045       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4046       for pkg in $enableval; do
4047         IFS="$lt_save_ifs"
4048         if test "X$pkg" = "X$p"; then
4049           enable_fast_install=yes
4050         fi
4051       done
4052       IFS="$lt_save_ifs"
4053       ;;
4054     esac
4055 else
4056   enable_fast_install=yes
4057 fi
4058
4059
4060 # Make sure we can run config.sub.
4061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4062   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4064    { (exit 1); exit 1; }; }
4065
4066 { echo "$as_me:$LINENO: checking build system type" >&5
4067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4068 if test "${ac_cv_build+set}" = set; then
4069   echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071   ac_build_alias=$build_alias
4072 test "x$ac_build_alias" = x &&
4073   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4074 test "x$ac_build_alias" = x &&
4075   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4077    { (exit 1); exit 1; }; }
4078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4079   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4081    { (exit 1); exit 1; }; }
4082
4083 fi
4084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4085 echo "${ECHO_T}$ac_cv_build" >&6; }
4086 case $ac_cv_build in
4087 *-*-*) ;;
4088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4089 echo "$as_me: error: invalid value of canonical build" >&2;}
4090    { (exit 1); exit 1; }; };;
4091 esac
4092 build=$ac_cv_build
4093 ac_save_IFS=$IFS; IFS='-'
4094 set x $ac_cv_build
4095 shift
4096 build_cpu=$1
4097 build_vendor=$2
4098 shift; shift
4099 # Remember, the first character of IFS is used to create $*,
4100 # except with old shells:
4101 build_os=$*
4102 IFS=$ac_save_IFS
4103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4104
4105
4106 { echo "$as_me:$LINENO: checking host system type" >&5
4107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4108 if test "${ac_cv_host+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   if test "x$host_alias" = x; then
4112   ac_cv_host=$ac_cv_build
4113 else
4114   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4115     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4117    { (exit 1); exit 1; }; }
4118 fi
4119
4120 fi
4121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4122 echo "${ECHO_T}$ac_cv_host" >&6; }
4123 case $ac_cv_host in
4124 *-*-*) ;;
4125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4126 echo "$as_me: error: invalid value of canonical host" >&2;}
4127    { (exit 1); exit 1; }; };;
4128 esac
4129 host=$ac_cv_host
4130 ac_save_IFS=$IFS; IFS='-'
4131 set x $ac_cv_host
4132 shift
4133 host_cpu=$1
4134 host_vendor=$2
4135 shift; shift
4136 # Remember, the first character of IFS is used to create $*,
4137 # except with old shells:
4138 host_os=$*
4139 IFS=$ac_save_IFS
4140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4141
4142
4143 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4144 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4145 if test "${lt_cv_path_SED+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   # Loop through the user's path and test for sed and gsed.
4149 # Then use that list of sed's as ones to test for truncation.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for lt_ac_prog in sed gsed; do
4156     for ac_exec_ext in '' $ac_executable_extensions; do
4157       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4158         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4159       fi
4160     done
4161   done
4162 done
4163 lt_ac_max=0
4164 lt_ac_count=0
4165 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4166 # along with /bin/sed that truncates output.
4167 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4168   test ! -f $lt_ac_sed && continue
4169   cat /dev/null > conftest.in
4170   lt_ac_count=0
4171   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4172   # Check for GNU sed and select it if it is found.
4173   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4174     lt_cv_path_SED=$lt_ac_sed
4175     break
4176   fi
4177   while true; do
4178     cat conftest.in conftest.in >conftest.tmp
4179     mv conftest.tmp conftest.in
4180     cp conftest.in conftest.nl
4181     echo >>conftest.nl
4182     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4183     cmp -s conftest.out conftest.nl || break
4184     # 10000 chars as input seems more than enough
4185     test $lt_ac_count -gt 10 && break
4186     lt_ac_count=`expr $lt_ac_count + 1`
4187     if test $lt_ac_count -gt $lt_ac_max; then
4188       lt_ac_max=$lt_ac_count
4189       lt_cv_path_SED=$lt_ac_sed
4190     fi
4191   done
4192 done
4193
4194 fi
4195
4196 SED=$lt_cv_path_SED
4197 { echo "$as_me:$LINENO: result: $SED" >&5
4198 echo "${ECHO_T}$SED" >&6; }
4199
4200 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4201 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4202 if test "${ac_cv_path_GREP+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   # Extract the first word of "grep ggrep" to use in msg output
4206 if test -z "$GREP"; then
4207 set dummy grep ggrep; ac_prog_name=$2
4208 if test "${ac_cv_path_GREP+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   ac_path_GREP_found=false
4212 # Loop through the user's path and test for each of PROGNAME-LIST
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4215 do
4216   IFS=$as_save_IFS
4217   test -z "$as_dir" && as_dir=.
4218   for ac_prog in grep ggrep; do
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4221     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4222     # Check for GNU ac_path_GREP and select it if it is found.
4223   # Check for GNU $ac_path_GREP
4224 case `"$ac_path_GREP" --version 2>&1` in
4225 *GNU*)
4226   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4227 *)
4228   ac_count=0
4229   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4230   while :
4231   do
4232     cat "conftest.in" "conftest.in" >"conftest.tmp"
4233     mv "conftest.tmp" "conftest.in"
4234     cp "conftest.in" "conftest.nl"
4235     echo 'GREP' >> "conftest.nl"
4236     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4237     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4238     ac_count=`expr $ac_count + 1`
4239     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4240       # Best one so far, save it but keep looking for a better one
4241       ac_cv_path_GREP="$ac_path_GREP"
4242       ac_path_GREP_max=$ac_count
4243     fi
4244     # 10*(2^10) chars as input seems more than enough
4245     test $ac_count -gt 10 && break
4246   done
4247   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4248 esac
4249
4250
4251     $ac_path_GREP_found && break 3
4252   done
4253 done
4254
4255 done
4256 IFS=$as_save_IFS
4257
4258
4259 fi
4260
4261 GREP="$ac_cv_path_GREP"
4262 if test -z "$GREP"; then
4263   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4265    { (exit 1); exit 1; }; }
4266 fi
4267
4268 else
4269   ac_cv_path_GREP=$GREP
4270 fi
4271
4272
4273 fi
4274 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4275 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4276  GREP="$ac_cv_path_GREP"
4277  
4278
4279 { echo "$as_me:$LINENO: checking for egrep" >&5
4280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4281 if test "${ac_cv_path_EGREP+set}" = set; then
4282   echo $ECHO_N "(cached) $ECHO_C" >&6
4283 else
4284   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4285    then ac_cv_path_EGREP="$GREP -E"
4286    else
4287      # Extract the first word of "egrep" to use in msg output
4288 if test -z "$EGREP"; then
4289 set dummy egrep; ac_prog_name=$2
4290 if test "${ac_cv_path_EGREP+set}" = set; then
4291   echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293   ac_path_EGREP_found=false
4294 # Loop through the user's path and test for each of PROGNAME-LIST
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   for ac_prog in egrep; do
4301   for ac_exec_ext in '' $ac_executable_extensions; do
4302     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4303     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4304     # Check for GNU ac_path_EGREP and select it if it is found.
4305   # Check for GNU $ac_path_EGREP
4306 case `"$ac_path_EGREP" --version 2>&1` in
4307 *GNU*)
4308   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4309 *)
4310   ac_count=0
4311   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4312   while :
4313   do
4314     cat "conftest.in" "conftest.in" >"conftest.tmp"
4315     mv "conftest.tmp" "conftest.in"
4316     cp "conftest.in" "conftest.nl"
4317     echo 'EGREP' >> "conftest.nl"
4318     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4319     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4320     ac_count=`expr $ac_count + 1`
4321     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4322       # Best one so far, save it but keep looking for a better one
4323       ac_cv_path_EGREP="$ac_path_EGREP"
4324       ac_path_EGREP_max=$ac_count
4325     fi
4326     # 10*(2^10) chars as input seems more than enough
4327     test $ac_count -gt 10 && break
4328   done
4329   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4330 esac
4331
4332
4333     $ac_path_EGREP_found && break 3
4334   done
4335 done
4336
4337 done
4338 IFS=$as_save_IFS
4339
4340
4341 fi
4342
4343 EGREP="$ac_cv_path_EGREP"
4344 if test -z "$EGREP"; then
4345   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4347    { (exit 1); exit 1; }; }
4348 fi
4349
4350 else
4351   ac_cv_path_EGREP=$EGREP
4352 fi
4353
4354
4355    fi
4356 fi
4357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4359  EGREP="$ac_cv_path_EGREP"
4360  
4361
4362
4363 # Check whether --with-gnu-ld was given.
4364 if test "${with_gnu_ld+set}" = set; then
4365   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4366 else
4367   with_gnu_ld=no
4368 fi
4369
4370 ac_prog=ld
4371 if test "$GCC" = yes; then
4372   # Check if gcc -print-prog-name=ld gives a path.
4373   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4374 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4375   case $host in
4376   *-*-mingw*)
4377     # gcc leaves a trailing carriage return which upsets mingw
4378     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4379   *)
4380     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4381   esac
4382   case $ac_prog in
4383     # Accept absolute paths.
4384     [\\/]* | ?:[\\/]*)
4385       re_direlt='/[^/][^/]*/\.\./'
4386       # Canonicalize the pathname of ld
4387       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4388       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4389         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4390       done
4391       test -z "$LD" && LD="$ac_prog"
4392       ;;
4393   "")
4394     # If it fails, then pretend we aren't using GCC.
4395     ac_prog=ld
4396     ;;
4397   *)
4398     # If it is relative, then search for the first ld in PATH.
4399     with_gnu_ld=unknown
4400     ;;
4401   esac
4402 elif test "$with_gnu_ld" = yes; then
4403   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4404 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4405 else
4406   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4407 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4408 fi
4409 if test "${lt_cv_path_LD+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   if test -z "$LD"; then
4413   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4414   for ac_dir in $PATH; do
4415     IFS="$lt_save_ifs"
4416     test -z "$ac_dir" && ac_dir=.
4417     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4418       lt_cv_path_LD="$ac_dir/$ac_prog"
4419       # Check to see if the program is GNU ld.  I'd rather use --version,
4420       # but apparently some variants of GNU ld only accept -v.
4421       # Break only if it was the GNU/non-GNU ld that we prefer.
4422       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4423       *GNU* | *'with BFD'*)
4424         test "$with_gnu_ld" != no && break
4425         ;;
4426       *)
4427         test "$with_gnu_ld" != yes && break
4428         ;;
4429       esac
4430     fi
4431   done
4432   IFS="$lt_save_ifs"
4433 else
4434   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4435 fi
4436 fi
4437
4438 LD="$lt_cv_path_LD"
4439 if test -n "$LD"; then
4440   { echo "$as_me:$LINENO: result: $LD" >&5
4441 echo "${ECHO_T}$LD" >&6; }
4442 else
4443   { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4445 fi
4446 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4447 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4448    { (exit 1); exit 1; }; }
4449 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4450 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4451 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4455 case `$LD -v 2>&1 </dev/null` in
4456 *GNU* | *'with BFD'*)
4457   lt_cv_prog_gnu_ld=yes
4458   ;;
4459 *)
4460   lt_cv_prog_gnu_ld=no
4461   ;;
4462 esac
4463 fi
4464 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4465 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4466 with_gnu_ld=$lt_cv_prog_gnu_ld
4467
4468
4469 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4470 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4471 if test "${lt_cv_ld_reload_flag+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   lt_cv_ld_reload_flag='-r'
4475 fi
4476 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4477 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4478 reload_flag=$lt_cv_ld_reload_flag
4479 case $reload_flag in
4480 "" | " "*) ;;
4481 *) reload_flag=" $reload_flag" ;;
4482 esac
4483 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4484 case $host_os in
4485   darwin*)
4486     if test "$GCC" = yes; then
4487       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4488     else
4489       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4490     fi
4491     ;;
4492 esac
4493
4494 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4495 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4496 if test "${lt_cv_path_NM+set}" = set; then
4497   echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499   if test -n "$NM"; then
4500   # Let the user override the test.
4501   lt_cv_path_NM="$NM"
4502 else
4503   lt_nm_to_check="${ac_tool_prefix}nm"
4504   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
4505     lt_nm_to_check="$lt_nm_to_check nm"
4506   fi
4507   for lt_tmp_nm in $lt_nm_to_check; do
4508     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4509     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4510       IFS="$lt_save_ifs"
4511       test -z "$ac_dir" && ac_dir=.
4512       tmp_nm="$ac_dir/$lt_tmp_nm"
4513       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4514         # Check to see if the nm accepts a BSD-compat flag.
4515         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4516         #   nm: unknown option "B" ignored
4517         # Tru64's nm complains that /dev/null is an invalid object file
4518         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4519         */dev/null* | *'Invalid file or object type'*)
4520           lt_cv_path_NM="$tmp_nm -B"
4521           break
4522           ;;
4523         *)
4524           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4525           */dev/null*)
4526             lt_cv_path_NM="$tmp_nm -p"
4527             break
4528             ;;
4529           *)
4530             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4531             continue # so that we can try to find one that supports BSD flags
4532             ;;
4533           esac
4534           ;;
4535         esac
4536       fi
4537     done
4538     IFS="$lt_save_ifs"
4539   done
4540   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4541 fi
4542 fi
4543 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4544 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4545 NM="$lt_cv_path_NM"
4546
4547 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4548 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4549 LN_S=$as_ln_s
4550 if test "$LN_S" = "ln -s"; then
4551   { echo "$as_me:$LINENO: result: yes" >&5
4552 echo "${ECHO_T}yes" >&6; }
4553 else
4554   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4555 echo "${ECHO_T}no, using $LN_S" >&6; }
4556 fi
4557
4558 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4559 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4560 if test "${lt_cv_deplibs_check_method+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   lt_cv_file_magic_cmd='$MAGIC_CMD'
4564 lt_cv_file_magic_test_file=
4565 lt_cv_deplibs_check_method='unknown'
4566 # Need to set the preceding variable on all platforms that support
4567 # interlibrary dependencies.
4568 # 'none' -- dependencies not supported.
4569 # `unknown' -- same as none, but documents that we really don't know.
4570 # 'pass_all' -- all dependencies passed with no checks.
4571 # 'test_compile' -- check by making test program.
4572 # 'file_magic [[regex]]' -- check by looking for files in library path
4573 # which responds to the $file_magic_cmd with a given extended regex.
4574 # If you have `file' or equivalent on your system and you're not sure
4575 # whether `pass_all' will *always* work, you probably want this one.
4576
4577 case $host_os in
4578 aix4* | aix5*)
4579   lt_cv_deplibs_check_method=pass_all
4580   ;;
4581
4582 beos*)
4583   lt_cv_deplibs_check_method=pass_all
4584   ;;
4585
4586 bsdi[45]*)
4587   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4588   lt_cv_file_magic_cmd='/usr/bin/file -L'
4589   lt_cv_file_magic_test_file=/shlib/libc.so
4590   ;;
4591
4592 cygwin*)
4593   # func_win32_libid is a shell function defined in ltmain.sh
4594   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4595   lt_cv_file_magic_cmd='func_win32_libid'
4596   ;;
4597
4598 mingw* | pw32*)
4599   # Base MSYS/MinGW do not provide the 'file' command needed by
4600   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4601   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4602   lt_cv_file_magic_cmd='$OBJDUMP -f'
4603   ;;
4604
4605 darwin* | rhapsody*)
4606   lt_cv_deplibs_check_method=pass_all
4607   ;;
4608
4609 freebsd* | kfreebsd*-gnu | dragonfly*)
4610   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4611     case $host_cpu in
4612     i*86 )
4613       # Not sure whether the presence of OpenBSD here was a mistake.
4614       # Let's accept both of them until this is cleared up.
4615       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4616       lt_cv_file_magic_cmd=/usr/bin/file
4617       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4618       ;;
4619     esac
4620   else
4621     lt_cv_deplibs_check_method=pass_all
4622   fi
4623   ;;
4624
4625 gnu*)
4626   lt_cv_deplibs_check_method=pass_all
4627   ;;
4628
4629 hpux10.20* | hpux11*)
4630   lt_cv_file_magic_cmd=/usr/bin/file
4631   case $host_cpu in
4632   ia64*)
4633     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4634     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4635     ;;
4636   hppa*64*)
4637     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]'
4638     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4639     ;;
4640   *)
4641     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4642     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4643     ;;
4644   esac
4645   ;;
4646
4647 interix3*)
4648   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4649   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4650   ;;
4651
4652 irix5* | irix6* | nonstopux*)
4653   case $LD in
4654   *-32|*"-32 ") libmagic=32-bit;;
4655   *-n32|*"-n32 ") libmagic=N32;;
4656   *-64|*"-64 ") libmagic=64-bit;;
4657   *) libmagic=never-match;;
4658   esac
4659   lt_cv_deplibs_check_method=pass_all
4660   ;;
4661
4662 # This must be Linux ELF.
4663 linux*)
4664   lt_cv_deplibs_check_method=pass_all
4665   ;;
4666
4667 netbsd*)
4668   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4669     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4670   else
4671     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4672   fi
4673   ;;
4674
4675 newos6*)
4676   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4677   lt_cv_file_magic_cmd=/usr/bin/file
4678   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4679   ;;
4680
4681 nto-qnx*)
4682   lt_cv_deplibs_check_method=unknown
4683   ;;
4684
4685 openbsd*)
4686   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4687     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4688   else
4689     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4690   fi
4691   ;;
4692
4693 osf3* | osf4* | osf5*)
4694   lt_cv_deplibs_check_method=pass_all
4695   ;;
4696
4697 solaris*)
4698   lt_cv_deplibs_check_method=pass_all
4699   ;;
4700
4701 sysv4 | sysv4.3*)
4702   case $host_vendor in
4703   motorola)
4704     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]'
4705     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4706     ;;
4707   ncr)
4708     lt_cv_deplibs_check_method=pass_all
4709     ;;
4710   sequent)
4711     lt_cv_file_magic_cmd='/bin/file'
4712     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4713     ;;
4714   sni)
4715     lt_cv_file_magic_cmd='/bin/file'
4716     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4717     lt_cv_file_magic_test_file=/lib/libc.so
4718     ;;
4719   siemens)
4720     lt_cv_deplibs_check_method=pass_all
4721     ;;
4722   pc)
4723     lt_cv_deplibs_check_method=pass_all
4724     ;;
4725   esac
4726   ;;
4727
4728 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4729   lt_cv_deplibs_check_method=pass_all
4730   ;;
4731 esac
4732
4733 fi
4734 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4735 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4736 file_magic_cmd=$lt_cv_file_magic_cmd
4737 deplibs_check_method=$lt_cv_deplibs_check_method
4738 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4739
4740
4741
4742
4743 # If no C compiler was specified, use CC.
4744 LTCC=${LTCC-"$CC"}
4745
4746 # If no C compiler flags were specified, use CFLAGS.
4747 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4748
4749 # Allow CC to be a program name with arguments.
4750 compiler=$CC
4751
4752
4753 # Check whether --enable-libtool-lock was given.
4754 if test "${enable_libtool_lock+set}" = set; then
4755   enableval=$enable_libtool_lock; 
4756 fi
4757
4758 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4759
4760 # Some flags need to be propagated to the compiler or linker for good
4761 # libtool support.
4762 case $host in
4763 ia64-*-hpux*)
4764   # Find out which ABI we are using.
4765   echo 'int i;' > conftest.$ac_ext
4766   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767   (eval $ac_compile) 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; then
4771     case `/usr/bin/file conftest.$ac_objext` in
4772     *ELF-32*)
4773       HPUX_IA64_MODE="32"
4774       ;;
4775     *ELF-64*)
4776       HPUX_IA64_MODE="64"
4777       ;;
4778     esac
4779   fi
4780   rm -rf conftest*
4781   ;;
4782 *-*-irix6*)
4783   # Find out which ABI we are using.
4784   echo '#line __oline__ "configure"' > conftest.$ac_ext
4785   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786   (eval $ac_compile) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; then
4790    if test "$lt_cv_prog_gnu_ld" = yes; then
4791     case `/usr/bin/file conftest.$ac_objext` in
4792     *32-bit*)
4793       LD="${LD-ld} -melf32bsmip"
4794       ;;
4795     *N32*)
4796       LD="${LD-ld} -melf32bmipn32"
4797       ;;
4798     *64-bit*)
4799       LD="${LD-ld} -melf64bmip"
4800       ;;
4801     esac
4802    else
4803     case `/usr/bin/file conftest.$ac_objext` in
4804     *32-bit*)
4805       LD="${LD-ld} -32"
4806       ;;
4807     *N32*)
4808       LD="${LD-ld} -n32"
4809       ;;
4810     *64-bit*)
4811       LD="${LD-ld} -64"
4812       ;;
4813     esac
4814    fi
4815   fi
4816   rm -rf conftest*
4817   ;;
4818
4819 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4820   # Find out which ABI we are using.
4821   echo 'int i;' > conftest.$ac_ext
4822   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823   (eval $ac_compile) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; then
4827     case `/usr/bin/file conftest.o` in
4828     *32-bit*)
4829       case $host in
4830         x86_64-*linux*)
4831           LD="${LD-ld} -m elf_i386"
4832           ;;
4833         ppc64-*linux*|powerpc64-*linux*)
4834           LD="${LD-ld} -m elf32ppclinux"
4835           ;;
4836         s390x-*linux*)
4837           LD="${LD-ld} -m elf_s390"
4838           ;;
4839         sparc64-*linux*)
4840           LD="${LD-ld} -m elf32_sparc"
4841           ;;
4842       esac
4843       ;;
4844     *64-bit*)
4845       case $host in
4846         x86_64-*linux*)
4847           LD="${LD-ld} -m elf_x86_64"
4848           ;;
4849         ppc*-*linux*|powerpc*-*linux*)
4850           LD="${LD-ld} -m elf64ppc"
4851           ;;
4852         s390*-*linux*)
4853           LD="${LD-ld} -m elf64_s390"
4854           ;;
4855         sparc*-*linux*)
4856           LD="${LD-ld} -m elf64_sparc"
4857           ;;
4858       esac
4859       ;;
4860     esac
4861   fi
4862   rm -rf conftest*
4863   ;;
4864
4865 *-*-sco3.2v5*)
4866   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4867   SAVE_CFLAGS="$CFLAGS"
4868   CFLAGS="$CFLAGS -belf"
4869   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4870 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4871 if test "${lt_cv_cc_needs_belf+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   ac_ext=c
4875 ac_cpp='$CPP $CPPFLAGS'
4876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879
4880      cat >conftest.$ac_ext <<_ACEOF
4881 /* confdefs.h.  */
4882 _ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h.  */
4886
4887 int
4888 main ()
4889 {
4890
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 rm -f conftest.$ac_objext conftest$ac_exeext
4896 if { (ac_try="$ac_link"
4897 case "(($ac_try" in
4898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899   *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902   (eval "$ac_link") 2>conftest.er1
4903   ac_status=$?
4904   grep -v '^ *+' conftest.er1 >conftest.err
4905   rm -f conftest.er1
4906   cat conftest.err >&5
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); } && {
4909          test -z "$ac_c_werror_flag" ||
4910          test ! -s conftest.err
4911        } && test -s conftest$ac_exeext &&
4912        $as_test_x conftest$ac_exeext; then
4913   lt_cv_cc_needs_belf=yes
4914 else
4915   echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918         lt_cv_cc_needs_belf=no
4919 fi
4920
4921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4922       conftest$ac_exeext conftest.$ac_ext
4923      ac_ext=c
4924 ac_cpp='$CPP $CPPFLAGS'
4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4928
4929 fi
4930 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4932   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4933     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4934     CFLAGS="$SAVE_CFLAGS"
4935   fi
4936   ;;
4937 sparc*-*solaris*)
4938   # Find out which ABI we are using.
4939   echo 'int i;' > conftest.$ac_ext
4940   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941   (eval $ac_compile) 2>&5
4942   ac_status=$?
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); }; then
4945     case `/usr/bin/file conftest.o` in
4946     *64-bit*)
4947       case $lt_cv_prog_gnu_ld in
4948       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4949       *)    LD="${LD-ld} -64" ;;
4950       esac
4951       ;;
4952     esac
4953   fi
4954   rm -rf conftest*
4955   ;;
4956
4957
4958 esac
4959
4960 need_locks="$enable_libtool_lock"
4961
4962
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4969 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4970 # On Suns, sometimes $CPP names a directory.
4971 if test -n "$CPP" && test -d "$CPP"; then
4972   CPP=
4973 fi
4974 if test -z "$CPP"; then
4975   if test "${ac_cv_prog_CPP+set}" = set; then
4976   echo $ECHO_N "(cached) $ECHO_C" >&6
4977 else
4978       # Double quotes because CPP needs to be expanded
4979     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4980     do
4981       ac_preproc_ok=false
4982 for ac_c_preproc_warn_flag in '' yes
4983 do
4984   # Use a header file that comes with gcc, so configuring glibc
4985   # with a fresh cross-compiler works.
4986   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987   # <limits.h> exists even on freestanding compilers.
4988   # On the NeXT, cc -E runs the code through the compiler's parser,
4989   # not just through cpp. "Syntax error" is here to catch this case.
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 @%:@ifdef __STDC__
4997 @%:@ include <limits.h>
4998 @%:@else
4999 @%:@ include <assert.h>
5000 @%:@endif
5001                      Syntax error
5002 _ACEOF
5003 if { (ac_try="$ac_cpp conftest.$ac_ext"
5004 case "(($ac_try" in
5005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006   *) ac_try_echo=$ac_try;;
5007 esac
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5010   ac_status=$?
5011   grep -v '^ *+' conftest.er1 >conftest.err
5012   rm -f conftest.er1
5013   cat conftest.err >&5
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); } >/dev/null && {
5016          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5017          test ! -s conftest.err
5018        }; then
5019   :
5020 else
5021   echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5023
5024   # Broken: fails on valid input.
5025 continue
5026 fi
5027
5028 rm -f conftest.err conftest.$ac_ext
5029
5030   # OK, works on sane cases.  Now check whether nonexistent headers
5031   # can be detected and how.
5032   cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 @%:@include <ac_nonexistent.h>
5039 _ACEOF
5040 if { (ac_try="$ac_cpp conftest.$ac_ext"
5041 case "(($ac_try" in
5042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043   *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5047   ac_status=$?
5048   grep -v '^ *+' conftest.er1 >conftest.err
5049   rm -f conftest.er1
5050   cat conftest.err >&5
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } >/dev/null && {
5053          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5054          test ! -s conftest.err
5055        }; then
5056   # Broken: success on invalid input.
5057 continue
5058 else
5059   echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062   # Passes both tests.
5063 ac_preproc_ok=:
5064 break
5065 fi
5066
5067 rm -f conftest.err conftest.$ac_ext
5068
5069 done
5070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071 rm -f conftest.err conftest.$ac_ext
5072 if $ac_preproc_ok; then
5073   break
5074 fi
5075
5076     done
5077     ac_cv_prog_CPP=$CPP
5078   
5079 fi
5080   CPP=$ac_cv_prog_CPP
5081 else
5082   ac_cv_prog_CPP=$CPP
5083 fi
5084 { echo "$as_me:$LINENO: result: $CPP" >&5
5085 echo "${ECHO_T}$CPP" >&6; }
5086 ac_preproc_ok=false
5087 for ac_c_preproc_warn_flag in '' yes
5088 do
5089   # Use a header file that comes with gcc, so configuring glibc
5090   # with a fresh cross-compiler works.
5091   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092   # <limits.h> exists even on freestanding compilers.
5093   # On the NeXT, cc -E runs the code through the compiler's parser,
5094   # not just through cpp. "Syntax error" is here to catch this case.
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 @%:@ifdef __STDC__
5102 @%:@ include <limits.h>
5103 @%:@else
5104 @%:@ include <assert.h>
5105 @%:@endif
5106                      Syntax error
5107 _ACEOF
5108 if { (ac_try="$ac_cpp conftest.$ac_ext"
5109 case "(($ac_try" in
5110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111   *) ac_try_echo=$ac_try;;
5112 esac
5113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5115   ac_status=$?
5116   grep -v '^ *+' conftest.er1 >conftest.err
5117   rm -f conftest.er1
5118   cat conftest.err >&5
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } >/dev/null && {
5121          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5122          test ! -s conftest.err
5123        }; then
5124   :
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129   # Broken: fails on valid input.
5130 continue
5131 fi
5132
5133 rm -f conftest.err conftest.$ac_ext
5134
5135   # OK, works on sane cases.  Now check whether nonexistent headers
5136   # can be detected and how.
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 @%:@include <ac_nonexistent.h>
5144 _ACEOF
5145 if { (ac_try="$ac_cpp conftest.$ac_ext"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } >/dev/null && {
5158          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5159          test ! -s conftest.err
5160        }; then
5161   # Broken: success on invalid input.
5162 continue
5163 else
5164   echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167   # Passes both tests.
5168 ac_preproc_ok=:
5169 break
5170 fi
5171
5172 rm -f conftest.err conftest.$ac_ext
5173
5174 done
5175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5176 rm -f conftest.err conftest.$ac_ext
5177 if $ac_preproc_ok; then
5178   :
5179 else
5180   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5181 See \`config.log' for more details." >&5
5182 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5183 See \`config.log' for more details." >&2;}
5184    { (exit 1); exit 1; }; }
5185 fi
5186
5187 ac_ext=c
5188 ac_cpp='$CPP $CPPFLAGS'
5189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192
5193
5194 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5195 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5196 if test "${ac_cv_header_stdc+set}" = set; then
5197   echo $ECHO_N "(cached) $ECHO_C" >&6
5198 else
5199   cat >conftest.$ac_ext <<_ACEOF
5200 /* confdefs.h.  */
5201 _ACEOF
5202 cat confdefs.h >>conftest.$ac_ext
5203 cat >>conftest.$ac_ext <<_ACEOF
5204 /* end confdefs.h.  */
5205 #include <stdlib.h>
5206 #include <stdarg.h>
5207 #include <string.h>
5208 #include <float.h>
5209
5210 int
5211 main ()
5212 {
5213
5214   ;
5215   return 0;
5216 }
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (ac_try="$ac_compile"
5220 case "(($ac_try" in
5221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222   *) ac_try_echo=$ac_try;;
5223 esac
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225   (eval "$ac_compile") 2>conftest.er1
5226   ac_status=$?
5227   grep -v '^ *+' conftest.er1 >conftest.err
5228   rm -f conftest.er1
5229   cat conftest.err >&5
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); } && {
5232          test -z "$ac_c_werror_flag" ||
5233          test ! -s conftest.err
5234        } && test -s conftest.$ac_objext; then
5235   ac_cv_header_stdc=yes
5236 else
5237   echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240         ac_cv_header_stdc=no
5241 fi
5242
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5244
5245 if test $ac_cv_header_stdc = yes; then
5246   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5247   cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h.  */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h.  */
5253 #include <string.h>
5254
5255 _ACEOF
5256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257   $EGREP "memchr" >/dev/null 2>&1; then
5258   :
5259 else
5260   ac_cv_header_stdc=no
5261 fi
5262 rm -f conftest*
5263
5264 fi
5265
5266 if test $ac_cv_header_stdc = yes; then
5267   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5268   cat >conftest.$ac_ext <<_ACEOF
5269 /* confdefs.h.  */
5270 _ACEOF
5271 cat confdefs.h >>conftest.$ac_ext
5272 cat >>conftest.$ac_ext <<_ACEOF
5273 /* end confdefs.h.  */
5274 #include <stdlib.h>
5275
5276 _ACEOF
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278   $EGREP "free" >/dev/null 2>&1; then
5279   :
5280 else
5281   ac_cv_header_stdc=no
5282 fi
5283 rm -f conftest*
5284
5285 fi
5286
5287 if test $ac_cv_header_stdc = yes; then
5288   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5289   if test "$cross_compiling" = yes; then
5290   :
5291 else
5292   cat >conftest.$ac_ext <<_ACEOF
5293 /* confdefs.h.  */
5294 _ACEOF
5295 cat confdefs.h >>conftest.$ac_ext
5296 cat >>conftest.$ac_ext <<_ACEOF
5297 /* end confdefs.h.  */
5298 #include <ctype.h>
5299 #include <stdlib.h>
5300 #if ((' ' & 0x0FF) == 0x020)
5301 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5302 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5303 #else
5304 # define ISLOWER(c) \
5305                    (('a' <= (c) && (c) <= 'i') \
5306                      || ('j' <= (c) && (c) <= 'r') \
5307                      || ('s' <= (c) && (c) <= 'z'))
5308 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5309 #endif
5310
5311 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5312 int
5313 main ()
5314 {
5315   int i;
5316   for (i = 0; i < 256; i++)
5317     if (XOR (islower (i), ISLOWER (i))
5318         || toupper (i) != TOUPPER (i))
5319       return 2;
5320   return 0;
5321 }
5322 _ACEOF
5323 rm -f conftest$ac_exeext
5324 if { (ac_try="$ac_link"
5325 case "(($ac_try" in
5326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327   *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330   (eval "$ac_link") 2>&5
5331   ac_status=$?
5332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5334   { (case "(($ac_try" in
5335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336   *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339   (eval "$ac_try") 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); }; }; then
5343   :
5344 else
5345   echo "$as_me: program exited with status $ac_status" >&5
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ( exit $ac_status )
5350 ac_cv_header_stdc=no
5351 fi
5352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5353 fi
5354
5355
5356 fi
5357 fi
5358 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5359 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5360 if test $ac_cv_header_stdc = yes; then
5361   
5362 cat >>confdefs.h <<\_ACEOF
5363 @%:@define STDC_HEADERS 1
5364 _ACEOF
5365
5366 fi
5367
5368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5379                   inttypes.h stdint.h unistd.h
5380 do
5381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387   cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h.  */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h.  */
5393 $ac_includes_default
5394
5395 @%:@include <$ac_header>
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (ac_try="$ac_compile"
5399 case "(($ac_try" in
5400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401   *) ac_try_echo=$ac_try;;
5402 esac
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404   (eval "$ac_compile") 2>conftest.er1
5405   ac_status=$?
5406   grep -v '^ *+' conftest.er1 >conftest.err
5407   rm -f conftest.er1
5408   cat conftest.err >&5
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); } && {
5411          test -z "$ac_c_werror_flag" ||
5412          test ! -s conftest.err
5413        } && test -s conftest.$ac_objext; then
5414   eval "$as_ac_Header=yes"
5415 else
5416   echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.$ac_ext >&5
5418
5419         eval "$as_ac_Header=no"
5420 fi
5421
5422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 fi
5424 ac_res=`eval echo '${'$as_ac_Header'}'`
5425                { echo "$as_me:$LINENO: result: $ac_res" >&5
5426 echo "${ECHO_T}$ac_res" >&6; }
5427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5428   cat >>confdefs.h <<_ACEOF
5429 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5430 _ACEOF
5431  
5432 fi
5433
5434 done
5435
5436
5437
5438 for ac_header in dlfcn.h
5439 do
5440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 fi
5447 ac_res=`eval echo '${'$as_ac_Header'}'`
5448                { echo "$as_me:$LINENO: result: $ac_res" >&5
5449 echo "${ECHO_T}$ac_res" >&6; }
5450 else
5451   # Is the header compilable?
5452 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h.  */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h.  */
5460 $ac_includes_default
5461 @%:@include <$ac_header>
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_c_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   ac_header_compiler=yes
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485         ac_header_compiler=no
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490 echo "${ECHO_T}$ac_header_compiler" >&6; }
5491
5492 # Is the header present?
5493 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495 cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501 @%:@include <$ac_header>
5502 _ACEOF
5503 if { (ac_try="$ac_cpp conftest.$ac_ext"
5504 case "(($ac_try" in
5505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506   *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } >/dev/null && {
5516          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517          test ! -s conftest.err
5518        }; then
5519   ac_header_preproc=yes
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524   ac_header_preproc=no
5525 fi
5526
5527 rm -f conftest.err conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529 echo "${ECHO_T}$ac_header_preproc" >&6; }
5530
5531 # So?  What about this header?
5532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533   yes:no: )
5534     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538     ac_header_preproc=yes
5539     ;;
5540   no:yes:* )
5541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5544 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5545     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5548 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553     
5554     ;;
5555 esac
5556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559   echo $ECHO_N "(cached) $ECHO_C" >&6
5560 else
5561   eval "$as_ac_Header=\$ac_header_preproc"
5562 fi
5563 ac_res=`eval echo '${'$as_ac_Header'}'`
5564                { echo "$as_me:$LINENO: result: $ac_res" >&5
5565 echo "${ECHO_T}$ac_res" >&6; }
5566
5567 fi
5568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5569   cat >>confdefs.h <<_ACEOF
5570 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571 _ACEOF
5572  
5573 fi
5574
5575 done
5576
5577
5578
5579 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5580     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5581     (test "X$CXX" != "Xg++"))) ; then
5582   ac_ext=cpp
5583 ac_cpp='$CXXCPP $CPPFLAGS'
5584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5587 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5588 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5589 if test -z "$CXXCPP"; then
5590   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593       # Double quotes because CXXCPP needs to be expanded
5594     for CXXCPP in "$CXX -E" "/lib/cpp"
5595     do
5596       ac_preproc_ok=false
5597 for ac_cxx_preproc_warn_flag in '' yes
5598 do
5599   # Use a header file that comes with gcc, so configuring glibc
5600   # with a fresh cross-compiler works.
5601   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5602   # <limits.h> exists even on freestanding compilers.
5603   # On the NeXT, cc -E runs the code through the compiler's parser,
5604   # not just through cpp. "Syntax error" is here to catch this case.
5605   cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611 @%:@ifdef __STDC__
5612 @%:@ include <limits.h>
5613 @%:@else
5614 @%:@ include <assert.h>
5615 @%:@endif
5616                      Syntax error
5617 _ACEOF
5618 if { (ac_try="$ac_cpp conftest.$ac_ext"
5619 case "(($ac_try" in
5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621   *) ac_try_echo=$ac_try;;
5622 esac
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5625   ac_status=$?
5626   grep -v '^ *+' conftest.er1 >conftest.err
5627   rm -f conftest.er1
5628   cat conftest.err >&5
5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630   (exit $ac_status); } >/dev/null && {
5631          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5632          test ! -s conftest.err
5633        }; then
5634   :
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639   # Broken: fails on valid input.
5640 continue
5641 fi
5642
5643 rm -f conftest.err conftest.$ac_ext
5644
5645   # OK, works on sane cases.  Now check whether nonexistent headers
5646   # can be detected and how.
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653 @%:@include <ac_nonexistent.h>
5654 _ACEOF
5655 if { (ac_try="$ac_cpp conftest.$ac_ext"
5656 case "(($ac_try" in
5657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658   *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662   ac_status=$?
5663   grep -v '^ *+' conftest.er1 >conftest.err
5664   rm -f conftest.er1
5665   cat conftest.err >&5
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); } >/dev/null && {
5668          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5669          test ! -s conftest.err
5670        }; then
5671   # Broken: success on invalid input.
5672 continue
5673 else
5674   echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677   # Passes both tests.
5678 ac_preproc_ok=:
5679 break
5680 fi
5681
5682 rm -f conftest.err conftest.$ac_ext
5683
5684 done
5685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5686 rm -f conftest.err conftest.$ac_ext
5687 if $ac_preproc_ok; then
5688   break
5689 fi
5690
5691     done
5692     ac_cv_prog_CXXCPP=$CXXCPP
5693   
5694 fi
5695   CXXCPP=$ac_cv_prog_CXXCPP
5696 else
5697   ac_cv_prog_CXXCPP=$CXXCPP
5698 fi
5699 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5700 echo "${ECHO_T}$CXXCPP" >&6; }
5701 ac_preproc_ok=false
5702 for ac_cxx_preproc_warn_flag in '' yes
5703 do
5704   # Use a header file that comes with gcc, so configuring glibc
5705   # with a fresh cross-compiler works.
5706   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707   # <limits.h> exists even on freestanding compilers.
5708   # On the NeXT, cc -E runs the code through the compiler's parser,
5709   # not just through cpp. "Syntax error" is here to catch this case.
5710   cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h.  */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h.  */
5716 @%:@ifdef __STDC__
5717 @%:@ include <limits.h>
5718 @%:@else
5719 @%:@ include <assert.h>
5720 @%:@endif
5721                      Syntax error
5722 _ACEOF
5723 if { (ac_try="$ac_cpp conftest.$ac_ext"
5724 case "(($ac_try" in
5725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726   *) ac_try_echo=$ac_try;;
5727 esac
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } >/dev/null && {
5736          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5737          test ! -s conftest.err
5738        }; then
5739   :
5740 else
5741   echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744   # Broken: fails on valid input.
5745 continue
5746 fi
5747
5748 rm -f conftest.err conftest.$ac_ext
5749
5750   # OK, works on sane cases.  Now check whether nonexistent headers
5751   # can be detected and how.
5752   cat >conftest.$ac_ext <<_ACEOF
5753 /* confdefs.h.  */
5754 _ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h.  */
5758 @%:@include <ac_nonexistent.h>
5759 _ACEOF
5760 if { (ac_try="$ac_cpp conftest.$ac_ext"
5761 case "(($ac_try" in
5762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763   *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } >/dev/null && {
5773          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5774          test ! -s conftest.err
5775        }; then
5776   # Broken: success on invalid input.
5777 continue
5778 else
5779   echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5781
5782   # Passes both tests.
5783 ac_preproc_ok=:
5784 break
5785 fi
5786
5787 rm -f conftest.err conftest.$ac_ext
5788
5789 done
5790 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5791 rm -f conftest.err conftest.$ac_ext
5792 if $ac_preproc_ok; then
5793   :
5794 else
5795   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5796 See \`config.log' for more details." >&5
5797 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5798 See \`config.log' for more details." >&2;}
5799    { (exit 1); exit 1; }; }
5800 fi
5801
5802 ac_ext=cpp
5803 ac_cpp='$CXXCPP $CPPFLAGS'
5804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5807
5808 fi
5809
5810
5811 ac_ext=f
5812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5815 if test -n "$ac_tool_prefix"; then
5816   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
5817   do
5818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_prog_F77+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if test -n "$F77"; then
5826   ac_cv_prog_F77="$F77" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831   IFS=$as_save_IFS
5832   test -z "$as_dir" && as_dir=.
5833   for ac_exec_ext in '' $ac_executable_extensions; do
5834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5835     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837     break 2
5838   fi
5839 done
5840 done
5841 IFS=$as_save_IFS
5842
5843 fi
5844 fi
5845 F77=$ac_cv_prog_F77
5846 if test -n "$F77"; then
5847   { echo "$as_me:$LINENO: result: $F77" >&5
5848 echo "${ECHO_T}$F77" >&6; }
5849 else
5850   { echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6; }
5852 fi
5853
5854
5855     test -n "$F77" && break
5856   done
5857 fi
5858 if test -z "$F77"; then
5859   ac_ct_F77=$F77
5860   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
5861 do
5862   # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5866 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5867   echo $ECHO_N "(cached) $ECHO_C" >&6
5868 else
5869   if test -n "$ac_ct_F77"; then
5870   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877   for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_ac_ct_F77="$ac_prog"
5880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884 done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5890 if test -n "$ac_ct_F77"; then
5891   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5892 echo "${ECHO_T}$ac_ct_F77" >&6; }
5893 else
5894   { echo "$as_me:$LINENO: result: no" >&5
5895 echo "${ECHO_T}no" >&6; }
5896 fi
5897
5898
5899   test -n "$ac_ct_F77" && break
5900 done
5901
5902   if test "x$ac_ct_F77" = x; then
5903     F77=""
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5908 whose name does not start with the host triplet.  If you think this
5909 configuration is useful to you, please write to autoconf@gnu.org." >&5
5910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5911 whose name does not start with the host triplet.  If you think this
5912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5913 ac_tool_warned=yes ;;
5914 esac
5915     F77=$ac_ct_F77
5916   fi
5917 fi
5918
5919
5920 # Provide some information about the compiler.
5921 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5922 ac_compiler=`set X $ac_compile; echo $2`
5923 { (ac_try="$ac_compiler --version >&5"
5924 case "(($ac_try" in
5925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926   *) ac_try_echo=$ac_try;;
5927 esac
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929   (eval "$ac_compiler --version >&5") 2>&5
5930   ac_status=$?
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); }
5933 { (ac_try="$ac_compiler -v >&5"
5934 case "(($ac_try" in
5935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936   *) ac_try_echo=$ac_try;;
5937 esac
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939   (eval "$ac_compiler -v >&5") 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }
5943 { (ac_try="$ac_compiler -V >&5"
5944 case "(($ac_try" in
5945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946   *) ac_try_echo=$ac_try;;
5947 esac
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949   (eval "$ac_compiler -V >&5") 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }
5953 rm -f a.out
5954
5955 # If we don't use `.F' as extension, the preprocessor is not run on the
5956 # input file.  (Note that this only needs to work for GNU compilers.)
5957 ac_save_ext=$ac_ext
5958 ac_ext=F
5959 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5960 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5961 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5962   echo $ECHO_N "(cached) $ECHO_C" >&6
5963 else
5964   cat >conftest.$ac_ext <<_ACEOF
5965       program main
5966 #ifndef __GNUC__
5967        choke me
5968 #endif
5969
5970       end
5971 _ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5974 case "(($ac_try" in
5975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976   *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979   (eval "$ac_compile") 2>conftest.er1
5980   ac_status=$?
5981   grep -v '^ *+' conftest.er1 >conftest.err
5982   rm -f conftest.er1
5983   cat conftest.err >&5
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); } && {
5986          test -z "$ac_f77_werror_flag" ||
5987          test ! -s conftest.err
5988        } && test -s conftest.$ac_objext; then
5989   ac_compiler_gnu=yes
5990 else
5991   echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994         ac_compiler_gnu=no
5995 fi
5996
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5999
6000 fi
6001 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6002 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6003 ac_ext=$ac_save_ext
6004 ac_test_FFLAGS=${FFLAGS+set}
6005 ac_save_FFLAGS=$FFLAGS
6006 FFLAGS=
6007 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6008 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6009 if test "${ac_cv_prog_f77_g+set}" = set; then
6010   echo $ECHO_N "(cached) $ECHO_C" >&6
6011 else
6012   FFLAGS=-g
6013 cat >conftest.$ac_ext <<_ACEOF
6014       program main
6015
6016       end
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6020 case "(($ac_try" in
6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022   *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025   (eval "$ac_compile") 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } && {
6032          test -z "$ac_f77_werror_flag" ||
6033          test ! -s conftest.err
6034        } && test -s conftest.$ac_objext; then
6035   ac_cv_prog_f77_g=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040         ac_cv_prog_f77_g=no
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044
6045 fi
6046 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6047 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6048 if test "$ac_test_FFLAGS" = set; then
6049   FFLAGS=$ac_save_FFLAGS
6050 elif test $ac_cv_prog_f77_g = yes; then
6051   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6052     FFLAGS="-g -O2"
6053   else
6054     FFLAGS="-g"
6055   fi
6056 else
6057   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6058     FFLAGS="-O2"
6059   else
6060     FFLAGS=
6061   fi
6062 fi
6063
6064 G77=`test $ac_compiler_gnu = yes && echo yes`
6065 ac_ext=c
6066 ac_cpp='$CPP $CPPFLAGS'
6067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6070
6071
6072
6073 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6074
6075 # find the maximum length of command line arguments
6076 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6077 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6078 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6079   echo $ECHO_N "(cached) $ECHO_C" >&6
6080 else
6081     i=0
6082   teststring="ABCD"
6083
6084   case $build_os in
6085   msdosdjgpp*)
6086     # On DJGPP, this test can blow up pretty badly due to problems in libc
6087     # (any single argument exceeding 2000 bytes causes a buffer overrun
6088     # during glob expansion).  Even if it were fixed, the result of this
6089     # check would be larger than it should be.
6090     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6091     ;;
6092
6093   gnu*)
6094     # Under GNU Hurd, this test is not required because there is
6095     # no limit to the length of command line arguments.
6096     # Libtool will interpret -1 as no limit whatsoever
6097     lt_cv_sys_max_cmd_len=-1;
6098     ;;
6099
6100   cygwin* | mingw*)
6101     # On Win9x/ME, this test blows up -- it succeeds, but takes
6102     # about 5 minutes as the teststring grows exponentially.
6103     # Worse, since 9x/ME are not pre-emptively multitasking,
6104     # you end up with a "frozen" computer, even though with patience
6105     # the test eventually succeeds (with a max line length of 256k).
6106     # Instead, let's just punt: use the minimum linelength reported by
6107     # all of the supported platforms: 8192 (on NT/2K/XP).
6108     lt_cv_sys_max_cmd_len=8192;
6109     ;;
6110
6111   amigaos*)
6112     # On AmigaOS with pdksh, this test takes hours, literally.
6113     # So we just punt and use a minimum line length of 8192.
6114     lt_cv_sys_max_cmd_len=8192;
6115     ;;
6116
6117   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6118     # This has been around since 386BSD, at least.  Likely further.
6119     if test -x /sbin/sysctl; then
6120       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6121     elif test -x /usr/sbin/sysctl; then
6122       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6123     else
6124       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6125     fi
6126     # And add a safety zone
6127     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6128     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6129     ;;
6130
6131   interix*)
6132     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6133     lt_cv_sys_max_cmd_len=196608
6134     ;;
6135
6136   osf*)
6137     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6138     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6139     # nice to cause kernel panics so lets avoid the loop below.
6140     # First set a reasonable default.
6141     lt_cv_sys_max_cmd_len=16384
6142     #
6143     if test -x /sbin/sysconfig; then
6144       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6145         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6146       esac
6147     fi
6148     ;;
6149   sco3.2v5*)
6150     lt_cv_sys_max_cmd_len=102400
6151     ;;
6152   sysv5* | sco5v6* | sysv4.2uw2*)
6153     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6154     if test -n "$kargmax"; then
6155       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6156     else
6157       lt_cv_sys_max_cmd_len=32768
6158     fi
6159     ;;
6160   *)
6161     # If test is not a shell built-in, we'll probably end up computing a
6162     # maximum length that is only half of the actual maximum length, but
6163     # we can't tell.
6164     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6165     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6166                = "XX$teststring") >/dev/null 2>&1 &&
6167             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6168             lt_cv_sys_max_cmd_len=$new_result &&
6169             test $i != 17 # 1/2 MB should be enough
6170     do
6171       i=`expr $i + 1`
6172       teststring=$teststring$teststring
6173     done
6174     teststring=
6175     # Add a significant safety factor because C++ compilers can tack on massive
6176     # amounts of additional arguments before passing them to the linker.
6177     # It appears as though 1/2 is a usable value.
6178     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6179     ;;
6180   esac
6181
6182 fi
6183
6184 if test -n $lt_cv_sys_max_cmd_len ; then
6185   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6186 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6187 else
6188   { echo "$as_me:$LINENO: result: none" >&5
6189 echo "${ECHO_T}none" >&6; }
6190 fi
6191
6192
6193
6194
6195 # Check for command to grab the raw symbol name followed by C symbol from nm.
6196 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6197 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6198 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6199   echo $ECHO_N "(cached) $ECHO_C" >&6
6200 else
6201   
6202 # These are sane defaults that work on at least a few old systems.
6203 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6204
6205 # Character class describing NM global symbol codes.
6206 symcode='[BCDEGRST]'
6207
6208 # Regexp to match symbols that can be accessed directly from C.
6209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6210
6211 # Transform an extracted symbol line into a proper C declaration
6212 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6213
6214 # Transform an extracted symbol line into symbol name and symbol address
6215 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'"
6216
6217 # Define system-specific variables.
6218 case $host_os in
6219 aix*)
6220   symcode='[BCDT]'
6221   ;;
6222 cygwin* | mingw* | pw32*)
6223   symcode='[ABCDGISTW]'
6224   ;;
6225 hpux*) # Its linker distinguishes data from code symbols
6226   if test "$host_cpu" = ia64; then
6227     symcode='[ABCDEGRST]'
6228   fi
6229   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6230   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'"
6231   ;;
6232 linux*)
6233   if test "$host_cpu" = ia64; then
6234     symcode='[ABCDGIRSTW]'
6235     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6236     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'"
6237   fi
6238   ;;
6239 irix* | nonstopux*)
6240   symcode='[BCDEGRST]'
6241   ;;
6242 osf*)
6243   symcode='[BCDEGQRST]'
6244   ;;
6245 solaris*)
6246   symcode='[BDRT]'
6247   ;;
6248 sco3.2v5*)
6249   symcode='[DT]'
6250   ;;
6251 sysv4.2uw2*)
6252   symcode='[DT]'
6253   ;;
6254 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6255   symcode='[ABDT]'
6256   ;;
6257 sysv4)
6258   symcode='[DFNSTU]'
6259   ;;
6260 esac
6261
6262 # Handle CRLF in mingw tool chain
6263 opt_cr=
6264 case $build_os in
6265 mingw*)
6266   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6267   ;;
6268 esac
6269
6270 # If we're using GNU nm, then use its standard symbol codes.
6271 case `$NM -V 2>&1` in
6272 *GNU* | *'with BFD'*)
6273   symcode='[ABCDGIRSTW]' ;;
6274 esac
6275
6276 # Try without a prefix undercore, then with it.
6277 for ac_symprfx in "" "_"; do
6278
6279   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6280   symxfrm="\\1 $ac_symprfx\\2 \\2"
6281
6282   # Write the raw and C identifiers.
6283   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6284
6285   # Check to see that the pipe works correctly.
6286   pipe_works=no
6287
6288   rm -f conftest*
6289   cat > conftest.$ac_ext <<EOF
6290 #ifdef __cplusplus
6291 extern "C" {
6292 #endif
6293 char nm_test_var;
6294 void nm_test_func(){}
6295 #ifdef __cplusplus
6296 }
6297 #endif
6298 int main(){nm_test_var='a';nm_test_func();return(0);}
6299 EOF
6300
6301   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302   (eval $ac_compile) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; then
6306     # Now try to grab the symbols.
6307     nlist=conftest.nm
6308     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6309   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6310   ac_status=$?
6311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312   (exit $ac_status); } && test -s "$nlist"; then
6313       # Try sorting and uniquifying the output.
6314       if sort "$nlist" | uniq > "$nlist"T; then
6315         mv -f "$nlist"T "$nlist"
6316       else
6317         rm -f "$nlist"T
6318       fi
6319
6320       # Make sure that we snagged all the symbols we need.
6321       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6322         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6323           cat <<EOF > conftest.$ac_ext
6324 #ifdef __cplusplus
6325 extern "C" {
6326 #endif
6327
6328 EOF
6329           # Now generate the symbol file.
6330           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6331
6332           cat <<EOF >> conftest.$ac_ext
6333 #if defined (__STDC__) && __STDC__
6334 # define lt_ptr_t void *
6335 #else
6336 # define lt_ptr_t char *
6337 # define const
6338 #endif
6339
6340 /* The mapping between symbol names and symbols. */
6341 const struct {
6342   const char *name;
6343   lt_ptr_t address;
6344 }
6345 lt_preloaded_symbols[] =
6346 {
6347 EOF
6348           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6349           cat <<\EOF >> conftest.$ac_ext
6350   {0, (lt_ptr_t) 0}
6351 };
6352
6353 #ifdef __cplusplus
6354 }
6355 #endif
6356 EOF
6357           # Now try linking the two files.
6358           mv conftest.$ac_objext conftstm.$ac_objext
6359           lt_save_LIBS="$LIBS"
6360           lt_save_CFLAGS="$CFLAGS"
6361           LIBS="conftstm.$ac_objext"
6362           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6363           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364   (eval $ac_link) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6368             pipe_works=yes
6369           fi
6370           LIBS="$lt_save_LIBS"
6371           CFLAGS="$lt_save_CFLAGS"
6372         else
6373           echo "cannot find nm_test_func in $nlist" >&5
6374         fi
6375       else
6376         echo "cannot find nm_test_var in $nlist" >&5
6377       fi
6378     else
6379       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6380     fi
6381   else
6382     echo "$progname: failed program was:" >&5
6383     cat conftest.$ac_ext >&5
6384   fi
6385   rm -f conftest* conftst*
6386
6387   # Do not use the global_symbol_pipe unless it works.
6388   if test "$pipe_works" = yes; then
6389     break
6390   else
6391     lt_cv_sys_global_symbol_pipe=
6392   fi
6393 done
6394
6395 fi
6396
6397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6398   lt_cv_sys_global_symbol_to_cdecl=
6399 fi
6400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6401   { echo "$as_me:$LINENO: result: failed" >&5
6402 echo "${ECHO_T}failed" >&6; }
6403 else
6404   { echo "$as_me:$LINENO: result: ok" >&5
6405 echo "${ECHO_T}ok" >&6; }
6406 fi
6407
6408 { echo "$as_me:$LINENO: checking for objdir" >&5
6409 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6410 if test "${lt_cv_objdir+set}" = set; then
6411   echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413   rm -f .libs 2>/dev/null
6414 mkdir .libs 2>/dev/null
6415 if test -d .libs; then
6416   lt_cv_objdir=.libs
6417 else
6418   # MS-DOS does not allow filenames that begin with a dot.
6419   lt_cv_objdir=_libs
6420 fi
6421 rmdir .libs 2>/dev/null
6422 fi
6423 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6424 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6425 objdir=$lt_cv_objdir
6426
6427
6428
6429
6430
6431 case $host_os in
6432 aix3*)
6433   # AIX sometimes has problems with the GCC collect2 program.  For some
6434   # reason, if we set the COLLECT_NAMES environment variable, the problems
6435   # vanish in a puff of smoke.
6436   if test "X${COLLECT_NAMES+set}" != Xset; then
6437     COLLECT_NAMES=
6438     export COLLECT_NAMES
6439   fi
6440   ;;
6441 esac
6442
6443 # Sed substitution that helps us do robust quoting.  It backslashifies
6444 # metacharacters that are still active within double-quoted strings.
6445 Xsed='sed -e 1s/^X//'
6446 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6447
6448 # Same as above, but do not quote variable references.
6449 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6450
6451 # Sed substitution to delay expansion of an escaped shell variable in a
6452 # double_quote_subst'ed string.
6453 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6454
6455 # Sed substitution to avoid accidental globbing in evaled expressions
6456 no_glob_subst='s/\*/\\\*/g'
6457
6458 # Constants:
6459 rm="rm -f"
6460
6461 # Global variables:
6462 default_ofile=libtool
6463 can_build_shared=yes
6464
6465 # All known linkers require a `.a' archive for static linking (except MSVC,
6466 # which needs '.lib').
6467 libext=a
6468 ltmain="$ac_aux_dir/ltmain.sh"
6469 ofile="$default_ofile"
6470 with_gnu_ld="$lt_cv_prog_gnu_ld"
6471
6472 if test -n "$ac_tool_prefix"; then
6473   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}ar; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_prog_AR+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   if test -n "$AR"; then
6481   ac_cv_prog_AR="$AR" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488   for ac_exec_ext in '' $ac_executable_extensions; do
6489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490     ac_cv_prog_AR="${ac_tool_prefix}ar"
6491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495 done
6496 IFS=$as_save_IFS
6497
6498 fi
6499 fi
6500 AR=$ac_cv_prog_AR
6501 if test -n "$AR"; then
6502   { echo "$as_me:$LINENO: result: $AR" >&5
6503 echo "${ECHO_T}$AR" >&6; }
6504 else
6505   { echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6; }
6507 fi
6508
6509
6510 fi
6511 if test -z "$ac_cv_prog_AR"; then
6512   ac_ct_AR=$AR
6513   # Extract the first word of "ar", so it can be a program name with args.
6514 set dummy ar; ac_word=$2
6515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6518   echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520   if test -n "$ac_ct_AR"; then
6521   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6522 else
6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524 for as_dir in $PATH
6525 do
6526   IFS=$as_save_IFS
6527   test -z "$as_dir" && as_dir=.
6528   for ac_exec_ext in '' $ac_executable_extensions; do
6529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530     ac_cv_prog_ac_ct_AR="ar"
6531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532     break 2
6533   fi
6534 done
6535 done
6536 IFS=$as_save_IFS
6537
6538 fi
6539 fi
6540 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6541 if test -n "$ac_ct_AR"; then
6542   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6543 echo "${ECHO_T}$ac_ct_AR" >&6; }
6544 else
6545   { echo "$as_me:$LINENO: result: no" >&5
6546 echo "${ECHO_T}no" >&6; }
6547 fi
6548
6549   if test "x$ac_ct_AR" = x; then
6550     AR="false"
6551   else
6552     case $cross_compiling:$ac_tool_warned in
6553 yes:)
6554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6555 whose name does not start with the host triplet.  If you think this
6556 configuration is useful to you, please write to autoconf@gnu.org." >&5
6557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6558 whose name does not start with the host triplet.  If you think this
6559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6560 ac_tool_warned=yes ;;
6561 esac
6562     AR=$ac_ct_AR
6563   fi
6564 else
6565   AR="$ac_cv_prog_AR"
6566 fi
6567
6568 if test -n "$ac_tool_prefix"; then
6569   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6570 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_prog_RANLIB+set}" = set; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576   if test -n "$RANLIB"; then
6577   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584   for ac_exec_ext in '' $ac_executable_extensions; do
6585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 RANLIB=$ac_cv_prog_RANLIB
6597 if test -n "$RANLIB"; then
6598   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6599 echo "${ECHO_T}$RANLIB" >&6; }
6600 else
6601   { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6603 fi
6604
6605
6606 fi
6607 if test -z "$ac_cv_prog_RANLIB"; then
6608   ac_ct_RANLIB=$RANLIB
6609   # Extract the first word of "ranlib", so it can be a program name with args.
6610 set dummy ranlib; ac_word=$2
6611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   if test -n "$ac_ct_RANLIB"; then
6617   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624   for ac_exec_ext in '' $ac_executable_extensions; do
6625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626     ac_cv_prog_ac_ct_RANLIB="ranlib"
6627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6637 if test -n "$ac_ct_RANLIB"; then
6638   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6639 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6640 else
6641   { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6643 fi
6644
6645   if test "x$ac_ct_RANLIB" = x; then
6646     RANLIB=":"
6647   else
6648     case $cross_compiling:$ac_tool_warned in
6649 yes:)
6650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6651 whose name does not start with the host triplet.  If you think this
6652 configuration is useful to you, please write to autoconf@gnu.org." >&5
6653 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6654 whose name does not start with the host triplet.  If you think this
6655 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6656 ac_tool_warned=yes ;;
6657 esac
6658     RANLIB=$ac_ct_RANLIB
6659   fi
6660 else
6661   RANLIB="$ac_cv_prog_RANLIB"
6662 fi
6663
6664 if test -n "$ac_tool_prefix"; then
6665   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}strip; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_prog_STRIP+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   if test -n "$STRIP"; then
6673   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678   IFS=$as_save_IFS
6679   test -z "$as_dir" && as_dir=.
6680   for ac_exec_ext in '' $ac_executable_extensions; do
6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684     break 2
6685   fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 STRIP=$ac_cv_prog_STRIP
6693 if test -n "$STRIP"; then
6694   { echo "$as_me:$LINENO: result: $STRIP" >&5
6695 echo "${ECHO_T}$STRIP" >&6; }
6696 else
6697   { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6699 fi
6700
6701
6702 fi
6703 if test -z "$ac_cv_prog_STRIP"; then
6704   ac_ct_STRIP=$STRIP
6705   # Extract the first word of "strip", so it can be a program name with args.
6706 set dummy strip; ac_word=$2
6707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6710   echo $ECHO_N "(cached) $ECHO_C" >&6
6711 else
6712   if test -n "$ac_ct_STRIP"; then
6713   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6714 else
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716 for as_dir in $PATH
6717 do
6718   IFS=$as_save_IFS
6719   test -z "$as_dir" && as_dir=.
6720   for ac_exec_ext in '' $ac_executable_extensions; do
6721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6722     ac_cv_prog_ac_ct_STRIP="strip"
6723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724     break 2
6725   fi
6726 done
6727 done
6728 IFS=$as_save_IFS
6729
6730 fi
6731 fi
6732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6733 if test -n "$ac_ct_STRIP"; then
6734   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6735 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6736 else
6737   { echo "$as_me:$LINENO: result: no" >&5
6738 echo "${ECHO_T}no" >&6; }
6739 fi
6740
6741   if test "x$ac_ct_STRIP" = x; then
6742     STRIP=":"
6743   else
6744     case $cross_compiling:$ac_tool_warned in
6745 yes:)
6746 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6747 whose name does not start with the host triplet.  If you think this
6748 configuration is useful to you, please write to autoconf@gnu.org." >&5
6749 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6750 whose name does not start with the host triplet.  If you think this
6751 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6752 ac_tool_warned=yes ;;
6753 esac
6754     STRIP=$ac_ct_STRIP
6755   fi
6756 else
6757   STRIP="$ac_cv_prog_STRIP"
6758 fi
6759
6760
6761 old_CC="$CC"
6762 old_CFLAGS="$CFLAGS"
6763
6764 # Set sane defaults for various variables
6765 test -z "$AR" && AR=ar
6766 test -z "$AR_FLAGS" && AR_FLAGS=cru
6767 test -z "$AS" && AS=as
6768 test -z "$CC" && CC=cc
6769 test -z "$LTCC" && LTCC=$CC
6770 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6771 test -z "$DLLTOOL" && DLLTOOL=dlltool
6772 test -z "$LD" && LD=ld
6773 test -z "$LN_S" && LN_S="ln -s"
6774 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6775 test -z "$NM" && NM=nm
6776 test -z "$SED" && SED=sed
6777 test -z "$OBJDUMP" && OBJDUMP=objdump
6778 test -z "$RANLIB" && RANLIB=:
6779 test -z "$STRIP" && STRIP=:
6780 test -z "$ac_objext" && ac_objext=o
6781
6782 # Determine commands to create old-style static archives.
6783 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6784 old_postinstall_cmds='chmod 644 $oldlib'
6785 old_postuninstall_cmds=
6786
6787 if test -n "$RANLIB"; then
6788   case $host_os in
6789   openbsd*)
6790     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6791     ;;
6792   *)
6793     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6794     ;;
6795   esac
6796   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6797 fi
6798
6799 for cc_temp in $compiler""; do
6800   case $cc_temp in
6801     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6802     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6803     \-*) ;;
6804     *) break;;
6805   esac
6806 done
6807 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6808
6809
6810 # Only perform the check for file, if the check method requires it
6811 case $deplibs_check_method in
6812 file_magic*)
6813   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6814     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6815 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6816 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   case $MAGIC_CMD in
6820 [\\/*] |  ?:[\\/]*)
6821   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6822   ;;
6823 *)
6824   lt_save_MAGIC_CMD="$MAGIC_CMD"
6825   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6826   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6827   for ac_dir in $ac_dummy; do
6828     IFS="$lt_save_ifs"
6829     test -z "$ac_dir" && ac_dir=.
6830     if test -f $ac_dir/${ac_tool_prefix}file; then
6831       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6832       if test -n "$file_magic_test_file"; then
6833         case $deplibs_check_method in
6834         "file_magic "*)
6835           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6836           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6837           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6838             $EGREP "$file_magic_regex" > /dev/null; then
6839             :
6840           else
6841             cat <<EOF 1>&2
6842
6843 *** Warning: the command libtool uses to detect shared libraries,
6844 *** $file_magic_cmd, produces output that libtool cannot recognize.
6845 *** The result is that libtool may fail to recognize shared libraries
6846 *** as such.  This will affect the creation of libtool libraries that
6847 *** depend on shared libraries, but programs linked with such libtool
6848 *** libraries will work regardless of this problem.  Nevertheless, you
6849 *** may want to report the problem to your system manager and/or to
6850 *** bug-libtool@gnu.org
6851
6852 EOF
6853           fi ;;
6854         esac
6855       fi
6856       break
6857     fi
6858   done
6859   IFS="$lt_save_ifs"
6860   MAGIC_CMD="$lt_save_MAGIC_CMD"
6861   ;;
6862 esac
6863 fi
6864
6865 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6866 if test -n "$MAGIC_CMD"; then
6867   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6868 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6869 else
6870   { echo "$as_me:$LINENO: result: no" >&5
6871 echo "${ECHO_T}no" >&6; }
6872 fi
6873
6874 if test -z "$lt_cv_path_MAGIC_CMD"; then
6875   if test -n "$ac_tool_prefix"; then
6876     { echo "$as_me:$LINENO: checking for file" >&5
6877 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6878 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6879   echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881   case $MAGIC_CMD in
6882 [\\/*] |  ?:[\\/]*)
6883   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6884   ;;
6885 *)
6886   lt_save_MAGIC_CMD="$MAGIC_CMD"
6887   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6888   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6889   for ac_dir in $ac_dummy; do
6890     IFS="$lt_save_ifs"
6891     test -z "$ac_dir" && ac_dir=.
6892     if test -f $ac_dir/file; then
6893       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6894       if test -n "$file_magic_test_file"; then
6895         case $deplibs_check_method in
6896         "file_magic "*)
6897           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6898           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6899           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6900             $EGREP "$file_magic_regex" > /dev/null; then
6901             :
6902           else
6903             cat <<EOF 1>&2
6904
6905 *** Warning: the command libtool uses to detect shared libraries,
6906 *** $file_magic_cmd, produces output that libtool cannot recognize.
6907 *** The result is that libtool may fail to recognize shared libraries
6908 *** as such.  This will affect the creation of libtool libraries that
6909 *** depend on shared libraries, but programs linked with such libtool
6910 *** libraries will work regardless of this problem.  Nevertheless, you
6911 *** may want to report the problem to your system manager and/or to
6912 *** bug-libtool@gnu.org
6913
6914 EOF
6915           fi ;;
6916         esac
6917       fi
6918       break
6919     fi
6920   done
6921   IFS="$lt_save_ifs"
6922   MAGIC_CMD="$lt_save_MAGIC_CMD"
6923   ;;
6924 esac
6925 fi
6926
6927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6928 if test -n "$MAGIC_CMD"; then
6929   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6930 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6931 else
6932   { echo "$as_me:$LINENO: result: no" >&5
6933 echo "${ECHO_T}no" >&6; }
6934 fi
6935
6936   else
6937     MAGIC_CMD=:
6938   fi
6939 fi
6940
6941   fi
6942   ;;
6943 esac
6944
6945 enable_dlopen=no
6946 enable_win32_dll=no
6947
6948 # Check whether --enable-libtool-lock was given.
6949 if test "${enable_libtool_lock+set}" = set; then
6950   enableval=$enable_libtool_lock; 
6951 fi
6952
6953 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6954
6955
6956 # Check whether --with-pic was given.
6957 if test "${with_pic+set}" = set; then
6958   withval=$with_pic; pic_mode="$withval"
6959 else
6960   pic_mode=default
6961 fi
6962
6963 test -z "$pic_mode" && pic_mode=default
6964
6965 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6966 #
6967 # Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6968 #        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6969 #        calls AC_LIBTOOL_CONFIG and creates libtool.
6970 #
6971 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6972 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6973 if test "x$ltmain" = "x" ; then
6974   { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6976   { { echo "$as_me:$LINENO: error: 
6977
6978 *** @<:@Gentoo@:>@ sanity check failed! ***
6979 *** \$ltmain is not defined, please check the patch for consistency! ***
6980 " >&5
6981 echo "$as_me: error: 
6982
6983 *** @<:@Gentoo@:>@ sanity check failed! ***
6984 *** \$ltmain is not defined, please check the patch for consistency! ***
6985 " >&2;}
6986    { (exit 1); exit 1; }; }
6987 fi
6988 gentoo_lt_version="1.5.22"
6989 gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
6990 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6991   { echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6; }
6993   { { echo "$as_me:$LINENO: error: 
6994
6995 *** @<:@Gentoo@:>@ sanity check failed! ***
6996 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6997 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6998
6999 Please run:
7000
7001   libtoolize --copy --force
7002
7003 if appropriate, please contact the maintainer of this
7004 package (or your distribution) for help.
7005 " >&5
7006 echo "$as_me: error: 
7007
7008 *** @<:@Gentoo@:>@ sanity check failed! ***
7009 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7010 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7011
7012 Please run:
7013
7014   libtoolize --copy --force
7015
7016 if appropriate, please contact the maintainer of this
7017 package (or your distribution) for help.
7018 " >&2;}
7019    { (exit 1); exit 1; }; }
7020 else
7021   { echo "$as_me:$LINENO: result: yes" >&5
7022 echo "${ECHO_T}yes" >&6; }
7023 fi
7024
7025
7026 # Use C for the default configuration in the libtool script
7027 tagname=
7028 lt_save_CC="$CC"
7029 ac_ext=c
7030 ac_cpp='$CPP $CPPFLAGS'
7031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034
7035
7036 # Source file extension for C test sources.
7037 ac_ext=c
7038
7039 # Object file extension for compiled C test sources.
7040 objext=o
7041 objext=$objext
7042
7043 # Code to be used in simple compile tests
7044 lt_simple_compile_test_code="int some_variable = 0;\n"
7045
7046 # Code to be used in simple link tests
7047 lt_simple_link_test_code='int main(){return(0);}\n'
7048
7049
7050 # If no C compiler was specified, use CC.
7051 LTCC=${LTCC-"$CC"}
7052
7053 # If no C compiler flags were specified, use CFLAGS.
7054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7055
7056 # Allow CC to be a program name with arguments.
7057 compiler=$CC
7058
7059
7060 # save warnings/boilerplate of simple test code
7061 ac_outfile=conftest.$ac_objext
7062 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7063 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7064 _lt_compiler_boilerplate=`cat conftest.err`
7065 $rm conftest*
7066
7067 ac_outfile=conftest.$ac_objext
7068 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7069 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7070 _lt_linker_boilerplate=`cat conftest.err`
7071 $rm conftest*
7072
7073
7074
7075 lt_prog_compiler_no_builtin_flag=
7076
7077 if test "$GCC" = yes; then
7078   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7079
7080   
7081 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7082 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7083 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086   lt_cv_prog_compiler_rtti_exceptions=no
7087   ac_outfile=conftest.$ac_objext
7088    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7089    lt_compiler_flag="-fno-rtti -fno-exceptions"
7090    # Insert the option either (1) after the last *FLAGS variable, or
7091    # (2) before a word containing "conftest.", or (3) at the end.
7092    # Note that $ac_compile itself does not contain backslashes and begins
7093    # with a dollar sign (not a hyphen), so the echo should work correctly.
7094    # The option is referenced via a variable to avoid confusing sed.
7095    lt_compile=`echo "$ac_compile" | $SED \
7096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7098    -e 's:$: $lt_compiler_flag:'`
7099    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7100    (eval "$lt_compile" 2>conftest.err)
7101    ac_status=$?
7102    cat conftest.err >&5
7103    echo "$as_me:__oline__: \$? = $ac_status" >&5
7104    if (exit $ac_status) && test -s "$ac_outfile"; then
7105      # The compiler can only warn and ignore the option if not recognized
7106      # So say no if there are warnings other than the usual output.
7107      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7108      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7109      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7110        lt_cv_prog_compiler_rtti_exceptions=yes
7111      fi
7112    fi
7113    $rm conftest*
7114
7115 fi
7116 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7117 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7118
7119 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7120     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7121 else
7122     :
7123 fi
7124
7125 fi
7126
7127 lt_prog_compiler_wl=
7128 lt_prog_compiler_pic=
7129 lt_prog_compiler_static=
7130
7131 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7132 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7133  
7134   if test "$GCC" = yes; then
7135     lt_prog_compiler_wl='-Wl,'
7136     lt_prog_compiler_static='-static'
7137
7138     case $host_os in
7139       aix*)
7140       # All AIX code is PIC.
7141       if test "$host_cpu" = ia64; then
7142         # AIX 5 now supports IA64 processor
7143         lt_prog_compiler_static='-Bstatic'
7144       fi
7145       ;;
7146
7147     amigaos*)
7148       # FIXME: we need at least 68020 code to build shared libraries, but
7149       # adding the `-m68020' flag to GCC prevents building anything better,
7150       # like `-m68040'.
7151       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7152       ;;
7153
7154     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7155       # PIC is the default for these OSes.
7156       ;;
7157
7158     mingw* | pw32* | os2*)
7159       # This hack is so that the source file can tell whether it is being
7160       # built for inclusion in a dll (and should export symbols for example).
7161       lt_prog_compiler_pic='-DDLL_EXPORT'
7162       ;;
7163
7164     darwin* | rhapsody*)
7165       # PIC is the default on this platform
7166       # Common symbols not allowed in MH_DYLIB files
7167       lt_prog_compiler_pic='-fno-common'
7168       ;;
7169
7170     interix3*)
7171       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7172       # Instead, we relocate shared libraries at runtime.
7173       ;;
7174
7175     msdosdjgpp*)
7176       # Just because we use GCC doesn't mean we suddenly get shared libraries
7177       # on systems that don't support them.
7178       lt_prog_compiler_can_build_shared=no
7179       enable_shared=no
7180       ;;
7181
7182     sysv4*MP*)
7183       if test -d /usr/nec; then
7184         lt_prog_compiler_pic=-Kconform_pic
7185       fi
7186       ;;
7187
7188     hpux*)
7189       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7190       # not for PA HP-UX.
7191       case $host_cpu in
7192       hppa*64*|ia64*)
7193         # +Z the default
7194         ;;
7195       *)
7196         lt_prog_compiler_pic='-fPIC'
7197         ;;
7198       esac
7199       ;;
7200
7201     *)
7202       lt_prog_compiler_pic='-fPIC'
7203       ;;
7204     esac
7205   else
7206     # PORTME Check for flag to pass linker flags through the system compiler.
7207     case $host_os in
7208     aix*)
7209       lt_prog_compiler_wl='-Wl,'
7210       if test "$host_cpu" = ia64; then
7211         # AIX 5 now supports IA64 processor
7212         lt_prog_compiler_static='-Bstatic'
7213       else
7214         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7215       fi
7216       ;;
7217       darwin*)
7218         # PIC is the default on this platform
7219         # Common symbols not allowed in MH_DYLIB files
7220        case $cc_basename in
7221          xlc*)
7222          lt_prog_compiler_pic='-qnocommon'
7223          lt_prog_compiler_wl='-Wl,'
7224          ;;
7225        esac
7226        ;;
7227
7228     mingw* | pw32* | os2*)
7229       # This hack is so that the source file can tell whether it is being
7230       # built for inclusion in a dll (and should export symbols for example).
7231       lt_prog_compiler_pic='-DDLL_EXPORT'
7232       ;;
7233
7234     hpux9* | hpux10* | hpux11*)
7235       lt_prog_compiler_wl='-Wl,'
7236       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7237       # not for PA HP-UX.
7238       case $host_cpu in
7239       hppa*64*|ia64*)
7240         # +Z the default
7241         ;;
7242       *)
7243         lt_prog_compiler_pic='+Z'
7244         ;;
7245       esac
7246       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7247       lt_prog_compiler_static='${wl}-a ${wl}archive'
7248       ;;
7249
7250     irix5* | irix6* | nonstopux*)
7251       lt_prog_compiler_wl='-Wl,'
7252       # PIC (with -KPIC) is the default.
7253       lt_prog_compiler_static='-non_shared'
7254       ;;
7255
7256     newsos6)
7257       lt_prog_compiler_pic='-KPIC'
7258       lt_prog_compiler_static='-Bstatic'
7259       ;;
7260
7261     linux*)
7262       case $cc_basename in
7263       icc* | ecc*)
7264         lt_prog_compiler_wl='-Wl,'
7265         lt_prog_compiler_pic='-KPIC'
7266         lt_prog_compiler_static='-static'
7267         ;;
7268       pgcc* | pgf77* | pgf90* | pgf95*)
7269         # Portland Group compilers (*not* the Pentium gcc compiler,
7270         # which looks to be a dead project)
7271         lt_prog_compiler_wl='-Wl,'
7272         lt_prog_compiler_pic='-fpic'
7273         lt_prog_compiler_static='-Bstatic'
7274         ;;
7275       ccc*)
7276         lt_prog_compiler_wl='-Wl,'
7277         # All Alpha code is PIC.
7278         lt_prog_compiler_static='-non_shared'
7279         ;;
7280       esac
7281       ;;
7282
7283     osf3* | osf4* | osf5*)
7284       lt_prog_compiler_wl='-Wl,'
7285       # All OSF/1 code is PIC.
7286       lt_prog_compiler_static='-non_shared'
7287       ;;
7288
7289     solaris*)
7290       lt_prog_compiler_pic='-KPIC'
7291       lt_prog_compiler_static='-Bstatic'
7292       case $cc_basename in
7293       f77* | f90* | f95*)
7294         lt_prog_compiler_wl='-Qoption ld ';;
7295       *)
7296         lt_prog_compiler_wl='-Wl,';;
7297       esac
7298       ;;
7299
7300     sunos4*)
7301       lt_prog_compiler_wl='-Qoption ld '
7302       lt_prog_compiler_pic='-PIC'
7303       lt_prog_compiler_static='-Bstatic'
7304       ;;
7305
7306     sysv4 | sysv4.2uw2* | sysv4.3*)
7307       lt_prog_compiler_wl='-Wl,'
7308       lt_prog_compiler_pic='-KPIC'
7309       lt_prog_compiler_static='-Bstatic'
7310       ;;
7311
7312     sysv4*MP*)
7313       if test -d /usr/nec ;then
7314         lt_prog_compiler_pic='-Kconform_pic'
7315         lt_prog_compiler_static='-Bstatic'
7316       fi
7317       ;;
7318
7319     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7320       lt_prog_compiler_wl='-Wl,'
7321       lt_prog_compiler_pic='-KPIC'
7322       lt_prog_compiler_static='-Bstatic'
7323       ;;
7324
7325     unicos*)
7326       lt_prog_compiler_wl='-Wl,'
7327       lt_prog_compiler_can_build_shared=no
7328       ;;
7329
7330     uts4*)
7331       lt_prog_compiler_pic='-pic'
7332       lt_prog_compiler_static='-Bstatic'
7333       ;;
7334
7335     *)
7336       lt_prog_compiler_can_build_shared=no
7337       ;;
7338     esac
7339   fi
7340
7341 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7342 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7343
7344 #
7345 # Check to make sure the PIC flag actually works.
7346 #
7347 if test -n "$lt_prog_compiler_pic"; then
7348   
7349 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7350 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7351 if test "${lt_prog_compiler_pic_works+set}" = set; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354   lt_prog_compiler_pic_works=no
7355   ac_outfile=conftest.$ac_objext
7356    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7357    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7358    # Insert the option either (1) after the last *FLAGS variable, or
7359    # (2) before a word containing "conftest.", or (3) at the end.
7360    # Note that $ac_compile itself does not contain backslashes and begins
7361    # with a dollar sign (not a hyphen), so the echo should work correctly.
7362    # The option is referenced via a variable to avoid confusing sed.
7363    lt_compile=`echo "$ac_compile" | $SED \
7364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7366    -e 's:$: $lt_compiler_flag:'`
7367    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7368    (eval "$lt_compile" 2>conftest.err)
7369    ac_status=$?
7370    cat conftest.err >&5
7371    echo "$as_me:__oline__: \$? = $ac_status" >&5
7372    if (exit $ac_status) && test -s "$ac_outfile"; then
7373      # The compiler can only warn and ignore the option if not recognized
7374      # So say no if there are warnings other than the usual output.
7375      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7376      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7377      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7378        lt_prog_compiler_pic_works=yes
7379      fi
7380    fi
7381    $rm conftest*
7382
7383 fi
7384 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7385 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7386
7387 if test x"$lt_prog_compiler_pic_works" = xyes; then
7388     case $lt_prog_compiler_pic in
7389      "" | " "*) ;;
7390      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7391      esac
7392 else
7393     lt_prog_compiler_pic=
7394      lt_prog_compiler_can_build_shared=no
7395 fi
7396
7397 fi
7398 case $host_os in
7399   # For platforms which do not support PIC, -DPIC is meaningless:
7400   *djgpp*)
7401     lt_prog_compiler_pic=
7402     ;;
7403   *)
7404     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7405     ;;
7406 esac
7407
7408 #
7409 # Check to make sure the static flag actually works.
7410 #
7411 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7412 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7413 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7414 if test "${lt_prog_compiler_static_works+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   lt_prog_compiler_static_works=no
7418    save_LDFLAGS="$LDFLAGS"
7419    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7420    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7421    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7422      # The linker can only warn and ignore the option if not recognized
7423      # So say no if there are warnings
7424      if test -s conftest.err; then
7425        # Append any errors to the config.log.
7426        cat conftest.err 1>&5
7427        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7428        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7429        if diff conftest.exp conftest.er2 >/dev/null; then
7430          lt_prog_compiler_static_works=yes
7431        fi
7432      else
7433        lt_prog_compiler_static_works=yes
7434      fi
7435    fi
7436    $rm conftest*
7437    LDFLAGS="$save_LDFLAGS"
7438
7439 fi
7440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7441 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7442
7443 if test x"$lt_prog_compiler_static_works" = xyes; then
7444     :
7445 else
7446     lt_prog_compiler_static=
7447 fi
7448
7449
7450 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7451 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7452 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   lt_cv_prog_compiler_c_o=no
7456    $rm -r conftest 2>/dev/null
7457    mkdir conftest
7458    cd conftest
7459    mkdir out
7460    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7461
7462    lt_compiler_flag="-o out/conftest2.$ac_objext"
7463    # Insert the option either (1) after the last *FLAGS variable, or
7464    # (2) before a word containing "conftest.", or (3) at the end.
7465    # Note that $ac_compile itself does not contain backslashes and begins
7466    # with a dollar sign (not a hyphen), so the echo should work correctly.
7467    lt_compile=`echo "$ac_compile" | $SED \
7468    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7469    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7470    -e 's:$: $lt_compiler_flag:'`
7471    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7472    (eval "$lt_compile" 2>out/conftest.err)
7473    ac_status=$?
7474    cat out/conftest.err >&5
7475    echo "$as_me:__oline__: \$? = $ac_status" >&5
7476    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7477    then
7478      # The compiler can only warn and ignore the option if not recognized
7479      # So say no if there are warnings
7480      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7481      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7482      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7483        lt_cv_prog_compiler_c_o=yes
7484      fi
7485    fi
7486    chmod u+w . 2>&5
7487    $rm conftest*
7488    # SGI C++ compiler will create directory out/ii_files/ for
7489    # template instantiation
7490    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7491    $rm out/* && rmdir out
7492    cd ..
7493    rmdir conftest
7494    $rm conftest*
7495
7496 fi
7497 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7498 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7499
7500
7501 hard_links="nottested"
7502 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7503   # do not overwrite the value of need_locks provided by the user
7504   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7505 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7506   hard_links=yes
7507   $rm conftest*
7508   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7509   touch conftest.a
7510   ln conftest.a conftest.b 2>&5 || hard_links=no
7511   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7512   { echo "$as_me:$LINENO: result: $hard_links" >&5
7513 echo "${ECHO_T}$hard_links" >&6; }
7514   if test "$hard_links" = no; then
7515     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7516 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7517     need_locks=warn
7518   fi
7519 else
7520   need_locks=no
7521 fi
7522
7523 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7524 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7525
7526   runpath_var=
7527   allow_undefined_flag=
7528   enable_shared_with_static_runtimes=no
7529   archive_cmds=
7530   archive_expsym_cmds=
7531   old_archive_From_new_cmds=
7532   old_archive_from_expsyms_cmds=
7533   export_dynamic_flag_spec=
7534   whole_archive_flag_spec=
7535   thread_safe_flag_spec=
7536   hardcode_libdir_flag_spec=
7537   hardcode_libdir_flag_spec_ld=
7538   hardcode_libdir_separator=
7539   hardcode_direct=no
7540   hardcode_minus_L=no
7541   hardcode_shlibpath_var=unsupported
7542   link_all_deplibs=unknown
7543   hardcode_automatic=no
7544   module_cmds=
7545   module_expsym_cmds=
7546   always_export_symbols=no
7547   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7548   # include_expsyms should be a list of space-separated symbols to be *always*
7549   # included in the symbol list
7550   include_expsyms=
7551   # exclude_expsyms can be an extended regexp of symbols to exclude
7552   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7553   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7554   # as well as any symbol that contains `d'.
7555   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7556   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7557   # platforms (ab)use it in PIC code, but their linkers get confused if
7558   # the symbol is explicitly referenced.  Since portable code cannot
7559   # rely on this symbol name, it's probably fine to never include it in
7560   # preloaded symbol tables.
7561   extract_expsyms_cmds=
7562   # Just being paranoid about ensuring that cc_basename is set.
7563   for cc_temp in $compiler""; do
7564   case $cc_temp in
7565     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7566     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7567     \-*) ;;
7568     *) break;;
7569   esac
7570 done
7571 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7572
7573   case $host_os in
7574   cygwin* | mingw* | pw32*)
7575     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7576     # When not using gcc, we currently assume that we are using
7577     # Microsoft Visual C++.
7578     if test "$GCC" != yes; then
7579       with_gnu_ld=no
7580     fi
7581     ;;
7582   interix*)
7583     # we just hope/assume this is gcc and not c89 (= MSVC++)
7584     with_gnu_ld=yes
7585     ;;
7586   openbsd*)
7587     with_gnu_ld=no
7588     ;;
7589   esac
7590
7591   ld_shlibs=yes
7592   if test "$with_gnu_ld" = yes; then
7593     # If archive_cmds runs LD, not CC, wlarc should be empty
7594     wlarc='${wl}'
7595
7596     # Set some defaults for GNU ld with shared library support. These
7597     # are reset later if shared libraries are not supported. Putting them
7598     # here allows them to be overridden if necessary.
7599     runpath_var=LD_RUN_PATH
7600     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7601     export_dynamic_flag_spec='${wl}--export-dynamic'
7602     # ancient GNU ld didn't support --whole-archive et. al.
7603     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7604         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7605       else
7606         whole_archive_flag_spec=
7607     fi
7608     supports_anon_versioning=no
7609     case `$LD -v 2>/dev/null` in
7610       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7611       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7612       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7613       *\ 2.11.*) ;; # other 2.11 versions
7614       *) supports_anon_versioning=yes ;;
7615     esac
7616
7617     # See if GNU ld supports shared libraries.
7618     case $host_os in
7619     aix3* | aix4* | aix5*)
7620       # On AIX/PPC, the GNU linker is very broken
7621       if test "$host_cpu" != ia64; then
7622         ld_shlibs=no
7623         cat <<EOF 1>&2
7624
7625 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7626 *** to be unable to reliably create shared libraries on AIX.
7627 *** Therefore, libtool is disabling shared libraries support.  If you
7628 *** really care for shared libraries, you may want to modify your PATH
7629 *** so that a non-GNU linker is found, and then restart.
7630
7631 EOF
7632       fi
7633       ;;
7634
7635     amigaos*)
7636       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)'
7637       hardcode_libdir_flag_spec='-L$libdir'
7638       hardcode_minus_L=yes
7639
7640       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7641       # that the semantics of dynamic libraries on AmigaOS, at least up
7642       # to version 4, is to share data among multiple programs linked
7643       # with the same dynamic library.  Since this doesn't match the
7644       # behavior of shared libraries on other platforms, we can't use
7645       # them.
7646       ld_shlibs=no
7647       ;;
7648
7649     beos*)
7650       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7651         allow_undefined_flag=unsupported
7652         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7653         # support --undefined.  This deserves some investigation.  FIXME
7654         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7655       else
7656         ld_shlibs=no
7657       fi
7658       ;;
7659
7660     cygwin* | mingw* | pw32*)
7661       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7662       # as there is no search path for DLLs.
7663       hardcode_libdir_flag_spec='-L$libdir'
7664       allow_undefined_flag=unsupported
7665       always_export_symbols=no
7666       enable_shared_with_static_runtimes=yes
7667       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7668
7669       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7670         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7671         # If the export-symbols file already is a .def file (1st line
7672         # is EXPORTS), use it as is; otherwise, prepend...
7673         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7674           cp $export_symbols $output_objdir/$soname.def;
7675         else
7676           echo EXPORTS > $output_objdir/$soname.def;
7677           cat $export_symbols >> $output_objdir/$soname.def;
7678         fi~
7679         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7680       else
7681         ld_shlibs=no
7682       fi
7683       ;;
7684
7685     interix3*)
7686       hardcode_direct=no
7687       hardcode_shlibpath_var=no
7688       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7689       export_dynamic_flag_spec='${wl}-E'
7690       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7691       # Instead, shared libraries are loaded at an image base (0x10000000 by
7692       # default) and relocated if they conflict, which is a slow very memory
7693       # consuming and fragmenting process.  To avoid this, we pick a random,
7694       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7695       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7696       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7697       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'
7698       ;;
7699
7700     linux*)
7701       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7702         tmp_addflag=
7703         case $cc_basename,$host_cpu in
7704         pgcc*)                          # Portland Group C compiler
7705           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'
7706           tmp_addflag=' $pic_flag'
7707           ;;
7708         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7709           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'
7710           tmp_addflag=' $pic_flag -Mnomain' ;;
7711         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7712           tmp_addflag=' -i_dynamic' ;;
7713         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7714           tmp_addflag=' -i_dynamic -nofor_main' ;;
7715         ifc* | ifort*)                  # Intel Fortran compiler
7716           tmp_addflag=' -nofor_main' ;;
7717         esac
7718         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7719
7720         if test $supports_anon_versioning = yes; then
7721           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7722   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7723   $echo "local: *; };" >> $output_objdir/$libname.ver~
7724           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7725         fi
7726       else
7727         ld_shlibs=no
7728       fi
7729       ;;
7730
7731     netbsd*)
7732       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7733         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7734         wlarc=
7735       else
7736         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7737         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7738       fi
7739       ;;
7740
7741     solaris*)
7742       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7743         ld_shlibs=no
7744         cat <<EOF 1>&2
7745
7746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7747 *** create shared libraries on Solaris systems.  Therefore, libtool
7748 *** is disabling shared libraries support.  We urge you to upgrade GNU
7749 *** binutils to release 2.9.1 or newer.  Another option is to modify
7750 *** your PATH or compiler configuration so that the native linker is
7751 *** used, and then restart.
7752
7753 EOF
7754       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7755         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7756         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7757       else
7758         ld_shlibs=no
7759       fi
7760       ;;
7761
7762     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7763       case `$LD -v 2>&1` in
7764         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
7765         ld_shlibs=no
7766         cat <<_LT_EOF 1>&2
7767
7768 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7769 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7770 *** is disabling shared libraries support.  We urge you to upgrade GNU
7771 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7772 *** your PATH or compiler configuration so that the native linker is
7773 *** used, and then restart.
7774
7775 _LT_EOF
7776         ;;
7777         *)
7778           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7779             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7780             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7781             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7782           else
7783             ld_shlibs=no
7784           fi
7785         ;;
7786       esac
7787       ;;
7788
7789     sunos4*)
7790       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7791       wlarc=
7792       hardcode_direct=yes
7793       hardcode_shlibpath_var=no
7794       ;;
7795
7796     *)
7797       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7798         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7800       else
7801         ld_shlibs=no
7802       fi
7803       ;;
7804     esac
7805
7806     if test "$ld_shlibs" = no; then
7807       runpath_var=
7808       hardcode_libdir_flag_spec=
7809       export_dynamic_flag_spec=
7810       whole_archive_flag_spec=
7811     fi
7812   else
7813     # PORTME fill in a description of your system's linker (not GNU ld)
7814     case $host_os in
7815     aix3*)
7816       allow_undefined_flag=unsupported
7817       always_export_symbols=yes
7818       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'
7819       # Note: this linker hardcodes the directories in LIBPATH if there
7820       # are no directories specified by -L.
7821       hardcode_minus_L=yes
7822       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7823         # Neither direct hardcoding nor static linking is supported with a
7824         # broken collect2.
7825         hardcode_direct=unsupported
7826       fi
7827       ;;
7828
7829     aix4* | aix5*)
7830       if test "$host_cpu" = ia64; then
7831         # On IA64, the linker does run time linking by default, so we don't
7832         # have to do anything special.
7833         aix_use_runtimelinking=no
7834         exp_sym_flag='-Bexport'
7835         no_entry_flag=""
7836       else
7837         # If we're using GNU nm, then we don't want the "-C" option.
7838         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7839         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7840           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'
7841         else
7842           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'
7843         fi
7844         aix_use_runtimelinking=no
7845
7846         # Test if we are trying to use run time linking or normal
7847         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7848         # need to do runtime linking.
7849         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7850           for ld_flag in $LDFLAGS; do
7851           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7852             aix_use_runtimelinking=yes
7853             break
7854           fi
7855           done
7856           ;;
7857         esac
7858
7859         exp_sym_flag='-bexport'
7860         no_entry_flag='-bnoentry'
7861       fi
7862
7863       # When large executables or shared objects are built, AIX ld can
7864       # have problems creating the table of contents.  If linking a library
7865       # or program results in "error TOC overflow" add -mminimal-toc to
7866       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7867       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7868
7869       archive_cmds=''
7870       hardcode_direct=yes
7871       hardcode_libdir_separator=':'
7872       link_all_deplibs=yes
7873
7874       if test "$GCC" = yes; then
7875         case $host_os in aix4.[012]|aix4.[012].*)
7876         # We only want to do this on AIX 4.2 and lower, the check
7877         # below for broken collect2 doesn't work under 4.3+
7878           collect2name=`${CC} -print-prog-name=collect2`
7879           if test -f "$collect2name" && \
7880            strings "$collect2name" | grep resolve_lib_name >/dev/null
7881           then
7882           # We have reworked collect2
7883           hardcode_direct=yes
7884           else
7885           # We have old collect2
7886           hardcode_direct=unsupported
7887           # It fails to find uninstalled libraries when the uninstalled
7888           # path is not listed in the libpath.  Setting hardcode_minus_L
7889           # to unsupported forces relinking
7890           hardcode_minus_L=yes
7891           hardcode_libdir_flag_spec='-L$libdir'
7892           hardcode_libdir_separator=
7893           fi
7894           ;;
7895         esac
7896         shared_flag='-shared'
7897         if test "$aix_use_runtimelinking" = yes; then
7898           shared_flag="$shared_flag "'${wl}-G'
7899         fi
7900       else
7901         # not using gcc
7902         if test "$host_cpu" = ia64; then
7903         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7904         # chokes on -Wl,-G. The following line is correct:
7905           shared_flag='-G'
7906         else
7907           if test "$aix_use_runtimelinking" = yes; then
7908             shared_flag='${wl}-G'
7909           else
7910             shared_flag='${wl}-bM:SRE'
7911           fi
7912         fi
7913       fi
7914
7915       # It seems that -bexpall does not export symbols beginning with
7916       # underscore (_), so it is better to generate a list of symbols to export.
7917       always_export_symbols=yes
7918       if test "$aix_use_runtimelinking" = yes; then
7919         # Warning - without using the other runtime loading flags (-brtl),
7920         # -berok will link without error, but may produce a broken library.
7921         allow_undefined_flag='-berok'
7922        # Determine the default libpath from the value encoded in an empty executable.
7923        cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h.  */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h.  */
7929
7930 int
7931 main ()
7932 {
7933
7934   ;
7935   return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (ac_try="$ac_link"
7940 case "(($ac_try" in
7941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942   *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945   (eval "$ac_link") 2>conftest.er1
7946   ac_status=$?
7947   grep -v '^ *+' conftest.er1 >conftest.err
7948   rm -f conftest.er1
7949   cat conftest.err >&5
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); } && {
7952          test -z "$ac_c_werror_flag" ||
7953          test ! -s conftest.err
7954        } && test -s conftest$ac_exeext &&
7955        $as_test_x conftest$ac_exeext; then
7956   
7957 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7958 }'`
7959 # Check for a 64-bit object if we didn't find anything.
7960 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7961 }'`; fi
7962 else
7963   echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966         
7967 fi
7968
7969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7970       conftest$ac_exeext conftest.$ac_ext
7971 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7972
7973        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7974         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"
7975        else
7976         if test "$host_cpu" = ia64; then
7977           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7978           allow_undefined_flag="-z nodefs"
7979           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"
7980         else
7981          # Determine the default libpath from the value encoded in an empty executable.
7982          cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988
7989 int
7990 main ()
7991 {
7992
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (ac_try="$ac_link"
7999 case "(($ac_try" in
8000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001   *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004   (eval "$ac_link") 2>conftest.er1
8005   ac_status=$?
8006   grep -v '^ *+' conftest.er1 >conftest.err
8007   rm -f conftest.er1
8008   cat conftest.err >&5
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); } && {
8011          test -z "$ac_c_werror_flag" ||
8012          test ! -s conftest.err
8013        } && test -s conftest$ac_exeext &&
8014        $as_test_x conftest$ac_exeext; then
8015   
8016 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8017 }'`
8018 # Check for a 64-bit object if we didn't find anything.
8019 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8020 }'`; fi
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025         
8026 fi
8027
8028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8029       conftest$ac_exeext conftest.$ac_ext
8030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8031
8032          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8033           # Warning - without using the other run time loading flags,
8034           # -berok will link without error, but may produce a broken library.
8035           no_undefined_flag=' ${wl}-bernotok'
8036           allow_undefined_flag=' ${wl}-berok'
8037           # Exported symbols can be pulled into shared objects from archives
8038           whole_archive_flag_spec='$convenience'
8039           archive_cmds_need_lc=yes
8040           # This is similar to how AIX traditionally builds its shared libraries.
8041           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'
8042         fi
8043       fi
8044       ;;
8045
8046     amigaos*)
8047       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)'
8048       hardcode_libdir_flag_spec='-L$libdir'
8049       hardcode_minus_L=yes
8050       # see comment about different semantics on the GNU ld section
8051       ld_shlibs=no
8052       ;;
8053
8054     bsdi[45]*)
8055       export_dynamic_flag_spec=-rdynamic
8056       ;;
8057
8058     cygwin* | mingw* | pw32*)
8059       # When not using gcc, we currently assume that we are using
8060       # Microsoft Visual C++.
8061       # hardcode_libdir_flag_spec is actually meaningless, as there is
8062       # no search path for DLLs.
8063       hardcode_libdir_flag_spec=' '
8064       allow_undefined_flag=unsupported
8065       # Tell ltmain to make .lib files, not .a files.
8066       libext=lib
8067       # Tell ltmain to make .dll files, not .so files.
8068       shrext_cmds=".dll"
8069       # FIXME: Setting linknames here is a bad hack.
8070       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8071       # The linker will automatically build a .lib file if we build a DLL.
8072       old_archive_From_new_cmds='true'
8073       # FIXME: Should let the user specify the lib program.
8074       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8075       fix_srcfile_path='`cygpath -w "$srcfile"`'
8076       enable_shared_with_static_runtimes=yes
8077       ;;
8078
8079     darwin* | rhapsody*)
8080       case $host_os in
8081         rhapsody* | darwin1.[012])
8082          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8083          ;;
8084        *) # Darwin 1.3 on
8085          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8086            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8087          else
8088            case ${MACOSX_DEPLOYMENT_TARGET} in
8089              10.[012])
8090                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8091                ;;
8092              10.*)
8093                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8094                ;;
8095            esac
8096          fi
8097          ;;
8098       esac
8099       archive_cmds_need_lc=no
8100       hardcode_direct=no
8101       hardcode_automatic=yes
8102       hardcode_shlibpath_var=unsupported
8103       whole_archive_flag_spec=''
8104       link_all_deplibs=yes
8105     if test "$GCC" = yes ; then
8106         output_verbose_link_cmd='echo'
8107         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8108       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8109       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8110       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8111       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}'
8112     else
8113       case $cc_basename in
8114         xlc*)
8115          output_verbose_link_cmd='echo'
8116          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8117          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8118           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8119          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8120           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}'
8121           ;;
8122        *)
8123          ld_shlibs=no
8124           ;;
8125       esac
8126     fi
8127       ;;
8128
8129     dgux*)
8130       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131       hardcode_libdir_flag_spec='-L$libdir'
8132       hardcode_shlibpath_var=no
8133       ;;
8134
8135     freebsd1*)
8136       ld_shlibs=no
8137       ;;
8138
8139     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8140     # support.  Future versions do this automatically, but an explicit c++rt0.o
8141     # does not break anything, and helps significantly (at the cost of a little
8142     # extra space).
8143     freebsd2.2*)
8144       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8145       hardcode_libdir_flag_spec='-R$libdir'
8146       hardcode_direct=yes
8147       hardcode_shlibpath_var=no
8148       ;;
8149
8150     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8151     freebsd2*)
8152       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8153       hardcode_direct=yes
8154       hardcode_minus_L=yes
8155       hardcode_shlibpath_var=no
8156       ;;
8157
8158     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8159     freebsd* | kfreebsd*-gnu | dragonfly*)
8160       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8161       hardcode_libdir_flag_spec='-R$libdir'
8162       hardcode_direct=yes
8163       hardcode_shlibpath_var=no
8164       ;;
8165
8166     hpux9*)
8167       if test "$GCC" = yes; then
8168         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'
8169       else
8170         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'
8171       fi
8172       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8173       hardcode_libdir_separator=:
8174       hardcode_direct=yes
8175
8176       # hardcode_minus_L: Not really in the search PATH,
8177       # but as the default location of the library.
8178       hardcode_minus_L=yes
8179       export_dynamic_flag_spec='${wl}-E'
8180       ;;
8181
8182     hpux10*)
8183       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8184         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8185       else
8186         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8187       fi
8188       if test "$with_gnu_ld" = no; then
8189         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8190         hardcode_libdir_separator=:
8191
8192         hardcode_direct=yes
8193         export_dynamic_flag_spec='${wl}-E'
8194
8195         # hardcode_minus_L: Not really in the search PATH,
8196         # but as the default location of the library.
8197         hardcode_minus_L=yes
8198       fi
8199       ;;
8200
8201     hpux11*)
8202       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8203         case $host_cpu in
8204         hppa*64*)
8205           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8206           ;;
8207         ia64*)
8208           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8209           ;;
8210         *)
8211           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8212           ;;
8213         esac
8214       else
8215         case $host_cpu in
8216         hppa*64*)
8217           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8218           ;;
8219         ia64*)
8220           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8221           ;;
8222         *)
8223           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8224           ;;
8225         esac
8226       fi
8227       if test "$with_gnu_ld" = no; then
8228         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8229         hardcode_libdir_separator=:
8230
8231         case $host_cpu in
8232         hppa*64*|ia64*)
8233           hardcode_libdir_flag_spec_ld='+b $libdir'
8234           hardcode_direct=no
8235           hardcode_shlibpath_var=no
8236           ;;
8237         *)
8238           hardcode_direct=yes
8239           export_dynamic_flag_spec='${wl}-E'
8240
8241           # hardcode_minus_L: Not really in the search PATH,
8242           # but as the default location of the library.
8243           hardcode_minus_L=yes
8244           ;;
8245         esac
8246       fi
8247       ;;
8248
8249     irix5* | irix6* | nonstopux*)
8250       if test "$GCC" = yes; then
8251         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'
8252       else
8253         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'
8254         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8255       fi
8256       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8257       hardcode_libdir_separator=:
8258       link_all_deplibs=yes
8259       ;;
8260
8261     netbsd*)
8262       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8263         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8264       else
8265         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8266       fi
8267       hardcode_libdir_flag_spec='-R$libdir'
8268       hardcode_direct=yes
8269       hardcode_shlibpath_var=no
8270       ;;
8271
8272     newsos6)
8273       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8274       hardcode_direct=yes
8275       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8276       hardcode_libdir_separator=:
8277       hardcode_shlibpath_var=no
8278       ;;
8279
8280     openbsd*)
8281       hardcode_direct=yes
8282       hardcode_shlibpath_var=no
8283       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8284         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8285         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8286         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8287         export_dynamic_flag_spec='${wl}-E'
8288       else
8289        case $host_os in
8290          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8291            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8292            hardcode_libdir_flag_spec='-R$libdir'
8293            ;;
8294          *)
8295            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8296            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8297            ;;
8298        esac
8299       fi
8300       ;;
8301
8302     os2*)
8303       hardcode_libdir_flag_spec='-L$libdir'
8304       hardcode_minus_L=yes
8305       allow_undefined_flag=unsupported
8306       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'
8307       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8308       ;;
8309
8310     osf3*)
8311       if test "$GCC" = yes; then
8312         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8313         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'
8314       else
8315         allow_undefined_flag=' -expect_unresolved \*'
8316         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'
8317       fi
8318       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319       hardcode_libdir_separator=:
8320       ;;
8321
8322     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8323       if test "$GCC" = yes; then
8324         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8325         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'
8326         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327       else
8328         allow_undefined_flag=' -expect_unresolved \*'
8329         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'
8330         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8331         $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'
8332
8333         # Both c and cxx compiler support -rpath directly
8334         hardcode_libdir_flag_spec='-rpath $libdir'
8335       fi
8336       hardcode_libdir_separator=:
8337       ;;
8338
8339     solaris*)
8340       no_undefined_flag=' -z text'
8341       if test "$GCC" = yes; then
8342         wlarc='${wl}'
8343         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8345           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8346       else
8347         wlarc=''
8348         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8349         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8350         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8351       fi
8352       hardcode_libdir_flag_spec='-R$libdir'
8353       hardcode_shlibpath_var=no
8354       case $host_os in
8355       solaris2.[0-5] | solaris2.[0-5].*) ;;
8356       *)
8357         # The compiler driver will combine linker options so we
8358         # cannot just pass the convience library names through
8359         # without $wl, iff we do not link with $LD.
8360         # Luckily, gcc supports the same syntax we need for Sun Studio.
8361         # Supported since Solaris 2.6 (maybe 2.5.1?)
8362         case $wlarc in
8363         '')
8364           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8365         *)
8366           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8367         esac ;;
8368       esac
8369       link_all_deplibs=yes
8370       ;;
8371
8372     sunos4*)
8373       if test "x$host_vendor" = xsequent; then
8374         # Use $CC to link under sequent, because it throws in some extra .o
8375         # files that make .init and .fini sections work.
8376         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8377       else
8378         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8379       fi
8380       hardcode_libdir_flag_spec='-L$libdir'
8381       hardcode_direct=yes
8382       hardcode_minus_L=yes
8383       hardcode_shlibpath_var=no
8384       ;;
8385
8386     sysv4)
8387       case $host_vendor in
8388         sni)
8389           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390           hardcode_direct=yes # is this really true???
8391         ;;
8392         siemens)
8393           ## LD is ld it makes a PLAMLIB
8394           ## CC just makes a GrossModule.
8395           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8396           reload_cmds='$CC -r -o $output$reload_objs'
8397           hardcode_direct=no
8398         ;;
8399         motorola)
8400           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8401           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8402         ;;
8403       esac
8404       runpath_var='LD_RUN_PATH'
8405       hardcode_shlibpath_var=no
8406       ;;
8407
8408     sysv4.3*)
8409       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8410       hardcode_shlibpath_var=no
8411       export_dynamic_flag_spec='-Bexport'
8412       ;;
8413
8414     sysv4*MP*)
8415       if test -d /usr/nec; then
8416         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8417         hardcode_shlibpath_var=no
8418         runpath_var=LD_RUN_PATH
8419         hardcode_runpath_var=yes
8420         ld_shlibs=yes
8421       fi
8422       ;;
8423
8424     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8425       no_undefined_flag='${wl}-z,text'
8426       archive_cmds_need_lc=no
8427       hardcode_shlibpath_var=no
8428       runpath_var='LD_RUN_PATH'
8429
8430       if test "$GCC" = yes; then
8431         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433       else
8434         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8435         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8436       fi
8437       ;;
8438
8439     sysv5* | sco3.2v5* | sco5v6*)
8440       # Note: We can NOT use -z defs as we might desire, because we do not
8441       # link with -lc, and that would cause any symbols used from libc to
8442       # always be unresolved, which means just about no library would
8443       # ever link correctly.  If we're not using GNU ld we use -z text
8444       # though, which does catch some bad symbols but isn't as heavy-handed
8445       # as -z defs.
8446       no_undefined_flag='${wl}-z,text'
8447       allow_undefined_flag='${wl}-z,nodefs'
8448       archive_cmds_need_lc=no
8449       hardcode_shlibpath_var=no
8450       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8451       hardcode_libdir_separator=':'
8452       link_all_deplibs=yes
8453       export_dynamic_flag_spec='${wl}-Bexport'
8454       runpath_var='LD_RUN_PATH'
8455
8456       if test "$GCC" = yes; then
8457         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459       else
8460         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8462       fi
8463       ;;
8464
8465     uts4*)
8466       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8467       hardcode_libdir_flag_spec='-L$libdir'
8468       hardcode_shlibpath_var=no
8469       ;;
8470
8471     *)
8472       ld_shlibs=no
8473       ;;
8474     esac
8475   fi
8476
8477 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8478 echo "${ECHO_T}$ld_shlibs" >&6; }
8479 test "$ld_shlibs" = no && can_build_shared=no
8480
8481 #
8482 # Do we need to explicitly link libc?
8483 #
8484 case "x$archive_cmds_need_lc" in
8485 x|xyes)
8486   # Assume -lc should be added
8487   archive_cmds_need_lc=yes
8488
8489   if test "$enable_shared" = yes && test "$GCC" = yes; then
8490     case $archive_cmds in
8491     *'~'*)
8492       # FIXME: we may have to deal with multi-command sequences.
8493       ;;
8494     '$CC '*)
8495       # Test whether the compiler implicitly links with -lc since on some
8496       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8497       # to ld, don't add -lc before -lgcc.
8498       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8499 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8500       $rm conftest*
8501       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8502
8503       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8504   (eval $ac_compile) 2>&5
8505   ac_status=$?
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } 2>conftest.err; then
8508         soname=conftest
8509         lib=conftest
8510         libobjs=conftest.$ac_objext
8511         deplibs=
8512         wl=$lt_prog_compiler_wl
8513         pic_flag=$lt_prog_compiler_pic
8514         compiler_flags=-v
8515         linker_flags=-v
8516         verstring=
8517         output_objdir=.
8518         libname=conftest
8519         lt_save_allow_undefined_flag=$allow_undefined_flag
8520         allow_undefined_flag=
8521         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8522   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }
8526         then
8527           archive_cmds_need_lc=no
8528         else
8529           archive_cmds_need_lc=yes
8530         fi
8531         allow_undefined_flag=$lt_save_allow_undefined_flag
8532       else
8533         cat conftest.err 1>&5
8534       fi
8535       $rm conftest*
8536       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8537 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8538       ;;
8539     esac
8540   fi
8541   ;;
8542 esac
8543
8544 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8546 library_names_spec=
8547 libname_spec='lib$name'
8548 soname_spec=
8549 shrext_cmds=".so"
8550 postinstall_cmds=
8551 postuninstall_cmds=
8552 finish_cmds=
8553 finish_eval=
8554 shlibpath_var=
8555 shlibpath_overrides_runpath=unknown
8556 version_type=none
8557 dynamic_linker="$host_os ld.so"
8558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8559 if test "$GCC" = yes; then
8560   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8562     # if the path contains ";" then we assume it to be the separator
8563     # otherwise default to the standard path separator (i.e. ":") - it is
8564     # assumed that no part of a normal pathname contains ";" but that should
8565     # okay in the real world where ";" in dirpaths is itself problematic.
8566     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8567   else
8568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8569   fi
8570 else
8571   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8572 fi
8573 need_lib_prefix=unknown
8574 hardcode_into_libs=no
8575
8576 # when you set need_version to no, make sure it does not cause -set_version
8577 # flags to be left without arguments
8578 need_version=unknown
8579
8580 case $host_os in
8581 aix3*)
8582   version_type=linux
8583   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8584   shlibpath_var=LIBPATH
8585
8586   # AIX 3 has no versioning support, so we append a major version to the name.
8587   soname_spec='${libname}${release}${shared_ext}$major'
8588   ;;
8589
8590 aix4* | aix5*)
8591   version_type=linux
8592   need_lib_prefix=no
8593   need_version=no
8594   hardcode_into_libs=yes
8595   if test "$host_cpu" = ia64; then
8596     # AIX 5 supports IA64
8597     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8598     shlibpath_var=LD_LIBRARY_PATH
8599   else
8600     # With GCC up to 2.95.x, collect2 would create an import file
8601     # for dependence libraries.  The import file would start with
8602     # the line `#! .'.  This would cause the generated library to
8603     # depend on `.', always an invalid library.  This was fixed in
8604     # development snapshots of GCC prior to 3.0.
8605     case $host_os in
8606       aix4 | aix4.[01] | aix4.[01].*)
8607       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8608            echo ' yes '
8609            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8610         :
8611       else
8612         can_build_shared=no
8613       fi
8614       ;;
8615     esac
8616     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8617     # soname into executable. Probably we can add versioning support to
8618     # collect2, so additional links can be useful in future.
8619     if test "$aix_use_runtimelinking" = yes; then
8620       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8621       # instead of lib<name>.a to let people know that these are not
8622       # typical AIX shared libraries.
8623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624     else
8625       # We preserve .a as extension for shared libraries through AIX4.2
8626       # and later when we are not doing run time linking.
8627       library_names_spec='${libname}${release}.a $libname.a'
8628       soname_spec='${libname}${release}${shared_ext}$major'
8629     fi
8630     shlibpath_var=LIBPATH
8631   fi
8632   ;;
8633
8634 amigaos*)
8635   library_names_spec='$libname.ixlibrary $libname.a'
8636   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8637   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'
8638   ;;
8639
8640 beos*)
8641   library_names_spec='${libname}${shared_ext}'
8642   dynamic_linker="$host_os ld.so"
8643   shlibpath_var=LIBRARY_PATH
8644   ;;
8645
8646 bsdi[45]*)
8647   version_type=linux
8648   need_version=no
8649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650   soname_spec='${libname}${release}${shared_ext}$major'
8651   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8652   shlibpath_var=LD_LIBRARY_PATH
8653   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8654   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8655   # the default ld.so.conf also contains /usr/contrib/lib and
8656   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8657   # libtool to hard-code these into programs
8658   ;;
8659
8660 cygwin* | mingw* | pw32*)
8661   version_type=windows
8662   shrext_cmds=".dll"
8663   need_version=no
8664   need_lib_prefix=no
8665
8666   case $GCC,$host_os in
8667   yes,cygwin* | yes,mingw* | yes,pw32*)
8668     library_names_spec='$libname.dll.a'
8669     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8670     postinstall_cmds='base_file=`basename \${file}`~
8671       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8672       dldir=$destdir/`dirname \$dlpath`~
8673       test -d \$dldir || mkdir -p \$dldir~
8674       $install_prog $dir/$dlname \$dldir/$dlname~
8675       chmod a+x \$dldir/$dlname'
8676     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8677       dlpath=$dir/\$dldll~
8678        $rm \$dlpath'
8679     shlibpath_overrides_runpath=yes
8680
8681     case $host_os in
8682     cygwin*)
8683       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8684       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8685       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8686       ;;
8687     mingw*)
8688       # MinGW DLLs use traditional 'lib' prefix
8689       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8690       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8691       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8692         # It is most probably a Windows format PATH printed by
8693         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8694         # path with ; separators, and with drive letters. We can handle the
8695         # drive letters (cygwin fileutils understands them), so leave them,
8696         # especially as we might pass files found there to a mingw objdump,
8697         # which wouldn't understand a cygwinified path. Ahh.
8698         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8699       else
8700         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8701       fi
8702       ;;
8703     pw32*)
8704       # pw32 DLLs use 'pw' prefix rather than 'lib'
8705       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8706       ;;
8707     esac
8708     ;;
8709
8710   linux*)
8711     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8712       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8713       supports_anon_versioning=no
8714       case `$LD -v 2>/dev/null` in
8715         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8716         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8717         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8718         *\ 2.11.*) ;; # other 2.11 versions
8719         *) supports_anon_versioning=yes ;;
8720       esac
8721       if test $supports_anon_versioning = yes; then
8722         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8724 $echo "local: *; };" >> $output_objdir/$libname.ver~
8725         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8726       else
8727         $archive_expsym_cmds="$archive_cmds"
8728       fi
8729     else
8730       ld_shlibs=no
8731     fi
8732     ;;
8733
8734   *)
8735     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8736     ;;
8737   esac
8738   dynamic_linker='Win32 ld.exe'
8739   # FIXME: first we should search . and the directory the executable is in
8740   shlibpath_var=PATH
8741   ;;
8742
8743 darwin* | rhapsody*)
8744   dynamic_linker="$host_os dyld"
8745   version_type=darwin
8746   need_lib_prefix=no
8747   need_version=no
8748   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8749   soname_spec='${libname}${release}${major}$shared_ext'
8750   shlibpath_overrides_runpath=yes
8751   shlibpath_var=DYLD_LIBRARY_PATH
8752   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8753   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8754   if test "$GCC" = yes; then
8755     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8756   else
8757     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8758   fi
8759   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8760   ;;
8761
8762 dgux*)
8763   version_type=linux
8764   need_lib_prefix=no
8765   need_version=no
8766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8767   soname_spec='${libname}${release}${shared_ext}$major'
8768   shlibpath_var=LD_LIBRARY_PATH
8769   ;;
8770
8771 freebsd1*)
8772   dynamic_linker=no
8773   ;;
8774
8775 kfreebsd*-gnu)
8776   version_type=linux
8777   need_lib_prefix=no
8778   need_version=no
8779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8780   soname_spec='${libname}${release}${shared_ext}$major'
8781   shlibpath_var=LD_LIBRARY_PATH
8782   shlibpath_overrides_runpath=no
8783   hardcode_into_libs=yes
8784   dynamic_linker='GNU ld.so'
8785   ;;
8786
8787 freebsd* | dragonfly*)
8788   # DragonFly does not have aout.  When/if they implement a new
8789   # versioning mechanism, adjust this.
8790   if test -x /usr/bin/objformat; then
8791     objformat=`/usr/bin/objformat`
8792   else
8793     case $host_os in
8794     freebsd[123]*) objformat=aout ;;
8795     *) objformat=elf ;;
8796     esac
8797   fi
8798   # Handle Gentoo/FreeBSD as it was Linux
8799   case $host_vendor in
8800     gentoo)
8801       version_type=linux ;;
8802     *)
8803       version_type=freebsd-$objformat ;;
8804   esac
8805
8806   case $version_type in
8807     freebsd-elf*)
8808       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8809       need_version=no
8810       need_lib_prefix=no
8811       ;;
8812     freebsd-*)
8813       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8814       need_version=yes
8815       ;;
8816     linux)
8817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8818       soname_spec='${libname}${release}${shared_ext}$major'
8819       need_lib_prefix=no
8820       need_version=no
8821       ;;
8822   esac
8823   shlibpath_var=LD_LIBRARY_PATH
8824   case $host_os in
8825   freebsd2*)
8826     shlibpath_overrides_runpath=yes
8827     ;;
8828   freebsd3.[01]* | freebsdelf3.[01]*)
8829     shlibpath_overrides_runpath=yes
8830     hardcode_into_libs=yes
8831     ;;
8832   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8833   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8834     shlibpath_overrides_runpath=no
8835     hardcode_into_libs=yes
8836     ;;
8837   freebsd*) # from 4.6 on
8838     shlibpath_overrides_runpath=yes
8839     hardcode_into_libs=yes
8840     ;;
8841   esac
8842   ;;
8843
8844 gnu*)
8845   version_type=linux
8846   need_lib_prefix=no
8847   need_version=no
8848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8849   soname_spec='${libname}${release}${shared_ext}$major'
8850   shlibpath_var=LD_LIBRARY_PATH
8851   hardcode_into_libs=yes
8852   ;;
8853
8854 hpux9* | hpux10* | hpux11*)
8855   # Give a soname corresponding to the major version so that dld.sl refuses to
8856   # link against other versions.
8857   version_type=sunos
8858   need_lib_prefix=no
8859   need_version=no
8860   case $host_cpu in
8861   ia64*)
8862     shrext_cmds='.so'
8863     hardcode_into_libs=yes
8864     dynamic_linker="$host_os dld.so"
8865     shlibpath_var=LD_LIBRARY_PATH
8866     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8867     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868     soname_spec='${libname}${release}${shared_ext}$major'
8869     if test "X$HPUX_IA64_MODE" = X32; then
8870       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8871     else
8872       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8873     fi
8874     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8875     ;;
8876    hppa*64*)
8877      shrext_cmds='.sl'
8878      hardcode_into_libs=yes
8879      dynamic_linker="$host_os dld.sl"
8880      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8881      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8882      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883      soname_spec='${libname}${release}${shared_ext}$major'
8884      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8885      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8886      ;;
8887    *)
8888     shrext_cmds='.sl'
8889     dynamic_linker="$host_os dld.sl"
8890     shlibpath_var=SHLIB_PATH
8891     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8892     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8893     soname_spec='${libname}${release}${shared_ext}$major'
8894     ;;
8895   esac
8896   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8897   postinstall_cmds='chmod 555 $lib'
8898   ;;
8899
8900 interix3*)
8901   version_type=linux
8902   need_lib_prefix=no
8903   need_version=no
8904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8905   soname_spec='${libname}${release}${shared_ext}$major'
8906   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8907   shlibpath_var=LD_LIBRARY_PATH
8908   shlibpath_overrides_runpath=no
8909   hardcode_into_libs=yes
8910   ;;
8911
8912 irix5* | irix6* | nonstopux*)
8913   case $host_os in
8914     nonstopux*) version_type=nonstopux ;;
8915     *)
8916         if test "$lt_cv_prog_gnu_ld" = yes; then
8917                 version_type=linux
8918         else
8919                 version_type=irix
8920         fi ;;
8921   esac
8922   need_lib_prefix=no
8923   need_version=no
8924   soname_spec='${libname}${release}${shared_ext}$major'
8925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8926   case $host_os in
8927   irix5* | nonstopux*)
8928     libsuff= shlibsuff=
8929     ;;
8930   *)
8931     case $LD in # libtool.m4 will add one of these switches to LD
8932     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8933       libsuff= shlibsuff= libmagic=32-bit;;
8934     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8935       libsuff=32 shlibsuff=N32 libmagic=N32;;
8936     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8937       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8938     *) libsuff= shlibsuff= libmagic=never-match;;
8939     esac
8940     ;;
8941   esac
8942   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8943   shlibpath_overrides_runpath=no
8944   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8945   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8946   hardcode_into_libs=yes
8947   ;;
8948
8949 # No shared lib support for Linux oldld, aout, or coff.
8950 linux*oldld* | linux*aout* | linux*coff*)
8951   dynamic_linker=no
8952   ;;
8953
8954 # This must be Linux ELF.
8955 linux*)
8956   version_type=linux
8957   need_lib_prefix=no
8958   need_version=no
8959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960   soname_spec='${libname}${release}${shared_ext}$major'
8961   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8962   shlibpath_var=LD_LIBRARY_PATH
8963   shlibpath_overrides_runpath=no
8964   # This implies no fast_install, which is unacceptable.
8965   # Some rework will be needed to allow for fast_install
8966   # before this can be enabled.
8967   hardcode_into_libs=yes
8968
8969   # Append ld.so.conf contents to the search path
8970   if test -f /etc/ld.so.conf; then
8971     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8972     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8973   fi
8974
8975   # We used to test for /lib/ld.so.1 and disable shared libraries on
8976   # powerpc, because MkLinux only supported shared libraries with the
8977   # GNU dynamic linker.  Since this was broken with cross compilers,
8978   # most powerpc-linux boxes support dynamic linking these days and
8979   # people can always --disable-shared, the test was removed, and we
8980   # assume the GNU/Linux dynamic linker is in use.
8981   dynamic_linker='GNU/Linux ld.so'
8982   ;;
8983
8984 knetbsd*-gnu)
8985   version_type=linux
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   shlibpath_var=LD_LIBRARY_PATH
8991   shlibpath_overrides_runpath=no
8992   hardcode_into_libs=yes
8993   dynamic_linker='GNU ld.so'
8994   ;;
8995
8996 netbsd*)
8997   version_type=sunos
8998   need_lib_prefix=no
8999   need_version=no
9000   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9002     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9003     dynamic_linker='NetBSD (a.out) ld.so'
9004   else
9005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9006     soname_spec='${libname}${release}${shared_ext}$major'
9007     dynamic_linker='NetBSD ld.elf_so'
9008   fi
9009   shlibpath_var=LD_LIBRARY_PATH
9010   shlibpath_overrides_runpath=yes
9011   hardcode_into_libs=yes
9012   ;;
9013
9014 newsos6)
9015   version_type=linux
9016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017   shlibpath_var=LD_LIBRARY_PATH
9018   shlibpath_overrides_runpath=yes
9019   ;;
9020
9021 nto-qnx*)
9022   version_type=linux
9023   need_lib_prefix=no
9024   need_version=no
9025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026   soname_spec='${libname}${release}${shared_ext}$major'
9027   shlibpath_var=LD_LIBRARY_PATH
9028   shlibpath_overrides_runpath=yes
9029   ;;
9030
9031 openbsd*)
9032   version_type=sunos
9033   sys_lib_dlsearch_path_spec="/usr/lib"
9034   need_lib_prefix=no
9035   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9036   case $host_os in
9037     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9038     *)                         need_version=no  ;;
9039   esac
9040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9042   shlibpath_var=LD_LIBRARY_PATH
9043   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9044     case $host_os in
9045       openbsd2.[89] | openbsd2.[89].*)
9046         shlibpath_overrides_runpath=no
9047         ;;
9048       *)
9049         shlibpath_overrides_runpath=yes
9050         ;;
9051       esac
9052   else
9053     shlibpath_overrides_runpath=yes
9054   fi
9055   ;;
9056
9057 os2*)
9058   libname_spec='$name'
9059   shrext_cmds=".dll"
9060   need_lib_prefix=no
9061   library_names_spec='$libname${shared_ext} $libname.a'
9062   dynamic_linker='OS/2 ld.exe'
9063   shlibpath_var=LIBPATH
9064   ;;
9065
9066 osf3* | osf4* | osf5*)
9067   version_type=osf
9068   need_lib_prefix=no
9069   need_version=no
9070   soname_spec='${libname}${release}${shared_ext}$major'
9071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072   shlibpath_var=LD_LIBRARY_PATH
9073   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9074   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9075   ;;
9076
9077 solaris*)
9078   version_type=linux
9079   need_lib_prefix=no
9080   need_version=no
9081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082   soname_spec='${libname}${release}${shared_ext}$major'
9083   shlibpath_var=LD_LIBRARY_PATH
9084   shlibpath_overrides_runpath=yes
9085   hardcode_into_libs=yes
9086   # ldd complains unless libraries are executable
9087   postinstall_cmds='chmod +x $lib'
9088   ;;
9089
9090 sunos4*)
9091   version_type=sunos
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9093   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9094   shlibpath_var=LD_LIBRARY_PATH
9095   shlibpath_overrides_runpath=yes
9096   if test "$with_gnu_ld" = yes; then
9097     need_lib_prefix=no
9098   fi
9099   need_version=yes
9100   ;;
9101
9102 sysv4 | sysv4.3*)
9103   version_type=linux
9104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105   soname_spec='${libname}${release}${shared_ext}$major'
9106   shlibpath_var=LD_LIBRARY_PATH
9107   case $host_vendor in
9108     sni)
9109       shlibpath_overrides_runpath=no
9110       need_lib_prefix=no
9111       export_dynamic_flag_spec='${wl}-Blargedynsym'
9112       runpath_var=LD_RUN_PATH
9113       ;;
9114     siemens)
9115       need_lib_prefix=no
9116       ;;
9117     motorola)
9118       need_lib_prefix=no
9119       need_version=no
9120       shlibpath_overrides_runpath=no
9121       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9122       ;;
9123   esac
9124   ;;
9125
9126 sysv4*MP*)
9127   if test -d /usr/nec ;then
9128     version_type=linux
9129     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9130     soname_spec='$libname${shared_ext}.$major'
9131     shlibpath_var=LD_LIBRARY_PATH
9132   fi
9133   ;;
9134
9135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9136   version_type=freebsd-elf
9137   need_lib_prefix=no
9138   need_version=no
9139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9140   soname_spec='${libname}${release}${shared_ext}$major'
9141   shlibpath_var=LD_LIBRARY_PATH
9142   hardcode_into_libs=yes
9143   if test "$with_gnu_ld" = yes; then
9144     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9145     shlibpath_overrides_runpath=no
9146   else
9147     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9148     shlibpath_overrides_runpath=yes
9149     case $host_os in
9150       sco3.2v5*)
9151         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9152         ;;
9153     esac
9154   fi
9155   sys_lib_dlsearch_path_spec='/usr/lib'
9156   ;;
9157
9158 uts4*)
9159   version_type=linux
9160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161   soname_spec='${libname}${release}${shared_ext}$major'
9162   shlibpath_var=LD_LIBRARY_PATH
9163   ;;
9164
9165 *)
9166   dynamic_linker=no
9167   ;;
9168 esac
9169 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9170 echo "${ECHO_T}$dynamic_linker" >&6; }
9171 test "$dynamic_linker" = no && can_build_shared=no
9172
9173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9174 if test "$GCC" = yes; then
9175   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9176 fi
9177
9178 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9179 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9180 hardcode_action=
9181 if test -n "$hardcode_libdir_flag_spec" || \
9182    test -n "$runpath_var" || \
9183    test "X$hardcode_automatic" = "Xyes" ; then
9184
9185   # We can hardcode non-existant directories.
9186   if test "$hardcode_direct" != no &&
9187      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9188      # have to relink, otherwise we might link with an installed library
9189      # when we should be linking with a yet-to-be-installed one
9190      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9191      test "$hardcode_minus_L" != no; then
9192     # Linking always hardcodes the temporary library directory.
9193     hardcode_action=relink
9194   else
9195     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9196     hardcode_action=immediate
9197   fi
9198 else
9199   # We cannot hardcode anything, or else we can only hardcode existing
9200   # directories.
9201   hardcode_action=unsupported
9202 fi
9203 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9204 echo "${ECHO_T}$hardcode_action" >&6; }
9205
9206 if test "$hardcode_action" = relink; then
9207   # Fast installation is not supported
9208   enable_fast_install=no
9209 elif test "$shlibpath_overrides_runpath" = yes ||
9210      test "$enable_shared" = no; then
9211   # Fast installation is not necessary
9212   enable_fast_install=needless
9213 fi
9214
9215 striplib=
9216 old_striplib=
9217 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9218 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9219 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9220   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9221   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9222   { echo "$as_me:$LINENO: result: yes" >&5
9223 echo "${ECHO_T}yes" >&6; }
9224 else
9225 # FIXME - insert some real tests, host_os isn't really good enough
9226   case $host_os in
9227    darwin*)
9228        if test -n "$STRIP" ; then
9229          striplib="$STRIP -x"
9230          { echo "$as_me:$LINENO: result: yes" >&5
9231 echo "${ECHO_T}yes" >&6; }
9232        else
9233   { echo "$as_me:$LINENO: result: no" >&5
9234 echo "${ECHO_T}no" >&6; }
9235 fi
9236        ;;
9237    *)
9238   { echo "$as_me:$LINENO: result: no" >&5
9239 echo "${ECHO_T}no" >&6; }
9240     ;;
9241   esac
9242 fi
9243
9244 if test "x$enable_dlopen" != xyes; then
9245   enable_dlopen=unknown
9246   enable_dlopen_self=unknown
9247   enable_dlopen_self_static=unknown
9248 else
9249   lt_cv_dlopen=no
9250   lt_cv_dlopen_libs=
9251
9252   case $host_os in
9253   beos*)
9254     lt_cv_dlopen="load_add_on"
9255     lt_cv_dlopen_libs=
9256     lt_cv_dlopen_self=yes
9257     ;;
9258
9259   mingw* | pw32*)
9260     lt_cv_dlopen="LoadLibrary"
9261     lt_cv_dlopen_libs=
9262    ;;
9263
9264   cygwin*)
9265     lt_cv_dlopen="dlopen"
9266     lt_cv_dlopen_libs=
9267    ;;
9268
9269   darwin*)
9270   # if libdl is installed we need to link against it
9271     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9272 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-ldl  $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286    Use char because int might match the return type of a GCC
9287    builtin and then its argument prototype would still apply.  */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char dlopen ();
9292 int
9293 main ()
9294 {
9295 return dlopen ();
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (ac_try="$ac_link"
9302 case "(($ac_try" in
9303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9304   *) ac_try_echo=$ac_try;;
9305 esac
9306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9307   (eval "$ac_link") 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } && {
9314          test -z "$ac_c_werror_flag" ||
9315          test ! -s conftest.err
9316        } && test -s conftest$ac_exeext &&
9317        $as_test_x conftest$ac_exeext; then
9318   ac_cv_lib_dl_dlopen=yes
9319 else
9320   echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9322
9323         ac_cv_lib_dl_dlopen=no
9324 fi
9325
9326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9327       conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9329 fi
9330 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9331 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9332 if test $ac_cv_lib_dl_dlopen = yes; then
9333   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9334 else
9335   
9336     lt_cv_dlopen="dyld"
9337     lt_cv_dlopen_libs=
9338     lt_cv_dlopen_self=yes
9339     
9340 fi
9341
9342    ;;
9343
9344   *)
9345     { echo "$as_me:$LINENO: checking for shl_load" >&5
9346 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9347 if test "${ac_cv_func_shl_load+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9358 #define shl_load innocuous_shl_load
9359
9360 /* System header to define __stub macros and hopefully few prototypes,
9361     which can conflict with char shl_load (); below.
9362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9363     <limits.h> exists even on freestanding compilers.  */
9364
9365 #ifdef __STDC__
9366 # include <limits.h>
9367 #else
9368 # include <assert.h>
9369 #endif
9370
9371 #undef shl_load
9372
9373 /* Override any GCC internal prototype to avoid an error.
9374    Use char because int might match the return type of a GCC
9375    builtin and then its argument prototype would still apply.  */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char shl_load ();
9380 /* The GNU C library defines this for functions which it implements
9381     to always fail with ENOSYS.  Some functions are actually named
9382     something starting with __ and the normal name is an alias.  */
9383 #if defined __stub_shl_load || defined __stub___shl_load
9384 choke me
9385 #endif
9386
9387 int
9388 main ()
9389 {
9390 return shl_load ();
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399   *) ac_try_echo=$ac_try;;
9400 esac
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402   (eval "$ac_link") 2>conftest.er1
9403   ac_status=$?
9404   grep -v '^ *+' conftest.er1 >conftest.err
9405   rm -f conftest.er1
9406   cat conftest.err >&5
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } && {
9409          test -z "$ac_c_werror_flag" ||
9410          test ! -s conftest.err
9411        } && test -s conftest$ac_exeext &&
9412        $as_test_x conftest$ac_exeext; then
9413   ac_cv_func_shl_load=yes
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418         ac_cv_func_shl_load=no
9419 fi
9420
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422       conftest$ac_exeext conftest.$ac_ext
9423 fi
9424 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9425 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9426 if test $ac_cv_func_shl_load = yes; then
9427   lt_cv_dlopen="shl_load"
9428 else
9429   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9430 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9431 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9432   echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434   ac_check_lib_save_LIBS=$LIBS
9435 LIBS="-ldld  $LIBS"
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h.  */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h.  */
9442
9443 /* Override any GCC internal prototype to avoid an error.
9444    Use char because int might match the return type of a GCC
9445    builtin and then its argument prototype would still apply.  */
9446 #ifdef __cplusplus
9447 extern "C"
9448 #endif
9449 char shl_load ();
9450 int
9451 main ()
9452 {
9453 return shl_load ();
9454   ;
9455   return 0;
9456 }
9457 _ACEOF
9458 rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9460 case "(($ac_try" in
9461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462   *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465   (eval "$ac_link") 2>conftest.er1
9466   ac_status=$?
9467   grep -v '^ *+' conftest.er1 >conftest.err
9468   rm -f conftest.er1
9469   cat conftest.err >&5
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } && {
9472          test -z "$ac_c_werror_flag" ||
9473          test ! -s conftest.err
9474        } && test -s conftest$ac_exeext &&
9475        $as_test_x conftest$ac_exeext; then
9476   ac_cv_lib_dld_shl_load=yes
9477 else
9478   echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9480
9481         ac_cv_lib_dld_shl_load=no
9482 fi
9483
9484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9485       conftest$ac_exeext conftest.$ac_ext
9486 LIBS=$ac_check_lib_save_LIBS
9487 fi
9488 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9489 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9490 if test $ac_cv_lib_dld_shl_load = yes; then
9491   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9492 else
9493   { echo "$as_me:$LINENO: checking for dlopen" >&5
9494 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_dlopen+set}" = set; then
9496   echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498   cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h.  */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h.  */
9504 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9506 #define dlopen innocuous_dlopen
9507
9508 /* System header to define __stub macros and hopefully few prototypes,
9509     which can conflict with char dlopen (); below.
9510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511     <limits.h> exists even on freestanding compilers.  */
9512
9513 #ifdef __STDC__
9514 # include <limits.h>
9515 #else
9516 # include <assert.h>
9517 #endif
9518
9519 #undef dlopen
9520
9521 /* Override any GCC internal prototype to avoid an error.
9522    Use char because int might match the return type of a GCC
9523    builtin and then its argument prototype would still apply.  */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char dlopen ();
9528 /* The GNU C library defines this for functions which it implements
9529     to always fail with ENOSYS.  Some functions are actually named
9530     something starting with __ and the normal name is an alias.  */
9531 #if defined __stub_dlopen || defined __stub___dlopen
9532 choke me
9533 #endif
9534
9535 int
9536 main ()
9537 {
9538 return dlopen ();
9539   ;
9540   return 0;
9541 }
9542 _ACEOF
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547   *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550   (eval "$ac_link") 2>conftest.er1
9551   ac_status=$?
9552   grep -v '^ *+' conftest.er1 >conftest.err
9553   rm -f conftest.er1
9554   cat conftest.err >&5
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } && {
9557          test -z "$ac_c_werror_flag" ||
9558          test ! -s conftest.err
9559        } && test -s conftest$ac_exeext &&
9560        $as_test_x conftest$ac_exeext; then
9561   ac_cv_func_dlopen=yes
9562 else
9563   echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566         ac_cv_func_dlopen=no
9567 fi
9568
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570       conftest$ac_exeext conftest.$ac_ext
9571 fi
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9573 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9574 if test $ac_cv_func_dlopen = yes; then
9575   lt_cv_dlopen="dlopen"
9576 else
9577   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9578 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   ac_check_lib_save_LIBS=$LIBS
9583 LIBS="-ldl  $LIBS"
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h.  */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h.  */
9590
9591 /* Override any GCC internal prototype to avoid an error.
9592    Use char because int might match the return type of a GCC
9593    builtin and then its argument prototype would still apply.  */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 char dlopen ();
9598 int
9599 main ()
9600 {
9601 return dlopen ();
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610   *) ac_try_echo=$ac_try;;
9611 esac
9612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9613   (eval "$ac_link") 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } && {
9620          test -z "$ac_c_werror_flag" ||
9621          test ! -s conftest.err
9622        } && test -s conftest$ac_exeext &&
9623        $as_test_x conftest$ac_exeext; then
9624   ac_cv_lib_dl_dlopen=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629         ac_cv_lib_dl_dlopen=no
9630 fi
9631
9632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9633       conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9637 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9638 if test $ac_cv_lib_dl_dlopen = yes; then
9639   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9640 else
9641   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9642 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9643 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   ac_check_lib_save_LIBS=$LIBS
9647 LIBS="-lsvld  $LIBS"
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h.  */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h.  */
9654
9655 /* Override any GCC internal prototype to avoid an error.
9656    Use char because int might match the return type of a GCC
9657    builtin and then its argument prototype would still apply.  */
9658 #ifdef __cplusplus
9659 extern "C"
9660 #endif
9661 char dlopen ();
9662 int
9663 main ()
9664 {
9665 return dlopen ();
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9672 case "(($ac_try" in
9673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674   *) ac_try_echo=$ac_try;;
9675 esac
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677   (eval "$ac_link") 2>conftest.er1
9678   ac_status=$?
9679   grep -v '^ *+' conftest.er1 >conftest.err
9680   rm -f conftest.er1
9681   cat conftest.err >&5
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } && {
9684          test -z "$ac_c_werror_flag" ||
9685          test ! -s conftest.err
9686        } && test -s conftest$ac_exeext &&
9687        $as_test_x conftest$ac_exeext; then
9688   ac_cv_lib_svld_dlopen=yes
9689 else
9690   echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693         ac_cv_lib_svld_dlopen=no
9694 fi
9695
9696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9697       conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9699 fi
9700 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9701 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9702 if test $ac_cv_lib_svld_dlopen = yes; then
9703   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9704 else
9705   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9706 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9707 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9708   echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710   ac_check_lib_save_LIBS=$LIBS
9711 LIBS="-ldld  $LIBS"
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h.  */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h.  */
9718
9719 /* Override any GCC internal prototype to avoid an error.
9720    Use char because int might match the return type of a GCC
9721    builtin and then its argument prototype would still apply.  */
9722 #ifdef __cplusplus
9723 extern "C"
9724 #endif
9725 char dld_link ();
9726 int
9727 main ()
9728 {
9729 return dld_link ();
9730   ;
9731   return 0;
9732 }
9733 _ACEOF
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9736 case "(($ac_try" in
9737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738   *) ac_try_echo=$ac_try;;
9739 esac
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741   (eval "$ac_link") 2>conftest.er1
9742   ac_status=$?
9743   grep -v '^ *+' conftest.er1 >conftest.err
9744   rm -f conftest.er1
9745   cat conftest.err >&5
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); } && {
9748          test -z "$ac_c_werror_flag" ||
9749          test ! -s conftest.err
9750        } && test -s conftest$ac_exeext &&
9751        $as_test_x conftest$ac_exeext; then
9752   ac_cv_lib_dld_dld_link=yes
9753 else
9754   echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9756
9757         ac_cv_lib_dld_dld_link=no
9758 fi
9759
9760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9761       conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9763 fi
9764 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9765 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9766 if test $ac_cv_lib_dld_dld_link = yes; then
9767   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9768 fi
9769
9770               
9771 fi
9772
9773             
9774 fi
9775
9776           
9777 fi
9778
9779         
9780 fi
9781
9782       
9783 fi
9784
9785     ;;
9786   esac
9787
9788   if test "x$lt_cv_dlopen" != xno; then
9789     enable_dlopen=yes
9790   else
9791     enable_dlopen=no
9792   fi
9793
9794   case $lt_cv_dlopen in
9795   dlopen)
9796     save_CPPFLAGS="$CPPFLAGS"
9797     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9798
9799     save_LDFLAGS="$LDFLAGS"
9800     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9801
9802     save_LIBS="$LIBS"
9803     LIBS="$lt_cv_dlopen_libs $LIBS"
9804
9805     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9806 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9807 if test "${lt_cv_dlopen_self+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810           if test "$cross_compiling" = yes; then :
9811   lt_cv_dlopen_self=cross
9812 else
9813   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9814   lt_status=$lt_dlunknown
9815   cat > conftest.$ac_ext <<EOF
9816 #line __oline__ "configure"
9817 #include "confdefs.h"
9818
9819 #if HAVE_DLFCN_H
9820 #include <dlfcn.h>
9821 #endif
9822
9823 #include <stdio.h>
9824
9825 #ifdef RTLD_GLOBAL
9826 #  define LT_DLGLOBAL           RTLD_GLOBAL
9827 #else
9828 #  ifdef DL_GLOBAL
9829 #    define LT_DLGLOBAL         DL_GLOBAL
9830 #  else
9831 #    define LT_DLGLOBAL         0
9832 #  endif
9833 #endif
9834
9835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9836    find out it does not work in some platform. */
9837 #ifndef LT_DLLAZY_OR_NOW
9838 #  ifdef RTLD_LAZY
9839 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9840 #  else
9841 #    ifdef DL_LAZY
9842 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9843 #    else
9844 #      ifdef RTLD_NOW
9845 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9846 #      else
9847 #        ifdef DL_NOW
9848 #          define LT_DLLAZY_OR_NOW      DL_NOW
9849 #        else
9850 #          define LT_DLLAZY_OR_NOW      0
9851 #        endif
9852 #      endif
9853 #    endif
9854 #  endif
9855 #endif
9856
9857 #ifdef __cplusplus
9858 extern "C" void exit (int);
9859 #endif
9860
9861 void fnord() { int i=42;}
9862 int main ()
9863 {
9864   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9865   int status = $lt_dlunknown;
9866
9867   if (self)
9868     {
9869       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9870       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9871       /* dlclose (self); */
9872     }
9873   else
9874     puts (dlerror ());
9875
9876     exit (status);
9877 }
9878 EOF
9879   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9880   (eval $ac_link) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9884     (./conftest; exit; ) >&5 2>/dev/null
9885     lt_status=$?
9886     case x$lt_status in
9887       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9888       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9889       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9890     esac
9891   else :
9892     # compilation failed
9893     lt_cv_dlopen_self=no
9894   fi
9895 fi
9896 rm -fr conftest*
9897
9898     
9899 fi
9900 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9901 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9902
9903     if test "x$lt_cv_dlopen_self" = xyes; then
9904       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9905       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9906 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9907 if test "${lt_cv_dlopen_self_static+set}" = set; then
9908   echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910           if test "$cross_compiling" = yes; then :
9911   lt_cv_dlopen_self_static=cross
9912 else
9913   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9914   lt_status=$lt_dlunknown
9915   cat > conftest.$ac_ext <<EOF
9916 #line __oline__ "configure"
9917 #include "confdefs.h"
9918
9919 #if HAVE_DLFCN_H
9920 #include <dlfcn.h>
9921 #endif
9922
9923 #include <stdio.h>
9924
9925 #ifdef RTLD_GLOBAL
9926 #  define LT_DLGLOBAL           RTLD_GLOBAL
9927 #else
9928 #  ifdef DL_GLOBAL
9929 #    define LT_DLGLOBAL         DL_GLOBAL
9930 #  else
9931 #    define LT_DLGLOBAL         0
9932 #  endif
9933 #endif
9934
9935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9936    find out it does not work in some platform. */
9937 #ifndef LT_DLLAZY_OR_NOW
9938 #  ifdef RTLD_LAZY
9939 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9940 #  else
9941 #    ifdef DL_LAZY
9942 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9943 #    else
9944 #      ifdef RTLD_NOW
9945 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9946 #      else
9947 #        ifdef DL_NOW
9948 #          define LT_DLLAZY_OR_NOW      DL_NOW
9949 #        else
9950 #          define LT_DLLAZY_OR_NOW      0
9951 #        endif
9952 #      endif
9953 #    endif
9954 #  endif
9955 #endif
9956
9957 #ifdef __cplusplus
9958 extern "C" void exit (int);
9959 #endif
9960
9961 void fnord() { int i=42;}
9962 int main ()
9963 {
9964   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9965   int status = $lt_dlunknown;
9966
9967   if (self)
9968     {
9969       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9970       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9971       /* dlclose (self); */
9972     }
9973   else
9974     puts (dlerror ());
9975
9976     exit (status);
9977 }
9978 EOF
9979   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9980   (eval $ac_link) 2>&5
9981   ac_status=$?
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9984     (./conftest; exit; ) >&5 2>/dev/null
9985     lt_status=$?
9986     case x$lt_status in
9987       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9988       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9989       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9990     esac
9991   else :
9992     # compilation failed
9993     lt_cv_dlopen_self_static=no
9994   fi
9995 fi
9996 rm -fr conftest*
9997
9998       
9999 fi
10000 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10001 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10002     fi
10003
10004     CPPFLAGS="$save_CPPFLAGS"
10005     LDFLAGS="$save_LDFLAGS"
10006     LIBS="$save_LIBS"
10007     ;;
10008   esac
10009
10010   case $lt_cv_dlopen_self in
10011   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10012   *) enable_dlopen_self=unknown ;;
10013   esac
10014
10015   case $lt_cv_dlopen_self_static in
10016   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10017   *) enable_dlopen_self_static=unknown ;;
10018   esac
10019 fi
10020
10021
10022 # Report which library types will actually be built
10023 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10024 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10025 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10026 echo "${ECHO_T}$can_build_shared" >&6; }
10027
10028 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10029 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10030 test "$can_build_shared" = "no" && enable_shared=no
10031
10032 # On AIX, shared libraries and static libraries use the same namespace, and
10033 # are all built from PIC.
10034 case $host_os in
10035 aix3*)
10036   test "$enable_shared" = yes && enable_static=no
10037   if test -n "$RANLIB"; then
10038     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10039     postinstall_cmds='$RANLIB $lib'
10040   fi
10041   ;;
10042
10043 aix4* | aix5*)
10044   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10045     test "$enable_shared" = yes && enable_static=no
10046   fi
10047     ;;
10048 esac
10049 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10050 echo "${ECHO_T}$enable_shared" >&6; }
10051
10052 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10053 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10054 # Make sure either enable_shared or enable_static is yes.
10055 test "$enable_shared" = yes || enable_static=yes
10056 { echo "$as_me:$LINENO: result: $enable_static" >&5
10057 echo "${ECHO_T}$enable_static" >&6; }
10058
10059 # The else clause should only fire when bootstrapping the
10060 # libtool distribution, otherwise you forgot to ship ltmain.sh
10061 # with your package, and you will get complaints that there are
10062 # no rules to generate ltmain.sh.
10063 if test -f "$ltmain"; then
10064   # See if we are running on zsh, and set the options which allow our commands through
10065   # without removal of \ escapes.
10066   if test -n "${ZSH_VERSION+set}" ; then
10067     setopt NO_GLOB_SUBST
10068   fi
10069   # Now quote all the things that may contain metacharacters while being
10070   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10071   # variables and quote the copies for generation of the libtool script.
10072   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10073     SED SHELL STRIP \
10074     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10075     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10076     deplibs_check_method reload_flag reload_cmds need_locks \
10077     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10078     lt_cv_sys_global_symbol_to_c_name_address \
10079     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10080     old_postinstall_cmds old_postuninstall_cmds \
10081     compiler \
10082     CC \
10083     LD \
10084     lt_prog_compiler_wl \
10085     lt_prog_compiler_pic \
10086     lt_prog_compiler_static \
10087     lt_prog_compiler_no_builtin_flag \
10088     export_dynamic_flag_spec \
10089     thread_safe_flag_spec \
10090     whole_archive_flag_spec \
10091     enable_shared_with_static_runtimes \
10092     old_archive_cmds \
10093     old_archive_from_new_cmds \
10094     predep_objects \
10095     postdep_objects \
10096     predeps \
10097     postdeps \
10098     compiler_lib_search_path \
10099     archive_cmds \
10100     archive_expsym_cmds \
10101     postinstall_cmds \
10102     postuninstall_cmds \
10103     old_archive_from_expsyms_cmds \
10104     allow_undefined_flag \
10105     no_undefined_flag \
10106     export_symbols_cmds \
10107     hardcode_libdir_flag_spec \
10108     hardcode_libdir_flag_spec_ld \
10109     hardcode_libdir_separator \
10110     hardcode_automatic \
10111     module_cmds \
10112     module_expsym_cmds \
10113     lt_cv_prog_compiler_c_o \
10114     exclude_expsyms \
10115     include_expsyms; do
10116
10117     case $var in
10118     old_archive_cmds | \
10119     old_archive_from_new_cmds | \
10120     archive_cmds | \
10121     archive_expsym_cmds | \
10122     module_cmds | \
10123     module_expsym_cmds | \
10124     old_archive_from_expsyms_cmds | \
10125     export_symbols_cmds | \
10126     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10127     postinstall_cmds | postuninstall_cmds | \
10128     old_postinstall_cmds | old_postuninstall_cmds | \
10129     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10130       # Double-quote double-evaled strings.
10131       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10132       ;;
10133     *)
10134       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10135       ;;
10136     esac
10137   done
10138
10139   case $lt_echo in
10140   *'\$0 --fallback-echo"')
10141     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10142     ;;
10143   esac
10144
10145 cfgfile="${ofile}T"
10146   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10147   $rm -f "$cfgfile"
10148   { echo "$as_me:$LINENO: creating $ofile" >&5
10149 echo "$as_me: creating $ofile" >&6;}
10150
10151   cat <<__EOF__ >> "$cfgfile"
10152 #! $SHELL
10153
10154 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10155 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10156 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10157 #
10158 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10159 # Free Software Foundation, Inc.
10160 #
10161 # This file is part of GNU Libtool:
10162 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10163 #
10164 # This program is free software; you can redistribute it and/or modify
10165 # it under the terms of the GNU General Public License as published by
10166 # the Free Software Foundation; either version 2 of the License, or
10167 # (at your option) any later version.
10168 #
10169 # This program is distributed in the hope that it will be useful, but
10170 # WITHOUT ANY WARRANTY; without even the implied warranty of
10171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10172 # General Public License for more details.
10173 #
10174 # You should have received a copy of the GNU General Public License
10175 # along with this program; if not, write to the Free Software
10176 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10177 #
10178 # As a special exception to the GNU General Public License, if you
10179 # distribute this file as part of a program that contains a
10180 # configuration script generated by Autoconf, you may include it under
10181 # the same distribution terms that you use for the rest of that program.
10182
10183 # A sed program that does not truncate output.
10184 SED=$lt_SED
10185
10186 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10187 Xsed="$SED -e 1s/^X//"
10188
10189 # The HP-UX ksh and POSIX shell print the target directory to stdout
10190 # if CDPATH is set.
10191 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10192
10193 # The names of the tagged configurations supported by this script.
10194 available_tags=
10195
10196 # ### BEGIN LIBTOOL CONFIG
10197
10198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10199
10200 # Shell to use when invoking shell scripts.
10201 SHELL=$lt_SHELL
10202
10203 # Whether or not to build shared libraries.
10204 build_libtool_libs=$enable_shared
10205
10206 # Whether or not to build static libraries.
10207 build_old_libs=$enable_static
10208
10209 # Whether or not to add -lc for building shared libraries.
10210 build_libtool_need_lc=$archive_cmds_need_lc
10211
10212 # Whether or not to disallow shared libs when runtime libs are static
10213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10214
10215 # Whether or not to optimize for fast installation.
10216 fast_install=$enable_fast_install
10217
10218 # The host system.
10219 host_alias=$host_alias
10220 host=$host
10221 host_os=$host_os
10222
10223 # The build system.
10224 build_alias=$build_alias
10225 build=$build
10226 build_os=$build_os
10227
10228 # An echo program that does not interpret backslashes.
10229 echo=$lt_echo
10230
10231 # The archiver.
10232 AR=$lt_AR
10233 AR_FLAGS=$lt_AR_FLAGS
10234
10235 # A C compiler.
10236 LTCC=$lt_LTCC
10237
10238 # LTCC compiler flags.
10239 LTCFLAGS=$lt_LTCFLAGS
10240
10241 # A language-specific compiler.
10242 CC=$lt_compiler
10243
10244 # Is the compiler the GNU C compiler?
10245 with_gcc=$GCC
10246
10247 # An ERE matcher.
10248 EGREP=$lt_EGREP
10249
10250 # The linker used to build libraries.
10251 LD=$lt_LD
10252
10253 # Whether we need hard or soft links.
10254 LN_S=$lt_LN_S
10255
10256 # A BSD-compatible nm program.
10257 NM=$lt_NM
10258
10259 # A symbol stripping program
10260 STRIP=$lt_STRIP
10261
10262 # Used to examine libraries when file_magic_cmd begins "file"
10263 MAGIC_CMD=$MAGIC_CMD
10264
10265 # Used on cygwin: DLL creation program.
10266 DLLTOOL="$DLLTOOL"
10267
10268 # Used on cygwin: object dumper.
10269 OBJDUMP="$OBJDUMP"
10270
10271 # Used on cygwin: assembler.
10272 AS="$AS"
10273
10274 # The name of the directory that contains temporary libtool files.
10275 objdir=$objdir
10276
10277 # How to create reloadable object files.
10278 reload_flag=$lt_reload_flag
10279 reload_cmds=$lt_reload_cmds
10280
10281 # How to pass a linker flag through the compiler.
10282 wl=$lt_lt_prog_compiler_wl
10283
10284 # Object file suffix (normally "o").
10285 objext="$ac_objext"
10286
10287 # Old archive suffix (normally "a").
10288 libext="$libext"
10289
10290 # Shared library suffix (normally ".so").
10291 shrext_cmds='$shrext_cmds'
10292
10293 # Executable file suffix (normally "").
10294 exeext="$exeext"
10295
10296 # Additional compiler flags for building library objects.
10297 pic_flag=$lt_lt_prog_compiler_pic
10298 pic_mode=$pic_mode
10299
10300 # What is the maximum length of a command?
10301 max_cmd_len=$lt_cv_sys_max_cmd_len
10302
10303 # Does compiler simultaneously support -c and -o options?
10304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10305
10306 # Must we lock files when doing compilation?
10307 need_locks=$lt_need_locks
10308
10309 # Do we need the lib prefix for modules?
10310 need_lib_prefix=$need_lib_prefix
10311
10312 # Do we need a version for libraries?
10313 need_version=$need_version
10314
10315 # Whether dlopen is supported.
10316 dlopen_support=$enable_dlopen
10317
10318 # Whether dlopen of programs is supported.
10319 dlopen_self=$enable_dlopen_self
10320
10321 # Whether dlopen of statically linked programs is supported.
10322 dlopen_self_static=$enable_dlopen_self_static
10323
10324 # Compiler flag to prevent dynamic linking.
10325 link_static_flag=$lt_lt_prog_compiler_static
10326
10327 # Compiler flag to turn off builtin functions.
10328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10329
10330 # Compiler flag to allow reflexive dlopens.
10331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10332
10333 # Compiler flag to generate shared objects directly from archives.
10334 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10335
10336 # Compiler flag to generate thread-safe objects.
10337 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10338
10339 # Library versioning type.
10340 version_type=$version_type
10341
10342 # Format of library name prefix.
10343 libname_spec=$lt_libname_spec
10344
10345 # List of archive names.  First name is the real one, the rest are links.
10346 # The last name is the one that the linker finds with -lNAME.
10347 library_names_spec=$lt_library_names_spec
10348
10349 # The coded name of the library, if different from the real name.
10350 soname_spec=$lt_soname_spec
10351
10352 # Commands used to build and install an old-style archive.
10353 RANLIB=$lt_RANLIB
10354 old_archive_cmds=$lt_old_archive_cmds
10355 old_postinstall_cmds=$lt_old_postinstall_cmds
10356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10357
10358 # Create an old-style archive from a shared archive.
10359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10360
10361 # Create a temporary old-style archive to link instead of a shared archive.
10362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10363
10364 # Commands used to build and install a shared archive.
10365 archive_cmds=$lt_archive_cmds
10366 archive_expsym_cmds=$lt_archive_expsym_cmds
10367 postinstall_cmds=$lt_postinstall_cmds
10368 postuninstall_cmds=$lt_postuninstall_cmds
10369
10370 # Commands used to build a loadable module (assumed same as above if empty)
10371 module_cmds=$lt_module_cmds
10372 module_expsym_cmds=$lt_module_expsym_cmds
10373
10374 # Commands to strip libraries.
10375 old_striplib=$lt_old_striplib
10376 striplib=$lt_striplib
10377
10378 # Dependencies to place before the objects being linked to create a
10379 # shared library.
10380 predep_objects=$lt_predep_objects
10381
10382 # Dependencies to place after the objects being linked to create a
10383 # shared library.
10384 postdep_objects=$lt_postdep_objects
10385
10386 # Dependencies to place before the objects being linked to create a
10387 # shared library.
10388 predeps=$lt_predeps
10389
10390 # Dependencies to place after the objects being linked to create a
10391 # shared library.
10392 postdeps=$lt_postdeps
10393
10394 # The library search path used internally by the compiler when linking
10395 # a shared library.
10396 compiler_lib_search_path=$lt_compiler_lib_search_path
10397
10398 # Method to check whether dependent libraries are shared objects.
10399 deplibs_check_method=$lt_deplibs_check_method
10400
10401 # Command to use when deplibs_check_method == file_magic.
10402 file_magic_cmd=$lt_file_magic_cmd
10403
10404 # Flag that allows shared libraries with undefined symbols to be built.
10405 allow_undefined_flag=$lt_allow_undefined_flag
10406
10407 # Flag that forces no undefined symbols.
10408 no_undefined_flag=$lt_no_undefined_flag
10409
10410 # Commands used to finish a libtool library installation in a directory.
10411 finish_cmds=$lt_finish_cmds
10412
10413 # Same as above, but a single script fragment to be evaled but not shown.
10414 finish_eval=$lt_finish_eval
10415
10416 # Take the output of nm and produce a listing of raw symbols and C names.
10417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10418
10419 # Transform the output of nm in a proper C declaration
10420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10421
10422 # Transform the output of nm in a C name address pair
10423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10424
10425 # This is the shared library runtime path variable.
10426 runpath_var=$runpath_var
10427
10428 # This is the shared library path variable.
10429 shlibpath_var=$shlibpath_var
10430
10431 # Is shlibpath searched before the hard-coded library search path?
10432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10433
10434 # How to hardcode a shared library path into an executable.
10435 hardcode_action=$hardcode_action
10436
10437 # Whether we should hardcode library paths into libraries.
10438 hardcode_into_libs=$hardcode_into_libs
10439
10440 # Flag to hardcode \$libdir into a binary during linking.
10441 # This must work even if \$libdir does not exist.
10442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10443
10444 # If ld is used when linking, flag to hardcode \$libdir into
10445 # a binary during linking. This must work even if \$libdir does
10446 # not exist.
10447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10448
10449 # Whether we need a single -rpath flag with a separated argument.
10450 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10451
10452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10453 # resulting binary.
10454 hardcode_direct=$hardcode_direct
10455
10456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10457 # resulting binary.
10458 hardcode_minus_L=$hardcode_minus_L
10459
10460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10461 # the resulting binary.
10462 hardcode_shlibpath_var=$hardcode_shlibpath_var
10463
10464 # Set to yes if building a shared library automatically hardcodes DIR into the library
10465 # and all subsequent libraries and executables linked against it.
10466 hardcode_automatic=$hardcode_automatic
10467
10468 # Variables whose values should be saved in libtool wrapper scripts and
10469 # restored at relink time.
10470 variables_saved_for_relink="$variables_saved_for_relink"
10471
10472 # Whether libtool must link a program against all its dependency libraries.
10473 link_all_deplibs=$link_all_deplibs
10474
10475 # Compile-time system search path for libraries
10476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10477
10478 # Run-time system search path for libraries
10479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10480
10481 # Fix the shell variable \$srcfile for the compiler.
10482 fix_srcfile_path="$fix_srcfile_path"
10483
10484 # Set to yes if exported symbols are required.
10485 always_export_symbols=$always_export_symbols
10486
10487 # The commands to list exported symbols.
10488 export_symbols_cmds=$lt_export_symbols_cmds
10489
10490 # The commands to extract the exported symbol list from a shared archive.
10491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10492
10493 # Symbols that should not be listed in the preloaded symbols.
10494 exclude_expsyms=$lt_exclude_expsyms
10495
10496 # Symbols that must always be exported.
10497 include_expsyms=$lt_include_expsyms
10498
10499 # ### END LIBTOOL CONFIG
10500
10501 __EOF__
10502
10503
10504   case $host_os in
10505   aix3*)
10506     cat <<\EOF >> "$cfgfile"
10507
10508 # AIX sometimes has problems with the GCC collect2 program.  For some
10509 # reason, if we set the COLLECT_NAMES environment variable, the problems
10510 # vanish in a puff of smoke.
10511 if test "X${COLLECT_NAMES+set}" != Xset; then
10512   COLLECT_NAMES=
10513   export COLLECT_NAMES
10514 fi
10515 EOF
10516     ;;
10517   esac
10518
10519   # We use sed instead of cat because bash on DJGPP gets confused if
10520   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10521   # text mode, it properly converts lines to CR/LF.  This bash problem
10522   # is reportedly fixed, but why not run on old versions too?
10523   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10524
10525   mv -f "$cfgfile" "$ofile" || \
10526     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10527   chmod +x "$ofile"
10528
10529 else
10530   # If there is no Makefile yet, we rely on a make rule to execute
10531   # `config.status --recheck' to rerun these tests and create the
10532   # libtool script then.
10533   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10534   if test -f "$ltmain_in"; then
10535     test -f Makefile && make "$ltmain"
10536   fi
10537 fi
10538
10539
10540 ac_ext=c
10541 ac_cpp='$CPP $CPPFLAGS'
10542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10545
10546 CC="$lt_save_CC"
10547
10548
10549 # Check whether --with-tags was given.
10550 if test "${with_tags+set}" = set; then
10551   withval=$with_tags; tagnames="$withval"
10552 fi
10553
10554
10555 if test -f "$ltmain" && test -n "$tagnames"; then
10556   if test ! -f "${ofile}"; then
10557     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10558 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10559   fi
10560
10561   if test -z "$LTCC"; then
10562     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10563     if test -z "$LTCC"; then
10564       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10565 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10566     else
10567       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10568 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10569     fi
10570   fi
10571   if test -z "$LTCFLAGS"; then
10572     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10573   fi
10574
10575   # Extract list of available tagged configurations in $ofile.
10576   # Note that this assumes the entire list is on one line.
10577   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10578
10579   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10580   for tagname in $tagnames; do
10581     IFS="$lt_save_ifs"
10582     # Check whether tagname contains only valid characters
10583     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10584     "") ;;
10585     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10586 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10587    { (exit 1); exit 1; }; }
10588         ;;
10589     esac
10590
10591     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10592     then
10593       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10594 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10595    { (exit 1); exit 1; }; }
10596     fi
10597
10598     # Update the list of available tags.
10599     if test -n "$tagname"; then
10600       echo appending configuration tag \"$tagname\" to $ofile
10601
10602       case $tagname in
10603       CXX)
10604         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10605             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10606             (test "X$CXX" != "Xg++"))) ; then
10607           ac_ext=cpp
10608 ac_cpp='$CXXCPP $CPPFLAGS'
10609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10612
10613
10614
10615
10616 archive_cmds_need_lc_CXX=no
10617 allow_undefined_flag_CXX=
10618 always_export_symbols_CXX=no
10619 archive_expsym_cmds_CXX=
10620 export_dynamic_flag_spec_CXX=
10621 hardcode_direct_CXX=no
10622 hardcode_libdir_flag_spec_CXX=
10623 hardcode_libdir_flag_spec_ld_CXX=
10624 hardcode_libdir_separator_CXX=
10625 hardcode_minus_L_CXX=no
10626 hardcode_shlibpath_var_CXX=unsupported
10627 hardcode_automatic_CXX=no
10628 module_cmds_CXX=
10629 module_expsym_cmds_CXX=
10630 link_all_deplibs_CXX=unknown
10631 old_archive_cmds_CXX=$old_archive_cmds
10632 no_undefined_flag_CXX=
10633 whole_archive_flag_spec_CXX=
10634 enable_shared_with_static_runtimes_CXX=no
10635
10636 # Dependencies to place before and after the object being linked:
10637 predep_objects_CXX=
10638 postdep_objects_CXX=
10639 predeps_CXX=
10640 postdeps_CXX=
10641 compiler_lib_search_path_CXX=
10642
10643 # Source file extension for C++ test sources.
10644 ac_ext=cpp
10645
10646 # Object file extension for compiled C++ test sources.
10647 objext=o
10648 objext_CXX=$objext
10649
10650 # Code to be used in simple compile tests
10651 lt_simple_compile_test_code="int some_variable = 0;\n"
10652
10653 # Code to be used in simple link tests
10654 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10655
10656 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10657
10658 # If no C compiler was specified, use CC.
10659 LTCC=${LTCC-"$CC"}
10660
10661 # If no C compiler flags were specified, use CFLAGS.
10662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10663
10664 # Allow CC to be a program name with arguments.
10665 compiler=$CC
10666
10667
10668 # save warnings/boilerplate of simple test code
10669 ac_outfile=conftest.$ac_objext
10670 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10671 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10672 _lt_compiler_boilerplate=`cat conftest.err`
10673 $rm conftest*
10674
10675 ac_outfile=conftest.$ac_objext
10676 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10677 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10678 _lt_linker_boilerplate=`cat conftest.err`
10679 $rm conftest*
10680
10681
10682 # Allow CC to be a program name with arguments.
10683 lt_save_CC=$CC
10684 lt_save_LD=$LD
10685 lt_save_GCC=$GCC
10686 GCC=$GXX
10687 lt_save_with_gnu_ld=$with_gnu_ld
10688 lt_save_path_LD=$lt_cv_path_LD
10689 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10690   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10691 else
10692   $as_unset lt_cv_prog_gnu_ld
10693 fi
10694 if test -n "${lt_cv_path_LDCXX+set}"; then
10695   lt_cv_path_LD=$lt_cv_path_LDCXX
10696 else
10697   $as_unset lt_cv_path_LD
10698 fi
10699 test -z "${LDCXX+set}" || LD=$LDCXX
10700 CC=${CXX-"c++"}
10701 compiler=$CC
10702 compiler_CXX=$CC
10703 for cc_temp in $compiler""; do
10704   case $cc_temp in
10705     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10706     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10707     \-*) ;;
10708     *) break;;
10709   esac
10710 done
10711 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10712
10713
10714 # We don't want -fno-exception wen compiling C++ code, so set the
10715 # no_builtin_flag separately
10716 if test "$GXX" = yes; then
10717   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10718 else
10719   lt_prog_compiler_no_builtin_flag_CXX=
10720 fi
10721
10722 if test "$GXX" = yes; then
10723   # Set up default GNU C++ configuration
10724
10725   
10726 # Check whether --with-gnu-ld was given.
10727 if test "${with_gnu_ld+set}" = set; then
10728   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10729 else
10730   with_gnu_ld=no
10731 fi
10732
10733 ac_prog=ld
10734 if test "$GCC" = yes; then
10735   # Check if gcc -print-prog-name=ld gives a path.
10736   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10737 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10738   case $host in
10739   *-*-mingw*)
10740     # gcc leaves a trailing carriage return which upsets mingw
10741     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10742   *)
10743     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10744   esac
10745   case $ac_prog in
10746     # Accept absolute paths.
10747     [\\/]* | ?:[\\/]*)
10748       re_direlt='/[^/][^/]*/\.\./'
10749       # Canonicalize the pathname of ld
10750       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10751       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10752         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10753       done
10754       test -z "$LD" && LD="$ac_prog"
10755       ;;
10756   "")
10757     # If it fails, then pretend we aren't using GCC.
10758     ac_prog=ld
10759     ;;
10760   *)
10761     # If it is relative, then search for the first ld in PATH.
10762     with_gnu_ld=unknown
10763     ;;
10764   esac
10765 elif test "$with_gnu_ld" = yes; then
10766   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10767 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10768 else
10769   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10770 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10771 fi
10772 if test "${lt_cv_path_LD+set}" = set; then
10773   echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775   if test -z "$LD"; then
10776   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10777   for ac_dir in $PATH; do
10778     IFS="$lt_save_ifs"
10779     test -z "$ac_dir" && ac_dir=.
10780     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10781       lt_cv_path_LD="$ac_dir/$ac_prog"
10782       # Check to see if the program is GNU ld.  I'd rather use --version,
10783       # but apparently some variants of GNU ld only accept -v.
10784       # Break only if it was the GNU/non-GNU ld that we prefer.
10785       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10786       *GNU* | *'with BFD'*)
10787         test "$with_gnu_ld" != no && break
10788         ;;
10789       *)
10790         test "$with_gnu_ld" != yes && break
10791         ;;
10792       esac
10793     fi
10794   done
10795   IFS="$lt_save_ifs"
10796 else
10797   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10798 fi
10799 fi
10800
10801 LD="$lt_cv_path_LD"
10802 if test -n "$LD"; then
10803   { echo "$as_me:$LINENO: result: $LD" >&5
10804 echo "${ECHO_T}$LD" >&6; }
10805 else
10806   { echo "$as_me:$LINENO: result: no" >&5
10807 echo "${ECHO_T}no" >&6; }
10808 fi
10809 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10810 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10811    { (exit 1); exit 1; }; }
10812 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10813 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10814 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10815   echo $ECHO_N "(cached) $ECHO_C" >&6
10816 else
10817   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10818 case `$LD -v 2>&1 </dev/null` in
10819 *GNU* | *'with BFD'*)
10820   lt_cv_prog_gnu_ld=yes
10821   ;;
10822 *)
10823   lt_cv_prog_gnu_ld=no
10824   ;;
10825 esac
10826 fi
10827 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10828 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10829 with_gnu_ld=$lt_cv_prog_gnu_ld
10830
10831
10832
10833   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10834   # archiving commands below assume that GNU ld is being used.
10835   if test "$with_gnu_ld" = yes; then
10836     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10837     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'
10838
10839     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10840     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10841
10842     # If archive_cmds runs LD, not CC, wlarc should be empty
10843     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10844     #     investigate it a little bit more. (MM)
10845     wlarc='${wl}'
10846
10847     # ancient GNU ld didn't support --whole-archive et. al.
10848     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10849         grep 'no-whole-archive' > /dev/null; then
10850       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10851     else
10852       whole_archive_flag_spec_CXX=
10853     fi
10854   else
10855     with_gnu_ld=no
10856     wlarc=
10857
10858     # A generic and very simple default shared library creation
10859     # command for GNU C++ for the case where it uses the native
10860     # linker, instead of GNU ld.  If possible, this setting should
10861     # overridden to take advantage of the native linker features on
10862     # the platform it is being used on.
10863     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10864   fi
10865
10866   # Commands to make compiler produce verbose output that lists
10867   # what "hidden" libraries, object files and flags are used when
10868   # linking a shared library.
10869   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10870
10871 else
10872   GXX=no
10873   with_gnu_ld=no
10874   wlarc=
10875 fi
10876
10877 # PORTME: fill in a description of your system's C++ link characteristics
10878 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10879 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10880 ld_shlibs_CXX=yes
10881 case $host_os in
10882   aix3*)
10883     # FIXME: insert proper C++ library support
10884     ld_shlibs_CXX=no
10885     ;;
10886   aix4* | aix5*)
10887     if test "$host_cpu" = ia64; then
10888       # On IA64, the linker does run time linking by default, so we don't
10889       # have to do anything special.
10890       aix_use_runtimelinking=no
10891       exp_sym_flag='-Bexport'
10892       no_entry_flag=""
10893     else
10894       aix_use_runtimelinking=no
10895
10896       # Test if we are trying to use run time linking or normal
10897       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10898       # need to do runtime linking.
10899       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10900         for ld_flag in $LDFLAGS; do
10901           case $ld_flag in
10902           *-brtl*)
10903             aix_use_runtimelinking=yes
10904             break
10905             ;;
10906           esac
10907         done
10908         ;;
10909       esac
10910
10911       exp_sym_flag='-bexport'
10912       no_entry_flag='-bnoentry'
10913     fi
10914
10915     # When large executables or shared objects are built, AIX ld can
10916     # have problems creating the table of contents.  If linking a library
10917     # or program results in "error TOC overflow" add -mminimal-toc to
10918     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10919     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10920
10921     archive_cmds_CXX=''
10922     hardcode_direct_CXX=yes
10923     hardcode_libdir_separator_CXX=':'
10924     link_all_deplibs_CXX=yes
10925
10926     if test "$GXX" = yes; then
10927       case $host_os in aix4.[012]|aix4.[012].*)
10928       # We only want to do this on AIX 4.2 and lower, the check
10929       # below for broken collect2 doesn't work under 4.3+
10930         collect2name=`${CC} -print-prog-name=collect2`
10931         if test -f "$collect2name" && \
10932            strings "$collect2name" | grep resolve_lib_name >/dev/null
10933         then
10934           # We have reworked collect2
10935           hardcode_direct_CXX=yes
10936         else
10937           # We have old collect2
10938           hardcode_direct_CXX=unsupported
10939           # It fails to find uninstalled libraries when the uninstalled
10940           # path is not listed in the libpath.  Setting hardcode_minus_L
10941           # to unsupported forces relinking
10942           hardcode_minus_L_CXX=yes
10943           hardcode_libdir_flag_spec_CXX='-L$libdir'
10944           hardcode_libdir_separator_CXX=
10945         fi
10946         ;;
10947       esac
10948       shared_flag='-shared'
10949       if test "$aix_use_runtimelinking" = yes; then
10950         shared_flag="$shared_flag "'${wl}-G'
10951       fi
10952     else
10953       # not using gcc
10954       if test "$host_cpu" = ia64; then
10955         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10956         # chokes on -Wl,-G. The following line is correct:
10957         shared_flag='-G'
10958       else
10959         if test "$aix_use_runtimelinking" = yes; then
10960           shared_flag='${wl}-G'
10961         else
10962           shared_flag='${wl}-bM:SRE'
10963         fi
10964       fi
10965     fi
10966
10967     # It seems that -bexpall does not export symbols beginning with
10968     # underscore (_), so it is better to generate a list of symbols to export.
10969     always_export_symbols_CXX=yes
10970     if test "$aix_use_runtimelinking" = yes; then
10971       # Warning - without using the other runtime loading flags (-brtl),
10972       # -berok will link without error, but may produce a broken library.
10973       allow_undefined_flag_CXX='-berok'
10974       # Determine the default libpath from the value encoded in an empty executable.
10975       cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h.  */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h.  */
10981
10982 int
10983 main ()
10984 {
10985
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994   *) ac_try_echo=$ac_try;;
10995 esac
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997   (eval "$ac_link") 2>conftest.er1
10998   ac_status=$?
10999   grep -v '^ *+' conftest.er1 >conftest.err
11000   rm -f conftest.er1
11001   cat conftest.err >&5
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); } && {
11004          test -z "$ac_cxx_werror_flag" ||
11005          test ! -s conftest.err
11006        } && test -s conftest$ac_exeext &&
11007        $as_test_x conftest$ac_exeext; then
11008   
11009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11010 }'`
11011 # Check for a 64-bit object if we didn't find anything.
11012 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11013 }'`; fi
11014 else
11015   echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11017
11018         
11019 fi
11020
11021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11022       conftest$ac_exeext conftest.$ac_ext
11023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11024
11025       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11026
11027       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"
11028      else
11029       if test "$host_cpu" = ia64; then
11030         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11031         allow_undefined_flag_CXX="-z nodefs"
11032         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"
11033       else
11034         # Determine the default libpath from the value encoded in an empty executable.
11035         cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h.  */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h.  */
11041
11042 int
11043 main ()
11044 {
11045
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext conftest$ac_exeext
11051 if { (ac_try="$ac_link"
11052 case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057   (eval "$ac_link") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } && {
11064          test -z "$ac_cxx_werror_flag" ||
11065          test ! -s conftest.err
11066        } && test -s conftest$ac_exeext &&
11067        $as_test_x conftest$ac_exeext; then
11068   
11069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11070 }'`
11071 # Check for a 64-bit object if we didn't find anything.
11072 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11073 }'`; fi
11074 else
11075   echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11077
11078         
11079 fi
11080
11081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082       conftest$ac_exeext conftest.$ac_ext
11083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11084
11085         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11086         # Warning - without using the other run time loading flags,
11087         # -berok will link without error, but may produce a broken library.
11088         no_undefined_flag_CXX=' ${wl}-bernotok'
11089         allow_undefined_flag_CXX=' ${wl}-berok'
11090         # Exported symbols can be pulled into shared objects from archives
11091         whole_archive_flag_spec_CXX='$convenience'
11092         archive_cmds_need_lc_CXX=yes
11093         # This is similar to how AIX traditionally builds its shared libraries.
11094         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'
11095       fi
11096     fi
11097     ;;
11098
11099   beos*)
11100     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11101       allow_undefined_flag_CXX=unsupported
11102       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11103       # support --undefined.  This deserves some investigation.  FIXME
11104       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11105     else
11106       ld_shlibs_CXX=no
11107     fi
11108     ;;
11109
11110   chorus*)
11111     case $cc_basename in
11112       *)
11113         # FIXME: insert proper C++ library support
11114         ld_shlibs_CXX=no
11115         ;;
11116     esac
11117     ;;
11118
11119   cygwin* | mingw* | pw32*)
11120     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11121     # as there is no search path for DLLs.
11122     hardcode_libdir_flag_spec_CXX='-L$libdir'
11123     allow_undefined_flag_CXX=unsupported
11124     always_export_symbols_CXX=no
11125     enable_shared_with_static_runtimes_CXX=yes
11126
11127     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11128       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'
11129       # If the export-symbols file already is a .def file (1st line
11130       # is EXPORTS), use it as is; otherwise, prepend...
11131       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11132         cp $export_symbols $output_objdir/$soname.def;
11133       else
11134         echo EXPORTS > $output_objdir/$soname.def;
11135         cat $export_symbols >> $output_objdir/$soname.def;
11136       fi~
11137       $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'
11138     else
11139       ld_shlibs_CXX=no
11140     fi
11141   ;;
11142       darwin* | rhapsody*)
11143         case $host_os in
11144         rhapsody* | darwin1.[012])
11145          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11146          ;;
11147        *) # Darwin 1.3 on
11148          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11149            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11150          else
11151            case ${MACOSX_DEPLOYMENT_TARGET} in
11152              10.[012])
11153                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11154                ;;
11155              10.*)
11156                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11157                ;;
11158            esac
11159          fi
11160          ;;
11161         esac
11162       archive_cmds_need_lc_CXX=no
11163       hardcode_direct_CXX=no
11164       hardcode_automatic_CXX=yes
11165       hardcode_shlibpath_var_CXX=unsupported
11166       whole_archive_flag_spec_CXX=''
11167       link_all_deplibs_CXX=yes
11168
11169     if test "$GXX" = yes ; then
11170       lt_int_apple_cc_single_mod=no
11171       output_verbose_link_cmd='echo'
11172       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11173        lt_int_apple_cc_single_mod=yes
11174       fi
11175       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11176        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11177       else
11178           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'
11179         fi
11180         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11181         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11182           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11183             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11184           else
11185             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11186           fi
11187             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}'
11188       else
11189       case $cc_basename in
11190         xlc*)
11191          output_verbose_link_cmd='echo'
11192           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11193           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11194           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11195           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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11196           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}'
11197           ;;
11198        *)
11199          ld_shlibs_CXX=no
11200           ;;
11201       esac
11202       fi
11203         ;;
11204
11205   dgux*)
11206     case $cc_basename in
11207       ec++*)
11208         # FIXME: insert proper C++ library support
11209         ld_shlibs_CXX=no
11210         ;;
11211       ghcx*)
11212         # Green Hills C++ Compiler
11213         # FIXME: insert proper C++ library support
11214         ld_shlibs_CXX=no
11215         ;;
11216       *)
11217         # FIXME: insert proper C++ library support
11218         ld_shlibs_CXX=no
11219         ;;
11220     esac
11221     ;;
11222   freebsd[12]*)
11223     # C++ shared libraries reported to be fairly broken before switch to ELF
11224     ld_shlibs_CXX=no
11225     ;;
11226   freebsd-elf*)
11227     archive_cmds_need_lc_CXX=no
11228     ;;
11229   freebsd* | kfreebsd*-gnu | dragonfly*)
11230     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11231     # conventions
11232     ld_shlibs_CXX=yes
11233     ;;
11234   gnu*)
11235     ;;
11236   hpux9*)
11237     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11238     hardcode_libdir_separator_CXX=:
11239     export_dynamic_flag_spec_CXX='${wl}-E'
11240     hardcode_direct_CXX=yes
11241     hardcode_minus_L_CXX=yes # Not in the search PATH,
11242                                 # but as the default
11243                                 # location of the library.
11244
11245     case $cc_basename in
11246     CC*)
11247       # FIXME: insert proper C++ library support
11248       ld_shlibs_CXX=no
11249       ;;
11250     aCC*)
11251       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'
11252       # Commands to make compiler produce verbose output that lists
11253       # what "hidden" libraries, object files and flags are used when
11254       # linking a shared library.
11255       #
11256       # There doesn't appear to be a way to prevent this compiler from
11257       # explicitly linking system object files so we need to strip them
11258       # from the output so that they don't get included in the library
11259       # dependencies.
11260       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'
11261       ;;
11262     *)
11263       if test "$GXX" = yes; then
11264         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'
11265       else
11266         # FIXME: insert proper C++ library support
11267         ld_shlibs_CXX=no
11268       fi
11269       ;;
11270     esac
11271     ;;
11272   hpux10*|hpux11*)
11273     if test $with_gnu_ld = no; then
11274       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11275       hardcode_libdir_separator_CXX=:
11276
11277       case $host_cpu in
11278       hppa*64*|ia64*)
11279         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11280         ;;
11281       *)
11282         export_dynamic_flag_spec_CXX='${wl}-E'
11283         ;;
11284       esac
11285     fi
11286     case $host_cpu in
11287     hppa*64*|ia64*)
11288       hardcode_direct_CXX=no
11289       hardcode_shlibpath_var_CXX=no
11290       ;;
11291     *)
11292       hardcode_direct_CXX=yes
11293       hardcode_minus_L_CXX=yes # Not in the search PATH,
11294                                               # but as the default
11295                                               # location of the library.
11296       ;;
11297     esac
11298
11299     case $cc_basename in
11300       CC*)
11301         # FIXME: insert proper C++ library support
11302         ld_shlibs_CXX=no
11303         ;;
11304       aCC*)
11305         case $host_cpu in
11306         hppa*64*)
11307           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11308           ;;
11309         ia64*)
11310           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11311           ;;
11312         *)
11313           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11314           ;;
11315         esac
11316         # Commands to make compiler produce verbose output that lists
11317         # what "hidden" libraries, object files and flags are used when
11318         # linking a shared library.
11319         #
11320         # There doesn't appear to be a way to prevent this compiler from
11321         # explicitly linking system object files so we need to strip them
11322         # from the output so that they don't get included in the library
11323         # dependencies.
11324         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'
11325         ;;
11326       *)
11327         if test "$GXX" = yes; then
11328           if test $with_gnu_ld = no; then
11329             case $host_cpu in
11330             hppa*64*)
11331               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11332               ;;
11333             ia64*)
11334               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11335               ;;
11336             *)
11337               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'
11338               ;;
11339             esac
11340           fi
11341         else
11342           # FIXME: insert proper C++ library support
11343           ld_shlibs_CXX=no
11344         fi
11345         ;;
11346     esac
11347     ;;
11348   interix3*)
11349     hardcode_direct_CXX=no
11350     hardcode_shlibpath_var_CXX=no
11351     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11352     export_dynamic_flag_spec_CXX='${wl}-E'
11353     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11354     # Instead, shared libraries are loaded at an image base (0x10000000 by
11355     # default) and relocated if they conflict, which is a slow very memory
11356     # consuming and fragmenting process.  To avoid this, we pick a random,
11357     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11358     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11359     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'
11360     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'
11361     ;;
11362   irix5* | irix6*)
11363     case $cc_basename in
11364       CC*)
11365         # SGI C++
11366         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'
11367
11368         # Archives containing C++ object files must be created using
11369         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11370         # necessary to make sure instantiated templates are included
11371         # in the archive.
11372         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11373         ;;
11374       *)
11375         if test "$GXX" = yes; then
11376           if test "$with_gnu_ld" = no; then
11377             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'
11378           else
11379             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'
11380           fi
11381         fi
11382         link_all_deplibs_CXX=yes
11383         ;;
11384     esac
11385     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11386     hardcode_libdir_separator_CXX=:
11387     ;;
11388   linux*)
11389     case $cc_basename in
11390       KCC*)
11391         # Kuck and Associates, Inc. (KAI) C++ Compiler
11392
11393         # KCC will only create a shared library if the output file
11394         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11395         # to its proper name (with version) after linking.
11396         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'
11397         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'
11398         # Commands to make compiler produce verbose output that lists
11399         # what "hidden" libraries, object files and flags are used when
11400         # linking a shared library.
11401         #
11402         # There doesn't appear to be a way to prevent this compiler from
11403         # explicitly linking system object files so we need to strip them
11404         # from the output so that they don't get included in the library
11405         # dependencies.
11406         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'
11407
11408         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11409         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11410
11411         # Archives containing C++ object files must be created using
11412         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11413         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11414         ;;
11415       icpc*)
11416         # Intel C++
11417         with_gnu_ld=yes
11418         # version 8.0 and above of icpc choke on multiply defined symbols
11419         # if we add $predep_objects and $postdep_objects, however 7.1 and
11420         # earlier do not add the objects themselves.
11421         case `$CC -V 2>&1` in
11422         *"Version 7."*)
11423           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11424           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'
11425           ;;
11426         *)  # Version 8.0 or newer
11427           tmp_idyn=
11428           case $host_cpu in
11429             ia64*) tmp_idyn=' -i_dynamic';;
11430           esac
11431           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11432           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'
11433           ;;
11434         esac
11435         archive_cmds_need_lc_CXX=no
11436         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11437         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11438         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11439         ;;
11440       pgCC*)
11441         # Portland Group C++ compiler
11442         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11443         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'
11444
11445         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11446         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11447         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'
11448         ;;
11449       cxx*)
11450         # Compaq C++
11451         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11452         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'
11453
11454         runpath_var=LD_RUN_PATH
11455         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11456         hardcode_libdir_separator_CXX=:
11457
11458         # Commands to make compiler produce verbose output that lists
11459         # what "hidden" libraries, object files and flags are used when
11460         # linking a shared library.
11461         #
11462         # There doesn't appear to be a way to prevent this compiler from
11463         # explicitly linking system object files so we need to strip them
11464         # from the output so that they don't get included in the library
11465         # dependencies.
11466         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'
11467         ;;
11468     esac
11469     ;;
11470   lynxos*)
11471     # FIXME: insert proper C++ library support
11472     ld_shlibs_CXX=no
11473     ;;
11474   m88k*)
11475     # FIXME: insert proper C++ library support
11476     ld_shlibs_CXX=no
11477     ;;
11478   mvs*)
11479     case $cc_basename in
11480       cxx*)
11481         # FIXME: insert proper C++ library support
11482         ld_shlibs_CXX=no
11483         ;;
11484       *)
11485         # FIXME: insert proper C++ library support
11486         ld_shlibs_CXX=no
11487         ;;
11488     esac
11489     ;;
11490   netbsd*)
11491     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11492       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11493       wlarc=
11494       hardcode_libdir_flag_spec_CXX='-R$libdir'
11495       hardcode_direct_CXX=yes
11496       hardcode_shlibpath_var_CXX=no
11497     fi
11498     # Workaround some broken pre-1.5 toolchains
11499     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11500     ;;
11501   openbsd2*)
11502     # C++ shared libraries are fairly broken
11503     ld_shlibs_CXX=no
11504     ;;
11505   openbsd*)
11506     hardcode_direct_CXX=yes
11507     hardcode_shlibpath_var_CXX=no
11508     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11509     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11510     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11511       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11512       export_dynamic_flag_spec_CXX='${wl}-E'
11513       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11514     fi
11515     output_verbose_link_cmd='echo'
11516     ;;
11517   osf3*)
11518     case $cc_basename in
11519       KCC*)
11520         # Kuck and Associates, Inc. (KAI) C++ Compiler
11521
11522         # KCC will only create a shared library if the output file
11523         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11524         # to its proper name (with version) after linking.
11525         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'
11526
11527         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11528         hardcode_libdir_separator_CXX=:
11529
11530         # Archives containing C++ object files must be created using
11531         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11532         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11533
11534         ;;
11535       RCC*)
11536         # Rational C++ 2.4.1
11537         # FIXME: insert proper C++ library support
11538         ld_shlibs_CXX=no
11539         ;;
11540       cxx*)
11541         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11542         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'
11543
11544         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11545         hardcode_libdir_separator_CXX=:
11546
11547         # Commands to make compiler produce verbose output that lists
11548         # what "hidden" libraries, object files and flags are used when
11549         # linking a shared library.
11550         #
11551         # There doesn't appear to be a way to prevent this compiler from
11552         # explicitly linking system object files so we need to strip them
11553         # from the output so that they don't get included in the library
11554         # dependencies.
11555         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'
11556         ;;
11557       *)
11558         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11559           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11560           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'
11561
11562           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11563           hardcode_libdir_separator_CXX=:
11564
11565           # Commands to make compiler produce verbose output that lists
11566           # what "hidden" libraries, object files and flags are used when
11567           # linking a shared library.
11568           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11569
11570         else
11571           # FIXME: insert proper C++ library support
11572           ld_shlibs_CXX=no
11573         fi
11574         ;;
11575     esac
11576     ;;
11577   osf4* | osf5*)
11578     case $cc_basename in
11579       KCC*)
11580         # Kuck and Associates, Inc. (KAI) C++ Compiler
11581
11582         # KCC will only create a shared library if the output file
11583         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11584         # to its proper name (with version) after linking.
11585         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'
11586
11587         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11588         hardcode_libdir_separator_CXX=:
11589
11590         # Archives containing C++ object files must be created using
11591         # the KAI C++ compiler.
11592         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11593         ;;
11594       RCC*)
11595         # Rational C++ 2.4.1
11596         # FIXME: insert proper C++ library support
11597         ld_shlibs_CXX=no
11598         ;;
11599       cxx*)
11600         allow_undefined_flag_CXX=' -expect_unresolved \*'
11601         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'
11602         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11603           echo "-hidden">> $lib.exp~
11604           $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~
11605           $rm $lib.exp'
11606
11607         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11608         hardcode_libdir_separator_CXX=:
11609
11610         # Commands to make compiler produce verbose output that lists
11611         # what "hidden" libraries, object files and flags are used when
11612         # linking a shared library.
11613         #
11614         # There doesn't appear to be a way to prevent this compiler from
11615         # explicitly linking system object files so we need to strip them
11616         # from the output so that they don't get included in the library
11617         # dependencies.
11618         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'
11619         ;;
11620       *)
11621         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11622           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11623          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'
11624
11625           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11626           hardcode_libdir_separator_CXX=:
11627
11628           # Commands to make compiler produce verbose output that lists
11629           # what "hidden" libraries, object files and flags are used when
11630           # linking a shared library.
11631           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11632
11633         else
11634           # FIXME: insert proper C++ library support
11635           ld_shlibs_CXX=no
11636         fi
11637         ;;
11638     esac
11639     ;;
11640   psos*)
11641     # FIXME: insert proper C++ library support
11642     ld_shlibs_CXX=no
11643     ;;
11644   sunos4*)
11645     case $cc_basename in
11646       CC*)
11647         # Sun C++ 4.x
11648         # FIXME: insert proper C++ library support
11649         ld_shlibs_CXX=no
11650         ;;
11651       lcc*)
11652         # Lucid
11653         # FIXME: insert proper C++ library support
11654         ld_shlibs_CXX=no
11655         ;;
11656       *)
11657         # FIXME: insert proper C++ library support
11658         ld_shlibs_CXX=no
11659         ;;
11660     esac
11661     ;;
11662   solaris*)
11663     case $cc_basename in
11664       CC*)
11665         # Sun C++ 4.2, 5.x and Centerline C++
11666         archive_cmds_need_lc_CXX=yes
11667         no_undefined_flag_CXX=' -zdefs'
11668         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11669         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11670         $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'
11671
11672         hardcode_libdir_flag_spec_CXX='-R$libdir'
11673         hardcode_shlibpath_var_CXX=no
11674         case $host_os in
11675           solaris2.[0-5] | solaris2.[0-5].*) ;;
11676           *)
11677             # The C++ compiler is used as linker so we must use $wl
11678             # flag to pass the commands to the underlying system
11679             # linker. We must also pass each convience library through
11680             # to the system linker between allextract/defaultextract.
11681             # The C++ compiler will combine linker options so we
11682             # cannot just pass the convience library names through
11683             # without $wl.
11684             # Supported since Solaris 2.6 (maybe 2.5.1?)
11685             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11686             ;;
11687         esac
11688         link_all_deplibs_CXX=yes
11689
11690         output_verbose_link_cmd='echo'
11691
11692         # Archives containing C++ object files must be created using
11693         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11694         # necessary to make sure instantiated templates are included
11695         # in the archive.
11696         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11697         ;;
11698       gcx*)
11699         # Green Hills C++ Compiler
11700         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11701
11702         # The C++ compiler must be used to create the archive.
11703         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11704         ;;
11705       *)
11706         # GNU C++ compiler with Solaris linker
11707         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11709           if $CC --version | grep -v '^2\.7' > /dev/null; then
11710             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11711             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11712                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11713
11714             # Commands to make compiler produce verbose output that lists
11715             # what "hidden" libraries, object files and flags are used when
11716             # linking a shared library.
11717             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11718           else
11719             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11720             # platform.
11721             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11722             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11723                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11724
11725             # Commands to make compiler produce verbose output that lists
11726             # what "hidden" libraries, object files and flags are used when
11727             # linking a shared library.
11728             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11729           fi
11730
11731           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11732         fi
11733         ;;
11734     esac
11735     ;;
11736   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11737     no_undefined_flag_CXX='${wl}-z,text'
11738     archive_cmds_need_lc_CXX=no
11739     hardcode_shlibpath_var_CXX=no
11740     runpath_var='LD_RUN_PATH'
11741
11742     case $cc_basename in
11743       CC*)
11744         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11746         ;;
11747       *)
11748         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11750         ;;
11751     esac
11752     ;;
11753   sysv5* | sco3.2v5* | sco5v6*)
11754     # Note: We can NOT use -z defs as we might desire, because we do not
11755     # link with -lc, and that would cause any symbols used from libc to
11756     # always be unresolved, which means just about no library would
11757     # ever link correctly.  If we're not using GNU ld we use -z text
11758     # though, which does catch some bad symbols but isn't as heavy-handed
11759     # as -z defs.
11760     # For security reasons, it is highly recommended that you always
11761     # use absolute paths for naming shared libraries, and exclude the
11762     # DT_RUNPATH tag from executables and libraries.  But doing so
11763     # requires that you compile everything twice, which is a pain.
11764     # So that behaviour is only enabled if SCOABSPATH is set to a
11765     # non-empty value in the environment.  Most likely only useful for
11766     # creating official distributions of packages.
11767     # This is a hack until libtool officially supports absolute path
11768     # names for shared libraries.
11769     no_undefined_flag_CXX='${wl}-z,text'
11770     allow_undefined_flag_CXX='${wl}-z,nodefs'
11771     archive_cmds_need_lc_CXX=no
11772     hardcode_shlibpath_var_CXX=no
11773     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11774     hardcode_libdir_separator_CXX=':'
11775     link_all_deplibs_CXX=yes
11776     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11777     runpath_var='LD_RUN_PATH'
11778
11779     case $cc_basename in
11780       CC*)
11781         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11782         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11783         ;;
11784       *)
11785         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11786         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11787         ;;
11788     esac
11789     ;;
11790   tandem*)
11791     case $cc_basename in
11792       NCC*)
11793         # NonStop-UX NCC 3.20
11794         # FIXME: insert proper C++ library support
11795         ld_shlibs_CXX=no
11796         ;;
11797       *)
11798         # FIXME: insert proper C++ library support
11799         ld_shlibs_CXX=no
11800         ;;
11801     esac
11802     ;;
11803   vxworks*)
11804     # FIXME: insert proper C++ library support
11805     ld_shlibs_CXX=no
11806     ;;
11807   *)
11808     # FIXME: insert proper C++ library support
11809     ld_shlibs_CXX=no
11810     ;;
11811 esac
11812 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11813 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11814 test "$ld_shlibs_CXX" = no && can_build_shared=no
11815
11816 GCC_CXX="$GXX"
11817 LD_CXX="$LD"
11818
11819
11820 cat > conftest.$ac_ext <<EOF
11821 class Foo
11822 {
11823 public:
11824   Foo (void) { a = 0; }
11825 private:
11826   int a;
11827 };
11828 EOF
11829
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831   (eval $ac_compile) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; then
11835   # Parse the compiler output and extract the necessary
11836   # objects, libraries and library flags.
11837
11838   # Sentinel used to keep track of whether or not we are before
11839   # the conftest object file.
11840   pre_test_object_deps_done=no
11841
11842   # The `*' in the case matches for architectures that use `case' in
11843   # $output_verbose_cmd can trigger glob expansion during the loop
11844   # eval without this substitution.
11845   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11846
11847   for p in `eval $output_verbose_link_cmd`; do
11848     case $p in
11849
11850     -L* | -R* | -l*)
11851        # Some compilers place space between "-{L,R}" and the path.
11852        # Remove the space.
11853        if test $p = "-L" \
11854           || test $p = "-R"; then
11855          prev=$p
11856          continue
11857        else
11858          prev=
11859        fi
11860
11861        if test "$pre_test_object_deps_done" = no; then
11862          case $p in
11863          -L* | -R*)
11864            # Internal compiler library paths should come after those
11865            # provided the user.  The postdeps already come after the
11866            # user supplied libs so there is no need to process them.
11867            if test -z "$compiler_lib_search_path_CXX"; then
11868              compiler_lib_search_path_CXX="${prev}${p}"
11869            else
11870              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11871            fi
11872            ;;
11873          # The "-l" case would never come before the object being
11874          # linked, so don't bother handling this case.
11875          esac
11876        else
11877          if test -z "$postdeps_CXX"; then
11878            postdeps_CXX="${prev}${p}"
11879          else
11880            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11881          fi
11882        fi
11883        ;;
11884
11885     *.$objext)
11886        # This assumes that the test object file only shows up
11887        # once in the compiler output.
11888        if test "$p" = "conftest.$objext"; then
11889          pre_test_object_deps_done=yes
11890          continue
11891        fi
11892
11893        if test "$pre_test_object_deps_done" = no; then
11894          if test -z "$predep_objects_CXX"; then
11895            predep_objects_CXX="$p"
11896          else
11897            predep_objects_CXX="$predep_objects_CXX $p"
11898          fi
11899        else
11900          if test -z "$postdep_objects_CXX"; then
11901            postdep_objects_CXX="$p"
11902          else
11903            postdep_objects_CXX="$postdep_objects_CXX $p"
11904          fi
11905        fi
11906        ;;
11907
11908     *) ;; # Ignore the rest.
11909
11910     esac
11911   done
11912
11913   # Clean up.
11914   rm -f a.out a.exe
11915 else
11916   echo "libtool.m4: error: problem compiling CXX test program"
11917 fi
11918
11919 $rm -f confest.$objext
11920
11921 # PORTME: override above test on systems where it is broken
11922 case $host_os in
11923 interix3*)
11924   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11925   # hack all around it, let's just trust "g++" to DTRT.
11926   predep_objects_CXX=
11927   postdep_objects_CXX=
11928   postdeps_CXX=
11929   ;;
11930
11931 solaris*)
11932   case $cc_basename in
11933   CC*)
11934     # Adding this requires a known-good setup of shared libraries for
11935     # Sun compiler versions before 5.6, else PIC objects from an old
11936     # archive will be linked into the output, leading to subtle bugs.
11937     postdeps_CXX='-lCstd -lCrun'
11938     ;;
11939   esac
11940   ;;
11941 esac
11942
11943
11944 case " $postdeps_CXX " in
11945 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11946 esac
11947
11948 lt_prog_compiler_wl_CXX=
11949 lt_prog_compiler_pic_CXX=
11950 lt_prog_compiler_static_CXX=
11951
11952 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11953 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11954  
11955   # C++ specific cases for pic, static, wl, etc.
11956   if test "$GXX" = yes; then
11957     lt_prog_compiler_wl_CXX='-Wl,'
11958     lt_prog_compiler_static_CXX='-static'
11959
11960     case $host_os in
11961     aix*)
11962       # All AIX code is PIC.
11963       if test "$host_cpu" = ia64; then
11964         # AIX 5 now supports IA64 processor
11965         lt_prog_compiler_static_CXX='-Bstatic'
11966       fi
11967       ;;
11968     amigaos*)
11969       # FIXME: we need at least 68020 code to build shared libraries, but
11970       # adding the `-m68020' flag to GCC prevents building anything better,
11971       # like `-m68040'.
11972       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11973       ;;
11974     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11975       # PIC is the default for these OSes.
11976       ;;
11977     mingw* | os2* | pw32*)
11978       # This hack is so that the source file can tell whether it is being
11979       # built for inclusion in a dll (and should export symbols for example).
11980       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11981       ;;
11982     darwin* | rhapsody*)
11983       # PIC is the default on this platform
11984       # Common symbols not allowed in MH_DYLIB files
11985       lt_prog_compiler_pic_CXX='-fno-common'
11986       ;;
11987     *djgpp*)
11988       # DJGPP does not support shared libraries at all
11989       lt_prog_compiler_pic_CXX=
11990       ;;
11991     interix3*)
11992       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11993       # Instead, we relocate shared libraries at runtime.
11994       ;;
11995     sysv4*MP*)
11996       if test -d /usr/nec; then
11997         lt_prog_compiler_pic_CXX=-Kconform_pic
11998       fi
11999       ;;
12000     hpux*)
12001       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12002       # not for PA HP-UX.
12003       case $host_cpu in
12004       hppa*64*|ia64*)
12005         ;;
12006       *)
12007         lt_prog_compiler_pic_CXX='-fPIC'
12008         ;;
12009       esac
12010       ;;
12011     *)
12012       lt_prog_compiler_pic_CXX='-fPIC'
12013       ;;
12014     esac
12015   else
12016     case $host_os in
12017       aix4* | aix5*)
12018         # All AIX code is PIC.
12019         if test "$host_cpu" = ia64; then
12020           # AIX 5 now supports IA64 processor
12021           lt_prog_compiler_static_CXX='-Bstatic'
12022         else
12023           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12024         fi
12025         ;;
12026       chorus*)
12027         case $cc_basename in
12028         cxch68*)
12029           # Green Hills C++ Compiler
12030           # _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"
12031           ;;
12032         esac
12033         ;;
12034        darwin*)
12035          # PIC is the default on this platform
12036          # Common symbols not allowed in MH_DYLIB files
12037          case $cc_basename in
12038            xlc*)
12039            lt_prog_compiler_pic_CXX='-qnocommon'
12040            lt_prog_compiler_wl_CXX='-Wl,'
12041            ;;
12042          esac
12043        ;;
12044       dgux*)
12045         case $cc_basename in
12046           ec++*)
12047             lt_prog_compiler_pic_CXX='-KPIC'
12048             ;;
12049           ghcx*)
12050             # Green Hills C++ Compiler
12051             lt_prog_compiler_pic_CXX='-pic'
12052             ;;
12053           *)
12054             ;;
12055         esac
12056         ;;
12057       freebsd* | kfreebsd*-gnu | dragonfly*)
12058         # FreeBSD uses GNU C++
12059         ;;
12060       hpux9* | hpux10* | hpux11*)
12061         case $cc_basename in
12062           CC*)
12063             lt_prog_compiler_wl_CXX='-Wl,'
12064             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12065             if test "$host_cpu" != ia64; then
12066               lt_prog_compiler_pic_CXX='+Z'
12067             fi
12068             ;;
12069           aCC*)
12070             lt_prog_compiler_wl_CXX='-Wl,'
12071             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12072             case $host_cpu in
12073             hppa*64*|ia64*)
12074               # +Z the default
12075               ;;
12076             *)
12077               lt_prog_compiler_pic_CXX='+Z'
12078               ;;
12079             esac
12080             ;;
12081           *)
12082             ;;
12083         esac
12084         ;;
12085       interix*)
12086         # This is c89, which is MS Visual C++ (no shared libs)
12087         # Anyone wants to do a port?
12088         ;;
12089       irix5* | irix6* | nonstopux*)
12090         case $cc_basename in
12091           CC*)
12092             lt_prog_compiler_wl_CXX='-Wl,'
12093             lt_prog_compiler_static_CXX='-non_shared'
12094             # CC pic flag -KPIC is the default.
12095             ;;
12096           *)
12097             ;;
12098         esac
12099         ;;
12100       linux*)
12101         case $cc_basename in
12102           KCC*)
12103             # KAI C++ Compiler
12104             lt_prog_compiler_wl_CXX='--backend -Wl,'
12105             lt_prog_compiler_pic_CXX='-fPIC'
12106             ;;
12107           icpc* | ecpc*)
12108             # Intel C++
12109             lt_prog_compiler_wl_CXX='-Wl,'
12110             lt_prog_compiler_pic_CXX='-KPIC'
12111             lt_prog_compiler_static_CXX='-static'
12112             ;;
12113           pgCC*)
12114             # Portland Group C++ compiler.
12115             lt_prog_compiler_wl_CXX='-Wl,'
12116             lt_prog_compiler_pic_CXX='-fpic'
12117             lt_prog_compiler_static_CXX='-Bstatic'
12118             ;;
12119           cxx*)
12120             # Compaq C++
12121             # Make sure the PIC flag is empty.  It appears that all Alpha
12122             # Linux and Compaq Tru64 Unix objects are PIC.
12123             lt_prog_compiler_pic_CXX=
12124             lt_prog_compiler_static_CXX='-non_shared'
12125             ;;
12126           *)
12127             ;;
12128         esac
12129         ;;
12130       lynxos*)
12131         ;;
12132       m88k*)
12133         ;;
12134       mvs*)
12135         case $cc_basename in
12136           cxx*)
12137             lt_prog_compiler_pic_CXX='-W c,exportall'
12138             ;;
12139           *)
12140             ;;
12141         esac
12142         ;;
12143       netbsd*)
12144         ;;
12145       osf3* | osf4* | osf5*)
12146         case $cc_basename in
12147           KCC*)
12148             lt_prog_compiler_wl_CXX='--backend -Wl,'
12149             ;;
12150           RCC*)
12151             # Rational C++ 2.4.1
12152             lt_prog_compiler_pic_CXX='-pic'
12153             ;;
12154           cxx*)
12155             # Digital/Compaq C++
12156             lt_prog_compiler_wl_CXX='-Wl,'
12157             # Make sure the PIC flag is empty.  It appears that all Alpha
12158             # Linux and Compaq Tru64 Unix objects are PIC.
12159             lt_prog_compiler_pic_CXX=
12160             lt_prog_compiler_static_CXX='-non_shared'
12161             ;;
12162           *)
12163             ;;
12164         esac
12165         ;;
12166       psos*)
12167         ;;
12168       solaris*)
12169         case $cc_basename in
12170           CC*)
12171             # Sun C++ 4.2, 5.x and Centerline C++
12172             lt_prog_compiler_pic_CXX='-KPIC'
12173             lt_prog_compiler_static_CXX='-Bstatic'
12174             lt_prog_compiler_wl_CXX='-Qoption ld '
12175             ;;
12176           gcx*)
12177             # Green Hills C++ Compiler
12178             lt_prog_compiler_pic_CXX='-PIC'
12179             ;;
12180           *)
12181             ;;
12182         esac
12183         ;;
12184       sunos4*)
12185         case $cc_basename in
12186           CC*)
12187             # Sun C++ 4.x
12188             lt_prog_compiler_pic_CXX='-pic'
12189             lt_prog_compiler_static_CXX='-Bstatic'
12190             ;;
12191           lcc*)
12192             # Lucid
12193             lt_prog_compiler_pic_CXX='-pic'
12194             ;;
12195           *)
12196             ;;
12197         esac
12198         ;;
12199       tandem*)
12200         case $cc_basename in
12201           NCC*)
12202             # NonStop-UX NCC 3.20
12203             lt_prog_compiler_pic_CXX='-KPIC'
12204             ;;
12205           *)
12206             ;;
12207         esac
12208         ;;
12209       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12210         case $cc_basename in
12211           CC*)
12212             lt_prog_compiler_wl_CXX='-Wl,'
12213             lt_prog_compiler_pic_CXX='-KPIC'
12214             lt_prog_compiler_static_CXX='-Bstatic'
12215             ;;
12216         esac
12217         ;;
12218       vxworks*)
12219         ;;
12220       *)
12221         lt_prog_compiler_can_build_shared_CXX=no
12222         ;;
12223     esac
12224   fi
12225
12226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12227 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12228
12229 #
12230 # Check to make sure the PIC flag actually works.
12231 #
12232 if test -n "$lt_prog_compiler_pic_CXX"; then
12233   
12234 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12236 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12237   echo $ECHO_N "(cached) $ECHO_C" >&6
12238 else
12239   lt_prog_compiler_pic_works_CXX=no
12240   ac_outfile=conftest.$ac_objext
12241    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12242    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12243    # Insert the option either (1) after the last *FLAGS variable, or
12244    # (2) before a word containing "conftest.", or (3) at the end.
12245    # Note that $ac_compile itself does not contain backslashes and begins
12246    # with a dollar sign (not a hyphen), so the echo should work correctly.
12247    # The option is referenced via a variable to avoid confusing sed.
12248    lt_compile=`echo "$ac_compile" | $SED \
12249    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12251    -e 's:$: $lt_compiler_flag:'`
12252    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12253    (eval "$lt_compile" 2>conftest.err)
12254    ac_status=$?
12255    cat conftest.err >&5
12256    echo "$as_me:__oline__: \$? = $ac_status" >&5
12257    if (exit $ac_status) && test -s "$ac_outfile"; then
12258      # The compiler can only warn and ignore the option if not recognized
12259      # So say no if there are warnings other than the usual output.
12260      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12261      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12262      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12263        lt_prog_compiler_pic_works_CXX=yes
12264      fi
12265    fi
12266    $rm conftest*
12267
12268 fi
12269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12270 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12271
12272 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12273     case $lt_prog_compiler_pic_CXX in
12274      "" | " "*) ;;
12275      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12276      esac
12277 else
12278     lt_prog_compiler_pic_CXX=
12279      lt_prog_compiler_can_build_shared_CXX=no
12280 fi
12281
12282 fi
12283 case $host_os in
12284   # For platforms which do not support PIC, -DPIC is meaningless:
12285   *djgpp*)
12286     lt_prog_compiler_pic_CXX=
12287     ;;
12288   *)
12289     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12290     ;;
12291 esac
12292
12293 #
12294 # Check to make sure the static flag actually works.
12295 #
12296 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12297 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12298 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12299 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302   lt_prog_compiler_static_works_CXX=no
12303    save_LDFLAGS="$LDFLAGS"
12304    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12305    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12306    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12307      # The linker can only warn and ignore the option if not recognized
12308      # So say no if there are warnings
12309      if test -s conftest.err; then
12310        # Append any errors to the config.log.
12311        cat conftest.err 1>&5
12312        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12313        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12314        if diff conftest.exp conftest.er2 >/dev/null; then
12315          lt_prog_compiler_static_works_CXX=yes
12316        fi
12317      else
12318        lt_prog_compiler_static_works_CXX=yes
12319      fi
12320    fi
12321    $rm conftest*
12322    LDFLAGS="$save_LDFLAGS"
12323
12324 fi
12325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12326 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12327
12328 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12329     :
12330 else
12331     lt_prog_compiler_static_CXX=
12332 fi
12333
12334
12335 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12337 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   lt_cv_prog_compiler_c_o_CXX=no
12341    $rm -r conftest 2>/dev/null
12342    mkdir conftest
12343    cd conftest
12344    mkdir out
12345    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12346
12347    lt_compiler_flag="-o out/conftest2.$ac_objext"
12348    # Insert the option either (1) after the last *FLAGS variable, or
12349    # (2) before a word containing "conftest.", or (3) at the end.
12350    # Note that $ac_compile itself does not contain backslashes and begins
12351    # with a dollar sign (not a hyphen), so the echo should work correctly.
12352    lt_compile=`echo "$ac_compile" | $SED \
12353    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12355    -e 's:$: $lt_compiler_flag:'`
12356    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12357    (eval "$lt_compile" 2>out/conftest.err)
12358    ac_status=$?
12359    cat out/conftest.err >&5
12360    echo "$as_me:__oline__: \$? = $ac_status" >&5
12361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12362    then
12363      # The compiler can only warn and ignore the option if not recognized
12364      # So say no if there are warnings
12365      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12366      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12367      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12368        lt_cv_prog_compiler_c_o_CXX=yes
12369      fi
12370    fi
12371    chmod u+w . 2>&5
12372    $rm conftest*
12373    # SGI C++ compiler will create directory out/ii_files/ for
12374    # template instantiation
12375    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12376    $rm out/* && rmdir out
12377    cd ..
12378    rmdir conftest
12379    $rm conftest*
12380
12381 fi
12382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12384
12385
12386 hard_links="nottested"
12387 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12388   # do not overwrite the value of need_locks provided by the user
12389   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12391   hard_links=yes
12392   $rm conftest*
12393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12394   touch conftest.a
12395   ln conftest.a conftest.b 2>&5 || hard_links=no
12396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12397   { echo "$as_me:$LINENO: result: $hard_links" >&5
12398 echo "${ECHO_T}$hard_links" >&6; }
12399   if test "$hard_links" = no; then
12400     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12402     need_locks=warn
12403   fi
12404 else
12405   need_locks=no
12406 fi
12407
12408 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12410
12411   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12412   case $host_os in
12413   aix4* | aix5*)
12414     # If we're using GNU nm, then we don't want the "-C" option.
12415     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12416     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12417       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'
12418     else
12419       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'
12420     fi
12421     ;;
12422   pw32*)
12423     export_symbols_cmds_CXX="$ltdll_cmds"
12424   ;;
12425   cygwin* | mingw*)
12426     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'
12427   ;;
12428   *)
12429     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12430   ;;
12431   esac
12432
12433 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12434 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12435 test "$ld_shlibs_CXX" = no && can_build_shared=no
12436
12437 #
12438 # Do we need to explicitly link libc?
12439 #
12440 case "x$archive_cmds_need_lc_CXX" in
12441 x|xyes)
12442   # Assume -lc should be added
12443   archive_cmds_need_lc_CXX=yes
12444
12445   if test "$enable_shared" = yes && test "$GCC" = yes; then
12446     case $archive_cmds_CXX in
12447     *'~'*)
12448       # FIXME: we may have to deal with multi-command sequences.
12449       ;;
12450     '$CC '*)
12451       # Test whether the compiler implicitly links with -lc since on some
12452       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12453       # to ld, don't add -lc before -lgcc.
12454       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12455 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12456       $rm conftest*
12457       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12458
12459       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460   (eval $ac_compile) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } 2>conftest.err; then
12464         soname=conftest
12465         lib=conftest
12466         libobjs=conftest.$ac_objext
12467         deplibs=
12468         wl=$lt_prog_compiler_wl_CXX
12469         pic_flag=$lt_prog_compiler_pic_CXX
12470         compiler_flags=-v
12471         linker_flags=-v
12472         verstring=
12473         output_objdir=.
12474         libname=conftest
12475         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12476         allow_undefined_flag_CXX=
12477         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12478   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }
12482         then
12483           archive_cmds_need_lc_CXX=no
12484         else
12485           archive_cmds_need_lc_CXX=yes
12486         fi
12487         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12488       else
12489         cat conftest.err 1>&5
12490       fi
12491       $rm conftest*
12492       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12493 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12494       ;;
12495     esac
12496   fi
12497   ;;
12498 esac
12499
12500 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12501 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12502 library_names_spec=
12503 libname_spec='lib$name'
12504 soname_spec=
12505 shrext_cmds=".so"
12506 postinstall_cmds=
12507 postuninstall_cmds=
12508 finish_cmds=
12509 finish_eval=
12510 shlibpath_var=
12511 shlibpath_overrides_runpath=unknown
12512 version_type=none
12513 dynamic_linker="$host_os ld.so"
12514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12515 if test "$GCC" = yes; then
12516   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12517   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12518     # if the path contains ";" then we assume it to be the separator
12519     # otherwise default to the standard path separator (i.e. ":") - it is
12520     # assumed that no part of a normal pathname contains ";" but that should
12521     # okay in the real world where ";" in dirpaths is itself problematic.
12522     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12523   else
12524     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12525   fi
12526 else
12527   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12528 fi
12529 need_lib_prefix=unknown
12530 hardcode_into_libs=no
12531
12532 # when you set need_version to no, make sure it does not cause -set_version
12533 # flags to be left without arguments
12534 need_version=unknown
12535
12536 case $host_os in
12537 aix3*)
12538   version_type=linux
12539   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12540   shlibpath_var=LIBPATH
12541
12542   # AIX 3 has no versioning support, so we append a major version to the name.
12543   soname_spec='${libname}${release}${shared_ext}$major'
12544   ;;
12545
12546 aix4* | aix5*)
12547   version_type=linux
12548   need_lib_prefix=no
12549   need_version=no
12550   hardcode_into_libs=yes
12551   if test "$host_cpu" = ia64; then
12552     # AIX 5 supports IA64
12553     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12554     shlibpath_var=LD_LIBRARY_PATH
12555   else
12556     # With GCC up to 2.95.x, collect2 would create an import file
12557     # for dependence libraries.  The import file would start with
12558     # the line `#! .'.  This would cause the generated library to
12559     # depend on `.', always an invalid library.  This was fixed in
12560     # development snapshots of GCC prior to 3.0.
12561     case $host_os in
12562       aix4 | aix4.[01] | aix4.[01].*)
12563       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12564            echo ' yes '
12565            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12566         :
12567       else
12568         can_build_shared=no
12569       fi
12570       ;;
12571     esac
12572     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12573     # soname into executable. Probably we can add versioning support to
12574     # collect2, so additional links can be useful in future.
12575     if test "$aix_use_runtimelinking" = yes; then
12576       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12577       # instead of lib<name>.a to let people know that these are not
12578       # typical AIX shared libraries.
12579       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12580     else
12581       # We preserve .a as extension for shared libraries through AIX4.2
12582       # and later when we are not doing run time linking.
12583       library_names_spec='${libname}${release}.a $libname.a'
12584       soname_spec='${libname}${release}${shared_ext}$major'
12585     fi
12586     shlibpath_var=LIBPATH
12587   fi
12588   ;;
12589
12590 amigaos*)
12591   library_names_spec='$libname.ixlibrary $libname.a'
12592   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12593   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'
12594   ;;
12595
12596 beos*)
12597   library_names_spec='${libname}${shared_ext}'
12598   dynamic_linker="$host_os ld.so"
12599   shlibpath_var=LIBRARY_PATH
12600   ;;
12601
12602 bsdi[45]*)
12603   version_type=linux
12604   need_version=no
12605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606   soname_spec='${libname}${release}${shared_ext}$major'
12607   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12608   shlibpath_var=LD_LIBRARY_PATH
12609   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12610   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12611   # the default ld.so.conf also contains /usr/contrib/lib and
12612   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12613   # libtool to hard-code these into programs
12614   ;;
12615
12616 cygwin* | mingw* | pw32*)
12617   version_type=windows
12618   shrext_cmds=".dll"
12619   need_version=no
12620   need_lib_prefix=no
12621
12622   case $GCC,$host_os in
12623   yes,cygwin* | yes,mingw* | yes,pw32*)
12624     library_names_spec='$libname.dll.a'
12625     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12626     postinstall_cmds='base_file=`basename \${file}`~
12627       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12628       dldir=$destdir/`dirname \$dlpath`~
12629       test -d \$dldir || mkdir -p \$dldir~
12630       $install_prog $dir/$dlname \$dldir/$dlname~
12631       chmod a+x \$dldir/$dlname'
12632     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12633       dlpath=$dir/\$dldll~
12634        $rm \$dlpath'
12635     shlibpath_overrides_runpath=yes
12636
12637     case $host_os in
12638     cygwin*)
12639       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12640       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12641       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12642       ;;
12643     mingw*)
12644       # MinGW DLLs use traditional 'lib' prefix
12645       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12646       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12647       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12648         # It is most probably a Windows format PATH printed by
12649         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12650         # path with ; separators, and with drive letters. We can handle the
12651         # drive letters (cygwin fileutils understands them), so leave them,
12652         # especially as we might pass files found there to a mingw objdump,
12653         # which wouldn't understand a cygwinified path. Ahh.
12654         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12655       else
12656         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12657       fi
12658       ;;
12659     pw32*)
12660       # pw32 DLLs use 'pw' prefix rather than 'lib'
12661       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12662       ;;
12663     esac
12664     ;;
12665
12666   linux*)
12667     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12668       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669       supports_anon_versioning=no
12670       case `$LD -v 2>/dev/null` in
12671         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12672         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12673         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12674         *\ 2.11.*) ;; # other 2.11 versions
12675         *) supports_anon_versioning=yes ;;
12676       esac
12677       if test $supports_anon_versioning = yes; then
12678         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12679 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12680 $echo "local: *; };" >> $output_objdir/$libname.ver~
12681         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12682       else
12683         $archive_expsym_cmds="$archive_cmds"
12684       fi
12685     else
12686       ld_shlibs=no
12687     fi
12688     ;;
12689
12690   *)
12691     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12692     ;;
12693   esac
12694   dynamic_linker='Win32 ld.exe'
12695   # FIXME: first we should search . and the directory the executable is in
12696   shlibpath_var=PATH
12697   ;;
12698
12699 darwin* | rhapsody*)
12700   dynamic_linker="$host_os dyld"
12701   version_type=darwin
12702   need_lib_prefix=no
12703   need_version=no
12704   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12705   soname_spec='${libname}${release}${major}$shared_ext'
12706   shlibpath_overrides_runpath=yes
12707   shlibpath_var=DYLD_LIBRARY_PATH
12708   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12709   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12710   if test "$GCC" = yes; then
12711     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12712   else
12713     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12714   fi
12715   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12716   ;;
12717
12718 dgux*)
12719   version_type=linux
12720   need_lib_prefix=no
12721   need_version=no
12722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12723   soname_spec='${libname}${release}${shared_ext}$major'
12724   shlibpath_var=LD_LIBRARY_PATH
12725   ;;
12726
12727 freebsd1*)
12728   dynamic_linker=no
12729   ;;
12730
12731 kfreebsd*-gnu)
12732   version_type=linux
12733   need_lib_prefix=no
12734   need_version=no
12735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12736   soname_spec='${libname}${release}${shared_ext}$major'
12737   shlibpath_var=LD_LIBRARY_PATH
12738   shlibpath_overrides_runpath=no
12739   hardcode_into_libs=yes
12740   dynamic_linker='GNU ld.so'
12741   ;;
12742
12743 freebsd* | dragonfly*)
12744   # DragonFly does not have aout.  When/if they implement a new
12745   # versioning mechanism, adjust this.
12746   if test -x /usr/bin/objformat; then
12747     objformat=`/usr/bin/objformat`
12748   else
12749     case $host_os in
12750     freebsd[123]*) objformat=aout ;;
12751     *) objformat=elf ;;
12752     esac
12753   fi
12754   # Handle Gentoo/FreeBSD as it was Linux
12755   case $host_vendor in
12756     gentoo)
12757       version_type=linux ;;
12758     *)
12759       version_type=freebsd-$objformat ;;
12760   esac
12761
12762   case $version_type in
12763     freebsd-elf*)
12764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12765       need_version=no
12766       need_lib_prefix=no
12767       ;;
12768     freebsd-*)
12769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12770       need_version=yes
12771       ;;
12772     linux)
12773       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12774       soname_spec='${libname}${release}${shared_ext}$major'
12775       need_lib_prefix=no
12776       need_version=no
12777       ;;
12778   esac
12779   shlibpath_var=LD_LIBRARY_PATH
12780   case $host_os in
12781   freebsd2*)
12782     shlibpath_overrides_runpath=yes
12783     ;;
12784   freebsd3.[01]* | freebsdelf3.[01]*)
12785     shlibpath_overrides_runpath=yes
12786     hardcode_into_libs=yes
12787     ;;
12788   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12789   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12790     shlibpath_overrides_runpath=no
12791     hardcode_into_libs=yes
12792     ;;
12793   freebsd*) # from 4.6 on
12794     shlibpath_overrides_runpath=yes
12795     hardcode_into_libs=yes
12796     ;;
12797   esac
12798   ;;
12799
12800 gnu*)
12801   version_type=linux
12802   need_lib_prefix=no
12803   need_version=no
12804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12805   soname_spec='${libname}${release}${shared_ext}$major'
12806   shlibpath_var=LD_LIBRARY_PATH
12807   hardcode_into_libs=yes
12808   ;;
12809
12810 hpux9* | hpux10* | hpux11*)
12811   # Give a soname corresponding to the major version so that dld.sl refuses to
12812   # link against other versions.
12813   version_type=sunos
12814   need_lib_prefix=no
12815   need_version=no
12816   case $host_cpu in
12817   ia64*)
12818     shrext_cmds='.so'
12819     hardcode_into_libs=yes
12820     dynamic_linker="$host_os dld.so"
12821     shlibpath_var=LD_LIBRARY_PATH
12822     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12823     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12824     soname_spec='${libname}${release}${shared_ext}$major'
12825     if test "X$HPUX_IA64_MODE" = X32; then
12826       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12827     else
12828       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12829     fi
12830     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12831     ;;
12832    hppa*64*)
12833      shrext_cmds='.sl'
12834      hardcode_into_libs=yes
12835      dynamic_linker="$host_os dld.sl"
12836      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12837      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12838      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12839      soname_spec='${libname}${release}${shared_ext}$major'
12840      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12841      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12842      ;;
12843    *)
12844     shrext_cmds='.sl'
12845     dynamic_linker="$host_os dld.sl"
12846     shlibpath_var=SHLIB_PATH
12847     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12849     soname_spec='${libname}${release}${shared_ext}$major'
12850     ;;
12851   esac
12852   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12853   postinstall_cmds='chmod 555 $lib'
12854   ;;
12855
12856 interix3*)
12857   version_type=linux
12858   need_lib_prefix=no
12859   need_version=no
12860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12861   soname_spec='${libname}${release}${shared_ext}$major'
12862   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12863   shlibpath_var=LD_LIBRARY_PATH
12864   shlibpath_overrides_runpath=no
12865   hardcode_into_libs=yes
12866   ;;
12867
12868 irix5* | irix6* | nonstopux*)
12869   case $host_os in
12870     nonstopux*) version_type=nonstopux ;;
12871     *)
12872         if test "$lt_cv_prog_gnu_ld" = yes; then
12873                 version_type=linux
12874         else
12875                 version_type=irix
12876         fi ;;
12877   esac
12878   need_lib_prefix=no
12879   need_version=no
12880   soname_spec='${libname}${release}${shared_ext}$major'
12881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12882   case $host_os in
12883   irix5* | nonstopux*)
12884     libsuff= shlibsuff=
12885     ;;
12886   *)
12887     case $LD in # libtool.m4 will add one of these switches to LD
12888     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12889       libsuff= shlibsuff= libmagic=32-bit;;
12890     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12891       libsuff=32 shlibsuff=N32 libmagic=N32;;
12892     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12893       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12894     *) libsuff= shlibsuff= libmagic=never-match;;
12895     esac
12896     ;;
12897   esac
12898   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12899   shlibpath_overrides_runpath=no
12900   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12901   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12902   hardcode_into_libs=yes
12903   ;;
12904
12905 # No shared lib support for Linux oldld, aout, or coff.
12906 linux*oldld* | linux*aout* | linux*coff*)
12907   dynamic_linker=no
12908   ;;
12909
12910 # This must be Linux ELF.
12911 linux*)
12912   version_type=linux
12913   need_lib_prefix=no
12914   need_version=no
12915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12916   soname_spec='${libname}${release}${shared_ext}$major'
12917   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12918   shlibpath_var=LD_LIBRARY_PATH
12919   shlibpath_overrides_runpath=no
12920   # This implies no fast_install, which is unacceptable.
12921   # Some rework will be needed to allow for fast_install
12922   # before this can be enabled.
12923   hardcode_into_libs=yes
12924
12925   # Append ld.so.conf contents to the search path
12926   if test -f /etc/ld.so.conf; then
12927     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12928     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12929   fi
12930
12931   # We used to test for /lib/ld.so.1 and disable shared libraries on
12932   # powerpc, because MkLinux only supported shared libraries with the
12933   # GNU dynamic linker.  Since this was broken with cross compilers,
12934   # most powerpc-linux boxes support dynamic linking these days and
12935   # people can always --disable-shared, the test was removed, and we
12936   # assume the GNU/Linux dynamic linker is in use.
12937   dynamic_linker='GNU/Linux ld.so'
12938   ;;
12939
12940 knetbsd*-gnu)
12941   version_type=linux
12942   need_lib_prefix=no
12943   need_version=no
12944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12945   soname_spec='${libname}${release}${shared_ext}$major'
12946   shlibpath_var=LD_LIBRARY_PATH
12947   shlibpath_overrides_runpath=no
12948   hardcode_into_libs=yes
12949   dynamic_linker='GNU ld.so'
12950   ;;
12951
12952 netbsd*)
12953   version_type=sunos
12954   need_lib_prefix=no
12955   need_version=no
12956   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12958     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12959     dynamic_linker='NetBSD (a.out) ld.so'
12960   else
12961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12962     soname_spec='${libname}${release}${shared_ext}$major'
12963     dynamic_linker='NetBSD ld.elf_so'
12964   fi
12965   shlibpath_var=LD_LIBRARY_PATH
12966   shlibpath_overrides_runpath=yes
12967   hardcode_into_libs=yes
12968   ;;
12969
12970 newsos6)
12971   version_type=linux
12972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12973   shlibpath_var=LD_LIBRARY_PATH
12974   shlibpath_overrides_runpath=yes
12975   ;;
12976
12977 nto-qnx*)
12978   version_type=linux
12979   need_lib_prefix=no
12980   need_version=no
12981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12982   soname_spec='${libname}${release}${shared_ext}$major'
12983   shlibpath_var=LD_LIBRARY_PATH
12984   shlibpath_overrides_runpath=yes
12985   ;;
12986
12987 openbsd*)
12988   version_type=sunos
12989   sys_lib_dlsearch_path_spec="/usr/lib"
12990   need_lib_prefix=no
12991   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12992   case $host_os in
12993     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12994     *)                         need_version=no  ;;
12995   esac
12996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12997   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12998   shlibpath_var=LD_LIBRARY_PATH
12999   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13000     case $host_os in
13001       openbsd2.[89] | openbsd2.[89].*)
13002         shlibpath_overrides_runpath=no
13003         ;;
13004       *)
13005         shlibpath_overrides_runpath=yes
13006         ;;
13007       esac
13008   else
13009     shlibpath_overrides_runpath=yes
13010   fi
13011   ;;
13012
13013 os2*)
13014   libname_spec='$name'
13015   shrext_cmds=".dll"
13016   need_lib_prefix=no
13017   library_names_spec='$libname${shared_ext} $libname.a'
13018   dynamic_linker='OS/2 ld.exe'
13019   shlibpath_var=LIBPATH
13020   ;;
13021
13022 osf3* | osf4* | osf5*)
13023   version_type=osf
13024   need_lib_prefix=no
13025   need_version=no
13026   soname_spec='${libname}${release}${shared_ext}$major'
13027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028   shlibpath_var=LD_LIBRARY_PATH
13029   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13030   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13031   ;;
13032
13033 solaris*)
13034   version_type=linux
13035   need_lib_prefix=no
13036   need_version=no
13037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038   soname_spec='${libname}${release}${shared_ext}$major'
13039   shlibpath_var=LD_LIBRARY_PATH
13040   shlibpath_overrides_runpath=yes
13041   hardcode_into_libs=yes
13042   # ldd complains unless libraries are executable
13043   postinstall_cmds='chmod +x $lib'
13044   ;;
13045
13046 sunos4*)
13047   version_type=sunos
13048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13049   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13050   shlibpath_var=LD_LIBRARY_PATH
13051   shlibpath_overrides_runpath=yes
13052   if test "$with_gnu_ld" = yes; then
13053     need_lib_prefix=no
13054   fi
13055   need_version=yes
13056   ;;
13057
13058 sysv4 | sysv4.3*)
13059   version_type=linux
13060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13061   soname_spec='${libname}${release}${shared_ext}$major'
13062   shlibpath_var=LD_LIBRARY_PATH
13063   case $host_vendor in
13064     sni)
13065       shlibpath_overrides_runpath=no
13066       need_lib_prefix=no
13067       export_dynamic_flag_spec='${wl}-Blargedynsym'
13068       runpath_var=LD_RUN_PATH
13069       ;;
13070     siemens)
13071       need_lib_prefix=no
13072       ;;
13073     motorola)
13074       need_lib_prefix=no
13075       need_version=no
13076       shlibpath_overrides_runpath=no
13077       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13078       ;;
13079   esac
13080   ;;
13081
13082 sysv4*MP*)
13083   if test -d /usr/nec ;then
13084     version_type=linux
13085     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13086     soname_spec='$libname${shared_ext}.$major'
13087     shlibpath_var=LD_LIBRARY_PATH
13088   fi
13089   ;;
13090
13091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13092   version_type=freebsd-elf
13093   need_lib_prefix=no
13094   need_version=no
13095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13096   soname_spec='${libname}${release}${shared_ext}$major'
13097   shlibpath_var=LD_LIBRARY_PATH
13098   hardcode_into_libs=yes
13099   if test "$with_gnu_ld" = yes; then
13100     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13101     shlibpath_overrides_runpath=no
13102   else
13103     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13104     shlibpath_overrides_runpath=yes
13105     case $host_os in
13106       sco3.2v5*)
13107         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13108         ;;
13109     esac
13110   fi
13111   sys_lib_dlsearch_path_spec='/usr/lib'
13112   ;;
13113
13114 uts4*)
13115   version_type=linux
13116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13117   soname_spec='${libname}${release}${shared_ext}$major'
13118   shlibpath_var=LD_LIBRARY_PATH
13119   ;;
13120
13121 *)
13122   dynamic_linker=no
13123   ;;
13124 esac
13125 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13126 echo "${ECHO_T}$dynamic_linker" >&6; }
13127 test "$dynamic_linker" = no && can_build_shared=no
13128
13129 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13130 if test "$GCC" = yes; then
13131   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13132 fi
13133
13134 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13135 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13136 hardcode_action_CXX=
13137 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13138    test -n "$runpath_var_CXX" || \
13139    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13140
13141   # We can hardcode non-existant directories.
13142   if test "$hardcode_direct_CXX" != no &&
13143      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13144      # have to relink, otherwise we might link with an installed library
13145      # when we should be linking with a yet-to-be-installed one
13146      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13147      test "$hardcode_minus_L_CXX" != no; then
13148     # Linking always hardcodes the temporary library directory.
13149     hardcode_action_CXX=relink
13150   else
13151     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13152     hardcode_action_CXX=immediate
13153   fi
13154 else
13155   # We cannot hardcode anything, or else we can only hardcode existing
13156   # directories.
13157   hardcode_action_CXX=unsupported
13158 fi
13159 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13160 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13161
13162 if test "$hardcode_action_CXX" = relink; then
13163   # Fast installation is not supported
13164   enable_fast_install=no
13165 elif test "$shlibpath_overrides_runpath" = yes ||
13166      test "$enable_shared" = no; then
13167   # Fast installation is not necessary
13168   enable_fast_install=needless
13169 fi
13170
13171
13172 # The else clause should only fire when bootstrapping the
13173 # libtool distribution, otherwise you forgot to ship ltmain.sh
13174 # with your package, and you will get complaints that there are
13175 # no rules to generate ltmain.sh.
13176 if test -f "$ltmain"; then
13177   # See if we are running on zsh, and set the options which allow our commands through
13178   # without removal of \ escapes.
13179   if test -n "${ZSH_VERSION+set}" ; then
13180     setopt NO_GLOB_SUBST
13181   fi
13182   # Now quote all the things that may contain metacharacters while being
13183   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13184   # variables and quote the copies for generation of the libtool script.
13185   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13186     SED SHELL STRIP \
13187     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13188     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13189     deplibs_check_method reload_flag reload_cmds need_locks \
13190     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13191     lt_cv_sys_global_symbol_to_c_name_address \
13192     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13193     old_postinstall_cmds old_postuninstall_cmds \
13194     compiler_CXX \
13195     CC_CXX \
13196     LD_CXX \
13197     lt_prog_compiler_wl_CXX \
13198     lt_prog_compiler_pic_CXX \
13199     lt_prog_compiler_static_CXX \
13200     lt_prog_compiler_no_builtin_flag_CXX \
13201     export_dynamic_flag_spec_CXX \
13202     thread_safe_flag_spec_CXX \
13203     whole_archive_flag_spec_CXX \
13204     enable_shared_with_static_runtimes_CXX \
13205     old_archive_cmds_CXX \
13206     old_archive_from_new_cmds_CXX \
13207     predep_objects_CXX \
13208     postdep_objects_CXX \
13209     predeps_CXX \
13210     postdeps_CXX \
13211     compiler_lib_search_path_CXX \
13212     archive_cmds_CXX \
13213     archive_expsym_cmds_CXX \
13214     postinstall_cmds_CXX \
13215     postuninstall_cmds_CXX \
13216     old_archive_from_expsyms_cmds_CXX \
13217     allow_undefined_flag_CXX \
13218     no_undefined_flag_CXX \
13219     export_symbols_cmds_CXX \
13220     hardcode_libdir_flag_spec_CXX \
13221     hardcode_libdir_flag_spec_ld_CXX \
13222     hardcode_libdir_separator_CXX \
13223     hardcode_automatic_CXX \
13224     module_cmds_CXX \
13225     module_expsym_cmds_CXX \
13226     lt_cv_prog_compiler_c_o_CXX \
13227     exclude_expsyms_CXX \
13228     include_expsyms_CXX; do
13229
13230     case $var in
13231     old_archive_cmds_CXX | \
13232     old_archive_from_new_cmds_CXX | \
13233     archive_cmds_CXX | \
13234     archive_expsym_cmds_CXX | \
13235     module_cmds_CXX | \
13236     module_expsym_cmds_CXX | \
13237     old_archive_from_expsyms_cmds_CXX | \
13238     export_symbols_cmds_CXX | \
13239     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13240     postinstall_cmds | postuninstall_cmds | \
13241     old_postinstall_cmds | old_postuninstall_cmds | \
13242     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13243       # Double-quote double-evaled strings.
13244       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13245       ;;
13246     *)
13247       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13248       ;;
13249     esac
13250   done
13251
13252   case $lt_echo in
13253   *'\$0 --fallback-echo"')
13254     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13255     ;;
13256   esac
13257
13258 cfgfile="$ofile"
13259
13260   cat <<__EOF__ >> "$cfgfile"
13261 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13262
13263 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13264
13265 # Shell to use when invoking shell scripts.
13266 SHELL=$lt_SHELL
13267
13268 # Whether or not to build shared libraries.
13269 build_libtool_libs=$enable_shared
13270
13271 # Whether or not to build static libraries.
13272 build_old_libs=$enable_static
13273
13274 # Whether or not to add -lc for building shared libraries.
13275 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13276
13277 # Whether or not to disallow shared libs when runtime libs are static
13278 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13279
13280 # Whether or not to optimize for fast installation.
13281 fast_install=$enable_fast_install
13282
13283 # The host system.
13284 host_alias=$host_alias
13285 host=$host
13286 host_os=$host_os
13287
13288 # The build system.
13289 build_alias=$build_alias
13290 build=$build
13291 build_os=$build_os
13292
13293 # An echo program that does not interpret backslashes.
13294 echo=$lt_echo
13295
13296 # The archiver.
13297 AR=$lt_AR
13298 AR_FLAGS=$lt_AR_FLAGS
13299
13300 # A C compiler.
13301 LTCC=$lt_LTCC
13302
13303 # LTCC compiler flags.
13304 LTCFLAGS=$lt_LTCFLAGS
13305
13306 # A language-specific compiler.
13307 CC=$lt_compiler_CXX
13308
13309 # Is the compiler the GNU C compiler?
13310 with_gcc=$GCC_CXX
13311
13312 # An ERE matcher.
13313 EGREP=$lt_EGREP
13314
13315 # The linker used to build libraries.
13316 LD=$lt_LD_CXX
13317
13318 # Whether we need hard or soft links.
13319 LN_S=$lt_LN_S
13320
13321 # A BSD-compatible nm program.
13322 NM=$lt_NM
13323
13324 # A symbol stripping program
13325 STRIP=$lt_STRIP
13326
13327 # Used to examine libraries when file_magic_cmd begins "file"
13328 MAGIC_CMD=$MAGIC_CMD
13329
13330 # Used on cygwin: DLL creation program.
13331 DLLTOOL="$DLLTOOL"
13332
13333 # Used on cygwin: object dumper.
13334 OBJDUMP="$OBJDUMP"
13335
13336 # Used on cygwin: assembler.
13337 AS="$AS"
13338
13339 # The name of the directory that contains temporary libtool files.
13340 objdir=$objdir
13341
13342 # How to create reloadable object files.
13343 reload_flag=$lt_reload_flag
13344 reload_cmds=$lt_reload_cmds
13345
13346 # How to pass a linker flag through the compiler.
13347 wl=$lt_lt_prog_compiler_wl_CXX
13348
13349 # Object file suffix (normally "o").
13350 objext="$ac_objext"
13351
13352 # Old archive suffix (normally "a").
13353 libext="$libext"
13354
13355 # Shared library suffix (normally ".so").
13356 shrext_cmds='$shrext_cmds'
13357
13358 # Executable file suffix (normally "").
13359 exeext="$exeext"
13360
13361 # Additional compiler flags for building library objects.
13362 pic_flag=$lt_lt_prog_compiler_pic_CXX
13363 pic_mode=$pic_mode
13364
13365 # What is the maximum length of a command?
13366 max_cmd_len=$lt_cv_sys_max_cmd_len
13367
13368 # Does compiler simultaneously support -c and -o options?
13369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13370
13371 # Must we lock files when doing compilation?
13372 need_locks=$lt_need_locks
13373
13374 # Do we need the lib prefix for modules?
13375 need_lib_prefix=$need_lib_prefix
13376
13377 # Do we need a version for libraries?
13378 need_version=$need_version
13379
13380 # Whether dlopen is supported.
13381 dlopen_support=$enable_dlopen
13382
13383 # Whether dlopen of programs is supported.
13384 dlopen_self=$enable_dlopen_self
13385
13386 # Whether dlopen of statically linked programs is supported.
13387 dlopen_self_static=$enable_dlopen_self_static
13388
13389 # Compiler flag to prevent dynamic linking.
13390 link_static_flag=$lt_lt_prog_compiler_static_CXX
13391
13392 # Compiler flag to turn off builtin functions.
13393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13394
13395 # Compiler flag to allow reflexive dlopens.
13396 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13397
13398 # Compiler flag to generate shared objects directly from archives.
13399 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13400
13401 # Compiler flag to generate thread-safe objects.
13402 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13403
13404 # Library versioning type.
13405 version_type=$version_type
13406
13407 # Format of library name prefix.
13408 libname_spec=$lt_libname_spec
13409
13410 # List of archive names.  First name is the real one, the rest are links.
13411 # The last name is the one that the linker finds with -lNAME.
13412 library_names_spec=$lt_library_names_spec
13413
13414 # The coded name of the library, if different from the real name.
13415 soname_spec=$lt_soname_spec
13416
13417 # Commands used to build and install an old-style archive.
13418 RANLIB=$lt_RANLIB
13419 old_archive_cmds=$lt_old_archive_cmds_CXX
13420 old_postinstall_cmds=$lt_old_postinstall_cmds
13421 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13422
13423 # Create an old-style archive from a shared archive.
13424 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13425
13426 # Create a temporary old-style archive to link instead of a shared archive.
13427 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13428
13429 # Commands used to build and install a shared archive.
13430 archive_cmds=$lt_archive_cmds_CXX
13431 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13432 postinstall_cmds=$lt_postinstall_cmds
13433 postuninstall_cmds=$lt_postuninstall_cmds
13434
13435 # Commands used to build a loadable module (assumed same as above if empty)
13436 module_cmds=$lt_module_cmds_CXX
13437 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13438
13439 # Commands to strip libraries.
13440 old_striplib=$lt_old_striplib
13441 striplib=$lt_striplib
13442
13443 # Dependencies to place before the objects being linked to create a
13444 # shared library.
13445 predep_objects=$lt_predep_objects_CXX
13446
13447 # Dependencies to place after the objects being linked to create a
13448 # shared library.
13449 postdep_objects=$lt_postdep_objects_CXX
13450
13451 # Dependencies to place before the objects being linked to create a
13452 # shared library.
13453 predeps=$lt_predeps_CXX
13454
13455 # Dependencies to place after the objects being linked to create a
13456 # shared library.
13457 postdeps=$lt_postdeps_CXX
13458
13459 # The library search path used internally by the compiler when linking
13460 # a shared library.
13461 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13462
13463 # Method to check whether dependent libraries are shared objects.
13464 deplibs_check_method=$lt_deplibs_check_method
13465
13466 # Command to use when deplibs_check_method == file_magic.
13467 file_magic_cmd=$lt_file_magic_cmd
13468
13469 # Flag that allows shared libraries with undefined symbols to be built.
13470 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13471
13472 # Flag that forces no undefined symbols.
13473 no_undefined_flag=$lt_no_undefined_flag_CXX
13474
13475 # Commands used to finish a libtool library installation in a directory.
13476 finish_cmds=$lt_finish_cmds
13477
13478 # Same as above, but a single script fragment to be evaled but not shown.
13479 finish_eval=$lt_finish_eval
13480
13481 # Take the output of nm and produce a listing of raw symbols and C names.
13482 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13483
13484 # Transform the output of nm in a proper C declaration
13485 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13486
13487 # Transform the output of nm in a C name address pair
13488 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13489
13490 # This is the shared library runtime path variable.
13491 runpath_var=$runpath_var
13492
13493 # This is the shared library path variable.
13494 shlibpath_var=$shlibpath_var
13495
13496 # Is shlibpath searched before the hard-coded library search path?
13497 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13498
13499 # How to hardcode a shared library path into an executable.
13500 hardcode_action=$hardcode_action_CXX
13501
13502 # Whether we should hardcode library paths into libraries.
13503 hardcode_into_libs=$hardcode_into_libs
13504
13505 # Flag to hardcode \$libdir into a binary during linking.
13506 # This must work even if \$libdir does not exist.
13507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13508
13509 # If ld is used when linking, flag to hardcode \$libdir into
13510 # a binary during linking. This must work even if \$libdir does
13511 # not exist.
13512 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13513
13514 # Whether we need a single -rpath flag with a separated argument.
13515 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13516
13517 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13518 # resulting binary.
13519 hardcode_direct=$hardcode_direct_CXX
13520
13521 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13522 # resulting binary.
13523 hardcode_minus_L=$hardcode_minus_L_CXX
13524
13525 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13526 # the resulting binary.
13527 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13528
13529 # Set to yes if building a shared library automatically hardcodes DIR into the library
13530 # and all subsequent libraries and executables linked against it.
13531 hardcode_automatic=$hardcode_automatic_CXX
13532
13533 # Variables whose values should be saved in libtool wrapper scripts and
13534 # restored at relink time.
13535 variables_saved_for_relink="$variables_saved_for_relink"
13536
13537 # Whether libtool must link a program against all its dependency libraries.
13538 link_all_deplibs=$link_all_deplibs_CXX
13539
13540 # Compile-time system search path for libraries
13541 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13542
13543 # Run-time system search path for libraries
13544 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13545
13546 # Fix the shell variable \$srcfile for the compiler.
13547 fix_srcfile_path="$fix_srcfile_path_CXX"
13548
13549 # Set to yes if exported symbols are required.
13550 always_export_symbols=$always_export_symbols_CXX
13551
13552 # The commands to list exported symbols.
13553 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13554
13555 # The commands to extract the exported symbol list from a shared archive.
13556 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13557
13558 # Symbols that should not be listed in the preloaded symbols.
13559 exclude_expsyms=$lt_exclude_expsyms_CXX
13560
13561 # Symbols that must always be exported.
13562 include_expsyms=$lt_include_expsyms_CXX
13563
13564 # ### END LIBTOOL TAG CONFIG: $tagname
13565
13566 __EOF__
13567
13568
13569 else
13570   # If there is no Makefile yet, we rely on a make rule to execute
13571   # `config.status --recheck' to rerun these tests and create the
13572   # libtool script then.
13573   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13574   if test -f "$ltmain_in"; then
13575     test -f Makefile && make "$ltmain"
13576   fi
13577 fi
13578
13579
13580 ac_ext=c
13581 ac_cpp='$CPP $CPPFLAGS'
13582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13585
13586 CC=$lt_save_CC
13587 LDCXX=$LD
13588 LD=$lt_save_LD
13589 GCC=$lt_save_GCC
13590 with_gnu_ldcxx=$with_gnu_ld
13591 with_gnu_ld=$lt_save_with_gnu_ld
13592 lt_cv_path_LDCXX=$lt_cv_path_LD
13593 lt_cv_path_LD=$lt_save_path_LD
13594 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13595 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13596
13597         else
13598           tagname=""
13599         fi
13600         ;;
13601
13602       F77)
13603         if test -n "$F77" && test "X$F77" != "Xno"; then
13604           
13605 ac_ext=f
13606 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13607 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13608 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13609
13610
13611 archive_cmds_need_lc_F77=no
13612 allow_undefined_flag_F77=
13613 always_export_symbols_F77=no
13614 archive_expsym_cmds_F77=
13615 export_dynamic_flag_spec_F77=
13616 hardcode_direct_F77=no
13617 hardcode_libdir_flag_spec_F77=
13618 hardcode_libdir_flag_spec_ld_F77=
13619 hardcode_libdir_separator_F77=
13620 hardcode_minus_L_F77=no
13621 hardcode_automatic_F77=no
13622 module_cmds_F77=
13623 module_expsym_cmds_F77=
13624 link_all_deplibs_F77=unknown
13625 old_archive_cmds_F77=$old_archive_cmds
13626 no_undefined_flag_F77=
13627 whole_archive_flag_spec_F77=
13628 enable_shared_with_static_runtimes_F77=no
13629
13630 # Source file extension for f77 test sources.
13631 ac_ext=f
13632
13633 # Object file extension for compiled f77 test sources.
13634 objext=o
13635 objext_F77=$objext
13636
13637 # Code to be used in simple compile tests
13638 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13639
13640 # Code to be used in simple link tests
13641 lt_simple_link_test_code="      program t\n      end\n"
13642
13643 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13644
13645 # If no C compiler was specified, use CC.
13646 LTCC=${LTCC-"$CC"}
13647
13648 # If no C compiler flags were specified, use CFLAGS.
13649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13650
13651 # Allow CC to be a program name with arguments.
13652 compiler=$CC
13653
13654
13655 # save warnings/boilerplate of simple test code
13656 ac_outfile=conftest.$ac_objext
13657 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13659 _lt_compiler_boilerplate=`cat conftest.err`
13660 $rm conftest*
13661
13662 ac_outfile=conftest.$ac_objext
13663 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13665 _lt_linker_boilerplate=`cat conftest.err`
13666 $rm conftest*
13667
13668
13669 # Allow CC to be a program name with arguments.
13670 lt_save_CC="$CC"
13671 CC=${F77-"f77"}
13672 compiler=$CC
13673 compiler_F77=$CC
13674 for cc_temp in $compiler""; do
13675   case $cc_temp in
13676     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13677     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13678     \-*) ;;
13679     *) break;;
13680   esac
13681 done
13682 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13683
13684
13685 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13686 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13687 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13688 echo "${ECHO_T}$can_build_shared" >&6; }
13689
13690 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13691 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13692 test "$can_build_shared" = "no" && enable_shared=no
13693
13694 # On AIX, shared libraries and static libraries use the same namespace, and
13695 # are all built from PIC.
13696 case $host_os in
13697 aix3*)
13698   test "$enable_shared" = yes && enable_static=no
13699   if test -n "$RANLIB"; then
13700     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13701     postinstall_cmds='$RANLIB $lib'
13702   fi
13703   ;;
13704 aix4* | aix5*)
13705   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13706     test "$enable_shared" = yes && enable_static=no
13707   fi
13708   ;;
13709 esac
13710 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13711 echo "${ECHO_T}$enable_shared" >&6; }
13712
13713 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13714 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13715 # Make sure either enable_shared or enable_static is yes.
13716 test "$enable_shared" = yes || enable_static=yes
13717 { echo "$as_me:$LINENO: result: $enable_static" >&5
13718 echo "${ECHO_T}$enable_static" >&6; }
13719
13720 GCC_F77="$G77"
13721 LD_F77="$LD"
13722
13723 lt_prog_compiler_wl_F77=
13724 lt_prog_compiler_pic_F77=
13725 lt_prog_compiler_static_F77=
13726
13727 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13728 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13729  
13730   if test "$GCC" = yes; then
13731     lt_prog_compiler_wl_F77='-Wl,'
13732     lt_prog_compiler_static_F77='-static'
13733
13734     case $host_os in
13735       aix*)
13736       # All AIX code is PIC.
13737       if test "$host_cpu" = ia64; then
13738         # AIX 5 now supports IA64 processor
13739         lt_prog_compiler_static_F77='-Bstatic'
13740       fi
13741       ;;
13742
13743     amigaos*)
13744       # FIXME: we need at least 68020 code to build shared libraries, but
13745       # adding the `-m68020' flag to GCC prevents building anything better,
13746       # like `-m68040'.
13747       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13748       ;;
13749
13750     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13751       # PIC is the default for these OSes.
13752       ;;
13753
13754     mingw* | pw32* | os2*)
13755       # This hack is so that the source file can tell whether it is being
13756       # built for inclusion in a dll (and should export symbols for example).
13757       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13758       ;;
13759
13760     darwin* | rhapsody*)
13761       # PIC is the default on this platform
13762       # Common symbols not allowed in MH_DYLIB files
13763       lt_prog_compiler_pic_F77='-fno-common'
13764       ;;
13765
13766     interix3*)
13767       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13768       # Instead, we relocate shared libraries at runtime.
13769       ;;
13770
13771     msdosdjgpp*)
13772       # Just because we use GCC doesn't mean we suddenly get shared libraries
13773       # on systems that don't support them.
13774       lt_prog_compiler_can_build_shared_F77=no
13775       enable_shared=no
13776       ;;
13777
13778     sysv4*MP*)
13779       if test -d /usr/nec; then
13780         lt_prog_compiler_pic_F77=-Kconform_pic
13781       fi
13782       ;;
13783
13784     hpux*)
13785       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13786       # not for PA HP-UX.
13787       case $host_cpu in
13788       hppa*64*|ia64*)
13789         # +Z the default
13790         ;;
13791       *)
13792         lt_prog_compiler_pic_F77='-fPIC'
13793         ;;
13794       esac
13795       ;;
13796
13797     *)
13798       lt_prog_compiler_pic_F77='-fPIC'
13799       ;;
13800     esac
13801   else
13802     # PORTME Check for flag to pass linker flags through the system compiler.
13803     case $host_os in
13804     aix*)
13805       lt_prog_compiler_wl_F77='-Wl,'
13806       if test "$host_cpu" = ia64; then
13807         # AIX 5 now supports IA64 processor
13808         lt_prog_compiler_static_F77='-Bstatic'
13809       else
13810         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13811       fi
13812       ;;
13813       darwin*)
13814         # PIC is the default on this platform
13815         # Common symbols not allowed in MH_DYLIB files
13816        case $cc_basename in
13817          xlc*)
13818          lt_prog_compiler_pic_F77='-qnocommon'
13819          lt_prog_compiler_wl_F77='-Wl,'
13820          ;;
13821        esac
13822        ;;
13823
13824     mingw* | pw32* | os2*)
13825       # This hack is so that the source file can tell whether it is being
13826       # built for inclusion in a dll (and should export symbols for example).
13827       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13828       ;;
13829
13830     hpux9* | hpux10* | hpux11*)
13831       lt_prog_compiler_wl_F77='-Wl,'
13832       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13833       # not for PA HP-UX.
13834       case $host_cpu in
13835       hppa*64*|ia64*)
13836         # +Z the default
13837         ;;
13838       *)
13839         lt_prog_compiler_pic_F77='+Z'
13840         ;;
13841       esac
13842       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13843       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13844       ;;
13845
13846     irix5* | irix6* | nonstopux*)
13847       lt_prog_compiler_wl_F77='-Wl,'
13848       # PIC (with -KPIC) is the default.
13849       lt_prog_compiler_static_F77='-non_shared'
13850       ;;
13851
13852     newsos6)
13853       lt_prog_compiler_pic_F77='-KPIC'
13854       lt_prog_compiler_static_F77='-Bstatic'
13855       ;;
13856
13857     linux*)
13858       case $cc_basename in
13859       icc* | ecc*)
13860         lt_prog_compiler_wl_F77='-Wl,'
13861         lt_prog_compiler_pic_F77='-KPIC'
13862         lt_prog_compiler_static_F77='-static'
13863         ;;
13864       pgcc* | pgf77* | pgf90* | pgf95*)
13865         # Portland Group compilers (*not* the Pentium gcc compiler,
13866         # which looks to be a dead project)
13867         lt_prog_compiler_wl_F77='-Wl,'
13868         lt_prog_compiler_pic_F77='-fpic'
13869         lt_prog_compiler_static_F77='-Bstatic'
13870         ;;
13871       ccc*)
13872         lt_prog_compiler_wl_F77='-Wl,'
13873         # All Alpha code is PIC.
13874         lt_prog_compiler_static_F77='-non_shared'
13875         ;;
13876       esac
13877       ;;
13878
13879     osf3* | osf4* | osf5*)
13880       lt_prog_compiler_wl_F77='-Wl,'
13881       # All OSF/1 code is PIC.
13882       lt_prog_compiler_static_F77='-non_shared'
13883       ;;
13884
13885     solaris*)
13886       lt_prog_compiler_pic_F77='-KPIC'
13887       lt_prog_compiler_static_F77='-Bstatic'
13888       case $cc_basename in
13889       f77* | f90* | f95*)
13890         lt_prog_compiler_wl_F77='-Qoption ld ';;
13891       *)
13892         lt_prog_compiler_wl_F77='-Wl,';;
13893       esac
13894       ;;
13895
13896     sunos4*)
13897       lt_prog_compiler_wl_F77='-Qoption ld '
13898       lt_prog_compiler_pic_F77='-PIC'
13899       lt_prog_compiler_static_F77='-Bstatic'
13900       ;;
13901
13902     sysv4 | sysv4.2uw2* | sysv4.3*)
13903       lt_prog_compiler_wl_F77='-Wl,'
13904       lt_prog_compiler_pic_F77='-KPIC'
13905       lt_prog_compiler_static_F77='-Bstatic'
13906       ;;
13907
13908     sysv4*MP*)
13909       if test -d /usr/nec ;then
13910         lt_prog_compiler_pic_F77='-Kconform_pic'
13911         lt_prog_compiler_static_F77='-Bstatic'
13912       fi
13913       ;;
13914
13915     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13916       lt_prog_compiler_wl_F77='-Wl,'
13917       lt_prog_compiler_pic_F77='-KPIC'
13918       lt_prog_compiler_static_F77='-Bstatic'
13919       ;;
13920
13921     unicos*)
13922       lt_prog_compiler_wl_F77='-Wl,'
13923       lt_prog_compiler_can_build_shared_F77=no
13924       ;;
13925
13926     uts4*)
13927       lt_prog_compiler_pic_F77='-pic'
13928       lt_prog_compiler_static_F77='-Bstatic'
13929       ;;
13930
13931     *)
13932       lt_prog_compiler_can_build_shared_F77=no
13933       ;;
13934     esac
13935   fi
13936
13937 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13938 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13939
13940 #
13941 # Check to make sure the PIC flag actually works.
13942 #
13943 if test -n "$lt_prog_compiler_pic_F77"; then
13944   
13945 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13946 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13947 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13948   echo $ECHO_N "(cached) $ECHO_C" >&6
13949 else
13950   lt_prog_compiler_pic_works_F77=no
13951   ac_outfile=conftest.$ac_objext
13952    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13953    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13954    # Insert the option either (1) after the last *FLAGS variable, or
13955    # (2) before a word containing "conftest.", or (3) at the end.
13956    # Note that $ac_compile itself does not contain backslashes and begins
13957    # with a dollar sign (not a hyphen), so the echo should work correctly.
13958    # The option is referenced via a variable to avoid confusing sed.
13959    lt_compile=`echo "$ac_compile" | $SED \
13960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13962    -e 's:$: $lt_compiler_flag:'`
13963    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13964    (eval "$lt_compile" 2>conftest.err)
13965    ac_status=$?
13966    cat conftest.err >&5
13967    echo "$as_me:__oline__: \$? = $ac_status" >&5
13968    if (exit $ac_status) && test -s "$ac_outfile"; then
13969      # The compiler can only warn and ignore the option if not recognized
13970      # So say no if there are warnings other than the usual output.
13971      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13972      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13974        lt_prog_compiler_pic_works_F77=yes
13975      fi
13976    fi
13977    $rm conftest*
13978
13979 fi
13980 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13981 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13982
13983 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13984     case $lt_prog_compiler_pic_F77 in
13985      "" | " "*) ;;
13986      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13987      esac
13988 else
13989     lt_prog_compiler_pic_F77=
13990      lt_prog_compiler_can_build_shared_F77=no
13991 fi
13992
13993 fi
13994 case $host_os in
13995   # For platforms which do not support PIC, -DPIC is meaningless:
13996   *djgpp*)
13997     lt_prog_compiler_pic_F77=
13998     ;;
13999   *)
14000     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14001     ;;
14002 esac
14003
14004 #
14005 # Check to make sure the static flag actually works.
14006 #
14007 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14008 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14009 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14010 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14011   echo $ECHO_N "(cached) $ECHO_C" >&6
14012 else
14013   lt_prog_compiler_static_works_F77=no
14014    save_LDFLAGS="$LDFLAGS"
14015    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14016    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14017    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14018      # The linker can only warn and ignore the option if not recognized
14019      # So say no if there are warnings
14020      if test -s conftest.err; then
14021        # Append any errors to the config.log.
14022        cat conftest.err 1>&5
14023        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14024        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14025        if diff conftest.exp conftest.er2 >/dev/null; then
14026          lt_prog_compiler_static_works_F77=yes
14027        fi
14028      else
14029        lt_prog_compiler_static_works_F77=yes
14030      fi
14031    fi
14032    $rm conftest*
14033    LDFLAGS="$save_LDFLAGS"
14034
14035 fi
14036 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14037 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14038
14039 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14040     :
14041 else
14042     lt_prog_compiler_static_F77=
14043 fi
14044
14045
14046 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14047 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14048 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   lt_cv_prog_compiler_c_o_F77=no
14052    $rm -r conftest 2>/dev/null
14053    mkdir conftest
14054    cd conftest
14055    mkdir out
14056    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14057
14058    lt_compiler_flag="-o out/conftest2.$ac_objext"
14059    # Insert the option either (1) after the last *FLAGS variable, or
14060    # (2) before a word containing "conftest.", or (3) at the end.
14061    # Note that $ac_compile itself does not contain backslashes and begins
14062    # with a dollar sign (not a hyphen), so the echo should work correctly.
14063    lt_compile=`echo "$ac_compile" | $SED \
14064    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14065    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14066    -e 's:$: $lt_compiler_flag:'`
14067    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14068    (eval "$lt_compile" 2>out/conftest.err)
14069    ac_status=$?
14070    cat out/conftest.err >&5
14071    echo "$as_me:__oline__: \$? = $ac_status" >&5
14072    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14073    then
14074      # The compiler can only warn and ignore the option if not recognized
14075      # So say no if there are warnings
14076      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14077      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14078      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14079        lt_cv_prog_compiler_c_o_F77=yes
14080      fi
14081    fi
14082    chmod u+w . 2>&5
14083    $rm conftest*
14084    # SGI C++ compiler will create directory out/ii_files/ for
14085    # template instantiation
14086    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14087    $rm out/* && rmdir out
14088    cd ..
14089    rmdir conftest
14090    $rm conftest*
14091
14092 fi
14093 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14094 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14095
14096
14097 hard_links="nottested"
14098 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14099   # do not overwrite the value of need_locks provided by the user
14100   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14101 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14102   hard_links=yes
14103   $rm conftest*
14104   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14105   touch conftest.a
14106   ln conftest.a conftest.b 2>&5 || hard_links=no
14107   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14108   { echo "$as_me:$LINENO: result: $hard_links" >&5
14109 echo "${ECHO_T}$hard_links" >&6; }
14110   if test "$hard_links" = no; then
14111     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14112 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14113     need_locks=warn
14114   fi
14115 else
14116   need_locks=no
14117 fi
14118
14119 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14120 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14121
14122   runpath_var=
14123   allow_undefined_flag_F77=
14124   enable_shared_with_static_runtimes_F77=no
14125   archive_cmds_F77=
14126   archive_expsym_cmds_F77=
14127   old_archive_From_new_cmds_F77=
14128   old_archive_from_expsyms_cmds_F77=
14129   export_dynamic_flag_spec_F77=
14130   whole_archive_flag_spec_F77=
14131   thread_safe_flag_spec_F77=
14132   hardcode_libdir_flag_spec_F77=
14133   hardcode_libdir_flag_spec_ld_F77=
14134   hardcode_libdir_separator_F77=
14135   hardcode_direct_F77=no
14136   hardcode_minus_L_F77=no
14137   hardcode_shlibpath_var_F77=unsupported
14138   link_all_deplibs_F77=unknown
14139   hardcode_automatic_F77=no
14140   module_cmds_F77=
14141   module_expsym_cmds_F77=
14142   always_export_symbols_F77=no
14143   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14144   # include_expsyms should be a list of space-separated symbols to be *always*
14145   # included in the symbol list
14146   include_expsyms_F77=
14147   # exclude_expsyms can be an extended regexp of symbols to exclude
14148   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14149   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14150   # as well as any symbol that contains `d'.
14151   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14152   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14153   # platforms (ab)use it in PIC code, but their linkers get confused if
14154   # the symbol is explicitly referenced.  Since portable code cannot
14155   # rely on this symbol name, it's probably fine to never include it in
14156   # preloaded symbol tables.
14157   extract_expsyms_cmds=
14158   # Just being paranoid about ensuring that cc_basename is set.
14159   for cc_temp in $compiler""; do
14160   case $cc_temp in
14161     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14162     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14163     \-*) ;;
14164     *) break;;
14165   esac
14166 done
14167 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14168
14169   case $host_os in
14170   cygwin* | mingw* | pw32*)
14171     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14172     # When not using gcc, we currently assume that we are using
14173     # Microsoft Visual C++.
14174     if test "$GCC" != yes; then
14175       with_gnu_ld=no
14176     fi
14177     ;;
14178   interix*)
14179     # we just hope/assume this is gcc and not c89 (= MSVC++)
14180     with_gnu_ld=yes
14181     ;;
14182   openbsd*)
14183     with_gnu_ld=no
14184     ;;
14185   esac
14186
14187   ld_shlibs_F77=yes
14188   if test "$with_gnu_ld" = yes; then
14189     # If archive_cmds runs LD, not CC, wlarc should be empty
14190     wlarc='${wl}'
14191
14192     # Set some defaults for GNU ld with shared library support. These
14193     # are reset later if shared libraries are not supported. Putting them
14194     # here allows them to be overridden if necessary.
14195     runpath_var=LD_RUN_PATH
14196     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14197     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14198     # ancient GNU ld didn't support --whole-archive et. al.
14199     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14200         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14201       else
14202         whole_archive_flag_spec_F77=
14203     fi
14204     supports_anon_versioning=no
14205     case `$LD -v 2>/dev/null` in
14206       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14207       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14208       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14209       *\ 2.11.*) ;; # other 2.11 versions
14210       *) supports_anon_versioning=yes ;;
14211     esac
14212
14213     # See if GNU ld supports shared libraries.
14214     case $host_os in
14215     aix3* | aix4* | aix5*)
14216       # On AIX/PPC, the GNU linker is very broken
14217       if test "$host_cpu" != ia64; then
14218         ld_shlibs_F77=no
14219         cat <<EOF 1>&2
14220
14221 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14222 *** to be unable to reliably create shared libraries on AIX.
14223 *** Therefore, libtool is disabling shared libraries support.  If you
14224 *** really care for shared libraries, you may want to modify your PATH
14225 *** so that a non-GNU linker is found, and then restart.
14226
14227 EOF
14228       fi
14229       ;;
14230
14231     amigaos*)
14232       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)'
14233       hardcode_libdir_flag_spec_F77='-L$libdir'
14234       hardcode_minus_L_F77=yes
14235
14236       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14237       # that the semantics of dynamic libraries on AmigaOS, at least up
14238       # to version 4, is to share data among multiple programs linked
14239       # with the same dynamic library.  Since this doesn't match the
14240       # behavior of shared libraries on other platforms, we can't use
14241       # them.
14242       ld_shlibs_F77=no
14243       ;;
14244
14245     beos*)
14246       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14247         allow_undefined_flag_F77=unsupported
14248         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14249         # support --undefined.  This deserves some investigation.  FIXME
14250         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14251       else
14252         ld_shlibs_F77=no
14253       fi
14254       ;;
14255
14256     cygwin* | mingw* | pw32*)
14257       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14258       # as there is no search path for DLLs.
14259       hardcode_libdir_flag_spec_F77='-L$libdir'
14260       allow_undefined_flag_F77=unsupported
14261       always_export_symbols_F77=no
14262       enable_shared_with_static_runtimes_F77=yes
14263       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14264
14265       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14266         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14267         # If the export-symbols file already is a .def file (1st line
14268         # is EXPORTS), use it as is; otherwise, prepend...
14269         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14270           cp $export_symbols $output_objdir/$soname.def;
14271         else
14272           echo EXPORTS > $output_objdir/$soname.def;
14273           cat $export_symbols >> $output_objdir/$soname.def;
14274         fi~
14275         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14276       else
14277         ld_shlibs_F77=no
14278       fi
14279       ;;
14280
14281     interix3*)
14282       hardcode_direct_F77=no
14283       hardcode_shlibpath_var_F77=no
14284       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14285       export_dynamic_flag_spec_F77='${wl}-E'
14286       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14287       # Instead, shared libraries are loaded at an image base (0x10000000 by
14288       # default) and relocated if they conflict, which is a slow very memory
14289       # consuming and fragmenting process.  To avoid this, we pick a random,
14290       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14291       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14292       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'
14293       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'
14294       ;;
14295
14296     linux*)
14297       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14298         tmp_addflag=
14299         case $cc_basename,$host_cpu in
14300         pgcc*)                          # Portland Group C compiler
14301           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'
14302           tmp_addflag=' $pic_flag'
14303           ;;
14304         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14305           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'
14306           tmp_addflag=' $pic_flag -Mnomain' ;;
14307         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14308           tmp_addflag=' -i_dynamic' ;;
14309         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14310           tmp_addflag=' -i_dynamic -nofor_main' ;;
14311         ifc* | ifort*)                  # Intel Fortran compiler
14312           tmp_addflag=' -nofor_main' ;;
14313         esac
14314         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14315
14316         if test $supports_anon_versioning = yes; then
14317           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14318   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14319   $echo "local: *; };" >> $output_objdir/$libname.ver~
14320           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14321         fi
14322       else
14323         ld_shlibs_F77=no
14324       fi
14325       ;;
14326
14327     netbsd*)
14328       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14329         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14330         wlarc=
14331       else
14332         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14333         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14334       fi
14335       ;;
14336
14337     solaris*)
14338       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14339         ld_shlibs_F77=no
14340         cat <<EOF 1>&2
14341
14342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14343 *** create shared libraries on Solaris systems.  Therefore, libtool
14344 *** is disabling shared libraries support.  We urge you to upgrade GNU
14345 *** binutils to release 2.9.1 or newer.  Another option is to modify
14346 *** your PATH or compiler configuration so that the native linker is
14347 *** used, and then restart.
14348
14349 EOF
14350       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14351         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14352         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14353       else
14354         ld_shlibs_F77=no
14355       fi
14356       ;;
14357
14358     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14359       case `$LD -v 2>&1` in
14360         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
14361         ld_shlibs_F77=no
14362         cat <<_LT_EOF 1>&2
14363
14364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14365 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14366 *** is disabling shared libraries support.  We urge you to upgrade GNU
14367 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14368 *** your PATH or compiler configuration so that the native linker is
14369 *** used, and then restart.
14370
14371 _LT_EOF
14372         ;;
14373         *)
14374           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14375             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14376             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14377             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14378           else
14379             ld_shlibs_F77=no
14380           fi
14381         ;;
14382       esac
14383       ;;
14384
14385     sunos4*)
14386       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14387       wlarc=
14388       hardcode_direct_F77=yes
14389       hardcode_shlibpath_var_F77=no
14390       ;;
14391
14392     *)
14393       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14394         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14395         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14396       else
14397         ld_shlibs_F77=no
14398       fi
14399       ;;
14400     esac
14401
14402     if test "$ld_shlibs_F77" = no; then
14403       runpath_var=
14404       hardcode_libdir_flag_spec_F77=
14405       export_dynamic_flag_spec_F77=
14406       whole_archive_flag_spec_F77=
14407     fi
14408   else
14409     # PORTME fill in a description of your system's linker (not GNU ld)
14410     case $host_os in
14411     aix3*)
14412       allow_undefined_flag_F77=unsupported
14413       always_export_symbols_F77=yes
14414       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'
14415       # Note: this linker hardcodes the directories in LIBPATH if there
14416       # are no directories specified by -L.
14417       hardcode_minus_L_F77=yes
14418       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14419         # Neither direct hardcoding nor static linking is supported with a
14420         # broken collect2.
14421         hardcode_direct_F77=unsupported
14422       fi
14423       ;;
14424
14425     aix4* | aix5*)
14426       if test "$host_cpu" = ia64; then
14427         # On IA64, the linker does run time linking by default, so we don't
14428         # have to do anything special.
14429         aix_use_runtimelinking=no
14430         exp_sym_flag='-Bexport'
14431         no_entry_flag=""
14432       else
14433         # If we're using GNU nm, then we don't want the "-C" option.
14434         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14435         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14436           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'
14437         else
14438           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'
14439         fi
14440         aix_use_runtimelinking=no
14441
14442         # Test if we are trying to use run time linking or normal
14443         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14444         # need to do runtime linking.
14445         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14446           for ld_flag in $LDFLAGS; do
14447           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14448             aix_use_runtimelinking=yes
14449             break
14450           fi
14451           done
14452           ;;
14453         esac
14454
14455         exp_sym_flag='-bexport'
14456         no_entry_flag='-bnoentry'
14457       fi
14458
14459       # When large executables or shared objects are built, AIX ld can
14460       # have problems creating the table of contents.  If linking a library
14461       # or program results in "error TOC overflow" add -mminimal-toc to
14462       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14463       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14464
14465       archive_cmds_F77=''
14466       hardcode_direct_F77=yes
14467       hardcode_libdir_separator_F77=':'
14468       link_all_deplibs_F77=yes
14469
14470       if test "$GCC" = yes; then
14471         case $host_os in aix4.[012]|aix4.[012].*)
14472         # We only want to do this on AIX 4.2 and lower, the check
14473         # below for broken collect2 doesn't work under 4.3+
14474           collect2name=`${CC} -print-prog-name=collect2`
14475           if test -f "$collect2name" && \
14476            strings "$collect2name" | grep resolve_lib_name >/dev/null
14477           then
14478           # We have reworked collect2
14479           hardcode_direct_F77=yes
14480           else
14481           # We have old collect2
14482           hardcode_direct_F77=unsupported
14483           # It fails to find uninstalled libraries when the uninstalled
14484           # path is not listed in the libpath.  Setting hardcode_minus_L
14485           # to unsupported forces relinking
14486           hardcode_minus_L_F77=yes
14487           hardcode_libdir_flag_spec_F77='-L$libdir'
14488           hardcode_libdir_separator_F77=
14489           fi
14490           ;;
14491         esac
14492         shared_flag='-shared'
14493         if test "$aix_use_runtimelinking" = yes; then
14494           shared_flag="$shared_flag "'${wl}-G'
14495         fi
14496       else
14497         # not using gcc
14498         if test "$host_cpu" = ia64; then
14499         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14500         # chokes on -Wl,-G. The following line is correct:
14501           shared_flag='-G'
14502         else
14503           if test "$aix_use_runtimelinking" = yes; then
14504             shared_flag='${wl}-G'
14505           else
14506             shared_flag='${wl}-bM:SRE'
14507           fi
14508         fi
14509       fi
14510
14511       # It seems that -bexpall does not export symbols beginning with
14512       # underscore (_), so it is better to generate a list of symbols to export.
14513       always_export_symbols_F77=yes
14514       if test "$aix_use_runtimelinking" = yes; then
14515         # Warning - without using the other runtime loading flags (-brtl),
14516         # -berok will link without error, but may produce a broken library.
14517         allow_undefined_flag_F77='-berok'
14518        # Determine the default libpath from the value encoded in an empty executable.
14519        cat >conftest.$ac_ext <<_ACEOF
14520       program main
14521
14522       end
14523 _ACEOF
14524 rm -f conftest.$ac_objext conftest$ac_exeext
14525 if { (ac_try="$ac_link"
14526 case "(($ac_try" in
14527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528   *) ac_try_echo=$ac_try;;
14529 esac
14530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531   (eval "$ac_link") 2>conftest.er1
14532   ac_status=$?
14533   grep -v '^ *+' conftest.er1 >conftest.err
14534   rm -f conftest.er1
14535   cat conftest.err >&5
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); } && {
14538          test -z "$ac_f77_werror_flag" ||
14539          test ! -s conftest.err
14540        } && test -s conftest$ac_exeext &&
14541        $as_test_x conftest$ac_exeext; then
14542   
14543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14544 }'`
14545 # Check for a 64-bit object if we didn't find anything.
14546 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14547 }'`; fi
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552         
14553 fi
14554
14555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14556       conftest$ac_exeext conftest.$ac_ext
14557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14558
14559        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14560         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"
14561        else
14562         if test "$host_cpu" = ia64; then
14563           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14564           allow_undefined_flag_F77="-z nodefs"
14565           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"
14566         else
14567          # Determine the default libpath from the value encoded in an empty executable.
14568          cat >conftest.$ac_ext <<_ACEOF
14569       program main
14570
14571       end
14572 _ACEOF
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574 if { (ac_try="$ac_link"
14575 case "(($ac_try" in
14576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577   *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580   (eval "$ac_link") 2>conftest.er1
14581   ac_status=$?
14582   grep -v '^ *+' conftest.er1 >conftest.err
14583   rm -f conftest.er1
14584   cat conftest.err >&5
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } && {
14587          test -z "$ac_f77_werror_flag" ||
14588          test ! -s conftest.err
14589        } && test -s conftest$ac_exeext &&
14590        $as_test_x conftest$ac_exeext; then
14591   
14592 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14593 }'`
14594 # Check for a 64-bit object if we didn't find anything.
14595 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14596 }'`; fi
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601         
14602 fi
14603
14604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14605       conftest$ac_exeext conftest.$ac_ext
14606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14607
14608          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14609           # Warning - without using the other run time loading flags,
14610           # -berok will link without error, but may produce a broken library.
14611           no_undefined_flag_F77=' ${wl}-bernotok'
14612           allow_undefined_flag_F77=' ${wl}-berok'
14613           # Exported symbols can be pulled into shared objects from archives
14614           whole_archive_flag_spec_F77='$convenience'
14615           archive_cmds_need_lc_F77=yes
14616           # This is similar to how AIX traditionally builds its shared libraries.
14617           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'
14618         fi
14619       fi
14620       ;;
14621
14622     amigaos*)
14623       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)'
14624       hardcode_libdir_flag_spec_F77='-L$libdir'
14625       hardcode_minus_L_F77=yes
14626       # see comment about different semantics on the GNU ld section
14627       ld_shlibs_F77=no
14628       ;;
14629
14630     bsdi[45]*)
14631       export_dynamic_flag_spec_F77=-rdynamic
14632       ;;
14633
14634     cygwin* | mingw* | pw32*)
14635       # When not using gcc, we currently assume that we are using
14636       # Microsoft Visual C++.
14637       # hardcode_libdir_flag_spec is actually meaningless, as there is
14638       # no search path for DLLs.
14639       hardcode_libdir_flag_spec_F77=' '
14640       allow_undefined_flag_F77=unsupported
14641       # Tell ltmain to make .lib files, not .a files.
14642       libext=lib
14643       # Tell ltmain to make .dll files, not .so files.
14644       shrext_cmds=".dll"
14645       # FIXME: Setting linknames here is a bad hack.
14646       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14647       # The linker will automatically build a .lib file if we build a DLL.
14648       old_archive_From_new_cmds_F77='true'
14649       # FIXME: Should let the user specify the lib program.
14650       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14651       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14652       enable_shared_with_static_runtimes_F77=yes
14653       ;;
14654
14655     darwin* | rhapsody*)
14656       case $host_os in
14657         rhapsody* | darwin1.[012])
14658          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14659          ;;
14660        *) # Darwin 1.3 on
14661          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14662            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14663          else
14664            case ${MACOSX_DEPLOYMENT_TARGET} in
14665              10.[012])
14666                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14667                ;;
14668              10.*)
14669                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14670                ;;
14671            esac
14672          fi
14673          ;;
14674       esac
14675       archive_cmds_need_lc_F77=no
14676       hardcode_direct_F77=no
14677       hardcode_automatic_F77=yes
14678       hardcode_shlibpath_var_F77=unsupported
14679       whole_archive_flag_spec_F77=''
14680       link_all_deplibs_F77=yes
14681     if test "$GCC" = yes ; then
14682         output_verbose_link_cmd='echo'
14683         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14684       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14685       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14686       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14687       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}'
14688     else
14689       case $cc_basename in
14690         xlc*)
14691          output_verbose_link_cmd='echo'
14692          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14693          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14694           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14695          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14696           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}'
14697           ;;
14698        *)
14699          ld_shlibs_F77=no
14700           ;;
14701       esac
14702     fi
14703       ;;
14704
14705     dgux*)
14706       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14707       hardcode_libdir_flag_spec_F77='-L$libdir'
14708       hardcode_shlibpath_var_F77=no
14709       ;;
14710
14711     freebsd1*)
14712       ld_shlibs_F77=no
14713       ;;
14714
14715     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14716     # support.  Future versions do this automatically, but an explicit c++rt0.o
14717     # does not break anything, and helps significantly (at the cost of a little
14718     # extra space).
14719     freebsd2.2*)
14720       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14721       hardcode_libdir_flag_spec_F77='-R$libdir'
14722       hardcode_direct_F77=yes
14723       hardcode_shlibpath_var_F77=no
14724       ;;
14725
14726     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14727     freebsd2*)
14728       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14729       hardcode_direct_F77=yes
14730       hardcode_minus_L_F77=yes
14731       hardcode_shlibpath_var_F77=no
14732       ;;
14733
14734     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14735     freebsd* | kfreebsd*-gnu | dragonfly*)
14736       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14737       hardcode_libdir_flag_spec_F77='-R$libdir'
14738       hardcode_direct_F77=yes
14739       hardcode_shlibpath_var_F77=no
14740       ;;
14741
14742     hpux9*)
14743       if test "$GCC" = yes; then
14744         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'
14745       else
14746         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'
14747       fi
14748       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14749       hardcode_libdir_separator_F77=:
14750       hardcode_direct_F77=yes
14751
14752       # hardcode_minus_L: Not really in the search PATH,
14753       # but as the default location of the library.
14754       hardcode_minus_L_F77=yes
14755       export_dynamic_flag_spec_F77='${wl}-E'
14756       ;;
14757
14758     hpux10*)
14759       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14760         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14761       else
14762         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14763       fi
14764       if test "$with_gnu_ld" = no; then
14765         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14766         hardcode_libdir_separator_F77=:
14767
14768         hardcode_direct_F77=yes
14769         export_dynamic_flag_spec_F77='${wl}-E'
14770
14771         # hardcode_minus_L: Not really in the search PATH,
14772         # but as the default location of the library.
14773         hardcode_minus_L_F77=yes
14774       fi
14775       ;;
14776
14777     hpux11*)
14778       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14779         case $host_cpu in
14780         hppa*64*)
14781           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14782           ;;
14783         ia64*)
14784           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14785           ;;
14786         *)
14787           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14788           ;;
14789         esac
14790       else
14791         case $host_cpu in
14792         hppa*64*)
14793           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14794           ;;
14795         ia64*)
14796           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14797           ;;
14798         *)
14799           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14800           ;;
14801         esac
14802       fi
14803       if test "$with_gnu_ld" = no; then
14804         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14805         hardcode_libdir_separator_F77=:
14806
14807         case $host_cpu in
14808         hppa*64*|ia64*)
14809           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14810           hardcode_direct_F77=no
14811           hardcode_shlibpath_var_F77=no
14812           ;;
14813         *)
14814           hardcode_direct_F77=yes
14815           export_dynamic_flag_spec_F77='${wl}-E'
14816
14817           # hardcode_minus_L: Not really in the search PATH,
14818           # but as the default location of the library.
14819           hardcode_minus_L_F77=yes
14820           ;;
14821         esac
14822       fi
14823       ;;
14824
14825     irix5* | irix6* | nonstopux*)
14826       if test "$GCC" = yes; then
14827         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'
14828       else
14829         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'
14830         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14831       fi
14832       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14833       hardcode_libdir_separator_F77=:
14834       link_all_deplibs_F77=yes
14835       ;;
14836
14837     netbsd*)
14838       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14839         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14840       else
14841         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14842       fi
14843       hardcode_libdir_flag_spec_F77='-R$libdir'
14844       hardcode_direct_F77=yes
14845       hardcode_shlibpath_var_F77=no
14846       ;;
14847
14848     newsos6)
14849       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14850       hardcode_direct_F77=yes
14851       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14852       hardcode_libdir_separator_F77=:
14853       hardcode_shlibpath_var_F77=no
14854       ;;
14855
14856     openbsd*)
14857       hardcode_direct_F77=yes
14858       hardcode_shlibpath_var_F77=no
14859       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14860         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14861         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14862         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14863         export_dynamic_flag_spec_F77='${wl}-E'
14864       else
14865        case $host_os in
14866          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14867            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14868            hardcode_libdir_flag_spec_F77='-R$libdir'
14869            ;;
14870          *)
14871            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14872            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14873            ;;
14874        esac
14875       fi
14876       ;;
14877
14878     os2*)
14879       hardcode_libdir_flag_spec_F77='-L$libdir'
14880       hardcode_minus_L_F77=yes
14881       allow_undefined_flag_F77=unsupported
14882       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'
14883       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14884       ;;
14885
14886     osf3*)
14887       if test "$GCC" = yes; then
14888         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14889         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'
14890       else
14891         allow_undefined_flag_F77=' -expect_unresolved \*'
14892         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'
14893       fi
14894       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14895       hardcode_libdir_separator_F77=:
14896       ;;
14897
14898     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14899       if test "$GCC" = yes; then
14900         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14901         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'
14902         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14903       else
14904         allow_undefined_flag_F77=' -expect_unresolved \*'
14905         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'
14906         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~
14907         $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'
14908
14909         # Both c and cxx compiler support -rpath directly
14910         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14911       fi
14912       hardcode_libdir_separator_F77=:
14913       ;;
14914
14915     solaris*)
14916       no_undefined_flag_F77=' -z text'
14917       if test "$GCC" = yes; then
14918         wlarc='${wl}'
14919         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14920         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14921           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14922       else
14923         wlarc=''
14924         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14926         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14927       fi
14928       hardcode_libdir_flag_spec_F77='-R$libdir'
14929       hardcode_shlibpath_var_F77=no
14930       case $host_os in
14931       solaris2.[0-5] | solaris2.[0-5].*) ;;
14932       *)
14933         # The compiler driver will combine linker options so we
14934         # cannot just pass the convience library names through
14935         # without $wl, iff we do not link with $LD.
14936         # Luckily, gcc supports the same syntax we need for Sun Studio.
14937         # Supported since Solaris 2.6 (maybe 2.5.1?)
14938         case $wlarc in
14939         '')
14940           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14941         *)
14942           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14943         esac ;;
14944       esac
14945       link_all_deplibs_F77=yes
14946       ;;
14947
14948     sunos4*)
14949       if test "x$host_vendor" = xsequent; then
14950         # Use $CC to link under sequent, because it throws in some extra .o
14951         # files that make .init and .fini sections work.
14952         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14953       else
14954         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14955       fi
14956       hardcode_libdir_flag_spec_F77='-L$libdir'
14957       hardcode_direct_F77=yes
14958       hardcode_minus_L_F77=yes
14959       hardcode_shlibpath_var_F77=no
14960       ;;
14961
14962     sysv4)
14963       case $host_vendor in
14964         sni)
14965           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14966           hardcode_direct_F77=yes # is this really true???
14967         ;;
14968         siemens)
14969           ## LD is ld it makes a PLAMLIB
14970           ## CC just makes a GrossModule.
14971           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14972           reload_cmds_F77='$CC -r -o $output$reload_objs'
14973           hardcode_direct_F77=no
14974         ;;
14975         motorola)
14976           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14977           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14978         ;;
14979       esac
14980       runpath_var='LD_RUN_PATH'
14981       hardcode_shlibpath_var_F77=no
14982       ;;
14983
14984     sysv4.3*)
14985       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14986       hardcode_shlibpath_var_F77=no
14987       export_dynamic_flag_spec_F77='-Bexport'
14988       ;;
14989
14990     sysv4*MP*)
14991       if test -d /usr/nec; then
14992         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14993         hardcode_shlibpath_var_F77=no
14994         runpath_var=LD_RUN_PATH
14995         hardcode_runpath_var=yes
14996         ld_shlibs_F77=yes
14997       fi
14998       ;;
14999
15000     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15001       no_undefined_flag_F77='${wl}-z,text'
15002       archive_cmds_need_lc_F77=no
15003       hardcode_shlibpath_var_F77=no
15004       runpath_var='LD_RUN_PATH'
15005
15006       if test "$GCC" = yes; then
15007         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15009       else
15010         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15011         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012       fi
15013       ;;
15014
15015     sysv5* | sco3.2v5* | sco5v6*)
15016       # Note: We can NOT use -z defs as we might desire, because we do not
15017       # link with -lc, and that would cause any symbols used from libc to
15018       # always be unresolved, which means just about no library would
15019       # ever link correctly.  If we're not using GNU ld we use -z text
15020       # though, which does catch some bad symbols but isn't as heavy-handed
15021       # as -z defs.
15022       no_undefined_flag_F77='${wl}-z,text'
15023       allow_undefined_flag_F77='${wl}-z,nodefs'
15024       archive_cmds_need_lc_F77=no
15025       hardcode_shlibpath_var_F77=no
15026       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15027       hardcode_libdir_separator_F77=':'
15028       link_all_deplibs_F77=yes
15029       export_dynamic_flag_spec_F77='${wl}-Bexport'
15030       runpath_var='LD_RUN_PATH'
15031
15032       if test "$GCC" = yes; then
15033         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15034         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15035       else
15036         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15037         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038       fi
15039       ;;
15040
15041     uts4*)
15042       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043       hardcode_libdir_flag_spec_F77='-L$libdir'
15044       hardcode_shlibpath_var_F77=no
15045       ;;
15046
15047     *)
15048       ld_shlibs_F77=no
15049       ;;
15050     esac
15051   fi
15052
15053 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15054 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15055 test "$ld_shlibs_F77" = no && can_build_shared=no
15056
15057 #
15058 # Do we need to explicitly link libc?
15059 #
15060 case "x$archive_cmds_need_lc_F77" in
15061 x|xyes)
15062   # Assume -lc should be added
15063   archive_cmds_need_lc_F77=yes
15064
15065   if test "$enable_shared" = yes && test "$GCC" = yes; then
15066     case $archive_cmds_F77 in
15067     *'~'*)
15068       # FIXME: we may have to deal with multi-command sequences.
15069       ;;
15070     '$CC '*)
15071       # Test whether the compiler implicitly links with -lc since on some
15072       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15073       # to ld, don't add -lc before -lgcc.
15074       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15075 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15076       $rm conftest*
15077       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15078
15079       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080   (eval $ac_compile) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } 2>conftest.err; then
15084         soname=conftest
15085         lib=conftest
15086         libobjs=conftest.$ac_objext
15087         deplibs=
15088         wl=$lt_prog_compiler_wl_F77
15089         pic_flag=$lt_prog_compiler_pic_F77
15090         compiler_flags=-v
15091         linker_flags=-v
15092         verstring=
15093         output_objdir=.
15094         libname=conftest
15095         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15096         allow_undefined_flag_F77=
15097         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15098   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }
15102         then
15103           archive_cmds_need_lc_F77=no
15104         else
15105           archive_cmds_need_lc_F77=yes
15106         fi
15107         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15108       else
15109         cat conftest.err 1>&5
15110       fi
15111       $rm conftest*
15112       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15113 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15114       ;;
15115     esac
15116   fi
15117   ;;
15118 esac
15119
15120 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15121 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15122 library_names_spec=
15123 libname_spec='lib$name'
15124 soname_spec=
15125 shrext_cmds=".so"
15126 postinstall_cmds=
15127 postuninstall_cmds=
15128 finish_cmds=
15129 finish_eval=
15130 shlibpath_var=
15131 shlibpath_overrides_runpath=unknown
15132 version_type=none
15133 dynamic_linker="$host_os ld.so"
15134 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15135 if test "$GCC" = yes; then
15136   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15137   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15138     # if the path contains ";" then we assume it to be the separator
15139     # otherwise default to the standard path separator (i.e. ":") - it is
15140     # assumed that no part of a normal pathname contains ";" but that should
15141     # okay in the real world where ";" in dirpaths is itself problematic.
15142     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15143   else
15144     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15145   fi
15146 else
15147   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15148 fi
15149 need_lib_prefix=unknown
15150 hardcode_into_libs=no
15151
15152 # when you set need_version to no, make sure it does not cause -set_version
15153 # flags to be left without arguments
15154 need_version=unknown
15155
15156 case $host_os in
15157 aix3*)
15158   version_type=linux
15159   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15160   shlibpath_var=LIBPATH
15161
15162   # AIX 3 has no versioning support, so we append a major version to the name.
15163   soname_spec='${libname}${release}${shared_ext}$major'
15164   ;;
15165
15166 aix4* | aix5*)
15167   version_type=linux
15168   need_lib_prefix=no
15169   need_version=no
15170   hardcode_into_libs=yes
15171   if test "$host_cpu" = ia64; then
15172     # AIX 5 supports IA64
15173     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15174     shlibpath_var=LD_LIBRARY_PATH
15175   else
15176     # With GCC up to 2.95.x, collect2 would create an import file
15177     # for dependence libraries.  The import file would start with
15178     # the line `#! .'.  This would cause the generated library to
15179     # depend on `.', always an invalid library.  This was fixed in
15180     # development snapshots of GCC prior to 3.0.
15181     case $host_os in
15182       aix4 | aix4.[01] | aix4.[01].*)
15183       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15184            echo ' yes '
15185            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15186         :
15187       else
15188         can_build_shared=no
15189       fi
15190       ;;
15191     esac
15192     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15193     # soname into executable. Probably we can add versioning support to
15194     # collect2, so additional links can be useful in future.
15195     if test "$aix_use_runtimelinking" = yes; then
15196       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15197       # instead of lib<name>.a to let people know that these are not
15198       # typical AIX shared libraries.
15199       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200     else
15201       # We preserve .a as extension for shared libraries through AIX4.2
15202       # and later when we are not doing run time linking.
15203       library_names_spec='${libname}${release}.a $libname.a'
15204       soname_spec='${libname}${release}${shared_ext}$major'
15205     fi
15206     shlibpath_var=LIBPATH
15207   fi
15208   ;;
15209
15210 amigaos*)
15211   library_names_spec='$libname.ixlibrary $libname.a'
15212   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15213   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'
15214   ;;
15215
15216 beos*)
15217   library_names_spec='${libname}${shared_ext}'
15218   dynamic_linker="$host_os ld.so"
15219   shlibpath_var=LIBRARY_PATH
15220   ;;
15221
15222 bsdi[45]*)
15223   version_type=linux
15224   need_version=no
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226   soname_spec='${libname}${release}${shared_ext}$major'
15227   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15230   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15231   # the default ld.so.conf also contains /usr/contrib/lib and
15232   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15233   # libtool to hard-code these into programs
15234   ;;
15235
15236 cygwin* | mingw* | pw32*)
15237   version_type=windows
15238   shrext_cmds=".dll"
15239   need_version=no
15240   need_lib_prefix=no
15241
15242   case $GCC,$host_os in
15243   yes,cygwin* | yes,mingw* | yes,pw32*)
15244     library_names_spec='$libname.dll.a'
15245     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15246     postinstall_cmds='base_file=`basename \${file}`~
15247       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15248       dldir=$destdir/`dirname \$dlpath`~
15249       test -d \$dldir || mkdir -p \$dldir~
15250       $install_prog $dir/$dlname \$dldir/$dlname~
15251       chmod a+x \$dldir/$dlname'
15252     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15253       dlpath=$dir/\$dldll~
15254        $rm \$dlpath'
15255     shlibpath_overrides_runpath=yes
15256
15257     case $host_os in
15258     cygwin*)
15259       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15260       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15261       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15262       ;;
15263     mingw*)
15264       # MinGW DLLs use traditional 'lib' prefix
15265       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15266       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15267       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15268         # It is most probably a Windows format PATH printed by
15269         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15270         # path with ; separators, and with drive letters. We can handle the
15271         # drive letters (cygwin fileutils understands them), so leave them,
15272         # especially as we might pass files found there to a mingw objdump,
15273         # which wouldn't understand a cygwinified path. Ahh.
15274         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15275       else
15276         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15277       fi
15278       ;;
15279     pw32*)
15280       # pw32 DLLs use 'pw' prefix rather than 'lib'
15281       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15282       ;;
15283     esac
15284     ;;
15285
15286   linux*)
15287     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15288       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15289       supports_anon_versioning=no
15290       case `$LD -v 2>/dev/null` in
15291         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15292         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15293         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15294         *\ 2.11.*) ;; # other 2.11 versions
15295         *) supports_anon_versioning=yes ;;
15296       esac
15297       if test $supports_anon_versioning = yes; then
15298         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15300 $echo "local: *; };" >> $output_objdir/$libname.ver~
15301         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15302       else
15303         $archive_expsym_cmds="$archive_cmds"
15304       fi
15305     else
15306       ld_shlibs=no
15307     fi
15308     ;;
15309
15310   *)
15311     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15312     ;;
15313   esac
15314   dynamic_linker='Win32 ld.exe'
15315   # FIXME: first we should search . and the directory the executable is in
15316   shlibpath_var=PATH
15317   ;;
15318
15319 darwin* | rhapsody*)
15320   dynamic_linker="$host_os dyld"
15321   version_type=darwin
15322   need_lib_prefix=no
15323   need_version=no
15324   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15325   soname_spec='${libname}${release}${major}$shared_ext'
15326   shlibpath_overrides_runpath=yes
15327   shlibpath_var=DYLD_LIBRARY_PATH
15328   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15329   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15330   if test "$GCC" = yes; then
15331     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15332   else
15333     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15334   fi
15335   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15336   ;;
15337
15338 dgux*)
15339   version_type=linux
15340   need_lib_prefix=no
15341   need_version=no
15342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15343   soname_spec='${libname}${release}${shared_ext}$major'
15344   shlibpath_var=LD_LIBRARY_PATH
15345   ;;
15346
15347 freebsd1*)
15348   dynamic_linker=no
15349   ;;
15350
15351 kfreebsd*-gnu)
15352   version_type=linux
15353   need_lib_prefix=no
15354   need_version=no
15355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15356   soname_spec='${libname}${release}${shared_ext}$major'
15357   shlibpath_var=LD_LIBRARY_PATH
15358   shlibpath_overrides_runpath=no
15359   hardcode_into_libs=yes
15360   dynamic_linker='GNU ld.so'
15361   ;;
15362
15363 freebsd* | dragonfly*)
15364   # DragonFly does not have aout.  When/if they implement a new
15365   # versioning mechanism, adjust this.
15366   if test -x /usr/bin/objformat; then
15367     objformat=`/usr/bin/objformat`
15368   else
15369     case $host_os in
15370     freebsd[123]*) objformat=aout ;;
15371     *) objformat=elf ;;
15372     esac
15373   fi
15374   # Handle Gentoo/FreeBSD as it was Linux
15375   case $host_vendor in
15376     gentoo)
15377       version_type=linux ;;
15378     *)
15379       version_type=freebsd-$objformat ;;
15380   esac
15381
15382   case $version_type in
15383     freebsd-elf*)
15384       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15385       need_version=no
15386       need_lib_prefix=no
15387       ;;
15388     freebsd-*)
15389       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15390       need_version=yes
15391       ;;
15392     linux)
15393       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15394       soname_spec='${libname}${release}${shared_ext}$major'
15395       need_lib_prefix=no
15396       need_version=no
15397       ;;
15398   esac
15399   shlibpath_var=LD_LIBRARY_PATH
15400   case $host_os in
15401   freebsd2*)
15402     shlibpath_overrides_runpath=yes
15403     ;;
15404   freebsd3.[01]* | freebsdelf3.[01]*)
15405     shlibpath_overrides_runpath=yes
15406     hardcode_into_libs=yes
15407     ;;
15408   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15409   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15410     shlibpath_overrides_runpath=no
15411     hardcode_into_libs=yes
15412     ;;
15413   freebsd*) # from 4.6 on
15414     shlibpath_overrides_runpath=yes
15415     hardcode_into_libs=yes
15416     ;;
15417   esac
15418   ;;
15419
15420 gnu*)
15421   version_type=linux
15422   need_lib_prefix=no
15423   need_version=no
15424   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15425   soname_spec='${libname}${release}${shared_ext}$major'
15426   shlibpath_var=LD_LIBRARY_PATH
15427   hardcode_into_libs=yes
15428   ;;
15429
15430 hpux9* | hpux10* | hpux11*)
15431   # Give a soname corresponding to the major version so that dld.sl refuses to
15432   # link against other versions.
15433   version_type=sunos
15434   need_lib_prefix=no
15435   need_version=no
15436   case $host_cpu in
15437   ia64*)
15438     shrext_cmds='.so'
15439     hardcode_into_libs=yes
15440     dynamic_linker="$host_os dld.so"
15441     shlibpath_var=LD_LIBRARY_PATH
15442     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15443     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444     soname_spec='${libname}${release}${shared_ext}$major'
15445     if test "X$HPUX_IA64_MODE" = X32; then
15446       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15447     else
15448       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15449     fi
15450     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15451     ;;
15452    hppa*64*)
15453      shrext_cmds='.sl'
15454      hardcode_into_libs=yes
15455      dynamic_linker="$host_os dld.sl"
15456      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15457      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15458      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459      soname_spec='${libname}${release}${shared_ext}$major'
15460      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15461      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15462      ;;
15463    *)
15464     shrext_cmds='.sl'
15465     dynamic_linker="$host_os dld.sl"
15466     shlibpath_var=SHLIB_PATH
15467     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469     soname_spec='${libname}${release}${shared_ext}$major'
15470     ;;
15471   esac
15472   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15473   postinstall_cmds='chmod 555 $lib'
15474   ;;
15475
15476 interix3*)
15477   version_type=linux
15478   need_lib_prefix=no
15479   need_version=no
15480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15481   soname_spec='${libname}${release}${shared_ext}$major'
15482   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15483   shlibpath_var=LD_LIBRARY_PATH
15484   shlibpath_overrides_runpath=no
15485   hardcode_into_libs=yes
15486   ;;
15487
15488 irix5* | irix6* | nonstopux*)
15489   case $host_os in
15490     nonstopux*) version_type=nonstopux ;;
15491     *)
15492         if test "$lt_cv_prog_gnu_ld" = yes; then
15493                 version_type=linux
15494         else
15495                 version_type=irix
15496         fi ;;
15497   esac
15498   need_lib_prefix=no
15499   need_version=no
15500   soname_spec='${libname}${release}${shared_ext}$major'
15501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15502   case $host_os in
15503   irix5* | nonstopux*)
15504     libsuff= shlibsuff=
15505     ;;
15506   *)
15507     case $LD in # libtool.m4 will add one of these switches to LD
15508     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15509       libsuff= shlibsuff= libmagic=32-bit;;
15510     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15511       libsuff=32 shlibsuff=N32 libmagic=N32;;
15512     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15513       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15514     *) libsuff= shlibsuff= libmagic=never-match;;
15515     esac
15516     ;;
15517   esac
15518   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15519   shlibpath_overrides_runpath=no
15520   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15521   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15522   hardcode_into_libs=yes
15523   ;;
15524
15525 # No shared lib support for Linux oldld, aout, or coff.
15526 linux*oldld* | linux*aout* | linux*coff*)
15527   dynamic_linker=no
15528   ;;
15529
15530 # This must be Linux ELF.
15531 linux*)
15532   version_type=linux
15533   need_lib_prefix=no
15534   need_version=no
15535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536   soname_spec='${libname}${release}${shared_ext}$major'
15537   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15538   shlibpath_var=LD_LIBRARY_PATH
15539   shlibpath_overrides_runpath=no
15540   # This implies no fast_install, which is unacceptable.
15541   # Some rework will be needed to allow for fast_install
15542   # before this can be enabled.
15543   hardcode_into_libs=yes
15544
15545   # Append ld.so.conf contents to the search path
15546   if test -f /etc/ld.so.conf; then
15547     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15548     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15549   fi
15550
15551   # We used to test for /lib/ld.so.1 and disable shared libraries on
15552   # powerpc, because MkLinux only supported shared libraries with the
15553   # GNU dynamic linker.  Since this was broken with cross compilers,
15554   # most powerpc-linux boxes support dynamic linking these days and
15555   # people can always --disable-shared, the test was removed, and we
15556   # assume the GNU/Linux dynamic linker is in use.
15557   dynamic_linker='GNU/Linux ld.so'
15558   ;;
15559
15560 knetbsd*-gnu)
15561   version_type=linux
15562   need_lib_prefix=no
15563   need_version=no
15564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15565   soname_spec='${libname}${release}${shared_ext}$major'
15566   shlibpath_var=LD_LIBRARY_PATH
15567   shlibpath_overrides_runpath=no
15568   hardcode_into_libs=yes
15569   dynamic_linker='GNU ld.so'
15570   ;;
15571
15572 netbsd*)
15573   version_type=sunos
15574   need_lib_prefix=no
15575   need_version=no
15576   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15577     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15578     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15579     dynamic_linker='NetBSD (a.out) ld.so'
15580   else
15581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15582     soname_spec='${libname}${release}${shared_ext}$major'
15583     dynamic_linker='NetBSD ld.elf_so'
15584   fi
15585   shlibpath_var=LD_LIBRARY_PATH
15586   shlibpath_overrides_runpath=yes
15587   hardcode_into_libs=yes
15588   ;;
15589
15590 newsos6)
15591   version_type=linux
15592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593   shlibpath_var=LD_LIBRARY_PATH
15594   shlibpath_overrides_runpath=yes
15595   ;;
15596
15597 nto-qnx*)
15598   version_type=linux
15599   need_lib_prefix=no
15600   need_version=no
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602   soname_spec='${libname}${release}${shared_ext}$major'
15603   shlibpath_var=LD_LIBRARY_PATH
15604   shlibpath_overrides_runpath=yes
15605   ;;
15606
15607 openbsd*)
15608   version_type=sunos
15609   sys_lib_dlsearch_path_spec="/usr/lib"
15610   need_lib_prefix=no
15611   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15612   case $host_os in
15613     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15614     *)                         need_version=no  ;;
15615   esac
15616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15617   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15618   shlibpath_var=LD_LIBRARY_PATH
15619   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15620     case $host_os in
15621       openbsd2.[89] | openbsd2.[89].*)
15622         shlibpath_overrides_runpath=no
15623         ;;
15624       *)
15625         shlibpath_overrides_runpath=yes
15626         ;;
15627       esac
15628   else
15629     shlibpath_overrides_runpath=yes
15630   fi
15631   ;;
15632
15633 os2*)
15634   libname_spec='$name'
15635   shrext_cmds=".dll"
15636   need_lib_prefix=no
15637   library_names_spec='$libname${shared_ext} $libname.a'
15638   dynamic_linker='OS/2 ld.exe'
15639   shlibpath_var=LIBPATH
15640   ;;
15641
15642 osf3* | osf4* | osf5*)
15643   version_type=osf
15644   need_lib_prefix=no
15645   need_version=no
15646   soname_spec='${libname}${release}${shared_ext}$major'
15647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648   shlibpath_var=LD_LIBRARY_PATH
15649   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15650   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15651   ;;
15652
15653 solaris*)
15654   version_type=linux
15655   need_lib_prefix=no
15656   need_version=no
15657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658   soname_spec='${libname}${release}${shared_ext}$major'
15659   shlibpath_var=LD_LIBRARY_PATH
15660   shlibpath_overrides_runpath=yes
15661   hardcode_into_libs=yes
15662   # ldd complains unless libraries are executable
15663   postinstall_cmds='chmod +x $lib'
15664   ;;
15665
15666 sunos4*)
15667   version_type=sunos
15668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15669   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15670   shlibpath_var=LD_LIBRARY_PATH
15671   shlibpath_overrides_runpath=yes
15672   if test "$with_gnu_ld" = yes; then
15673     need_lib_prefix=no
15674   fi
15675   need_version=yes
15676   ;;
15677
15678 sysv4 | sysv4.3*)
15679   version_type=linux
15680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681   soname_spec='${libname}${release}${shared_ext}$major'
15682   shlibpath_var=LD_LIBRARY_PATH
15683   case $host_vendor in
15684     sni)
15685       shlibpath_overrides_runpath=no
15686       need_lib_prefix=no
15687       export_dynamic_flag_spec='${wl}-Blargedynsym'
15688       runpath_var=LD_RUN_PATH
15689       ;;
15690     siemens)
15691       need_lib_prefix=no
15692       ;;
15693     motorola)
15694       need_lib_prefix=no
15695       need_version=no
15696       shlibpath_overrides_runpath=no
15697       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15698       ;;
15699   esac
15700   ;;
15701
15702 sysv4*MP*)
15703   if test -d /usr/nec ;then
15704     version_type=linux
15705     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15706     soname_spec='$libname${shared_ext}.$major'
15707     shlibpath_var=LD_LIBRARY_PATH
15708   fi
15709   ;;
15710
15711 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15712   version_type=freebsd-elf
15713   need_lib_prefix=no
15714   need_version=no
15715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15716   soname_spec='${libname}${release}${shared_ext}$major'
15717   shlibpath_var=LD_LIBRARY_PATH
15718   hardcode_into_libs=yes
15719   if test "$with_gnu_ld" = yes; then
15720     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15721     shlibpath_overrides_runpath=no
15722   else
15723     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15724     shlibpath_overrides_runpath=yes
15725     case $host_os in
15726       sco3.2v5*)
15727         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15728         ;;
15729     esac
15730   fi
15731   sys_lib_dlsearch_path_spec='/usr/lib'
15732   ;;
15733
15734 uts4*)
15735   version_type=linux
15736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737   soname_spec='${libname}${release}${shared_ext}$major'
15738   shlibpath_var=LD_LIBRARY_PATH
15739   ;;
15740
15741 *)
15742   dynamic_linker=no
15743   ;;
15744 esac
15745 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15746 echo "${ECHO_T}$dynamic_linker" >&6; }
15747 test "$dynamic_linker" = no && can_build_shared=no
15748
15749 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15750 if test "$GCC" = yes; then
15751   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15752 fi
15753
15754 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15755 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15756 hardcode_action_F77=
15757 if test -n "$hardcode_libdir_flag_spec_F77" || \
15758    test -n "$runpath_var_F77" || \
15759    test "X$hardcode_automatic_F77" = "Xyes" ; then
15760
15761   # We can hardcode non-existant directories.
15762   if test "$hardcode_direct_F77" != no &&
15763      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15764      # have to relink, otherwise we might link with an installed library
15765      # when we should be linking with a yet-to-be-installed one
15766      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15767      test "$hardcode_minus_L_F77" != no; then
15768     # Linking always hardcodes the temporary library directory.
15769     hardcode_action_F77=relink
15770   else
15771     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15772     hardcode_action_F77=immediate
15773   fi
15774 else
15775   # We cannot hardcode anything, or else we can only hardcode existing
15776   # directories.
15777   hardcode_action_F77=unsupported
15778 fi
15779 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15780 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15781
15782 if test "$hardcode_action_F77" = relink; then
15783   # Fast installation is not supported
15784   enable_fast_install=no
15785 elif test "$shlibpath_overrides_runpath" = yes ||
15786      test "$enable_shared" = no; then
15787   # Fast installation is not necessary
15788   enable_fast_install=needless
15789 fi
15790
15791
15792 # The else clause should only fire when bootstrapping the
15793 # libtool distribution, otherwise you forgot to ship ltmain.sh
15794 # with your package, and you will get complaints that there are
15795 # no rules to generate ltmain.sh.
15796 if test -f "$ltmain"; then
15797   # See if we are running on zsh, and set the options which allow our commands through
15798   # without removal of \ escapes.
15799   if test -n "${ZSH_VERSION+set}" ; then
15800     setopt NO_GLOB_SUBST
15801   fi
15802   # Now quote all the things that may contain metacharacters while being
15803   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15804   # variables and quote the copies for generation of the libtool script.
15805   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15806     SED SHELL STRIP \
15807     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15808     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15809     deplibs_check_method reload_flag reload_cmds need_locks \
15810     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15811     lt_cv_sys_global_symbol_to_c_name_address \
15812     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15813     old_postinstall_cmds old_postuninstall_cmds \
15814     compiler_F77 \
15815     CC_F77 \
15816     LD_F77 \
15817     lt_prog_compiler_wl_F77 \
15818     lt_prog_compiler_pic_F77 \
15819     lt_prog_compiler_static_F77 \
15820     lt_prog_compiler_no_builtin_flag_F77 \
15821     export_dynamic_flag_spec_F77 \
15822     thread_safe_flag_spec_F77 \
15823     whole_archive_flag_spec_F77 \
15824     enable_shared_with_static_runtimes_F77 \
15825     old_archive_cmds_F77 \
15826     old_archive_from_new_cmds_F77 \
15827     predep_objects_F77 \
15828     postdep_objects_F77 \
15829     predeps_F77 \
15830     postdeps_F77 \
15831     compiler_lib_search_path_F77 \
15832     archive_cmds_F77 \
15833     archive_expsym_cmds_F77 \
15834     postinstall_cmds_F77 \
15835     postuninstall_cmds_F77 \
15836     old_archive_from_expsyms_cmds_F77 \
15837     allow_undefined_flag_F77 \
15838     no_undefined_flag_F77 \
15839     export_symbols_cmds_F77 \
15840     hardcode_libdir_flag_spec_F77 \
15841     hardcode_libdir_flag_spec_ld_F77 \
15842     hardcode_libdir_separator_F77 \
15843     hardcode_automatic_F77 \
15844     module_cmds_F77 \
15845     module_expsym_cmds_F77 \
15846     lt_cv_prog_compiler_c_o_F77 \
15847     exclude_expsyms_F77 \
15848     include_expsyms_F77; do
15849
15850     case $var in
15851     old_archive_cmds_F77 | \
15852     old_archive_from_new_cmds_F77 | \
15853     archive_cmds_F77 | \
15854     archive_expsym_cmds_F77 | \
15855     module_cmds_F77 | \
15856     module_expsym_cmds_F77 | \
15857     old_archive_from_expsyms_cmds_F77 | \
15858     export_symbols_cmds_F77 | \
15859     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15860     postinstall_cmds | postuninstall_cmds | \
15861     old_postinstall_cmds | old_postuninstall_cmds | \
15862     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15863       # Double-quote double-evaled strings.
15864       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15865       ;;
15866     *)
15867       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15868       ;;
15869     esac
15870   done
15871
15872   case $lt_echo in
15873   *'\$0 --fallback-echo"')
15874     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15875     ;;
15876   esac
15877
15878 cfgfile="$ofile"
15879
15880   cat <<__EOF__ >> "$cfgfile"
15881 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15882
15883 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15884
15885 # Shell to use when invoking shell scripts.
15886 SHELL=$lt_SHELL
15887
15888 # Whether or not to build shared libraries.
15889 build_libtool_libs=$enable_shared
15890
15891 # Whether or not to build static libraries.
15892 build_old_libs=$enable_static
15893
15894 # Whether or not to add -lc for building shared libraries.
15895 build_libtool_need_lc=$archive_cmds_need_lc_F77
15896
15897 # Whether or not to disallow shared libs when runtime libs are static
15898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15899
15900 # Whether or not to optimize for fast installation.
15901 fast_install=$enable_fast_install
15902
15903 # The host system.
15904 host_alias=$host_alias
15905 host=$host
15906 host_os=$host_os
15907
15908 # The build system.
15909 build_alias=$build_alias
15910 build=$build
15911 build_os=$build_os
15912
15913 # An echo program that does not interpret backslashes.
15914 echo=$lt_echo
15915
15916 # The archiver.
15917 AR=$lt_AR
15918 AR_FLAGS=$lt_AR_FLAGS
15919
15920 # A C compiler.
15921 LTCC=$lt_LTCC
15922
15923 # LTCC compiler flags.
15924 LTCFLAGS=$lt_LTCFLAGS
15925
15926 # A language-specific compiler.
15927 CC=$lt_compiler_F77
15928
15929 # Is the compiler the GNU C compiler?
15930 with_gcc=$GCC_F77
15931
15932 # An ERE matcher.
15933 EGREP=$lt_EGREP
15934
15935 # The linker used to build libraries.
15936 LD=$lt_LD_F77
15937
15938 # Whether we need hard or soft links.
15939 LN_S=$lt_LN_S
15940
15941 # A BSD-compatible nm program.
15942 NM=$lt_NM
15943
15944 # A symbol stripping program
15945 STRIP=$lt_STRIP
15946
15947 # Used to examine libraries when file_magic_cmd begins "file"
15948 MAGIC_CMD=$MAGIC_CMD
15949
15950 # Used on cygwin: DLL creation program.
15951 DLLTOOL="$DLLTOOL"
15952
15953 # Used on cygwin: object dumper.
15954 OBJDUMP="$OBJDUMP"
15955
15956 # Used on cygwin: assembler.
15957 AS="$AS"
15958
15959 # The name of the directory that contains temporary libtool files.
15960 objdir=$objdir
15961
15962 # How to create reloadable object files.
15963 reload_flag=$lt_reload_flag
15964 reload_cmds=$lt_reload_cmds
15965
15966 # How to pass a linker flag through the compiler.
15967 wl=$lt_lt_prog_compiler_wl_F77
15968
15969 # Object file suffix (normally "o").
15970 objext="$ac_objext"
15971
15972 # Old archive suffix (normally "a").
15973 libext="$libext"
15974
15975 # Shared library suffix (normally ".so").
15976 shrext_cmds='$shrext_cmds'
15977
15978 # Executable file suffix (normally "").
15979 exeext="$exeext"
15980
15981 # Additional compiler flags for building library objects.
15982 pic_flag=$lt_lt_prog_compiler_pic_F77
15983 pic_mode=$pic_mode
15984
15985 # What is the maximum length of a command?
15986 max_cmd_len=$lt_cv_sys_max_cmd_len
15987
15988 # Does compiler simultaneously support -c and -o options?
15989 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15990
15991 # Must we lock files when doing compilation?
15992 need_locks=$lt_need_locks
15993
15994 # Do we need the lib prefix for modules?
15995 need_lib_prefix=$need_lib_prefix
15996
15997 # Do we need a version for libraries?
15998 need_version=$need_version
15999
16000 # Whether dlopen is supported.
16001 dlopen_support=$enable_dlopen
16002
16003 # Whether dlopen of programs is supported.
16004 dlopen_self=$enable_dlopen_self
16005
16006 # Whether dlopen of statically linked programs is supported.
16007 dlopen_self_static=$enable_dlopen_self_static
16008
16009 # Compiler flag to prevent dynamic linking.
16010 link_static_flag=$lt_lt_prog_compiler_static_F77
16011
16012 # Compiler flag to turn off builtin functions.
16013 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16014
16015 # Compiler flag to allow reflexive dlopens.
16016 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16017
16018 # Compiler flag to generate shared objects directly from archives.
16019 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16020
16021 # Compiler flag to generate thread-safe objects.
16022 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16023
16024 # Library versioning type.
16025 version_type=$version_type
16026
16027 # Format of library name prefix.
16028 libname_spec=$lt_libname_spec
16029
16030 # List of archive names.  First name is the real one, the rest are links.
16031 # The last name is the one that the linker finds with -lNAME.
16032 library_names_spec=$lt_library_names_spec
16033
16034 # The coded name of the library, if different from the real name.
16035 soname_spec=$lt_soname_spec
16036
16037 # Commands used to build and install an old-style archive.
16038 RANLIB=$lt_RANLIB
16039 old_archive_cmds=$lt_old_archive_cmds_F77
16040 old_postinstall_cmds=$lt_old_postinstall_cmds
16041 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16042
16043 # Create an old-style archive from a shared archive.
16044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16045
16046 # Create a temporary old-style archive to link instead of a shared archive.
16047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16048
16049 # Commands used to build and install a shared archive.
16050 archive_cmds=$lt_archive_cmds_F77
16051 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16052 postinstall_cmds=$lt_postinstall_cmds
16053 postuninstall_cmds=$lt_postuninstall_cmds
16054
16055 # Commands used to build a loadable module (assumed same as above if empty)
16056 module_cmds=$lt_module_cmds_F77
16057 module_expsym_cmds=$lt_module_expsym_cmds_F77
16058
16059 # Commands to strip libraries.
16060 old_striplib=$lt_old_striplib
16061 striplib=$lt_striplib
16062
16063 # Dependencies to place before the objects being linked to create a
16064 # shared library.
16065 predep_objects=$lt_predep_objects_F77
16066
16067 # Dependencies to place after the objects being linked to create a
16068 # shared library.
16069 postdep_objects=$lt_postdep_objects_F77
16070
16071 # Dependencies to place before the objects being linked to create a
16072 # shared library.
16073 predeps=$lt_predeps_F77
16074
16075 # Dependencies to place after the objects being linked to create a
16076 # shared library.
16077 postdeps=$lt_postdeps_F77
16078
16079 # The library search path used internally by the compiler when linking
16080 # a shared library.
16081 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16082
16083 # Method to check whether dependent libraries are shared objects.
16084 deplibs_check_method=$lt_deplibs_check_method
16085
16086 # Command to use when deplibs_check_method == file_magic.
16087 file_magic_cmd=$lt_file_magic_cmd
16088
16089 # Flag that allows shared libraries with undefined symbols to be built.
16090 allow_undefined_flag=$lt_allow_undefined_flag_F77
16091
16092 # Flag that forces no undefined symbols.
16093 no_undefined_flag=$lt_no_undefined_flag_F77
16094
16095 # Commands used to finish a libtool library installation in a directory.
16096 finish_cmds=$lt_finish_cmds
16097
16098 # Same as above, but a single script fragment to be evaled but not shown.
16099 finish_eval=$lt_finish_eval
16100
16101 # Take the output of nm and produce a listing of raw symbols and C names.
16102 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16103
16104 # Transform the output of nm in a proper C declaration
16105 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16106
16107 # Transform the output of nm in a C name address pair
16108 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16109
16110 # This is the shared library runtime path variable.
16111 runpath_var=$runpath_var
16112
16113 # This is the shared library path variable.
16114 shlibpath_var=$shlibpath_var
16115
16116 # Is shlibpath searched before the hard-coded library search path?
16117 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16118
16119 # How to hardcode a shared library path into an executable.
16120 hardcode_action=$hardcode_action_F77
16121
16122 # Whether we should hardcode library paths into libraries.
16123 hardcode_into_libs=$hardcode_into_libs
16124
16125 # Flag to hardcode \$libdir into a binary during linking.
16126 # This must work even if \$libdir does not exist.
16127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16128
16129 # If ld is used when linking, flag to hardcode \$libdir into
16130 # a binary during linking. This must work even if \$libdir does
16131 # not exist.
16132 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16133
16134 # Whether we need a single -rpath flag with a separated argument.
16135 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16136
16137 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16138 # resulting binary.
16139 hardcode_direct=$hardcode_direct_F77
16140
16141 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16142 # resulting binary.
16143 hardcode_minus_L=$hardcode_minus_L_F77
16144
16145 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16146 # the resulting binary.
16147 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16148
16149 # Set to yes if building a shared library automatically hardcodes DIR into the library
16150 # and all subsequent libraries and executables linked against it.
16151 hardcode_automatic=$hardcode_automatic_F77
16152
16153 # Variables whose values should be saved in libtool wrapper scripts and
16154 # restored at relink time.
16155 variables_saved_for_relink="$variables_saved_for_relink"
16156
16157 # Whether libtool must link a program against all its dependency libraries.
16158 link_all_deplibs=$link_all_deplibs_F77
16159
16160 # Compile-time system search path for libraries
16161 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16162
16163 # Run-time system search path for libraries
16164 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16165
16166 # Fix the shell variable \$srcfile for the compiler.
16167 fix_srcfile_path="$fix_srcfile_path_F77"
16168
16169 # Set to yes if exported symbols are required.
16170 always_export_symbols=$always_export_symbols_F77
16171
16172 # The commands to list exported symbols.
16173 export_symbols_cmds=$lt_export_symbols_cmds_F77
16174
16175 # The commands to extract the exported symbol list from a shared archive.
16176 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16177
16178 # Symbols that should not be listed in the preloaded symbols.
16179 exclude_expsyms=$lt_exclude_expsyms_F77
16180
16181 # Symbols that must always be exported.
16182 include_expsyms=$lt_include_expsyms_F77
16183
16184 # ### END LIBTOOL TAG CONFIG: $tagname
16185
16186 __EOF__
16187
16188
16189 else
16190   # If there is no Makefile yet, we rely on a make rule to execute
16191   # `config.status --recheck' to rerun these tests and create the
16192   # libtool script then.
16193   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16194   if test -f "$ltmain_in"; then
16195     test -f Makefile && make "$ltmain"
16196   fi
16197 fi
16198
16199
16200 ac_ext=c
16201 ac_cpp='$CPP $CPPFLAGS'
16202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16205
16206 CC="$lt_save_CC"
16207
16208         else
16209           tagname=""
16210         fi
16211         ;;
16212
16213       GCJ)
16214         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16215           
16216
16217 # Source file extension for Java test sources.
16218 ac_ext=java
16219
16220 # Object file extension for compiled Java test sources.
16221 objext=o
16222 objext_GCJ=$objext
16223
16224 # Code to be used in simple compile tests
16225 lt_simple_compile_test_code="class foo {}\n"
16226
16227 # Code to be used in simple link tests
16228 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16229
16230 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16231
16232 # If no C compiler was specified, use CC.
16233 LTCC=${LTCC-"$CC"}
16234
16235 # If no C compiler flags were specified, use CFLAGS.
16236 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16237
16238 # Allow CC to be a program name with arguments.
16239 compiler=$CC
16240
16241
16242 # save warnings/boilerplate of simple test code
16243 ac_outfile=conftest.$ac_objext
16244 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16245 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16246 _lt_compiler_boilerplate=`cat conftest.err`
16247 $rm conftest*
16248
16249 ac_outfile=conftest.$ac_objext
16250 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16251 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16252 _lt_linker_boilerplate=`cat conftest.err`
16253 $rm conftest*
16254
16255
16256 # Allow CC to be a program name with arguments.
16257 lt_save_CC="$CC"
16258 CC=${GCJ-"gcj"}
16259 compiler=$CC
16260 compiler_GCJ=$CC
16261 for cc_temp in $compiler""; do
16262   case $cc_temp in
16263     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16264     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16265     \-*) ;;
16266     *) break;;
16267   esac
16268 done
16269 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16270
16271
16272 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16273 archive_cmds_need_lc_GCJ=no
16274
16275 old_archive_cmds_GCJ=$old_archive_cmds
16276
16277
16278 lt_prog_compiler_no_builtin_flag_GCJ=
16279
16280 if test "$GCC" = yes; then
16281   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16282
16283   
16284 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16285 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16286 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16287   echo $ECHO_N "(cached) $ECHO_C" >&6
16288 else
16289   lt_cv_prog_compiler_rtti_exceptions=no
16290   ac_outfile=conftest.$ac_objext
16291    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16292    lt_compiler_flag="-fno-rtti -fno-exceptions"
16293    # Insert the option either (1) after the last *FLAGS variable, or
16294    # (2) before a word containing "conftest.", or (3) at the end.
16295    # Note that $ac_compile itself does not contain backslashes and begins
16296    # with a dollar sign (not a hyphen), so the echo should work correctly.
16297    # The option is referenced via a variable to avoid confusing sed.
16298    lt_compile=`echo "$ac_compile" | $SED \
16299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16301    -e 's:$: $lt_compiler_flag:'`
16302    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16303    (eval "$lt_compile" 2>conftest.err)
16304    ac_status=$?
16305    cat conftest.err >&5
16306    echo "$as_me:__oline__: \$? = $ac_status" >&5
16307    if (exit $ac_status) && test -s "$ac_outfile"; then
16308      # The compiler can only warn and ignore the option if not recognized
16309      # So say no if there are warnings other than the usual output.
16310      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16311      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16312      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16313        lt_cv_prog_compiler_rtti_exceptions=yes
16314      fi
16315    fi
16316    $rm conftest*
16317
16318 fi
16319 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16320 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16321
16322 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16323     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16324 else
16325     :
16326 fi
16327
16328 fi
16329
16330 lt_prog_compiler_wl_GCJ=
16331 lt_prog_compiler_pic_GCJ=
16332 lt_prog_compiler_static_GCJ=
16333
16334 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16335 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16336  
16337   if test "$GCC" = yes; then
16338     lt_prog_compiler_wl_GCJ='-Wl,'
16339     lt_prog_compiler_static_GCJ='-static'
16340
16341     case $host_os in
16342       aix*)
16343       # All AIX code is PIC.
16344       if test "$host_cpu" = ia64; then
16345         # AIX 5 now supports IA64 processor
16346         lt_prog_compiler_static_GCJ='-Bstatic'
16347       fi
16348       ;;
16349
16350     amigaos*)
16351       # FIXME: we need at least 68020 code to build shared libraries, but
16352       # adding the `-m68020' flag to GCC prevents building anything better,
16353       # like `-m68040'.
16354       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16355       ;;
16356
16357     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16358       # PIC is the default for these OSes.
16359       ;;
16360
16361     mingw* | pw32* | os2*)
16362       # This hack is so that the source file can tell whether it is being
16363       # built for inclusion in a dll (and should export symbols for example).
16364       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16365       ;;
16366
16367     darwin* | rhapsody*)
16368       # PIC is the default on this platform
16369       # Common symbols not allowed in MH_DYLIB files
16370       lt_prog_compiler_pic_GCJ='-fno-common'
16371       ;;
16372
16373     interix3*)
16374       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16375       # Instead, we relocate shared libraries at runtime.
16376       ;;
16377
16378     msdosdjgpp*)
16379       # Just because we use GCC doesn't mean we suddenly get shared libraries
16380       # on systems that don't support them.
16381       lt_prog_compiler_can_build_shared_GCJ=no
16382       enable_shared=no
16383       ;;
16384
16385     sysv4*MP*)
16386       if test -d /usr/nec; then
16387         lt_prog_compiler_pic_GCJ=-Kconform_pic
16388       fi
16389       ;;
16390
16391     hpux*)
16392       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16393       # not for PA HP-UX.
16394       case $host_cpu in
16395       hppa*64*|ia64*)
16396         # +Z the default
16397         ;;
16398       *)
16399         lt_prog_compiler_pic_GCJ='-fPIC'
16400         ;;
16401       esac
16402       ;;
16403
16404     *)
16405       lt_prog_compiler_pic_GCJ='-fPIC'
16406       ;;
16407     esac
16408   else
16409     # PORTME Check for flag to pass linker flags through the system compiler.
16410     case $host_os in
16411     aix*)
16412       lt_prog_compiler_wl_GCJ='-Wl,'
16413       if test "$host_cpu" = ia64; then
16414         # AIX 5 now supports IA64 processor
16415         lt_prog_compiler_static_GCJ='-Bstatic'
16416       else
16417         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16418       fi
16419       ;;
16420       darwin*)
16421         # PIC is the default on this platform
16422         # Common symbols not allowed in MH_DYLIB files
16423        case $cc_basename in
16424          xlc*)
16425          lt_prog_compiler_pic_GCJ='-qnocommon'
16426          lt_prog_compiler_wl_GCJ='-Wl,'
16427          ;;
16428        esac
16429        ;;
16430
16431     mingw* | pw32* | os2*)
16432       # This hack is so that the source file can tell whether it is being
16433       # built for inclusion in a dll (and should export symbols for example).
16434       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16435       ;;
16436
16437     hpux9* | hpux10* | hpux11*)
16438       lt_prog_compiler_wl_GCJ='-Wl,'
16439       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16440       # not for PA HP-UX.
16441       case $host_cpu in
16442       hppa*64*|ia64*)
16443         # +Z the default
16444         ;;
16445       *)
16446         lt_prog_compiler_pic_GCJ='+Z'
16447         ;;
16448       esac
16449       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16450       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16451       ;;
16452
16453     irix5* | irix6* | nonstopux*)
16454       lt_prog_compiler_wl_GCJ='-Wl,'
16455       # PIC (with -KPIC) is the default.
16456       lt_prog_compiler_static_GCJ='-non_shared'
16457       ;;
16458
16459     newsos6)
16460       lt_prog_compiler_pic_GCJ='-KPIC'
16461       lt_prog_compiler_static_GCJ='-Bstatic'
16462       ;;
16463
16464     linux*)
16465       case $cc_basename in
16466       icc* | ecc*)
16467         lt_prog_compiler_wl_GCJ='-Wl,'
16468         lt_prog_compiler_pic_GCJ='-KPIC'
16469         lt_prog_compiler_static_GCJ='-static'
16470         ;;
16471       pgcc* | pgf77* | pgf90* | pgf95*)
16472         # Portland Group compilers (*not* the Pentium gcc compiler,
16473         # which looks to be a dead project)
16474         lt_prog_compiler_wl_GCJ='-Wl,'
16475         lt_prog_compiler_pic_GCJ='-fpic'
16476         lt_prog_compiler_static_GCJ='-Bstatic'
16477         ;;
16478       ccc*)
16479         lt_prog_compiler_wl_GCJ='-Wl,'
16480         # All Alpha code is PIC.
16481         lt_prog_compiler_static_GCJ='-non_shared'
16482         ;;
16483       esac
16484       ;;
16485
16486     osf3* | osf4* | osf5*)
16487       lt_prog_compiler_wl_GCJ='-Wl,'
16488       # All OSF/1 code is PIC.
16489       lt_prog_compiler_static_GCJ='-non_shared'
16490       ;;
16491
16492     solaris*)
16493       lt_prog_compiler_pic_GCJ='-KPIC'
16494       lt_prog_compiler_static_GCJ='-Bstatic'
16495       case $cc_basename in
16496       f77* | f90* | f95*)
16497         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16498       *)
16499         lt_prog_compiler_wl_GCJ='-Wl,';;
16500       esac
16501       ;;
16502
16503     sunos4*)
16504       lt_prog_compiler_wl_GCJ='-Qoption ld '
16505       lt_prog_compiler_pic_GCJ='-PIC'
16506       lt_prog_compiler_static_GCJ='-Bstatic'
16507       ;;
16508
16509     sysv4 | sysv4.2uw2* | sysv4.3*)
16510       lt_prog_compiler_wl_GCJ='-Wl,'
16511       lt_prog_compiler_pic_GCJ='-KPIC'
16512       lt_prog_compiler_static_GCJ='-Bstatic'
16513       ;;
16514
16515     sysv4*MP*)
16516       if test -d /usr/nec ;then
16517         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16518         lt_prog_compiler_static_GCJ='-Bstatic'
16519       fi
16520       ;;
16521
16522     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16523       lt_prog_compiler_wl_GCJ='-Wl,'
16524       lt_prog_compiler_pic_GCJ='-KPIC'
16525       lt_prog_compiler_static_GCJ='-Bstatic'
16526       ;;
16527
16528     unicos*)
16529       lt_prog_compiler_wl_GCJ='-Wl,'
16530       lt_prog_compiler_can_build_shared_GCJ=no
16531       ;;
16532
16533     uts4*)
16534       lt_prog_compiler_pic_GCJ='-pic'
16535       lt_prog_compiler_static_GCJ='-Bstatic'
16536       ;;
16537
16538     *)
16539       lt_prog_compiler_can_build_shared_GCJ=no
16540       ;;
16541     esac
16542   fi
16543
16544 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16545 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16546
16547 #
16548 # Check to make sure the PIC flag actually works.
16549 #
16550 if test -n "$lt_prog_compiler_pic_GCJ"; then
16551   
16552 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16553 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16554 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   lt_prog_compiler_pic_works_GCJ=no
16558   ac_outfile=conftest.$ac_objext
16559    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16560    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16561    # Insert the option either (1) after the last *FLAGS variable, or
16562    # (2) before a word containing "conftest.", or (3) at the end.
16563    # Note that $ac_compile itself does not contain backslashes and begins
16564    # with a dollar sign (not a hyphen), so the echo should work correctly.
16565    # The option is referenced via a variable to avoid confusing sed.
16566    lt_compile=`echo "$ac_compile" | $SED \
16567    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16568    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16569    -e 's:$: $lt_compiler_flag:'`
16570    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16571    (eval "$lt_compile" 2>conftest.err)
16572    ac_status=$?
16573    cat conftest.err >&5
16574    echo "$as_me:__oline__: \$? = $ac_status" >&5
16575    if (exit $ac_status) && test -s "$ac_outfile"; then
16576      # The compiler can only warn and ignore the option if not recognized
16577      # So say no if there are warnings other than the usual output.
16578      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16579      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16580      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16581        lt_prog_compiler_pic_works_GCJ=yes
16582      fi
16583    fi
16584    $rm conftest*
16585
16586 fi
16587 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16588 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16589
16590 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16591     case $lt_prog_compiler_pic_GCJ in
16592      "" | " "*) ;;
16593      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16594      esac
16595 else
16596     lt_prog_compiler_pic_GCJ=
16597      lt_prog_compiler_can_build_shared_GCJ=no
16598 fi
16599
16600 fi
16601 case $host_os in
16602   # For platforms which do not support PIC, -DPIC is meaningless:
16603   *djgpp*)
16604     lt_prog_compiler_pic_GCJ=
16605     ;;
16606   *)
16607     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16608     ;;
16609 esac
16610
16611 #
16612 # Check to make sure the static flag actually works.
16613 #
16614 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16615 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16616 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16617 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16618   echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620   lt_prog_compiler_static_works_GCJ=no
16621    save_LDFLAGS="$LDFLAGS"
16622    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16623    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16624    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16625      # The linker can only warn and ignore the option if not recognized
16626      # So say no if there are warnings
16627      if test -s conftest.err; then
16628        # Append any errors to the config.log.
16629        cat conftest.err 1>&5
16630        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16631        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16632        if diff conftest.exp conftest.er2 >/dev/null; then
16633          lt_prog_compiler_static_works_GCJ=yes
16634        fi
16635      else
16636        lt_prog_compiler_static_works_GCJ=yes
16637      fi
16638    fi
16639    $rm conftest*
16640    LDFLAGS="$save_LDFLAGS"
16641
16642 fi
16643 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16644 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16645
16646 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16647     :
16648 else
16649     lt_prog_compiler_static_GCJ=
16650 fi
16651
16652
16653 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16654 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16655 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16656   echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658   lt_cv_prog_compiler_c_o_GCJ=no
16659    $rm -r conftest 2>/dev/null
16660    mkdir conftest
16661    cd conftest
16662    mkdir out
16663    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16664
16665    lt_compiler_flag="-o out/conftest2.$ac_objext"
16666    # Insert the option either (1) after the last *FLAGS variable, or
16667    # (2) before a word containing "conftest.", or (3) at the end.
16668    # Note that $ac_compile itself does not contain backslashes and begins
16669    # with a dollar sign (not a hyphen), so the echo should work correctly.
16670    lt_compile=`echo "$ac_compile" | $SED \
16671    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16672    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16673    -e 's:$: $lt_compiler_flag:'`
16674    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16675    (eval "$lt_compile" 2>out/conftest.err)
16676    ac_status=$?
16677    cat out/conftest.err >&5
16678    echo "$as_me:__oline__: \$? = $ac_status" >&5
16679    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16680    then
16681      # The compiler can only warn and ignore the option if not recognized
16682      # So say no if there are warnings
16683      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16684      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16685      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16686        lt_cv_prog_compiler_c_o_GCJ=yes
16687      fi
16688    fi
16689    chmod u+w . 2>&5
16690    $rm conftest*
16691    # SGI C++ compiler will create directory out/ii_files/ for
16692    # template instantiation
16693    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16694    $rm out/* && rmdir out
16695    cd ..
16696    rmdir conftest
16697    $rm conftest*
16698
16699 fi
16700 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16701 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16702
16703
16704 hard_links="nottested"
16705 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16706   # do not overwrite the value of need_locks provided by the user
16707   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16708 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16709   hard_links=yes
16710   $rm conftest*
16711   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16712   touch conftest.a
16713   ln conftest.a conftest.b 2>&5 || hard_links=no
16714   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16715   { echo "$as_me:$LINENO: result: $hard_links" >&5
16716 echo "${ECHO_T}$hard_links" >&6; }
16717   if test "$hard_links" = no; then
16718     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16719 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16720     need_locks=warn
16721   fi
16722 else
16723   need_locks=no
16724 fi
16725
16726 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16727 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16728
16729   runpath_var=
16730   allow_undefined_flag_GCJ=
16731   enable_shared_with_static_runtimes_GCJ=no
16732   archive_cmds_GCJ=
16733   archive_expsym_cmds_GCJ=
16734   old_archive_From_new_cmds_GCJ=
16735   old_archive_from_expsyms_cmds_GCJ=
16736   export_dynamic_flag_spec_GCJ=
16737   whole_archive_flag_spec_GCJ=
16738   thread_safe_flag_spec_GCJ=
16739   hardcode_libdir_flag_spec_GCJ=
16740   hardcode_libdir_flag_spec_ld_GCJ=
16741   hardcode_libdir_separator_GCJ=
16742   hardcode_direct_GCJ=no
16743   hardcode_minus_L_GCJ=no
16744   hardcode_shlibpath_var_GCJ=unsupported
16745   link_all_deplibs_GCJ=unknown
16746   hardcode_automatic_GCJ=no
16747   module_cmds_GCJ=
16748   module_expsym_cmds_GCJ=
16749   always_export_symbols_GCJ=no
16750   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16751   # include_expsyms should be a list of space-separated symbols to be *always*
16752   # included in the symbol list
16753   include_expsyms_GCJ=
16754   # exclude_expsyms can be an extended regexp of symbols to exclude
16755   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16756   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16757   # as well as any symbol that contains `d'.
16758   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16759   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16760   # platforms (ab)use it in PIC code, but their linkers get confused if
16761   # the symbol is explicitly referenced.  Since portable code cannot
16762   # rely on this symbol name, it's probably fine to never include it in
16763   # preloaded symbol tables.
16764   extract_expsyms_cmds=
16765   # Just being paranoid about ensuring that cc_basename is set.
16766   for cc_temp in $compiler""; do
16767   case $cc_temp in
16768     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16769     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16770     \-*) ;;
16771     *) break;;
16772   esac
16773 done
16774 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16775
16776   case $host_os in
16777   cygwin* | mingw* | pw32*)
16778     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16779     # When not using gcc, we currently assume that we are using
16780     # Microsoft Visual C++.
16781     if test "$GCC" != yes; then
16782       with_gnu_ld=no
16783     fi
16784     ;;
16785   interix*)
16786     # we just hope/assume this is gcc and not c89 (= MSVC++)
16787     with_gnu_ld=yes
16788     ;;
16789   openbsd*)
16790     with_gnu_ld=no
16791     ;;
16792   esac
16793
16794   ld_shlibs_GCJ=yes
16795   if test "$with_gnu_ld" = yes; then
16796     # If archive_cmds runs LD, not CC, wlarc should be empty
16797     wlarc='${wl}'
16798
16799     # Set some defaults for GNU ld with shared library support. These
16800     # are reset later if shared libraries are not supported. Putting them
16801     # here allows them to be overridden if necessary.
16802     runpath_var=LD_RUN_PATH
16803     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16804     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16805     # ancient GNU ld didn't support --whole-archive et. al.
16806     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16807         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16808       else
16809         whole_archive_flag_spec_GCJ=
16810     fi
16811     supports_anon_versioning=no
16812     case `$LD -v 2>/dev/null` in
16813       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16814       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16815       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16816       *\ 2.11.*) ;; # other 2.11 versions
16817       *) supports_anon_versioning=yes ;;
16818     esac
16819
16820     # See if GNU ld supports shared libraries.
16821     case $host_os in
16822     aix3* | aix4* | aix5*)
16823       # On AIX/PPC, the GNU linker is very broken
16824       if test "$host_cpu" != ia64; then
16825         ld_shlibs_GCJ=no
16826         cat <<EOF 1>&2
16827
16828 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16829 *** to be unable to reliably create shared libraries on AIX.
16830 *** Therefore, libtool is disabling shared libraries support.  If you
16831 *** really care for shared libraries, you may want to modify your PATH
16832 *** so that a non-GNU linker is found, and then restart.
16833
16834 EOF
16835       fi
16836       ;;
16837
16838     amigaos*)
16839       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)'
16840       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16841       hardcode_minus_L_GCJ=yes
16842
16843       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16844       # that the semantics of dynamic libraries on AmigaOS, at least up
16845       # to version 4, is to share data among multiple programs linked
16846       # with the same dynamic library.  Since this doesn't match the
16847       # behavior of shared libraries on other platforms, we can't use
16848       # them.
16849       ld_shlibs_GCJ=no
16850       ;;
16851
16852     beos*)
16853       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16854         allow_undefined_flag_GCJ=unsupported
16855         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16856         # support --undefined.  This deserves some investigation.  FIXME
16857         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16858       else
16859         ld_shlibs_GCJ=no
16860       fi
16861       ;;
16862
16863     cygwin* | mingw* | pw32*)
16864       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16865       # as there is no search path for DLLs.
16866       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867       allow_undefined_flag_GCJ=unsupported
16868       always_export_symbols_GCJ=no
16869       enable_shared_with_static_runtimes_GCJ=yes
16870       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16871
16872       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16873         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16874         # If the export-symbols file already is a .def file (1st line
16875         # is EXPORTS), use it as is; otherwise, prepend...
16876         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16877           cp $export_symbols $output_objdir/$soname.def;
16878         else
16879           echo EXPORTS > $output_objdir/$soname.def;
16880           cat $export_symbols >> $output_objdir/$soname.def;
16881         fi~
16882         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16883       else
16884         ld_shlibs_GCJ=no
16885       fi
16886       ;;
16887
16888     interix3*)
16889       hardcode_direct_GCJ=no
16890       hardcode_shlibpath_var_GCJ=no
16891       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16892       export_dynamic_flag_spec_GCJ='${wl}-E'
16893       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16894       # Instead, shared libraries are loaded at an image base (0x10000000 by
16895       # default) and relocated if they conflict, which is a slow very memory
16896       # consuming and fragmenting process.  To avoid this, we pick a random,
16897       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16898       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16899       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'
16900       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'
16901       ;;
16902
16903     linux*)
16904       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16905         tmp_addflag=
16906         case $cc_basename,$host_cpu in
16907         pgcc*)                          # Portland Group C compiler
16908           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'
16909           tmp_addflag=' $pic_flag'
16910           ;;
16911         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16912           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'
16913           tmp_addflag=' $pic_flag -Mnomain' ;;
16914         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16915           tmp_addflag=' -i_dynamic' ;;
16916         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16917           tmp_addflag=' -i_dynamic -nofor_main' ;;
16918         ifc* | ifort*)                  # Intel Fortran compiler
16919           tmp_addflag=' -nofor_main' ;;
16920         esac
16921         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16922
16923         if test $supports_anon_versioning = yes; then
16924           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16925   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16926   $echo "local: *; };" >> $output_objdir/$libname.ver~
16927           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16928         fi
16929       else
16930         ld_shlibs_GCJ=no
16931       fi
16932       ;;
16933
16934     netbsd*)
16935       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16936         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16937         wlarc=
16938       else
16939         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16940         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16941       fi
16942       ;;
16943
16944     solaris*)
16945       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16946         ld_shlibs_GCJ=no
16947         cat <<EOF 1>&2
16948
16949 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16950 *** create shared libraries on Solaris systems.  Therefore, libtool
16951 *** is disabling shared libraries support.  We urge you to upgrade GNU
16952 *** binutils to release 2.9.1 or newer.  Another option is to modify
16953 *** your PATH or compiler configuration so that the native linker is
16954 *** used, and then restart.
16955
16956 EOF
16957       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16958         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16959         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16960       else
16961         ld_shlibs_GCJ=no
16962       fi
16963       ;;
16964
16965     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16966       case `$LD -v 2>&1` in
16967         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
16968         ld_shlibs_GCJ=no
16969         cat <<_LT_EOF 1>&2
16970
16971 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16972 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16973 *** is disabling shared libraries support.  We urge you to upgrade GNU
16974 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16975 *** your PATH or compiler configuration so that the native linker is
16976 *** used, and then restart.
16977
16978 _LT_EOF
16979         ;;
16980         *)
16981           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16982             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16983             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16984             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16985           else
16986             ld_shlibs_GCJ=no
16987           fi
16988         ;;
16989       esac
16990       ;;
16991
16992     sunos4*)
16993       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16994       wlarc=
16995       hardcode_direct_GCJ=yes
16996       hardcode_shlibpath_var_GCJ=no
16997       ;;
16998
16999     *)
17000       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17001         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17002         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17003       else
17004         ld_shlibs_GCJ=no
17005       fi
17006       ;;
17007     esac
17008
17009     if test "$ld_shlibs_GCJ" = no; then
17010       runpath_var=
17011       hardcode_libdir_flag_spec_GCJ=
17012       export_dynamic_flag_spec_GCJ=
17013       whole_archive_flag_spec_GCJ=
17014     fi
17015   else
17016     # PORTME fill in a description of your system's linker (not GNU ld)
17017     case $host_os in
17018     aix3*)
17019       allow_undefined_flag_GCJ=unsupported
17020       always_export_symbols_GCJ=yes
17021       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'
17022       # Note: this linker hardcodes the directories in LIBPATH if there
17023       # are no directories specified by -L.
17024       hardcode_minus_L_GCJ=yes
17025       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17026         # Neither direct hardcoding nor static linking is supported with a
17027         # broken collect2.
17028         hardcode_direct_GCJ=unsupported
17029       fi
17030       ;;
17031
17032     aix4* | aix5*)
17033       if test "$host_cpu" = ia64; then
17034         # On IA64, the linker does run time linking by default, so we don't
17035         # have to do anything special.
17036         aix_use_runtimelinking=no
17037         exp_sym_flag='-Bexport'
17038         no_entry_flag=""
17039       else
17040         # If we're using GNU nm, then we don't want the "-C" option.
17041         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17042         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17043           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'
17044         else
17045           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'
17046         fi
17047         aix_use_runtimelinking=no
17048
17049         # Test if we are trying to use run time linking or normal
17050         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17051         # need to do runtime linking.
17052         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17053           for ld_flag in $LDFLAGS; do
17054           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17055             aix_use_runtimelinking=yes
17056             break
17057           fi
17058           done
17059           ;;
17060         esac
17061
17062         exp_sym_flag='-bexport'
17063         no_entry_flag='-bnoentry'
17064       fi
17065
17066       # When large executables or shared objects are built, AIX ld can
17067       # have problems creating the table of contents.  If linking a library
17068       # or program results in "error TOC overflow" add -mminimal-toc to
17069       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17070       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17071
17072       archive_cmds_GCJ=''
17073       hardcode_direct_GCJ=yes
17074       hardcode_libdir_separator_GCJ=':'
17075       link_all_deplibs_GCJ=yes
17076
17077       if test "$GCC" = yes; then
17078         case $host_os in aix4.[012]|aix4.[012].*)
17079         # We only want to do this on AIX 4.2 and lower, the check
17080         # below for broken collect2 doesn't work under 4.3+
17081           collect2name=`${CC} -print-prog-name=collect2`
17082           if test -f "$collect2name" && \
17083            strings "$collect2name" | grep resolve_lib_name >/dev/null
17084           then
17085           # We have reworked collect2
17086           hardcode_direct_GCJ=yes
17087           else
17088           # We have old collect2
17089           hardcode_direct_GCJ=unsupported
17090           # It fails to find uninstalled libraries when the uninstalled
17091           # path is not listed in the libpath.  Setting hardcode_minus_L
17092           # to unsupported forces relinking
17093           hardcode_minus_L_GCJ=yes
17094           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17095           hardcode_libdir_separator_GCJ=
17096           fi
17097           ;;
17098         esac
17099         shared_flag='-shared'
17100         if test "$aix_use_runtimelinking" = yes; then
17101           shared_flag="$shared_flag "'${wl}-G'
17102         fi
17103       else
17104         # not using gcc
17105         if test "$host_cpu" = ia64; then
17106         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17107         # chokes on -Wl,-G. The following line is correct:
17108           shared_flag='-G'
17109         else
17110           if test "$aix_use_runtimelinking" = yes; then
17111             shared_flag='${wl}-G'
17112           else
17113             shared_flag='${wl}-bM:SRE'
17114           fi
17115         fi
17116       fi
17117
17118       # It seems that -bexpall does not export symbols beginning with
17119       # underscore (_), so it is better to generate a list of symbols to export.
17120       always_export_symbols_GCJ=yes
17121       if test "$aix_use_runtimelinking" = yes; then
17122         # Warning - without using the other runtime loading flags (-brtl),
17123         # -berok will link without error, but may produce a broken library.
17124         allow_undefined_flag_GCJ='-berok'
17125        # Determine the default libpath from the value encoded in an empty executable.
17126        cat >conftest.$ac_ext <<_ACEOF
17127 /* confdefs.h.  */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h.  */
17132
17133 int
17134 main ()
17135 {
17136
17137   ;
17138   return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145   *) ac_try_echo=$ac_try;;
17146 esac
17147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148   (eval "$ac_link") 2>conftest.er1
17149   ac_status=$?
17150   grep -v '^ *+' conftest.er1 >conftest.err
17151   rm -f conftest.er1
17152   cat conftest.err >&5
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } && {
17155          test -z "$ac_c_werror_flag" ||
17156          test ! -s conftest.err
17157        } && test -s conftest$ac_exeext &&
17158        $as_test_x conftest$ac_exeext; then
17159   
17160 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17161 }'`
17162 # Check for a 64-bit object if we didn't find anything.
17163 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17164 }'`; fi
17165 else
17166   echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17168
17169         
17170 fi
17171
17172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17173       conftest$ac_exeext conftest.$ac_ext
17174 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17175
17176        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17177         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"
17178        else
17179         if test "$host_cpu" = ia64; then
17180           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17181           allow_undefined_flag_GCJ="-z nodefs"
17182           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"
17183         else
17184          # Determine the default libpath from the value encoded in an empty executable.
17185          cat >conftest.$ac_ext <<_ACEOF
17186 /* confdefs.h.  */
17187 _ACEOF
17188 cat confdefs.h >>conftest.$ac_ext
17189 cat >>conftest.$ac_ext <<_ACEOF
17190 /* end confdefs.h.  */
17191
17192 int
17193 main ()
17194 {
17195
17196   ;
17197   return 0;
17198 }
17199 _ACEOF
17200 rm -f conftest.$ac_objext conftest$ac_exeext
17201 if { (ac_try="$ac_link"
17202 case "(($ac_try" in
17203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204   *) ac_try_echo=$ac_try;;
17205 esac
17206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207   (eval "$ac_link") 2>conftest.er1
17208   ac_status=$?
17209   grep -v '^ *+' conftest.er1 >conftest.err
17210   rm -f conftest.er1
17211   cat conftest.err >&5
17212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213   (exit $ac_status); } && {
17214          test -z "$ac_c_werror_flag" ||
17215          test ! -s conftest.err
17216        } && test -s conftest$ac_exeext &&
17217        $as_test_x conftest$ac_exeext; then
17218   
17219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17220 }'`
17221 # Check for a 64-bit object if we didn't find anything.
17222 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17223 }'`; fi
17224 else
17225   echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228         
17229 fi
17230
17231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17232       conftest$ac_exeext conftest.$ac_ext
17233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17234
17235          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17236           # Warning - without using the other run time loading flags,
17237           # -berok will link without error, but may produce a broken library.
17238           no_undefined_flag_GCJ=' ${wl}-bernotok'
17239           allow_undefined_flag_GCJ=' ${wl}-berok'
17240           # Exported symbols can be pulled into shared objects from archives
17241           whole_archive_flag_spec_GCJ='$convenience'
17242           archive_cmds_need_lc_GCJ=yes
17243           # This is similar to how AIX traditionally builds its shared libraries.
17244           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'
17245         fi
17246       fi
17247       ;;
17248
17249     amigaos*)
17250       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)'
17251       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17252       hardcode_minus_L_GCJ=yes
17253       # see comment about different semantics on the GNU ld section
17254       ld_shlibs_GCJ=no
17255       ;;
17256
17257     bsdi[45]*)
17258       export_dynamic_flag_spec_GCJ=-rdynamic
17259       ;;
17260
17261     cygwin* | mingw* | pw32*)
17262       # When not using gcc, we currently assume that we are using
17263       # Microsoft Visual C++.
17264       # hardcode_libdir_flag_spec is actually meaningless, as there is
17265       # no search path for DLLs.
17266       hardcode_libdir_flag_spec_GCJ=' '
17267       allow_undefined_flag_GCJ=unsupported
17268       # Tell ltmain to make .lib files, not .a files.
17269       libext=lib
17270       # Tell ltmain to make .dll files, not .so files.
17271       shrext_cmds=".dll"
17272       # FIXME: Setting linknames here is a bad hack.
17273       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17274       # The linker will automatically build a .lib file if we build a DLL.
17275       old_archive_From_new_cmds_GCJ='true'
17276       # FIXME: Should let the user specify the lib program.
17277       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17278       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17279       enable_shared_with_static_runtimes_GCJ=yes
17280       ;;
17281
17282     darwin* | rhapsody*)
17283       case $host_os in
17284         rhapsody* | darwin1.[012])
17285          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17286          ;;
17287        *) # Darwin 1.3 on
17288          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17289            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17290          else
17291            case ${MACOSX_DEPLOYMENT_TARGET} in
17292              10.[012])
17293                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17294                ;;
17295              10.*)
17296                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17297                ;;
17298            esac
17299          fi
17300          ;;
17301       esac
17302       archive_cmds_need_lc_GCJ=no
17303       hardcode_direct_GCJ=no
17304       hardcode_automatic_GCJ=yes
17305       hardcode_shlibpath_var_GCJ=unsupported
17306       whole_archive_flag_spec_GCJ=''
17307       link_all_deplibs_GCJ=yes
17308     if test "$GCC" = yes ; then
17309         output_verbose_link_cmd='echo'
17310         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17311       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17312       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17313       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17314       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}'
17315     else
17316       case $cc_basename in
17317         xlc*)
17318          output_verbose_link_cmd='echo'
17319          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17320          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17321           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17322          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17323           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}'
17324           ;;
17325        *)
17326          ld_shlibs_GCJ=no
17327           ;;
17328       esac
17329     fi
17330       ;;
17331
17332     dgux*)
17333       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17334       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17335       hardcode_shlibpath_var_GCJ=no
17336       ;;
17337
17338     freebsd1*)
17339       ld_shlibs_GCJ=no
17340       ;;
17341
17342     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17343     # support.  Future versions do this automatically, but an explicit c++rt0.o
17344     # does not break anything, and helps significantly (at the cost of a little
17345     # extra space).
17346     freebsd2.2*)
17347       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17348       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17349       hardcode_direct_GCJ=yes
17350       hardcode_shlibpath_var_GCJ=no
17351       ;;
17352
17353     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17354     freebsd2*)
17355       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17356       hardcode_direct_GCJ=yes
17357       hardcode_minus_L_GCJ=yes
17358       hardcode_shlibpath_var_GCJ=no
17359       ;;
17360
17361     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17362     freebsd* | kfreebsd*-gnu | dragonfly*)
17363       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17364       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17365       hardcode_direct_GCJ=yes
17366       hardcode_shlibpath_var_GCJ=no
17367       ;;
17368
17369     hpux9*)
17370       if test "$GCC" = yes; then
17371         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'
17372       else
17373         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'
17374       fi
17375       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17376       hardcode_libdir_separator_GCJ=:
17377       hardcode_direct_GCJ=yes
17378
17379       # hardcode_minus_L: Not really in the search PATH,
17380       # but as the default location of the library.
17381       hardcode_minus_L_GCJ=yes
17382       export_dynamic_flag_spec_GCJ='${wl}-E'
17383       ;;
17384
17385     hpux10*)
17386       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17387         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17388       else
17389         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17390       fi
17391       if test "$with_gnu_ld" = no; then
17392         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17393         hardcode_libdir_separator_GCJ=:
17394
17395         hardcode_direct_GCJ=yes
17396         export_dynamic_flag_spec_GCJ='${wl}-E'
17397
17398         # hardcode_minus_L: Not really in the search PATH,
17399         # but as the default location of the library.
17400         hardcode_minus_L_GCJ=yes
17401       fi
17402       ;;
17403
17404     hpux11*)
17405       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17406         case $host_cpu in
17407         hppa*64*)
17408           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17409           ;;
17410         ia64*)
17411           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17412           ;;
17413         *)
17414           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17415           ;;
17416         esac
17417       else
17418         case $host_cpu in
17419         hppa*64*)
17420           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17421           ;;
17422         ia64*)
17423           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17424           ;;
17425         *)
17426           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17427           ;;
17428         esac
17429       fi
17430       if test "$with_gnu_ld" = no; then
17431         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17432         hardcode_libdir_separator_GCJ=:
17433
17434         case $host_cpu in
17435         hppa*64*|ia64*)
17436           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17437           hardcode_direct_GCJ=no
17438           hardcode_shlibpath_var_GCJ=no
17439           ;;
17440         *)
17441           hardcode_direct_GCJ=yes
17442           export_dynamic_flag_spec_GCJ='${wl}-E'
17443
17444           # hardcode_minus_L: Not really in the search PATH,
17445           # but as the default location of the library.
17446           hardcode_minus_L_GCJ=yes
17447           ;;
17448         esac
17449       fi
17450       ;;
17451
17452     irix5* | irix6* | nonstopux*)
17453       if test "$GCC" = yes; then
17454         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'
17455       else
17456         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'
17457         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17458       fi
17459       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17460       hardcode_libdir_separator_GCJ=:
17461       link_all_deplibs_GCJ=yes
17462       ;;
17463
17464     netbsd*)
17465       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17466         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17467       else
17468         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17469       fi
17470       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471       hardcode_direct_GCJ=yes
17472       hardcode_shlibpath_var_GCJ=no
17473       ;;
17474
17475     newsos6)
17476       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477       hardcode_direct_GCJ=yes
17478       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17479       hardcode_libdir_separator_GCJ=:
17480       hardcode_shlibpath_var_GCJ=no
17481       ;;
17482
17483     openbsd*)
17484       hardcode_direct_GCJ=yes
17485       hardcode_shlibpath_var_GCJ=no
17486       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17487         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17488         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17489         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17490         export_dynamic_flag_spec_GCJ='${wl}-E'
17491       else
17492        case $host_os in
17493          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17494            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17495            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17496            ;;
17497          *)
17498            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17499            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17500            ;;
17501        esac
17502       fi
17503       ;;
17504
17505     os2*)
17506       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17507       hardcode_minus_L_GCJ=yes
17508       allow_undefined_flag_GCJ=unsupported
17509       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'
17510       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17511       ;;
17512
17513     osf3*)
17514       if test "$GCC" = yes; then
17515         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17516         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'
17517       else
17518         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17519         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'
17520       fi
17521       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17522       hardcode_libdir_separator_GCJ=:
17523       ;;
17524
17525     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17526       if test "$GCC" = yes; then
17527         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17528         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'
17529         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17530       else
17531         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17532         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'
17533         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~
17534         $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'
17535
17536         # Both c and cxx compiler support -rpath directly
17537         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17538       fi
17539       hardcode_libdir_separator_GCJ=:
17540       ;;
17541
17542     solaris*)
17543       no_undefined_flag_GCJ=' -z text'
17544       if test "$GCC" = yes; then
17545         wlarc='${wl}'
17546         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17547         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17548           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17549       else
17550         wlarc=''
17551         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17552         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17553         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17554       fi
17555       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17556       hardcode_shlibpath_var_GCJ=no
17557       case $host_os in
17558       solaris2.[0-5] | solaris2.[0-5].*) ;;
17559       *)
17560         # The compiler driver will combine linker options so we
17561         # cannot just pass the convience library names through
17562         # without $wl, iff we do not link with $LD.
17563         # Luckily, gcc supports the same syntax we need for Sun Studio.
17564         # Supported since Solaris 2.6 (maybe 2.5.1?)
17565         case $wlarc in
17566         '')
17567           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17568         *)
17569           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17570         esac ;;
17571       esac
17572       link_all_deplibs_GCJ=yes
17573       ;;
17574
17575     sunos4*)
17576       if test "x$host_vendor" = xsequent; then
17577         # Use $CC to link under sequent, because it throws in some extra .o
17578         # files that make .init and .fini sections work.
17579         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17580       else
17581         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17582       fi
17583       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17584       hardcode_direct_GCJ=yes
17585       hardcode_minus_L_GCJ=yes
17586       hardcode_shlibpath_var_GCJ=no
17587       ;;
17588
17589     sysv4)
17590       case $host_vendor in
17591         sni)
17592           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17593           hardcode_direct_GCJ=yes # is this really true???
17594         ;;
17595         siemens)
17596           ## LD is ld it makes a PLAMLIB
17597           ## CC just makes a GrossModule.
17598           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17599           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17600           hardcode_direct_GCJ=no
17601         ;;
17602         motorola)
17603           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17604           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17605         ;;
17606       esac
17607       runpath_var='LD_RUN_PATH'
17608       hardcode_shlibpath_var_GCJ=no
17609       ;;
17610
17611     sysv4.3*)
17612       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613       hardcode_shlibpath_var_GCJ=no
17614       export_dynamic_flag_spec_GCJ='-Bexport'
17615       ;;
17616
17617     sysv4*MP*)
17618       if test -d /usr/nec; then
17619         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620         hardcode_shlibpath_var_GCJ=no
17621         runpath_var=LD_RUN_PATH
17622         hardcode_runpath_var=yes
17623         ld_shlibs_GCJ=yes
17624       fi
17625       ;;
17626
17627     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17628       no_undefined_flag_GCJ='${wl}-z,text'
17629       archive_cmds_need_lc_GCJ=no
17630       hardcode_shlibpath_var_GCJ=no
17631       runpath_var='LD_RUN_PATH'
17632
17633       if test "$GCC" = yes; then
17634         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17635         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17636       else
17637         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17638         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17639       fi
17640       ;;
17641
17642     sysv5* | sco3.2v5* | sco5v6*)
17643       # Note: We can NOT use -z defs as we might desire, because we do not
17644       # link with -lc, and that would cause any symbols used from libc to
17645       # always be unresolved, which means just about no library would
17646       # ever link correctly.  If we're not using GNU ld we use -z text
17647       # though, which does catch some bad symbols but isn't as heavy-handed
17648       # as -z defs.
17649       no_undefined_flag_GCJ='${wl}-z,text'
17650       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17651       archive_cmds_need_lc_GCJ=no
17652       hardcode_shlibpath_var_GCJ=no
17653       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17654       hardcode_libdir_separator_GCJ=':'
17655       link_all_deplibs_GCJ=yes
17656       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17657       runpath_var='LD_RUN_PATH'
17658
17659       if test "$GCC" = yes; then
17660         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17661         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17662       else
17663         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17664         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17665       fi
17666       ;;
17667
17668     uts4*)
17669       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17670       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17671       hardcode_shlibpath_var_GCJ=no
17672       ;;
17673
17674     *)
17675       ld_shlibs_GCJ=no
17676       ;;
17677     esac
17678   fi
17679
17680 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17681 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17682 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17683
17684 #
17685 # Do we need to explicitly link libc?
17686 #
17687 case "x$archive_cmds_need_lc_GCJ" in
17688 x|xyes)
17689   # Assume -lc should be added
17690   archive_cmds_need_lc_GCJ=yes
17691
17692   if test "$enable_shared" = yes && test "$GCC" = yes; then
17693     case $archive_cmds_GCJ in
17694     *'~'*)
17695       # FIXME: we may have to deal with multi-command sequences.
17696       ;;
17697     '$CC '*)
17698       # Test whether the compiler implicitly links with -lc since on some
17699       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17700       # to ld, don't add -lc before -lgcc.
17701       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17702 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17703       $rm conftest*
17704       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17705
17706       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707   (eval $ac_compile) 2>&5
17708   ac_status=$?
17709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710   (exit $ac_status); } 2>conftest.err; then
17711         soname=conftest
17712         lib=conftest
17713         libobjs=conftest.$ac_objext
17714         deplibs=
17715         wl=$lt_prog_compiler_wl_GCJ
17716         pic_flag=$lt_prog_compiler_pic_GCJ
17717         compiler_flags=-v
17718         linker_flags=-v
17719         verstring=
17720         output_objdir=.
17721         libname=conftest
17722         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17723         allow_undefined_flag_GCJ=
17724         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17725   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17726   ac_status=$?
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); }
17729         then
17730           archive_cmds_need_lc_GCJ=no
17731         else
17732           archive_cmds_need_lc_GCJ=yes
17733         fi
17734         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17735       else
17736         cat conftest.err 1>&5
17737       fi
17738       $rm conftest*
17739       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17740 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17741       ;;
17742     esac
17743   fi
17744   ;;
17745 esac
17746
17747 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17748 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17749 library_names_spec=
17750 libname_spec='lib$name'
17751 soname_spec=
17752 shrext_cmds=".so"
17753 postinstall_cmds=
17754 postuninstall_cmds=
17755 finish_cmds=
17756 finish_eval=
17757 shlibpath_var=
17758 shlibpath_overrides_runpath=unknown
17759 version_type=none
17760 dynamic_linker="$host_os ld.so"
17761 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17762 if test "$GCC" = yes; then
17763   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17764   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17765     # if the path contains ";" then we assume it to be the separator
17766     # otherwise default to the standard path separator (i.e. ":") - it is
17767     # assumed that no part of a normal pathname contains ";" but that should
17768     # okay in the real world where ";" in dirpaths is itself problematic.
17769     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17770   else
17771     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17772   fi
17773 else
17774   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17775 fi
17776 need_lib_prefix=unknown
17777 hardcode_into_libs=no
17778
17779 # when you set need_version to no, make sure it does not cause -set_version
17780 # flags to be left without arguments
17781 need_version=unknown
17782
17783 case $host_os in
17784 aix3*)
17785   version_type=linux
17786   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17787   shlibpath_var=LIBPATH
17788
17789   # AIX 3 has no versioning support, so we append a major version to the name.
17790   soname_spec='${libname}${release}${shared_ext}$major'
17791   ;;
17792
17793 aix4* | aix5*)
17794   version_type=linux
17795   need_lib_prefix=no
17796   need_version=no
17797   hardcode_into_libs=yes
17798   if test "$host_cpu" = ia64; then
17799     # AIX 5 supports IA64
17800     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17801     shlibpath_var=LD_LIBRARY_PATH
17802   else
17803     # With GCC up to 2.95.x, collect2 would create an import file
17804     # for dependence libraries.  The import file would start with
17805     # the line `#! .'.  This would cause the generated library to
17806     # depend on `.', always an invalid library.  This was fixed in
17807     # development snapshots of GCC prior to 3.0.
17808     case $host_os in
17809       aix4 | aix4.[01] | aix4.[01].*)
17810       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17811            echo ' yes '
17812            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17813         :
17814       else
17815         can_build_shared=no
17816       fi
17817       ;;
17818     esac
17819     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17820     # soname into executable. Probably we can add versioning support to
17821     # collect2, so additional links can be useful in future.
17822     if test "$aix_use_runtimelinking" = yes; then
17823       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17824       # instead of lib<name>.a to let people know that these are not
17825       # typical AIX shared libraries.
17826       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17827     else
17828       # We preserve .a as extension for shared libraries through AIX4.2
17829       # and later when we are not doing run time linking.
17830       library_names_spec='${libname}${release}.a $libname.a'
17831       soname_spec='${libname}${release}${shared_ext}$major'
17832     fi
17833     shlibpath_var=LIBPATH
17834   fi
17835   ;;
17836
17837 amigaos*)
17838   library_names_spec='$libname.ixlibrary $libname.a'
17839   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17840   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'
17841   ;;
17842
17843 beos*)
17844   library_names_spec='${libname}${shared_ext}'
17845   dynamic_linker="$host_os ld.so"
17846   shlibpath_var=LIBRARY_PATH
17847   ;;
17848
17849 bsdi[45]*)
17850   version_type=linux
17851   need_version=no
17852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17853   soname_spec='${libname}${release}${shared_ext}$major'
17854   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17855   shlibpath_var=LD_LIBRARY_PATH
17856   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17857   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17858   # the default ld.so.conf also contains /usr/contrib/lib and
17859   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17860   # libtool to hard-code these into programs
17861   ;;
17862
17863 cygwin* | mingw* | pw32*)
17864   version_type=windows
17865   shrext_cmds=".dll"
17866   need_version=no
17867   need_lib_prefix=no
17868
17869   case $GCC,$host_os in
17870   yes,cygwin* | yes,mingw* | yes,pw32*)
17871     library_names_spec='$libname.dll.a'
17872     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17873     postinstall_cmds='base_file=`basename \${file}`~
17874       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17875       dldir=$destdir/`dirname \$dlpath`~
17876       test -d \$dldir || mkdir -p \$dldir~
17877       $install_prog $dir/$dlname \$dldir/$dlname~
17878       chmod a+x \$dldir/$dlname'
17879     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17880       dlpath=$dir/\$dldll~
17881        $rm \$dlpath'
17882     shlibpath_overrides_runpath=yes
17883
17884     case $host_os in
17885     cygwin*)
17886       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17887       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17888       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17889       ;;
17890     mingw*)
17891       # MinGW DLLs use traditional 'lib' prefix
17892       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17893       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17894       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17895         # It is most probably a Windows format PATH printed by
17896         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17897         # path with ; separators, and with drive letters. We can handle the
17898         # drive letters (cygwin fileutils understands them), so leave them,
17899         # especially as we might pass files found there to a mingw objdump,
17900         # which wouldn't understand a cygwinified path. Ahh.
17901         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17902       else
17903         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17904       fi
17905       ;;
17906     pw32*)
17907       # pw32 DLLs use 'pw' prefix rather than 'lib'
17908       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17909       ;;
17910     esac
17911     ;;
17912
17913   linux*)
17914     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
17915       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17916       supports_anon_versioning=no
17917       case `$LD -v 2>/dev/null` in
17918         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17919         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17920         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17921         *\ 2.11.*) ;; # other 2.11 versions
17922         *) supports_anon_versioning=yes ;;
17923       esac
17924       if test $supports_anon_versioning = yes; then
17925         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17927 $echo "local: *; };" >> $output_objdir/$libname.ver~
17928         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17929       else
17930         $archive_expsym_cmds="$archive_cmds"
17931       fi
17932     else
17933       ld_shlibs=no
17934     fi
17935     ;;
17936
17937   *)
17938     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17939     ;;
17940   esac
17941   dynamic_linker='Win32 ld.exe'
17942   # FIXME: first we should search . and the directory the executable is in
17943   shlibpath_var=PATH
17944   ;;
17945
17946 darwin* | rhapsody*)
17947   dynamic_linker="$host_os dyld"
17948   version_type=darwin
17949   need_lib_prefix=no
17950   need_version=no
17951   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17952   soname_spec='${libname}${release}${major}$shared_ext'
17953   shlibpath_overrides_runpath=yes
17954   shlibpath_var=DYLD_LIBRARY_PATH
17955   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17956   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17957   if test "$GCC" = yes; then
17958     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17959   else
17960     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17961   fi
17962   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17963   ;;
17964
17965 dgux*)
17966   version_type=linux
17967   need_lib_prefix=no
17968   need_version=no
17969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17970   soname_spec='${libname}${release}${shared_ext}$major'
17971   shlibpath_var=LD_LIBRARY_PATH
17972   ;;
17973
17974 freebsd1*)
17975   dynamic_linker=no
17976   ;;
17977
17978 kfreebsd*-gnu)
17979   version_type=linux
17980   need_lib_prefix=no
17981   need_version=no
17982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17983   soname_spec='${libname}${release}${shared_ext}$major'
17984   shlibpath_var=LD_LIBRARY_PATH
17985   shlibpath_overrides_runpath=no
17986   hardcode_into_libs=yes
17987   dynamic_linker='GNU ld.so'
17988   ;;
17989
17990 freebsd* | dragonfly*)
17991   # DragonFly does not have aout.  When/if they implement a new
17992   # versioning mechanism, adjust this.
17993   if test -x /usr/bin/objformat; then
17994     objformat=`/usr/bin/objformat`
17995   else
17996     case $host_os in
17997     freebsd[123]*) objformat=aout ;;
17998     *) objformat=elf ;;
17999     esac
18000   fi
18001   # Handle Gentoo/FreeBSD as it was Linux
18002   case $host_vendor in
18003     gentoo)
18004       version_type=linux ;;
18005     *)
18006       version_type=freebsd-$objformat ;;
18007   esac
18008
18009   case $version_type in
18010     freebsd-elf*)
18011       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18012       need_version=no
18013       need_lib_prefix=no
18014       ;;
18015     freebsd-*)
18016       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18017       need_version=yes
18018       ;;
18019     linux)
18020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18021       soname_spec='${libname}${release}${shared_ext}$major'
18022       need_lib_prefix=no
18023       need_version=no
18024       ;;
18025   esac
18026   shlibpath_var=LD_LIBRARY_PATH
18027   case $host_os in
18028   freebsd2*)
18029     shlibpath_overrides_runpath=yes
18030     ;;
18031   freebsd3.[01]* | freebsdelf3.[01]*)
18032     shlibpath_overrides_runpath=yes
18033     hardcode_into_libs=yes
18034     ;;
18035   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18036   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18037     shlibpath_overrides_runpath=no
18038     hardcode_into_libs=yes
18039     ;;
18040   freebsd*) # from 4.6 on
18041     shlibpath_overrides_runpath=yes
18042     hardcode_into_libs=yes
18043     ;;
18044   esac
18045   ;;
18046
18047 gnu*)
18048   version_type=linux
18049   need_lib_prefix=no
18050   need_version=no
18051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18052   soname_spec='${libname}${release}${shared_ext}$major'
18053   shlibpath_var=LD_LIBRARY_PATH
18054   hardcode_into_libs=yes
18055   ;;
18056
18057 hpux9* | hpux10* | hpux11*)
18058   # Give a soname corresponding to the major version so that dld.sl refuses to
18059   # link against other versions.
18060   version_type=sunos
18061   need_lib_prefix=no
18062   need_version=no
18063   case $host_cpu in
18064   ia64*)
18065     shrext_cmds='.so'
18066     hardcode_into_libs=yes
18067     dynamic_linker="$host_os dld.so"
18068     shlibpath_var=LD_LIBRARY_PATH
18069     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071     soname_spec='${libname}${release}${shared_ext}$major'
18072     if test "X$HPUX_IA64_MODE" = X32; then
18073       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18074     else
18075       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18076     fi
18077     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18078     ;;
18079    hppa*64*)
18080      shrext_cmds='.sl'
18081      hardcode_into_libs=yes
18082      dynamic_linker="$host_os dld.sl"
18083      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18084      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18086      soname_spec='${libname}${release}${shared_ext}$major'
18087      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18088      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18089      ;;
18090    *)
18091     shrext_cmds='.sl'
18092     dynamic_linker="$host_os dld.sl"
18093     shlibpath_var=SHLIB_PATH
18094     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18096     soname_spec='${libname}${release}${shared_ext}$major'
18097     ;;
18098   esac
18099   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18100   postinstall_cmds='chmod 555 $lib'
18101   ;;
18102
18103 interix3*)
18104   version_type=linux
18105   need_lib_prefix=no
18106   need_version=no
18107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18108   soname_spec='${libname}${release}${shared_ext}$major'
18109   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18110   shlibpath_var=LD_LIBRARY_PATH
18111   shlibpath_overrides_runpath=no
18112   hardcode_into_libs=yes
18113   ;;
18114
18115 irix5* | irix6* | nonstopux*)
18116   case $host_os in
18117     nonstopux*) version_type=nonstopux ;;
18118     *)
18119         if test "$lt_cv_prog_gnu_ld" = yes; then
18120                 version_type=linux
18121         else
18122                 version_type=irix
18123         fi ;;
18124   esac
18125   need_lib_prefix=no
18126   need_version=no
18127   soname_spec='${libname}${release}${shared_ext}$major'
18128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18129   case $host_os in
18130   irix5* | nonstopux*)
18131     libsuff= shlibsuff=
18132     ;;
18133   *)
18134     case $LD in # libtool.m4 will add one of these switches to LD
18135     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18136       libsuff= shlibsuff= libmagic=32-bit;;
18137     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18138       libsuff=32 shlibsuff=N32 libmagic=N32;;
18139     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18140       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18141     *) libsuff= shlibsuff= libmagic=never-match;;
18142     esac
18143     ;;
18144   esac
18145   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18146   shlibpath_overrides_runpath=no
18147   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18148   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18149   hardcode_into_libs=yes
18150   ;;
18151
18152 # No shared lib support for Linux oldld, aout, or coff.
18153 linux*oldld* | linux*aout* | linux*coff*)
18154   dynamic_linker=no
18155   ;;
18156
18157 # This must be Linux ELF.
18158 linux*)
18159   version_type=linux
18160   need_lib_prefix=no
18161   need_version=no
18162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18163   soname_spec='${libname}${release}${shared_ext}$major'
18164   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18165   shlibpath_var=LD_LIBRARY_PATH
18166   shlibpath_overrides_runpath=no
18167   # This implies no fast_install, which is unacceptable.
18168   # Some rework will be needed to allow for fast_install
18169   # before this can be enabled.
18170   hardcode_into_libs=yes
18171
18172   # Append ld.so.conf contents to the search path
18173   if test -f /etc/ld.so.conf; then
18174     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18175     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18176   fi
18177
18178   # We used to test for /lib/ld.so.1 and disable shared libraries on
18179   # powerpc, because MkLinux only supported shared libraries with the
18180   # GNU dynamic linker.  Since this was broken with cross compilers,
18181   # most powerpc-linux boxes support dynamic linking these days and
18182   # people can always --disable-shared, the test was removed, and we
18183   # assume the GNU/Linux dynamic linker is in use.
18184   dynamic_linker='GNU/Linux ld.so'
18185   ;;
18186
18187 knetbsd*-gnu)
18188   version_type=linux
18189   need_lib_prefix=no
18190   need_version=no
18191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18192   soname_spec='${libname}${release}${shared_ext}$major'
18193   shlibpath_var=LD_LIBRARY_PATH
18194   shlibpath_overrides_runpath=no
18195   hardcode_into_libs=yes
18196   dynamic_linker='GNU ld.so'
18197   ;;
18198
18199 netbsd*)
18200   version_type=sunos
18201   need_lib_prefix=no
18202   need_version=no
18203   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18205     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18206     dynamic_linker='NetBSD (a.out) ld.so'
18207   else
18208     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18209     soname_spec='${libname}${release}${shared_ext}$major'
18210     dynamic_linker='NetBSD ld.elf_so'
18211   fi
18212   shlibpath_var=LD_LIBRARY_PATH
18213   shlibpath_overrides_runpath=yes
18214   hardcode_into_libs=yes
18215   ;;
18216
18217 newsos6)
18218   version_type=linux
18219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18220   shlibpath_var=LD_LIBRARY_PATH
18221   shlibpath_overrides_runpath=yes
18222   ;;
18223
18224 nto-qnx*)
18225   version_type=linux
18226   need_lib_prefix=no
18227   need_version=no
18228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18229   soname_spec='${libname}${release}${shared_ext}$major'
18230   shlibpath_var=LD_LIBRARY_PATH
18231   shlibpath_overrides_runpath=yes
18232   ;;
18233
18234 openbsd*)
18235   version_type=sunos
18236   sys_lib_dlsearch_path_spec="/usr/lib"
18237   need_lib_prefix=no
18238   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18239   case $host_os in
18240     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18241     *)                         need_version=no  ;;
18242   esac
18243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18244   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18245   shlibpath_var=LD_LIBRARY_PATH
18246   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18247     case $host_os in
18248       openbsd2.[89] | openbsd2.[89].*)
18249         shlibpath_overrides_runpath=no
18250         ;;
18251       *)
18252         shlibpath_overrides_runpath=yes
18253         ;;
18254       esac
18255   else
18256     shlibpath_overrides_runpath=yes
18257   fi
18258   ;;
18259
18260 os2*)
18261   libname_spec='$name'
18262   shrext_cmds=".dll"
18263   need_lib_prefix=no
18264   library_names_spec='$libname${shared_ext} $libname.a'
18265   dynamic_linker='OS/2 ld.exe'
18266   shlibpath_var=LIBPATH
18267   ;;
18268
18269 osf3* | osf4* | osf5*)
18270   version_type=osf
18271   need_lib_prefix=no
18272   need_version=no
18273   soname_spec='${libname}${release}${shared_ext}$major'
18274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275   shlibpath_var=LD_LIBRARY_PATH
18276   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18277   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18278   ;;
18279
18280 solaris*)
18281   version_type=linux
18282   need_lib_prefix=no
18283   need_version=no
18284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285   soname_spec='${libname}${release}${shared_ext}$major'
18286   shlibpath_var=LD_LIBRARY_PATH
18287   shlibpath_overrides_runpath=yes
18288   hardcode_into_libs=yes
18289   # ldd complains unless libraries are executable
18290   postinstall_cmds='chmod +x $lib'
18291   ;;
18292
18293 sunos4*)
18294   version_type=sunos
18295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18296   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18297   shlibpath_var=LD_LIBRARY_PATH
18298   shlibpath_overrides_runpath=yes
18299   if test "$with_gnu_ld" = yes; then
18300     need_lib_prefix=no
18301   fi
18302   need_version=yes
18303   ;;
18304
18305 sysv4 | sysv4.3*)
18306   version_type=linux
18307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308   soname_spec='${libname}${release}${shared_ext}$major'
18309   shlibpath_var=LD_LIBRARY_PATH
18310   case $host_vendor in
18311     sni)
18312       shlibpath_overrides_runpath=no
18313       need_lib_prefix=no
18314       export_dynamic_flag_spec='${wl}-Blargedynsym'
18315       runpath_var=LD_RUN_PATH
18316       ;;
18317     siemens)
18318       need_lib_prefix=no
18319       ;;
18320     motorola)
18321       need_lib_prefix=no
18322       need_version=no
18323       shlibpath_overrides_runpath=no
18324       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18325       ;;
18326   esac
18327   ;;
18328
18329 sysv4*MP*)
18330   if test -d /usr/nec ;then
18331     version_type=linux
18332     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18333     soname_spec='$libname${shared_ext}.$major'
18334     shlibpath_var=LD_LIBRARY_PATH
18335   fi
18336   ;;
18337
18338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18339   version_type=freebsd-elf
18340   need_lib_prefix=no
18341   need_version=no
18342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18343   soname_spec='${libname}${release}${shared_ext}$major'
18344   shlibpath_var=LD_LIBRARY_PATH
18345   hardcode_into_libs=yes
18346   if test "$with_gnu_ld" = yes; then
18347     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18348     shlibpath_overrides_runpath=no
18349   else
18350     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18351     shlibpath_overrides_runpath=yes
18352     case $host_os in
18353       sco3.2v5*)
18354         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18355         ;;
18356     esac
18357   fi
18358   sys_lib_dlsearch_path_spec='/usr/lib'
18359   ;;
18360
18361 uts4*)
18362   version_type=linux
18363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18364   soname_spec='${libname}${release}${shared_ext}$major'
18365   shlibpath_var=LD_LIBRARY_PATH
18366   ;;
18367
18368 *)
18369   dynamic_linker=no
18370   ;;
18371 esac
18372 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18373 echo "${ECHO_T}$dynamic_linker" >&6; }
18374 test "$dynamic_linker" = no && can_build_shared=no
18375
18376 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18377 if test "$GCC" = yes; then
18378   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18379 fi
18380
18381 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18382 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18383 hardcode_action_GCJ=
18384 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18385    test -n "$runpath_var_GCJ" || \
18386    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18387
18388   # We can hardcode non-existant directories.
18389   if test "$hardcode_direct_GCJ" != no &&
18390      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18391      # have to relink, otherwise we might link with an installed library
18392      # when we should be linking with a yet-to-be-installed one
18393      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18394      test "$hardcode_minus_L_GCJ" != no; then
18395     # Linking always hardcodes the temporary library directory.
18396     hardcode_action_GCJ=relink
18397   else
18398     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18399     hardcode_action_GCJ=immediate
18400   fi
18401 else
18402   # We cannot hardcode anything, or else we can only hardcode existing
18403   # directories.
18404   hardcode_action_GCJ=unsupported
18405 fi
18406 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18407 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18408
18409 if test "$hardcode_action_GCJ" = relink; then
18410   # Fast installation is not supported
18411   enable_fast_install=no
18412 elif test "$shlibpath_overrides_runpath" = yes ||
18413      test "$enable_shared" = no; then
18414   # Fast installation is not necessary
18415   enable_fast_install=needless
18416 fi
18417
18418
18419 # The else clause should only fire when bootstrapping the
18420 # libtool distribution, otherwise you forgot to ship ltmain.sh
18421 # with your package, and you will get complaints that there are
18422 # no rules to generate ltmain.sh.
18423 if test -f "$ltmain"; then
18424   # See if we are running on zsh, and set the options which allow our commands through
18425   # without removal of \ escapes.
18426   if test -n "${ZSH_VERSION+set}" ; then
18427     setopt NO_GLOB_SUBST
18428   fi
18429   # Now quote all the things that may contain metacharacters while being
18430   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18431   # variables and quote the copies for generation of the libtool script.
18432   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18433     SED SHELL STRIP \
18434     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18435     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18436     deplibs_check_method reload_flag reload_cmds need_locks \
18437     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18438     lt_cv_sys_global_symbol_to_c_name_address \
18439     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18440     old_postinstall_cmds old_postuninstall_cmds \
18441     compiler_GCJ \
18442     CC_GCJ \
18443     LD_GCJ \
18444     lt_prog_compiler_wl_GCJ \
18445     lt_prog_compiler_pic_GCJ \
18446     lt_prog_compiler_static_GCJ \
18447     lt_prog_compiler_no_builtin_flag_GCJ \
18448     export_dynamic_flag_spec_GCJ \
18449     thread_safe_flag_spec_GCJ \
18450     whole_archive_flag_spec_GCJ \
18451     enable_shared_with_static_runtimes_GCJ \
18452     old_archive_cmds_GCJ \
18453     old_archive_from_new_cmds_GCJ \
18454     predep_objects_GCJ \
18455     postdep_objects_GCJ \
18456     predeps_GCJ \
18457     postdeps_GCJ \
18458     compiler_lib_search_path_GCJ \
18459     archive_cmds_GCJ \
18460     archive_expsym_cmds_GCJ \
18461     postinstall_cmds_GCJ \
18462     postuninstall_cmds_GCJ \
18463     old_archive_from_expsyms_cmds_GCJ \
18464     allow_undefined_flag_GCJ \
18465     no_undefined_flag_GCJ \
18466     export_symbols_cmds_GCJ \
18467     hardcode_libdir_flag_spec_GCJ \
18468     hardcode_libdir_flag_spec_ld_GCJ \
18469     hardcode_libdir_separator_GCJ \
18470     hardcode_automatic_GCJ \
18471     module_cmds_GCJ \
18472     module_expsym_cmds_GCJ \
18473     lt_cv_prog_compiler_c_o_GCJ \
18474     exclude_expsyms_GCJ \
18475     include_expsyms_GCJ; do
18476
18477     case $var in
18478     old_archive_cmds_GCJ | \
18479     old_archive_from_new_cmds_GCJ | \
18480     archive_cmds_GCJ | \
18481     archive_expsym_cmds_GCJ | \
18482     module_cmds_GCJ | \
18483     module_expsym_cmds_GCJ | \
18484     old_archive_from_expsyms_cmds_GCJ | \
18485     export_symbols_cmds_GCJ | \
18486     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18487     postinstall_cmds | postuninstall_cmds | \
18488     old_postinstall_cmds | old_postuninstall_cmds | \
18489     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18490       # Double-quote double-evaled strings.
18491       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18492       ;;
18493     *)
18494       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18495       ;;
18496     esac
18497   done
18498
18499   case $lt_echo in
18500   *'\$0 --fallback-echo"')
18501     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18502     ;;
18503   esac
18504
18505 cfgfile="$ofile"
18506
18507   cat <<__EOF__ >> "$cfgfile"
18508 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18509
18510 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18511
18512 # Shell to use when invoking shell scripts.
18513 SHELL=$lt_SHELL
18514
18515 # Whether or not to build shared libraries.
18516 build_libtool_libs=$enable_shared
18517
18518 # Whether or not to build static libraries.
18519 build_old_libs=$enable_static
18520
18521 # Whether or not to add -lc for building shared libraries.
18522 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18523
18524 # Whether or not to disallow shared libs when runtime libs are static
18525 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18526
18527 # Whether or not to optimize for fast installation.
18528 fast_install=$enable_fast_install
18529
18530 # The host system.
18531 host_alias=$host_alias
18532 host=$host
18533 host_os=$host_os
18534
18535 # The build system.
18536 build_alias=$build_alias
18537 build=$build
18538 build_os=$build_os
18539
18540 # An echo program that does not interpret backslashes.
18541 echo=$lt_echo
18542
18543 # The archiver.
18544 AR=$lt_AR
18545 AR_FLAGS=$lt_AR_FLAGS
18546
18547 # A C compiler.
18548 LTCC=$lt_LTCC
18549
18550 # LTCC compiler flags.
18551 LTCFLAGS=$lt_LTCFLAGS
18552
18553 # A language-specific compiler.
18554 CC=$lt_compiler_GCJ
18555
18556 # Is the compiler the GNU C compiler?
18557 with_gcc=$GCC_GCJ
18558
18559 # An ERE matcher.
18560 EGREP=$lt_EGREP
18561
18562 # The linker used to build libraries.
18563 LD=$lt_LD_GCJ
18564
18565 # Whether we need hard or soft links.
18566 LN_S=$lt_LN_S
18567
18568 # A BSD-compatible nm program.
18569 NM=$lt_NM
18570
18571 # A symbol stripping program
18572 STRIP=$lt_STRIP
18573
18574 # Used to examine libraries when file_magic_cmd begins "file"
18575 MAGIC_CMD=$MAGIC_CMD
18576
18577 # Used on cygwin: DLL creation program.
18578 DLLTOOL="$DLLTOOL"
18579
18580 # Used on cygwin: object dumper.
18581 OBJDUMP="$OBJDUMP"
18582
18583 # Used on cygwin: assembler.
18584 AS="$AS"
18585
18586 # The name of the directory that contains temporary libtool files.
18587 objdir=$objdir
18588
18589 # How to create reloadable object files.
18590 reload_flag=$lt_reload_flag
18591 reload_cmds=$lt_reload_cmds
18592
18593 # How to pass a linker flag through the compiler.
18594 wl=$lt_lt_prog_compiler_wl_GCJ
18595
18596 # Object file suffix (normally "o").
18597 objext="$ac_objext"
18598
18599 # Old archive suffix (normally "a").
18600 libext="$libext"
18601
18602 # Shared library suffix (normally ".so").
18603 shrext_cmds='$shrext_cmds'
18604
18605 # Executable file suffix (normally "").
18606 exeext="$exeext"
18607
18608 # Additional compiler flags for building library objects.
18609 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18610 pic_mode=$pic_mode
18611
18612 # What is the maximum length of a command?
18613 max_cmd_len=$lt_cv_sys_max_cmd_len
18614
18615 # Does compiler simultaneously support -c and -o options?
18616 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18617
18618 # Must we lock files when doing compilation?
18619 need_locks=$lt_need_locks
18620
18621 # Do we need the lib prefix for modules?
18622 need_lib_prefix=$need_lib_prefix
18623
18624 # Do we need a version for libraries?
18625 need_version=$need_version
18626
18627 # Whether dlopen is supported.
18628 dlopen_support=$enable_dlopen
18629
18630 # Whether dlopen of programs is supported.
18631 dlopen_self=$enable_dlopen_self
18632
18633 # Whether dlopen of statically linked programs is supported.
18634 dlopen_self_static=$enable_dlopen_self_static
18635
18636 # Compiler flag to prevent dynamic linking.
18637 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18638
18639 # Compiler flag to turn off builtin functions.
18640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18641
18642 # Compiler flag to allow reflexive dlopens.
18643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18644
18645 # Compiler flag to generate shared objects directly from archives.
18646 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18647
18648 # Compiler flag to generate thread-safe objects.
18649 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18650
18651 # Library versioning type.
18652 version_type=$version_type
18653
18654 # Format of library name prefix.
18655 libname_spec=$lt_libname_spec
18656
18657 # List of archive names.  First name is the real one, the rest are links.
18658 # The last name is the one that the linker finds with -lNAME.
18659 library_names_spec=$lt_library_names_spec
18660
18661 # The coded name of the library, if different from the real name.
18662 soname_spec=$lt_soname_spec
18663
18664 # Commands used to build and install an old-style archive.
18665 RANLIB=$lt_RANLIB
18666 old_archive_cmds=$lt_old_archive_cmds_GCJ
18667 old_postinstall_cmds=$lt_old_postinstall_cmds
18668 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18669
18670 # Create an old-style archive from a shared archive.
18671 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18672
18673 # Create a temporary old-style archive to link instead of a shared archive.
18674 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18675
18676 # Commands used to build and install a shared archive.
18677 archive_cmds=$lt_archive_cmds_GCJ
18678 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18679 postinstall_cmds=$lt_postinstall_cmds
18680 postuninstall_cmds=$lt_postuninstall_cmds
18681
18682 # Commands used to build a loadable module (assumed same as above if empty)
18683 module_cmds=$lt_module_cmds_GCJ
18684 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18685
18686 # Commands to strip libraries.
18687 old_striplib=$lt_old_striplib
18688 striplib=$lt_striplib
18689
18690 # Dependencies to place before the objects being linked to create a
18691 # shared library.
18692 predep_objects=$lt_predep_objects_GCJ
18693
18694 # Dependencies to place after the objects being linked to create a
18695 # shared library.
18696 postdep_objects=$lt_postdep_objects_GCJ
18697
18698 # Dependencies to place before the objects being linked to create a
18699 # shared library.
18700 predeps=$lt_predeps_GCJ
18701
18702 # Dependencies to place after the objects being linked to create a
18703 # shared library.
18704 postdeps=$lt_postdeps_GCJ
18705
18706 # The library search path used internally by the compiler when linking
18707 # a shared library.
18708 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18709
18710 # Method to check whether dependent libraries are shared objects.
18711 deplibs_check_method=$lt_deplibs_check_method
18712
18713 # Command to use when deplibs_check_method == file_magic.
18714 file_magic_cmd=$lt_file_magic_cmd
18715
18716 # Flag that allows shared libraries with undefined symbols to be built.
18717 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18718
18719 # Flag that forces no undefined symbols.
18720 no_undefined_flag=$lt_no_undefined_flag_GCJ
18721
18722 # Commands used to finish a libtool library installation in a directory.
18723 finish_cmds=$lt_finish_cmds
18724
18725 # Same as above, but a single script fragment to be evaled but not shown.
18726 finish_eval=$lt_finish_eval
18727
18728 # Take the output of nm and produce a listing of raw symbols and C names.
18729 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18730
18731 # Transform the output of nm in a proper C declaration
18732 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18733
18734 # Transform the output of nm in a C name address pair
18735 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18736
18737 # This is the shared library runtime path variable.
18738 runpath_var=$runpath_var
18739
18740 # This is the shared library path variable.
18741 shlibpath_var=$shlibpath_var
18742
18743 # Is shlibpath searched before the hard-coded library search path?
18744 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18745
18746 # How to hardcode a shared library path into an executable.
18747 hardcode_action=$hardcode_action_GCJ
18748
18749 # Whether we should hardcode library paths into libraries.
18750 hardcode_into_libs=$hardcode_into_libs
18751
18752 # Flag to hardcode \$libdir into a binary during linking.
18753 # This must work even if \$libdir does not exist.
18754 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18755
18756 # If ld is used when linking, flag to hardcode \$libdir into
18757 # a binary during linking. This must work even if \$libdir does
18758 # not exist.
18759 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18760
18761 # Whether we need a single -rpath flag with a separated argument.
18762 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18763
18764 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18765 # resulting binary.
18766 hardcode_direct=$hardcode_direct_GCJ
18767
18768 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18769 # resulting binary.
18770 hardcode_minus_L=$hardcode_minus_L_GCJ
18771
18772 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18773 # the resulting binary.
18774 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18775
18776 # Set to yes if building a shared library automatically hardcodes DIR into the library
18777 # and all subsequent libraries and executables linked against it.
18778 hardcode_automatic=$hardcode_automatic_GCJ
18779
18780 # Variables whose values should be saved in libtool wrapper scripts and
18781 # restored at relink time.
18782 variables_saved_for_relink="$variables_saved_for_relink"
18783
18784 # Whether libtool must link a program against all its dependency libraries.
18785 link_all_deplibs=$link_all_deplibs_GCJ
18786
18787 # Compile-time system search path for libraries
18788 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18789
18790 # Run-time system search path for libraries
18791 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18792
18793 # Fix the shell variable \$srcfile for the compiler.
18794 fix_srcfile_path="$fix_srcfile_path_GCJ"
18795
18796 # Set to yes if exported symbols are required.
18797 always_export_symbols=$always_export_symbols_GCJ
18798
18799 # The commands to list exported symbols.
18800 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18801
18802 # The commands to extract the exported symbol list from a shared archive.
18803 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18804
18805 # Symbols that should not be listed in the preloaded symbols.
18806 exclude_expsyms=$lt_exclude_expsyms_GCJ
18807
18808 # Symbols that must always be exported.
18809 include_expsyms=$lt_include_expsyms_GCJ
18810
18811 # ### END LIBTOOL TAG CONFIG: $tagname
18812
18813 __EOF__
18814
18815
18816 else
18817   # If there is no Makefile yet, we rely on a make rule to execute
18818   # `config.status --recheck' to rerun these tests and create the
18819   # libtool script then.
18820   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18821   if test -f "$ltmain_in"; then
18822     test -f Makefile && make "$ltmain"
18823   fi
18824 fi
18825
18826
18827 ac_ext=c
18828 ac_cpp='$CPP $CPPFLAGS'
18829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18832
18833 CC="$lt_save_CC"
18834
18835         else
18836           tagname=""
18837         fi
18838         ;;
18839
18840       RC)
18841         
18842
18843 # Source file extension for RC test sources.
18844 ac_ext=rc
18845
18846 # Object file extension for compiled RC test sources.
18847 objext=o
18848 objext_RC=$objext
18849
18850 # Code to be used in simple compile tests
18851 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18852
18853 # Code to be used in simple link tests
18854 lt_simple_link_test_code="$lt_simple_compile_test_code"
18855
18856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18857
18858 # If no C compiler was specified, use CC.
18859 LTCC=${LTCC-"$CC"}
18860
18861 # If no C compiler flags were specified, use CFLAGS.
18862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18863
18864 # Allow CC to be a program name with arguments.
18865 compiler=$CC
18866
18867
18868 # save warnings/boilerplate of simple test code
18869 ac_outfile=conftest.$ac_objext
18870 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18872 _lt_compiler_boilerplate=`cat conftest.err`
18873 $rm conftest*
18874
18875 ac_outfile=conftest.$ac_objext
18876 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18878 _lt_linker_boilerplate=`cat conftest.err`
18879 $rm conftest*
18880
18881
18882 # Allow CC to be a program name with arguments.
18883 lt_save_CC="$CC"
18884 CC=${RC-"windres"}
18885 compiler=$CC
18886 compiler_RC=$CC
18887 for cc_temp in $compiler""; do
18888   case $cc_temp in
18889     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18890     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18891     \-*) ;;
18892     *) break;;
18893   esac
18894 done
18895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18896
18897 lt_cv_prog_compiler_c_o_RC=yes
18898
18899 # The else clause should only fire when bootstrapping the
18900 # libtool distribution, otherwise you forgot to ship ltmain.sh
18901 # with your package, and you will get complaints that there are
18902 # no rules to generate ltmain.sh.
18903 if test -f "$ltmain"; then
18904   # See if we are running on zsh, and set the options which allow our commands through
18905   # without removal of \ escapes.
18906   if test -n "${ZSH_VERSION+set}" ; then
18907     setopt NO_GLOB_SUBST
18908   fi
18909   # Now quote all the things that may contain metacharacters while being
18910   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18911   # variables and quote the copies for generation of the libtool script.
18912   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18913     SED SHELL STRIP \
18914     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18915     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18916     deplibs_check_method reload_flag reload_cmds need_locks \
18917     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18918     lt_cv_sys_global_symbol_to_c_name_address \
18919     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18920     old_postinstall_cmds old_postuninstall_cmds \
18921     compiler_RC \
18922     CC_RC \
18923     LD_RC \
18924     lt_prog_compiler_wl_RC \
18925     lt_prog_compiler_pic_RC \
18926     lt_prog_compiler_static_RC \
18927     lt_prog_compiler_no_builtin_flag_RC \
18928     export_dynamic_flag_spec_RC \
18929     thread_safe_flag_spec_RC \
18930     whole_archive_flag_spec_RC \
18931     enable_shared_with_static_runtimes_RC \
18932     old_archive_cmds_RC \
18933     old_archive_from_new_cmds_RC \
18934     predep_objects_RC \
18935     postdep_objects_RC \
18936     predeps_RC \
18937     postdeps_RC \
18938     compiler_lib_search_path_RC \
18939     archive_cmds_RC \
18940     archive_expsym_cmds_RC \
18941     postinstall_cmds_RC \
18942     postuninstall_cmds_RC \
18943     old_archive_from_expsyms_cmds_RC \
18944     allow_undefined_flag_RC \
18945     no_undefined_flag_RC \
18946     export_symbols_cmds_RC \
18947     hardcode_libdir_flag_spec_RC \
18948     hardcode_libdir_flag_spec_ld_RC \
18949     hardcode_libdir_separator_RC \
18950     hardcode_automatic_RC \
18951     module_cmds_RC \
18952     module_expsym_cmds_RC \
18953     lt_cv_prog_compiler_c_o_RC \
18954     exclude_expsyms_RC \
18955     include_expsyms_RC; do
18956
18957     case $var in
18958     old_archive_cmds_RC | \
18959     old_archive_from_new_cmds_RC | \
18960     archive_cmds_RC | \
18961     archive_expsym_cmds_RC | \
18962     module_cmds_RC | \
18963     module_expsym_cmds_RC | \
18964     old_archive_from_expsyms_cmds_RC | \
18965     export_symbols_cmds_RC | \
18966     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18967     postinstall_cmds | postuninstall_cmds | \
18968     old_postinstall_cmds | old_postuninstall_cmds | \
18969     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18970       # Double-quote double-evaled strings.
18971       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18972       ;;
18973     *)
18974       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18975       ;;
18976     esac
18977   done
18978
18979   case $lt_echo in
18980   *'\$0 --fallback-echo"')
18981     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18982     ;;
18983   esac
18984
18985 cfgfile="$ofile"
18986
18987   cat <<__EOF__ >> "$cfgfile"
18988 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18989
18990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18991
18992 # Shell to use when invoking shell scripts.
18993 SHELL=$lt_SHELL
18994
18995 # Whether or not to build shared libraries.
18996 build_libtool_libs=$enable_shared
18997
18998 # Whether or not to build static libraries.
18999 build_old_libs=$enable_static
19000
19001 # Whether or not to add -lc for building shared libraries.
19002 build_libtool_need_lc=$archive_cmds_need_lc_RC
19003
19004 # Whether or not to disallow shared libs when runtime libs are static
19005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19006
19007 # Whether or not to optimize for fast installation.
19008 fast_install=$enable_fast_install
19009
19010 # The host system.
19011 host_alias=$host_alias
19012 host=$host
19013 host_os=$host_os
19014
19015 # The build system.
19016 build_alias=$build_alias
19017 build=$build
19018 build_os=$build_os
19019
19020 # An echo program that does not interpret backslashes.
19021 echo=$lt_echo
19022
19023 # The archiver.
19024 AR=$lt_AR
19025 AR_FLAGS=$lt_AR_FLAGS
19026
19027 # A C compiler.
19028 LTCC=$lt_LTCC
19029
19030 # LTCC compiler flags.
19031 LTCFLAGS=$lt_LTCFLAGS
19032
19033 # A language-specific compiler.
19034 CC=$lt_compiler_RC
19035
19036 # Is the compiler the GNU C compiler?
19037 with_gcc=$GCC_RC
19038
19039 # An ERE matcher.
19040 EGREP=$lt_EGREP
19041
19042 # The linker used to build libraries.
19043 LD=$lt_LD_RC
19044
19045 # Whether we need hard or soft links.
19046 LN_S=$lt_LN_S
19047
19048 # A BSD-compatible nm program.
19049 NM=$lt_NM
19050
19051 # A symbol stripping program
19052 STRIP=$lt_STRIP
19053
19054 # Used to examine libraries when file_magic_cmd begins "file"
19055 MAGIC_CMD=$MAGIC_CMD
19056
19057 # Used on cygwin: DLL creation program.
19058 DLLTOOL="$DLLTOOL"
19059
19060 # Used on cygwin: object dumper.
19061 OBJDUMP="$OBJDUMP"
19062
19063 # Used on cygwin: assembler.
19064 AS="$AS"
19065
19066 # The name of the directory that contains temporary libtool files.
19067 objdir=$objdir
19068
19069 # How to create reloadable object files.
19070 reload_flag=$lt_reload_flag
19071 reload_cmds=$lt_reload_cmds
19072
19073 # How to pass a linker flag through the compiler.
19074 wl=$lt_lt_prog_compiler_wl_RC
19075
19076 # Object file suffix (normally "o").
19077 objext="$ac_objext"
19078
19079 # Old archive suffix (normally "a").
19080 libext="$libext"
19081
19082 # Shared library suffix (normally ".so").
19083 shrext_cmds='$shrext_cmds'
19084
19085 # Executable file suffix (normally "").
19086 exeext="$exeext"
19087
19088 # Additional compiler flags for building library objects.
19089 pic_flag=$lt_lt_prog_compiler_pic_RC
19090 pic_mode=$pic_mode
19091
19092 # What is the maximum length of a command?
19093 max_cmd_len=$lt_cv_sys_max_cmd_len
19094
19095 # Does compiler simultaneously support -c and -o options?
19096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19097
19098 # Must we lock files when doing compilation?
19099 need_locks=$lt_need_locks
19100
19101 # Do we need the lib prefix for modules?
19102 need_lib_prefix=$need_lib_prefix
19103
19104 # Do we need a version for libraries?
19105 need_version=$need_version
19106
19107 # Whether dlopen is supported.
19108 dlopen_support=$enable_dlopen
19109
19110 # Whether dlopen of programs is supported.
19111 dlopen_self=$enable_dlopen_self
19112
19113 # Whether dlopen of statically linked programs is supported.
19114 dlopen_self_static=$enable_dlopen_self_static
19115
19116 # Compiler flag to prevent dynamic linking.
19117 link_static_flag=$lt_lt_prog_compiler_static_RC
19118
19119 # Compiler flag to turn off builtin functions.
19120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19121
19122 # Compiler flag to allow reflexive dlopens.
19123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19124
19125 # Compiler flag to generate shared objects directly from archives.
19126 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19127
19128 # Compiler flag to generate thread-safe objects.
19129 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19130
19131 # Library versioning type.
19132 version_type=$version_type
19133
19134 # Format of library name prefix.
19135 libname_spec=$lt_libname_spec
19136
19137 # List of archive names.  First name is the real one, the rest are links.
19138 # The last name is the one that the linker finds with -lNAME.
19139 library_names_spec=$lt_library_names_spec
19140
19141 # The coded name of the library, if different from the real name.
19142 soname_spec=$lt_soname_spec
19143
19144 # Commands used to build and install an old-style archive.
19145 RANLIB=$lt_RANLIB
19146 old_archive_cmds=$lt_old_archive_cmds_RC
19147 old_postinstall_cmds=$lt_old_postinstall_cmds
19148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19149
19150 # Create an old-style archive from a shared archive.
19151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19152
19153 # Create a temporary old-style archive to link instead of a shared archive.
19154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19155
19156 # Commands used to build and install a shared archive.
19157 archive_cmds=$lt_archive_cmds_RC
19158 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19159 postinstall_cmds=$lt_postinstall_cmds
19160 postuninstall_cmds=$lt_postuninstall_cmds
19161
19162 # Commands used to build a loadable module (assumed same as above if empty)
19163 module_cmds=$lt_module_cmds_RC
19164 module_expsym_cmds=$lt_module_expsym_cmds_RC
19165
19166 # Commands to strip libraries.
19167 old_striplib=$lt_old_striplib
19168 striplib=$lt_striplib
19169
19170 # Dependencies to place before the objects being linked to create a
19171 # shared library.
19172 predep_objects=$lt_predep_objects_RC
19173
19174 # Dependencies to place after the objects being linked to create a
19175 # shared library.
19176 postdep_objects=$lt_postdep_objects_RC
19177
19178 # Dependencies to place before the objects being linked to create a
19179 # shared library.
19180 predeps=$lt_predeps_RC
19181
19182 # Dependencies to place after the objects being linked to create a
19183 # shared library.
19184 postdeps=$lt_postdeps_RC
19185
19186 # The library search path used internally by the compiler when linking
19187 # a shared library.
19188 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19189
19190 # Method to check whether dependent libraries are shared objects.
19191 deplibs_check_method=$lt_deplibs_check_method
19192
19193 # Command to use when deplibs_check_method == file_magic.
19194 file_magic_cmd=$lt_file_magic_cmd
19195
19196 # Flag that allows shared libraries with undefined symbols to be built.
19197 allow_undefined_flag=$lt_allow_undefined_flag_RC
19198
19199 # Flag that forces no undefined symbols.
19200 no_undefined_flag=$lt_no_undefined_flag_RC
19201
19202 # Commands used to finish a libtool library installation in a directory.
19203 finish_cmds=$lt_finish_cmds
19204
19205 # Same as above, but a single script fragment to be evaled but not shown.
19206 finish_eval=$lt_finish_eval
19207
19208 # Take the output of nm and produce a listing of raw symbols and C names.
19209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19210
19211 # Transform the output of nm in a proper C declaration
19212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19213
19214 # Transform the output of nm in a C name address pair
19215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19216
19217 # This is the shared library runtime path variable.
19218 runpath_var=$runpath_var
19219
19220 # This is the shared library path variable.
19221 shlibpath_var=$shlibpath_var
19222
19223 # Is shlibpath searched before the hard-coded library search path?
19224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19225
19226 # How to hardcode a shared library path into an executable.
19227 hardcode_action=$hardcode_action_RC
19228
19229 # Whether we should hardcode library paths into libraries.
19230 hardcode_into_libs=$hardcode_into_libs
19231
19232 # Flag to hardcode \$libdir into a binary during linking.
19233 # This must work even if \$libdir does not exist.
19234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19235
19236 # If ld is used when linking, flag to hardcode \$libdir into
19237 # a binary during linking. This must work even if \$libdir does
19238 # not exist.
19239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19240
19241 # Whether we need a single -rpath flag with a separated argument.
19242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19243
19244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19245 # resulting binary.
19246 hardcode_direct=$hardcode_direct_RC
19247
19248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19249 # resulting binary.
19250 hardcode_minus_L=$hardcode_minus_L_RC
19251
19252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19253 # the resulting binary.
19254 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19255
19256 # Set to yes if building a shared library automatically hardcodes DIR into the library
19257 # and all subsequent libraries and executables linked against it.
19258 hardcode_automatic=$hardcode_automatic_RC
19259
19260 # Variables whose values should be saved in libtool wrapper scripts and
19261 # restored at relink time.
19262 variables_saved_for_relink="$variables_saved_for_relink"
19263
19264 # Whether libtool must link a program against all its dependency libraries.
19265 link_all_deplibs=$link_all_deplibs_RC
19266
19267 # Compile-time system search path for libraries
19268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19269
19270 # Run-time system search path for libraries
19271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19272
19273 # Fix the shell variable \$srcfile for the compiler.
19274 fix_srcfile_path="$fix_srcfile_path_RC"
19275
19276 # Set to yes if exported symbols are required.
19277 always_export_symbols=$always_export_symbols_RC
19278
19279 # The commands to list exported symbols.
19280 export_symbols_cmds=$lt_export_symbols_cmds_RC
19281
19282 # The commands to extract the exported symbol list from a shared archive.
19283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19284
19285 # Symbols that should not be listed in the preloaded symbols.
19286 exclude_expsyms=$lt_exclude_expsyms_RC
19287
19288 # Symbols that must always be exported.
19289 include_expsyms=$lt_include_expsyms_RC
19290
19291 # ### END LIBTOOL TAG CONFIG: $tagname
19292
19293 __EOF__
19294
19295
19296 else
19297   # If there is no Makefile yet, we rely on a make rule to execute
19298   # `config.status --recheck' to rerun these tests and create the
19299   # libtool script then.
19300   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19301   if test -f "$ltmain_in"; then
19302     test -f Makefile && make "$ltmain"
19303   fi
19304 fi
19305
19306
19307 ac_ext=c
19308 ac_cpp='$CPP $CPPFLAGS'
19309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19312
19313 CC="$lt_save_CC"
19314
19315         ;;
19316
19317       *)
19318         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19319 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19320    { (exit 1); exit 1; }; }
19321         ;;
19322       esac
19323
19324       # Append the new tag name to the list of available tags.
19325       if test -n "$tagname" ; then
19326       available_tags="$available_tags $tagname"
19327     fi
19328     fi
19329   done
19330   IFS="$lt_save_ifs"
19331
19332   # Now substitute the updated list of available tags.
19333   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19334     mv "${ofile}T" "$ofile"
19335     chmod +x "$ofile"
19336   else
19337     rm -f "${ofile}T"
19338     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19339 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19340    { (exit 1); exit 1; }; }
19341   fi
19342 fi
19343
19344
19345
19346 # This can be used to rebuild libtool when needed
19347 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19348
19349 # Always use our own libtool.
19350 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19351
19352 # Prevent multiple expansion
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364   
19365
19366   
19367
19368
19369   
19370        
19371        
19372
19373 ac_ext=c
19374 ac_cpp='$CPP $CPPFLAGS'
19375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19378 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
19379 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
19380 # On Suns, sometimes $CPP names a directory.
19381 if test -n "$CPP" && test -d "$CPP"; then
19382   CPP=
19383 fi
19384 if test -z "$CPP"; then
19385   if test "${ac_cv_prog_CPP+set}" = set; then
19386   echo $ECHO_N "(cached) $ECHO_C" >&6
19387 else
19388       # Double quotes because CPP needs to be expanded
19389     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
19390     do
19391       ac_preproc_ok=false
19392 for ac_c_preproc_warn_flag in '' yes
19393 do
19394   # Use a header file that comes with gcc, so configuring glibc
19395   # with a fresh cross-compiler works.
19396   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19397   # <limits.h> exists even on freestanding compilers.
19398   # On the NeXT, cc -E runs the code through the compiler's parser,
19399   # not just through cpp. "Syntax error" is here to catch this case.
19400   cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406 @%:@ifdef __STDC__
19407 @%:@ include <limits.h>
19408 @%:@else
19409 @%:@ include <assert.h>
19410 @%:@endif
19411                      Syntax error
19412 _ACEOF
19413 if { (ac_try="$ac_cpp conftest.$ac_ext"
19414 case "(($ac_try" in
19415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19416   *) ac_try_echo=$ac_try;;
19417 esac
19418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19420   ac_status=$?
19421   grep -v '^ *+' conftest.er1 >conftest.err
19422   rm -f conftest.er1
19423   cat conftest.err >&5
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); } >/dev/null && {
19426          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19427          test ! -s conftest.err
19428        }; then
19429   :
19430 else
19431   echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434   # Broken: fails on valid input.
19435 continue
19436 fi
19437
19438 rm -f conftest.err conftest.$ac_ext
19439
19440   # OK, works on sane cases.  Now check whether nonexistent headers
19441   # can be detected and how.
19442   cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h.  */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h.  */
19448 @%:@include <ac_nonexistent.h>
19449 _ACEOF
19450 if { (ac_try="$ac_cpp conftest.$ac_ext"
19451 case "(($ac_try" in
19452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453   *) ac_try_echo=$ac_try;;
19454 esac
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19457   ac_status=$?
19458   grep -v '^ *+' conftest.er1 >conftest.err
19459   rm -f conftest.er1
19460   cat conftest.err >&5
19461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462   (exit $ac_status); } >/dev/null && {
19463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19464          test ! -s conftest.err
19465        }; then
19466   # Broken: success on invalid input.
19467 continue
19468 else
19469   echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472   # Passes both tests.
19473 ac_preproc_ok=:
19474 break
19475 fi
19476
19477 rm -f conftest.err conftest.$ac_ext
19478
19479 done
19480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19481 rm -f conftest.err conftest.$ac_ext
19482 if $ac_preproc_ok; then
19483   break
19484 fi
19485
19486     done
19487     ac_cv_prog_CPP=$CPP
19488   
19489 fi
19490   CPP=$ac_cv_prog_CPP
19491 else
19492   ac_cv_prog_CPP=$CPP
19493 fi
19494 { echo "$as_me:$LINENO: result: $CPP" >&5
19495 echo "${ECHO_T}$CPP" >&6; }
19496 ac_preproc_ok=false
19497 for ac_c_preproc_warn_flag in '' yes
19498 do
19499   # Use a header file that comes with gcc, so configuring glibc
19500   # with a fresh cross-compiler works.
19501   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19502   # <limits.h> exists even on freestanding compilers.
19503   # On the NeXT, cc -E runs the code through the compiler's parser,
19504   # not just through cpp. "Syntax error" is here to catch this case.
19505   cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h.  */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h.  */
19511 @%:@ifdef __STDC__
19512 @%:@ include <limits.h>
19513 @%:@else
19514 @%:@ include <assert.h>
19515 @%:@endif
19516                      Syntax error
19517 _ACEOF
19518 if { (ac_try="$ac_cpp conftest.$ac_ext"
19519 case "(($ac_try" in
19520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521   *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19525   ac_status=$?
19526   grep -v '^ *+' conftest.er1 >conftest.err
19527   rm -f conftest.er1
19528   cat conftest.err >&5
19529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530   (exit $ac_status); } >/dev/null && {
19531          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19532          test ! -s conftest.err
19533        }; then
19534   :
19535 else
19536   echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19538
19539   # Broken: fails on valid input.
19540 continue
19541 fi
19542
19543 rm -f conftest.err conftest.$ac_ext
19544
19545   # OK, works on sane cases.  Now check whether nonexistent headers
19546   # can be detected and how.
19547   cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 @%:@include <ac_nonexistent.h>
19554 _ACEOF
19555 if { (ac_try="$ac_cpp conftest.$ac_ext"
19556 case "(($ac_try" in
19557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19558   *) ac_try_echo=$ac_try;;
19559 esac
19560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19561   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19562   ac_status=$?
19563   grep -v '^ *+' conftest.er1 >conftest.err
19564   rm -f conftest.er1
19565   cat conftest.err >&5
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } >/dev/null && {
19568          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19569          test ! -s conftest.err
19570        }; then
19571   # Broken: success on invalid input.
19572 continue
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577   # Passes both tests.
19578 ac_preproc_ok=:
19579 break
19580 fi
19581
19582 rm -f conftest.err conftest.$ac_ext
19583
19584 done
19585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19586 rm -f conftest.err conftest.$ac_ext
19587 if $ac_preproc_ok; then
19588   :
19589 else
19590   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
19591 See \`config.log' for more details." >&5
19592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
19593 See \`config.log' for more details." >&2;}
19594    { (exit 1); exit 1; }; }
19595 fi
19596
19597 ac_ext=c
19598 ac_cpp='$CPP $CPPFLAGS'
19599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19602
19603 # Find a good install program.  We prefer a C program (faster),
19604 # so one script is as good as another.  But avoid the broken or
19605 # incompatible versions:
19606 # SysV /etc/install, /usr/sbin/install
19607 # SunOS /usr/etc/install
19608 # IRIX /sbin/install
19609 # AIX /bin/install
19610 # AmigaOS /C/install, which installs bootblocks on floppy discs
19611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19614 # OS/2's system install, which has a completely different semantic
19615 # ./install, which can be erroneously created by make from ./install.sh.
19616 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19617 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19618 if test -z "$INSTALL"; then
19619 if test "${ac_cv_path_install+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19623 for as_dir in $PATH
19624 do
19625   IFS=$as_save_IFS
19626   test -z "$as_dir" && as_dir=.
19627   # Account for people who put trailing slashes in PATH elements.
19628 case $as_dir/ in
19629   ./ | .// | /cC/* | \
19630   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19631   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19632   /usr/ucb/* ) ;;
19633   *)
19634     # OSF1 and SCO ODT 3.0 have their own names for install.
19635     # Don't use installbsd from OSF since it installs stuff as root
19636     # by default.
19637     for ac_prog in ginstall scoinst install; do
19638       for ac_exec_ext in '' $ac_executable_extensions; do
19639         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19640           if test $ac_prog = install &&
19641             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19642             # AIX install.  It has an incompatible calling convention.
19643             :
19644           elif test $ac_prog = install &&
19645             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19646             # program-specific install script used by HP pwplus--don't use.
19647             :
19648           else
19649             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19650             break 3
19651           fi
19652         fi
19653       done
19654     done
19655     ;;
19656 esac
19657 done
19658 IFS=$as_save_IFS
19659
19660
19661 fi
19662   if test "${ac_cv_path_install+set}" = set; then
19663     INSTALL=$ac_cv_path_install
19664   else
19665     # As a last resort, use the slow shell script.  Don't cache a
19666     # value for INSTALL within a source directory, because that will
19667     # break other packages using the cache if that directory is
19668     # removed, or if the value is a relative name.
19669     INSTALL=$ac_install_sh
19670   fi
19671 fi
19672 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19673 echo "${ECHO_T}$INSTALL" >&6; }
19674
19675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19676 # It thinks the first close brace ends the variable substitution.
19677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19678
19679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19680
19681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19682
19683 for ac_prog in flex lex
19684 do
19685   # Extract the first word of "$ac_prog", so it can be a program name with args.
19686 set dummy $ac_prog; ac_word=$2
19687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19689 if test "${ac_cv_prog_LEX+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   if test -n "$LEX"; then
19693   ac_cv_prog_LEX="$LEX" # Let the user override the test.
19694 else
19695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19696 for as_dir in $PATH
19697 do
19698   IFS=$as_save_IFS
19699   test -z "$as_dir" && as_dir=.
19700   for ac_exec_ext in '' $ac_executable_extensions; do
19701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19702     ac_cv_prog_LEX="$ac_prog"
19703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19704     break 2
19705   fi
19706 done
19707 done
19708 IFS=$as_save_IFS
19709
19710 fi
19711 fi
19712 LEX=$ac_cv_prog_LEX
19713 if test -n "$LEX"; then
19714   { echo "$as_me:$LINENO: result: $LEX" >&5
19715 echo "${ECHO_T}$LEX" >&6; }
19716 else
19717   { echo "$as_me:$LINENO: result: no" >&5
19718 echo "${ECHO_T}no" >&6; }
19719 fi
19720
19721
19722   test -n "$LEX" && break
19723 done
19724 test -n "$LEX" || LEX=":"
19725
19726 if test "x$LEX" != "x:"; then
19727   cat >conftest.l <<_ACEOF
19728 %%
19729 a { ECHO; }
19730 b { REJECT; }
19731 c { yymore (); }
19732 d { yyless (1); }
19733 e { yyless (input () != 0); }
19734 f { unput (yytext[0]); }
19735 . { BEGIN INITIAL; }
19736 %%
19737 #ifdef YYTEXT_POINTER
19738 extern char *yytext;
19739 #endif
19740 int
19741 main (void)
19742 {
19743   return ! yylex () + ! yywrap ();
19744 }
19745 _ACEOF
19746 { (ac_try="$LEX conftest.l"
19747 case "(($ac_try" in
19748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749   *) ac_try_echo=$ac_try;;
19750 esac
19751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19752   (eval "$LEX conftest.l") 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); }
19756 { echo "$as_me:$LINENO: checking lex output file root" >&5
19757 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
19758 if test "${ac_cv_prog_lex_root+set}" = set; then
19759   echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761   
19762 if test -f lex.yy.c; then
19763   ac_cv_prog_lex_root=lex.yy
19764 elif test -f lexyy.c; then
19765   ac_cv_prog_lex_root=lexyy
19766 else
19767   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
19768 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
19769    { (exit 1); exit 1; }; }
19770 fi
19771 fi
19772 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19773 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
19774 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
19775
19776 if test -z "${LEXLIB+set}"; then
19777   { echo "$as_me:$LINENO: checking lex library" >&5
19778 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
19779 if test "${ac_cv_lib_lex+set}" = set; then
19780   echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782   
19783     ac_save_LIBS=$LIBS
19784     ac_cv_lib_lex='none needed'
19785     for ac_lib in '' -lfl -ll; do
19786       LIBS="$ac_lib $ac_save_LIBS"
19787       cat >conftest.$ac_ext <<_ACEOF
19788 `cat $LEX_OUTPUT_ROOT.c`
19789 _ACEOF
19790 rm -f conftest.$ac_objext conftest$ac_exeext
19791 if { (ac_try="$ac_link"
19792 case "(($ac_try" in
19793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794   *) ac_try_echo=$ac_try;;
19795 esac
19796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797   (eval "$ac_link") 2>conftest.er1
19798   ac_status=$?
19799   grep -v '^ *+' conftest.er1 >conftest.err
19800   rm -f conftest.er1
19801   cat conftest.err >&5
19802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803   (exit $ac_status); } && {
19804          test -z "$ac_c_werror_flag" ||
19805          test ! -s conftest.err
19806        } && test -s conftest$ac_exeext &&
19807        $as_test_x conftest$ac_exeext; then
19808   ac_cv_lib_lex=$ac_lib
19809 else
19810   echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813         
19814 fi
19815
19816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19817       conftest$ac_exeext conftest.$ac_ext
19818       test "$ac_cv_lib_lex" != 'none needed' && break
19819     done
19820     LIBS=$ac_save_LIBS
19821   
19822 fi
19823 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
19824 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
19825   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
19826 fi
19827
19828
19829 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19830 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
19831 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19832   echo $ECHO_N "(cached) $ECHO_C" >&6
19833 else
19834   # POSIX says lex can declare yytext either as a pointer or an array; the
19835 # default is implementation-dependent.  Figure out which it is, since
19836 # not all implementations provide the %pointer and %array declarations.
19837 ac_cv_prog_lex_yytext_pointer=no
19838 ac_save_LIBS=$LIBS
19839 LIBS="$LEXLIB $ac_save_LIBS"
19840 cat >conftest.$ac_ext <<_ACEOF
19841 #define YYTEXT_POINTER 1
19842 `cat $LEX_OUTPUT_ROOT.c`
19843 _ACEOF
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (ac_try="$ac_link"
19846 case "(($ac_try" in
19847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19848   *) ac_try_echo=$ac_try;;
19849 esac
19850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19851   (eval "$ac_link") 2>conftest.er1
19852   ac_status=$?
19853   grep -v '^ *+' conftest.er1 >conftest.err
19854   rm -f conftest.er1
19855   cat conftest.err >&5
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); } && {
19858          test -z "$ac_c_werror_flag" ||
19859          test ! -s conftest.err
19860        } && test -s conftest$ac_exeext &&
19861        $as_test_x conftest$ac_exeext; then
19862   ac_cv_prog_lex_yytext_pointer=yes
19863 else
19864   echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19866
19867         
19868 fi
19869
19870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19871       conftest$ac_exeext conftest.$ac_ext
19872 LIBS=$ac_save_LIBS
19873
19874 fi
19875 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19876 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
19877 if test $ac_cv_prog_lex_yytext_pointer = yes; then
19878   
19879 cat >>confdefs.h <<\_ACEOF
19880 @%:@define YYTEXT_POINTER 1
19881 _ACEOF
19882
19883 fi
19884 rm -f conftest.l $LEX_OUTPUT_ROOT.c
19885
19886 fi
19887 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
19888 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
19889 LN_S=$as_ln_s
19890 if test "$LN_S" = "ln -s"; then
19891   { echo "$as_me:$LINENO: result: yes" >&5
19892 echo "${ECHO_T}yes" >&6; }
19893 else
19894   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19895 echo "${ECHO_T}no, using $LN_S" >&6; }
19896 fi
19897
19898 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19899 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19900 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19901 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19902   echo $ECHO_N "(cached) $ECHO_C" >&6
19903 else
19904   cat >conftest.make <<\_ACEOF
19905 SHELL = /bin/sh
19906 all:
19907         @echo '@@@%%%=$(MAKE)=@@@%%%'
19908 _ACEOF
19909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19910 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19911   *@@@%%%=?*=@@@%%%*)
19912     eval ac_cv_prog_make_${ac_make}_set=yes;;
19913   *)
19914     eval ac_cv_prog_make_${ac_make}_set=no;;
19915 esac
19916 rm -f conftest.make
19917 fi
19918 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19919   { echo "$as_me:$LINENO: result: yes" >&5
19920 echo "${ECHO_T}yes" >&6; }
19921   SET_MAKE=
19922 else
19923   { echo "$as_me:$LINENO: result: no" >&5
19924 echo "${ECHO_T}no" >&6; }
19925   SET_MAKE="MAKE=${MAKE-make}"
19926 fi
19927
19928
19929 # Before making a release, the LTVERSION string should be modified.
19930 # The string is of the form C:R:A.
19931 # - If interfaces have been changed or added, but binary compatibility has
19932 #   been preserved, change to C+1:0:A+1
19933 # - If binary compatibility has been broken (eg removed or changed interfaces)
19934 #   change to C+1:0:0
19935 # - If the interface is the same as the previous version, change to C:R+1:A
19936 LTVERSION="2:4:0"
19937
19938
19939
19940 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
19941 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
19942 if test "${ac_cv_search_strerror+set}" = set; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   ac_func_search_save_LIBS=$LIBS
19946 cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h.  */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h.  */
19952
19953 /* Override any GCC internal prototype to avoid an error.
19954    Use char because int might match the return type of a GCC
19955    builtin and then its argument prototype would still apply.  */
19956 #ifdef __cplusplus
19957 extern "C"
19958 #endif
19959 char strerror ();
19960 int
19961 main ()
19962 {
19963 return strerror ();
19964   ;
19965   return 0;
19966 }
19967 _ACEOF
19968 for ac_lib in '' cposix; do
19969   if test -z "$ac_lib"; then
19970     ac_res="none required"
19971   else
19972     ac_res=-l$ac_lib
19973     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19974   fi
19975   rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (ac_try="$ac_link"
19977 case "(($ac_try" in
19978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979   *) ac_try_echo=$ac_try;;
19980 esac
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982   (eval "$ac_link") 2>conftest.er1
19983   ac_status=$?
19984   grep -v '^ *+' conftest.er1 >conftest.err
19985   rm -f conftest.er1
19986   cat conftest.err >&5
19987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988   (exit $ac_status); } && {
19989          test -z "$ac_c_werror_flag" ||
19990          test ! -s conftest.err
19991        } && test -s conftest$ac_exeext &&
19992        $as_test_x conftest$ac_exeext; then
19993   ac_cv_search_strerror=$ac_res
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998         
19999 fi
20000
20001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20002       conftest$ac_exeext 
20003   if test "${ac_cv_search_strerror+set}" = set; then
20004   break
20005 fi
20006 done
20007 if test "${ac_cv_search_strerror+set}" = set; then
20008   :
20009 else
20010   ac_cv_search_strerror=no
20011 fi
20012 rm conftest.$ac_ext
20013 LIBS=$ac_func_search_save_LIBS
20014 fi
20015 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20016 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
20017 ac_res=$ac_cv_search_strerror
20018 if test "$ac_res" != no; then
20019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20020   
20021 fi
20022
20023 # Find a good install program.  We prefer a C program (faster),
20024 # so one script is as good as another.  But avoid the broken or
20025 # incompatible versions:
20026 # SysV /etc/install, /usr/sbin/install
20027 # SunOS /usr/etc/install
20028 # IRIX /sbin/install
20029 # AIX /bin/install
20030 # AmigaOS /C/install, which installs bootblocks on floppy discs
20031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20034 # OS/2's system install, which has a completely different semantic
20035 # ./install, which can be erroneously created by make from ./install.sh.
20036 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20038 if test -z "$INSTALL"; then
20039 if test "${ac_cv_path_install+set}" = set; then
20040   echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20043 for as_dir in $PATH
20044 do
20045   IFS=$as_save_IFS
20046   test -z "$as_dir" && as_dir=.
20047   # Account for people who put trailing slashes in PATH elements.
20048 case $as_dir/ in
20049   ./ | .// | /cC/* | \
20050   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20051   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20052   /usr/ucb/* ) ;;
20053   *)
20054     # OSF1 and SCO ODT 3.0 have their own names for install.
20055     # Don't use installbsd from OSF since it installs stuff as root
20056     # by default.
20057     for ac_prog in ginstall scoinst install; do
20058       for ac_exec_ext in '' $ac_executable_extensions; do
20059         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20060           if test $ac_prog = install &&
20061             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20062             # AIX install.  It has an incompatible calling convention.
20063             :
20064           elif test $ac_prog = install &&
20065             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20066             # program-specific install script used by HP pwplus--don't use.
20067             :
20068           else
20069             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20070             break 3
20071           fi
20072         fi
20073       done
20074     done
20075     ;;
20076 esac
20077 done
20078 IFS=$as_save_IFS
20079
20080
20081 fi
20082   if test "${ac_cv_path_install+set}" = set; then
20083     INSTALL=$ac_cv_path_install
20084   else
20085     # As a last resort, use the slow shell script.  Don't cache a
20086     # value for INSTALL within a source directory, because that will
20087     # break other packages using the cache if that directory is
20088     # removed, or if the value is a relative name.
20089     INSTALL=$ac_install_sh
20090   fi
20091 fi
20092 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20093 echo "${ECHO_T}$INSTALL" >&6; }
20094
20095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20096 # It thinks the first close brace ends the variable substitution.
20097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20098
20099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20100
20101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20102
20103 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20104 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20105 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20106 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20107   echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109   cat >conftest.make <<\_ACEOF
20110 SHELL = /bin/sh
20111 all:
20112         @echo '@@@%%%=$(MAKE)=@@@%%%'
20113 _ACEOF
20114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20115 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20116   *@@@%%%=?*=@@@%%%*)
20117     eval ac_cv_prog_make_${ac_make}_set=yes;;
20118   *)
20119     eval ac_cv_prog_make_${ac_make}_set=no;;
20120 esac
20121 rm -f conftest.make
20122 fi
20123 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20124   { echo "$as_me:$LINENO: result: yes" >&5
20125 echo "${ECHO_T}yes" >&6; }
20126   SET_MAKE=
20127 else
20128   { echo "$as_me:$LINENO: result: no" >&5
20129 echo "${ECHO_T}no" >&6; }
20130   SET_MAKE="MAKE=${MAKE-make}"
20131 fi
20132
20133
20134 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20135 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20136 if test "${ac_cv_header_stdc+set}" = set; then
20137   echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139   cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h.  */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h.  */
20145 #include <stdlib.h>
20146 #include <stdarg.h>
20147 #include <string.h>
20148 #include <float.h>
20149
20150 int
20151 main ()
20152 {
20153
20154   ;
20155   return 0;
20156 }
20157 _ACEOF
20158 rm -f conftest.$ac_objext
20159 if { (ac_try="$ac_compile"
20160 case "(($ac_try" in
20161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162   *) ac_try_echo=$ac_try;;
20163 esac
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165   (eval "$ac_compile") 2>conftest.er1
20166   ac_status=$?
20167   grep -v '^ *+' conftest.er1 >conftest.err
20168   rm -f conftest.er1
20169   cat conftest.err >&5
20170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171   (exit $ac_status); } && {
20172          test -z "$ac_c_werror_flag" ||
20173          test ! -s conftest.err
20174        } && test -s conftest.$ac_objext; then
20175   ac_cv_header_stdc=yes
20176 else
20177   echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180         ac_cv_header_stdc=no
20181 fi
20182
20183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20184
20185 if test $ac_cv_header_stdc = yes; then
20186   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20187   cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h.  */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h.  */
20193 #include <string.h>
20194
20195 _ACEOF
20196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20197   $EGREP "memchr" >/dev/null 2>&1; then
20198   :
20199 else
20200   ac_cv_header_stdc=no
20201 fi
20202 rm -f conftest*
20203
20204 fi
20205
20206 if test $ac_cv_header_stdc = yes; then
20207   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20208   cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214 #include <stdlib.h>
20215
20216 _ACEOF
20217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20218   $EGREP "free" >/dev/null 2>&1; then
20219   :
20220 else
20221   ac_cv_header_stdc=no
20222 fi
20223 rm -f conftest*
20224
20225 fi
20226
20227 if test $ac_cv_header_stdc = yes; then
20228   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20229   if test "$cross_compiling" = yes; then
20230   :
20231 else
20232   cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 #include <ctype.h>
20239 #include <stdlib.h>
20240 #if ((' ' & 0x0FF) == 0x020)
20241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20243 #else
20244 # define ISLOWER(c) \
20245                    (('a' <= (c) && (c) <= 'i') \
20246                      || ('j' <= (c) && (c) <= 'r') \
20247                      || ('s' <= (c) && (c) <= 'z'))
20248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20249 #endif
20250
20251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20252 int
20253 main ()
20254 {
20255   int i;
20256   for (i = 0; i < 256; i++)
20257     if (XOR (islower (i), ISLOWER (i))
20258         || toupper (i) != TOUPPER (i))
20259       return 2;
20260   return 0;
20261 }
20262 _ACEOF
20263 rm -f conftest$ac_exeext
20264 if { (ac_try="$ac_link"
20265 case "(($ac_try" in
20266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267   *) ac_try_echo=$ac_try;;
20268 esac
20269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20270   (eval "$ac_link") 2>&5
20271   ac_status=$?
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20274   { (case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_try") 2>&5
20280   ac_status=$?
20281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282   (exit $ac_status); }; }; then
20283   :
20284 else
20285   echo "$as_me: program exited with status $ac_status" >&5
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20288
20289 ( exit $ac_status )
20290 ac_cv_header_stdc=no
20291 fi
20292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20293 fi
20294
20295
20296 fi
20297 fi
20298 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20299 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20300 if test $ac_cv_header_stdc = yes; then
20301   
20302 cat >>confdefs.h <<\_ACEOF
20303 @%:@define STDC_HEADERS 1
20304 _ACEOF
20305
20306 fi
20307
20308
20309
20310
20311
20312
20313
20314 for ac_header in fcntl.h limits.h stdlib.h string.h sys/param.h unistd.h
20315 do
20316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20318   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20321   echo $ECHO_N "(cached) $ECHO_C" >&6
20322 fi
20323 ac_res=`eval echo '${'$as_ac_Header'}'`
20324                { echo "$as_me:$LINENO: result: $ac_res" >&5
20325 echo "${ECHO_T}$ac_res" >&6; }
20326 else
20327   # Is the header compilable?
20328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20330 cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 $ac_includes_default
20337 @%:@include <$ac_header>
20338 _ACEOF
20339 rm -f conftest.$ac_objext
20340 if { (ac_try="$ac_compile"
20341 case "(($ac_try" in
20342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343   *) ac_try_echo=$ac_try;;
20344 esac
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346   (eval "$ac_compile") 2>conftest.er1
20347   ac_status=$?
20348   grep -v '^ *+' conftest.er1 >conftest.err
20349   rm -f conftest.er1
20350   cat conftest.err >&5
20351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352   (exit $ac_status); } && {
20353          test -z "$ac_c_werror_flag" ||
20354          test ! -s conftest.err
20355        } && test -s conftest.$ac_objext; then
20356   ac_header_compiler=yes
20357 else
20358   echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20360
20361         ac_header_compiler=no
20362 fi
20363
20364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20366 echo "${ECHO_T}$ac_header_compiler" >&6; }
20367
20368 # Is the header present?
20369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h.  */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h.  */
20377 @%:@include <$ac_header>
20378 _ACEOF
20379 if { (ac_try="$ac_cpp conftest.$ac_ext"
20380 case "(($ac_try" in
20381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382   *) ac_try_echo=$ac_try;;
20383 esac
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20386   ac_status=$?
20387   grep -v '^ *+' conftest.er1 >conftest.err
20388   rm -f conftest.er1
20389   cat conftest.err >&5
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); } >/dev/null && {
20392          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20393          test ! -s conftest.err
20394        }; then
20395   ac_header_preproc=yes
20396 else
20397   echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400   ac_header_preproc=no
20401 fi
20402
20403 rm -f conftest.err conftest.$ac_ext
20404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20405 echo "${ECHO_T}$ac_header_preproc" >&6; }
20406
20407 # So?  What about this header?
20408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20409   yes:no: )
20410     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20414     ac_header_preproc=yes
20415     ;;
20416   no:yes:* )
20417     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20419     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20420 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20421     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20423     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20424 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20427     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20429     
20430     ;;
20431 esac
20432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   eval "$as_ac_Header=\$ac_header_preproc"
20438 fi
20439 ac_res=`eval echo '${'$as_ac_Header'}'`
20440                { echo "$as_me:$LINENO: result: $ac_res" >&5
20441 echo "${ECHO_T}$ac_res" >&6; }
20442
20443 fi
20444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20445   cat >>confdefs.h <<_ACEOF
20446 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20447 _ACEOF
20448  
20449 fi
20450
20451 done
20452
20453
20454
20455
20456 for ac_header in sys/param.h sys/types.h netinet/in.h
20457 do
20458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20460   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 fi
20465 ac_res=`eval echo '${'$as_ac_Header'}'`
20466                { echo "$as_me:$LINENO: result: $ac_res" >&5
20467 echo "${ECHO_T}$ac_res" >&6; }
20468 else
20469   # Is the header compilable?
20470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 $ac_includes_default
20479 @%:@include <$ac_header>
20480 _ACEOF
20481 rm -f conftest.$ac_objext
20482 if { (ac_try="$ac_compile"
20483 case "(($ac_try" in
20484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485   *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488   (eval "$ac_compile") 2>conftest.er1
20489   ac_status=$?
20490   grep -v '^ *+' conftest.er1 >conftest.err
20491   rm -f conftest.er1
20492   cat conftest.err >&5
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); } && {
20495          test -z "$ac_c_werror_flag" ||
20496          test ! -s conftest.err
20497        } && test -s conftest.$ac_objext; then
20498   ac_header_compiler=yes
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503         ac_header_compiler=no
20504 fi
20505
20506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20508 echo "${ECHO_T}$ac_header_compiler" >&6; }
20509
20510 # Is the header present?
20511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519 @%:@include <$ac_header>
20520 _ACEOF
20521 if { (ac_try="$ac_cpp conftest.$ac_ext"
20522 case "(($ac_try" in
20523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20524   *) ac_try_echo=$ac_try;;
20525 esac
20526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20528   ac_status=$?
20529   grep -v '^ *+' conftest.er1 >conftest.err
20530   rm -f conftest.er1
20531   cat conftest.err >&5
20532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533   (exit $ac_status); } >/dev/null && {
20534          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20535          test ! -s conftest.err
20536        }; then
20537   ac_header_preproc=yes
20538 else
20539   echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542   ac_header_preproc=no
20543 fi
20544
20545 rm -f conftest.err conftest.$ac_ext
20546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20547 echo "${ECHO_T}$ac_header_preproc" >&6; }
20548
20549 # So?  What about this header?
20550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20551   yes:no: )
20552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20556     ac_header_preproc=yes
20557     ;;
20558   no:yes:* )
20559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20571     
20572     ;;
20573 esac
20574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   eval "$as_ac_Header=\$ac_header_preproc"
20580 fi
20581 ac_res=`eval echo '${'$as_ac_Header'}'`
20582                { echo "$as_me:$LINENO: result: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20584
20585 fi
20586 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20587   cat >>confdefs.h <<_ACEOF
20588 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20589 _ACEOF
20590  
20591 fi
20592
20593 done
20594
20595
20596
20597 for ac_header in io.h windows.h
20598 do
20599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20604   echo $ECHO_N "(cached) $ECHO_C" >&6
20605 fi
20606 ac_res=`eval echo '${'$as_ac_Header'}'`
20607                { echo "$as_me:$LINENO: result: $ac_res" >&5
20608 echo "${ECHO_T}$ac_res" >&6; }
20609 else
20610   # Is the header compilable?
20611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h.  */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h.  */
20619 $ac_includes_default
20620 @%:@include <$ac_header>
20621 _ACEOF
20622 rm -f conftest.$ac_objext
20623 if { (ac_try="$ac_compile"
20624 case "(($ac_try" in
20625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626   *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629   (eval "$ac_compile") 2>conftest.er1
20630   ac_status=$?
20631   grep -v '^ *+' conftest.er1 >conftest.err
20632   rm -f conftest.er1
20633   cat conftest.err >&5
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); } && {
20636          test -z "$ac_c_werror_flag" ||
20637          test ! -s conftest.err
20638        } && test -s conftest.$ac_objext; then
20639   ac_header_compiler=yes
20640 else
20641   echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644         ac_header_compiler=no
20645 fi
20646
20647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20649 echo "${ECHO_T}$ac_header_compiler" >&6; }
20650
20651 # Is the header present?
20652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20654 cat >conftest.$ac_ext <<_ACEOF
20655 /* confdefs.h.  */
20656 _ACEOF
20657 cat confdefs.h >>conftest.$ac_ext
20658 cat >>conftest.$ac_ext <<_ACEOF
20659 /* end confdefs.h.  */
20660 @%:@include <$ac_header>
20661 _ACEOF
20662 if { (ac_try="$ac_cpp conftest.$ac_ext"
20663 case "(($ac_try" in
20664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665   *) ac_try_echo=$ac_try;;
20666 esac
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20669   ac_status=$?
20670   grep -v '^ *+' conftest.er1 >conftest.err
20671   rm -f conftest.er1
20672   cat conftest.err >&5
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); } >/dev/null && {
20675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20676          test ! -s conftest.err
20677        }; then
20678   ac_header_preproc=yes
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683   ac_header_preproc=no
20684 fi
20685
20686 rm -f conftest.err conftest.$ac_ext
20687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20688 echo "${ECHO_T}$ac_header_preproc" >&6; }
20689
20690 # So?  What about this header?
20691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20692   yes:no: )
20693     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20697     ac_header_preproc=yes
20698     ;;
20699   no:yes:* )
20700     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20702     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20703 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20704     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20706     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20707 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20708     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20710     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20712     
20713     ;;
20714 esac
20715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20718   echo $ECHO_N "(cached) $ECHO_C" >&6
20719 else
20720   eval "$as_ac_Header=\$ac_header_preproc"
20721 fi
20722 ac_res=`eval echo '${'$as_ac_Header'}'`
20723                { echo "$as_me:$LINENO: result: $ac_res" >&5
20724 echo "${ECHO_T}$ac_res" >&6; }
20725
20726 fi
20727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20728   cat >>confdefs.h <<_ACEOF
20729 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20730 _ACEOF
20731  
20732 fi
20733
20734 done
20735
20736
20737
20738 # Checks for typedefs, structures, and compiler characteristics.
20739 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20740 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20741 if test "${ac_cv_c_const+set}" = set; then
20742   echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744   cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h.  */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h.  */
20750
20751 int
20752 main ()
20753 {
20754 /* FIXME: Include the comments suggested by Paul. */
20755 #ifndef __cplusplus
20756   /* Ultrix mips cc rejects this.  */
20757   typedef int charset[2];
20758   const charset cs;
20759   /* SunOS 4.1.1 cc rejects this.  */
20760   char const *const *pcpcc;
20761   char **ppc;
20762   /* NEC SVR4.0.2 mips cc rejects this.  */
20763   struct point {int x, y;};
20764   static struct point const zero = {0,0};
20765   /* AIX XL C 1.02.0.0 rejects this.
20766      It does not let you subtract one const X* pointer from another in
20767      an arm of an if-expression whose if-part is not a constant
20768      expression */
20769   const char *g = "string";
20770   pcpcc = &g + (g ? g-g : 0);
20771   /* HPUX 7.0 cc rejects these. */
20772   ++pcpcc;
20773   ppc = (char**) pcpcc;
20774   pcpcc = (char const *const *) ppc;
20775   { /* SCO 3.2v4 cc rejects this.  */
20776     char *t;
20777     char const *s = 0 ? (char *) 0 : (char const *) 0;
20778
20779     *t++ = 0;
20780     if (s) return 0;
20781   }
20782   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20783     int x[] = {25, 17};
20784     const int *foo = &x[0];
20785     ++foo;
20786   }
20787   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20788     typedef const int *iptr;
20789     iptr p = 0;
20790     ++p;
20791   }
20792   { /* AIX XL C 1.02.0.0 rejects this saying
20793        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20794     struct s { int j; const int *ap[3]; };
20795     struct s *b; b->j = 5;
20796   }
20797   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20798     const int foo = 10;
20799     if (!foo) return 0;
20800   }
20801   return !cs[0] && !zero.x;
20802 #endif
20803
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 rm -f conftest.$ac_objext
20809 if { (ac_try="$ac_compile"
20810 case "(($ac_try" in
20811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812   *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815   (eval "$ac_compile") 2>conftest.er1
20816   ac_status=$?
20817   grep -v '^ *+' conftest.er1 >conftest.err
20818   rm -f conftest.er1
20819   cat conftest.err >&5
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); } && {
20822          test -z "$ac_c_werror_flag" ||
20823          test ! -s conftest.err
20824        } && test -s conftest.$ac_objext; then
20825   ac_cv_c_const=yes
20826 else
20827   echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830         ac_cv_c_const=no
20831 fi
20832
20833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20834 fi
20835 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20836 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20837 if test $ac_cv_c_const = no; then
20838   
20839 cat >>confdefs.h <<\_ACEOF
20840 @%:@define const 
20841 _ACEOF
20842
20843 fi
20844
20845 { echo "$as_me:$LINENO: checking for off_t" >&5
20846 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
20847 if test "${ac_cv_type_off_t+set}" = set; then
20848   echo $ECHO_N "(cached) $ECHO_C" >&6
20849 else
20850   cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 $ac_includes_default
20857 typedef off_t ac__type_new_;
20858 int
20859 main ()
20860 {
20861 if ((ac__type_new_ *) 0)
20862   return 0;
20863 if (sizeof (ac__type_new_))
20864   return 0;
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_compile") 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } && {
20883          test -z "$ac_c_werror_flag" ||
20884          test ! -s conftest.err
20885        } && test -s conftest.$ac_objext; then
20886   ac_cv_type_off_t=yes
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891         ac_cv_type_off_t=no
20892 fi
20893
20894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895 fi
20896 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20897 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
20898 if test $ac_cv_type_off_t = yes; then
20899   :
20900 else
20901   
20902 cat >>confdefs.h <<_ACEOF
20903 @%:@define off_t long int
20904 _ACEOF
20905
20906 fi
20907
20908 { echo "$as_me:$LINENO: checking for size_t" >&5
20909 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20910 if test "${ac_cv_type_size_t+set}" = set; then
20911   echo $ECHO_N "(cached) $ECHO_C" >&6
20912 else
20913   cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h.  */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h.  */
20919 $ac_includes_default
20920 typedef size_t ac__type_new_;
20921 int
20922 main ()
20923 {
20924 if ((ac__type_new_ *) 0)
20925   return 0;
20926 if (sizeof (ac__type_new_))
20927   return 0;
20928   ;
20929   return 0;
20930 }
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (ac_try="$ac_compile"
20934 case "(($ac_try" in
20935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936   *) ac_try_echo=$ac_try;;
20937 esac
20938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939   (eval "$ac_compile") 2>conftest.er1
20940   ac_status=$?
20941   grep -v '^ *+' conftest.er1 >conftest.err
20942   rm -f conftest.er1
20943   cat conftest.err >&5
20944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945   (exit $ac_status); } && {
20946          test -z "$ac_c_werror_flag" ||
20947          test ! -s conftest.err
20948        } && test -s conftest.$ac_objext; then
20949   ac_cv_type_size_t=yes
20950 else
20951   echo "$as_me: failed program was:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20953
20954         ac_cv_type_size_t=no
20955 fi
20956
20957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20958 fi
20959 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20960 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20961 if test $ac_cv_type_size_t = yes; then
20962   :
20963 else
20964   
20965 cat >>confdefs.h <<_ACEOF
20966 @%:@define size_t unsigned int
20967 _ACEOF
20968
20969 fi
20970
20971
20972 # Checks for library functions.
20973
20974 for ac_header in stdlib.h
20975 do
20976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20978   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 fi
20983 ac_res=`eval echo '${'$as_ac_Header'}'`
20984                { echo "$as_me:$LINENO: result: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20986 else
20987   # Is the header compilable?
20988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20991 /* confdefs.h.  */
20992 _ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h.  */
20996 $ac_includes_default
20997 @%:@include <$ac_header>
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_header_compiler=yes
21017 else
21018   echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21020
21021         ac_header_compiler=no
21022 fi
21023
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21026 echo "${ECHO_T}$ac_header_compiler" >&6; }
21027
21028 # Is the header present?
21029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21031 cat >conftest.$ac_ext <<_ACEOF
21032 /* confdefs.h.  */
21033 _ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h.  */
21037 @%:@include <$ac_header>
21038 _ACEOF
21039 if { (ac_try="$ac_cpp conftest.$ac_ext"
21040 case "(($ac_try" in
21041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042   *) ac_try_echo=$ac_try;;
21043 esac
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21046   ac_status=$?
21047   grep -v '^ *+' conftest.er1 >conftest.err
21048   rm -f conftest.er1
21049   cat conftest.err >&5
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); } >/dev/null && {
21052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21053          test ! -s conftest.err
21054        }; then
21055   ac_header_preproc=yes
21056 else
21057   echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21059
21060   ac_header_preproc=no
21061 fi
21062
21063 rm -f conftest.err conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21065 echo "${ECHO_T}$ac_header_preproc" >&6; }
21066
21067 # So?  What about this header?
21068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21069   yes:no: )
21070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21074     ac_header_preproc=yes
21075     ;;
21076   no:yes:* )
21077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21089     
21090     ;;
21091 esac
21092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21095   echo $ECHO_N "(cached) $ECHO_C" >&6
21096 else
21097   eval "$as_ac_Header=\$ac_header_preproc"
21098 fi
21099 ac_res=`eval echo '${'$as_ac_Header'}'`
21100                { echo "$as_me:$LINENO: result: $ac_res" >&5
21101 echo "${ECHO_T}$ac_res" >&6; }
21102
21103 fi
21104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21105   cat >>confdefs.h <<_ACEOF
21106 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21107 _ACEOF
21108  
21109 fi
21110
21111 done
21112
21113 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21114 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21115 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21116   echo $ECHO_N "(cached) $ECHO_C" >&6
21117 else
21118   if test "$cross_compiling" = yes; then
21119   ac_cv_func_malloc_0_nonnull=no
21120 else
21121   cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h.  */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h.  */
21127 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21128 # include <stdlib.h>
21129 #else
21130 char *malloc ();
21131 #endif
21132
21133 int
21134 main ()
21135 {
21136 return ! malloc (0);
21137   ;
21138   return 0;
21139 }
21140 _ACEOF
21141 rm -f conftest$ac_exeext
21142 if { (ac_try="$ac_link"
21143 case "(($ac_try" in
21144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145   *) ac_try_echo=$ac_try;;
21146 esac
21147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21148   (eval "$ac_link") 2>&5
21149   ac_status=$?
21150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21152   { (case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157   (eval "$ac_try") 2>&5
21158   ac_status=$?
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); }; }; then
21161   ac_cv_func_malloc_0_nonnull=yes
21162 else
21163   echo "$as_me: program exited with status $ac_status" >&5
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 ( exit $ac_status )
21168 ac_cv_func_malloc_0_nonnull=no
21169 fi
21170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21171 fi
21172
21173
21174 fi
21175 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21176 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21177 if test $ac_cv_func_malloc_0_nonnull = yes; then
21178   
21179 cat >>confdefs.h <<\_ACEOF
21180 @%:@define HAVE_MALLOC 1
21181 _ACEOF
21182
21183 else
21184   cat >>confdefs.h <<\_ACEOF
21185 @%:@define HAVE_MALLOC 0
21186 _ACEOF
21187
21188    case " $LIB@&t@OBJS " in
21189   *" malloc.$ac_objext "* ) ;;
21190   *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext"
21191  ;;
21192 esac
21193
21194    
21195 cat >>confdefs.h <<\_ACEOF
21196 @%:@define malloc rpl_malloc
21197 _ACEOF
21198
21199 fi
21200
21201
21202
21203 { echo "$as_me:$LINENO: checking for working memcmp" >&5
21204 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
21205 if test "${ac_cv_func_memcmp_working+set}" = set; then
21206   echo $ECHO_N "(cached) $ECHO_C" >&6
21207 else
21208   if test "$cross_compiling" = yes; then
21209   ac_cv_func_memcmp_working=no
21210 else
21211   cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217 $ac_includes_default
21218 int
21219 main ()
21220 {
21221
21222   /* Some versions of memcmp are not 8-bit clean.  */
21223   char c0 = '\100', c1 = '\200', c2 = '\201';
21224   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21225     return 1;
21226
21227   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21228      or more and with at least one buffer not starting on a 4-byte boundary.
21229      William Lewis provided this test program.   */
21230   {
21231     char foo[21];
21232     char bar[21];
21233     int i;
21234     for (i = 0; i < 4; i++)
21235       {
21236         char *a = foo + i;
21237         char *b = bar + i;
21238         strcpy (a, "--------01111111");
21239         strcpy (b, "--------10000000");
21240         if (memcmp (a, b, 16) >= 0)
21241           return 1;
21242       }
21243     return 0;
21244   }
21245
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest$ac_exeext
21251 if { (ac_try="$ac_link"
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_link") 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21261   { (case "(($ac_try" in
21262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263   *) ac_try_echo=$ac_try;;
21264 esac
21265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21266   (eval "$ac_try") 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); }; }; then
21270   ac_cv_func_memcmp_working=yes
21271 else
21272   echo "$as_me: program exited with status $ac_status" >&5
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 ( exit $ac_status )
21277 ac_cv_func_memcmp_working=no
21278 fi
21279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21280 fi
21281
21282
21283 fi
21284 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21285 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
21286 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
21287   *" memcmp.$ac_objext "* ) ;;
21288   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
21289  ;;
21290 esac
21291
21292
21293
21294
21295 for ac_header in stdlib.h unistd.h
21296 do
21297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21299   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21302   echo $ECHO_N "(cached) $ECHO_C" >&6
21303 fi
21304 ac_res=`eval echo '${'$as_ac_Header'}'`
21305                { echo "$as_me:$LINENO: result: $ac_res" >&5
21306 echo "${ECHO_T}$ac_res" >&6; }
21307 else
21308   # Is the header compilable?
21309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21311 cat >conftest.$ac_ext <<_ACEOF
21312 /* confdefs.h.  */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h.  */
21317 $ac_includes_default
21318 @%:@include <$ac_header>
21319 _ACEOF
21320 rm -f conftest.$ac_objext
21321 if { (ac_try="$ac_compile"
21322 case "(($ac_try" in
21323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21324   *) ac_try_echo=$ac_try;;
21325 esac
21326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21327   (eval "$ac_compile") 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } && {
21334          test -z "$ac_c_werror_flag" ||
21335          test ! -s conftest.err
21336        } && test -s conftest.$ac_objext; then
21337   ac_header_compiler=yes
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21341
21342         ac_header_compiler=no
21343 fi
21344
21345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21347 echo "${ECHO_T}$ac_header_compiler" >&6; }
21348
21349 # Is the header present?
21350 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21353 /* confdefs.h.  */
21354 _ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h.  */
21358 @%:@include <$ac_header>
21359 _ACEOF
21360 if { (ac_try="$ac_cpp conftest.$ac_ext"
21361 case "(($ac_try" in
21362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363   *) ac_try_echo=$ac_try;;
21364 esac
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21367   ac_status=$?
21368   grep -v '^ *+' conftest.er1 >conftest.err
21369   rm -f conftest.er1
21370   cat conftest.err >&5
21371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372   (exit $ac_status); } >/dev/null && {
21373          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21374          test ! -s conftest.err
21375        }; then
21376   ac_header_preproc=yes
21377 else
21378   echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381   ac_header_preproc=no
21382 fi
21383
21384 rm -f conftest.err conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21386 echo "${ECHO_T}$ac_header_preproc" >&6; }
21387
21388 # So?  What about this header?
21389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21390   yes:no: )
21391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21395     ac_header_preproc=yes
21396     ;;
21397   no:yes:* )
21398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21410     
21411     ;;
21412 esac
21413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21416   echo $ECHO_N "(cached) $ECHO_C" >&6
21417 else
21418   eval "$as_ac_Header=\$ac_header_preproc"
21419 fi
21420 ac_res=`eval echo '${'$as_ac_Header'}'`
21421                { echo "$as_me:$LINENO: result: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423
21424 fi
21425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21426   cat >>confdefs.h <<_ACEOF
21427 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21428 _ACEOF
21429  
21430 fi
21431
21432 done
21433
21434
21435 for ac_func in getpagesize
21436 do
21437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21441   echo $ECHO_N "(cached) $ECHO_C" >&6
21442 else
21443   cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21451 #define $ac_func innocuous_$ac_func
21452
21453 /* System header to define __stub macros and hopefully few prototypes,
21454     which can conflict with char $ac_func (); below.
21455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456     <limits.h> exists even on freestanding compilers.  */
21457
21458 #ifdef __STDC__
21459 # include <limits.h>
21460 #else
21461 # include <assert.h>
21462 #endif
21463
21464 #undef $ac_func
21465
21466 /* Override any GCC internal prototype to avoid an error.
21467    Use char because int might match the return type of a GCC
21468    builtin and then its argument prototype would still apply.  */
21469 #ifdef __cplusplus
21470 extern "C"
21471 #endif
21472 char $ac_func ();
21473 /* The GNU C library defines this for functions which it implements
21474     to always fail with ENOSYS.  Some functions are actually named
21475     something starting with __ and the normal name is an alias.  */
21476 #if defined __stub_$ac_func || defined __stub___$ac_func
21477 choke me
21478 #endif
21479
21480 int
21481 main ()
21482 {
21483 return $ac_func ();
21484   ;
21485   return 0;
21486 }
21487 _ACEOF
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (ac_try="$ac_link"
21490 case "(($ac_try" in
21491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492   *) ac_try_echo=$ac_try;;
21493 esac
21494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21495   (eval "$ac_link") 2>conftest.er1
21496   ac_status=$?
21497   grep -v '^ *+' conftest.er1 >conftest.err
21498   rm -f conftest.er1
21499   cat conftest.err >&5
21500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501   (exit $ac_status); } && {
21502          test -z "$ac_c_werror_flag" ||
21503          test ! -s conftest.err
21504        } && test -s conftest$ac_exeext &&
21505        $as_test_x conftest$ac_exeext; then
21506   eval "$as_ac_var=yes"
21507 else
21508   echo "$as_me: failed program was:" >&5
21509 sed 's/^/| /' conftest.$ac_ext >&5
21510
21511         eval "$as_ac_var=no"
21512 fi
21513
21514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21515       conftest$ac_exeext conftest.$ac_ext
21516 fi
21517 ac_res=`eval echo '${'$as_ac_var'}'`
21518                { echo "$as_me:$LINENO: result: $ac_res" >&5
21519 echo "${ECHO_T}$ac_res" >&6; }
21520 if test `eval echo '${'$as_ac_var'}'` = yes; then
21521   cat >>confdefs.h <<_ACEOF
21522 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21523 _ACEOF
21524  
21525 fi
21526 done
21527
21528 { echo "$as_me:$LINENO: checking for working mmap" >&5
21529 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21530 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21531   echo $ECHO_N "(cached) $ECHO_C" >&6
21532 else
21533   if test "$cross_compiling" = yes; then
21534   ac_cv_func_mmap_fixed_mapped=no
21535 else
21536   cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h.  */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h.  */
21542 $ac_includes_default
21543 /* malloc might have been renamed as rpl_malloc. */
21544 #undef malloc
21545
21546 /* Thanks to Mike Haertel and Jim Avera for this test.
21547    Here is a matrix of mmap possibilities:
21548         mmap private not fixed
21549         mmap private fixed at somewhere currently unmapped
21550         mmap private fixed at somewhere already mapped
21551         mmap shared not fixed
21552         mmap shared fixed at somewhere currently unmapped
21553         mmap shared fixed at somewhere already mapped
21554    For private mappings, we should verify that changes cannot be read()
21555    back from the file, nor mmap's back from the file at a different
21556    address.  (There have been systems where private was not correctly
21557    implemented like the infamous i386 svr4.0, and systems where the
21558    VM page cache was not coherent with the file system buffer cache
21559    like early versions of FreeBSD and possibly contemporary NetBSD.)
21560    For shared mappings, we should conversely verify that changes get
21561    propagated back to all the places they're supposed to be.
21562
21563    Grep wants private fixed already mapped.
21564    The main things grep needs to know about mmap are:
21565    * does it exist and is it safe to write into the mmap'd area
21566    * how to use it (BSD variants)  */
21567
21568 #include <fcntl.h>
21569 #include <sys/mman.h>
21570
21571 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21572 char *malloc ();
21573 #endif
21574
21575 /* This mess was copied from the GNU getpagesize.h.  */
21576 #ifndef HAVE_GETPAGESIZE
21577 /* Assume that all systems that can run configure have sys/param.h.  */
21578 # ifndef HAVE_SYS_PARAM_H
21579 #  define HAVE_SYS_PARAM_H 1
21580 # endif
21581
21582 # ifdef _SC_PAGESIZE
21583 #  define getpagesize() sysconf(_SC_PAGESIZE)
21584 # else /* no _SC_PAGESIZE */
21585 #  ifdef HAVE_SYS_PARAM_H
21586 #   include <sys/param.h>
21587 #   ifdef EXEC_PAGESIZE
21588 #    define getpagesize() EXEC_PAGESIZE
21589 #   else /* no EXEC_PAGESIZE */
21590 #    ifdef NBPG
21591 #     define getpagesize() NBPG * CLSIZE
21592 #     ifndef CLSIZE
21593 #      define CLSIZE 1
21594 #     endif /* no CLSIZE */
21595 #    else /* no NBPG */
21596 #     ifdef NBPC
21597 #      define getpagesize() NBPC
21598 #     else /* no NBPC */
21599 #      ifdef PAGESIZE
21600 #       define getpagesize() PAGESIZE
21601 #      endif /* PAGESIZE */
21602 #     endif /* no NBPC */
21603 #    endif /* no NBPG */
21604 #   endif /* no EXEC_PAGESIZE */
21605 #  else /* no HAVE_SYS_PARAM_H */
21606 #   define getpagesize() 8192   /* punt totally */
21607 #  endif /* no HAVE_SYS_PARAM_H */
21608 # endif /* no _SC_PAGESIZE */
21609
21610 #endif /* no HAVE_GETPAGESIZE */
21611
21612 int
21613 main ()
21614 {
21615   char *data, *data2, *data3;
21616   int i, pagesize;
21617   int fd;
21618
21619   pagesize = getpagesize ();
21620
21621   /* First, make a file with some known garbage in it. */
21622   data = (char *) malloc (pagesize);
21623   if (!data)
21624     return 1;
21625   for (i = 0; i < pagesize; ++i)
21626     *(data + i) = rand ();
21627   umask (0);
21628   fd = creat ("conftest.mmap", 0600);
21629   if (fd < 0)
21630     return 1;
21631   if (write (fd, data, pagesize) != pagesize)
21632     return 1;
21633   close (fd);
21634
21635   /* Next, try to mmap the file at a fixed address which already has
21636      something else allocated at it.  If we can, also make sure that
21637      we see the same garbage.  */
21638   fd = open ("conftest.mmap", O_RDWR);
21639   if (fd < 0)
21640     return 1;
21641   data2 = (char *) malloc (2 * pagesize);
21642   if (!data2)
21643     return 1;
21644   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21645   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21646                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21647     return 1;
21648   for (i = 0; i < pagesize; ++i)
21649     if (*(data + i) != *(data2 + i))
21650       return 1;
21651
21652   /* Finally, make sure that changes to the mapped area do not
21653      percolate back to the file as seen by read().  (This is a bug on
21654      some variants of i386 svr4.0.)  */
21655   for (i = 0; i < pagesize; ++i)
21656     *(data2 + i) = *(data2 + i) + 1;
21657   data3 = (char *) malloc (pagesize);
21658   if (!data3)
21659     return 1;
21660   if (read (fd, data3, pagesize) != pagesize)
21661     return 1;
21662   for (i = 0; i < pagesize; ++i)
21663     if (*(data + i) != *(data3 + i))
21664       return 1;
21665   close (fd);
21666   return 0;
21667 }
21668 _ACEOF
21669 rm -f conftest$ac_exeext
21670 if { (ac_try="$ac_link"
21671 case "(($ac_try" in
21672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21673   *) ac_try_echo=$ac_try;;
21674 esac
21675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21676   (eval "$ac_link") 2>&5
21677   ac_status=$?
21678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21680   { (case "(($ac_try" in
21681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682   *) ac_try_echo=$ac_try;;
21683 esac
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685   (eval "$ac_try") 2>&5
21686   ac_status=$?
21687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688   (exit $ac_status); }; }; then
21689   ac_cv_func_mmap_fixed_mapped=yes
21690 else
21691   echo "$as_me: program exited with status $ac_status" >&5
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21694
21695 ( exit $ac_status )
21696 ac_cv_func_mmap_fixed_mapped=no
21697 fi
21698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21699 fi
21700
21701
21702 fi
21703 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21704 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21705 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21706   
21707 cat >>confdefs.h <<\_ACEOF
21708 @%:@define HAVE_MMAP 1
21709 _ACEOF
21710
21711 fi
21712 rm -f conftest.mmap
21713
21714
21715 for ac_header in stdlib.h
21716 do
21717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21719   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21722   echo $ECHO_N "(cached) $ECHO_C" >&6
21723 fi
21724 ac_res=`eval echo '${'$as_ac_Header'}'`
21725                { echo "$as_me:$LINENO: result: $ac_res" >&5
21726 echo "${ECHO_T}$ac_res" >&6; }
21727 else
21728   # Is the header compilable?
21729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737 $ac_includes_default
21738 @%:@include <$ac_header>
21739 _ACEOF
21740 rm -f conftest.$ac_objext
21741 if { (ac_try="$ac_compile"
21742 case "(($ac_try" in
21743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21744   *) ac_try_echo=$ac_try;;
21745 esac
21746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21747   (eval "$ac_compile") 2>conftest.er1
21748   ac_status=$?
21749   grep -v '^ *+' conftest.er1 >conftest.err
21750   rm -f conftest.er1
21751   cat conftest.err >&5
21752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753   (exit $ac_status); } && {
21754          test -z "$ac_c_werror_flag" ||
21755          test ! -s conftest.err
21756        } && test -s conftest.$ac_objext; then
21757   ac_header_compiler=yes
21758 else
21759   echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762         ac_header_compiler=no
21763 fi
21764
21765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21767 echo "${ECHO_T}$ac_header_compiler" >&6; }
21768
21769 # Is the header present?
21770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21772 cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 @%:@include <$ac_header>
21779 _ACEOF
21780 if { (ac_try="$ac_cpp conftest.$ac_ext"
21781 case "(($ac_try" in
21782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783   *) ac_try_echo=$ac_try;;
21784 esac
21785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21787   ac_status=$?
21788   grep -v '^ *+' conftest.er1 >conftest.err
21789   rm -f conftest.er1
21790   cat conftest.err >&5
21791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792   (exit $ac_status); } >/dev/null && {
21793          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21794          test ! -s conftest.err
21795        }; then
21796   ac_header_preproc=yes
21797 else
21798   echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21800
21801   ac_header_preproc=no
21802 fi
21803
21804 rm -f conftest.err conftest.$ac_ext
21805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21806 echo "${ECHO_T}$ac_header_preproc" >&6; }
21807
21808 # So?  What about this header?
21809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21810   yes:no: )
21811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21815     ac_header_preproc=yes
21816     ;;
21817   no:yes:* )
21818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21830     
21831     ;;
21832 esac
21833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838   eval "$as_ac_Header=\$ac_header_preproc"
21839 fi
21840 ac_res=`eval echo '${'$as_ac_Header'}'`
21841                { echo "$as_me:$LINENO: result: $ac_res" >&5
21842 echo "${ECHO_T}$ac_res" >&6; }
21843
21844 fi
21845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21846   cat >>confdefs.h <<_ACEOF
21847 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21848 _ACEOF
21849  
21850 fi
21851
21852 done
21853
21854 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21855 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
21856 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21857   echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859   if test "$cross_compiling" = yes; then
21860   ac_cv_func_realloc_0_nonnull=no
21861 else
21862   cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h.  */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h.  */
21868 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21869 # include <stdlib.h>
21870 #else
21871 char *realloc ();
21872 #endif
21873
21874 int
21875 main ()
21876 {
21877 return ! realloc (0, 0);
21878   ;
21879   return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest$ac_exeext
21883 if { (ac_try="$ac_link"
21884 case "(($ac_try" in
21885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886   *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889   (eval "$ac_link") 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21893   { (case "(($ac_try" in
21894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21895   *) ac_try_echo=$ac_try;;
21896 esac
21897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21898   (eval "$ac_try") 2>&5
21899   ac_status=$?
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); }; }; then
21902   ac_cv_func_realloc_0_nonnull=yes
21903 else
21904   echo "$as_me: program exited with status $ac_status" >&5
21905 echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21907
21908 ( exit $ac_status )
21909 ac_cv_func_realloc_0_nonnull=no
21910 fi
21911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21912 fi
21913
21914
21915 fi
21916 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21917 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
21918 if test $ac_cv_func_realloc_0_nonnull = yes; then
21919   
21920 cat >>confdefs.h <<\_ACEOF
21921 @%:@define HAVE_REALLOC 1
21922 _ACEOF
21923
21924 else
21925   cat >>confdefs.h <<\_ACEOF
21926 @%:@define HAVE_REALLOC 0
21927 _ACEOF
21928
21929    case " $LIB@&t@OBJS " in
21930   *" realloc.$ac_objext "* ) ;;
21931   *) LIB@&t@OBJS="$LIB@&t@OBJS realloc.$ac_objext"
21932  ;;
21933 esac
21934
21935    
21936 cat >>confdefs.h <<\_ACEOF
21937 @%:@define realloc rpl_realloc
21938 _ACEOF
21939
21940 fi
21941
21942
21943
21944
21945 for ac_func in vprintf
21946 do
21947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21951   echo $ECHO_N "(cached) $ECHO_C" >&6
21952 else
21953   cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h.  */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h.  */
21959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21961 #define $ac_func innocuous_$ac_func
21962
21963 /* System header to define __stub macros and hopefully few prototypes,
21964     which can conflict with char $ac_func (); below.
21965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21966     <limits.h> exists even on freestanding compilers.  */
21967
21968 #ifdef __STDC__
21969 # include <limits.h>
21970 #else
21971 # include <assert.h>
21972 #endif
21973
21974 #undef $ac_func
21975
21976 /* Override any GCC internal prototype to avoid an error.
21977    Use char because int might match the return type of a GCC
21978    builtin and then its argument prototype would still apply.  */
21979 #ifdef __cplusplus
21980 extern "C"
21981 #endif
21982 char $ac_func ();
21983 /* The GNU C library defines this for functions which it implements
21984     to always fail with ENOSYS.  Some functions are actually named
21985     something starting with __ and the normal name is an alias.  */
21986 #if defined __stub_$ac_func || defined __stub___$ac_func
21987 choke me
21988 #endif
21989
21990 int
21991 main ()
21992 {
21993 return $ac_func ();
21994   ;
21995   return 0;
21996 }
21997 _ACEOF
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002   *) ac_try_echo=$ac_try;;
22003 esac
22004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005   (eval "$ac_link") 2>conftest.er1
22006   ac_status=$?
22007   grep -v '^ *+' conftest.er1 >conftest.err
22008   rm -f conftest.er1
22009   cat conftest.err >&5
22010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); } && {
22012          test -z "$ac_c_werror_flag" ||
22013          test ! -s conftest.err
22014        } && test -s conftest$ac_exeext &&
22015        $as_test_x conftest$ac_exeext; then
22016   eval "$as_ac_var=yes"
22017 else
22018   echo "$as_me: failed program was:" >&5
22019 sed 's/^/| /' conftest.$ac_ext >&5
22020
22021         eval "$as_ac_var=no"
22022 fi
22023
22024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22025       conftest$ac_exeext conftest.$ac_ext
22026 fi
22027 ac_res=`eval echo '${'$as_ac_var'}'`
22028                { echo "$as_me:$LINENO: result: $ac_res" >&5
22029 echo "${ECHO_T}$ac_res" >&6; }
22030 if test `eval echo '${'$as_ac_var'}'` = yes; then
22031   cat >>confdefs.h <<_ACEOF
22032 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22033 _ACEOF
22034  
22035 { echo "$as_me:$LINENO: checking for _doprnt" >&5
22036 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
22037 if test "${ac_cv_func__doprnt+set}" = set; then
22038   echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040   cat >conftest.$ac_ext <<_ACEOF
22041 /* confdefs.h.  */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h.  */
22046 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
22047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22048 #define _doprnt innocuous__doprnt
22049
22050 /* System header to define __stub macros and hopefully few prototypes,
22051     which can conflict with char _doprnt (); below.
22052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22053     <limits.h> exists even on freestanding compilers.  */
22054
22055 #ifdef __STDC__
22056 # include <limits.h>
22057 #else
22058 # include <assert.h>
22059 #endif
22060
22061 #undef _doprnt
22062
22063 /* Override any GCC internal prototype to avoid an error.
22064    Use char because int might match the return type of a GCC
22065    builtin and then its argument prototype would still apply.  */
22066 #ifdef __cplusplus
22067 extern "C"
22068 #endif
22069 char _doprnt ();
22070 /* The GNU C library defines this for functions which it implements
22071     to always fail with ENOSYS.  Some functions are actually named
22072     something starting with __ and the normal name is an alias.  */
22073 #if defined __stub__doprnt || defined __stub____doprnt
22074 choke me
22075 #endif
22076
22077 int
22078 main ()
22079 {
22080 return _doprnt ();
22081   ;
22082   return 0;
22083 }
22084 _ACEOF
22085 rm -f conftest.$ac_objext conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092   (eval "$ac_link") 2>conftest.er1
22093   ac_status=$?
22094   grep -v '^ *+' conftest.er1 >conftest.err
22095   rm -f conftest.er1
22096   cat conftest.err >&5
22097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098   (exit $ac_status); } && {
22099          test -z "$ac_c_werror_flag" ||
22100          test ! -s conftest.err
22101        } && test -s conftest$ac_exeext &&
22102        $as_test_x conftest$ac_exeext; then
22103   ac_cv_func__doprnt=yes
22104 else
22105   echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22107
22108         ac_cv_func__doprnt=no
22109 fi
22110
22111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22112       conftest$ac_exeext conftest.$ac_ext
22113 fi
22114 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22115 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
22116 if test $ac_cv_func__doprnt = yes; then
22117   
22118 cat >>confdefs.h <<\_ACEOF
22119 @%:@define HAVE_DOPRNT 1
22120 _ACEOF
22121
22122 fi
22123
22124 fi
22125 done
22126
22127
22128
22129
22130
22131
22132
22133
22134 for ac_func in mblen memset munmap strchr strpbrk strrchr
22135 do
22136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22140   echo $ECHO_N "(cached) $ECHO_C" >&6
22141 else
22142   cat >conftest.$ac_ext <<_ACEOF
22143 /* confdefs.h.  */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h.  */
22148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22150 #define $ac_func innocuous_$ac_func
22151
22152 /* System header to define __stub macros and hopefully few prototypes,
22153     which can conflict with char $ac_func (); below.
22154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22155     <limits.h> exists even on freestanding compilers.  */
22156
22157 #ifdef __STDC__
22158 # include <limits.h>
22159 #else
22160 # include <assert.h>
22161 #endif
22162
22163 #undef $ac_func
22164
22165 /* Override any GCC internal prototype to avoid an error.
22166    Use char because int might match the return type of a GCC
22167    builtin and then its argument prototype would still apply.  */
22168 #ifdef __cplusplus
22169 extern "C"
22170 #endif
22171 char $ac_func ();
22172 /* The GNU C library defines this for functions which it implements
22173     to always fail with ENOSYS.  Some functions are actually named
22174     something starting with __ and the normal name is an alias.  */
22175 #if defined __stub_$ac_func || defined __stub___$ac_func
22176 choke me
22177 #endif
22178
22179 int
22180 main ()
22181 {
22182 return $ac_func ();
22183   ;
22184   return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191   *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194   (eval "$ac_link") 2>conftest.er1
22195   ac_status=$?
22196   grep -v '^ *+' conftest.er1 >conftest.err
22197   rm -f conftest.er1
22198   cat conftest.err >&5
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); } && {
22201          test -z "$ac_c_werror_flag" ||
22202          test ! -s conftest.err
22203        } && test -s conftest$ac_exeext &&
22204        $as_test_x conftest$ac_exeext; then
22205   eval "$as_ac_var=yes"
22206 else
22207   echo "$as_me: failed program was:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22209
22210         eval "$as_ac_var=no"
22211 fi
22212
22213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22214       conftest$ac_exeext conftest.$ac_ext
22215 fi
22216 ac_res=`eval echo '${'$as_ac_var'}'`
22217                { echo "$as_me:$LINENO: result: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22219 if test `eval echo '${'$as_ac_var'}'` = yes; then
22220   cat >>confdefs.h <<_ACEOF
22221 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22222 _ACEOF
22223  
22224 fi
22225 done
22226
22227
22228 { echo "$as_me:$LINENO: checking for darts.h" >&5
22229 echo $ECHO_N "checking for darts.h... $ECHO_C" >&6; }
22230
22231 # Check whether --with-darts was given.
22232 if test "${with_darts+set}" = set; then
22233   withval=$with_darts; if test "${with_darts}" = yes; then
22234         vi_darts_path="/usr/local/include"
22235      else
22236         vi_darts_path=${with_darts}
22237      fi
22238      CXXFLAGS="${CXXFLAGS} -I${vi_darts_path}"
22239     
22240 fi
22241
22242
22243 ac_ext=cpp
22244 ac_cpp='$CXXCPP $CPPFLAGS'
22245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22248
22249
22250 if test "${cl_cv_header_darts+set}" = set; then
22251   echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253   
22254 cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h.  */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h.  */
22260 #include <darts.h>
22261 int
22262 main ()
22263 {
22264 ;
22265   ;
22266   return 0;
22267 }
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273   *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276   (eval "$ac_compile") 2>conftest.er1
22277   ac_status=$?
22278   grep -v '^ *+' conftest.er1 >conftest.err
22279   rm -f conftest.er1
22280   cat conftest.err >&5
22281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282   (exit $ac_status); } && {
22283          test -z "$ac_cxx_werror_flag" ||
22284          test ! -s conftest.err
22285        } && test -s conftest.$ac_objext; then
22286   cl_cv_header_darts=yes
22287 else
22288   echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22290
22291         
22292     { { echo "$as_me:$LINENO: error: no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/." >&5
22293 echo "$as_me: error: no header of Darts. You need to fetch Darts from http://cl.aist-nara.ac.jp/~taku-ku/software/darts/." >&2;}
22294    { (exit 1); exit 1; }; }
22295 fi
22296
22297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298 fi
22299
22300 { echo "$as_me:$LINENO: result: $cl_cv_header_darts" >&5
22301 echo "${ECHO_T}$cl_cv_header_darts" >&6; }
22302 ac_ext=c
22303 ac_cpp='$CPP $CPPFLAGS'
22304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22307
22308
22309
22310 # Check whether --with-libiconv was given.
22311 if test "${with_libiconv+set}" = set; then
22312   withval=$with_libiconv; if test x"${with_libiconv}" != x ; then
22313         ICONV_CFLAGS="-I${with_libiconv}/include"
22314         LIBS="$LIBS -L${with_libiconv}/lib"
22315         
22316      fi
22317 fi
22318
22319
22320
22321 { echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
22322 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6; }
22323 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
22324   echo $ECHO_N "(cached) $ECHO_C" >&6
22325 else
22326   ac_check_lib_save_LIBS=$LIBS
22327 LIBS="-liconv  $LIBS"
22328 cat >conftest.$ac_ext <<_ACEOF
22329 /* confdefs.h.  */
22330 _ACEOF
22331 cat confdefs.h >>conftest.$ac_ext
22332 cat >>conftest.$ac_ext <<_ACEOF
22333 /* end confdefs.h.  */
22334
22335 /* Override any GCC internal prototype to avoid an error.
22336    Use char because int might match the return type of a GCC
22337    builtin and then its argument prototype would still apply.  */
22338 #ifdef __cplusplus
22339 extern "C"
22340 #endif
22341 char iconv ();
22342 int
22343 main ()
22344 {
22345 return iconv ();
22346   ;
22347   return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest.$ac_objext conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354   *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357   (eval "$ac_link") 2>conftest.er1
22358   ac_status=$?
22359   grep -v '^ *+' conftest.er1 >conftest.err
22360   rm -f conftest.er1
22361   cat conftest.err >&5
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); } && {
22364          test -z "$ac_c_werror_flag" ||
22365          test ! -s conftest.err
22366        } && test -s conftest$ac_exeext &&
22367        $as_test_x conftest$ac_exeext; then
22368   ac_cv_lib_iconv_iconv=yes
22369 else
22370   echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22372
22373         ac_cv_lib_iconv_iconv=no
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22377       conftest$ac_exeext conftest.$ac_ext
22378 LIBS=$ac_check_lib_save_LIBS
22379 fi
22380 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
22381 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6; }
22382 if test $ac_cv_lib_iconv_iconv = yes; then
22383   cat >>confdefs.h <<_ACEOF
22384 @%:@define HAVE_LIBICONV 1
22385 _ACEOF
22386
22387   LIBS="-liconv $LIBS"
22388
22389 else
22390   
22391         if test "${ac_cv_header_iconv_h+set}" = set; then
22392   { echo "$as_me:$LINENO: checking for iconv.h" >&5
22393 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
22394 if test "${ac_cv_header_iconv_h+set}" = set; then
22395   echo $ECHO_N "(cached) $ECHO_C" >&6
22396 fi
22397 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
22398 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
22399 else
22400   # Is the header compilable?
22401 { echo "$as_me:$LINENO: checking iconv.h usability" >&5
22402 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
22403 cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409 $ac_includes_default
22410 @%:@include <iconv.h>
22411 _ACEOF
22412 rm -f conftest.$ac_objext
22413 if { (ac_try="$ac_compile"
22414 case "(($ac_try" in
22415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416   *) ac_try_echo=$ac_try;;
22417 esac
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419   (eval "$ac_compile") 2>conftest.er1
22420   ac_status=$?
22421   grep -v '^ *+' conftest.er1 >conftest.err
22422   rm -f conftest.er1
22423   cat conftest.err >&5
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); } && {
22426          test -z "$ac_c_werror_flag" ||
22427          test ! -s conftest.err
22428        } && test -s conftest.$ac_objext; then
22429   ac_header_compiler=yes
22430 else
22431   echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.$ac_ext >&5
22433
22434         ac_header_compiler=no
22435 fi
22436
22437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22439 echo "${ECHO_T}$ac_header_compiler" >&6; }
22440
22441 # Is the header present?
22442 { echo "$as_me:$LINENO: checking iconv.h presence" >&5
22443 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
22444 cat >conftest.$ac_ext <<_ACEOF
22445 /* confdefs.h.  */
22446 _ACEOF
22447 cat confdefs.h >>conftest.$ac_ext
22448 cat >>conftest.$ac_ext <<_ACEOF
22449 /* end confdefs.h.  */
22450 @%:@include <iconv.h>
22451 _ACEOF
22452 if { (ac_try="$ac_cpp conftest.$ac_ext"
22453 case "(($ac_try" in
22454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455   *) ac_try_echo=$ac_try;;
22456 esac
22457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22459   ac_status=$?
22460   grep -v '^ *+' conftest.er1 >conftest.err
22461   rm -f conftest.er1
22462   cat conftest.err >&5
22463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22464   (exit $ac_status); } >/dev/null && {
22465          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22466          test ! -s conftest.err
22467        }; then
22468   ac_header_preproc=yes
22469 else
22470   echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473   ac_header_preproc=no
22474 fi
22475
22476 rm -f conftest.err conftest.$ac_ext
22477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22478 echo "${ECHO_T}$ac_header_preproc" >&6; }
22479
22480 # So?  What about this header?
22481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22482   yes:no: )
22483     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
22484 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22485     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
22486 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
22487     ac_header_preproc=yes
22488     ;;
22489   no:yes:* )
22490     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
22491 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
22492     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
22493 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
22494     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
22495 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
22496     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
22497 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22498     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
22499 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
22500     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
22501 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
22502     
22503     ;;
22504 esac
22505 { echo "$as_me:$LINENO: checking for iconv.h" >&5
22506 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
22507 if test "${ac_cv_header_iconv_h+set}" = set; then
22508   echo $ECHO_N "(cached) $ECHO_C" >&6
22509 else
22510   ac_cv_header_iconv_h=$ac_header_preproc
22511 fi
22512 { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
22513 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
22514
22515 fi
22516 if test $ac_cv_header_iconv_h = yes; then
22517   :
22518 else
22519   { { echo "$as_me:$LINENO: error: ChaSen needs iconv" >&5
22520 echo "$as_me: error: ChaSen needs iconv" >&2;}
22521    { (exit 1); exit 1; }; }
22522 fi
22523
22524
22525 fi
22526
22527
22528
22529
22530 { echo "$as_me:$LINENO: checking iconv args" >&5
22531 echo $ECHO_N "checking iconv args... $ECHO_C" >&6; }
22532
22533      for CODE in EUC-JP EUCJP eucJP; do
22534        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
22535          vi_iconv_arg_EUCJP=${CODE}; break
22536      fi;
22537      done
22538      rm -f iconv_test
22539      if test x"$vi_iconv_arg_EUCJP" = x; then
22540          { { echo "$as_me:$LINENO: error: cannot use EUC-JP with iconv" >&5
22541 echo "$as_me: error: cannot use EUC-JP with iconv" >&2;}
22542    { (exit 1); exit 1; }; }
22543      fi
22544      cat >>confdefs.h <<_ACEOF
22545 @%:@define ICONV_EUCJP "$vi_iconv_arg_EUCJP"
22546 _ACEOF
22547
22548      
22549
22550      for CODE in SHIFT_JIS SHIFT-JIS SJIS; do
22551        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
22552          vi_iconv_arg_SJIS=${CODE}; break
22553      fi;
22554      done
22555      rm -f iconv_test
22556      if test x"$vi_iconv_arg_SJIS" = x; then
22557          { { echo "$as_me:$LINENO: error: cannot use Shift_JIS with iconv" >&5
22558 echo "$as_me: error: cannot use Shift_JIS with iconv" >&2;}
22559    { (exit 1); exit 1; }; }
22560      fi
22561      cat >>confdefs.h <<_ACEOF
22562 @%:@define ICONV_SJIS "$vi_iconv_arg_SJIS"
22563 _ACEOF
22564
22565      
22566
22567      for CODE in ISO-8859-1 ISO_8859-1 8859-1 ISO8859-1; do
22568        if (echo | iconv -f ${CODE} -t 'UTF-8' > iconv_test 2>&1); then
22569          vi_iconv_arg_88591=${CODE}; break
22570      fi;
22571      done
22572      rm -f iconv_test
22573      if test x"$vi_iconv_arg_88591" = x; then
22574          { { echo "$as_me:$LINENO: error: cannot use ISO-8859-1 with iconv" >&5
22575 echo "$as_me: error: cannot use ISO-8859-1 with iconv" >&2;}
22576    { (exit 1); exit 1; }; }
22577      fi
22578      cat >>confdefs.h <<_ACEOF
22579 @%:@define ICONV_88591 "$vi_iconv_arg_88591"
22580 _ACEOF
22581
22582      
22583 { echo "$as_me:$LINENO: result: $vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&5
22584 echo "${ECHO_T}$vi_iconv_arg_EUCJP $vi_iconv_arg_SJIS $vi_iconv_arg_88591" >&6; }
22585
22586 { echo "$as_me:$LINENO: checking for off_t" >&5
22587 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22588 if test "${ac_cv_type_off_t+set}" = set; then
22589   echo $ECHO_N "(cached) $ECHO_C" >&6
22590 else
22591   cat >conftest.$ac_ext <<_ACEOF
22592 /* confdefs.h.  */
22593 _ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h.  */
22597 $ac_includes_default
22598 typedef off_t ac__type_new_;
22599 int
22600 main ()
22601 {
22602 if ((ac__type_new_ *) 0)
22603   return 0;
22604 if (sizeof (ac__type_new_))
22605   return 0;
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614   *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617   (eval "$ac_compile") 2>conftest.er1
22618   ac_status=$?
22619   grep -v '^ *+' conftest.er1 >conftest.err
22620   rm -f conftest.er1
22621   cat conftest.err >&5
22622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623   (exit $ac_status); } && {
22624          test -z "$ac_c_werror_flag" ||
22625          test ! -s conftest.err
22626        } && test -s conftest.$ac_objext; then
22627   ac_cv_type_off_t=yes
22628 else
22629   echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632         ac_cv_type_off_t=no
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
22637 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22638 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22639 if test $ac_cv_type_off_t = yes; then
22640   :
22641 else
22642   
22643 cat >>confdefs.h <<_ACEOF
22644 @%:@define off_t long int
22645 _ACEOF
22646
22647 fi
22648
22649 { echo "$as_me:$LINENO: checking for size_t" >&5
22650 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22651 if test "${ac_cv_type_size_t+set}" = set; then
22652   echo $ECHO_N "(cached) $ECHO_C" >&6
22653 else
22654   cat >conftest.$ac_ext <<_ACEOF
22655 /* confdefs.h.  */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h.  */
22660 $ac_includes_default
22661 typedef size_t ac__type_new_;
22662 int
22663 main ()
22664 {
22665 if ((ac__type_new_ *) 0)
22666   return 0;
22667 if (sizeof (ac__type_new_))
22668   return 0;
22669   ;
22670   return 0;
22671 }
22672 _ACEOF
22673 rm -f conftest.$ac_objext
22674 if { (ac_try="$ac_compile"
22675 case "(($ac_try" in
22676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677   *) ac_try_echo=$ac_try;;
22678 esac
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680   (eval "$ac_compile") 2>conftest.er1
22681   ac_status=$?
22682   grep -v '^ *+' conftest.er1 >conftest.err
22683   rm -f conftest.er1
22684   cat conftest.err >&5
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); } && {
22687          test -z "$ac_c_werror_flag" ||
22688          test ! -s conftest.err
22689        } && test -s conftest.$ac_objext; then
22690   ac_cv_type_size_t=yes
22691 else
22692   echo "$as_me: failed program was:" >&5
22693 sed 's/^/| /' conftest.$ac_ext >&5
22694
22695         ac_cv_type_size_t=no
22696 fi
22697
22698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22699 fi
22700 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22701 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22702 if test $ac_cv_type_size_t = yes; then
22703   :
22704 else
22705   
22706 cat >>confdefs.h <<_ACEOF
22707 @%:@define size_t unsigned int
22708 _ACEOF
22709
22710 fi
22711
22712
22713 { echo "$as_me:$LINENO: checking for working memcmp" >&5
22714 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
22715 if test "${ac_cv_func_memcmp_working+set}" = set; then
22716   echo $ECHO_N "(cached) $ECHO_C" >&6
22717 else
22718   if test "$cross_compiling" = yes; then
22719   ac_cv_func_memcmp_working=no
22720 else
22721   cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h.  */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h.  */
22727 $ac_includes_default
22728 int
22729 main ()
22730 {
22731
22732   /* Some versions of memcmp are not 8-bit clean.  */
22733   char c0 = '\100', c1 = '\200', c2 = '\201';
22734   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22735     return 1;
22736
22737   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22738      or more and with at least one buffer not starting on a 4-byte boundary.
22739      William Lewis provided this test program.   */
22740   {
22741     char foo[21];
22742     char bar[21];
22743     int i;
22744     for (i = 0; i < 4; i++)
22745       {
22746         char *a = foo + i;
22747         char *b = bar + i;
22748         strcpy (a, "--------01111111");
22749         strcpy (b, "--------10000000");
22750         if (memcmp (a, b, 16) >= 0)
22751           return 1;
22752       }
22753     return 0;
22754   }
22755
22756   ;
22757   return 0;
22758 }
22759 _ACEOF
22760 rm -f conftest$ac_exeext
22761 if { (ac_try="$ac_link"
22762 case "(($ac_try" in
22763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22764   *) ac_try_echo=$ac_try;;
22765 esac
22766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22767   (eval "$ac_link") 2>&5
22768   ac_status=$?
22769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22771   { (case "(($ac_try" in
22772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773   *) ac_try_echo=$ac_try;;
22774 esac
22775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22776   (eval "$ac_try") 2>&5
22777   ac_status=$?
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); }; }; then
22780   ac_cv_func_memcmp_working=yes
22781 else
22782   echo "$as_me: program exited with status $ac_status" >&5
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786 ( exit $ac_status )
22787 ac_cv_func_memcmp_working=no
22788 fi
22789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22790 fi
22791
22792
22793 fi
22794 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22795 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
22796 test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
22797   *" memcmp.$ac_objext "* ) ;;
22798   *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
22799  ;;
22800 esac
22801
22802
22803
22804
22805 for ac_header in stdlib.h unistd.h
22806 do
22807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22809   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22812   echo $ECHO_N "(cached) $ECHO_C" >&6
22813 fi
22814 ac_res=`eval echo '${'$as_ac_Header'}'`
22815                { echo "$as_me:$LINENO: result: $ac_res" >&5
22816 echo "${ECHO_T}$ac_res" >&6; }
22817 else
22818   # Is the header compilable?
22819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22821 cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h.  */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h.  */
22827 $ac_includes_default
22828 @%:@include <$ac_header>
22829 _ACEOF
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834   *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837   (eval "$ac_compile") 2>conftest.er1
22838   ac_status=$?
22839   grep -v '^ *+' conftest.er1 >conftest.err
22840   rm -f conftest.er1
22841   cat conftest.err >&5
22842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843   (exit $ac_status); } && {
22844          test -z "$ac_c_werror_flag" ||
22845          test ! -s conftest.err
22846        } && test -s conftest.$ac_objext; then
22847   ac_header_compiler=yes
22848 else
22849   echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852         ac_header_compiler=no
22853 fi
22854
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22857 echo "${ECHO_T}$ac_header_compiler" >&6; }
22858
22859 # Is the header present?
22860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22862 cat >conftest.$ac_ext <<_ACEOF
22863 /* confdefs.h.  */
22864 _ACEOF
22865 cat confdefs.h >>conftest.$ac_ext
22866 cat >>conftest.$ac_ext <<_ACEOF
22867 /* end confdefs.h.  */
22868 @%:@include <$ac_header>
22869 _ACEOF
22870 if { (ac_try="$ac_cpp conftest.$ac_ext"
22871 case "(($ac_try" in
22872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873   *) ac_try_echo=$ac_try;;
22874 esac
22875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } >/dev/null && {
22883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22884          test ! -s conftest.err
22885        }; then
22886   ac_header_preproc=yes
22887 else
22888   echo "$as_me: failed program was:" >&5
22889 sed 's/^/| /' conftest.$ac_ext >&5
22890
22891   ac_header_preproc=no
22892 fi
22893
22894 rm -f conftest.err conftest.$ac_ext
22895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22896 echo "${ECHO_T}$ac_header_preproc" >&6; }
22897
22898 # So?  What about this header?
22899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22900   yes:no: )
22901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22905     ac_header_preproc=yes
22906     ;;
22907   no:yes:* )
22908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22910     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22911 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22912     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22914     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22915 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22918     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22920     
22921     ;;
22922 esac
22923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22926   echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928   eval "$as_ac_Header=\$ac_header_preproc"
22929 fi
22930 ac_res=`eval echo '${'$as_ac_Header'}'`
22931                { echo "$as_me:$LINENO: result: $ac_res" >&5
22932 echo "${ECHO_T}$ac_res" >&6; }
22933
22934 fi
22935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22936   cat >>confdefs.h <<_ACEOF
22937 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22938 _ACEOF
22939  
22940 fi
22941
22942 done
22943
22944
22945 for ac_func in getpagesize
22946 do
22947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22951   echo $ECHO_N "(cached) $ECHO_C" >&6
22952 else
22953   cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h.  */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h.  */
22959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22961 #define $ac_func innocuous_$ac_func
22962
22963 /* System header to define __stub macros and hopefully few prototypes,
22964     which can conflict with char $ac_func (); below.
22965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22966     <limits.h> exists even on freestanding compilers.  */
22967
22968 #ifdef __STDC__
22969 # include <limits.h>
22970 #else
22971 # include <assert.h>
22972 #endif
22973
22974 #undef $ac_func
22975
22976 /* Override any GCC internal prototype to avoid an error.
22977    Use char because int might match the return type of a GCC
22978    builtin and then its argument prototype would still apply.  */
22979 #ifdef __cplusplus
22980 extern "C"
22981 #endif
22982 char $ac_func ();
22983 /* The GNU C library defines this for functions which it implements
22984     to always fail with ENOSYS.  Some functions are actually named
22985     something starting with __ and the normal name is an alias.  */
22986 #if defined __stub_$ac_func || defined __stub___$ac_func
22987 choke me
22988 #endif
22989
22990 int
22991 main ()
22992 {
22993 return $ac_func ();
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext conftest$ac_exeext
22999 if { (ac_try="$ac_link"
23000 case "(($ac_try" in
23001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002   *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005   (eval "$ac_link") 2>conftest.er1
23006   ac_status=$?
23007   grep -v '^ *+' conftest.er1 >conftest.err
23008   rm -f conftest.er1
23009   cat conftest.err >&5
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } && {
23012          test -z "$ac_c_werror_flag" ||
23013          test ! -s conftest.err
23014        } && test -s conftest$ac_exeext &&
23015        $as_test_x conftest$ac_exeext; then
23016   eval "$as_ac_var=yes"
23017 else
23018   echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23020
23021         eval "$as_ac_var=no"
23022 fi
23023
23024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23025       conftest$ac_exeext conftest.$ac_ext
23026 fi
23027 ac_res=`eval echo '${'$as_ac_var'}'`
23028                { echo "$as_me:$LINENO: result: $ac_res" >&5
23029 echo "${ECHO_T}$ac_res" >&6; }
23030 if test `eval echo '${'$as_ac_var'}'` = yes; then
23031   cat >>confdefs.h <<_ACEOF
23032 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23033 _ACEOF
23034  
23035 fi
23036 done
23037
23038 { echo "$as_me:$LINENO: checking for working mmap" >&5
23039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
23040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23041   echo $ECHO_N "(cached) $ECHO_C" >&6
23042 else
23043   if test "$cross_compiling" = yes; then
23044   ac_cv_func_mmap_fixed_mapped=no
23045 else
23046   cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 $ac_includes_default
23053 /* malloc might have been renamed as rpl_malloc. */
23054 #undef malloc
23055
23056 /* Thanks to Mike Haertel and Jim Avera for this test.
23057    Here is a matrix of mmap possibilities:
23058         mmap private not fixed
23059         mmap private fixed at somewhere currently unmapped
23060         mmap private fixed at somewhere already mapped
23061         mmap shared not fixed
23062         mmap shared fixed at somewhere currently unmapped
23063         mmap shared fixed at somewhere already mapped
23064    For private mappings, we should verify that changes cannot be read()
23065    back from the file, nor mmap's back from the file at a different
23066    address.  (There have been systems where private was not correctly
23067    implemented like the infamous i386 svr4.0, and systems where the
23068    VM page cache was not coherent with the file system buffer cache
23069    like early versions of FreeBSD and possibly contemporary NetBSD.)
23070    For shared mappings, we should conversely verify that changes get
23071    propagated back to all the places they're supposed to be.
23072
23073    Grep wants private fixed already mapped.
23074    The main things grep needs to know about mmap are:
23075    * does it exist and is it safe to write into the mmap'd area
23076    * how to use it (BSD variants)  */
23077
23078 #include <fcntl.h>
23079 #include <sys/mman.h>
23080
23081 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23082 char *malloc ();
23083 #endif
23084
23085 /* This mess was copied from the GNU getpagesize.h.  */
23086 #ifndef HAVE_GETPAGESIZE
23087 /* Assume that all systems that can run configure have sys/param.h.  */
23088 # ifndef HAVE_SYS_PARAM_H
23089 #  define HAVE_SYS_PARAM_H 1
23090 # endif
23091
23092 # ifdef _SC_PAGESIZE
23093 #  define getpagesize() sysconf(_SC_PAGESIZE)
23094 # else /* no _SC_PAGESIZE */
23095 #  ifdef HAVE_SYS_PARAM_H
23096 #   include <sys/param.h>
23097 #   ifdef EXEC_PAGESIZE
23098 #    define getpagesize() EXEC_PAGESIZE
23099 #   else /* no EXEC_PAGESIZE */
23100 #    ifdef NBPG
23101 #     define getpagesize() NBPG * CLSIZE
23102 #     ifndef CLSIZE
23103 #      define CLSIZE 1
23104 #     endif /* no CLSIZE */
23105 #    else /* no NBPG */
23106 #     ifdef NBPC
23107 #      define getpagesize() NBPC
23108 #     else /* no NBPC */
23109 #      ifdef PAGESIZE
23110 #       define getpagesize() PAGESIZE
23111 #      endif /* PAGESIZE */
23112 #     endif /* no NBPC */
23113 #    endif /* no NBPG */
23114 #   endif /* no EXEC_PAGESIZE */
23115 #  else /* no HAVE_SYS_PARAM_H */
23116 #   define getpagesize() 8192   /* punt totally */
23117 #  endif /* no HAVE_SYS_PARAM_H */
23118 # endif /* no _SC_PAGESIZE */
23119
23120 #endif /* no HAVE_GETPAGESIZE */
23121
23122 int
23123 main ()
23124 {
23125   char *data, *data2, *data3;
23126   int i, pagesize;
23127   int fd;
23128
23129   pagesize = getpagesize ();
23130
23131   /* First, make a file with some known garbage in it. */
23132   data = (char *) malloc (pagesize);
23133   if (!data)
23134     return 1;
23135   for (i = 0; i < pagesize; ++i)
23136     *(data + i) = rand ();
23137   umask (0);
23138   fd = creat ("conftest.mmap", 0600);
23139   if (fd < 0)
23140     return 1;
23141   if (write (fd, data, pagesize) != pagesize)
23142     return 1;
23143   close (fd);
23144
23145   /* Next, try to mmap the file at a fixed address which already has
23146      something else allocated at it.  If we can, also make sure that
23147      we see the same garbage.  */
23148   fd = open ("conftest.mmap", O_RDWR);
23149   if (fd < 0)
23150     return 1;
23151   data2 = (char *) malloc (2 * pagesize);
23152   if (!data2)
23153     return 1;
23154   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
23155   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23156                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23157     return 1;
23158   for (i = 0; i < pagesize; ++i)
23159     if (*(data + i) != *(data2 + i))
23160       return 1;
23161
23162   /* Finally, make sure that changes to the mapped area do not
23163      percolate back to the file as seen by read().  (This is a bug on
23164      some variants of i386 svr4.0.)  */
23165   for (i = 0; i < pagesize; ++i)
23166     *(data2 + i) = *(data2 + i) + 1;
23167   data3 = (char *) malloc (pagesize);
23168   if (!data3)
23169     return 1;
23170   if (read (fd, data3, pagesize) != pagesize)
23171     return 1;
23172   for (i = 0; i < pagesize; ++i)
23173     if (*(data + i) != *(data3 + i))
23174       return 1;
23175   close (fd);
23176   return 0;
23177 }
23178 _ACEOF
23179 rm -f conftest$ac_exeext
23180 if { (ac_try="$ac_link"
23181 case "(($ac_try" in
23182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183   *) ac_try_echo=$ac_try;;
23184 esac
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186   (eval "$ac_link") 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23190   { (case "(($ac_try" in
23191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192   *) ac_try_echo=$ac_try;;
23193 esac
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195   (eval "$ac_try") 2>&5
23196   ac_status=$?
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); }; }; then
23199   ac_cv_func_mmap_fixed_mapped=yes
23200 else
23201   echo "$as_me: program exited with status $ac_status" >&5
23202 echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205 ( exit $ac_status )
23206 ac_cv_func_mmap_fixed_mapped=no
23207 fi
23208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23209 fi
23210
23211
23212 fi
23213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
23215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23216   
23217 cat >>confdefs.h <<\_ACEOF
23218 @%:@define HAVE_MMAP 1
23219 _ACEOF
23220
23221 fi
23222 rm -f conftest.mmap
23223
23224
23225 case "$host_os" in
23226     mingw* | os2*)
23227     RCPATH='c:\\\\Program Files\\\\chasen\\\\etc\\\\chasenrc'
23228     ;;
23229     *)
23230     # UNIX like-system
23231     RCPATH="$sysconfdir/chasenrc"
23232     ;;
23233 esac
23234
23235
23236 if test -n "${GCC}"; then
23237         CFLAGS="${CFLAGS} -Wall"
23238 fi
23239
23240
23241 ac_config_files="$ac_config_files Makefile chasen-config chasen/Makefile mkchadic/Makefile doc/Makefile lib/Makefile tests/Makefile chasen.spec"
23242
23243 ac_config_commands="$ac_config_commands default"
23244
23245 cat >confcache <<\_ACEOF
23246 # This file is a shell script that caches the results of configure
23247 # tests run on this system so they can be shared between configure
23248 # scripts and configure runs, see configure's option --config-cache.
23249 # It is not useful on other systems.  If it contains results you don't
23250 # want to keep, you may remove or edit it.
23251 #
23252 # config.status only pays attention to the cache file if you give it
23253 # the --recheck option to rerun configure.
23254 #
23255 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23256 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23257 # following values.
23258
23259 _ACEOF
23260
23261 # The following way of writing the cache mishandles newlines in values,
23262 # but we know of no workaround that is simple, portable, and efficient.
23263 # So, we kill variables containing newlines.
23264 # Ultrix sh set writes to stderr and can't be redirected directly,
23265 # and sets the high bit in the cache file unless we assign to the vars.
23266 (
23267   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23268     eval ac_val=\$$ac_var
23269     case $ac_val in #(
23270     *${as_nl}*)
23271       case $ac_var in #(
23272       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23273 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23274       esac
23275       case $ac_var in #(
23276       _ | IFS | as_nl) ;; #(
23277       *) $as_unset $ac_var ;;
23278       esac ;;
23279     esac
23280   done
23281
23282   (set) 2>&1 |
23283     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23284     *${as_nl}ac_space=\ *)
23285       # `set' does not quote correctly, so add quotes (double-quote
23286       # substitution turns \\\\ into \\, and sed turns \\ into \).
23287       sed -n \
23288         "s/'/'\\\\''/g;
23289           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23290       ;; #(
23291     *)
23292       # `set' quotes correctly as required by POSIX, so do not add quotes.
23293       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23294       ;;
23295     esac |
23296     sort
23297 ) |
23298   sed '
23299      /^ac_cv_env_/b end
23300      t clear
23301      :clear
23302      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23303      t end
23304      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23305      :end' >>confcache
23306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23307   if test -w "$cache_file"; then
23308     test "x$cache_file" != "x/dev/null" &&
23309       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23310 echo "$as_me: updating cache $cache_file" >&6;}
23311     cat confcache >$cache_file
23312   else
23313     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23314 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23315   fi
23316 fi
23317 rm -f confcache
23318
23319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23320 # Let make expand exec_prefix.
23321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23322
23323 DEFS=-DHAVE_CONFIG_H
23324
23325 ac_libobjs=
23326 ac_ltlibobjs=
23327 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
23328   # 1. Remove the extension, and $U if already installed.
23329   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23330   ac_i=`echo "$ac_i" | sed "$ac_script"`
23331   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23332   #    will be set to the directory where LIBOBJS objects are built.
23333   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23334   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23335 done
23336 LIB@&t@OBJS=$ac_libobjs
23337
23338 LTLIBOBJS=$ac_ltlibobjs
23339
23340
23341 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23342   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23343 Usually this means the macro was only invoked conditionally." >&5
23344 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23345 Usually this means the macro was only invoked conditionally." >&2;}
23346    { (exit 1); exit 1; }; }
23347 fi
23348 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23349   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23350 Usually this means the macro was only invoked conditionally." >&5
23351 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23352 Usually this means the macro was only invoked conditionally." >&2;}
23353    { (exit 1); exit 1; }; }
23354 fi
23355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23356   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23357 Usually this means the macro was only invoked conditionally." >&5
23358 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23359 Usually this means the macro was only invoked conditionally." >&2;}
23360    { (exit 1); exit 1; }; }
23361 fi
23362 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23363   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23364 Usually this means the macro was only invoked conditionally." >&5
23365 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23366 Usually this means the macro was only invoked conditionally." >&2;}
23367    { (exit 1); exit 1; }; }
23368 fi
23369
23370 : ${CONFIG_STATUS=./config.status}
23371 ac_clean_files_save=$ac_clean_files
23372 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23373 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23374 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23375 cat >$CONFIG_STATUS <<_ACEOF
23376 #! $SHELL
23377 # Generated by $as_me.
23378 # Run this file to recreate the current configuration.
23379 # Compiler output produced by configure, useful for debugging
23380 # configure, is in config.log if it exists.
23381
23382 debug=false
23383 ac_cs_recheck=false
23384 ac_cs_silent=false
23385 SHELL=\${CONFIG_SHELL-$SHELL}
23386 _ACEOF
23387
23388 cat >>$CONFIG_STATUS <<\_ACEOF
23389 ## --------------------- ##
23390 ## M4sh Initialization.  ##
23391 ## --------------------- ##
23392
23393 # Be more Bourne compatible
23394 DUALCASE=1; export DUALCASE # for MKS sh
23395 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23396   emulate sh
23397   NULLCMD=:
23398   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23399   # is contrary to our usage.  Disable this feature.
23400   alias -g '${1+"$@"}'='"$@"'
23401   setopt NO_GLOB_SUBST
23402 else
23403   case `(set -o) 2>/dev/null` in
23404   *posix*) set -o posix ;;
23405 esac
23406
23407 fi
23408
23409
23410
23411
23412 # PATH needs CR
23413 # Avoid depending upon Character Ranges.
23414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23417 as_cr_digits='0123456789'
23418 as_cr_alnum=$as_cr_Letters$as_cr_digits
23419
23420 # The user is always right.
23421 if test "${PATH_SEPARATOR+set}" != set; then
23422   echo "#! /bin/sh" >conf$$.sh
23423   echo  "exit 0"   >>conf$$.sh
23424   chmod +x conf$$.sh
23425   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23426     PATH_SEPARATOR=';'
23427   else
23428     PATH_SEPARATOR=:
23429   fi
23430   rm -f conf$$.sh
23431 fi
23432
23433 # Support unset when possible.
23434 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23435   as_unset=unset
23436 else
23437   as_unset=false
23438 fi
23439
23440
23441 # IFS
23442 # We need space, tab and new line, in precisely that order.  Quoting is
23443 # there to prevent editors from complaining about space-tab.
23444 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23445 # splitting by setting IFS to empty value.)
23446 as_nl='
23447 '
23448 IFS=" ""        $as_nl"
23449
23450 # Find who we are.  Look in the path if we contain no directory separator.
23451 case $0 in
23452   *[\\/]* ) as_myself=$0 ;;
23453   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23454 for as_dir in $PATH
23455 do
23456   IFS=$as_save_IFS
23457   test -z "$as_dir" && as_dir=.
23458   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23459 done
23460 IFS=$as_save_IFS
23461
23462      ;;
23463 esac
23464 # We did not find ourselves, most probably we were run as `sh COMMAND'
23465 # in which case we are not to be found in the path.
23466 if test "x$as_myself" = x; then
23467   as_myself=$0
23468 fi
23469 if test ! -f "$as_myself"; then
23470   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23471   { (exit 1); exit 1; }
23472 fi
23473
23474 # Work around bugs in pre-3.0 UWIN ksh.
23475 for as_var in ENV MAIL MAILPATH
23476 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23477 done
23478 PS1='$ '
23479 PS2='> '
23480 PS4='+ '
23481
23482 # NLS nuisances.
23483 for as_var in \
23484   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23485   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23486   LC_TELEPHONE LC_TIME
23487 do
23488   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23489     eval $as_var=C; export $as_var
23490   else
23491     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23492   fi
23493 done
23494
23495 # Required to use basename.
23496 if expr a : '\(a\)' >/dev/null 2>&1 &&
23497    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23498   as_expr=expr
23499 else
23500   as_expr=false
23501 fi
23502
23503 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23504   as_basename=basename
23505 else
23506   as_basename=false
23507 fi
23508
23509
23510 # Name of the executable.
23511 as_me=`$as_basename -- "$0" ||
23512 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23513          X"$0" : 'X\(//\)$' \| \
23514          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23515 echo X/"$0" |
23516     sed '/^.*\/\([^/][^/]*\)\/*$/{
23517             s//\1/
23518             q
23519           }
23520           /^X\/\(\/\/\)$/{
23521             s//\1/
23522             q
23523           }
23524           /^X\/\(\/\).*/{
23525             s//\1/
23526             q
23527           }
23528           s/.*/./; q'`
23529
23530 # CDPATH.
23531 $as_unset CDPATH
23532
23533
23534
23535   as_lineno_1=$LINENO
23536   as_lineno_2=$LINENO
23537   test "x$as_lineno_1" != "x$as_lineno_2" &&
23538   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23539
23540   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23541   # uniformly replaced by the line number.  The first 'sed' inserts a
23542   # line-number line after each line using $LINENO; the second 'sed'
23543   # does the real work.  The second script uses 'N' to pair each
23544   # line-number line with the line containing $LINENO, and appends
23545   # trailing '-' during substitution so that $LINENO is not a special
23546   # case at line end.
23547   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23548   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23549   # E. McMahon (1931-1989) for sed's syntax.  :-)
23550   sed -n '
23551     p
23552     /[$]LINENO/=
23553   ' <$as_myself |
23554     sed '
23555       s/[$]LINENO.*/&-/
23556       t lineno
23557       b
23558       :lineno
23559       N
23560       :loop
23561       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23562       t loop
23563       s/-\n.*//
23564     ' >$as_me.lineno &&
23565   chmod +x "$as_me.lineno" ||
23566     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23567    { (exit 1); exit 1; }; }
23568
23569   # Don't try to exec as it changes $[0], causing all sort of problems
23570   # (the dirname of $[0] is not the place where we might find the
23571   # original and so on.  Autoconf is especially sensitive to this).
23572   . "./$as_me.lineno"
23573   # Exit status is that of the last command.
23574   exit
23575 }
23576
23577
23578 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23579   as_dirname=dirname
23580 else
23581   as_dirname=false
23582 fi
23583
23584 ECHO_C= ECHO_N= ECHO_T=
23585 case `echo -n x` in
23586 -n*)
23587   case `echo 'x\c'` in
23588   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23589   *)   ECHO_C='\c';;
23590   esac;;
23591 *)
23592   ECHO_N='-n';;
23593 esac
23594
23595 if expr a : '\(a\)' >/dev/null 2>&1 &&
23596    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23597   as_expr=expr
23598 else
23599   as_expr=false
23600 fi
23601
23602 rm -f conf$$ conf$$.exe conf$$.file
23603 if test -d conf$$.dir; then
23604   rm -f conf$$.dir/conf$$.file
23605 else
23606   rm -f conf$$.dir
23607   mkdir conf$$.dir
23608 fi
23609 echo >conf$$.file
23610 if ln -s conf$$.file conf$$ 2>/dev/null; then
23611   as_ln_s='ln -s'
23612   # ... but there are two gotchas:
23613   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23614   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23615   # In both cases, we have to default to `cp -p'.
23616   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23617     as_ln_s='cp -p'
23618 elif ln conf$$.file conf$$ 2>/dev/null; then
23619   as_ln_s=ln
23620 else
23621   as_ln_s='cp -p'
23622 fi
23623 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23624 rmdir conf$$.dir 2>/dev/null
23625
23626 if mkdir -p . 2>/dev/null; then
23627   as_mkdir_p=:
23628 else
23629   test -d ./-p && rmdir ./-p
23630   as_mkdir_p=false
23631 fi
23632
23633 if test -x / >/dev/null 2>&1; then
23634   as_test_x='test -x'
23635 else
23636   if ls -dL / >/dev/null 2>&1; then
23637     as_ls_L_option=L
23638   else
23639     as_ls_L_option=
23640   fi
23641   as_test_x='
23642     eval sh -c '\''
23643       if test -d "$1"; then
23644         test -d "$1/.";
23645       else
23646         case $1 in
23647         -*)set "./$1";;
23648         esac;
23649         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23650         ???[sx]*):;;*)false;;esac;fi
23651     '\'' sh
23652   '
23653 fi
23654 as_executable_p=$as_test_x
23655
23656 # Sed expression to map a string onto a valid CPP name.
23657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23658
23659 # Sed expression to map a string onto a valid variable name.
23660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23661
23662
23663 exec 6>&1
23664
23665 # Save the log message, to keep $[0] and so on meaningful, and to
23666 # report actual input values of CONFIG_FILES etc. instead of their
23667 # values after options handling.
23668 ac_log="
23669 This file was extended by $as_me, which was
23670 generated by GNU Autoconf 2.61.  Invocation command line was
23671
23672   CONFIG_FILES    = $CONFIG_FILES
23673   CONFIG_HEADERS  = $CONFIG_HEADERS
23674   CONFIG_LINKS    = $CONFIG_LINKS
23675   CONFIG_COMMANDS = $CONFIG_COMMANDS
23676   $ $0 $@
23677
23678 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23679 "
23680
23681 _ACEOF
23682
23683 cat >>$CONFIG_STATUS <<_ACEOF
23684 # Files that config.status was made for.
23685 config_files="$ac_config_files"
23686 config_headers="$ac_config_headers"
23687 config_commands="$ac_config_commands"
23688
23689 _ACEOF
23690
23691 cat >>$CONFIG_STATUS <<\_ACEOF
23692 ac_cs_usage="\
23693 \`$as_me' instantiates files from templates according to the
23694 current configuration.
23695
23696 Usage: $0 [OPTIONS] [FILE]...
23697
23698   -h, --help       print this help, then exit
23699   -V, --version    print version number and configuration settings, then exit
23700   -q, --quiet      do not print progress messages
23701   -d, --debug      don't remove temporary files
23702       --recheck    update $as_me by reconfiguring in the same conditions
23703   --file=FILE[:TEMPLATE]
23704                    instantiate the configuration file FILE
23705   --header=FILE[:TEMPLATE]
23706                    instantiate the configuration header FILE
23707
23708 Configuration files:
23709 $config_files
23710
23711 Configuration headers:
23712 $config_headers
23713
23714 Configuration commands:
23715 $config_commands
23716
23717 Report bugs to <bug-autoconf@gnu.org>."
23718
23719 _ACEOF
23720 cat >>$CONFIG_STATUS <<_ACEOF
23721 ac_cs_version="\\
23722 config.status
23723 configured by $0, generated by GNU Autoconf 2.61,
23724   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23725
23726 Copyright (C) 2006 Free Software Foundation, Inc.
23727 This config.status script is free software; the Free Software Foundation
23728 gives unlimited permission to copy, distribute and modify it."
23729
23730 ac_pwd='$ac_pwd'
23731 srcdir='$srcdir'
23732 INSTALL='$INSTALL'
23733 _ACEOF
23734
23735 cat >>$CONFIG_STATUS <<\_ACEOF
23736 # If no file are specified by the user, then we need to provide default
23737 # value.  By we need to know if files were specified by the user.
23738 ac_need_defaults=:
23739 while test $# != 0
23740 do
23741   case $1 in
23742   --*=*)
23743     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23744     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23745     ac_shift=:
23746     ;;
23747   *)
23748     ac_option=$1
23749     ac_optarg=$2
23750     ac_shift=shift
23751     ;;
23752   esac
23753
23754   case $ac_option in
23755   # Handling of the options.
23756   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23757     ac_cs_recheck=: ;;
23758   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23759     echo "$ac_cs_version"; exit ;;
23760   --debug | --debu | --deb | --de | --d | -d )
23761     debug=: ;;
23762   --file | --fil | --fi | --f )
23763     $ac_shift
23764     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23765     ac_need_defaults=false;;
23766   --header | --heade | --head | --hea )
23767     $ac_shift
23768     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23769     ac_need_defaults=false;;
23770   --he | --h)
23771     # Conflict between --help and --header
23772     { echo "$as_me: error: ambiguous option: $1
23773 Try \`$0 --help' for more information." >&2
23774    { (exit 1); exit 1; }; };;
23775   --help | --hel | -h )
23776     echo "$ac_cs_usage"; exit ;;
23777   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23778   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23779     ac_cs_silent=: ;;
23780
23781   # This is an error.
23782   -*) { echo "$as_me: error: unrecognized option: $1
23783 Try \`$0 --help' for more information." >&2
23784    { (exit 1); exit 1; }; } ;;
23785
23786   *) ac_config_targets="$ac_config_targets $1"
23787      ac_need_defaults=false ;;
23788
23789   esac
23790   shift
23791 done
23792
23793 ac_configure_extra_args=
23794
23795 if $ac_cs_silent; then
23796   exec 6>/dev/null
23797   ac_configure_extra_args="$ac_configure_extra_args --silent"
23798 fi
23799
23800 _ACEOF
23801 cat >>$CONFIG_STATUS <<_ACEOF
23802 if \$ac_cs_recheck; then
23803   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23804   CONFIG_SHELL=$SHELL
23805   export CONFIG_SHELL
23806   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23807 fi
23808
23809 _ACEOF
23810 cat >>$CONFIG_STATUS <<\_ACEOF
23811 exec 5>>config.log
23812 {
23813   echo
23814   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
23815 @%:@@%:@ Running $as_me. @%:@@%:@
23816 _ASBOX
23817   echo "$ac_log"
23818 } >&5
23819
23820 _ACEOF
23821 cat >>$CONFIG_STATUS <<_ACEOF
23822 #
23823 # INIT-COMMANDS
23824 #
23825 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23826
23827 _ACEOF
23828
23829 cat >>$CONFIG_STATUS <<\_ACEOF
23830
23831 # Handling of arguments.
23832 for ac_config_target in $ac_config_targets
23833 do
23834   case $ac_config_target in
23835     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23836     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23837     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23838     "chasen-config") CONFIG_FILES="$CONFIG_FILES chasen-config" ;;
23839     "chasen/Makefile") CONFIG_FILES="$CONFIG_FILES chasen/Makefile" ;;
23840     "mkchadic/Makefile") CONFIG_FILES="$CONFIG_FILES mkchadic/Makefile" ;;
23841     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23842     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
23843     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23844     "chasen.spec") CONFIG_FILES="$CONFIG_FILES chasen.spec" ;;
23845     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23846
23847   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23848 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23849    { (exit 1); exit 1; }; };;
23850   esac
23851 done
23852
23853
23854 # If the user did not use the arguments to specify the items to instantiate,
23855 # then the envvar interface is used.  Set only those that are not.
23856 # We use the long form for the default assignment because of an extremely
23857 # bizarre bug on SunOS 4.1.3.
23858 if $ac_need_defaults; then
23859   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23860   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23861   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23862 fi
23863
23864 # Have a temporary directory for convenience.  Make it in the build tree
23865 # simply because there is no reason against having it here, and in addition,
23866 # creating and moving files from /tmp can sometimes cause problems.
23867 # Hook for its removal unless debugging.
23868 # Note that there is a small window in which the directory will not be cleaned:
23869 # after its creation but before its name has been assigned to `$tmp'.
23870 $debug ||
23871 {
23872   tmp=
23873   trap 'exit_status=$?
23874   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23875 ' 0
23876   trap '{ (exit 1); exit 1; }' 1 2 13 15
23877 }
23878 # Create a (secure) tmp directory for tmp files.
23879
23880 {
23881   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23882   test -n "$tmp" && test -d "$tmp"
23883 }  ||
23884 {
23885   tmp=./conf$$-$RANDOM
23886   (umask 077 && mkdir "$tmp")
23887 } ||
23888 {
23889    echo "$me: cannot create a temporary directory in ." >&2
23890    { (exit 1); exit 1; }
23891 }
23892
23893 #
23894 # Set up the sed scripts for CONFIG_FILES section.
23895 #
23896
23897 # No need to generate the scripts if there are no CONFIG_FILES.
23898 # This happens for instance when ./config.status config.h
23899 if test -n "$CONFIG_FILES"; then
23900
23901 _ACEOF
23902
23903
23904
23905 ac_delim='%!_!# '
23906 for ac_last_try in false false false false false :; do
23907   cat >conf$$subs.sed <<_ACEOF
23908 SHELL!$SHELL$ac_delim
23909 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23910 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23911 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23912 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23913 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23914 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23915 exec_prefix!$exec_prefix$ac_delim
23916 prefix!$prefix$ac_delim
23917 program_transform_name!$program_transform_name$ac_delim
23918 bindir!$bindir$ac_delim
23919 sbindir!$sbindir$ac_delim
23920 libexecdir!$libexecdir$ac_delim
23921 datarootdir!$datarootdir$ac_delim
23922 datadir!$datadir$ac_delim
23923 sysconfdir!$sysconfdir$ac_delim
23924 sharedstatedir!$sharedstatedir$ac_delim
23925 localstatedir!$localstatedir$ac_delim
23926 includedir!$includedir$ac_delim
23927 oldincludedir!$oldincludedir$ac_delim
23928 docdir!$docdir$ac_delim
23929 infodir!$infodir$ac_delim
23930 htmldir!$htmldir$ac_delim
23931 dvidir!$dvidir$ac_delim
23932 pdfdir!$pdfdir$ac_delim
23933 psdir!$psdir$ac_delim
23934 libdir!$libdir$ac_delim
23935 localedir!$localedir$ac_delim
23936 mandir!$mandir$ac_delim
23937 DEFS!$DEFS$ac_delim
23938 ECHO_C!$ECHO_C$ac_delim
23939 ECHO_N!$ECHO_N$ac_delim
23940 ECHO_T!$ECHO_T$ac_delim
23941 LIBS!$LIBS$ac_delim
23942 build_alias!$build_alias$ac_delim
23943 host_alias!$host_alias$ac_delim
23944 target_alias!$target_alias$ac_delim
23945 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23946 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23947 INSTALL_DATA!$INSTALL_DATA$ac_delim
23948 CYGPATH_W!$CYGPATH_W$ac_delim
23949 PACKAGE!$PACKAGE$ac_delim
23950 VERSION!$VERSION$ac_delim
23951 ACLOCAL!$ACLOCAL$ac_delim
23952 AUTOCONF!$AUTOCONF$ac_delim
23953 AUTOMAKE!$AUTOMAKE$ac_delim
23954 AUTOHEADER!$AUTOHEADER$ac_delim
23955 MAKEINFO!$MAKEINFO$ac_delim
23956 install_sh!$install_sh$ac_delim
23957 STRIP!$STRIP$ac_delim
23958 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23959 mkdir_p!$mkdir_p$ac_delim
23960 AWK!$AWK$ac_delim
23961 SET_MAKE!$SET_MAKE$ac_delim
23962 am__leading_dot!$am__leading_dot$ac_delim
23963 AMTAR!$AMTAR$ac_delim
23964 am__tar!$am__tar$ac_delim
23965 am__untar!$am__untar$ac_delim
23966 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23967 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23968 MAINT!$MAINT$ac_delim
23969 CC!$CC$ac_delim
23970 CFLAGS!$CFLAGS$ac_delim
23971 LDFLAGS!$LDFLAGS$ac_delim
23972 CPPFLAGS!$CPPFLAGS$ac_delim
23973 ac_ct_CC!$ac_ct_CC$ac_delim
23974 EXEEXT!$EXEEXT$ac_delim
23975 OBJEXT!$OBJEXT$ac_delim
23976 DEPDIR!$DEPDIR$ac_delim
23977 am__include!$am__include$ac_delim
23978 am__quote!$am__quote$ac_delim
23979 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23980 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23981 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23982 CCDEPMODE!$CCDEPMODE$ac_delim
23983 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23984 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23985 CXX!$CXX$ac_delim
23986 CXXFLAGS!$CXXFLAGS$ac_delim
23987 ac_ct_CXX!$ac_ct_CXX$ac_delim
23988 CXXDEPMODE!$CXXDEPMODE$ac_delim
23989 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23990 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23991 build!$build$ac_delim
23992 build_cpu!$build_cpu$ac_delim
23993 build_vendor!$build_vendor$ac_delim
23994 build_os!$build_os$ac_delim
23995 host!$host$ac_delim
23996 host_cpu!$host_cpu$ac_delim
23997 host_vendor!$host_vendor$ac_delim
23998 host_os!$host_os$ac_delim
23999 GREP!$GREP$ac_delim
24000 EGREP!$EGREP$ac_delim
24001 LN_S!$LN_S$ac_delim
24002 ECHO!$ECHO$ac_delim
24003 AR!$AR$ac_delim
24004 RANLIB!$RANLIB$ac_delim
24005 _ACEOF
24006
24007   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24008     break
24009   elif $ac_last_try; then
24010     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24011 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24012    { (exit 1); exit 1; }; }
24013   else
24014     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24015   fi
24016 done
24017
24018 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24019 if test -n "$ac_eof"; then
24020   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24021   ac_eof=`expr $ac_eof + 1`
24022 fi
24023
24024 cat >>$CONFIG_STATUS <<_ACEOF
24025 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24027 _ACEOF
24028 sed '
24029 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24030 s/^/s,@/; s/!/@,|#_!!_#|/
24031 :n
24032 t n
24033 s/'"$ac_delim"'$/,g/; t
24034 s/$/\\/; p
24035 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24036 ' >>$CONFIG_STATUS <conf$$subs.sed
24037 rm -f conf$$subs.sed
24038 cat >>$CONFIG_STATUS <<_ACEOF
24039 CEOF$ac_eof
24040 _ACEOF
24041
24042
24043 ac_delim='%!_!# '
24044 for ac_last_try in false false false false false :; do
24045   cat >conf$$subs.sed <<_ACEOF
24046 CPP!$CPP$ac_delim
24047 CXXCPP!$CXXCPP$ac_delim
24048 F77!$F77$ac_delim
24049 FFLAGS!$FFLAGS$ac_delim
24050 ac_ct_F77!$ac_ct_F77$ac_delim
24051 LIBTOOL!$LIBTOOL$ac_delim
24052 LEX!$LEX$ac_delim
24053 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
24054 LEXLIB!$LEXLIB$ac_delim
24055 LTVERSION!$LTVERSION$ac_delim
24056 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
24057 ICONV_CFLAGS!$ICONV_CFLAGS$ac_delim
24058 RCPATH!$RCPATH$ac_delim
24059 LTLIBOBJS!$LTLIBOBJS$ac_delim
24060 _ACEOF
24061
24062   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24063     break
24064   elif $ac_last_try; then
24065     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24066 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24067    { (exit 1); exit 1; }; }
24068   else
24069     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24070   fi
24071 done
24072
24073 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24074 if test -n "$ac_eof"; then
24075   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24076   ac_eof=`expr $ac_eof + 1`
24077 fi
24078
24079 cat >>$CONFIG_STATUS <<_ACEOF
24080 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24082 _ACEOF
24083 sed '
24084 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24085 s/^/s,@/; s/!/@,|#_!!_#|/
24086 :n
24087 t n
24088 s/'"$ac_delim"'$/,g/; t
24089 s/$/\\/; p
24090 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24091 ' >>$CONFIG_STATUS <conf$$subs.sed
24092 rm -f conf$$subs.sed
24093 cat >>$CONFIG_STATUS <<_ACEOF
24094 :end
24095 s/|#_!!_#|//g
24096 CEOF$ac_eof
24097 _ACEOF
24098
24099
24100 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24101 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24102 # trailing colons and then remove the whole line if VPATH becomes empty
24103 # (actually we leave an empty line to preserve line numbers).
24104 if test "x$srcdir" = x.; then
24105   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24106 s/:*\$(srcdir):*/:/
24107 s/:*\${srcdir}:*/:/
24108 s/:*@srcdir@:*/:/
24109 s/^\([^=]*=[     ]*\):*/\1/
24110 s/:*$//
24111 s/^[^=]*=[       ]*$//
24112 }'
24113 fi
24114
24115 cat >>$CONFIG_STATUS <<\_ACEOF
24116 fi # test -n "$CONFIG_FILES"
24117
24118
24119 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24120 do
24121   case $ac_tag in
24122   :[FHLC]) ac_mode=$ac_tag; continue;;
24123   esac
24124   case $ac_mode$ac_tag in
24125   :[FHL]*:*);;
24126   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24127 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24128    { (exit 1); exit 1; }; };;
24129   :[FH]-) ac_tag=-:-;;
24130   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24131   esac
24132   ac_save_IFS=$IFS
24133   IFS=:
24134   set x $ac_tag
24135   IFS=$ac_save_IFS
24136   shift
24137   ac_file=$1
24138   shift
24139
24140   case $ac_mode in
24141   :L) ac_source=$1;;
24142   :[FH])
24143     ac_file_inputs=
24144     for ac_f
24145     do
24146       case $ac_f in
24147       -) ac_f="$tmp/stdin";;
24148       *) # Look for the file first in the build tree, then in the source tree
24149          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24150          # because $ac_f cannot contain `:'.
24151          test -f "$ac_f" ||
24152            case $ac_f in
24153            [\\/$]*) false;;
24154            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24155            esac ||
24156            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24157 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24158    { (exit 1); exit 1; }; };;
24159       esac
24160       ac_file_inputs="$ac_file_inputs $ac_f"
24161     done
24162
24163     # Let's still pretend it is `configure' which instantiates (i.e., don't
24164     # use $as_me), people would be surprised to read:
24165     #    /* config.h.  Generated by config.status.  */
24166     configure_input="Generated from "`IFS=:
24167           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24168     if test x"$ac_file" != x-; then
24169       configure_input="$ac_file.  $configure_input"
24170       { echo "$as_me:$LINENO: creating $ac_file" >&5
24171 echo "$as_me: creating $ac_file" >&6;}
24172     fi
24173
24174     case $ac_tag in
24175     *:-:* | *:-) cat >"$tmp/stdin";;
24176     esac
24177     ;;
24178   esac
24179
24180   ac_dir=`$as_dirname -- "$ac_file" ||
24181 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24182          X"$ac_file" : 'X\(//\)[^/]' \| \
24183          X"$ac_file" : 'X\(//\)$' \| \
24184          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24185 echo X"$ac_file" |
24186     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24187             s//\1/
24188             q
24189           }
24190           /^X\(\/\/\)[^/].*/{
24191             s//\1/
24192             q
24193           }
24194           /^X\(\/\/\)$/{
24195             s//\1/
24196             q
24197           }
24198           /^X\(\/\).*/{
24199             s//\1/
24200             q
24201           }
24202           s/.*/./; q'`
24203   { as_dir="$ac_dir"
24204   case $as_dir in #(
24205   -*) as_dir=./$as_dir;;
24206   esac
24207   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24208     as_dirs=
24209     while :; do
24210       case $as_dir in #(
24211       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24212       *) as_qdir=$as_dir;;
24213       esac
24214       as_dirs="'$as_qdir' $as_dirs"
24215       as_dir=`$as_dirname -- "$as_dir" ||
24216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24217          X"$as_dir" : 'X\(//\)[^/]' \| \
24218          X"$as_dir" : 'X\(//\)$' \| \
24219          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24220 echo X"$as_dir" |
24221     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24222             s//\1/
24223             q
24224           }
24225           /^X\(\/\/\)[^/].*/{
24226             s//\1/
24227             q
24228           }
24229           /^X\(\/\/\)$/{
24230             s//\1/
24231             q
24232           }
24233           /^X\(\/\).*/{
24234             s//\1/
24235             q
24236           }
24237           s/.*/./; q'`
24238       test -d "$as_dir" && break
24239     done
24240     test -z "$as_dirs" || eval "mkdir $as_dirs"
24241   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24242 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24243    { (exit 1); exit 1; }; }; }
24244   ac_builddir=.
24245
24246 case "$ac_dir" in
24247 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24248 *)
24249   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24250   # A ".." for each directory in $ac_dir_suffix.
24251   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24252   case $ac_top_builddir_sub in
24253   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24254   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24255   esac ;;
24256 esac
24257 ac_abs_top_builddir=$ac_pwd
24258 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24259 # for backward compatibility:
24260 ac_top_builddir=$ac_top_build_prefix
24261
24262 case $srcdir in
24263   .)  # We are building in place.
24264     ac_srcdir=.
24265     ac_top_srcdir=$ac_top_builddir_sub
24266     ac_abs_top_srcdir=$ac_pwd ;;
24267   [\\/]* | ?:[\\/]* )  # Absolute name.
24268     ac_srcdir=$srcdir$ac_dir_suffix;
24269     ac_top_srcdir=$srcdir
24270     ac_abs_top_srcdir=$srcdir ;;
24271   *) # Relative name.
24272     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24273     ac_top_srcdir=$ac_top_build_prefix$srcdir
24274     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24275 esac
24276 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24277
24278
24279   case $ac_mode in
24280   :F)
24281   #
24282   # CONFIG_FILE
24283   #
24284
24285   case $INSTALL in
24286   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24287   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24288   esac
24289 _ACEOF
24290
24291 cat >>$CONFIG_STATUS <<\_ACEOF
24292 # If the template does not know about datarootdir, expand it.
24293 # FIXME: This hack should be removed a few years after 2.60.
24294 ac_datarootdir_hack=; ac_datarootdir_seen=
24295
24296 case `sed -n '/datarootdir/ {
24297   p
24298   q
24299 }
24300 /@datadir@/p
24301 /@docdir@/p
24302 /@infodir@/p
24303 /@localedir@/p
24304 /@mandir@/p
24305 ' $ac_file_inputs` in
24306 *datarootdir*) ac_datarootdir_seen=yes;;
24307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24308   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24309 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24310 _ACEOF
24311 cat >>$CONFIG_STATUS <<_ACEOF
24312   ac_datarootdir_hack='
24313   s&@datadir@&$datadir&g
24314   s&@docdir@&$docdir&g
24315   s&@infodir@&$infodir&g
24316   s&@localedir@&$localedir&g
24317   s&@mandir@&$mandir&g
24318     s&\\\${datarootdir}&$datarootdir&g' ;;
24319 esac
24320 _ACEOF
24321
24322 # Neutralize VPATH when `$srcdir' = `.'.
24323 # Shell code in configure.ac might set extrasub.
24324 # FIXME: do we really want to maintain this feature?
24325 cat >>$CONFIG_STATUS <<_ACEOF
24326   sed "$ac_vpsub
24327 $extrasub
24328 _ACEOF
24329 cat >>$CONFIG_STATUS <<\_ACEOF
24330 :t
24331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24332 s&@configure_input@&$configure_input&;t t
24333 s&@top_builddir@&$ac_top_builddir_sub&;t t
24334 s&@srcdir@&$ac_srcdir&;t t
24335 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24336 s&@top_srcdir@&$ac_top_srcdir&;t t
24337 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24338 s&@builddir@&$ac_builddir&;t t
24339 s&@abs_builddir@&$ac_abs_builddir&;t t
24340 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24341 s&@INSTALL@&$ac_INSTALL&;t t
24342 $ac_datarootdir_hack
24343 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24344
24345 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24346   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24347   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24348   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24349 which seems to be undefined.  Please make sure it is defined." >&5
24350 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24351 which seems to be undefined.  Please make sure it is defined." >&2;}
24352
24353   rm -f "$tmp/stdin"
24354   case $ac_file in
24355   -) cat "$tmp/out"; rm -f "$tmp/out";;
24356   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24357   esac
24358  ;;
24359   :H)
24360   #
24361   # CONFIG_HEADER
24362   #
24363 _ACEOF
24364
24365 # Transform confdefs.h into a sed script `conftest.defines', that
24366 # substitutes the proper values into config.h.in to produce config.h.
24367 rm -f conftest.defines conftest.tail
24368 # First, append a space to every undef/define line, to ease matching.
24369 echo 's/$/ /' >conftest.defines
24370 # Then, protect against being on the right side of a sed subst, or in
24371 # an unquoted here document, in config.status.  If some macros were
24372 # called several times there might be several #defines for the same
24373 # symbol, which is useless.  But do not sort them, since the last
24374 # AC_DEFINE must be honored.
24375 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24376 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24377 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24378 # PARAMS is the parameter list in the macro definition--in most cases, it's
24379 # just an empty string.
24380 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24381 ac_dB='\\)[      (].*,\\1define\\2'
24382 ac_dC=' '
24383 ac_dD=' ,'
24384
24385 uniq confdefs.h |
24386   sed -n '
24387         t rset
24388         :rset
24389         s/^[     ]*#[    ]*define[       ][      ]*//
24390         t ok
24391         d
24392         :ok
24393         s/[\\&,]/\\&/g
24394         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24395         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24396   ' >>conftest.defines
24397
24398 # Remove the space that was appended to ease matching.
24399 # Then replace #undef with comments.  This is necessary, for
24400 # example, in the case of _POSIX_SOURCE, which is predefined and required
24401 # on some systems where configure will not decide to define it.
24402 # (The regexp can be short, since the line contains either #define or #undef.)
24403 echo 's/ $//
24404 s,^[     #]*u.*,/* & */,' >>conftest.defines
24405
24406 # Break up conftest.defines:
24407 ac_max_sed_lines=50
24408
24409 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24410 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24411 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24412 # et cetera.
24413 ac_in='$ac_file_inputs'
24414 ac_out='"$tmp/out1"'
24415 ac_nxt='"$tmp/out2"'
24416
24417 while :
24418 do
24419   # Write a here document:
24420     cat >>$CONFIG_STATUS <<_ACEOF
24421     # First, check the format of the line:
24422     cat >"\$tmp/defines.sed" <<\\CEOF
24423 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24424 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24425 b
24426 :def
24427 _ACEOF
24428   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24429   echo 'CEOF
24430     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24431   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24432   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24433   grep . conftest.tail >/dev/null || break
24434   rm -f conftest.defines
24435   mv conftest.tail conftest.defines
24436 done
24437 rm -f conftest.defines conftest.tail
24438
24439 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24440 cat >>$CONFIG_STATUS <<\_ACEOF
24441   if test x"$ac_file" != x-; then
24442     echo "/* $configure_input  */" >"$tmp/config.h"
24443     cat "$ac_result" >>"$tmp/config.h"
24444     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24445       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24446 echo "$as_me: $ac_file is unchanged" >&6;}
24447     else
24448       rm -f $ac_file
24449       mv "$tmp/config.h" $ac_file
24450     fi
24451   else
24452     echo "/* $configure_input  */"
24453     cat "$ac_result"
24454   fi
24455   rm -f "$tmp/out12"
24456 # Compute $ac_file's index in $config_headers.
24457 _am_stamp_count=1
24458 for _am_header in $config_headers :; do
24459   case $_am_header in
24460     $ac_file | $ac_file:* )
24461       break ;;
24462     * )
24463       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24464   esac
24465 done
24466 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24467 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24468          X$ac_file : 'X\(//\)[^/]' \| \
24469          X$ac_file : 'X\(//\)$' \| \
24470          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24471 echo X$ac_file |
24472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24473             s//\1/
24474             q
24475           }
24476           /^X\(\/\/\)[^/].*/{
24477             s//\1/
24478             q
24479           }
24480           /^X\(\/\/\)$/{
24481             s//\1/
24482             q
24483           }
24484           /^X\(\/\).*/{
24485             s//\1/
24486             q
24487           }
24488           s/.*/./; q'`/stamp-h$_am_stamp_count
24489  ;;
24490   
24491   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24492 echo "$as_me: executing $ac_file commands" >&6;}
24493  ;;
24494   esac
24495
24496
24497   case $ac_file$ac_mode in
24498     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24499   # Strip MF so we end up with the name of the file.
24500   mf=`echo "$mf" | sed -e 's/:.*$//'`
24501   # Check whether this is an Automake generated Makefile or not.
24502   # We used to match only the files named `Makefile.in', but
24503   # some people rename them; so instead we look at the file content.
24504   # Grep'ing the first line is not enough: some people post-process
24505   # each Makefile.in and add a new line on top of each file to say so.
24506   # So let's grep whole file.
24507   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24508     dirpart=`$as_dirname -- "$mf" ||
24509 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24510          X"$mf" : 'X\(//\)[^/]' \| \
24511          X"$mf" : 'X\(//\)$' \| \
24512          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24513 echo X"$mf" |
24514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24515             s//\1/
24516             q
24517           }
24518           /^X\(\/\/\)[^/].*/{
24519             s//\1/
24520             q
24521           }
24522           /^X\(\/\/\)$/{
24523             s//\1/
24524             q
24525           }
24526           /^X\(\/\).*/{
24527             s//\1/
24528             q
24529           }
24530           s/.*/./; q'`
24531   else
24532     continue
24533   fi
24534   # Extract the definition of DEPDIR, am__include, and am__quote
24535   # from the Makefile without running `make'.
24536   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24537   test -z "$DEPDIR" && continue
24538   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24539   test -z "am__include" && continue
24540   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24541   # When using ansi2knr, U may be empty or an underscore; expand it
24542   U=`sed -n 's/^U = //p' < "$mf"`
24543   # Find all dependency output files, they are included files with
24544   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24545   # simplest approach to changing $(DEPDIR) to its actual value in the
24546   # expansion.
24547   for file in `sed -n "
24548     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24549        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24550     # Make sure the directory exists.
24551     test -f "$dirpart/$file" && continue
24552     fdir=`$as_dirname -- "$file" ||
24553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24554          X"$file" : 'X\(//\)[^/]' \| \
24555          X"$file" : 'X\(//\)$' \| \
24556          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24557 echo X"$file" |
24558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24559             s//\1/
24560             q
24561           }
24562           /^X\(\/\/\)[^/].*/{
24563             s//\1/
24564             q
24565           }
24566           /^X\(\/\/\)$/{
24567             s//\1/
24568             q
24569           }
24570           /^X\(\/\).*/{
24571             s//\1/
24572             q
24573           }
24574           s/.*/./; q'`
24575     { as_dir=$dirpart/$fdir
24576   case $as_dir in #(
24577   -*) as_dir=./$as_dir;;
24578   esac
24579   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24580     as_dirs=
24581     while :; do
24582       case $as_dir in #(
24583       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24584       *) as_qdir=$as_dir;;
24585       esac
24586       as_dirs="'$as_qdir' $as_dirs"
24587       as_dir=`$as_dirname -- "$as_dir" ||
24588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24589          X"$as_dir" : 'X\(//\)[^/]' \| \
24590          X"$as_dir" : 'X\(//\)$' \| \
24591          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24592 echo X"$as_dir" |
24593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24594             s//\1/
24595             q
24596           }
24597           /^X\(\/\/\)[^/].*/{
24598             s//\1/
24599             q
24600           }
24601           /^X\(\/\/\)$/{
24602             s//\1/
24603             q
24604           }
24605           /^X\(\/\).*/{
24606             s//\1/
24607             q
24608           }
24609           s/.*/./; q'`
24610       test -d "$as_dir" && break
24611     done
24612     test -z "$as_dirs" || eval "mkdir $as_dirs"
24613   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24614 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24615    { (exit 1); exit 1; }; }; }
24616     # echo "creating $dirpart/$file"
24617     echo '# dummy' > "$dirpart/$file"
24618   done
24619 done
24620  ;;
24621     "default":C) chmod +x chasen-config ;;
24622
24623   esac
24624 done # for ac_tag
24625
24626
24627 { (exit 0); exit 0; }
24628 _ACEOF
24629 chmod +x $CONFIG_STATUS
24630 ac_clean_files=$ac_clean_files_save
24631
24632
24633 # configure is writing to config.log, and then calls config.status.
24634 # config.status does its own redirection, appending to config.log.
24635 # Unfortunately, on DOS this fails, as config.log is still kept open
24636 # by configure, so config.status won't be able to write to it; its
24637 # output is simply discarded.  So we exec the FD to /dev/null,
24638 # effectively closing config.log, so it can be properly (re)opened and
24639 # appended to by config.status.  When coming back to configure, we
24640 # need to make the FD available again.
24641 if test "$no_create" != yes; then
24642   ac_cs_success=:
24643   ac_config_status_args=
24644   test "$silent" = yes &&
24645     ac_config_status_args="$ac_config_status_args --quiet"
24646   exec 5>/dev/null
24647   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24648   exec 5>>config.log
24649   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24650   # would make configure fail if this is the last instruction.
24651   $ac_cs_success || { (exit 1); exit 1; }
24652 fi
24653
24654
24655
24656 # removed the following entry from AC_OUTPUT
24657 #           lib/Makefile.mingw32
24658
24659 # Local Variables:
24660 # mode:shell-script
24661 # sh-indentation:4
24662 # End: