OSDN Git Service

Initial commit of senna-1.1.2-fast.
[ludiafuncs/senna-1.1.2-fast.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for senna 1.1.2.
4 #
5 # Report bugs to <senna@razil.jp>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560   # Remove one level of quotation (which was required for Make).
561   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562   ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567   # Discard the --no-reexec flag, and continue.
568   shift
569 elif test "X$1" = X--fallback-echo; then
570   # Avoid inline document here, it may be left over
571   :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573   # Yippee, $echo works!
574   :
575 else
576   # Restart under the correct shell.
577   exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581   # used as fallback echo
582   shift
583   cat <<EOF
584 $*
585 EOF
586   exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599        echo_test_string=`eval $cmd` &&
600        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601     then
602       break
603     fi
604   done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609    test "X$echo_testing_string" = "X$echo_test_string"; then
610   :
611 else
612   # The Solaris, AIX, and Digital Unix default echo programs unquote
613   # backslashes.  This makes it impossible to quote backslashes using
614   #   echo "$something" | sed 's/\\/\\\\/g'
615   #
616   # So, first we look for a working echo in the user's PATH.
617
618   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619   for dir in $PATH /usr/ucb; do
620     IFS="$lt_save_ifs"
621     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624        test "X$echo_testing_string" = "X$echo_test_string"; then
625       echo="$dir/echo"
626       break
627     fi
628   done
629   IFS="$lt_save_ifs"
630
631   if test "X$echo" = Xecho; then
632     # We didn't find a better echo, so look for alternatives.
633     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635        test "X$echo_testing_string" = "X$echo_test_string"; then
636       # This shell has a builtin print -r that does the trick.
637       echo='print -r'
638     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639          test "X$CONFIG_SHELL" != X/bin/ksh; then
640       # If we have ksh, try running configure again with it.
641       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642       export ORIGINAL_CONFIG_SHELL
643       CONFIG_SHELL=/bin/ksh
644       export CONFIG_SHELL
645       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646     else
647       # Try using printf.
648       echo='printf %s\n'
649       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651          test "X$echo_testing_string" = "X$echo_test_string"; then
652         # Cool, printf works
653         :
654       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655            test "X$echo_testing_string" = 'X\t' &&
656            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657            test "X$echo_testing_string" = "X$echo_test_string"; then
658         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659         export CONFIG_SHELL
660         SHELL="$CONFIG_SHELL"
661         export SHELL
662         echo="$CONFIG_SHELL $0 --fallback-echo"
663       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664            test "X$echo_testing_string" = 'X\t' &&
665            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666            test "X$echo_testing_string" = "X$echo_test_string"; then
667         echo="$CONFIG_SHELL $0 --fallback-echo"
668       else
669         # maybe with a smaller string...
670         prev=:
671
672         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674           then
675             break
676           fi
677           prev="$cmd"
678         done
679
680         if test "$prev" != 'sed 50q "$0"'; then
681           echo_test_string=`eval $prev`
682           export echo_test_string
683           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684         else
685           # Oops.  We lost completely, so just stick with echo.
686           echo=echo
687         fi
688       fi
689     fi
690   fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='senna'
730 PACKAGE_TARNAME='senna'
731 PACKAGE_VERSION='1.1.2'
732 PACKAGE_STRING='senna 1.1.2'
733 PACKAGE_BUGREPORT='senna@razil.jp'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 CYGPATH_W
812 PACKAGE
813 VERSION
814 ACLOCAL
815 AUTOCONF
816 AUTOMAKE
817 AUTOHEADER
818 MAKEINFO
819 install_sh
820 STRIP
821 INSTALL_STRIP_PROGRAM
822 mkdir_p
823 AWK
824 SET_MAKE
825 am__leading_dot
826 AMTAR
827 am__tar
828 am__untar
829 CC
830 CFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CC
834 EXEEXT
835 OBJEXT
836 DEPDIR
837 am__include
838 am__quote
839 AMDEP_TRUE
840 AMDEP_FALSE
841 AMDEPBACKSLASH
842 CCDEPMODE
843 am__fastdepCC_TRUE
844 am__fastdepCC_FALSE
845 build
846 build_cpu
847 build_vendor
848 build_os
849 host
850 host_cpu
851 host_vendor
852 host_os
853 SED
854 GREP
855 EGREP
856 LN_S
857 ECHO
858 AR
859 RANLIB
860 CPP
861 CXX
862 CXXFLAGS
863 ac_ct_CXX
864 CXXDEPMODE
865 am__fastdepCXX_TRUE
866 am__fastdepCXX_FALSE
867 CXXCPP
868 F77
869 FFLAGS
870 ac_ct_F77
871 LIBTOOL
872 GCOV_LIBS
873 LCOV
874 GENHTML
875 GCOV_CFLAGS
876 GCOV_ENABLED_TRUE
877 GCOV_ENABLED_FALSE
878 MYSQL_SRCDIR
879 MECAB_CONFIG
880 SENNA_LIBDIR
881 SENNA_INCLUDEDIR
882 SENNA_CFLAGS
883 SENNA_LIBS
884 LIBOBJS
885 LTLIBOBJS'
886 ac_subst_files=''
887       ac_precious_vars='build_alias
888 host_alias
889 target_alias
890 CC
891 CFLAGS
892 LDFLAGS
893 LIBS
894 CPPFLAGS
895 CPP
896 CXX
897 CXXFLAGS
898 CCC
899 CXXCPP
900 F77
901 FFLAGS'
902
903
904 # Initialize some variables set by options.
905 ac_init_help=
906 ac_init_version=false
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954   # If the previous option needs an argument, assign it.
955   if test -n "$ac_prev"; then
956     eval $ac_prev=\$ac_option
957     ac_prev=
958     continue
959   fi
960
961   case $ac_option in
962   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963   *)    ac_optarg=yes ;;
964   esac
965
966   # Accept the important Cygnus configure options, so we can diagnose typos.
967
968   case $ac_dashdash$ac_option in
969   --)
970     ac_dashdash=yes ;;
971
972   -bindir | --bindir | --bindi | --bind | --bin | --bi)
973     ac_prev=bindir ;;
974   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
975     bindir=$ac_optarg ;;
976
977   -build | --build | --buil | --bui | --bu)
978     ac_prev=build_alias ;;
979   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980     build_alias=$ac_optarg ;;
981
982   -cache-file | --cache-file | --cache-fil | --cache-fi \
983   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984     ac_prev=cache_file ;;
985   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987     cache_file=$ac_optarg ;;
988
989   --config-cache | -C)
990     cache_file=config.cache ;;
991
992   -datadir | --datadir | --datadi | --datad)
993     ac_prev=datadir ;;
994   -datadir=* | --datadir=* | --datadi=* | --datad=*)
995     datadir=$ac_optarg ;;
996
997   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998   | --dataroo | --dataro | --datar)
999     ac_prev=datarootdir ;;
1000   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002     datarootdir=$ac_optarg ;;
1003
1004   -disable-* | --disable-*)
1005     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006     # Reject names that are not valid shell variable names.
1007     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1008       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1009    { (exit 1); exit 1; }; }
1010     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1011     eval enable_$ac_feature=no ;;
1012
1013   -docdir | --docdir | --docdi | --doc | --do)
1014     ac_prev=docdir ;;
1015   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1016     docdir=$ac_optarg ;;
1017
1018   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019     ac_prev=dvidir ;;
1020   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1021     dvidir=$ac_optarg ;;
1022
1023   -enable-* | --enable-*)
1024     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1025     # Reject names that are not valid shell variable names.
1026     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1028    { (exit 1); exit 1; }; }
1029     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1030     eval enable_$ac_feature=\$ac_optarg ;;
1031
1032   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034   | --exec | --exe | --ex)
1035     ac_prev=exec_prefix ;;
1036   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038   | --exec=* | --exe=* | --ex=*)
1039     exec_prefix=$ac_optarg ;;
1040
1041   -gas | --gas | --ga | --g)
1042     # Obsolete; use --with-gas.
1043     with_gas=yes ;;
1044
1045   -help | --help | --hel | --he | -h)
1046     ac_init_help=long ;;
1047   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048     ac_init_help=recursive ;;
1049   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050     ac_init_help=short ;;
1051
1052   -host | --host | --hos | --ho)
1053     ac_prev=host_alias ;;
1054   -host=* | --host=* | --hos=* | --ho=*)
1055     host_alias=$ac_optarg ;;
1056
1057   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058     ac_prev=htmldir ;;
1059   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060   | --ht=*)
1061     htmldir=$ac_optarg ;;
1062
1063   -includedir | --includedir | --includedi | --included | --include \
1064   | --includ | --inclu | --incl | --inc)
1065     ac_prev=includedir ;;
1066   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067   | --includ=* | --inclu=* | --incl=* | --inc=*)
1068     includedir=$ac_optarg ;;
1069
1070   -infodir | --infodir | --infodi | --infod | --info | --inf)
1071     ac_prev=infodir ;;
1072   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073     infodir=$ac_optarg ;;
1074
1075   -libdir | --libdir | --libdi | --libd)
1076     ac_prev=libdir ;;
1077   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078     libdir=$ac_optarg ;;
1079
1080   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081   | --libexe | --libex | --libe)
1082     ac_prev=libexecdir ;;
1083   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084   | --libexe=* | --libex=* | --libe=*)
1085     libexecdir=$ac_optarg ;;
1086
1087   -localedir | --localedir | --localedi | --localed | --locale)
1088     ac_prev=localedir ;;
1089   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090     localedir=$ac_optarg ;;
1091
1092   -localstatedir | --localstatedir | --localstatedi | --localstated \
1093   | --localstate | --localstat | --localsta | --localst | --locals)
1094     ac_prev=localstatedir ;;
1095   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097     localstatedir=$ac_optarg ;;
1098
1099   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100     ac_prev=mandir ;;
1101   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102     mandir=$ac_optarg ;;
1103
1104   -nfp | --nfp | --nf)
1105     # Obsolete; use --without-fp.
1106     with_fp=no ;;
1107
1108   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109   | --no-cr | --no-c | -n)
1110     no_create=yes ;;
1111
1112   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114     no_recursion=yes ;;
1115
1116   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118   | --oldin | --oldi | --old | --ol | --o)
1119     ac_prev=oldincludedir ;;
1120   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123     oldincludedir=$ac_optarg ;;
1124
1125   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126     ac_prev=prefix ;;
1127   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128     prefix=$ac_optarg ;;
1129
1130   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131   | --program-pre | --program-pr | --program-p)
1132     ac_prev=program_prefix ;;
1133   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135     program_prefix=$ac_optarg ;;
1136
1137   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138   | --program-suf | --program-su | --program-s)
1139     ac_prev=program_suffix ;;
1140   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142     program_suffix=$ac_optarg ;;
1143
1144   -program-transform-name | --program-transform-name \
1145   | --program-transform-nam | --program-transform-na \
1146   | --program-transform-n | --program-transform- \
1147   | --program-transform | --program-transfor \
1148   | --program-transfo | --program-transf \
1149   | --program-trans | --program-tran \
1150   | --progr-tra | --program-tr | --program-t)
1151     ac_prev=program_transform_name ;;
1152   -program-transform-name=* | --program-transform-name=* \
1153   | --program-transform-nam=* | --program-transform-na=* \
1154   | --program-transform-n=* | --program-transform-=* \
1155   | --program-transform=* | --program-transfor=* \
1156   | --program-transfo=* | --program-transf=* \
1157   | --program-trans=* | --program-tran=* \
1158   | --progr-tra=* | --program-tr=* | --program-t=*)
1159     program_transform_name=$ac_optarg ;;
1160
1161   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162     ac_prev=pdfdir ;;
1163   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164     pdfdir=$ac_optarg ;;
1165
1166   -psdir | --psdir | --psdi | --psd | --ps)
1167     ac_prev=psdir ;;
1168   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169     psdir=$ac_optarg ;;
1170
1171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172   | -silent | --silent | --silen | --sile | --sil)
1173     silent=yes ;;
1174
1175   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176     ac_prev=sbindir ;;
1177   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178   | --sbi=* | --sb=*)
1179     sbindir=$ac_optarg ;;
1180
1181   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183   | --sharedst | --shareds | --shared | --share | --shar \
1184   | --sha | --sh)
1185     ac_prev=sharedstatedir ;;
1186   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189   | --sha=* | --sh=*)
1190     sharedstatedir=$ac_optarg ;;
1191
1192   -site | --site | --sit)
1193     ac_prev=site ;;
1194   -site=* | --site=* | --sit=*)
1195     site=$ac_optarg ;;
1196
1197   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198     ac_prev=srcdir ;;
1199   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200     srcdir=$ac_optarg ;;
1201
1202   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203   | --syscon | --sysco | --sysc | --sys | --sy)
1204     ac_prev=sysconfdir ;;
1205   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207     sysconfdir=$ac_optarg ;;
1208
1209   -target | --target | --targe | --targ | --tar | --ta | --t)
1210     ac_prev=target_alias ;;
1211   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212     target_alias=$ac_optarg ;;
1213
1214   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215     verbose=yes ;;
1216
1217   -version | --version | --versio | --versi | --vers | -V)
1218     ac_init_version=: ;;
1219
1220   -with-* | --with-*)
1221     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       { echo "$as_me: error: invalid package name: $ac_package" >&2
1225    { (exit 1); exit 1; }; }
1226     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227     eval with_$ac_package=\$ac_optarg ;;
1228
1229   -without-* | --without-*)
1230     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231     # Reject names that are not valid shell variable names.
1232     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233       { echo "$as_me: error: invalid package name: $ac_package" >&2
1234    { (exit 1); exit 1; }; }
1235     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1236     eval with_$ac_package=no ;;
1237
1238   --x)
1239     # Obsolete; use --with-x.
1240     with_x=yes ;;
1241
1242   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243   | --x-incl | --x-inc | --x-in | --x-i)
1244     ac_prev=x_includes ;;
1245   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247     x_includes=$ac_optarg ;;
1248
1249   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251     ac_prev=x_libraries ;;
1252   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254     x_libraries=$ac_optarg ;;
1255
1256   -*) { echo "$as_me: error: unrecognized option: $ac_option
1257 Try \`$0 --help' for more information." >&2
1258    { (exit 1); exit 1; }; }
1259     ;;
1260
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1265       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1266    { (exit 1); exit 1; }; }
1267     eval $ac_envvar=\$ac_optarg
1268     export $ac_envvar ;;
1269
1270   *)
1271     # FIXME: should be removed in autoconf 3.0.
1272     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276     ;;
1277
1278   esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283   { echo "$as_me: error: missing argument to $ac_option" >&2
1284    { (exit 1); exit 1; }; }
1285 fi
1286
1287 # Be sure to have absolute directory names.
1288 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289                 datadir sysconfdir sharedstatedir localstatedir includedir \
1290                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291                 libdir localedir mandir
1292 do
1293   eval ac_val=\$$ac_var
1294   case $ac_val in
1295     [\\/$]* | ?:[\\/]* )  continue;;
1296     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297   esac
1298   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1299    { (exit 1); exit 1; }; }
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1314     If a cross compiler is detected then cross compile mode will be used." >&2
1315   elif test "x$build_alias" != "x$host_alias"; then
1316     cross_compiling=yes
1317   fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329   { echo "$as_me: error: Working directory cannot be determined" >&2
1330    { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332   { echo "$as_me: error: pwd does not report name of working directory" >&2
1333    { (exit 1); exit 1; }; }
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338   ac_srcdir_defaulted=yes
1339   # Try the directory containing this script, then the parent directory.
1340   ac_confdir=`$as_dirname -- "$0" ||
1341 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342          X"$0" : 'X\(//\)[^/]' \| \
1343          X"$0" : 'X\(//\)$' \| \
1344          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 echo X"$0" |
1346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)[^/].*/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)$/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\).*/{
1359             s//\1/
1360             q
1361           }
1362           s/.*/./; q'`
1363   srcdir=$ac_confdir
1364   if test ! -r "$srcdir/$ac_unique_file"; then
1365     srcdir=..
1366   fi
1367 else
1368   ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1373    { (exit 1); exit 1; }; }
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1378    { (exit 1); exit 1; }; }
1379         pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382   srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_env_${ac_var}_value=\$${ac_var}
1393   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401   # Omit some internal or obsolete options to make the list less imposing.
1402   # This message is too long to be a string in the A/UX 3.1 sh.
1403   cat <<_ACEOF
1404 \`configure' configures senna 1.1.2 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414   -h, --help              display this help and exit
1415       --help=short        display options specific to this package
1416       --help=recursive    display the short help of all the included packages
1417   -V, --version           display version information and exit
1418   -q, --quiet, --silent   do not print \`checking...' messages
1419       --cache-file=FILE   cache test results in FILE [disabled]
1420   -C, --config-cache      alias for \`--cache-file=config.cache'
1421   -n, --no-create         do not create output files
1422       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425   --prefix=PREFIX         install architecture-independent files in PREFIX
1426                           [$ac_default_prefix]
1427   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                           [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438   --bindir=DIR           user executables [EPREFIX/bin]
1439   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1440   --libexecdir=DIR       program executables [EPREFIX/libexec]
1441   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1442   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1443   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1444   --libdir=DIR           object code libraries [EPREFIX/lib]
1445   --includedir=DIR       C header files [PREFIX/include]
1446   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1447   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1448   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1449   --infodir=DIR          info documentation [DATAROOTDIR/info]
1450   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1451   --mandir=DIR           man documentation [DATAROOTDIR/man]
1452   --docdir=DIR           documentation root [DATAROOTDIR/doc/senna]
1453   --htmldir=DIR          html documentation [DOCDIR]
1454   --dvidir=DIR           dvi documentation [DOCDIR]
1455   --pdfdir=DIR           pdf documentation [DOCDIR]
1456   --psdir=DIR            ps documentation [DOCDIR]
1457 _ACEOF
1458
1459   cat <<\_ACEOF
1460
1461 Program names:
1462   --program-prefix=PREFIX            prepend PREFIX to installed program names
1463   --program-suffix=SUFFIX            append SUFFIX to installed program names
1464   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466 System types:
1467   --build=BUILD     configure for building on BUILD [guessed]
1468   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473   case $ac_init_help in
1474      short | recursive ) echo "Configuration of senna 1.1.2:";;
1475    esac
1476   cat <<\_ACEOF
1477
1478 Optional Features:
1479   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1480   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1481   --disable-dependency-tracking  speeds up one-time build
1482   --enable-dependency-tracking   do not reject slow dependency extractors
1483   --enable-shared[=PKGS]  build shared libraries [default=yes]
1484   --enable-static[=PKGS]  build static libraries [default=yes]
1485   --enable-fast-install[=PKGS]
1486                           optimize for fast installation [default=yes]
1487   --disable-libtool-lock  avoid locking (might break parallel builds)
1488   --disable-largefile     omit support for large files
1489   --enable-aio            use aio/dio based cache. [default=no]
1490   --enable-nfkc           use nfkc based utf8 normalization. [default=yes]
1491   --enable-gcov           use gcov for coverage analysis. [default=no]
1492   --enable-fmalloc        make memory allocation failed in specified condition
1493                           for debug. [default=no]
1494
1495 Optional Packages:
1496   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1497   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1498   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1499   --with-pic              try to use only PIC/non-PIC objects [default=use
1500                           both]
1501   --with-tags[=TAGS]      include additional configurations [automatic]
1502   --with-sennahome=DIR    specify Senna home directory(will deprecated)
1503   --with-log=PATH         specify Senna log path.
1504   --with-encoding=ENCODING
1505                           specify Senna default
1506                           encoding(euc/sjis/utf8/latin1/koi8r/none)
1507   --with-initial-n-segments=NUMBER
1508                           specify Senna default initial_n_segments
1509   --with-query-escalation-threshold=NUMBER
1510                           specify Senna default query escalation threshold
1511   --with-mysqlsrc=DIR     specify MySQL source dictionary.
1512   --with-mecab            use mecab for morphological analysis. [default=yes]
1513   --with-mecab-config=PATH
1514                           set mecab-config location. [search], [path]
1515
1516 Some influential environment variables:
1517   CC          C compiler command
1518   CFLAGS      C compiler flags
1519   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1520               nonstandard directory <lib dir>
1521   LIBS        libraries to pass to the linker, e.g. -l<library>
1522   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523               you have headers in a nonstandard directory <include dir>
1524   CPP         C preprocessor
1525   CXX         C++ compiler command
1526   CXXFLAGS    C++ compiler flags
1527   CXXCPP      C++ preprocessor
1528   F77         Fortran 77 compiler command
1529   FFLAGS      Fortran 77 compiler flags
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 Report bugs to <senna@razil.jp>.
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540   # If there are subdirs, report their specific --help.
1541   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542     test -d "$ac_dir" || continue
1543     ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549   # A ".." for each directory in $ac_dir_suffix.
1550   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551   case $ac_top_builddir_sub in
1552   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554   esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562   .)  # We are building in place.
1563     ac_srcdir=.
1564     ac_top_srcdir=$ac_top_builddir_sub
1565     ac_abs_top_srcdir=$ac_pwd ;;
1566   [\\/]* | ?:[\\/]* )  # Absolute name.
1567     ac_srcdir=$srcdir$ac_dir_suffix;
1568     ac_top_srcdir=$srcdir
1569     ac_abs_top_srcdir=$srcdir ;;
1570   *) # Relative name.
1571     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572     ac_top_srcdir=$ac_top_build_prefix$srcdir
1573     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577     cd "$ac_dir" || { ac_status=$?; continue; }
1578     # Check for guested configure.
1579     if test -f "$ac_srcdir/configure.gnu"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582     elif test -f "$ac_srcdir/configure"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure" --help=recursive
1585     else
1586       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587     fi || ac_status=$?
1588     cd "$ac_pwd" || { ac_status=$?; break; }
1589   done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594   cat <<\_ACEOF
1595 senna configure 1.1.2
1596 generated by GNU Autoconf 2.61
1597
1598 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1599 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603   exit
1604 fi
1605 cat >config.log <<_ACEOF
1606 This file contains any messages produced by compilers while
1607 running configure, to aid debugging if configure makes a mistake.
1608
1609 It was created by senna $as_me 1.1.2, which was
1610 generated by GNU Autoconf 2.61.  Invocation command line was
1611
1612   $ $0 $@
1613
1614 _ACEOF
1615 exec 5>>config.log
1616 {
1617 cat <<_ASUNAME
1618 ## --------- ##
1619 ## Platform. ##
1620 ## --------- ##
1621
1622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627
1628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1630
1631 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1632 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1635 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1636 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1637 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1638
1639 _ASUNAME
1640
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   echo "PATH: $as_dir"
1647 done
1648 IFS=$as_save_IFS
1649
1650 } >&5
1651
1652 cat >&5 <<_ACEOF
1653
1654
1655 ## ----------- ##
1656 ## Core tests. ##
1657 ## ----------- ##
1658
1659 _ACEOF
1660
1661
1662 # Keep a trace of the command line.
1663 # Strip out --no-create and --no-recursion so they do not pile up.
1664 # Strip out --silent because we don't want to record it for future runs.
1665 # Also quote any args containing shell meta-characters.
1666 # Make two passes to allow for proper duplicate-argument suppression.
1667 ac_configure_args=
1668 ac_configure_args0=
1669 ac_configure_args1=
1670 ac_must_keep_next=false
1671 for ac_pass in 1 2
1672 do
1673   for ac_arg
1674   do
1675     case $ac_arg in
1676     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678     | -silent | --silent | --silen | --sile | --sil)
1679       continue ;;
1680     *\'*)
1681       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1682     esac
1683     case $ac_pass in
1684     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685     2)
1686       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687       if test $ac_must_keep_next = true; then
1688         ac_must_keep_next=false # Got value, back to normal.
1689       else
1690         case $ac_arg in
1691           *=* | --config-cache | -C | -disable-* | --disable-* \
1692           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694           | -with-* | --with-* | -without-* | --without-* | --x)
1695             case "$ac_configure_args0 " in
1696               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697             esac
1698             ;;
1699           -* ) ac_must_keep_next=true ;;
1700         esac
1701       fi
1702       ac_configure_args="$ac_configure_args '$ac_arg'"
1703       ;;
1704     esac
1705   done
1706 done
1707 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709
1710 # When interrupted or exit'd, cleanup temporary files, and complete
1711 # config.log.  We remove comments because anyway the quotes in there
1712 # would cause problems or look ugly.
1713 # WARNING: Use '\'' to represent an apostrophe within the trap.
1714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715 trap 'exit_status=$?
1716   # Save into config.log some information that might help in debugging.
1717   {
1718     echo
1719
1720     cat <<\_ASBOX
1721 ## ---------------- ##
1722 ## Cache variables. ##
1723 ## ---------------- ##
1724 _ASBOX
1725     echo
1726     # The following way of writing the cache mishandles newlines in values,
1727 (
1728   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729     eval ac_val=\$$ac_var
1730     case $ac_val in #(
1731     *${as_nl}*)
1732       case $ac_var in #(
1733       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1735       esac
1736       case $ac_var in #(
1737       _ | IFS | as_nl) ;; #(
1738       *) $as_unset $ac_var ;;
1739       esac ;;
1740     esac
1741   done
1742   (set) 2>&1 |
1743     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744     *${as_nl}ac_space=\ *)
1745       sed -n \
1746         "s/'\''/'\''\\\\'\'''\''/g;
1747           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1748       ;; #(
1749     *)
1750       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751       ;;
1752     esac |
1753     sort
1754 )
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##
1761 _ASBOX
1762     echo
1763     for ac_var in $ac_subst_vars
1764     do
1765       eval ac_val=\$$ac_var
1766       case $ac_val in
1767       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768       esac
1769       echo "$ac_var='\''$ac_val'\''"
1770     done | sort
1771     echo
1772
1773     if test -n "$ac_subst_files"; then
1774       cat <<\_ASBOX
1775 ## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##
1778 _ASBOX
1779       echo
1780       for ac_var in $ac_subst_files
1781       do
1782         eval ac_val=\$$ac_var
1783         case $ac_val in
1784         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785         esac
1786         echo "$ac_var='\''$ac_val'\''"
1787       done | sort
1788       echo
1789     fi
1790
1791     if test -s confdefs.h; then
1792       cat <<\_ASBOX
1793 ## ----------- ##
1794 ## confdefs.h. ##
1795 ## ----------- ##
1796 _ASBOX
1797       echo
1798       cat confdefs.h
1799       echo
1800     fi
1801     test "$ac_signal" != 0 &&
1802       echo "$as_me: caught signal $ac_signal"
1803     echo "$as_me: exit $exit_status"
1804   } >&5
1805   rm -f core *.core core.conftest.* &&
1806     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1807     exit $exit_status
1808 ' 0
1809 for ac_signal in 1 2 13 15; do
1810   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 done
1812 ac_signal=0
1813
1814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1815 rm -f -r conftest* confdefs.h
1816
1817 # Predefined preprocessor variables.
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 _ACEOF
1842
1843
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847   set x "$CONFIG_SITE"
1848 elif test "x$prefix" != xNONE; then
1849   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1850 else
1851   set x "$ac_default_prefix/share/config.site" \
1852         "$ac_default_prefix/etc/config.site"
1853 fi
1854 shift
1855 for ac_site_file
1856 do
1857   if test -r "$ac_site_file"; then
1858     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 echo "$as_me: loading site script $ac_site_file" >&6;}
1860     sed 's/^/| /' "$ac_site_file" >&5
1861     . "$ac_site_file"
1862   fi
1863 done
1864
1865 if test -r "$cache_file"; then
1866   # Some versions of bash will fail to source /dev/null (special
1867   # files actually), so we avoid doing that.
1868   if test -f "$cache_file"; then
1869     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 echo "$as_me: loading cache $cache_file" >&6;}
1871     case $cache_file in
1872       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873       *)                      . "./$cache_file";;
1874     esac
1875   fi
1876 else
1877   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 echo "$as_me: creating cache $cache_file" >&6;}
1879   >$cache_file
1880 fi
1881
1882 # Check that the precious variables saved in the cache have kept the same
1883 # value.
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887   eval ac_new_set=\$ac_env_${ac_var}_set
1888   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889   eval ac_new_val=\$ac_env_${ac_var}_value
1890   case $ac_old_set,$ac_new_set in
1891     set,)
1892       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894       ac_cache_corrupted=: ;;
1895     ,set)
1896       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898       ac_cache_corrupted=: ;;
1899     ,);;
1900     *)
1901       if test "x$ac_old_val" != "x$ac_new_val"; then
1902         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1905 echo "$as_me:   former value:  $ac_old_val" >&2;}
1906         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1907 echo "$as_me:   current value: $ac_new_val" >&2;}
1908         ac_cache_corrupted=:
1909       fi;;
1910   esac
1911   # Pass precious variables to config.status.
1912   if test "$ac_new_set" = set; then
1913     case $ac_new_val in
1914     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915     *) ac_arg=$ac_var=$ac_new_val ;;
1916     esac
1917     case " $ac_configure_args " in
1918       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1919       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920     esac
1921   fi
1922 done
1923 if $ac_cache_corrupted; then
1924   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955 ac_ext=c
1956 ac_cpp='$CPP $CPPFLAGS'
1957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1960
1961
1962 ac_config_headers="$ac_config_headers config.h"
1963
1964
1965 am__api_version="1.9"
1966 ac_aux_dir=
1967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1968   if test -f "$ac_dir/install-sh"; then
1969     ac_aux_dir=$ac_dir
1970     ac_install_sh="$ac_aux_dir/install-sh -c"
1971     break
1972   elif test -f "$ac_dir/install.sh"; then
1973     ac_aux_dir=$ac_dir
1974     ac_install_sh="$ac_aux_dir/install.sh -c"
1975     break
1976   elif test -f "$ac_dir/shtool"; then
1977     ac_aux_dir=$ac_dir
1978     ac_install_sh="$ac_aux_dir/shtool install -c"
1979     break
1980   fi
1981 done
1982 if test -z "$ac_aux_dir"; then
1983   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1985    { (exit 1); exit 1; }; }
1986 fi
1987
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1995
1996
1997 # Find a good install program.  We prefer a C program (faster),
1998 # so one script is as good as another.  But avoid the broken or
1999 # incompatible versions:
2000 # SysV /etc/install, /usr/sbin/install
2001 # SunOS /usr/etc/install
2002 # IRIX /sbin/install
2003 # AIX /bin/install
2004 # AmigaOS /C/install, which installs bootblocks on floppy discs
2005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2008 # OS/2's system install, which has a completely different semantic
2009 # ./install, which can be erroneously created by make from ./install.sh.
2010 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2012 if test -z "$INSTALL"; then
2013 if test "${ac_cv_path_install+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   # Account for people who put trailing slashes in PATH elements.
2022 case $as_dir/ in
2023   ./ | .// | /cC/* | \
2024   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2025   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2026   /usr/ucb/* ) ;;
2027   *)
2028     # OSF1 and SCO ODT 3.0 have their own names for install.
2029     # Don't use installbsd from OSF since it installs stuff as root
2030     # by default.
2031     for ac_prog in ginstall scoinst install; do
2032       for ac_exec_ext in '' $ac_executable_extensions; do
2033         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2034           if test $ac_prog = install &&
2035             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2036             # AIX install.  It has an incompatible calling convention.
2037             :
2038           elif test $ac_prog = install &&
2039             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2040             # program-specific install script used by HP pwplus--don't use.
2041             :
2042           else
2043             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2044             break 3
2045           fi
2046         fi
2047       done
2048     done
2049     ;;
2050 esac
2051 done
2052 IFS=$as_save_IFS
2053
2054
2055 fi
2056   if test "${ac_cv_path_install+set}" = set; then
2057     INSTALL=$ac_cv_path_install
2058   else
2059     # As a last resort, use the slow shell script.  Don't cache a
2060     # value for INSTALL within a source directory, because that will
2061     # break other packages using the cache if that directory is
2062     # removed, or if the value is a relative name.
2063     INSTALL=$ac_install_sh
2064   fi
2065 fi
2066 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2067 echo "${ECHO_T}$INSTALL" >&6; }
2068
2069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2070 # It thinks the first close brace ends the variable substitution.
2071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2072
2073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2074
2075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2076
2077 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2078 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2079 # Just in case
2080 sleep 1
2081 echo timestamp > conftest.file
2082 # Do `set' in a subshell so we don't clobber the current shell's
2083 # arguments.  Must try -L first in case configure is actually a
2084 # symlink; some systems play weird games with the mod time of symlinks
2085 # (eg FreeBSD returns the mod time of the symlink's containing
2086 # directory).
2087 if (
2088    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2089    if test "$*" = "X"; then
2090       # -L didn't work.
2091       set X `ls -t $srcdir/configure conftest.file`
2092    fi
2093    rm -f conftest.file
2094    if test "$*" != "X $srcdir/configure conftest.file" \
2095       && test "$*" != "X conftest.file $srcdir/configure"; then
2096
2097       # If neither matched, then we have a broken ls.  This can happen
2098       # if, for instance, CONFIG_SHELL is bash and it inherits a
2099       # broken ls alias from the environment.  This has actually
2100       # happened.  Such a system could not be considered "sane".
2101       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2102 alias in your environment" >&5
2103 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2104 alias in your environment" >&2;}
2105    { (exit 1); exit 1; }; }
2106    fi
2107
2108    test "$2" = conftest.file
2109    )
2110 then
2111    # Ok.
2112    :
2113 else
2114    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2115 Check your system clock" >&5
2116 echo "$as_me: error: newly created file is older than distributed files!
2117 Check your system clock" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120 { echo "$as_me:$LINENO: result: yes" >&5
2121 echo "${ECHO_T}yes" >&6; }
2122 test "$program_prefix" != NONE &&
2123   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2124 # Use a double $ so make ignores it.
2125 test "$program_suffix" != NONE &&
2126   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2127 # Double any \ or $.  echo might interpret backslashes.
2128 # By default was `s,x,x', remove it if useless.
2129 cat <<\_ACEOF >conftest.sed
2130 s/[\\$]/&&/g;s/;s,x,x,$//
2131 _ACEOF
2132 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2133 rm -f conftest.sed
2134
2135 # expand $ac_aux_dir to an absolute path
2136 am_aux_dir=`cd $ac_aux_dir && pwd`
2137
2138 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2139 # Use eval to expand $SHELL
2140 if eval "$MISSING --run true"; then
2141   am_missing_run="$MISSING --run "
2142 else
2143   am_missing_run=
2144   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2145 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2146 fi
2147
2148 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2149   # We used to keeping the `.' as first argument, in order to
2150   # allow $(mkdir_p) to be used without argument.  As in
2151   #   $(mkdir_p) $(somedir)
2152   # where $(somedir) is conditionally defined.  However this is wrong
2153   # for two reasons:
2154   #  1. if the package is installed by a user who cannot write `.'
2155   #     make install will fail,
2156   #  2. the above comment should most certainly read
2157   #     $(mkdir_p) $(DESTDIR)$(somedir)
2158   #     so it does not work when $(somedir) is undefined and
2159   #     $(DESTDIR) is not.
2160   #  To support the latter case, we have to write
2161   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2162   #  so the `.' trick is pointless.
2163   mkdir_p='mkdir -p --'
2164 else
2165   # On NextStep and OpenStep, the `mkdir' command does not
2166   # recognize any option.  It will interpret all options as
2167   # directories to create, and then abort because `.' already
2168   # exists.
2169   for d in ./-p ./--version;
2170   do
2171     test -d $d && rmdir $d
2172   done
2173   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2174   if test -f "$ac_aux_dir/mkinstalldirs"; then
2175     mkdir_p='$(mkinstalldirs)'
2176   else
2177     mkdir_p='$(install_sh) -d'
2178   fi
2179 fi
2180
2181 for ac_prog in gawk mawk nawk awk
2182 do
2183   # Extract the first word of "$ac_prog", so it can be a program name with args.
2184 set dummy $ac_prog; ac_word=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_AWK+set}" = set; then
2188   echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190   if test -n "$AWK"; then
2191   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2192 else
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 for as_dir in $PATH
2195 do
2196   IFS=$as_save_IFS
2197   test -z "$as_dir" && as_dir=.
2198   for ac_exec_ext in '' $ac_executable_extensions; do
2199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200     ac_cv_prog_AWK="$ac_prog"
2201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202     break 2
2203   fi
2204 done
2205 done
2206 IFS=$as_save_IFS
2207
2208 fi
2209 fi
2210 AWK=$ac_cv_prog_AWK
2211 if test -n "$AWK"; then
2212   { echo "$as_me:$LINENO: result: $AWK" >&5
2213 echo "${ECHO_T}$AWK" >&6; }
2214 else
2215   { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2217 fi
2218
2219
2220   test -n "$AWK" && break
2221 done
2222
2223 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2224 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2225 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2226 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   cat >conftest.make <<\_ACEOF
2230 SHELL = /bin/sh
2231 all:
2232         @echo '@@@%%%=$(MAKE)=@@@%%%'
2233 _ACEOF
2234 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2235 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2236   *@@@%%%=?*=@@@%%%*)
2237     eval ac_cv_prog_make_${ac_make}_set=yes;;
2238   *)
2239     eval ac_cv_prog_make_${ac_make}_set=no;;
2240 esac
2241 rm -f conftest.make
2242 fi
2243 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2244   { echo "$as_me:$LINENO: result: yes" >&5
2245 echo "${ECHO_T}yes" >&6; }
2246   SET_MAKE=
2247 else
2248   { echo "$as_me:$LINENO: result: no" >&5
2249 echo "${ECHO_T}no" >&6; }
2250   SET_MAKE="MAKE=${MAKE-make}"
2251 fi
2252
2253 rm -rf .tst 2>/dev/null
2254 mkdir .tst 2>/dev/null
2255 if test -d .tst; then
2256   am__leading_dot=.
2257 else
2258   am__leading_dot=_
2259 fi
2260 rmdir .tst 2>/dev/null
2261
2262 # test to see if srcdir already configured
2263 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2264    test -f $srcdir/config.status; then
2265   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2266 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2267    { (exit 1); exit 1; }; }
2268 fi
2269
2270 # test whether we have cygpath
2271 if test -z "$CYGPATH_W"; then
2272   if (cygpath --version) >/dev/null 2>/dev/null; then
2273     CYGPATH_W='cygpath -w'
2274   else
2275     CYGPATH_W=echo
2276   fi
2277 fi
2278
2279
2280 # Define the identity of the package.
2281  PACKAGE=senna
2282  VERSION=1.1.2
2283
2284
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE "$PACKAGE"
2287 _ACEOF
2288
2289
2290 cat >>confdefs.h <<_ACEOF
2291 #define VERSION "$VERSION"
2292 _ACEOF
2293
2294 # Some tools Automake needs.
2295
2296 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2297
2298
2299 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2300
2301
2302 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2303
2304
2305 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2306
2307
2308 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309
2310 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2311
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'.  However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317   if test -n "$ac_tool_prefix"; then
2318   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323   echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325   if test -n "$STRIP"; then
2326   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2330 do
2331   IFS=$as_save_IFS
2332   test -z "$as_dir" && as_dir=.
2333   for ac_exec_ext in '' $ac_executable_extensions; do
2334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337     break 2
2338   fi
2339 done
2340 done
2341 IFS=$as_save_IFS
2342
2343 fi
2344 fi
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347   { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2349 else
2350   { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2352 fi
2353
2354
2355 fi
2356 if test -z "$ac_cv_prog_STRIP"; then
2357   ac_ct_STRIP=$STRIP
2358   # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$ac_ct_STRIP"; then
2366   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375     ac_cv_prog_ac_ct_STRIP="strip"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381 IFS=$as_save_IFS
2382
2383 fi
2384 fi
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2389 else
2390   { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2392 fi
2393
2394   if test "x$ac_ct_STRIP" = x; then
2395     STRIP=":"
2396   else
2397     case $cross_compiling:$ac_tool_warned in
2398 yes:)
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet.  If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet.  If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407     STRIP=$ac_ct_STRIP
2408   fi
2409 else
2410   STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2415
2416 # We need awk for the "check" target.  The system "awk" is bad on
2417 # some platforms.
2418 # Always define AMTAR for backward compatibility.
2419
2420 AMTAR=${AMTAR-"${am_missing_run}tar"}
2421
2422 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423
2424
2425
2426
2427
2428
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464   { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2469 fi
2470
2471
2472 fi
2473 if test -z "$ac_cv_prog_CC"; then
2474   ac_ct_CC=$CC
2475   # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$ac_ct_CC"; then
2483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_CC="gcc"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511   if test "x$ac_ct_CC" = x; then
2512     CC=""
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524     CC=$ac_ct_CC
2525   fi
2526 else
2527   CC="$ac_cv_prog_CC"
2528 fi
2529
2530 if test -z "$CC"; then
2531           if test -n "$ac_tool_prefix"; then
2532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547   for ac_exec_ext in '' $ac_executable_extensions; do
2548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549     ac_cv_prog_CC="${ac_tool_prefix}cc"
2550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561   { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2563 else
2564   { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2566 fi
2567
2568
2569   fi
2570 fi
2571 if test -z "$CC"; then
2572   # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CC"; then
2580   ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582   ac_prog_rejected=no
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591        ac_prog_rejected=yes
2592        continue
2593      fi
2594     ac_cv_prog_CC="cc"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 if test $ac_prog_rejected = yes; then
2603   # We found a bogon in the path, so make sure we never use it.
2604   set dummy $ac_cv_prog_CC
2605   shift
2606   if test $# != 0; then
2607     # We chose a different compiler from the bogus one.
2608     # However, it has the same basename, so the bogon will be chosen
2609     # first if we set CC to just the basename; use the full file name.
2610     shift
2611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612   fi
2613 fi
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626 fi
2627 if test -z "$CC"; then
2628   if test -n "$ac_tool_prefix"; then
2629   for ac_prog in cl.exe
2630   do
2631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660   { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668     test -n "$CC" && break
2669   done
2670 fi
2671 if test -z "$CC"; then
2672   ac_ct_CC=$CC
2673   for ac_prog in cl.exe
2674 do
2675   # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   if test -n "$ac_ct_CC"; then
2683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690   for ac_exec_ext in '' $ac_executable_extensions; do
2691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692     ac_cv_prog_ac_ct_CC="$ac_prog"
2693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2706 else
2707   { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2709 fi
2710
2711
2712   test -n "$ac_ct_CC" && break
2713 done
2714
2715   if test "x$ac_ct_CC" = x; then
2716     CC=""
2717   else
2718     case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet.  If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet.  If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     CC=$ac_ct_CC
2729   fi
2730 fi
2731
2732 fi
2733
2734
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739    { (exit 1); exit 1; }; }
2740
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_compiler --version >&5") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compiler -v >&5") 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770   (eval "$ac_compiler -V >&5") 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }
2774
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781
2782 int
2783 main ()
2784 {
2785
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2794 # of exeext.
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2798 #
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort.  b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2803 #
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions.  Remove them first so a
2806 # subsequent execution test works.
2807 ac_rmfiles=
2808 for ac_file in $ac_files
2809 do
2810   case $ac_file in
2811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813   esac
2814 done
2815 rm -f $ac_rmfiles
2816
2817 if { (ac_try="$ac_link_default"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_link_default") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; then
2827   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2831 # Autoconf.
2832 for ac_file in $ac_files ''
2833 do
2834   test -f "$ac_file" || continue
2835   case $ac_file in
2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837         ;;
2838     [ab].out )
2839         # We found the default executable, but exeext='' is most
2840         # certainly right.
2841         break;;
2842     *.* )
2843         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844         then :; else
2845            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846         fi
2847         # We set ac_cv_exeext here because the later test for it is not
2848         # safe: cross compilers may not add the suffix if given an `-o'
2849         # argument, so we may need to know it at that point already.
2850         # Even if this section looks crufty: it has the advantage of
2851         # actually working.
2852         break;;
2853     * )
2854         break;;
2855   esac
2856 done
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
2859 else
2860   ac_file=''
2861 fi
2862
2863 { echo "$as_me:$LINENO: result: $ac_file" >&5
2864 echo "${ECHO_T}$ac_file" >&6; }
2865 if test -z "$ac_file"; then
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&2;}
2873    { (exit 77); exit 77; }; }
2874 fi
2875
2876 ac_exeext=$ac_cv_exeext
2877
2878 # Check that the compiler produces executables we can run.  If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885   if { ac_try='./$ac_file'
2886   { (case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_try") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895     cross_compiling=no
2896   else
2897     if test "$cross_compiling" = maybe; then
2898         cross_compiling=yes
2899     else
2900         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&2;}
2906    { (exit 1); exit 1; }; }
2907     fi
2908   fi
2909 fi
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2912
2913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914 ac_clean_files=$ac_clean_files_save
2915 # Check that the compiler produces executables we can run.  If not, either
2916 # the compiler is broken, or we cross compile.
2917 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920 echo "${ECHO_T}$cross_compiling" >&6; }
2921
2922 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924 if { (ac_try="$ac_link"
2925 case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_link") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; then
2934   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2937 # `rm'.
2938 for ac_file in conftest.exe conftest conftest.*; do
2939   test -f "$ac_file" || continue
2940   case $ac_file in
2941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943           break;;
2944     * ) break;;
2945   esac
2946 done
2947 else
2948   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&2;}
2952    { (exit 1); exit 1; }; }
2953 fi
2954
2955 rm -f conftest$ac_cv_exeext
2956 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2958
2959 rm -f conftest.$ac_ext
2960 EXEEXT=$ac_cv_exeext
2961 ac_exeext=$EXEEXT
2962 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964 if test "${ac_cv_objext+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977
2978   ;
2979   return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.o conftest.obj
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_compile") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; then
2993   for ac_file in conftest.o conftest.obj conftest.*; do
2994   test -f "$ac_file" || continue;
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998        break;;
2999   esac
3000 done
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&2;}
3009    { (exit 1); exit 1; }; }
3010 fi
3011
3012 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013 fi
3014 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015 echo "${ECHO_T}$ac_cv_objext" >&6; }
3016 OBJEXT=$ac_cv_objext
3017 ac_objext=$OBJEXT
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033 #ifndef __GNUC__
3034        choke me
3035 #endif
3036
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_compile") 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } && {
3055          test -z "$ac_c_werror_flag" ||
3056          test ! -s conftest.err
3057        } && test -s conftest.$ac_objext; then
3058   ac_compiler_gnu=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063         ac_compiler_gnu=no
3064 fi
3065
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068
3069 fi
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   ac_save_c_werror_flag=$ac_c_werror_flag
3081    ac_c_werror_flag=yes
3082    ac_cv_prog_cc_g=no
3083    CFLAGS="-g"
3084    cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } && {
3113          test -z "$ac_c_werror_flag" ||
3114          test ! -s conftest.err
3115        } && test -s conftest.$ac_objext; then
3116   ac_cv_prog_cc_g=yes
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         CFLAGS=""
3122       cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compile") 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } && {
3151          test -z "$ac_c_werror_flag" ||
3152          test ! -s conftest.err
3153        } && test -s conftest.$ac_objext; then
3154   :
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159         ac_c_werror_flag=$ac_save_c_werror_flag
3160          CFLAGS="-g"
3161          cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_cv_prog_cc_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_c_werror_flag=$ac_save_c_werror_flag
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213   CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215   if test "$GCC" = yes; then
3216     CFLAGS="-g -O2"
3217   else
3218     CFLAGS="-g"
3219   fi
3220 else
3221   if test "$GCC" = yes; then
3222     CFLAGS="-O2"
3223   else
3224     CFLAGS=
3225   fi
3226 fi
3227 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_c89+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   ac_cv_prog_cc_c89=no
3233 ac_save_CC=$CC
3234 cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 #include <stdarg.h>
3241 #include <stdio.h>
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3248      char **p;
3249      int i;
3250 {
3251   return p[i];
3252 }
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3254 {
3255   char *s;
3256   va_list v;
3257   va_start (v,p);
3258   s = g (p, va_arg (v,int));
3259   va_end (v);
3260   return s;
3261 }
3262
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3264    function prototypes and stuff, but not '\xHH' hex character constants.
3265    These don't provoke an error unfortunately, instead are silently treated
3266    as 'x'.  The following induces an error, until -std is added to get
3267    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3268    array size at least.  It's necessary to write '\x00'==0 to get something
3269    that's true only with -std.  */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3271
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273    inside strings and character constants.  */
3274 #define FOO(x) 'x'
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3276
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 int argc;
3282 char **argv;
3283 int
3284 main ()
3285 {
3286 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3293 do
3294   CC="$ac_save_CC $ac_arg"
3295   rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_compile") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && {
3309          test -z "$ac_c_werror_flag" ||
3310          test ! -s conftest.err
3311        } && test -s conftest.$ac_objext; then
3312   ac_cv_prog_cc_c89=$ac_arg
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317
3318 fi
3319
3320 rm -f core conftest.err conftest.$ac_objext
3321   test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 done
3323 rm -f conftest.$ac_ext
3324 CC=$ac_save_CC
3325
3326 fi
3327 # AC_CACHE_VAL
3328 case "x$ac_cv_prog_cc_c89" in
3329   x)
3330     { echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6; } ;;
3332   xno)
3333     { echo "$as_me:$LINENO: result: unsupported" >&5
3334 echo "${ECHO_T}unsupported" >&6; } ;;
3335   *)
3336     CC="$CC $ac_cv_prog_cc_c89"
3337     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3339 esac
3340
3341
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 DEPDIR="${am__leading_dot}deps"
3348
3349 ac_config_commands="$ac_config_commands depfiles"
3350
3351
3352 am_make=${MAKE-make}
3353 cat > confinc << 'END'
3354 am__doit:
3355         @echo done
3356 .PHONY: am__doit
3357 END
3358 # If we don't find an include directive, just comment out the code.
3359 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3361 am__include="#"
3362 am__quote=
3363 _am_result=none
3364 # First try GNU make style include.
3365 echo "include confinc" > confmf
3366 # We grep out `Entering directory' and `Leaving directory'
3367 # messages which can occur if `w' ends up in MAKEFLAGS.
3368 # In particular we don't look at `^make:' because GNU make might
3369 # be invoked under some other name (usually "gmake"), in which
3370 # case it prints its new name instead of `make'.
3371 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3372    am__include=include
3373    am__quote=
3374    _am_result=GNU
3375 fi
3376 # Now try BSD make style include.
3377 if test "$am__include" = "#"; then
3378    echo '.include "confinc"' > confmf
3379    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380       am__include=.include
3381       am__quote="\""
3382       _am_result=BSD
3383    fi
3384 fi
3385
3386
3387 { echo "$as_me:$LINENO: result: $_am_result" >&5
3388 echo "${ECHO_T}$_am_result" >&6; }
3389 rm -f confinc confmf
3390
3391 # Check whether --enable-dependency-tracking was given.
3392 if test "${enable_dependency_tracking+set}" = set; then
3393   enableval=$enable_dependency_tracking;
3394 fi
3395
3396 if test "x$enable_dependency_tracking" != xno; then
3397   am_depcomp="$ac_aux_dir/depcomp"
3398   AMDEPBACKSLASH='\'
3399 fi
3400
3401
3402 if test "x$enable_dependency_tracking" != xno; then
3403   AMDEP_TRUE=
3404   AMDEP_FALSE='#'
3405 else
3406   AMDEP_TRUE='#'
3407   AMDEP_FALSE=
3408 fi
3409
3410
3411
3412
3413 depcc="$CC"   am_compiler_list=
3414
3415 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3416 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3421   # We make a subdir and do the tests there.  Otherwise we can end up
3422   # making bogus files that we don't know about and never remove.  For
3423   # instance it was reported that on HP-UX the gcc test will end up
3424   # making a dummy file named `D' -- because `-MD' means `put the output
3425   # in D'.
3426   mkdir conftest.dir
3427   # Copy depcomp to subdir because otherwise we won't find it if we're
3428   # using a relative directory.
3429   cp "$am_depcomp" conftest.dir
3430   cd conftest.dir
3431   # We will build objects and dependencies in a subdirectory because
3432   # it helps to detect inapplicable dependency modes.  For instance
3433   # both Tru64's cc and ICC support -MD to output dependencies as a
3434   # side effect of compilation, but ICC will put the dependencies in
3435   # the current directory while Tru64 will put them in the object
3436   # directory.
3437   mkdir sub
3438
3439   am_cv_CC_dependencies_compiler_type=none
3440   if test "$am_compiler_list" = ""; then
3441      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3442   fi
3443   for depmode in $am_compiler_list; do
3444     # Setup a source with many dependencies, because some compilers
3445     # like to wrap large dependency lists on column 80 (with \), and
3446     # we should not choose a depcomp mode which is confused by this.
3447     #
3448     # We need to recreate these files for each test, as the compiler may
3449     # overwrite some of them when testing with obscure command lines.
3450     # This happens at least with the AIX C compiler.
3451     : > sub/conftest.c
3452     for i in 1 2 3 4 5 6; do
3453       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3454       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3455       # Solaris 8's {/usr,}/bin/sh.
3456       touch sub/conftst$i.h
3457     done
3458     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3459
3460     case $depmode in
3461     nosideeffect)
3462       # after this tag, mechanisms are not by side-effect, so they'll
3463       # only be used when explicitly requested
3464       if test "x$enable_dependency_tracking" = xyes; then
3465         continue
3466       else
3467         break
3468       fi
3469       ;;
3470     none) break ;;
3471     esac
3472     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3473     # mode.  It turns out that the SunPro C++ compiler does not properly
3474     # handle `-M -o', and we need to detect this.
3475     if depmode=$depmode \
3476        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3477        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3478        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3479          >/dev/null 2>conftest.err &&
3480        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3481        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3482        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3483       # icc doesn't choke on unknown options, it will just issue warnings
3484       # or remarks (even with -Werror).  So we grep stderr for any message
3485       # that says an option was ignored or not supported.
3486       # When given -MP, icc 7.0 and 7.1 complain thusly:
3487       #   icc: Command line warning: ignoring option '-M'; no argument required
3488       # The diagnosis changed in icc 8.0:
3489       #   icc: Command line remark: option '-MP' not supported
3490       if (grep 'ignoring option' conftest.err ||
3491           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3492         am_cv_CC_dependencies_compiler_type=$depmode
3493         break
3494       fi
3495     fi
3496   done
3497
3498   cd ..
3499   rm -rf conftest.dir
3500 else
3501   am_cv_CC_dependencies_compiler_type=none
3502 fi
3503
3504 fi
3505 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3506 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3507 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3508
3509
3510
3511 if
3512   test "x$enable_dependency_tracking" != xno \
3513   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3514   am__fastdepCC_TRUE=
3515   am__fastdepCC_FALSE='#'
3516 else
3517   am__fastdepCC_TRUE='#'
3518   am__fastdepCC_FALSE=
3519 fi
3520
3521
3522
3523 if test "$GCC" = "yes"; then
3524
3525
3526   old_CFLAGS=$CFLAGS
3527   CFLAGS="$CFLAGS -Wall -Werror"
3528   cat >conftest.$ac_ext <<_ACEOF
3529
3530 #include <stdio.h>
3531 int main(int argc, char **argv)
3532 {
3533   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3534   return 0;
3535 }
3536
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_compile") 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } && {
3552          test -z "$ac_c_werror_flag" ||
3553          test ! -s conftest.err
3554        } && test -s conftest.$ac_objext; then
3555   check_cflag=yes
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560         check_cflag=no
3561 fi
3562
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564   CFLAGS="$old_CFLAGS"
3565   if test "x$check_cflag" = "xyes"; then
3566     CFLAGS="$CFLAGS -Wall"
3567   fi
3568
3569
3570   old_CFLAGS=$CFLAGS
3571   CFLAGS="$CFLAGS -Wextra -Werror"
3572   cat >conftest.$ac_ext <<_ACEOF
3573
3574 #include <stdio.h>
3575 int main(int argc, char **argv)
3576 {
3577   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3578   return 0;
3579 }
3580
3581 _ACEOF
3582 rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589   (eval "$ac_compile") 2>conftest.er1
3590   ac_status=$?
3591   grep -v '^ *+' conftest.er1 >conftest.err
3592   rm -f conftest.er1
3593   cat conftest.err >&5
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); } && {
3596          test -z "$ac_c_werror_flag" ||
3597          test ! -s conftest.err
3598        } && test -s conftest.$ac_objext; then
3599   check_cflag=yes
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604         check_cflag=no
3605 fi
3606
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608   CFLAGS="$old_CFLAGS"
3609   if test "x$check_cflag" = "xyes"; then
3610     CFLAGS="$CFLAGS -Wextra"
3611   fi
3612
3613   if test "x$check_cflag" = "xno"; then
3614
3615   old_CFLAGS=$CFLAGS
3616   CFLAGS="$CFLAGS -W -Werror"
3617   cat >conftest.$ac_ext <<_ACEOF
3618
3619 #include <stdio.h>
3620 int main(int argc, char **argv)
3621 {
3622   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3623   return 0;
3624 }
3625
3626 _ACEOF
3627 rm -f conftest.$ac_objext
3628 if { (ac_try="$ac_compile"
3629 case "(($ac_try" in
3630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631   *) ac_try_echo=$ac_try;;
3632 esac
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634   (eval "$ac_compile") 2>conftest.er1
3635   ac_status=$?
3636   grep -v '^ *+' conftest.er1 >conftest.err
3637   rm -f conftest.er1
3638   cat conftest.err >&5
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); } && {
3641          test -z "$ac_c_werror_flag" ||
3642          test ! -s conftest.err
3643        } && test -s conftest.$ac_objext; then
3644   check_cflag=yes
3645 else
3646   echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3648
3649         check_cflag=no
3650 fi
3651
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653   CFLAGS="$old_CFLAGS"
3654   if test "x$check_cflag" = "xyes"; then
3655     CFLAGS="$CFLAGS -W"
3656   fi
3657
3658   fi
3659
3660   old_CFLAGS=$CFLAGS
3661   CFLAGS="$CFLAGS -Wno-unused-parameter -Werror"
3662   cat >conftest.$ac_ext <<_ACEOF
3663
3664 #include <stdio.h>
3665 int main(int argc, char **argv)
3666 {
3667   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3668   return 0;
3669 }
3670
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_compile") 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } && {
3686          test -z "$ac_c_werror_flag" ||
3687          test ! -s conftest.err
3688        } && test -s conftest.$ac_objext; then
3689   check_cflag=yes
3690 else
3691   echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694         check_cflag=no
3695 fi
3696
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698   CFLAGS="$old_CFLAGS"
3699   if test "x$check_cflag" = "xyes"; then
3700     CFLAGS="$CFLAGS -Wno-unused-parameter"
3701   fi
3702
3703
3704   old_CFLAGS=$CFLAGS
3705   CFLAGS="$CFLAGS -Wno-sign-compare -Werror"
3706   cat >conftest.$ac_ext <<_ACEOF
3707
3708 #include <stdio.h>
3709 int main(int argc, char **argv)
3710 {
3711   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3712   return 0;
3713 }
3714
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_compile") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } && {
3730          test -z "$ac_c_werror_flag" ||
3731          test ! -s conftest.err
3732        } && test -s conftest.$ac_objext; then
3733   check_cflag=yes
3734 else
3735   echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3737
3738         check_cflag=no
3739 fi
3740
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742   CFLAGS="$old_CFLAGS"
3743   if test "x$check_cflag" = "xyes"; then
3744     CFLAGS="$CFLAGS -Wno-sign-compare"
3745   fi
3746
3747
3748   old_CFLAGS=$CFLAGS
3749   CFLAGS="$CFLAGS -Wno-pointer-sign -Werror"
3750   cat >conftest.$ac_ext <<_ACEOF
3751
3752 #include <stdio.h>
3753 int main(int argc, char **argv)
3754 {
3755   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3756   return 0;
3757 }
3758
3759 _ACEOF
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3762 case "(($ac_try" in
3763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764   *) ac_try_echo=$ac_try;;
3765 esac
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767   (eval "$ac_compile") 2>conftest.er1
3768   ac_status=$?
3769   grep -v '^ *+' conftest.er1 >conftest.err
3770   rm -f conftest.er1
3771   cat conftest.err >&5
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); } && {
3774          test -z "$ac_c_werror_flag" ||
3775          test ! -s conftest.err
3776        } && test -s conftest.$ac_objext; then
3777   check_cflag=yes
3778 else
3779   echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782         check_cflag=no
3783 fi
3784
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786   CFLAGS="$old_CFLAGS"
3787   if test "x$check_cflag" = "xyes"; then
3788     CFLAGS="$CFLAGS -Wno-pointer-sign"
3789   fi
3790
3791
3792   old_CFLAGS=$CFLAGS
3793   CFLAGS="$CFLAGS -Wno-missing-field-initializers -Werror"
3794   cat >conftest.$ac_ext <<_ACEOF
3795
3796 #include <stdio.h>
3797 int main(int argc, char **argv)
3798 {
3799   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3800   return 0;
3801 }
3802
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3806 case "(($ac_try" in
3807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808   *) ac_try_echo=$ac_try;;
3809 esac
3810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811   (eval "$ac_compile") 2>conftest.er1
3812   ac_status=$?
3813   grep -v '^ *+' conftest.er1 >conftest.err
3814   rm -f conftest.er1
3815   cat conftest.err >&5
3816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817   (exit $ac_status); } && {
3818          test -z "$ac_c_werror_flag" ||
3819          test ! -s conftest.err
3820        } && test -s conftest.$ac_objext; then
3821   check_cflag=yes
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826         check_cflag=no
3827 fi
3828
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830   CFLAGS="$old_CFLAGS"
3831   if test "x$check_cflag" = "xyes"; then
3832     CFLAGS="$CFLAGS -Wno-missing-field-initializers"
3833   fi
3834
3835
3836
3837   old_CFLAGS=$CFLAGS
3838   CFLAGS="$CFLAGS -Wformat=2 -Werror"
3839   cat >conftest.$ac_ext <<_ACEOF
3840
3841 #include <stdio.h>
3842 int main(int argc, char **argv)
3843 {
3844   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3845   return 0;
3846 }
3847
3848 _ACEOF
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3851 case "(($ac_try" in
3852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853   *) ac_try_echo=$ac_try;;
3854 esac
3855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856   (eval "$ac_compile") 2>conftest.er1
3857   ac_status=$?
3858   grep -v '^ *+' conftest.er1 >conftest.err
3859   rm -f conftest.er1
3860   cat conftest.err >&5
3861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862   (exit $ac_status); } && {
3863          test -z "$ac_c_werror_flag" ||
3864          test ! -s conftest.err
3865        } && test -s conftest.$ac_objext; then
3866   check_cflag=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871         check_cflag=no
3872 fi
3873
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875   CFLAGS="$old_CFLAGS"
3876   if test "x$check_cflag" = "xyes"; then
3877     CFLAGS="$CFLAGS -Wformat=2"
3878   fi
3879
3880
3881   old_CFLAGS=$CFLAGS
3882   CFLAGS="$CFLAGS -Wstrict-aliasing=2 -Werror"
3883   cat >conftest.$ac_ext <<_ACEOF
3884
3885 #include <stdio.h>
3886 int main(int argc, char **argv)
3887 {
3888   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3889   return 0;
3890 }
3891
3892 _ACEOF
3893 rm -f conftest.$ac_objext
3894 if { (ac_try="$ac_compile"
3895 case "(($ac_try" in
3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897   *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900   (eval "$ac_compile") 2>conftest.er1
3901   ac_status=$?
3902   grep -v '^ *+' conftest.er1 >conftest.err
3903   rm -f conftest.er1
3904   cat conftest.err >&5
3905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906   (exit $ac_status); } && {
3907          test -z "$ac_c_werror_flag" ||
3908          test ! -s conftest.err
3909        } && test -s conftest.$ac_objext; then
3910   check_cflag=yes
3911 else
3912   echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915         check_cflag=no
3916 fi
3917
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919   CFLAGS="$old_CFLAGS"
3920   if test "x$check_cflag" = "xyes"; then
3921     CFLAGS="$CFLAGS -Wstrict-aliasing=2"
3922   fi
3923
3924
3925   old_CFLAGS=$CFLAGS
3926   CFLAGS="$CFLAGS -Wdisabled-optimization -Werror"
3927   cat >conftest.$ac_ext <<_ACEOF
3928
3929 #include <stdio.h>
3930 int main(int argc, char **argv)
3931 {
3932   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3933   return 0;
3934 }
3935
3936 _ACEOF
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3939 case "(($ac_try" in
3940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941   *) ac_try_echo=$ac_try;;
3942 esac
3943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3944   (eval "$ac_compile") 2>conftest.er1
3945   ac_status=$?
3946   grep -v '^ *+' conftest.er1 >conftest.err
3947   rm -f conftest.er1
3948   cat conftest.err >&5
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); } && {
3951          test -z "$ac_c_werror_flag" ||
3952          test ! -s conftest.err
3953        } && test -s conftest.$ac_objext; then
3954   check_cflag=yes
3955 else
3956   echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959         check_cflag=no
3960 fi
3961
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963   CFLAGS="$old_CFLAGS"
3964   if test "x$check_cflag" = "xyes"; then
3965     CFLAGS="$CFLAGS -Wdisabled-optimization"
3966   fi
3967
3968
3969   old_CFLAGS=$CFLAGS
3970   CFLAGS="$CFLAGS -Wfloat-equal -Werror"
3971   cat >conftest.$ac_ext <<_ACEOF
3972
3973 #include <stdio.h>
3974 int main(int argc, char **argv)
3975 {
3976   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
3977   return 0;
3978 }
3979
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (ac_try="$ac_compile"
3983 case "(($ac_try" in
3984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985   *) ac_try_echo=$ac_try;;
3986 esac
3987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3988   (eval "$ac_compile") 2>conftest.er1
3989   ac_status=$?
3990   grep -v '^ *+' conftest.er1 >conftest.err
3991   rm -f conftest.er1
3992   cat conftest.err >&5
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); } && {
3995          test -z "$ac_c_werror_flag" ||
3996          test ! -s conftest.err
3997        } && test -s conftest.$ac_objext; then
3998   check_cflag=yes
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003         check_cflag=no
4004 fi
4005
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007   CFLAGS="$old_CFLAGS"
4008   if test "x$check_cflag" = "xyes"; then
4009     CFLAGS="$CFLAGS -Wfloat-equal"
4010   fi
4011
4012
4013   old_CFLAGS=$CFLAGS
4014   CFLAGS="$CFLAGS -Wpointer-arith -Werror"
4015   cat >conftest.$ac_ext <<_ACEOF
4016
4017 #include <stdio.h>
4018 int main(int argc, char **argv)
4019 {
4020   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4021   return 0;
4022 }
4023
4024 _ACEOF
4025 rm -f conftest.$ac_objext
4026 if { (ac_try="$ac_compile"
4027 case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032   (eval "$ac_compile") 2>conftest.er1
4033   ac_status=$?
4034   grep -v '^ *+' conftest.er1 >conftest.err
4035   rm -f conftest.er1
4036   cat conftest.err >&5
4037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038   (exit $ac_status); } && {
4039          test -z "$ac_c_werror_flag" ||
4040          test ! -s conftest.err
4041        } && test -s conftest.$ac_objext; then
4042   check_cflag=yes
4043 else
4044   echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047         check_cflag=no
4048 fi
4049
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051   CFLAGS="$old_CFLAGS"
4052   if test "x$check_cflag" = "xyes"; then
4053     CFLAGS="$CFLAGS -Wpointer-arith"
4054   fi
4055
4056
4057   old_CFLAGS=$CFLAGS
4058   CFLAGS="$CFLAGS -Wdeclaration-after-statement -Werror"
4059   cat >conftest.$ac_ext <<_ACEOF
4060
4061 #include <stdio.h>
4062 int main(int argc, char **argv)
4063 {
4064   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4065   return 0;
4066 }
4067
4068 _ACEOF
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4071 case "(($ac_try" in
4072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073   *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076   (eval "$ac_compile") 2>conftest.er1
4077   ac_status=$?
4078   grep -v '^ *+' conftest.er1 >conftest.err
4079   rm -f conftest.er1
4080   cat conftest.err >&5
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); } && {
4083          test -z "$ac_c_werror_flag" ||
4084          test ! -s conftest.err
4085        } && test -s conftest.$ac_objext; then
4086   check_cflag=yes
4087 else
4088   echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091         check_cflag=no
4092 fi
4093
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095   CFLAGS="$old_CFLAGS"
4096   if test "x$check_cflag" = "xyes"; then
4097     CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4098   fi
4099
4100
4101   old_CFLAGS=$CFLAGS
4102   CFLAGS="$CFLAGS -Wbad-function-cast -Werror"
4103   cat >conftest.$ac_ext <<_ACEOF
4104
4105 #include <stdio.h>
4106 int main(int argc, char **argv)
4107 {
4108   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4109   return 0;
4110 }
4111
4112 _ACEOF
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117   *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120   (eval "$ac_compile") 2>conftest.er1
4121   ac_status=$?
4122   grep -v '^ *+' conftest.er1 >conftest.err
4123   rm -f conftest.er1
4124   cat conftest.err >&5
4125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126   (exit $ac_status); } && {
4127          test -z "$ac_c_werror_flag" ||
4128          test ! -s conftest.err
4129        } && test -s conftest.$ac_objext; then
4130   check_cflag=yes
4131 else
4132   echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135         check_cflag=no
4136 fi
4137
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139   CFLAGS="$old_CFLAGS"
4140   if test "x$check_cflag" = "xyes"; then
4141     CFLAGS="$CFLAGS -Wbad-function-cast"
4142   fi
4143
4144
4145   old_CFLAGS=$CFLAGS
4146   CFLAGS="$CFLAGS -Wcast-align -Werror"
4147   cat >conftest.$ac_ext <<_ACEOF
4148
4149 #include <stdio.h>
4150 int main(int argc, char **argv)
4151 {
4152   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4153   return 0;
4154 }
4155
4156 _ACEOF
4157 rm -f conftest.$ac_objext
4158 if { (ac_try="$ac_compile"
4159 case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164   (eval "$ac_compile") 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } && {
4171          test -z "$ac_c_werror_flag" ||
4172          test ! -s conftest.err
4173        } && test -s conftest.$ac_objext; then
4174   check_cflag=yes
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179         check_cflag=no
4180 fi
4181
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183   CFLAGS="$old_CFLAGS"
4184   if test "x$check_cflag" = "xyes"; then
4185     CFLAGS="$CFLAGS -Wcast-align"
4186   fi
4187
4188
4189   old_CFLAGS=$CFLAGS
4190   CFLAGS="$CFLAGS -Wredundant-decls -Werror"
4191   cat >conftest.$ac_ext <<_ACEOF
4192
4193 #include <stdio.h>
4194 int main(int argc, char **argv)
4195 {
4196   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4197   return 0;
4198 }
4199
4200 _ACEOF
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_compile") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } && {
4215          test -z "$ac_c_werror_flag" ||
4216          test ! -s conftest.err
4217        } && test -s conftest.$ac_objext; then
4218   check_cflag=yes
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223         check_cflag=no
4224 fi
4225
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227   CFLAGS="$old_CFLAGS"
4228   if test "x$check_cflag" = "xyes"; then
4229     CFLAGS="$CFLAGS -Wredundant-decls"
4230   fi
4231
4232 #  CHECK_CFLAG([-Wunsafe-loop-optimizations])
4233 #  CHECK_CFLAG([-Wunreachable-code])
4234 #  CHECK_CFLAG([-Wswitch-enum])
4235 #  CHECK_CFLAG([-Wshadow])
4236 #  CHECK_CFLAG([-Wconversion])
4237 #  CHECK_CFLAG([-Wwrite-strings])
4238
4239   old_CFLAGS=$CFLAGS
4240   CFLAGS="$CFLAGS -Winline -Werror"
4241   cat >conftest.$ac_ext <<_ACEOF
4242
4243 #include <stdio.h>
4244 int main(int argc, char **argv)
4245 {
4246   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4247   return 0;
4248 }
4249
4250 _ACEOF
4251 rm -f conftest.$ac_objext
4252 if { (ac_try="$ac_compile"
4253 case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_compile") 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } && {
4265          test -z "$ac_c_werror_flag" ||
4266          test ! -s conftest.err
4267        } && test -s conftest.$ac_objext; then
4268   check_cflag=yes
4269 else
4270   echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273         check_cflag=no
4274 fi
4275
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4277   CFLAGS="$old_CFLAGS"
4278   if test "x$check_cflag" = "xyes"; then
4279     CFLAGS="$CFLAGS -Winline"
4280   fi
4281
4282
4283   old_CFLAGS=$CFLAGS
4284   CFLAGS="$CFLAGS --param max-inline-insns-single=12000 -Werror"
4285   cat >conftest.$ac_ext <<_ACEOF
4286
4287 #include <stdio.h>
4288 int main(int argc, char **argv)
4289 {
4290   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4291   return 0;
4292 }
4293
4294 _ACEOF
4295 rm -f conftest.$ac_objext
4296 if { (ac_try="$ac_compile"
4297 case "(($ac_try" in
4298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299   *) ac_try_echo=$ac_try;;
4300 esac
4301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302   (eval "$ac_compile") 2>conftest.er1
4303   ac_status=$?
4304   grep -v '^ *+' conftest.er1 >conftest.err
4305   rm -f conftest.er1
4306   cat conftest.err >&5
4307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308   (exit $ac_status); } && {
4309          test -z "$ac_c_werror_flag" ||
4310          test ! -s conftest.err
4311        } && test -s conftest.$ac_objext; then
4312   check_cflag=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317         check_cflag=no
4318 fi
4319
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321   CFLAGS="$old_CFLAGS"
4322   if test "x$check_cflag" = "xyes"; then
4323     CFLAGS="$CFLAGS --param max-inline-insns-single=12000"
4324   fi
4325
4326
4327   old_CFLAGS=$CFLAGS
4328   CFLAGS="$CFLAGS --param large-function-growth=28000 -Werror"
4329   cat >conftest.$ac_ext <<_ACEOF
4330
4331 #include <stdio.h>
4332 int main(int argc, char **argv)
4333 {
4334   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4335   return 0;
4336 }
4337
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (ac_try="$ac_compile"
4341 case "(($ac_try" in
4342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343   *) ac_try_echo=$ac_try;;
4344 esac
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346   (eval "$ac_compile") 2>conftest.er1
4347   ac_status=$?
4348   grep -v '^ *+' conftest.er1 >conftest.err
4349   rm -f conftest.er1
4350   cat conftest.err >&5
4351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352   (exit $ac_status); } && {
4353          test -z "$ac_c_werror_flag" ||
4354          test ! -s conftest.err
4355        } && test -s conftest.$ac_objext; then
4356   check_cflag=yes
4357 else
4358   echo "$as_me: failed program was:" >&5
4359 sed 's/^/| /' conftest.$ac_ext >&5
4360
4361         check_cflag=no
4362 fi
4363
4364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365   CFLAGS="$old_CFLAGS"
4366   if test "x$check_cflag" = "xyes"; then
4367     CFLAGS="$CFLAGS --param large-function-growth=28000"
4368   fi
4369
4370
4371   old_CFLAGS=$CFLAGS
4372   CFLAGS="$CFLAGS --param inline-unit-growth=400 -Werror"
4373   cat >conftest.$ac_ext <<_ACEOF
4374
4375 #include <stdio.h>
4376 int main(int argc, char **argv)
4377 {
4378   printf("test cflags, argc:%d argv[0]:%s", argc, argv[0]);
4379   return 0;
4380 }
4381
4382 _ACEOF
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4385 case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390   (eval "$ac_compile") 2>conftest.er1
4391   ac_status=$?
4392   grep -v '^ *+' conftest.er1 >conftest.err
4393   rm -f conftest.er1
4394   cat conftest.err >&5
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } && {
4397          test -z "$ac_c_werror_flag" ||
4398          test ! -s conftest.err
4399        } && test -s conftest.$ac_objext; then
4400   check_cflag=yes
4401 else
4402   echo "$as_me: failed program was:" >&5
4403 sed 's/^/| /' conftest.$ac_ext >&5
4404
4405         check_cflag=no
4406 fi
4407
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409   CFLAGS="$old_CFLAGS"
4410   if test "x$check_cflag" = "xyes"; then
4411     CFLAGS="$CFLAGS --param inline-unit-growth=400"
4412   fi
4413
4414 fi
4415 # Check whether --enable-shared was given.
4416 if test "${enable_shared+set}" = set; then
4417   enableval=$enable_shared; p=${PACKAGE-default}
4418     case $enableval in
4419     yes) enable_shared=yes ;;
4420     no) enable_shared=no ;;
4421     *)
4422       enable_shared=no
4423       # Look at the argument we got.  We use all the common list separators.
4424       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4425       for pkg in $enableval; do
4426         IFS="$lt_save_ifs"
4427         if test "X$pkg" = "X$p"; then
4428           enable_shared=yes
4429         fi
4430       done
4431       IFS="$lt_save_ifs"
4432       ;;
4433     esac
4434 else
4435   enable_shared=yes
4436 fi
4437
4438
4439 # Check whether --enable-static was given.
4440 if test "${enable_static+set}" = set; then
4441   enableval=$enable_static; p=${PACKAGE-default}
4442     case $enableval in
4443     yes) enable_static=yes ;;
4444     no) enable_static=no ;;
4445     *)
4446      enable_static=no
4447       # Look at the argument we got.  We use all the common list separators.
4448       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4449       for pkg in $enableval; do
4450         IFS="$lt_save_ifs"
4451         if test "X$pkg" = "X$p"; then
4452           enable_static=yes
4453         fi
4454       done
4455       IFS="$lt_save_ifs"
4456       ;;
4457     esac
4458 else
4459   enable_static=yes
4460 fi
4461
4462
4463 # Check whether --enable-fast-install was given.
4464 if test "${enable_fast_install+set}" = set; then
4465   enableval=$enable_fast_install; p=${PACKAGE-default}
4466     case $enableval in
4467     yes) enable_fast_install=yes ;;
4468     no) enable_fast_install=no ;;
4469     *)
4470       enable_fast_install=no
4471       # Look at the argument we got.  We use all the common list separators.
4472       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4473       for pkg in $enableval; do
4474         IFS="$lt_save_ifs"
4475         if test "X$pkg" = "X$p"; then
4476           enable_fast_install=yes
4477         fi
4478       done
4479       IFS="$lt_save_ifs"
4480       ;;
4481     esac
4482 else
4483   enable_fast_install=yes
4484 fi
4485
4486
4487 # Make sure we can run config.sub.
4488 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4489   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4490 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4491    { (exit 1); exit 1; }; }
4492
4493 { echo "$as_me:$LINENO: checking build system type" >&5
4494 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4495 if test "${ac_cv_build+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   ac_build_alias=$build_alias
4499 test "x$ac_build_alias" = x &&
4500   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4501 test "x$ac_build_alias" = x &&
4502   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4503 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4504    { (exit 1); exit 1; }; }
4505 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4506   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4507 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4508    { (exit 1); exit 1; }; }
4509
4510 fi
4511 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4512 echo "${ECHO_T}$ac_cv_build" >&6; }
4513 case $ac_cv_build in
4514 *-*-*) ;;
4515 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4516 echo "$as_me: error: invalid value of canonical build" >&2;}
4517    { (exit 1); exit 1; }; };;
4518 esac
4519 build=$ac_cv_build
4520 ac_save_IFS=$IFS; IFS='-'
4521 set x $ac_cv_build
4522 shift
4523 build_cpu=$1
4524 build_vendor=$2
4525 shift; shift
4526 # Remember, the first character of IFS is used to create $*,
4527 # except with old shells:
4528 build_os=$*
4529 IFS=$ac_save_IFS
4530 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4531
4532
4533 { echo "$as_me:$LINENO: checking host system type" >&5
4534 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4535 if test "${ac_cv_host+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   if test "x$host_alias" = x; then
4539   ac_cv_host=$ac_cv_build
4540 else
4541   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4542     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4543 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4544    { (exit 1); exit 1; }; }
4545 fi
4546
4547 fi
4548 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4549 echo "${ECHO_T}$ac_cv_host" >&6; }
4550 case $ac_cv_host in
4551 *-*-*) ;;
4552 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4553 echo "$as_me: error: invalid value of canonical host" >&2;}
4554    { (exit 1); exit 1; }; };;
4555 esac
4556 host=$ac_cv_host
4557 ac_save_IFS=$IFS; IFS='-'
4558 set x $ac_cv_host
4559 shift
4560 host_cpu=$1
4561 host_vendor=$2
4562 shift; shift
4563 # Remember, the first character of IFS is used to create $*,
4564 # except with old shells:
4565 host_os=$*
4566 IFS=$ac_save_IFS
4567 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4568
4569
4570 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4571 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4572 if test "${lt_cv_path_SED+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   # Loop through the user's path and test for sed and gsed.
4576 # Then use that list of sed's as ones to test for truncation.
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582   for lt_ac_prog in sed gsed; do
4583     for ac_exec_ext in '' $ac_executable_extensions; do
4584       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4585         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4586       fi
4587     done
4588   done
4589 done
4590 IFS=$as_save_IFS
4591 lt_ac_max=0
4592 lt_ac_count=0
4593 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4594 # along with /bin/sed that truncates output.
4595 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4596   test ! -f $lt_ac_sed && continue
4597   cat /dev/null > conftest.in
4598   lt_ac_count=0
4599   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4600   # Check for GNU sed and select it if it is found.
4601   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4602     lt_cv_path_SED=$lt_ac_sed
4603     break
4604   fi
4605   while true; do
4606     cat conftest.in conftest.in >conftest.tmp
4607     mv conftest.tmp conftest.in
4608     cp conftest.in conftest.nl
4609     echo >>conftest.nl
4610     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4611     cmp -s conftest.out conftest.nl || break
4612     # 10000 chars as input seems more than enough
4613     test $lt_ac_count -gt 10 && break
4614     lt_ac_count=`expr $lt_ac_count + 1`
4615     if test $lt_ac_count -gt $lt_ac_max; then
4616       lt_ac_max=$lt_ac_count
4617       lt_cv_path_SED=$lt_ac_sed
4618     fi
4619   done
4620 done
4621
4622 fi
4623
4624 SED=$lt_cv_path_SED
4625
4626 { echo "$as_me:$LINENO: result: $SED" >&5
4627 echo "${ECHO_T}$SED" >&6; }
4628
4629 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4630 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4631 if test "${ac_cv_path_GREP+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   # Extract the first word of "grep ggrep" to use in msg output
4635 if test -z "$GREP"; then
4636 set dummy grep ggrep; ac_prog_name=$2
4637 if test "${ac_cv_path_GREP+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   ac_path_GREP_found=false
4641 # Loop through the user's path and test for each of PROGNAME-LIST
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647   for ac_prog in grep ggrep; do
4648   for ac_exec_ext in '' $ac_executable_extensions; do
4649     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4650     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4651     # Check for GNU ac_path_GREP and select it if it is found.
4652   # Check for GNU $ac_path_GREP
4653 case `"$ac_path_GREP" --version 2>&1` in
4654 *GNU*)
4655   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4656 *)
4657   ac_count=0
4658   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4659   while :
4660   do
4661     cat "conftest.in" "conftest.in" >"conftest.tmp"
4662     mv "conftest.tmp" "conftest.in"
4663     cp "conftest.in" "conftest.nl"
4664     echo 'GREP' >> "conftest.nl"
4665     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4666     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4667     ac_count=`expr $ac_count + 1`
4668     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4669       # Best one so far, save it but keep looking for a better one
4670       ac_cv_path_GREP="$ac_path_GREP"
4671       ac_path_GREP_max=$ac_count
4672     fi
4673     # 10*(2^10) chars as input seems more than enough
4674     test $ac_count -gt 10 && break
4675   done
4676   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4677 esac
4678
4679
4680     $ac_path_GREP_found && break 3
4681   done
4682 done
4683
4684 done
4685 IFS=$as_save_IFS
4686
4687
4688 fi
4689
4690 GREP="$ac_cv_path_GREP"
4691 if test -z "$GREP"; then
4692   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4693 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4694    { (exit 1); exit 1; }; }
4695 fi
4696
4697 else
4698   ac_cv_path_GREP=$GREP
4699 fi
4700
4701
4702 fi
4703 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4704 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4705  GREP="$ac_cv_path_GREP"
4706
4707
4708 { echo "$as_me:$LINENO: checking for egrep" >&5
4709 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4710 if test "${ac_cv_path_EGREP+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4714    then ac_cv_path_EGREP="$GREP -E"
4715    else
4716      # Extract the first word of "egrep" to use in msg output
4717 if test -z "$EGREP"; then
4718 set dummy egrep; ac_prog_name=$2
4719 if test "${ac_cv_path_EGREP+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   ac_path_EGREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729   for ac_prog in egrep; do
4730   for ac_exec_ext in '' $ac_executable_extensions; do
4731     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4732     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4733     # Check for GNU ac_path_EGREP and select it if it is found.
4734   # Check for GNU $ac_path_EGREP
4735 case `"$ac_path_EGREP" --version 2>&1` in
4736 *GNU*)
4737   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4738 *)
4739   ac_count=0
4740   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4741   while :
4742   do
4743     cat "conftest.in" "conftest.in" >"conftest.tmp"
4744     mv "conftest.tmp" "conftest.in"
4745     cp "conftest.in" "conftest.nl"
4746     echo 'EGREP' >> "conftest.nl"
4747     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749     ac_count=`expr $ac_count + 1`
4750     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4751       # Best one so far, save it but keep looking for a better one
4752       ac_cv_path_EGREP="$ac_path_EGREP"
4753       ac_path_EGREP_max=$ac_count
4754     fi
4755     # 10*(2^10) chars as input seems more than enough
4756     test $ac_count -gt 10 && break
4757   done
4758   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759 esac
4760
4761
4762     $ac_path_EGREP_found && break 3
4763   done
4764 done
4765
4766 done
4767 IFS=$as_save_IFS
4768
4769
4770 fi
4771
4772 EGREP="$ac_cv_path_EGREP"
4773 if test -z "$EGREP"; then
4774   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4775 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4776    { (exit 1); exit 1; }; }
4777 fi
4778
4779 else
4780   ac_cv_path_EGREP=$EGREP
4781 fi
4782
4783
4784    fi
4785 fi
4786 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4787 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4788  EGREP="$ac_cv_path_EGREP"
4789
4790
4791
4792 # Check whether --with-gnu-ld was given.
4793 if test "${with_gnu_ld+set}" = set; then
4794   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4795 else
4796   with_gnu_ld=no
4797 fi
4798
4799 ac_prog=ld
4800 if test "$GCC" = yes; then
4801   # Check if gcc -print-prog-name=ld gives a path.
4802   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4803 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4804   case $host in
4805   *-*-mingw*)
4806     # gcc leaves a trailing carriage return which upsets mingw
4807     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4808   *)
4809     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4810   esac
4811   case $ac_prog in
4812     # Accept absolute paths.
4813     [\\/]* | ?:[\\/]*)
4814       re_direlt='/[^/][^/]*/\.\./'
4815       # Canonicalize the pathname of ld
4816       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4817       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4818         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4819       done
4820       test -z "$LD" && LD="$ac_prog"
4821       ;;
4822   "")
4823     # If it fails, then pretend we aren't using GCC.
4824     ac_prog=ld
4825     ;;
4826   *)
4827     # If it is relative, then search for the first ld in PATH.
4828     with_gnu_ld=unknown
4829     ;;
4830   esac
4831 elif test "$with_gnu_ld" = yes; then
4832   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4833 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4834 else
4835   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4836 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4837 fi
4838 if test "${lt_cv_path_LD+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   if test -z "$LD"; then
4842   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4843   for ac_dir in $PATH; do
4844     IFS="$lt_save_ifs"
4845     test -z "$ac_dir" && ac_dir=.
4846     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4847       lt_cv_path_LD="$ac_dir/$ac_prog"
4848       # Check to see if the program is GNU ld.  I'd rather use --version,
4849       # but apparently some variants of GNU ld only accept -v.
4850       # Break only if it was the GNU/non-GNU ld that we prefer.
4851       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4852       *GNU* | *'with BFD'*)
4853         test "$with_gnu_ld" != no && break
4854         ;;
4855       *)
4856         test "$with_gnu_ld" != yes && break
4857         ;;
4858       esac
4859     fi
4860   done
4861   IFS="$lt_save_ifs"
4862 else
4863   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4864 fi
4865 fi
4866
4867 LD="$lt_cv_path_LD"
4868 if test -n "$LD"; then
4869   { echo "$as_me:$LINENO: result: $LD" >&5
4870 echo "${ECHO_T}$LD" >&6; }
4871 else
4872   { echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6; }
4874 fi
4875 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4876 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4877    { (exit 1); exit 1; }; }
4878 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4879 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4880 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4884 case `$LD -v 2>&1 </dev/null` in
4885 *GNU* | *'with BFD'*)
4886   lt_cv_prog_gnu_ld=yes
4887   ;;
4888 *)
4889   lt_cv_prog_gnu_ld=no
4890   ;;
4891 esac
4892 fi
4893 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4894 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4895 with_gnu_ld=$lt_cv_prog_gnu_ld
4896
4897
4898 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4899 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4900 if test "${lt_cv_ld_reload_flag+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   lt_cv_ld_reload_flag='-r'
4904 fi
4905 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4906 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4907 reload_flag=$lt_cv_ld_reload_flag
4908 case $reload_flag in
4909 "" | " "*) ;;
4910 *) reload_flag=" $reload_flag" ;;
4911 esac
4912 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4913 case $host_os in
4914   darwin*)
4915     if test "$GCC" = yes; then
4916       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4917     else
4918       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4919     fi
4920     ;;
4921 esac
4922
4923 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4924 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4925 if test "${lt_cv_path_NM+set}" = set; then
4926   echo $ECHO_N "(cached) $ECHO_C" >&6
4927 else
4928   if test -n "$NM"; then
4929   # Let the user override the test.
4930   lt_cv_path_NM="$NM"
4931 else
4932   lt_nm_to_check="${ac_tool_prefix}nm"
4933   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4934     lt_nm_to_check="$lt_nm_to_check nm"
4935   fi
4936   for lt_tmp_nm in $lt_nm_to_check; do
4937     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4938     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4939       IFS="$lt_save_ifs"
4940       test -z "$ac_dir" && ac_dir=.
4941       tmp_nm="$ac_dir/$lt_tmp_nm"
4942       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4943         # Check to see if the nm accepts a BSD-compat flag.
4944         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4945         #   nm: unknown option "B" ignored
4946         # Tru64's nm complains that /dev/null is an invalid object file
4947         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4948         */dev/null* | *'Invalid file or object type'*)
4949           lt_cv_path_NM="$tmp_nm -B"
4950           break
4951           ;;
4952         *)
4953           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4954           */dev/null*)
4955             lt_cv_path_NM="$tmp_nm -p"
4956             break
4957             ;;
4958           *)
4959             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4960             continue # so that we can try to find one that supports BSD flags
4961             ;;
4962           esac
4963           ;;
4964         esac
4965       fi
4966     done
4967     IFS="$lt_save_ifs"
4968   done
4969   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4970 fi
4971 fi
4972 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4973 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4974 NM="$lt_cv_path_NM"
4975
4976 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4977 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4978 LN_S=$as_ln_s
4979 if test "$LN_S" = "ln -s"; then
4980   { echo "$as_me:$LINENO: result: yes" >&5
4981 echo "${ECHO_T}yes" >&6; }
4982 else
4983   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4984 echo "${ECHO_T}no, using $LN_S" >&6; }
4985 fi
4986
4987 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4988 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4989 if test "${lt_cv_deplibs_check_method+set}" = set; then
4990   echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992   lt_cv_file_magic_cmd='$MAGIC_CMD'
4993 lt_cv_file_magic_test_file=
4994 lt_cv_deplibs_check_method='unknown'
4995 # Need to set the preceding variable on all platforms that support
4996 # interlibrary dependencies.
4997 # 'none' -- dependencies not supported.
4998 # `unknown' -- same as none, but documents that we really don't know.
4999 # 'pass_all' -- all dependencies passed with no checks.
5000 # 'test_compile' -- check by making test program.
5001 # 'file_magic [[regex]]' -- check by looking for files in library path
5002 # which responds to the $file_magic_cmd with a given extended regex.
5003 # If you have `file' or equivalent on your system and you're not sure
5004 # whether `pass_all' will *always* work, you probably want this one.
5005
5006 case $host_os in
5007 aix4* | aix5*)
5008   lt_cv_deplibs_check_method=pass_all
5009   ;;
5010
5011 beos*)
5012   lt_cv_deplibs_check_method=pass_all
5013   ;;
5014
5015 bsdi[45]*)
5016   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5017   lt_cv_file_magic_cmd='/usr/bin/file -L'
5018   lt_cv_file_magic_test_file=/shlib/libc.so
5019   ;;
5020
5021 cygwin*)
5022   # func_win32_libid is a shell function defined in ltmain.sh
5023   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5024   lt_cv_file_magic_cmd='func_win32_libid'
5025   ;;
5026
5027 mingw* | pw32*)
5028   # Base MSYS/MinGW do not provide the 'file' command needed by
5029   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5030   # unless we find 'file', for example because we are cross-compiling.
5031   if ( file / ) >/dev/null 2>&1; then
5032     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5033     lt_cv_file_magic_cmd='func_win32_libid'
5034   else
5035     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5036     lt_cv_file_magic_cmd='$OBJDUMP -f'
5037   fi
5038   ;;
5039
5040 darwin* | rhapsody*)
5041   lt_cv_deplibs_check_method=pass_all
5042   ;;
5043
5044 freebsd* | dragonfly*)
5045   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5046     case $host_cpu in
5047     i*86 )
5048       # Not sure whether the presence of OpenBSD here was a mistake.
5049       # Let's accept both of them until this is cleared up.
5050       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5051       lt_cv_file_magic_cmd=/usr/bin/file
5052       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5053       ;;
5054     esac
5055   else
5056     lt_cv_deplibs_check_method=pass_all
5057   fi
5058   ;;
5059
5060 gnu*)
5061   lt_cv_deplibs_check_method=pass_all
5062   ;;
5063
5064 hpux10.20* | hpux11*)
5065   lt_cv_file_magic_cmd=/usr/bin/file
5066   case $host_cpu in
5067   ia64*)
5068     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5069     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5070     ;;
5071   hppa*64*)
5072     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]'
5073     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5074     ;;
5075   *)
5076     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5077     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5078     ;;
5079   esac
5080   ;;
5081
5082 interix[3-9]*)
5083   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5084   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5085   ;;
5086
5087 irix5* | irix6* | nonstopux*)
5088   case $LD in
5089   *-32|*"-32 ") libmagic=32-bit;;
5090   *-n32|*"-n32 ") libmagic=N32;;
5091   *-64|*"-64 ") libmagic=64-bit;;
5092   *) libmagic=never-match;;
5093   esac
5094   lt_cv_deplibs_check_method=pass_all
5095   ;;
5096
5097 # This must be Linux ELF.
5098 linux* | k*bsd*-gnu)
5099   lt_cv_deplibs_check_method=pass_all
5100   ;;
5101
5102 netbsd* | netbsdelf*-gnu)
5103   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5105   else
5106     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5107   fi
5108   ;;
5109
5110 newos6*)
5111   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5112   lt_cv_file_magic_cmd=/usr/bin/file
5113   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5114   ;;
5115
5116 nto-qnx*)
5117   lt_cv_deplibs_check_method=unknown
5118   ;;
5119
5120 openbsd*)
5121   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5123   else
5124     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5125   fi
5126   ;;
5127
5128 osf3* | osf4* | osf5*)
5129   lt_cv_deplibs_check_method=pass_all
5130   ;;
5131
5132 rdos*)
5133   lt_cv_deplibs_check_method=pass_all
5134   ;;
5135
5136 solaris*)
5137   lt_cv_deplibs_check_method=pass_all
5138   ;;
5139
5140 sysv4 | sysv4.3*)
5141   case $host_vendor in
5142   motorola)
5143     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]'
5144     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5145     ;;
5146   ncr)
5147     lt_cv_deplibs_check_method=pass_all
5148     ;;
5149   sequent)
5150     lt_cv_file_magic_cmd='/bin/file'
5151     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5152     ;;
5153   sni)
5154     lt_cv_file_magic_cmd='/bin/file'
5155     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5156     lt_cv_file_magic_test_file=/lib/libc.so
5157     ;;
5158   siemens)
5159     lt_cv_deplibs_check_method=pass_all
5160     ;;
5161   pc)
5162     lt_cv_deplibs_check_method=pass_all
5163     ;;
5164   esac
5165   ;;
5166
5167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5168   lt_cv_deplibs_check_method=pass_all
5169   ;;
5170 esac
5171
5172 fi
5173 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5174 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5175 file_magic_cmd=$lt_cv_file_magic_cmd
5176 deplibs_check_method=$lt_cv_deplibs_check_method
5177 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5178
5179
5180
5181
5182 # If no C compiler was specified, use CC.
5183 LTCC=${LTCC-"$CC"}
5184
5185 # If no C compiler flags were specified, use CFLAGS.
5186 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5187
5188 # Allow CC to be a program name with arguments.
5189 compiler=$CC
5190
5191 # Check whether --enable-libtool-lock was given.
5192 if test "${enable_libtool_lock+set}" = set; then
5193   enableval=$enable_libtool_lock;
5194 fi
5195
5196 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5197
5198 # Some flags need to be propagated to the compiler or linker for good
5199 # libtool support.
5200 case $host in
5201 ia64-*-hpux*)
5202   # Find out which ABI we are using.
5203   echo 'int i;' > conftest.$ac_ext
5204   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205   (eval $ac_compile) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); }; then
5209     case `/usr/bin/file conftest.$ac_objext` in
5210     *ELF-32*)
5211       HPUX_IA64_MODE="32"
5212       ;;
5213     *ELF-64*)
5214       HPUX_IA64_MODE="64"
5215       ;;
5216     esac
5217   fi
5218   rm -rf conftest*
5219   ;;
5220 *-*-irix6*)
5221   # Find out which ABI we are using.
5222   echo '#line 5222 "configure"' > conftest.$ac_ext
5223   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224   (eval $ac_compile) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; then
5228    if test "$lt_cv_prog_gnu_ld" = yes; then
5229     case `/usr/bin/file conftest.$ac_objext` in
5230     *32-bit*)
5231       LD="${LD-ld} -melf32bsmip"
5232       ;;
5233     *N32*)
5234       LD="${LD-ld} -melf32bmipn32"
5235       ;;
5236     *64-bit*)
5237       LD="${LD-ld} -melf64bmip"
5238       ;;
5239     esac
5240    else
5241     case `/usr/bin/file conftest.$ac_objext` in
5242     *32-bit*)
5243       LD="${LD-ld} -32"
5244       ;;
5245     *N32*)
5246       LD="${LD-ld} -n32"
5247       ;;
5248     *64-bit*)
5249       LD="${LD-ld} -64"
5250       ;;
5251     esac
5252    fi
5253   fi
5254   rm -rf conftest*
5255   ;;
5256
5257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5258 s390*-*linux*|sparc*-*linux*)
5259   # Find out which ABI we are using.
5260   echo 'int i;' > conftest.$ac_ext
5261   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5262   (eval $ac_compile) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }; then
5266     case `/usr/bin/file conftest.o` in
5267     *32-bit*)
5268       case $host in
5269         x86_64-*kfreebsd*-gnu)
5270           LD="${LD-ld} -m elf_i386_fbsd"
5271           ;;
5272         x86_64-*linux*)
5273           LD="${LD-ld} -m elf_i386"
5274           ;;
5275         ppc64-*linux*|powerpc64-*linux*)
5276           LD="${LD-ld} -m elf32ppclinux"
5277           ;;
5278         s390x-*linux*)
5279           LD="${LD-ld} -m elf_s390"
5280           ;;
5281         sparc64-*linux*)
5282           LD="${LD-ld} -m elf32_sparc"
5283           ;;
5284       esac
5285       ;;
5286     *64-bit*)
5287       case $host in
5288         x86_64-*kfreebsd*-gnu)
5289           LD="${LD-ld} -m elf_x86_64_fbsd"
5290           ;;
5291         x86_64-*linux*)
5292           LD="${LD-ld} -m elf_x86_64"
5293           ;;
5294         ppc*-*linux*|powerpc*-*linux*)
5295           LD="${LD-ld} -m elf64ppc"
5296           ;;
5297         s390*-*linux*)
5298           LD="${LD-ld} -m elf64_s390"
5299           ;;
5300         sparc*-*linux*)
5301           LD="${LD-ld} -m elf64_sparc"
5302           ;;
5303       esac
5304       ;;
5305     esac
5306   fi
5307   rm -rf conftest*
5308   ;;
5309
5310 *-*-sco3.2v5*)
5311   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5312   SAVE_CFLAGS="$CFLAGS"
5313   CFLAGS="$CFLAGS -belf"
5314   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5315 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5316 if test "${lt_cv_cc_needs_belf+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   ac_ext=c
5320 ac_cpp='$CPP $CPPFLAGS'
5321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324
5325      cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331
5332 int
5333 main ()
5334 {
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext conftest$ac_exeext
5341 if { (ac_try="$ac_link"
5342 case "(($ac_try" in
5343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344   *) ac_try_echo=$ac_try;;
5345 esac
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347   (eval "$ac_link") 2>conftest.er1
5348   ac_status=$?
5349   grep -v '^ *+' conftest.er1 >conftest.err
5350   rm -f conftest.er1
5351   cat conftest.err >&5
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); } && {
5354          test -z "$ac_c_werror_flag" ||
5355          test ! -s conftest.err
5356        } && test -s conftest$ac_exeext &&
5357        $as_test_x conftest$ac_exeext; then
5358   lt_cv_cc_needs_belf=yes
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363         lt_cv_cc_needs_belf=no
5364 fi
5365
5366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5367       conftest$ac_exeext conftest.$ac_ext
5368      ac_ext=c
5369 ac_cpp='$CPP $CPPFLAGS'
5370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5373
5374 fi
5375 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5376 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5377   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5378     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5379     CFLAGS="$SAVE_CFLAGS"
5380   fi
5381   ;;
5382 sparc*-*solaris*)
5383   # Find out which ABI we are using.
5384   echo 'int i;' > conftest.$ac_ext
5385   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386   (eval $ac_compile) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; then
5390     case `/usr/bin/file conftest.o` in
5391     *64-bit*)
5392       case $lt_cv_prog_gnu_ld in
5393       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5394       *)    LD="${LD-ld} -64" ;;
5395       esac
5396       ;;
5397     esac
5398   fi
5399   rm -rf conftest*
5400   ;;
5401
5402
5403 esac
5404
5405 need_locks="$enable_libtool_lock"
5406
5407
5408 ac_ext=c
5409 ac_cpp='$CPP $CPPFLAGS'
5410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5414 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5415 # On Suns, sometimes $CPP names a directory.
5416 if test -n "$CPP" && test -d "$CPP"; then
5417   CPP=
5418 fi
5419 if test -z "$CPP"; then
5420   if test "${ac_cv_prog_CPP+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423       # Double quotes because CPP needs to be expanded
5424     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5425     do
5426       ac_preproc_ok=false
5427 for ac_c_preproc_warn_flag in '' yes
5428 do
5429   # Use a header file that comes with gcc, so configuring glibc
5430   # with a fresh cross-compiler works.
5431   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5432   # <limits.h> exists even on freestanding compilers.
5433   # On the NeXT, cc -E runs the code through the compiler's parser,
5434   # not just through cpp. "Syntax error" is here to catch this case.
5435   cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h.  */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h.  */
5441 #ifdef __STDC__
5442 # include <limits.h>
5443 #else
5444 # include <assert.h>
5445 #endif
5446                      Syntax error
5447 _ACEOF
5448 if { (ac_try="$ac_cpp conftest.$ac_ext"
5449 case "(($ac_try" in
5450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451   *) ac_try_echo=$ac_try;;
5452 esac
5453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5454   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5455   ac_status=$?
5456   grep -v '^ *+' conftest.er1 >conftest.err
5457   rm -f conftest.er1
5458   cat conftest.err >&5
5459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460   (exit $ac_status); } >/dev/null && {
5461          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5462          test ! -s conftest.err
5463        }; then
5464   :
5465 else
5466   echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469   # Broken: fails on valid input.
5470 continue
5471 fi
5472
5473 rm -f conftest.err conftest.$ac_ext
5474
5475   # OK, works on sane cases.  Now check whether nonexistent headers
5476   # can be detected and how.
5477   cat >conftest.$ac_ext <<_ACEOF
5478 /* confdefs.h.  */
5479 _ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h.  */
5483 #include <ac_nonexistent.h>
5484 _ACEOF
5485 if { (ac_try="$ac_cpp conftest.$ac_ext"
5486 case "(($ac_try" in
5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488   *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5492   ac_status=$?
5493   grep -v '^ *+' conftest.er1 >conftest.err
5494   rm -f conftest.er1
5495   cat conftest.err >&5
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } >/dev/null && {
5498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5499          test ! -s conftest.err
5500        }; then
5501   # Broken: success on invalid input.
5502 continue
5503 else
5504   echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5506
5507   # Passes both tests.
5508 ac_preproc_ok=:
5509 break
5510 fi
5511
5512 rm -f conftest.err conftest.$ac_ext
5513
5514 done
5515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5516 rm -f conftest.err conftest.$ac_ext
5517 if $ac_preproc_ok; then
5518   break
5519 fi
5520
5521     done
5522     ac_cv_prog_CPP=$CPP
5523
5524 fi
5525   CPP=$ac_cv_prog_CPP
5526 else
5527   ac_cv_prog_CPP=$CPP
5528 fi
5529 { echo "$as_me:$LINENO: result: $CPP" >&5
5530 echo "${ECHO_T}$CPP" >&6; }
5531 ac_preproc_ok=false
5532 for ac_c_preproc_warn_flag in '' yes
5533 do
5534   # Use a header file that comes with gcc, so configuring glibc
5535   # with a fresh cross-compiler works.
5536   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537   # <limits.h> exists even on freestanding compilers.
5538   # On the NeXT, cc -E runs the code through the compiler's parser,
5539   # not just through cpp. "Syntax error" is here to catch this case.
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 #ifdef __STDC__
5547 # include <limits.h>
5548 #else
5549 # include <assert.h>
5550 #endif
5551                      Syntax error
5552 _ACEOF
5553 if { (ac_try="$ac_cpp conftest.$ac_ext"
5554 case "(($ac_try" in
5555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556   *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5560   ac_status=$?
5561   grep -v '^ *+' conftest.er1 >conftest.err
5562   rm -f conftest.er1
5563   cat conftest.err >&5
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } >/dev/null && {
5566          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5567          test ! -s conftest.err
5568        }; then
5569   :
5570 else
5571   echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574   # Broken: fails on valid input.
5575 continue
5576 fi
5577
5578 rm -f conftest.err conftest.$ac_ext
5579
5580   # OK, works on sane cases.  Now check whether nonexistent headers
5581   # can be detected and how.
5582   cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588 #include <ac_nonexistent.h>
5589 _ACEOF
5590 if { (ac_try="$ac_cpp conftest.$ac_ext"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } >/dev/null && {
5603          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5604          test ! -s conftest.err
5605        }; then
5606   # Broken: success on invalid input.
5607 continue
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612   # Passes both tests.
5613 ac_preproc_ok=:
5614 break
5615 fi
5616
5617 rm -f conftest.err conftest.$ac_ext
5618
5619 done
5620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5621 rm -f conftest.err conftest.$ac_ext
5622 if $ac_preproc_ok; then
5623   :
5624 else
5625   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5626 See \`config.log' for more details." >&5
5627 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5628 See \`config.log' for more details." >&2;}
5629    { (exit 1); exit 1; }; }
5630 fi
5631
5632 ac_ext=c
5633 ac_cpp='$CPP $CPPFLAGS'
5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637
5638
5639 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5640 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5641 if test "${ac_cv_header_stdc+set}" = set; then
5642   echo $ECHO_N "(cached) $ECHO_C" >&6
5643 else
5644   cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 #include <stdlib.h>
5651 #include <stdarg.h>
5652 #include <string.h>
5653 #include <float.h>
5654
5655 int
5656 main ()
5657 {
5658
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5665 case "(($ac_try" in
5666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667   *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670   (eval "$ac_compile") 2>conftest.er1
5671   ac_status=$?
5672   grep -v '^ *+' conftest.er1 >conftest.err
5673   rm -f conftest.er1
5674   cat conftest.err >&5
5675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676   (exit $ac_status); } && {
5677          test -z "$ac_c_werror_flag" ||
5678          test ! -s conftest.err
5679        } && test -s conftest.$ac_objext; then
5680   ac_cv_header_stdc=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685         ac_cv_header_stdc=no
5686 fi
5687
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689
5690 if test $ac_cv_header_stdc = yes; then
5691   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5692   cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698 #include <string.h>
5699
5700 _ACEOF
5701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5702   $EGREP "memchr" >/dev/null 2>&1; then
5703   :
5704 else
5705   ac_cv_header_stdc=no
5706 fi
5707 rm -f conftest*
5708
5709 fi
5710
5711 if test $ac_cv_header_stdc = yes; then
5712   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5713   cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h.  */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h.  */
5719 #include <stdlib.h>
5720
5721 _ACEOF
5722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5723   $EGREP "free" >/dev/null 2>&1; then
5724   :
5725 else
5726   ac_cv_header_stdc=no
5727 fi
5728 rm -f conftest*
5729
5730 fi
5731
5732 if test $ac_cv_header_stdc = yes; then
5733   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5734   if test "$cross_compiling" = yes; then
5735   :
5736 else
5737   cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 #include <ctype.h>
5744 #include <stdlib.h>
5745 #if ((' ' & 0x0FF) == 0x020)
5746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748 #else
5749 # define ISLOWER(c) \
5750                    (('a' <= (c) && (c) <= 'i') \
5751                      || ('j' <= (c) && (c) <= 'r') \
5752                      || ('s' <= (c) && (c) <= 'z'))
5753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754 #endif
5755
5756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5757 int
5758 main ()
5759 {
5760   int i;
5761   for (i = 0; i < 256; i++)
5762     if (XOR (islower (i), ISLOWER (i))
5763         || toupper (i) != TOUPPER (i))
5764       return 2;
5765   return 0;
5766 }
5767 _ACEOF
5768 rm -f conftest$ac_exeext
5769 if { (ac_try="$ac_link"
5770 case "(($ac_try" in
5771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772   *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775   (eval "$ac_link") 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5779   { (case "(($ac_try" in
5780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781   *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784   (eval "$ac_try") 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }; }; then
5788   :
5789 else
5790   echo "$as_me: program exited with status $ac_status" >&5
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ( exit $ac_status )
5795 ac_cv_header_stdc=no
5796 fi
5797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5798 fi
5799
5800
5801 fi
5802 fi
5803 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5804 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5805 if test $ac_cv_header_stdc = yes; then
5806
5807 cat >>confdefs.h <<\_ACEOF
5808 #define STDC_HEADERS 1
5809 _ACEOF
5810
5811 fi
5812
5813 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5824                   inttypes.h stdint.h unistd.h
5825 do
5826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h.  */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h.  */
5838 $ac_includes_default
5839
5840 #include <$ac_header>
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (ac_try="$ac_compile"
5844 case "(($ac_try" in
5845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846   *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849   (eval "$ac_compile") 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } && {
5856          test -z "$ac_c_werror_flag" ||
5857          test ! -s conftest.err
5858        } && test -s conftest.$ac_objext; then
5859   eval "$as_ac_Header=yes"
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864         eval "$as_ac_Header=no"
5865 fi
5866
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 fi
5869 ac_res=`eval echo '${'$as_ac_Header'}'`
5870                { echo "$as_me:$LINENO: result: $ac_res" >&5
5871 echo "${ECHO_T}$ac_res" >&6; }
5872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5873   cat >>confdefs.h <<_ACEOF
5874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5875 _ACEOF
5876
5877 fi
5878
5879 done
5880
5881
5882
5883 for ac_header in dlfcn.h
5884 do
5885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5887   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 fi
5892 ac_res=`eval echo '${'$as_ac_Header'}'`
5893                { echo "$as_me:$LINENO: result: $ac_res" >&5
5894 echo "${ECHO_T}$ac_res" >&6; }
5895 else
5896   # Is the header compilable?
5897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5899 cat >conftest.$ac_ext <<_ACEOF
5900 /* confdefs.h.  */
5901 _ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h.  */
5905 $ac_includes_default
5906 #include <$ac_header>
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5910 case "(($ac_try" in
5911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912   *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915   (eval "$ac_compile") 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } && {
5922          test -z "$ac_c_werror_flag" ||
5923          test ! -s conftest.err
5924        } && test -s conftest.$ac_objext; then
5925   ac_header_compiler=yes
5926 else
5927   echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5929
5930         ac_header_compiler=no
5931 fi
5932
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5935 echo "${ECHO_T}$ac_header_compiler" >&6; }
5936
5937 # Is the header present?
5938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h.  */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h.  */
5946 #include <$ac_header>
5947 _ACEOF
5948 if { (ac_try="$ac_cpp conftest.$ac_ext"
5949 case "(($ac_try" in
5950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951   *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5955   ac_status=$?
5956   grep -v '^ *+' conftest.er1 >conftest.err
5957   rm -f conftest.er1
5958   cat conftest.err >&5
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); } >/dev/null && {
5961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5962          test ! -s conftest.err
5963        }; then
5964   ac_header_preproc=yes
5965 else
5966   echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969   ac_header_preproc=no
5970 fi
5971
5972 rm -f conftest.err conftest.$ac_ext
5973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5974 echo "${ECHO_T}$ac_header_preproc" >&6; }
5975
5976 # So?  What about this header?
5977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5978   yes:no: )
5979     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5981     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5983     ac_header_preproc=yes
5984     ;;
5985   no:yes:* )
5986     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5988     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5989 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5990     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5992     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5993 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5994     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5996     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5998     ( cat <<\_ASBOX
5999 ## ----------------------------- ##
6000 ## Report this to senna@razil.jp ##
6001 ## ----------------------------- ##
6002 _ASBOX
6003      ) | sed "s/^/$as_me: WARNING:     /" >&2
6004     ;;
6005 esac
6006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6009   echo $ECHO_N "(cached) $ECHO_C" >&6
6010 else
6011   eval "$as_ac_Header=\$ac_header_preproc"
6012 fi
6013 ac_res=`eval echo '${'$as_ac_Header'}'`
6014                { echo "$as_me:$LINENO: result: $ac_res" >&5
6015 echo "${ECHO_T}$ac_res" >&6; }
6016
6017 fi
6018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6019   cat >>confdefs.h <<_ACEOF
6020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6021 _ACEOF
6022
6023 fi
6024
6025 done
6026
6027 ac_ext=cpp
6028 ac_cpp='$CXXCPP $CPPFLAGS'
6029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6032 if test -z "$CXX"; then
6033   if test -n "$CCC"; then
6034     CXX=$CCC
6035   else
6036     if test -n "$ac_tool_prefix"; then
6037   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6038   do
6039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6043 if test "${ac_cv_prog_CXX+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   if test -n "$CXX"; then
6047   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054   for ac_exec_ext in '' $ac_executable_extensions; do
6055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058     break 2
6059   fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 fi
6065 fi
6066 CXX=$ac_cv_prog_CXX
6067 if test -n "$CXX"; then
6068   { echo "$as_me:$LINENO: result: $CXX" >&5
6069 echo "${ECHO_T}$CXX" >&6; }
6070 else
6071   { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6073 fi
6074
6075
6076     test -n "$CXX" && break
6077   done
6078 fi
6079 if test -z "$CXX"; then
6080   ac_ct_CXX=$CXX
6081   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6082 do
6083   # Extract the first word of "$ac_prog", so it can be a program name with args.
6084 set dummy $ac_prog; ac_word=$2
6085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6088   echo $ECHO_N "(cached) $ECHO_C" >&6
6089 else
6090   if test -n "$ac_ct_CXX"; then
6091   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH
6095 do
6096   IFS=$as_save_IFS
6097   test -z "$as_dir" && as_dir=.
6098   for ac_exec_ext in '' $ac_executable_extensions; do
6099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6100     ac_cv_prog_ac_ct_CXX="$ac_prog"
6101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102     break 2
6103   fi
6104 done
6105 done
6106 IFS=$as_save_IFS
6107
6108 fi
6109 fi
6110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6111 if test -n "$ac_ct_CXX"; then
6112   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6113 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6114 else
6115   { echo "$as_me:$LINENO: result: no" >&5
6116 echo "${ECHO_T}no" >&6; }
6117 fi
6118
6119
6120   test -n "$ac_ct_CXX" && break
6121 done
6122
6123   if test "x$ac_ct_CXX" = x; then
6124     CXX="g++"
6125   else
6126     case $cross_compiling:$ac_tool_warned in
6127 yes:)
6128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6129 whose name does not start with the host triplet.  If you think this
6130 configuration is useful to you, please write to autoconf@gnu.org." >&5
6131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6132 whose name does not start with the host triplet.  If you think this
6133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6134 ac_tool_warned=yes ;;
6135 esac
6136     CXX=$ac_ct_CXX
6137   fi
6138 fi
6139
6140   fi
6141 fi
6142 # Provide some information about the compiler.
6143 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6144 ac_compiler=`set X $ac_compile; echo $2`
6145 { (ac_try="$ac_compiler --version >&5"
6146 case "(($ac_try" in
6147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148   *) ac_try_echo=$ac_try;;
6149 esac
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151   (eval "$ac_compiler --version >&5") 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }
6155 { (ac_try="$ac_compiler -v >&5"
6156 case "(($ac_try" in
6157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158   *) ac_try_echo=$ac_try;;
6159 esac
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161   (eval "$ac_compiler -v >&5") 2>&5
6162   ac_status=$?
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); }
6165 { (ac_try="$ac_compiler -V >&5"
6166 case "(($ac_try" in
6167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168   *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171   (eval "$ac_compiler -V >&5") 2>&5
6172   ac_status=$?
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); }
6175
6176 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6177 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6178 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h.  */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h.  */
6187
6188 int
6189 main ()
6190 {
6191 #ifndef __GNUC__
6192        choke me
6193 #endif
6194
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 rm -f conftest.$ac_objext
6200 if { (ac_try="$ac_compile"
6201 case "(($ac_try" in
6202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203   *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206   (eval "$ac_compile") 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } && {
6213          test -z "$ac_cxx_werror_flag" ||
6214          test ! -s conftest.err
6215        } && test -s conftest.$ac_objext; then
6216   ac_compiler_gnu=yes
6217 else
6218   echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6220
6221         ac_compiler_gnu=no
6222 fi
6223
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6226
6227 fi
6228 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6229 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6230 GXX=`test $ac_compiler_gnu = yes && echo yes`
6231 ac_test_CXXFLAGS=${CXXFLAGS+set}
6232 ac_save_CXXFLAGS=$CXXFLAGS
6233 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6234 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6235 if test "${ac_cv_prog_cxx_g+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6239    ac_cxx_werror_flag=yes
6240    ac_cv_prog_cxx_g=no
6241    CXXFLAGS="-g"
6242    cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h.  */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h.  */
6248
6249 int
6250 main ()
6251 {
6252
6253   ;
6254   return 0;
6255 }
6256 _ACEOF
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6259 case "(($ac_try" in
6260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261   *) ac_try_echo=$ac_try;;
6262 esac
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264   (eval "$ac_compile") 2>conftest.er1
6265   ac_status=$?
6266   grep -v '^ *+' conftest.er1 >conftest.err
6267   rm -f conftest.er1
6268   cat conftest.err >&5
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } && {
6271          test -z "$ac_cxx_werror_flag" ||
6272          test ! -s conftest.err
6273        } && test -s conftest.$ac_objext; then
6274   ac_cv_prog_cxx_g=yes
6275 else
6276   echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279         CXXFLAGS=""
6280       cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h.  */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h.  */
6286
6287 int
6288 main ()
6289 {
6290
6291   ;
6292   return 0;
6293 }
6294 _ACEOF
6295 rm -f conftest.$ac_objext
6296 if { (ac_try="$ac_compile"
6297 case "(($ac_try" in
6298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299   *) ac_try_echo=$ac_try;;
6300 esac
6301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6302   (eval "$ac_compile") 2>conftest.er1
6303   ac_status=$?
6304   grep -v '^ *+' conftest.er1 >conftest.err
6305   rm -f conftest.er1
6306   cat conftest.err >&5
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); } && {
6309          test -z "$ac_cxx_werror_flag" ||
6310          test ! -s conftest.err
6311        } && test -s conftest.$ac_objext; then
6312   :
6313 else
6314   echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6318          CXXFLAGS="-g"
6319          cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325
6326 int
6327 main ()
6328 {
6329
6330   ;
6331   return 0;
6332 }
6333 _ACEOF
6334 rm -f conftest.$ac_objext
6335 if { (ac_try="$ac_compile"
6336 case "(($ac_try" in
6337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338   *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341   (eval "$ac_compile") 2>conftest.er1
6342   ac_status=$?
6343   grep -v '^ *+' conftest.er1 >conftest.err
6344   rm -f conftest.er1
6345   cat conftest.err >&5
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); } && {
6348          test -z "$ac_cxx_werror_flag" ||
6349          test ! -s conftest.err
6350        } && test -s conftest.$ac_objext; then
6351   ac_cv_prog_cxx_g=yes
6352 else
6353   echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6355
6356
6357 fi
6358
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 fi
6361
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 fi
6364
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6367 fi
6368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6369 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6370 if test "$ac_test_CXXFLAGS" = set; then
6371   CXXFLAGS=$ac_save_CXXFLAGS
6372 elif test $ac_cv_prog_cxx_g = yes; then
6373   if test "$GXX" = yes; then
6374     CXXFLAGS="-g -O2"
6375   else
6376     CXXFLAGS="-g"
6377   fi
6378 else
6379   if test "$GXX" = yes; then
6380     CXXFLAGS="-O2"
6381   else
6382     CXXFLAGS=
6383   fi
6384 fi
6385 ac_ext=cpp
6386 ac_cpp='$CXXCPP $CPPFLAGS'
6387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6390
6391 depcc="$CXX"  am_compiler_list=
6392
6393 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6394 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6395 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6399   # We make a subdir and do the tests there.  Otherwise we can end up
6400   # making bogus files that we don't know about and never remove.  For
6401   # instance it was reported that on HP-UX the gcc test will end up
6402   # making a dummy file named `D' -- because `-MD' means `put the output
6403   # in D'.
6404   mkdir conftest.dir
6405   # Copy depcomp to subdir because otherwise we won't find it if we're
6406   # using a relative directory.
6407   cp "$am_depcomp" conftest.dir
6408   cd conftest.dir
6409   # We will build objects and dependencies in a subdirectory because
6410   # it helps to detect inapplicable dependency modes.  For instance
6411   # both Tru64's cc and ICC support -MD to output dependencies as a
6412   # side effect of compilation, but ICC will put the dependencies in
6413   # the current directory while Tru64 will put them in the object
6414   # directory.
6415   mkdir sub
6416
6417   am_cv_CXX_dependencies_compiler_type=none
6418   if test "$am_compiler_list" = ""; then
6419      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6420   fi
6421   for depmode in $am_compiler_list; do
6422     # Setup a source with many dependencies, because some compilers
6423     # like to wrap large dependency lists on column 80 (with \), and
6424     # we should not choose a depcomp mode which is confused by this.
6425     #
6426     # We need to recreate these files for each test, as the compiler may
6427     # overwrite some of them when testing with obscure command lines.
6428     # This happens at least with the AIX C compiler.
6429     : > sub/conftest.c
6430     for i in 1 2 3 4 5 6; do
6431       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6432       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6433       # Solaris 8's {/usr,}/bin/sh.
6434       touch sub/conftst$i.h
6435     done
6436     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6437
6438     case $depmode in
6439     nosideeffect)
6440       # after this tag, mechanisms are not by side-effect, so they'll
6441       # only be used when explicitly requested
6442       if test "x$enable_dependency_tracking" = xyes; then
6443         continue
6444       else
6445         break
6446       fi
6447       ;;
6448     none) break ;;
6449     esac
6450     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6451     # mode.  It turns out that the SunPro C++ compiler does not properly
6452     # handle `-M -o', and we need to detect this.
6453     if depmode=$depmode \
6454        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6455        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6456        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6457          >/dev/null 2>conftest.err &&
6458        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6459        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6460        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6461       # icc doesn't choke on unknown options, it will just issue warnings
6462       # or remarks (even with -Werror).  So we grep stderr for any message
6463       # that says an option was ignored or not supported.
6464       # When given -MP, icc 7.0 and 7.1 complain thusly:
6465       #   icc: Command line warning: ignoring option '-M'; no argument required
6466       # The diagnosis changed in icc 8.0:
6467       #   icc: Command line remark: option '-MP' not supported
6468       if (grep 'ignoring option' conftest.err ||
6469           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6470         am_cv_CXX_dependencies_compiler_type=$depmode
6471         break
6472       fi
6473     fi
6474   done
6475
6476   cd ..
6477   rm -rf conftest.dir
6478 else
6479   am_cv_CXX_dependencies_compiler_type=none
6480 fi
6481
6482 fi
6483 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6484 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6485 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6486
6487
6488
6489 if
6490   test "x$enable_dependency_tracking" != xno \
6491   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6492   am__fastdepCXX_TRUE=
6493   am__fastdepCXX_FALSE='#'
6494 else
6495   am__fastdepCXX_TRUE='#'
6496   am__fastdepCXX_FALSE=
6497 fi
6498
6499
6500
6501
6502 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6503     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6504     (test "X$CXX" != "Xg++"))) ; then
6505   ac_ext=cpp
6506 ac_cpp='$CXXCPP $CPPFLAGS'
6507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6510 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6511 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6512 if test -z "$CXXCPP"; then
6513   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516       # Double quotes because CXXCPP needs to be expanded
6517     for CXXCPP in "$CXX -E" "/lib/cpp"
6518     do
6519       ac_preproc_ok=false
6520 for ac_cxx_preproc_warn_flag in '' yes
6521 do
6522   # Use a header file that comes with gcc, so configuring glibc
6523   # with a fresh cross-compiler works.
6524   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6525   # <limits.h> exists even on freestanding compilers.
6526   # On the NeXT, cc -E runs the code through the compiler's parser,
6527   # not just through cpp. "Syntax error" is here to catch this case.
6528   cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534 #ifdef __STDC__
6535 # include <limits.h>
6536 #else
6537 # include <assert.h>
6538 #endif
6539                      Syntax error
6540 _ACEOF
6541 if { (ac_try="$ac_cpp conftest.$ac_ext"
6542 case "(($ac_try" in
6543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544   *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6548   ac_status=$?
6549   grep -v '^ *+' conftest.er1 >conftest.err
6550   rm -f conftest.er1
6551   cat conftest.err >&5
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); } >/dev/null && {
6554          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6555          test ! -s conftest.err
6556        }; then
6557   :
6558 else
6559   echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6561
6562   # Broken: fails on valid input.
6563 continue
6564 fi
6565
6566 rm -f conftest.err conftest.$ac_ext
6567
6568   # OK, works on sane cases.  Now check whether nonexistent headers
6569   # can be detected and how.
6570   cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h.  */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h.  */
6576 #include <ac_nonexistent.h>
6577 _ACEOF
6578 if { (ac_try="$ac_cpp conftest.$ac_ext"
6579 case "(($ac_try" in
6580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581   *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } >/dev/null && {
6591          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6592          test ! -s conftest.err
6593        }; then
6594   # Broken: success on invalid input.
6595 continue
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600   # Passes both tests.
6601 ac_preproc_ok=:
6602 break
6603 fi
6604
6605 rm -f conftest.err conftest.$ac_ext
6606
6607 done
6608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6609 rm -f conftest.err conftest.$ac_ext
6610 if $ac_preproc_ok; then
6611   break
6612 fi
6613
6614     done
6615     ac_cv_prog_CXXCPP=$CXXCPP
6616
6617 fi
6618   CXXCPP=$ac_cv_prog_CXXCPP
6619 else
6620   ac_cv_prog_CXXCPP=$CXXCPP
6621 fi
6622 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6623 echo "${ECHO_T}$CXXCPP" >&6; }
6624 ac_preproc_ok=false
6625 for ac_cxx_preproc_warn_flag in '' yes
6626 do
6627   # Use a header file that comes with gcc, so configuring glibc
6628   # with a fresh cross-compiler works.
6629   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630   # <limits.h> exists even on freestanding compilers.
6631   # On the NeXT, cc -E runs the code through the compiler's parser,
6632   # not just through cpp. "Syntax error" is here to catch this case.
6633   cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639 #ifdef __STDC__
6640 # include <limits.h>
6641 #else
6642 # include <assert.h>
6643 #endif
6644                      Syntax error
6645 _ACEOF
6646 if { (ac_try="$ac_cpp conftest.$ac_ext"
6647 case "(($ac_try" in
6648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649   *) ac_try_echo=$ac_try;;
6650 esac
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6653   ac_status=$?
6654   grep -v '^ *+' conftest.er1 >conftest.err
6655   rm -f conftest.er1
6656   cat conftest.err >&5
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); } >/dev/null && {
6659          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6660          test ! -s conftest.err
6661        }; then
6662   :
6663 else
6664   echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.$ac_ext >&5
6666
6667   # Broken: fails on valid input.
6668 continue
6669 fi
6670
6671 rm -f conftest.err conftest.$ac_ext
6672
6673   # OK, works on sane cases.  Now check whether nonexistent headers
6674   # can be detected and how.
6675   cat >conftest.$ac_ext <<_ACEOF
6676 /* confdefs.h.  */
6677 _ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h.  */
6681 #include <ac_nonexistent.h>
6682 _ACEOF
6683 if { (ac_try="$ac_cpp conftest.$ac_ext"
6684 case "(($ac_try" in
6685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686   *) ac_try_echo=$ac_try;;
6687 esac
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6690   ac_status=$?
6691   grep -v '^ *+' conftest.er1 >conftest.err
6692   rm -f conftest.er1
6693   cat conftest.err >&5
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } >/dev/null && {
6696          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6697          test ! -s conftest.err
6698        }; then
6699   # Broken: success on invalid input.
6700 continue
6701 else
6702   echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705   # Passes both tests.
6706 ac_preproc_ok=:
6707 break
6708 fi
6709
6710 rm -f conftest.err conftest.$ac_ext
6711
6712 done
6713 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6714 rm -f conftest.err conftest.$ac_ext
6715 if $ac_preproc_ok; then
6716   :
6717 else
6718   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6719 See \`config.log' for more details." >&5
6720 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6721 See \`config.log' for more details." >&2;}
6722    { (exit 1); exit 1; }; }
6723 fi
6724
6725 ac_ext=cpp
6726 ac_cpp='$CXXCPP $CPPFLAGS'
6727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6730
6731 fi
6732
6733
6734 ac_ext=f
6735 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6736 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6737 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6738 if test -n "$ac_tool_prefix"; then
6739   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
6740   do
6741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_prog_F77+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   if test -n "$F77"; then
6749   ac_cv_prog_F77="$F77" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756   for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 F77=$ac_cv_prog_F77
6769 if test -n "$F77"; then
6770   { echo "$as_me:$LINENO: result: $F77" >&5
6771 echo "${ECHO_T}$F77" >&6; }
6772 else
6773   { echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6; }
6775 fi
6776
6777
6778     test -n "$F77" && break
6779   done
6780 fi
6781 if test -z "$F77"; then
6782   ac_ct_F77=$F77
6783   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
6784 do
6785   # Extract the first word of "$ac_prog", so it can be a program name with args.
6786 set dummy $ac_prog; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   if test -n "$ac_ct_F77"; then
6793   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_ac_ct_F77="$ac_prog"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6813 if test -n "$ac_ct_F77"; then
6814   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6815 echo "${ECHO_T}$ac_ct_F77" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822   test -n "$ac_ct_F77" && break
6823 done
6824
6825   if test "x$ac_ct_F77" = x; then
6826     F77=""
6827   else
6828     case $cross_compiling:$ac_tool_warned in
6829 yes:)
6830 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6831 whose name does not start with the host triplet.  If you think this
6832 configuration is useful to you, please write to autoconf@gnu.org." >&5
6833 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6834 whose name does not start with the host triplet.  If you think this
6835 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6836 ac_tool_warned=yes ;;
6837 esac
6838     F77=$ac_ct_F77
6839   fi
6840 fi
6841
6842
6843 # Provide some information about the compiler.
6844 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6845 ac_compiler=`set X $ac_compile; echo $2`
6846 { (ac_try="$ac_compiler --version >&5"
6847 case "(($ac_try" in
6848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849   *) ac_try_echo=$ac_try;;
6850 esac
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852   (eval "$ac_compiler --version >&5") 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); }
6856 { (ac_try="$ac_compiler -v >&5"
6857 case "(($ac_try" in
6858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859   *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862   (eval "$ac_compiler -v >&5") 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }
6866 { (ac_try="$ac_compiler -V >&5"
6867 case "(($ac_try" in
6868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869   *) ac_try_echo=$ac_try;;
6870 esac
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872   (eval "$ac_compiler -V >&5") 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }
6876 rm -f a.out
6877
6878 # If we don't use `.F' as extension, the preprocessor is not run on the
6879 # input file.  (Note that this only needs to work for GNU compilers.)
6880 ac_save_ext=$ac_ext
6881 ac_ext=F
6882 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6883 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6884 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   cat >conftest.$ac_ext <<_ACEOF
6888       program main
6889 #ifndef __GNUC__
6890        choke me
6891 #endif
6892
6893       end
6894 _ACEOF
6895 rm -f conftest.$ac_objext
6896 if { (ac_try="$ac_compile"
6897 case "(($ac_try" in
6898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6899   *) ac_try_echo=$ac_try;;
6900 esac
6901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6902   (eval "$ac_compile") 2>conftest.er1
6903   ac_status=$?
6904   grep -v '^ *+' conftest.er1 >conftest.err
6905   rm -f conftest.er1
6906   cat conftest.err >&5
6907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908   (exit $ac_status); } && {
6909          test -z "$ac_f77_werror_flag" ||
6910          test ! -s conftest.err
6911        } && test -s conftest.$ac_objext; then
6912   ac_compiler_gnu=yes
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917         ac_compiler_gnu=no
6918 fi
6919
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6922
6923 fi
6924 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6925 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6926 ac_ext=$ac_save_ext
6927 ac_test_FFLAGS=${FFLAGS+set}
6928 ac_save_FFLAGS=$FFLAGS
6929 FFLAGS=
6930 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6931 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6932 if test "${ac_cv_prog_f77_g+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   FFLAGS=-g
6936 cat >conftest.$ac_ext <<_ACEOF
6937       program main
6938
6939       end
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (ac_try="$ac_compile"
6943 case "(($ac_try" in
6944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945   *) ac_try_echo=$ac_try;;
6946 esac
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948   (eval "$ac_compile") 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } && {
6955          test -z "$ac_f77_werror_flag" ||
6956          test ! -s conftest.err
6957        } && test -s conftest.$ac_objext; then
6958   ac_cv_prog_f77_g=yes
6959 else
6960   echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963         ac_cv_prog_f77_g=no
6964 fi
6965
6966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967
6968 fi
6969 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6970 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6971 if test "$ac_test_FFLAGS" = set; then
6972   FFLAGS=$ac_save_FFLAGS
6973 elif test $ac_cv_prog_f77_g = yes; then
6974   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6975     FFLAGS="-g -O2"
6976   else
6977     FFLAGS="-g"
6978   fi
6979 else
6980   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6981     FFLAGS="-O2"
6982   else
6983     FFLAGS=
6984   fi
6985 fi
6986
6987 G77=`test $ac_compiler_gnu = yes && echo yes`
6988 ac_ext=c
6989 ac_cpp='$CPP $CPPFLAGS'
6990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6993
6994
6995
6996 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6997
6998 # find the maximum length of command line arguments
6999 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7000 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7001 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7002   echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004     i=0
7005   teststring="ABCD"
7006
7007   case $build_os in
7008   msdosdjgpp*)
7009     # On DJGPP, this test can blow up pretty badly due to problems in libc
7010     # (any single argument exceeding 2000 bytes causes a buffer overrun
7011     # during glob expansion).  Even if it were fixed, the result of this
7012     # check would be larger than it should be.
7013     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7014     ;;
7015
7016   gnu*)
7017     # Under GNU Hurd, this test is not required because there is
7018     # no limit to the length of command line arguments.
7019     # Libtool will interpret -1 as no limit whatsoever
7020     lt_cv_sys_max_cmd_len=-1;
7021     ;;
7022
7023   cygwin* | mingw*)
7024     # On Win9x/ME, this test blows up -- it succeeds, but takes
7025     # about 5 minutes as the teststring grows exponentially.
7026     # Worse, since 9x/ME are not pre-emptively multitasking,
7027     # you end up with a "frozen" computer, even though with patience
7028     # the test eventually succeeds (with a max line length of 256k).
7029     # Instead, let's just punt: use the minimum linelength reported by
7030     # all of the supported platforms: 8192 (on NT/2K/XP).
7031     lt_cv_sys_max_cmd_len=8192;
7032     ;;
7033
7034   amigaos*)
7035     # On AmigaOS with pdksh, this test takes hours, literally.
7036     # So we just punt and use a minimum line length of 8192.
7037     lt_cv_sys_max_cmd_len=8192;
7038     ;;
7039
7040   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7041     # This has been around since 386BSD, at least.  Likely further.
7042     if test -x /sbin/sysctl; then
7043       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7044     elif test -x /usr/sbin/sysctl; then
7045       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7046     else
7047       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7048     fi
7049     # And add a safety zone
7050     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7051     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7052     ;;
7053
7054   interix*)
7055     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7056     lt_cv_sys_max_cmd_len=196608
7057     ;;
7058
7059   osf*)
7060     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7061     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7062     # nice to cause kernel panics so lets avoid the loop below.
7063     # First set a reasonable default.
7064     lt_cv_sys_max_cmd_len=16384
7065     #
7066     if test -x /sbin/sysconfig; then
7067       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7068         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7069       esac
7070     fi
7071     ;;
7072   sco3.2v5*)
7073     lt_cv_sys_max_cmd_len=102400
7074     ;;
7075   sysv5* | sco5v6* | sysv4.2uw2*)
7076     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7077     if test -n "$kargmax"; then
7078       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7079     else
7080       lt_cv_sys_max_cmd_len=32768
7081     fi
7082     ;;
7083   *)
7084     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7085     if test -n "$lt_cv_sys_max_cmd_len"; then
7086       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7087       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7088     else
7089       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7090       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7091                = "XX$teststring") >/dev/null 2>&1 &&
7092               new_result=`expr "X$teststring" : ".*" 2>&1` &&
7093               lt_cv_sys_max_cmd_len=$new_result &&
7094               test $i != 17 # 1/2 MB should be enough
7095       do
7096         i=`expr $i + 1`
7097         teststring=$teststring$teststring
7098       done
7099       teststring=
7100       # Add a significant safety factor because C++ compilers can tack on massive
7101       # amounts of additional arguments before passing them to the linker.
7102       # It appears as though 1/2 is a usable value.
7103       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7104     fi
7105     ;;
7106   esac
7107
7108 fi
7109
7110 if test -n $lt_cv_sys_max_cmd_len ; then
7111   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7112 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7113 else
7114   { echo "$as_me:$LINENO: result: none" >&5
7115 echo "${ECHO_T}none" >&6; }
7116 fi
7117
7118
7119
7120
7121
7122 # Check for command to grab the raw symbol name followed by C symbol from nm.
7123 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7124 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7125 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7126   echo $ECHO_N "(cached) $ECHO_C" >&6
7127 else
7128
7129 # These are sane defaults that work on at least a few old systems.
7130 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7131
7132 # Character class describing NM global symbol codes.
7133 symcode='[BCDEGRST]'
7134
7135 # Regexp to match symbols that can be accessed directly from C.
7136 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7137
7138 # Transform an extracted symbol line into a proper C declaration
7139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7140
7141 # Transform an extracted symbol line into symbol name and symbol address
7142 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'"
7143
7144 # Define system-specific variables.
7145 case $host_os in
7146 aix*)
7147   symcode='[BCDT]'
7148   ;;
7149 cygwin* | mingw* | pw32*)
7150   symcode='[ABCDGISTW]'
7151   ;;
7152 hpux*) # Its linker distinguishes data from code symbols
7153   if test "$host_cpu" = ia64; then
7154     symcode='[ABCDEGRST]'
7155   fi
7156   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7157   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'"
7158   ;;
7159 linux* | k*bsd*-gnu)
7160   if test "$host_cpu" = ia64; then
7161     symcode='[ABCDGIRSTW]'
7162     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7163     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'"
7164   fi
7165   ;;
7166 irix* | nonstopux*)
7167   symcode='[BCDEGRST]'
7168   ;;
7169 osf*)
7170   symcode='[BCDEGQRST]'
7171   ;;
7172 solaris*)
7173   symcode='[BDRT]'
7174   ;;
7175 sco3.2v5*)
7176   symcode='[DT]'
7177   ;;
7178 sysv4.2uw2*)
7179   symcode='[DT]'
7180   ;;
7181 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7182   symcode='[ABDT]'
7183   ;;
7184 sysv4)
7185   symcode='[DFNSTU]'
7186   ;;
7187 esac
7188
7189 # Handle CRLF in mingw tool chain
7190 opt_cr=
7191 case $build_os in
7192 mingw*)
7193   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7194   ;;
7195 esac
7196
7197 # If we're using GNU nm, then use its standard symbol codes.
7198 case `$NM -V 2>&1` in
7199 *GNU* | *'with BFD'*)
7200   symcode='[ABCDGIRSTW]' ;;
7201 esac
7202
7203 # Try without a prefix undercore, then with it.
7204 for ac_symprfx in "" "_"; do
7205
7206   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7207   symxfrm="\\1 $ac_symprfx\\2 \\2"
7208
7209   # Write the raw and C identifiers.
7210   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7211
7212   # Check to see that the pipe works correctly.
7213   pipe_works=no
7214
7215   rm -f conftest*
7216   cat > conftest.$ac_ext <<EOF
7217 #ifdef __cplusplus
7218 extern "C" {
7219 #endif
7220 char nm_test_var;
7221 void nm_test_func(){}
7222 #ifdef __cplusplus
7223 }
7224 #endif
7225 int main(){nm_test_var='a';nm_test_func();return(0);}
7226 EOF
7227
7228   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7229   (eval $ac_compile) 2>&5
7230   ac_status=$?
7231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232   (exit $ac_status); }; then
7233     # Now try to grab the symbols.
7234     nlist=conftest.nm
7235     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7236   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7237   ac_status=$?
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } && test -s "$nlist"; then
7240       # Try sorting and uniquifying the output.
7241       if sort "$nlist" | uniq > "$nlist"T; then
7242         mv -f "$nlist"T "$nlist"
7243       else
7244         rm -f "$nlist"T
7245       fi
7246
7247       # Make sure that we snagged all the symbols we need.
7248       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7249         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7250           cat <<EOF > conftest.$ac_ext
7251 #ifdef __cplusplus
7252 extern "C" {
7253 #endif
7254
7255 EOF
7256           # Now generate the symbol file.
7257           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7258
7259           cat <<EOF >> conftest.$ac_ext
7260 #if defined (__STDC__) && __STDC__
7261 # define lt_ptr_t void *
7262 #else
7263 # define lt_ptr_t char *
7264 # define const
7265 #endif
7266
7267 /* The mapping between symbol names and symbols. */
7268 const struct {
7269   const char *name;
7270   lt_ptr_t address;
7271 }
7272 lt_preloaded_symbols[] =
7273 {
7274 EOF
7275           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7276           cat <<\EOF >> conftest.$ac_ext
7277   {0, (lt_ptr_t) 0}
7278 };
7279
7280 #ifdef __cplusplus
7281 }
7282 #endif
7283 EOF
7284           # Now try linking the two files.
7285           mv conftest.$ac_objext conftstm.$ac_objext
7286           lt_save_LIBS="$LIBS"
7287           lt_save_CFLAGS="$CFLAGS"
7288           LIBS="conftstm.$ac_objext"
7289           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7290           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7291   (eval $ac_link) 2>&5
7292   ac_status=$?
7293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7295             pipe_works=yes
7296           fi
7297           LIBS="$lt_save_LIBS"
7298           CFLAGS="$lt_save_CFLAGS"
7299         else
7300           echo "cannot find nm_test_func in $nlist" >&5
7301         fi
7302       else
7303         echo "cannot find nm_test_var in $nlist" >&5
7304       fi
7305     else
7306       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7307     fi
7308   else
7309     echo "$progname: failed program was:" >&5
7310     cat conftest.$ac_ext >&5
7311   fi
7312   rm -f conftest* conftst*
7313
7314   # Do not use the global_symbol_pipe unless it works.
7315   if test "$pipe_works" = yes; then
7316     break
7317   else
7318     lt_cv_sys_global_symbol_pipe=
7319   fi
7320 done
7321
7322 fi
7323
7324 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7325   lt_cv_sys_global_symbol_to_cdecl=
7326 fi
7327 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7328   { echo "$as_me:$LINENO: result: failed" >&5
7329 echo "${ECHO_T}failed" >&6; }
7330 else
7331   { echo "$as_me:$LINENO: result: ok" >&5
7332 echo "${ECHO_T}ok" >&6; }
7333 fi
7334
7335 { echo "$as_me:$LINENO: checking for objdir" >&5
7336 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7337 if test "${lt_cv_objdir+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   rm -f .libs 2>/dev/null
7341 mkdir .libs 2>/dev/null
7342 if test -d .libs; then
7343   lt_cv_objdir=.libs
7344 else
7345   # MS-DOS does not allow filenames that begin with a dot.
7346   lt_cv_objdir=_libs
7347 fi
7348 rmdir .libs 2>/dev/null
7349 fi
7350 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7351 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7352 objdir=$lt_cv_objdir
7353
7354
7355
7356
7357
7358 case $host_os in
7359 aix3*)
7360   # AIX sometimes has problems with the GCC collect2 program.  For some
7361   # reason, if we set the COLLECT_NAMES environment variable, the problems
7362   # vanish in a puff of smoke.
7363   if test "X${COLLECT_NAMES+set}" != Xset; then
7364     COLLECT_NAMES=
7365     export COLLECT_NAMES
7366   fi
7367   ;;
7368 esac
7369
7370 # Sed substitution that helps us do robust quoting.  It backslashifies
7371 # metacharacters that are still active within double-quoted strings.
7372 Xsed='sed -e 1s/^X//'
7373 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7374
7375 # Same as above, but do not quote variable references.
7376 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7377
7378 # Sed substitution to delay expansion of an escaped shell variable in a
7379 # double_quote_subst'ed string.
7380 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7381
7382 # Sed substitution to avoid accidental globbing in evaled expressions
7383 no_glob_subst='s/\*/\\\*/g'
7384
7385 # Constants:
7386 rm="rm -f"
7387
7388 # Global variables:
7389 default_ofile=libtool
7390 can_build_shared=yes
7391
7392 # All known linkers require a `.a' archive for static linking (except MSVC,
7393 # which needs '.lib').
7394 libext=a
7395 ltmain="$ac_aux_dir/ltmain.sh"
7396 ofile="$default_ofile"
7397 with_gnu_ld="$lt_cv_prog_gnu_ld"
7398
7399 if test -n "$ac_tool_prefix"; then
7400   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7401 set dummy ${ac_tool_prefix}ar; ac_word=$2
7402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404 if test "${ac_cv_prog_AR+set}" = set; then
7405   echo $ECHO_N "(cached) $ECHO_C" >&6
7406 else
7407   if test -n "$AR"; then
7408   ac_cv_prog_AR="$AR" # Let the user override the test.
7409 else
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411 for as_dir in $PATH
7412 do
7413   IFS=$as_save_IFS
7414   test -z "$as_dir" && as_dir=.
7415   for ac_exec_ext in '' $ac_executable_extensions; do
7416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417     ac_cv_prog_AR="${ac_tool_prefix}ar"
7418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419     break 2
7420   fi
7421 done
7422 done
7423 IFS=$as_save_IFS
7424
7425 fi
7426 fi
7427 AR=$ac_cv_prog_AR
7428 if test -n "$AR"; then
7429   { echo "$as_me:$LINENO: result: $AR" >&5
7430 echo "${ECHO_T}$AR" >&6; }
7431 else
7432   { echo "$as_me:$LINENO: result: no" >&5
7433 echo "${ECHO_T}no" >&6; }
7434 fi
7435
7436
7437 fi
7438 if test -z "$ac_cv_prog_AR"; then
7439   ac_ct_AR=$AR
7440   # Extract the first word of "ar", so it can be a program name with args.
7441 set dummy ar; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   if test -n "$ac_ct_AR"; then
7448   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7449 else
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453   IFS=$as_save_IFS
7454   test -z "$as_dir" && as_dir=.
7455   for ac_exec_ext in '' $ac_executable_extensions; do
7456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7457     ac_cv_prog_ac_ct_AR="ar"
7458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459     break 2
7460   fi
7461 done
7462 done
7463 IFS=$as_save_IFS
7464
7465 fi
7466 fi
7467 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7468 if test -n "$ac_ct_AR"; then
7469   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7470 echo "${ECHO_T}$ac_ct_AR" >&6; }
7471 else
7472   { echo "$as_me:$LINENO: result: no" >&5
7473 echo "${ECHO_T}no" >&6; }
7474 fi
7475
7476   if test "x$ac_ct_AR" = x; then
7477     AR="false"
7478   else
7479     case $cross_compiling:$ac_tool_warned in
7480 yes:)
7481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7482 whose name does not start with the host triplet.  If you think this
7483 configuration is useful to you, please write to autoconf@gnu.org." >&5
7484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7485 whose name does not start with the host triplet.  If you think this
7486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7487 ac_tool_warned=yes ;;
7488 esac
7489     AR=$ac_ct_AR
7490   fi
7491 else
7492   AR="$ac_cv_prog_AR"
7493 fi
7494
7495 if test -n "$ac_tool_prefix"; then
7496   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7497 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500 if test "${ac_cv_prog_RANLIB+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503   if test -n "$RANLIB"; then
7504   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7505 else
7506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 for as_dir in $PATH
7508 do
7509   IFS=$as_save_IFS
7510   test -z "$as_dir" && as_dir=.
7511   for ac_exec_ext in '' $ac_executable_extensions; do
7512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7515     break 2
7516   fi
7517 done
7518 done
7519 IFS=$as_save_IFS
7520
7521 fi
7522 fi
7523 RANLIB=$ac_cv_prog_RANLIB
7524 if test -n "$RANLIB"; then
7525   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7526 echo "${ECHO_T}$RANLIB" >&6; }
7527 else
7528   { echo "$as_me:$LINENO: result: no" >&5
7529 echo "${ECHO_T}no" >&6; }
7530 fi
7531
7532
7533 fi
7534 if test -z "$ac_cv_prog_RANLIB"; then
7535   ac_ct_RANLIB=$RANLIB
7536   # Extract the first word of "ranlib", so it can be a program name with args.
7537 set dummy ranlib; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   if test -n "$ac_ct_RANLIB"; then
7544   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551   for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_prog_ac_ct_RANLIB="ranlib"
7554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7564 if test -n "$ac_ct_RANLIB"; then
7565   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7566 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7567 else
7568   { echo "$as_me:$LINENO: result: no" >&5
7569 echo "${ECHO_T}no" >&6; }
7570 fi
7571
7572   if test "x$ac_ct_RANLIB" = x; then
7573     RANLIB=":"
7574   else
7575     case $cross_compiling:$ac_tool_warned in
7576 yes:)
7577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7578 whose name does not start with the host triplet.  If you think this
7579 configuration is useful to you, please write to autoconf@gnu.org." >&5
7580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7581 whose name does not start with the host triplet.  If you think this
7582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7583 ac_tool_warned=yes ;;
7584 esac
7585     RANLIB=$ac_ct_RANLIB
7586   fi
7587 else
7588   RANLIB="$ac_cv_prog_RANLIB"
7589 fi
7590
7591 if test -n "$ac_tool_prefix"; then
7592   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7593 set dummy ${ac_tool_prefix}strip; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_prog_STRIP+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   if test -n "$STRIP"; then
7600   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607   for ac_exec_ext in '' $ac_executable_extensions; do
7608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7609     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614 done
7615 IFS=$as_save_IFS
7616
7617 fi
7618 fi
7619 STRIP=$ac_cv_prog_STRIP
7620 if test -n "$STRIP"; then
7621   { echo "$as_me:$LINENO: result: $STRIP" >&5
7622 echo "${ECHO_T}$STRIP" >&6; }
7623 else
7624   { echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6; }
7626 fi
7627
7628
7629 fi
7630 if test -z "$ac_cv_prog_STRIP"; then
7631   ac_ct_STRIP=$STRIP
7632   # Extract the first word of "strip", so it can be a program name with args.
7633 set dummy strip; ac_word=$2
7634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7636 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   if test -n "$ac_ct_STRIP"; then
7640   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647   for ac_exec_ext in '' $ac_executable_extensions; do
7648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7649     ac_cv_prog_ac_ct_STRIP="strip"
7650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654 done
7655 IFS=$as_save_IFS
7656
7657 fi
7658 fi
7659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7660 if test -n "$ac_ct_STRIP"; then
7661   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7662 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7663 else
7664   { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7666 fi
7667
7668   if test "x$ac_ct_STRIP" = x; then
7669     STRIP=":"
7670   else
7671     case $cross_compiling:$ac_tool_warned in
7672 yes:)
7673 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7674 whose name does not start with the host triplet.  If you think this
7675 configuration is useful to you, please write to autoconf@gnu.org." >&5
7676 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7677 whose name does not start with the host triplet.  If you think this
7678 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681     STRIP=$ac_ct_STRIP
7682   fi
7683 else
7684   STRIP="$ac_cv_prog_STRIP"
7685 fi
7686
7687
7688 old_CC="$CC"
7689 old_CFLAGS="$CFLAGS"
7690
7691 # Set sane defaults for various variables
7692 test -z "$AR" && AR=ar
7693 test -z "$AR_FLAGS" && AR_FLAGS=cru
7694 test -z "$AS" && AS=as
7695 test -z "$CC" && CC=cc
7696 test -z "$LTCC" && LTCC=$CC
7697 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7698 test -z "$DLLTOOL" && DLLTOOL=dlltool
7699 test -z "$LD" && LD=ld
7700 test -z "$LN_S" && LN_S="ln -s"
7701 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7702 test -z "$NM" && NM=nm
7703 test -z "$SED" && SED=sed
7704 test -z "$OBJDUMP" && OBJDUMP=objdump
7705 test -z "$RANLIB" && RANLIB=:
7706 test -z "$STRIP" && STRIP=:
7707 test -z "$ac_objext" && ac_objext=o
7708
7709 # Determine commands to create old-style static archives.
7710 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7711 old_postinstall_cmds='chmod 644 $oldlib'
7712 old_postuninstall_cmds=
7713
7714 if test -n "$RANLIB"; then
7715   case $host_os in
7716   openbsd*)
7717     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7718     ;;
7719   *)
7720     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7721     ;;
7722   esac
7723   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7724 fi
7725
7726 for cc_temp in $compiler""; do
7727   case $cc_temp in
7728     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7729     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7730     \-*) ;;
7731     *) break;;
7732   esac
7733 done
7734 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7735
7736
7737 # Only perform the check for file, if the check method requires it
7738 case $deplibs_check_method in
7739 file_magic*)
7740   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7741     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7742 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7743 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746   case $MAGIC_CMD in
7747 [\\/*] |  ?:[\\/]*)
7748   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7749   ;;
7750 *)
7751   lt_save_MAGIC_CMD="$MAGIC_CMD"
7752   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7753   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7754   for ac_dir in $ac_dummy; do
7755     IFS="$lt_save_ifs"
7756     test -z "$ac_dir" && ac_dir=.
7757     if test -f $ac_dir/${ac_tool_prefix}file; then
7758       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7759       if test -n "$file_magic_test_file"; then
7760         case $deplibs_check_method in
7761         "file_magic "*)
7762           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7763           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7765             $EGREP "$file_magic_regex" > /dev/null; then
7766             :
7767           else
7768             cat <<EOF 1>&2
7769
7770 *** Warning: the command libtool uses to detect shared libraries,
7771 *** $file_magic_cmd, produces output that libtool cannot recognize.
7772 *** The result is that libtool may fail to recognize shared libraries
7773 *** as such.  This will affect the creation of libtool libraries that
7774 *** depend on shared libraries, but programs linked with such libtool
7775 *** libraries will work regardless of this problem.  Nevertheless, you
7776 *** may want to report the problem to your system manager and/or to
7777 *** bug-libtool@gnu.org
7778
7779 EOF
7780           fi ;;
7781         esac
7782       fi
7783       break
7784     fi
7785   done
7786   IFS="$lt_save_ifs"
7787   MAGIC_CMD="$lt_save_MAGIC_CMD"
7788   ;;
7789 esac
7790 fi
7791
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if test -n "$MAGIC_CMD"; then
7794   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7795 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7796 else
7797   { echo "$as_me:$LINENO: result: no" >&5
7798 echo "${ECHO_T}no" >&6; }
7799 fi
7800
7801 if test -z "$lt_cv_path_MAGIC_CMD"; then
7802   if test -n "$ac_tool_prefix"; then
7803     { echo "$as_me:$LINENO: checking for file" >&5
7804 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7805 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   case $MAGIC_CMD in
7809 [\\/*] |  ?:[\\/]*)
7810   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7811   ;;
7812 *)
7813   lt_save_MAGIC_CMD="$MAGIC_CMD"
7814   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7815   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7816   for ac_dir in $ac_dummy; do
7817     IFS="$lt_save_ifs"
7818     test -z "$ac_dir" && ac_dir=.
7819     if test -f $ac_dir/file; then
7820       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7821       if test -n "$file_magic_test_file"; then
7822         case $deplibs_check_method in
7823         "file_magic "*)
7824           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7825           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7827             $EGREP "$file_magic_regex" > /dev/null; then
7828             :
7829           else
7830             cat <<EOF 1>&2
7831
7832 *** Warning: the command libtool uses to detect shared libraries,
7833 *** $file_magic_cmd, produces output that libtool cannot recognize.
7834 *** The result is that libtool may fail to recognize shared libraries
7835 *** as such.  This will affect the creation of libtool libraries that
7836 *** depend on shared libraries, but programs linked with such libtool
7837 *** libraries will work regardless of this problem.  Nevertheless, you
7838 *** may want to report the problem to your system manager and/or to
7839 *** bug-libtool@gnu.org
7840
7841 EOF
7842           fi ;;
7843         esac
7844       fi
7845       break
7846     fi
7847   done
7848   IFS="$lt_save_ifs"
7849   MAGIC_CMD="$lt_save_MAGIC_CMD"
7850   ;;
7851 esac
7852 fi
7853
7854 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855 if test -n "$MAGIC_CMD"; then
7856   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7857 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7858 else
7859   { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7861 fi
7862
7863   else
7864     MAGIC_CMD=:
7865   fi
7866 fi
7867
7868   fi
7869   ;;
7870 esac
7871
7872 enable_dlopen=no
7873 enable_win32_dll=no
7874
7875 # Check whether --enable-libtool-lock was given.
7876 if test "${enable_libtool_lock+set}" = set; then
7877   enableval=$enable_libtool_lock;
7878 fi
7879
7880 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7881
7882
7883 # Check whether --with-pic was given.
7884 if test "${with_pic+set}" = set; then
7885   withval=$with_pic; pic_mode="$withval"
7886 else
7887   pic_mode=default
7888 fi
7889
7890 test -z "$pic_mode" && pic_mode=default
7891
7892 # Use C for the default configuration in the libtool script
7893 tagname=
7894 lt_save_CC="$CC"
7895 ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901
7902 # Source file extension for C test sources.
7903 ac_ext=c
7904
7905 # Object file extension for compiled C test sources.
7906 objext=o
7907 objext=$objext
7908
7909 # Code to be used in simple compile tests
7910 lt_simple_compile_test_code="int some_variable = 0;"
7911
7912 # Code to be used in simple link tests
7913 lt_simple_link_test_code='int main(){return(0);}'
7914
7915
7916 # If no C compiler was specified, use CC.
7917 LTCC=${LTCC-"$CC"}
7918
7919 # If no C compiler flags were specified, use CFLAGS.
7920 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7921
7922 # Allow CC to be a program name with arguments.
7923 compiler=$CC
7924
7925
7926 # save warnings/boilerplate of simple test code
7927 ac_outfile=conftest.$ac_objext
7928 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7929 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7930 _lt_compiler_boilerplate=`cat conftest.err`
7931 $rm conftest*
7932
7933 ac_outfile=conftest.$ac_objext
7934 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7935 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7936 _lt_linker_boilerplate=`cat conftest.err`
7937 $rm conftest*
7938
7939
7940
7941 lt_prog_compiler_no_builtin_flag=
7942
7943 if test "$GCC" = yes; then
7944   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7945
7946
7947 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7948 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7949 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7950   echo $ECHO_N "(cached) $ECHO_C" >&6
7951 else
7952   lt_cv_prog_compiler_rtti_exceptions=no
7953   ac_outfile=conftest.$ac_objext
7954    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7955    lt_compiler_flag="-fno-rtti -fno-exceptions"
7956    # Insert the option either (1) after the last *FLAGS variable, or
7957    # (2) before a word containing "conftest.", or (3) at the end.
7958    # Note that $ac_compile itself does not contain backslashes and begins
7959    # with a dollar sign (not a hyphen), so the echo should work correctly.
7960    # The option is referenced via a variable to avoid confusing sed.
7961    lt_compile=`echo "$ac_compile" | $SED \
7962    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7963    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7964    -e 's:$: $lt_compiler_flag:'`
7965    (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
7966    (eval "$lt_compile" 2>conftest.err)
7967    ac_status=$?
7968    cat conftest.err >&5
7969    echo "$as_me:7969: \$? = $ac_status" >&5
7970    if (exit $ac_status) && test -s "$ac_outfile"; then
7971      # The compiler can only warn and ignore the option if not recognized
7972      # So say no if there are warnings other than the usual output.
7973      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7974      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7975      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7976        lt_cv_prog_compiler_rtti_exceptions=yes
7977      fi
7978    fi
7979    $rm conftest*
7980
7981 fi
7982 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7983 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7984
7985 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7986     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7987 else
7988     :
7989 fi
7990
7991 fi
7992
7993 lt_prog_compiler_wl=
7994 lt_prog_compiler_pic=
7995 lt_prog_compiler_static=
7996
7997 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7998 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7999
8000   if test "$GCC" = yes; then
8001     lt_prog_compiler_wl='-Wl,'
8002     lt_prog_compiler_static='-static'
8003
8004     case $host_os in
8005       aix*)
8006       # All AIX code is PIC.
8007       if test "$host_cpu" = ia64; then
8008         # AIX 5 now supports IA64 processor
8009         lt_prog_compiler_static='-Bstatic'
8010       fi
8011       ;;
8012
8013     amigaos*)
8014       # FIXME: we need at least 68020 code to build shared libraries, but
8015       # adding the `-m68020' flag to GCC prevents building anything better,
8016       # like `-m68040'.
8017       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8018       ;;
8019
8020     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8021       # PIC is the default for these OSes.
8022       ;;
8023
8024     mingw* | cygwin* | pw32* | os2*)
8025       # This hack is so that the source file can tell whether it is being
8026       # built for inclusion in a dll (and should export symbols for example).
8027       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8028       # (--disable-auto-import) libraries
8029       lt_prog_compiler_pic='-DDLL_EXPORT'
8030       ;;
8031
8032     darwin* | rhapsody*)
8033       # PIC is the default on this platform
8034       # Common symbols not allowed in MH_DYLIB files
8035       lt_prog_compiler_pic='-fno-common'
8036       ;;
8037
8038     interix[3-9]*)
8039       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8040       # Instead, we relocate shared libraries at runtime.
8041       ;;
8042
8043     msdosdjgpp*)
8044       # Just because we use GCC doesn't mean we suddenly get shared libraries
8045       # on systems that don't support them.
8046       lt_prog_compiler_can_build_shared=no
8047       enable_shared=no
8048       ;;
8049
8050     sysv4*MP*)
8051       if test -d /usr/nec; then
8052         lt_prog_compiler_pic=-Kconform_pic
8053       fi
8054       ;;
8055
8056     hpux*)
8057       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8058       # not for PA HP-UX.
8059       case $host_cpu in
8060       hppa*64*|ia64*)
8061         # +Z the default
8062         ;;
8063       *)
8064         lt_prog_compiler_pic='-fPIC'
8065         ;;
8066       esac
8067       ;;
8068
8069     *)
8070       lt_prog_compiler_pic='-fPIC'
8071       ;;
8072     esac
8073   else
8074     # PORTME Check for flag to pass linker flags through the system compiler.
8075     case $host_os in
8076     aix*)
8077       lt_prog_compiler_wl='-Wl,'
8078       if test "$host_cpu" = ia64; then
8079         # AIX 5 now supports IA64 processor
8080         lt_prog_compiler_static='-Bstatic'
8081       else
8082         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8083       fi
8084       ;;
8085       darwin*)
8086         # PIC is the default on this platform
8087         # Common symbols not allowed in MH_DYLIB files
8088        case $cc_basename in
8089          xlc*)
8090          lt_prog_compiler_pic='-qnocommon'
8091          lt_prog_compiler_wl='-Wl,'
8092          ;;
8093        esac
8094        ;;
8095
8096     mingw* | cygwin* | pw32* | os2*)
8097       # This hack is so that the source file can tell whether it is being
8098       # built for inclusion in a dll (and should export symbols for example).
8099       lt_prog_compiler_pic='-DDLL_EXPORT'
8100       ;;
8101
8102     hpux9* | hpux10* | hpux11*)
8103       lt_prog_compiler_wl='-Wl,'
8104       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8105       # not for PA HP-UX.
8106       case $host_cpu in
8107       hppa*64*|ia64*)
8108         # +Z the default
8109         ;;
8110       *)
8111         lt_prog_compiler_pic='+Z'
8112         ;;
8113       esac
8114       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8115       lt_prog_compiler_static='${wl}-a ${wl}archive'
8116       ;;
8117
8118     irix5* | irix6* | nonstopux*)
8119       lt_prog_compiler_wl='-Wl,'
8120       # PIC (with -KPIC) is the default.
8121       lt_prog_compiler_static='-non_shared'
8122       ;;
8123
8124     newsos6)
8125       lt_prog_compiler_pic='-KPIC'
8126       lt_prog_compiler_static='-Bstatic'
8127       ;;
8128
8129     linux* | k*bsd*-gnu)
8130       case $cc_basename in
8131       icc* | ecc*)
8132         lt_prog_compiler_wl='-Wl,'
8133         lt_prog_compiler_pic='-KPIC'
8134         lt_prog_compiler_static='-static'
8135         ;;
8136       pgcc* | pgf77* | pgf90* | pgf95*)
8137         # Portland Group compilers (*not* the Pentium gcc compiler,
8138         # which looks to be a dead project)
8139         lt_prog_compiler_wl='-Wl,'
8140         lt_prog_compiler_pic='-fpic'
8141         lt_prog_compiler_static='-Bstatic'
8142         ;;
8143       ccc*)
8144         lt_prog_compiler_wl='-Wl,'
8145         # All Alpha code is PIC.
8146         lt_prog_compiler_static='-non_shared'
8147         ;;
8148       *)
8149         case `$CC -V 2>&1 | sed 5q` in
8150         *Sun\ C*)
8151           # Sun C 5.9
8152           lt_prog_compiler_pic='-KPIC'
8153           lt_prog_compiler_static='-Bstatic'
8154           lt_prog_compiler_wl='-Wl,'
8155           ;;
8156         *Sun\ F*)
8157           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8158           lt_prog_compiler_pic='-KPIC'
8159           lt_prog_compiler_static='-Bstatic'
8160           lt_prog_compiler_wl=''
8161           ;;
8162         esac
8163         ;;
8164       esac
8165       ;;
8166
8167     osf3* | osf4* | osf5*)
8168       lt_prog_compiler_wl='-Wl,'
8169       # All OSF/1 code is PIC.
8170       lt_prog_compiler_static='-non_shared'
8171       ;;
8172
8173     rdos*)
8174       lt_prog_compiler_static='-non_shared'
8175       ;;
8176
8177     solaris*)
8178       lt_prog_compiler_pic='-KPIC'
8179       lt_prog_compiler_static='-Bstatic'
8180       case $cc_basename in
8181       f77* | f90* | f95*)
8182         lt_prog_compiler_wl='-Qoption ld ';;
8183       *)
8184         lt_prog_compiler_wl='-Wl,';;
8185       esac
8186       ;;
8187
8188     sunos4*)
8189       lt_prog_compiler_wl='-Qoption ld '
8190       lt_prog_compiler_pic='-PIC'
8191       lt_prog_compiler_static='-Bstatic'
8192       ;;
8193
8194     sysv4 | sysv4.2uw2* | sysv4.3*)
8195       lt_prog_compiler_wl='-Wl,'
8196       lt_prog_compiler_pic='-KPIC'
8197       lt_prog_compiler_static='-Bstatic'
8198       ;;
8199
8200     sysv4*MP*)
8201       if test -d /usr/nec ;then
8202         lt_prog_compiler_pic='-Kconform_pic'
8203         lt_prog_compiler_static='-Bstatic'
8204       fi
8205       ;;
8206
8207     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8208       lt_prog_compiler_wl='-Wl,'
8209       lt_prog_compiler_pic='-KPIC'
8210       lt_prog_compiler_static='-Bstatic'
8211       ;;
8212
8213     unicos*)
8214       lt_prog_compiler_wl='-Wl,'
8215       lt_prog_compiler_can_build_shared=no
8216       ;;
8217
8218     uts4*)
8219       lt_prog_compiler_pic='-pic'
8220       lt_prog_compiler_static='-Bstatic'
8221       ;;
8222
8223     *)
8224       lt_prog_compiler_can_build_shared=no
8225       ;;
8226     esac
8227   fi
8228
8229 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8230 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8231
8232 #
8233 # Check to make sure the PIC flag actually works.
8234 #
8235 if test -n "$lt_prog_compiler_pic"; then
8236
8237 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8238 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8239 if test "${lt_prog_compiler_pic_works+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   lt_prog_compiler_pic_works=no
8243   ac_outfile=conftest.$ac_objext
8244    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8245    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8246    # Insert the option either (1) after the last *FLAGS variable, or
8247    # (2) before a word containing "conftest.", or (3) at the end.
8248    # Note that $ac_compile itself does not contain backslashes and begins
8249    # with a dollar sign (not a hyphen), so the echo should work correctly.
8250    # The option is referenced via a variable to avoid confusing sed.
8251    lt_compile=`echo "$ac_compile" | $SED \
8252    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8253    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8254    -e 's:$: $lt_compiler_flag:'`
8255    (eval echo "\"\$as_me:8255: $lt_compile\"" >&5)
8256    (eval "$lt_compile" 2>conftest.err)
8257    ac_status=$?
8258    cat conftest.err >&5
8259    echo "$as_me:8259: \$? = $ac_status" >&5
8260    if (exit $ac_status) && test -s "$ac_outfile"; then
8261      # The compiler can only warn and ignore the option if not recognized
8262      # So say no if there are warnings other than the usual output.
8263      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8264      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8265      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8266        lt_prog_compiler_pic_works=yes
8267      fi
8268    fi
8269    $rm conftest*
8270
8271 fi
8272 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8273 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8274
8275 if test x"$lt_prog_compiler_pic_works" = xyes; then
8276     case $lt_prog_compiler_pic in
8277      "" | " "*) ;;
8278      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8279      esac
8280 else
8281     lt_prog_compiler_pic=
8282      lt_prog_compiler_can_build_shared=no
8283 fi
8284
8285 fi
8286 case $host_os in
8287   # For platforms which do not support PIC, -DPIC is meaningless:
8288   *djgpp*)
8289     lt_prog_compiler_pic=
8290     ;;
8291   *)
8292     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8293     ;;
8294 esac
8295
8296 #
8297 # Check to make sure the static flag actually works.
8298 #
8299 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8300 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8301 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8302 if test "${lt_prog_compiler_static_works+set}" = set; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   lt_prog_compiler_static_works=no
8306    save_LDFLAGS="$LDFLAGS"
8307    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8308    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8309    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8310      # The linker can only warn and ignore the option if not recognized
8311      # So say no if there are warnings
8312      if test -s conftest.err; then
8313        # Append any errors to the config.log.
8314        cat conftest.err 1>&5
8315        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8316        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8317        if diff conftest.exp conftest.er2 >/dev/null; then
8318          lt_prog_compiler_static_works=yes
8319        fi
8320      else
8321        lt_prog_compiler_static_works=yes
8322      fi
8323    fi
8324    $rm conftest*
8325    LDFLAGS="$save_LDFLAGS"
8326
8327 fi
8328 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8329 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8330
8331 if test x"$lt_prog_compiler_static_works" = xyes; then
8332     :
8333 else
8334     lt_prog_compiler_static=
8335 fi
8336
8337
8338 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8339 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8340 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8341   echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343   lt_cv_prog_compiler_c_o=no
8344    $rm -r conftest 2>/dev/null
8345    mkdir conftest
8346    cd conftest
8347    mkdir out
8348    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349
8350    lt_compiler_flag="-o out/conftest2.$ac_objext"
8351    # Insert the option either (1) after the last *FLAGS variable, or
8352    # (2) before a word containing "conftest.", or (3) at the end.
8353    # Note that $ac_compile itself does not contain backslashes and begins
8354    # with a dollar sign (not a hyphen), so the echo should work correctly.
8355    lt_compile=`echo "$ac_compile" | $SED \
8356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358    -e 's:$: $lt_compiler_flag:'`
8359    (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
8360    (eval "$lt_compile" 2>out/conftest.err)
8361    ac_status=$?
8362    cat out/conftest.err >&5
8363    echo "$as_me:8363: \$? = $ac_status" >&5
8364    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8365    then
8366      # The compiler can only warn and ignore the option if not recognized
8367      # So say no if there are warnings
8368      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8369      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8370      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8371        lt_cv_prog_compiler_c_o=yes
8372      fi
8373    fi
8374    chmod u+w . 2>&5
8375    $rm conftest*
8376    # SGI C++ compiler will create directory out/ii_files/ for
8377    # template instantiation
8378    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8379    $rm out/* && rmdir out
8380    cd ..
8381    rmdir conftest
8382    $rm conftest*
8383
8384 fi
8385 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8386 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8387
8388
8389 hard_links="nottested"
8390 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8391   # do not overwrite the value of need_locks provided by the user
8392   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8393 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8394   hard_links=yes
8395   $rm conftest*
8396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8397   touch conftest.a
8398   ln conftest.a conftest.b 2>&5 || hard_links=no
8399   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8400   { echo "$as_me:$LINENO: result: $hard_links" >&5
8401 echo "${ECHO_T}$hard_links" >&6; }
8402   if test "$hard_links" = no; then
8403     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8404 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8405     need_locks=warn
8406   fi
8407 else
8408   need_locks=no
8409 fi
8410
8411 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8412 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8413
8414   runpath_var=
8415   allow_undefined_flag=
8416   enable_shared_with_static_runtimes=no
8417   archive_cmds=
8418   archive_expsym_cmds=
8419   old_archive_From_new_cmds=
8420   old_archive_from_expsyms_cmds=
8421   export_dynamic_flag_spec=
8422   whole_archive_flag_spec=
8423   thread_safe_flag_spec=
8424   hardcode_libdir_flag_spec=
8425   hardcode_libdir_flag_spec_ld=
8426   hardcode_libdir_separator=
8427   hardcode_direct=no
8428   hardcode_minus_L=no
8429   hardcode_shlibpath_var=unsupported
8430   link_all_deplibs=unknown
8431   hardcode_automatic=no
8432   module_cmds=
8433   module_expsym_cmds=
8434   always_export_symbols=no
8435   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8436   # include_expsyms should be a list of space-separated symbols to be *always*
8437   # included in the symbol list
8438   include_expsyms=
8439   # exclude_expsyms can be an extended regexp of symbols to exclude
8440   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8441   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8442   # as well as any symbol that contains `d'.
8443   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8444   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8445   # platforms (ab)use it in PIC code, but their linkers get confused if
8446   # the symbol is explicitly referenced.  Since portable code cannot
8447   # rely on this symbol name, it's probably fine to never include it in
8448   # preloaded symbol tables.
8449   extract_expsyms_cmds=
8450   # Just being paranoid about ensuring that cc_basename is set.
8451   for cc_temp in $compiler""; do
8452   case $cc_temp in
8453     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8454     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8455     \-*) ;;
8456     *) break;;
8457   esac
8458 done
8459 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8460
8461   case $host_os in
8462   cygwin* | mingw* | pw32*)
8463     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8464     # When not using gcc, we currently assume that we are using
8465     # Microsoft Visual C++.
8466     if test "$GCC" != yes; then
8467       with_gnu_ld=no
8468     fi
8469     ;;
8470   interix*)
8471     # we just hope/assume this is gcc and not c89 (= MSVC++)
8472     with_gnu_ld=yes
8473     ;;
8474   openbsd*)
8475     with_gnu_ld=no
8476     ;;
8477   esac
8478
8479   ld_shlibs=yes
8480   if test "$with_gnu_ld" = yes; then
8481     # If archive_cmds runs LD, not CC, wlarc should be empty
8482     wlarc='${wl}'
8483
8484     # Set some defaults for GNU ld with shared library support. These
8485     # are reset later if shared libraries are not supported. Putting them
8486     # here allows them to be overridden if necessary.
8487     runpath_var=LD_RUN_PATH
8488     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8489     export_dynamic_flag_spec='${wl}--export-dynamic'
8490     # ancient GNU ld didn't support --whole-archive et. al.
8491     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8492         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8493       else
8494         whole_archive_flag_spec=
8495     fi
8496     supports_anon_versioning=no
8497     case `$LD -v 2>/dev/null` in
8498       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8499       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8500       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8501       *\ 2.11.*) ;; # other 2.11 versions
8502       *) supports_anon_versioning=yes ;;
8503     esac
8504
8505     # See if GNU ld supports shared libraries.
8506     case $host_os in
8507     aix3* | aix4* | aix5*)
8508       # On AIX/PPC, the GNU linker is very broken
8509       if test "$host_cpu" != ia64; then
8510         ld_shlibs=no
8511         cat <<EOF 1>&2
8512
8513 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8514 *** to be unable to reliably create shared libraries on AIX.
8515 *** Therefore, libtool is disabling shared libraries support.  If you
8516 *** really care for shared libraries, you may want to modify your PATH
8517 *** so that a non-GNU linker is found, and then restart.
8518
8519 EOF
8520       fi
8521       ;;
8522
8523     amigaos*)
8524       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)'
8525       hardcode_libdir_flag_spec='-L$libdir'
8526       hardcode_minus_L=yes
8527
8528       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8529       # that the semantics of dynamic libraries on AmigaOS, at least up
8530       # to version 4, is to share data among multiple programs linked
8531       # with the same dynamic library.  Since this doesn't match the
8532       # behavior of shared libraries on other platforms, we can't use
8533       # them.
8534       ld_shlibs=no
8535       ;;
8536
8537     beos*)
8538       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8539         allow_undefined_flag=unsupported
8540         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8541         # support --undefined.  This deserves some investigation.  FIXME
8542         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543       else
8544         ld_shlibs=no
8545       fi
8546       ;;
8547
8548     cygwin* | mingw* | pw32*)
8549       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8550       # as there is no search path for DLLs.
8551       hardcode_libdir_flag_spec='-L$libdir'
8552       allow_undefined_flag=unsupported
8553       always_export_symbols=no
8554       enable_shared_with_static_runtimes=yes
8555       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8556
8557       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8558         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8559         # If the export-symbols file already is a .def file (1st line
8560         # is EXPORTS), use it as is; otherwise, prepend...
8561         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8562           cp $export_symbols $output_objdir/$soname.def;
8563         else
8564           echo EXPORTS > $output_objdir/$soname.def;
8565           cat $export_symbols >> $output_objdir/$soname.def;
8566         fi~
8567         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8568       else
8569         ld_shlibs=no
8570       fi
8571       ;;
8572
8573     interix[3-9]*)
8574       hardcode_direct=no
8575       hardcode_shlibpath_var=no
8576       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8577       export_dynamic_flag_spec='${wl}-E'
8578       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8579       # Instead, shared libraries are loaded at an image base (0x10000000 by
8580       # default) and relocated if they conflict, which is a slow very memory
8581       # consuming and fragmenting process.  To avoid this, we pick a random,
8582       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8583       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8584       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8585       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'
8586       ;;
8587
8588     gnu* | linux* | k*bsd*-gnu)
8589       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8590         tmp_addflag=
8591         case $cc_basename,$host_cpu in
8592         pgcc*)                          # Portland Group C compiler
8593           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'
8594           tmp_addflag=' $pic_flag'
8595           ;;
8596         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8597           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'
8598           tmp_addflag=' $pic_flag -Mnomain' ;;
8599         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8600           tmp_addflag=' -i_dynamic' ;;
8601         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8602           tmp_addflag=' -i_dynamic -nofor_main' ;;
8603         ifc* | ifort*)                  # Intel Fortran compiler
8604           tmp_addflag=' -nofor_main' ;;
8605         esac
8606         case `$CC -V 2>&1 | sed 5q` in
8607         *Sun\ C*)                       # Sun C 5.9
8608           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8609           tmp_sharedflag='-G' ;;
8610         *Sun\ F*)                       # Sun Fortran 8.3
8611           tmp_sharedflag='-G' ;;
8612         *)
8613           tmp_sharedflag='-shared' ;;
8614         esac
8615         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616
8617         if test $supports_anon_versioning = yes; then
8618           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8619   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8620   $echo "local: *; };" >> $output_objdir/$libname.ver~
8621           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8622         fi
8623         link_all_deplibs=no
8624       else
8625         ld_shlibs=no
8626       fi
8627       ;;
8628
8629     netbsd* | netbsdelf*-gnu)
8630       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8631         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8632         wlarc=
8633       else
8634         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8635         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8636       fi
8637       ;;
8638
8639     solaris*)
8640       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8641         ld_shlibs=no
8642         cat <<EOF 1>&2
8643
8644 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8645 *** create shared libraries on Solaris systems.  Therefore, libtool
8646 *** is disabling shared libraries support.  We urge you to upgrade GNU
8647 *** binutils to release 2.9.1 or newer.  Another option is to modify
8648 *** your PATH or compiler configuration so that the native linker is
8649 *** used, and then restart.
8650
8651 EOF
8652       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8653         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8654         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8655       else
8656         ld_shlibs=no
8657       fi
8658       ;;
8659
8660     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8661       case `$LD -v 2>&1` in
8662         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8663         ld_shlibs=no
8664         cat <<_LT_EOF 1>&2
8665
8666 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8667 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8668 *** is disabling shared libraries support.  We urge you to upgrade GNU
8669 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8670 *** your PATH or compiler configuration so that the native linker is
8671 *** used, and then restart.
8672
8673 _LT_EOF
8674         ;;
8675         *)
8676           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8677             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8678             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8679             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8680           else
8681             ld_shlibs=no
8682           fi
8683         ;;
8684       esac
8685       ;;
8686
8687     sunos4*)
8688       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8689       wlarc=
8690       hardcode_direct=yes
8691       hardcode_shlibpath_var=no
8692       ;;
8693
8694     *)
8695       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8696         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8697         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8698       else
8699         ld_shlibs=no
8700       fi
8701       ;;
8702     esac
8703
8704     if test "$ld_shlibs" = no; then
8705       runpath_var=
8706       hardcode_libdir_flag_spec=
8707       export_dynamic_flag_spec=
8708       whole_archive_flag_spec=
8709     fi
8710   else
8711     # PORTME fill in a description of your system's linker (not GNU ld)
8712     case $host_os in
8713     aix3*)
8714       allow_undefined_flag=unsupported
8715       always_export_symbols=yes
8716       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'
8717       # Note: this linker hardcodes the directories in LIBPATH if there
8718       # are no directories specified by -L.
8719       hardcode_minus_L=yes
8720       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8721         # Neither direct hardcoding nor static linking is supported with a
8722         # broken collect2.
8723         hardcode_direct=unsupported
8724       fi
8725       ;;
8726
8727     aix4* | aix5*)
8728       if test "$host_cpu" = ia64; then
8729         # On IA64, the linker does run time linking by default, so we don't
8730         # have to do anything special.
8731         aix_use_runtimelinking=no
8732         exp_sym_flag='-Bexport'
8733         no_entry_flag=""
8734       else
8735         # If we're using GNU nm, then we don't want the "-C" option.
8736         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8737         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8738           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'
8739         else
8740           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'
8741         fi
8742         aix_use_runtimelinking=no
8743
8744         # Test if we are trying to use run time linking or normal
8745         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8746         # need to do runtime linking.
8747         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8748           for ld_flag in $LDFLAGS; do
8749           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8750             aix_use_runtimelinking=yes
8751             break
8752           fi
8753           done
8754           ;;
8755         esac
8756
8757         exp_sym_flag='-bexport'
8758         no_entry_flag='-bnoentry'
8759       fi
8760
8761       # When large executables or shared objects are built, AIX ld can
8762       # have problems creating the table of contents.  If linking a library
8763       # or program results in "error TOC overflow" add -mminimal-toc to
8764       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8765       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8766
8767       archive_cmds=''
8768       hardcode_direct=yes
8769       hardcode_libdir_separator=':'
8770       link_all_deplibs=yes
8771
8772       if test "$GCC" = yes; then
8773         case $host_os in aix4.[012]|aix4.[012].*)
8774         # We only want to do this on AIX 4.2 and lower, the check
8775         # below for broken collect2 doesn't work under 4.3+
8776           collect2name=`${CC} -print-prog-name=collect2`
8777           if test -f "$collect2name" && \
8778            strings "$collect2name" | grep resolve_lib_name >/dev/null
8779           then
8780           # We have reworked collect2
8781           :
8782           else
8783           # We have old collect2
8784           hardcode_direct=unsupported
8785           # It fails to find uninstalled libraries when the uninstalled
8786           # path is not listed in the libpath.  Setting hardcode_minus_L
8787           # to unsupported forces relinking
8788           hardcode_minus_L=yes
8789           hardcode_libdir_flag_spec='-L$libdir'
8790           hardcode_libdir_separator=
8791           fi
8792           ;;
8793         esac
8794         shared_flag='-shared'
8795         if test "$aix_use_runtimelinking" = yes; then
8796           shared_flag="$shared_flag "'${wl}-G'
8797         fi
8798       else
8799         # not using gcc
8800         if test "$host_cpu" = ia64; then
8801         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8802         # chokes on -Wl,-G. The following line is correct:
8803           shared_flag='-G'
8804         else
8805           if test "$aix_use_runtimelinking" = yes; then
8806             shared_flag='${wl}-G'
8807           else
8808             shared_flag='${wl}-bM:SRE'
8809           fi
8810         fi
8811       fi
8812
8813       # It seems that -bexpall does not export symbols beginning with
8814       # underscore (_), so it is better to generate a list of symbols to export.
8815       always_export_symbols=yes
8816       if test "$aix_use_runtimelinking" = yes; then
8817         # Warning - without using the other runtime loading flags (-brtl),
8818         # -berok will link without error, but may produce a broken library.
8819         allow_undefined_flag='-berok'
8820        # Determine the default libpath from the value encoded in an empty executable.
8821        cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h.  */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h.  */
8827
8828 int
8829 main ()
8830 {
8831
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (ac_try="$ac_link"
8838 case "(($ac_try" in
8839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840   *) ac_try_echo=$ac_try;;
8841 esac
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843   (eval "$ac_link") 2>conftest.er1
8844   ac_status=$?
8845   grep -v '^ *+' conftest.er1 >conftest.err
8846   rm -f conftest.er1
8847   cat conftest.err >&5
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } && {
8850          test -z "$ac_c_werror_flag" ||
8851          test ! -s conftest.err
8852        } && test -s conftest$ac_exeext &&
8853        $as_test_x conftest$ac_exeext; then
8854
8855 lt_aix_libpath_sed='
8856     /Import File Strings/,/^$/ {
8857         /^0/ {
8858             s/^0  *\(.*\)$/\1/
8859             p
8860         }
8861     }'
8862 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8863 # Check for a 64-bit object if we didn't find anything.
8864 if test -z "$aix_libpath"; then
8865   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8866 fi
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871
8872 fi
8873
8874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8875       conftest$ac_exeext conftest.$ac_ext
8876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8877
8878        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8879         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"
8880        else
8881         if test "$host_cpu" = ia64; then
8882           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8883           allow_undefined_flag="-z nodefs"
8884           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"
8885         else
8886          # Determine the default libpath from the value encoded in an empty executable.
8887          cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h.  */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h.  */
8893
8894 int
8895 main ()
8896 {
8897
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8904 case "(($ac_try" in
8905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906   *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909   (eval "$ac_link") 2>conftest.er1
8910   ac_status=$?
8911   grep -v '^ *+' conftest.er1 >conftest.err
8912   rm -f conftest.er1
8913   cat conftest.err >&5
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); } && {
8916          test -z "$ac_c_werror_flag" ||
8917          test ! -s conftest.err
8918        } && test -s conftest$ac_exeext &&
8919        $as_test_x conftest$ac_exeext; then
8920
8921 lt_aix_libpath_sed='
8922     /Import File Strings/,/^$/ {
8923         /^0/ {
8924             s/^0  *\(.*\)$/\1/
8925             p
8926         }
8927     }'
8928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929 # Check for a 64-bit object if we didn't find anything.
8930 if test -z "$aix_libpath"; then
8931   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8932 fi
8933 else
8934   echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937
8938 fi
8939
8940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8941       conftest$ac_exeext conftest.$ac_ext
8942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8943
8944          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8945           # Warning - without using the other run time loading flags,
8946           # -berok will link without error, but may produce a broken library.
8947           no_undefined_flag=' ${wl}-bernotok'
8948           allow_undefined_flag=' ${wl}-berok'
8949           # Exported symbols can be pulled into shared objects from archives
8950           whole_archive_flag_spec='$convenience'
8951           archive_cmds_need_lc=yes
8952           # This is similar to how AIX traditionally builds its shared libraries.
8953           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'
8954         fi
8955       fi
8956       ;;
8957
8958     amigaos*)
8959       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)'
8960       hardcode_libdir_flag_spec='-L$libdir'
8961       hardcode_minus_L=yes
8962       # see comment about different semantics on the GNU ld section
8963       ld_shlibs=no
8964       ;;
8965
8966     bsdi[45]*)
8967       export_dynamic_flag_spec=-rdynamic
8968       ;;
8969
8970     cygwin* | mingw* | pw32*)
8971       # When not using gcc, we currently assume that we are using
8972       # Microsoft Visual C++.
8973       # hardcode_libdir_flag_spec is actually meaningless, as there is
8974       # no search path for DLLs.
8975       hardcode_libdir_flag_spec=' '
8976       allow_undefined_flag=unsupported
8977       # Tell ltmain to make .lib files, not .a files.
8978       libext=lib
8979       # Tell ltmain to make .dll files, not .so files.
8980       shrext_cmds=".dll"
8981       # FIXME: Setting linknames here is a bad hack.
8982       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8983       # The linker will automatically build a .lib file if we build a DLL.
8984       old_archive_From_new_cmds='true'
8985       # FIXME: Should let the user specify the lib program.
8986       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8987       fix_srcfile_path='`cygpath -w "$srcfile"`'
8988       enable_shared_with_static_runtimes=yes
8989       ;;
8990
8991     darwin* | rhapsody*)
8992       case $host_os in
8993         rhapsody* | darwin1.[012])
8994          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8995          ;;
8996        *) # Darwin 1.3 on
8997          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8998            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8999          else
9000            case ${MACOSX_DEPLOYMENT_TARGET} in
9001              10.[012])
9002                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9003                ;;
9004              10.*)
9005                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9006                ;;
9007            esac
9008          fi
9009          ;;
9010       esac
9011       archive_cmds_need_lc=no
9012       hardcode_direct=no
9013       hardcode_automatic=yes
9014       hardcode_shlibpath_var=unsupported
9015       whole_archive_flag_spec=''
9016       link_all_deplibs=yes
9017     if test "$GCC" = yes ; then
9018         output_verbose_link_cmd='echo'
9019         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9020       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9021       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9022       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}'
9023       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}'
9024     else
9025       case $cc_basename in
9026         xlc*)
9027          output_verbose_link_cmd='echo'
9028          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9029          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9030           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9031          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9032           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}'
9033           ;;
9034        *)
9035          ld_shlibs=no
9036           ;;
9037       esac
9038     fi
9039       ;;
9040
9041     dgux*)
9042       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9043       hardcode_libdir_flag_spec='-L$libdir'
9044       hardcode_shlibpath_var=no
9045       ;;
9046
9047     freebsd1*)
9048       ld_shlibs=no
9049       ;;
9050
9051     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9052     # support.  Future versions do this automatically, but an explicit c++rt0.o
9053     # does not break anything, and helps significantly (at the cost of a little
9054     # extra space).
9055     freebsd2.2*)
9056       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9057       hardcode_libdir_flag_spec='-R$libdir'
9058       hardcode_direct=yes
9059       hardcode_shlibpath_var=no
9060       ;;
9061
9062     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9063     freebsd2*)
9064       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9065       hardcode_direct=yes
9066       hardcode_minus_L=yes
9067       hardcode_shlibpath_var=no
9068       ;;
9069
9070     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9071     freebsd* | dragonfly*)
9072       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9073       hardcode_libdir_flag_spec='-R$libdir'
9074       hardcode_direct=yes
9075       hardcode_shlibpath_var=no
9076       ;;
9077
9078     hpux9*)
9079       if test "$GCC" = yes; then
9080         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'
9081       else
9082         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'
9083       fi
9084       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9085       hardcode_libdir_separator=:
9086       hardcode_direct=yes
9087
9088       # hardcode_minus_L: Not really in the search PATH,
9089       # but as the default location of the library.
9090       hardcode_minus_L=yes
9091       export_dynamic_flag_spec='${wl}-E'
9092       ;;
9093
9094     hpux10*)
9095       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9096         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9097       else
9098         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9099       fi
9100       if test "$with_gnu_ld" = no; then
9101         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9102         hardcode_libdir_separator=:
9103
9104         hardcode_direct=yes
9105         export_dynamic_flag_spec='${wl}-E'
9106
9107         # hardcode_minus_L: Not really in the search PATH,
9108         # but as the default location of the library.
9109         hardcode_minus_L=yes
9110       fi
9111       ;;
9112
9113     hpux11*)
9114       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9115         case $host_cpu in
9116         hppa*64*)
9117           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118           ;;
9119         ia64*)
9120           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9121           ;;
9122         *)
9123           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9124           ;;
9125         esac
9126       else
9127         case $host_cpu in
9128         hppa*64*)
9129           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9130           ;;
9131         ia64*)
9132           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9133           ;;
9134         *)
9135           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9136           ;;
9137         esac
9138       fi
9139       if test "$with_gnu_ld" = no; then
9140         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9141         hardcode_libdir_separator=:
9142
9143         case $host_cpu in
9144         hppa*64*|ia64*)
9145           hardcode_libdir_flag_spec_ld='+b $libdir'
9146           hardcode_direct=no
9147           hardcode_shlibpath_var=no
9148           ;;
9149         *)
9150           hardcode_direct=yes
9151           export_dynamic_flag_spec='${wl}-E'
9152
9153           # hardcode_minus_L: Not really in the search PATH,
9154           # but as the default location of the library.
9155           hardcode_minus_L=yes
9156           ;;
9157         esac
9158       fi
9159       ;;
9160
9161     irix5* | irix6* | nonstopux*)
9162       if test "$GCC" = yes; then
9163         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'
9164       else
9165         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'
9166         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9167       fi
9168       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169       hardcode_libdir_separator=:
9170       link_all_deplibs=yes
9171       ;;
9172
9173     netbsd* | netbsdelf*-gnu)
9174       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9175         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9176       else
9177         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9178       fi
9179       hardcode_libdir_flag_spec='-R$libdir'
9180       hardcode_direct=yes
9181       hardcode_shlibpath_var=no
9182       ;;
9183
9184     newsos6)
9185       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9186       hardcode_direct=yes
9187       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188       hardcode_libdir_separator=:
9189       hardcode_shlibpath_var=no
9190       ;;
9191
9192     openbsd*)
9193       if test -f /usr/libexec/ld.so; then
9194         hardcode_direct=yes
9195         hardcode_shlibpath_var=no
9196         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9197           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9198           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9199           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9200           export_dynamic_flag_spec='${wl}-E'
9201         else
9202           case $host_os in
9203            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9204              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9205              hardcode_libdir_flag_spec='-R$libdir'
9206              ;;
9207            *)
9208              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9209              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9210              ;;
9211           esac
9212         fi
9213       else
9214         ld_shlibs=no
9215       fi
9216       ;;
9217
9218     os2*)
9219       hardcode_libdir_flag_spec='-L$libdir'
9220       hardcode_minus_L=yes
9221       allow_undefined_flag=unsupported
9222       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'
9223       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9224       ;;
9225
9226     osf3*)
9227       if test "$GCC" = yes; then
9228         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9229         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'
9230       else
9231         allow_undefined_flag=' -expect_unresolved \*'
9232         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'
9233       fi
9234       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235       hardcode_libdir_separator=:
9236       ;;
9237
9238     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9239       if test "$GCC" = yes; then
9240         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9241         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'
9242         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243       else
9244         allow_undefined_flag=' -expect_unresolved \*'
9245         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'
9246         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9247         $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'
9248
9249         # Both c and cxx compiler support -rpath directly
9250         hardcode_libdir_flag_spec='-rpath $libdir'
9251       fi
9252       hardcode_libdir_separator=:
9253       ;;
9254
9255     solaris*)
9256       no_undefined_flag=' -z text'
9257       if test "$GCC" = yes; then
9258         wlarc='${wl}'
9259         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9260         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9261           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9262       else
9263         wlarc=''
9264         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9265         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9266         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9267       fi
9268       hardcode_libdir_flag_spec='-R$libdir'
9269       hardcode_shlibpath_var=no
9270       case $host_os in
9271       solaris2.[0-5] | solaris2.[0-5].*) ;;
9272       *)
9273         # The compiler driver will combine and reorder linker options,
9274         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9275         # but is careful enough not to reorder.
9276         # Supported since Solaris 2.6 (maybe 2.5.1?)
9277         if test "$GCC" = yes; then
9278           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9279         else
9280           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9281         fi
9282         ;;
9283       esac
9284       link_all_deplibs=yes
9285       ;;
9286
9287     sunos4*)
9288       if test "x$host_vendor" = xsequent; then
9289         # Use $CC to link under sequent, because it throws in some extra .o
9290         # files that make .init and .fini sections work.
9291         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9292       else
9293         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9294       fi
9295       hardcode_libdir_flag_spec='-L$libdir'
9296       hardcode_direct=yes
9297       hardcode_minus_L=yes
9298       hardcode_shlibpath_var=no
9299       ;;
9300
9301     sysv4)
9302       case $host_vendor in
9303         sni)
9304           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9305           hardcode_direct=yes # is this really true???
9306         ;;
9307         siemens)
9308           ## LD is ld it makes a PLAMLIB
9309           ## CC just makes a GrossModule.
9310           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9311           reload_cmds='$CC -r -o $output$reload_objs'
9312           hardcode_direct=no
9313         ;;
9314         motorola)
9315           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9317         ;;
9318       esac
9319       runpath_var='LD_RUN_PATH'
9320       hardcode_shlibpath_var=no
9321       ;;
9322
9323     sysv4.3*)
9324       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9325       hardcode_shlibpath_var=no
9326       export_dynamic_flag_spec='-Bexport'
9327       ;;
9328
9329     sysv4*MP*)
9330       if test -d /usr/nec; then
9331         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332         hardcode_shlibpath_var=no
9333         runpath_var=LD_RUN_PATH
9334         hardcode_runpath_var=yes
9335         ld_shlibs=yes
9336       fi
9337       ;;
9338
9339     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9340       no_undefined_flag='${wl}-z,text'
9341       archive_cmds_need_lc=no
9342       hardcode_shlibpath_var=no
9343       runpath_var='LD_RUN_PATH'
9344
9345       if test "$GCC" = yes; then
9346         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9347         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9348       else
9349         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351       fi
9352       ;;
9353
9354     sysv5* | sco3.2v5* | sco5v6*)
9355       # Note: We can NOT use -z defs as we might desire, because we do not
9356       # link with -lc, and that would cause any symbols used from libc to
9357       # always be unresolved, which means just about no library would
9358       # ever link correctly.  If we're not using GNU ld we use -z text
9359       # though, which does catch some bad symbols but isn't as heavy-handed
9360       # as -z defs.
9361       no_undefined_flag='${wl}-z,text'
9362       allow_undefined_flag='${wl}-z,nodefs'
9363       archive_cmds_need_lc=no
9364       hardcode_shlibpath_var=no
9365       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9366       hardcode_libdir_separator=':'
9367       link_all_deplibs=yes
9368       export_dynamic_flag_spec='${wl}-Bexport'
9369       runpath_var='LD_RUN_PATH'
9370
9371       if test "$GCC" = yes; then
9372         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9374       else
9375         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9376         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9377       fi
9378       ;;
9379
9380     uts4*)
9381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9382       hardcode_libdir_flag_spec='-L$libdir'
9383       hardcode_shlibpath_var=no
9384       ;;
9385
9386     *)
9387       ld_shlibs=no
9388       ;;
9389     esac
9390   fi
9391
9392 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9393 echo "${ECHO_T}$ld_shlibs" >&6; }
9394 test "$ld_shlibs" = no && can_build_shared=no
9395
9396 #
9397 # Do we need to explicitly link libc?
9398 #
9399 case "x$archive_cmds_need_lc" in
9400 x|xyes)
9401   # Assume -lc should be added
9402   archive_cmds_need_lc=yes
9403
9404   if test "$enable_shared" = yes && test "$GCC" = yes; then
9405     case $archive_cmds in
9406     *'~'*)
9407       # FIXME: we may have to deal with multi-command sequences.
9408       ;;
9409     '$CC '*)
9410       # Test whether the compiler implicitly links with -lc since on some
9411       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9412       # to ld, don't add -lc before -lgcc.
9413       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9414 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9415       $rm conftest*
9416       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9417
9418       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9419   (eval $ac_compile) 2>&5
9420   ac_status=$?
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); } 2>conftest.err; then
9423         soname=conftest
9424         lib=conftest
9425         libobjs=conftest.$ac_objext
9426         deplibs=
9427         wl=$lt_prog_compiler_wl
9428         pic_flag=$lt_prog_compiler_pic
9429         compiler_flags=-v
9430         linker_flags=-v
9431         verstring=
9432         output_objdir=.
9433         libname=conftest
9434         lt_save_allow_undefined_flag=$allow_undefined_flag
9435         allow_undefined_flag=
9436         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9437   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }
9441         then
9442           archive_cmds_need_lc=no
9443         else
9444           archive_cmds_need_lc=yes
9445         fi
9446         allow_undefined_flag=$lt_save_allow_undefined_flag
9447       else
9448         cat conftest.err 1>&5
9449       fi
9450       $rm conftest*
9451       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9452 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9453       ;;
9454     esac
9455   fi
9456   ;;
9457 esac
9458
9459 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9460 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9461 library_names_spec=
9462 libname_spec='lib$name'
9463 soname_spec=
9464 shrext_cmds=".so"
9465 postinstall_cmds=
9466 postuninstall_cmds=
9467 finish_cmds=
9468 finish_eval=
9469 shlibpath_var=
9470 shlibpath_overrides_runpath=unknown
9471 version_type=none
9472 dynamic_linker="$host_os ld.so"
9473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9474
9475 if test "$GCC" = yes; then
9476   case $host_os in
9477     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9478     *) lt_awk_arg="/^libraries:/" ;;
9479   esac
9480   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9481   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9482     # if the path contains ";" then we assume it to be the separator
9483     # otherwise default to the standard path separator (i.e. ":") - it is
9484     # assumed that no part of a normal pathname contains ";" but that should
9485     # okay in the real world where ";" in dirpaths is itself problematic.
9486     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9487   else
9488     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9489   fi
9490   # Ok, now we have the path, separated by spaces, we can step through it
9491   # and add multilib dir if necessary.
9492   lt_tmp_lt_search_path_spec=
9493   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9494   for lt_sys_path in $lt_search_path_spec; do
9495     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9496       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9497     else
9498       test -d "$lt_sys_path" && \
9499         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9500     fi
9501   done
9502   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9503 BEGIN {RS=" "; FS="/|\n";} {
9504   lt_foo="";
9505   lt_count=0;
9506   for (lt_i = NF; lt_i > 0; lt_i--) {
9507     if ($lt_i != "" && $lt_i != ".") {
9508       if ($lt_i == "..") {
9509         lt_count++;
9510       } else {
9511         if (lt_count == 0) {
9512           lt_foo="/" $lt_i lt_foo;
9513         } else {
9514           lt_count--;
9515         }
9516       }
9517     }
9518   }
9519   if (lt_foo != "") { lt_freq[lt_foo]++; }
9520   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9521 }'`
9522   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9523 else
9524   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9525 fi
9526 need_lib_prefix=unknown
9527 hardcode_into_libs=no
9528
9529 # when you set need_version to no, make sure it does not cause -set_version
9530 # flags to be left without arguments
9531 need_version=unknown
9532
9533 case $host_os in
9534 aix3*)
9535   version_type=linux
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9537   shlibpath_var=LIBPATH
9538
9539   # AIX 3 has no versioning support, so we append a major version to the name.
9540   soname_spec='${libname}${release}${shared_ext}$major'
9541   ;;
9542
9543 aix4* | aix5*)
9544   version_type=linux
9545   need_lib_prefix=no
9546   need_version=no
9547   hardcode_into_libs=yes
9548   if test "$host_cpu" = ia64; then
9549     # AIX 5 supports IA64
9550     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9551     shlibpath_var=LD_LIBRARY_PATH
9552   else
9553     # With GCC up to 2.95.x, collect2 would create an import file
9554     # for dependence libraries.  The import file would start with
9555     # the line `#! .'.  This would cause the generated library to
9556     # depend on `.', always an invalid library.  This was fixed in
9557     # development snapshots of GCC prior to 3.0.
9558     case $host_os in
9559       aix4 | aix4.[01] | aix4.[01].*)
9560       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9561            echo ' yes '
9562            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9563         :
9564       else
9565         can_build_shared=no
9566       fi
9567       ;;
9568     esac
9569     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9570     # soname into executable. Probably we can add versioning support to
9571     # collect2, so additional links can be useful in future.
9572     if test "$aix_use_runtimelinking" = yes; then
9573       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9574       # instead of lib<name>.a to let people know that these are not
9575       # typical AIX shared libraries.
9576       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577     else
9578       # We preserve .a as extension for shared libraries through AIX4.2
9579       # and later when we are not doing run time linking.
9580       library_names_spec='${libname}${release}.a $libname.a'
9581       soname_spec='${libname}${release}${shared_ext}$major'
9582     fi
9583     shlibpath_var=LIBPATH
9584   fi
9585   ;;
9586
9587 amigaos*)
9588   library_names_spec='$libname.ixlibrary $libname.a'
9589   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9590   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'
9591   ;;
9592
9593 beos*)
9594   library_names_spec='${libname}${shared_ext}'
9595   dynamic_linker="$host_os ld.so"
9596   shlibpath_var=LIBRARY_PATH
9597   ;;
9598
9599 bsdi[45]*)
9600   version_type=linux
9601   need_version=no
9602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603   soname_spec='${libname}${release}${shared_ext}$major'
9604   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9605   shlibpath_var=LD_LIBRARY_PATH
9606   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9607   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9608   # the default ld.so.conf also contains /usr/contrib/lib and
9609   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9610   # libtool to hard-code these into programs
9611   ;;
9612
9613 cygwin* | mingw* | pw32*)
9614   version_type=windows
9615   shrext_cmds=".dll"
9616   need_version=no
9617   need_lib_prefix=no
9618
9619   case $GCC,$host_os in
9620   yes,cygwin* | yes,mingw* | yes,pw32*)
9621     library_names_spec='$libname.dll.a'
9622     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9623     postinstall_cmds='base_file=`basename \${file}`~
9624       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9625       dldir=$destdir/`dirname \$dlpath`~
9626       test -d \$dldir || mkdir -p \$dldir~
9627       $install_prog $dir/$dlname \$dldir/$dlname~
9628       chmod a+x \$dldir/$dlname'
9629     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9630       dlpath=$dir/\$dldll~
9631        $rm \$dlpath'
9632     shlibpath_overrides_runpath=yes
9633
9634     case $host_os in
9635     cygwin*)
9636       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9637       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9638       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9639       ;;
9640     mingw*)
9641       # MinGW DLLs use traditional 'lib' prefix
9642       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9643       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9644       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9645         # It is most probably a Windows format PATH printed by
9646         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9647         # path with ; separators, and with drive letters. We can handle the
9648         # drive letters (cygwin fileutils understands them), so leave them,
9649         # especially as we might pass files found there to a mingw objdump,
9650         # which wouldn't understand a cygwinified path. Ahh.
9651         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9652       else
9653         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9654       fi
9655       ;;
9656     pw32*)
9657       # pw32 DLLs use 'pw' prefix rather than 'lib'
9658       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9659       ;;
9660     esac
9661     ;;
9662
9663   *)
9664     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9665     ;;
9666   esac
9667   dynamic_linker='Win32 ld.exe'
9668   # FIXME: first we should search . and the directory the executable is in
9669   shlibpath_var=PATH
9670   ;;
9671
9672 darwin* | rhapsody*)
9673   dynamic_linker="$host_os dyld"
9674   version_type=darwin
9675   need_lib_prefix=no
9676   need_version=no
9677   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9678   soname_spec='${libname}${release}${major}$shared_ext'
9679   shlibpath_overrides_runpath=yes
9680   shlibpath_var=DYLD_LIBRARY_PATH
9681   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9682
9683   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9684   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9685   ;;
9686
9687 dgux*)
9688   version_type=linux
9689   need_lib_prefix=no
9690   need_version=no
9691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9692   soname_spec='${libname}${release}${shared_ext}$major'
9693   shlibpath_var=LD_LIBRARY_PATH
9694   ;;
9695
9696 freebsd1*)
9697   dynamic_linker=no
9698   ;;
9699
9700 freebsd* | dragonfly*)
9701   # DragonFly does not have aout.  When/if they implement a new
9702   # versioning mechanism, adjust this.
9703   if test -x /usr/bin/objformat; then
9704     objformat=`/usr/bin/objformat`
9705   else
9706     case $host_os in
9707     freebsd[123]*) objformat=aout ;;
9708     *) objformat=elf ;;
9709     esac
9710   fi
9711   version_type=freebsd-$objformat
9712   case $version_type in
9713     freebsd-elf*)
9714       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9715       need_version=no
9716       need_lib_prefix=no
9717       ;;
9718     freebsd-*)
9719       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9720       need_version=yes
9721       ;;
9722   esac
9723   shlibpath_var=LD_LIBRARY_PATH
9724   case $host_os in
9725   freebsd2*)
9726     shlibpath_overrides_runpath=yes
9727     ;;
9728   freebsd3.[01]* | freebsdelf3.[01]*)
9729     shlibpath_overrides_runpath=yes
9730     hardcode_into_libs=yes
9731     ;;
9732   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9733   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9734     shlibpath_overrides_runpath=no
9735     hardcode_into_libs=yes
9736     ;;
9737   *) # from 4.6 on, and DragonFly
9738     shlibpath_overrides_runpath=yes
9739     hardcode_into_libs=yes
9740     ;;
9741   esac
9742   ;;
9743
9744 gnu*)
9745   version_type=linux
9746   need_lib_prefix=no
9747   need_version=no
9748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9749   soname_spec='${libname}${release}${shared_ext}$major'
9750   shlibpath_var=LD_LIBRARY_PATH
9751   hardcode_into_libs=yes
9752   ;;
9753
9754 hpux9* | hpux10* | hpux11*)
9755   # Give a soname corresponding to the major version so that dld.sl refuses to
9756   # link against other versions.
9757   version_type=sunos
9758   need_lib_prefix=no
9759   need_version=no
9760   case $host_cpu in
9761   ia64*)
9762     shrext_cmds='.so'
9763     hardcode_into_libs=yes
9764     dynamic_linker="$host_os dld.so"
9765     shlibpath_var=LD_LIBRARY_PATH
9766     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9768     soname_spec='${libname}${release}${shared_ext}$major'
9769     if test "X$HPUX_IA64_MODE" = X32; then
9770       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9771     else
9772       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9773     fi
9774     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9775     ;;
9776    hppa*64*)
9777      shrext_cmds='.sl'
9778      hardcode_into_libs=yes
9779      dynamic_linker="$host_os dld.sl"
9780      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9781      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9782      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783      soname_spec='${libname}${release}${shared_ext}$major'
9784      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9785      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9786      ;;
9787    *)
9788     shrext_cmds='.sl'
9789     dynamic_linker="$host_os dld.sl"
9790     shlibpath_var=SHLIB_PATH
9791     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793     soname_spec='${libname}${release}${shared_ext}$major'
9794     ;;
9795   esac
9796   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9797   postinstall_cmds='chmod 555 $lib'
9798   ;;
9799
9800 interix[3-9]*)
9801   version_type=linux
9802   need_lib_prefix=no
9803   need_version=no
9804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9805   soname_spec='${libname}${release}${shared_ext}$major'
9806   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9807   shlibpath_var=LD_LIBRARY_PATH
9808   shlibpath_overrides_runpath=no
9809   hardcode_into_libs=yes
9810   ;;
9811
9812 irix5* | irix6* | nonstopux*)
9813   case $host_os in
9814     nonstopux*) version_type=nonstopux ;;
9815     *)
9816         if test "$lt_cv_prog_gnu_ld" = yes; then
9817                 version_type=linux
9818         else
9819                 version_type=irix
9820         fi ;;
9821   esac
9822   need_lib_prefix=no
9823   need_version=no
9824   soname_spec='${libname}${release}${shared_ext}$major'
9825   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9826   case $host_os in
9827   irix5* | nonstopux*)
9828     libsuff= shlibsuff=
9829     ;;
9830   *)
9831     case $LD in # libtool.m4 will add one of these switches to LD
9832     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9833       libsuff= shlibsuff= libmagic=32-bit;;
9834     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9835       libsuff=32 shlibsuff=N32 libmagic=N32;;
9836     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9837       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9838     *) libsuff= shlibsuff= libmagic=never-match;;
9839     esac
9840     ;;
9841   esac
9842   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9843   shlibpath_overrides_runpath=no
9844   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9845   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9846   hardcode_into_libs=yes
9847   ;;
9848
9849 # No shared lib support for Linux oldld, aout, or coff.
9850 linux*oldld* | linux*aout* | linux*coff*)
9851   dynamic_linker=no
9852   ;;
9853
9854 # This must be Linux ELF.
9855 linux* | k*bsd*-gnu)
9856   version_type=linux
9857   need_lib_prefix=no
9858   need_version=no
9859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9860   soname_spec='${libname}${release}${shared_ext}$major'
9861   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9862   shlibpath_var=LD_LIBRARY_PATH
9863   shlibpath_overrides_runpath=no
9864   # This implies no fast_install, which is unacceptable.
9865   # Some rework will be needed to allow for fast_install
9866   # before this can be enabled.
9867   hardcode_into_libs=yes
9868
9869   # Append ld.so.conf contents to the search path
9870   if test -f /etc/ld.so.conf; then
9871     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9872     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9873   fi
9874
9875   # We used to test for /lib/ld.so.1 and disable shared libraries on
9876   # powerpc, because MkLinux only supported shared libraries with the
9877   # GNU dynamic linker.  Since this was broken with cross compilers,
9878   # most powerpc-linux boxes support dynamic linking these days and
9879   # people can always --disable-shared, the test was removed, and we
9880   # assume the GNU/Linux dynamic linker is in use.
9881   dynamic_linker='GNU/Linux ld.so'
9882   ;;
9883
9884 netbsdelf*-gnu)
9885   version_type=linux
9886   need_lib_prefix=no
9887   need_version=no
9888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9889   soname_spec='${libname}${release}${shared_ext}$major'
9890   shlibpath_var=LD_LIBRARY_PATH
9891   shlibpath_overrides_runpath=no
9892   hardcode_into_libs=yes
9893   dynamic_linker='NetBSD ld.elf_so'
9894   ;;
9895
9896 netbsd*)
9897   version_type=sunos
9898   need_lib_prefix=no
9899   need_version=no
9900   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9901     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9902     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9903     dynamic_linker='NetBSD (a.out) ld.so'
9904   else
9905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9906     soname_spec='${libname}${release}${shared_ext}$major'
9907     dynamic_linker='NetBSD ld.elf_so'
9908   fi
9909   shlibpath_var=LD_LIBRARY_PATH
9910   shlibpath_overrides_runpath=yes
9911   hardcode_into_libs=yes
9912   ;;
9913
9914 newsos6)
9915   version_type=linux
9916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917   shlibpath_var=LD_LIBRARY_PATH
9918   shlibpath_overrides_runpath=yes
9919   ;;
9920
9921 nto-qnx*)
9922   version_type=linux
9923   need_lib_prefix=no
9924   need_version=no
9925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926   soname_spec='${libname}${release}${shared_ext}$major'
9927   shlibpath_var=LD_LIBRARY_PATH
9928   shlibpath_overrides_runpath=yes
9929   ;;
9930
9931 openbsd*)
9932   version_type=sunos
9933   sys_lib_dlsearch_path_spec="/usr/lib"
9934   need_lib_prefix=no
9935   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9936   case $host_os in
9937     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9938     *)                         need_version=no  ;;
9939   esac
9940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942   shlibpath_var=LD_LIBRARY_PATH
9943   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9944     case $host_os in
9945       openbsd2.[89] | openbsd2.[89].*)
9946         shlibpath_overrides_runpath=no
9947         ;;
9948       *)
9949         shlibpath_overrides_runpath=yes
9950         ;;
9951       esac
9952   else
9953     shlibpath_overrides_runpath=yes
9954   fi
9955   ;;
9956
9957 os2*)
9958   libname_spec='$name'
9959   shrext_cmds=".dll"
9960   need_lib_prefix=no
9961   library_names_spec='$libname${shared_ext} $libname.a'
9962   dynamic_linker='OS/2 ld.exe'
9963   shlibpath_var=LIBPATH
9964   ;;
9965
9966 osf3* | osf4* | osf5*)
9967   version_type=osf
9968   need_lib_prefix=no
9969   need_version=no
9970   soname_spec='${libname}${release}${shared_ext}$major'
9971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972   shlibpath_var=LD_LIBRARY_PATH
9973   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9974   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9975   ;;
9976
9977 rdos*)
9978   dynamic_linker=no
9979   ;;
9980
9981 solaris*)
9982   version_type=linux
9983   need_lib_prefix=no
9984   need_version=no
9985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986   soname_spec='${libname}${release}${shared_ext}$major'
9987   shlibpath_var=LD_LIBRARY_PATH
9988   shlibpath_overrides_runpath=yes
9989   hardcode_into_libs=yes
9990   # ldd complains unless libraries are executable
9991   postinstall_cmds='chmod +x $lib'
9992   ;;
9993
9994 sunos4*)
9995   version_type=sunos
9996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9997   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9998   shlibpath_var=LD_LIBRARY_PATH
9999   shlibpath_overrides_runpath=yes
10000   if test "$with_gnu_ld" = yes; then
10001     need_lib_prefix=no
10002   fi
10003   need_version=yes
10004   ;;
10005
10006 sysv4 | sysv4.3*)
10007   version_type=linux
10008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009   soname_spec='${libname}${release}${shared_ext}$major'
10010   shlibpath_var=LD_LIBRARY_PATH
10011   case $host_vendor in
10012     sni)
10013       shlibpath_overrides_runpath=no
10014       need_lib_prefix=no
10015       export_dynamic_flag_spec='${wl}-Blargedynsym'
10016       runpath_var=LD_RUN_PATH
10017       ;;
10018     siemens)
10019       need_lib_prefix=no
10020       ;;
10021     motorola)
10022       need_lib_prefix=no
10023       need_version=no
10024       shlibpath_overrides_runpath=no
10025       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10026       ;;
10027   esac
10028   ;;
10029
10030 sysv4*MP*)
10031   if test -d /usr/nec ;then
10032     version_type=linux
10033     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10034     soname_spec='$libname${shared_ext}.$major'
10035     shlibpath_var=LD_LIBRARY_PATH
10036   fi
10037   ;;
10038
10039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10040   version_type=freebsd-elf
10041   need_lib_prefix=no
10042   need_version=no
10043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10044   soname_spec='${libname}${release}${shared_ext}$major'
10045   shlibpath_var=LD_LIBRARY_PATH
10046   hardcode_into_libs=yes
10047   if test "$with_gnu_ld" = yes; then
10048     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10049     shlibpath_overrides_runpath=no
10050   else
10051     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10052     shlibpath_overrides_runpath=yes
10053     case $host_os in
10054       sco3.2v5*)
10055         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10056         ;;
10057     esac
10058   fi
10059   sys_lib_dlsearch_path_spec='/usr/lib'
10060   ;;
10061
10062 uts4*)
10063   version_type=linux
10064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065   soname_spec='${libname}${release}${shared_ext}$major'
10066   shlibpath_var=LD_LIBRARY_PATH
10067   ;;
10068
10069 *)
10070   dynamic_linker=no
10071   ;;
10072 esac
10073 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10074 echo "${ECHO_T}$dynamic_linker" >&6; }
10075 test "$dynamic_linker" = no && can_build_shared=no
10076
10077 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10078 if test "$GCC" = yes; then
10079   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10080 fi
10081
10082 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10083 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10084 hardcode_action=
10085 if test -n "$hardcode_libdir_flag_spec" || \
10086    test -n "$runpath_var" || \
10087    test "X$hardcode_automatic" = "Xyes" ; then
10088
10089   # We can hardcode non-existant directories.
10090   if test "$hardcode_direct" != no &&
10091      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10092      # have to relink, otherwise we might link with an installed library
10093      # when we should be linking with a yet-to-be-installed one
10094      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10095      test "$hardcode_minus_L" != no; then
10096     # Linking always hardcodes the temporary library directory.
10097     hardcode_action=relink
10098   else
10099     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10100     hardcode_action=immediate
10101   fi
10102 else
10103   # We cannot hardcode anything, or else we can only hardcode existing
10104   # directories.
10105   hardcode_action=unsupported
10106 fi
10107 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10108 echo "${ECHO_T}$hardcode_action" >&6; }
10109
10110 if test "$hardcode_action" = relink; then
10111   # Fast installation is not supported
10112   enable_fast_install=no
10113 elif test "$shlibpath_overrides_runpath" = yes ||
10114      test "$enable_shared" = no; then
10115   # Fast installation is not necessary
10116   enable_fast_install=needless
10117 fi
10118
10119 striplib=
10120 old_striplib=
10121 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10122 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10123 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10124   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10125   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10126   { echo "$as_me:$LINENO: result: yes" >&5
10127 echo "${ECHO_T}yes" >&6; }
10128 else
10129 # FIXME - insert some real tests, host_os isn't really good enough
10130   case $host_os in
10131    darwin*)
10132        if test -n "$STRIP" ; then
10133          striplib="$STRIP -x"
10134          old_striplib="$STRIP -S"
10135          { echo "$as_me:$LINENO: result: yes" >&5
10136 echo "${ECHO_T}yes" >&6; }
10137        else
10138   { echo "$as_me:$LINENO: result: no" >&5
10139 echo "${ECHO_T}no" >&6; }
10140 fi
10141        ;;
10142    *)
10143   { echo "$as_me:$LINENO: result: no" >&5
10144 echo "${ECHO_T}no" >&6; }
10145     ;;
10146   esac
10147 fi
10148
10149 if test "x$enable_dlopen" != xyes; then
10150   enable_dlopen=unknown
10151   enable_dlopen_self=unknown
10152   enable_dlopen_self_static=unknown
10153 else
10154   lt_cv_dlopen=no
10155   lt_cv_dlopen_libs=
10156
10157   case $host_os in
10158   beos*)
10159     lt_cv_dlopen="load_add_on"
10160     lt_cv_dlopen_libs=
10161     lt_cv_dlopen_self=yes
10162     ;;
10163
10164   mingw* | pw32*)
10165     lt_cv_dlopen="LoadLibrary"
10166     lt_cv_dlopen_libs=
10167    ;;
10168
10169   cygwin*)
10170     lt_cv_dlopen="dlopen"
10171     lt_cv_dlopen_libs=
10172    ;;
10173
10174   darwin*)
10175   # if libdl is installed we need to link against it
10176     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10177 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10178 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10179   echo $ECHO_N "(cached) $ECHO_C" >&6
10180 else
10181   ac_check_lib_save_LIBS=$LIBS
10182 LIBS="-ldl  $LIBS"
10183 cat >conftest.$ac_ext <<_ACEOF
10184 /* confdefs.h.  */
10185 _ACEOF
10186 cat confdefs.h >>conftest.$ac_ext
10187 cat >>conftest.$ac_ext <<_ACEOF
10188 /* end confdefs.h.  */
10189
10190 /* Override any GCC internal prototype to avoid an error.
10191    Use char because int might match the return type of a GCC
10192    builtin and then its argument prototype would still apply.  */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 char dlopen ();
10197 int
10198 main ()
10199 {
10200 return dlopen ();
10201   ;
10202   return 0;
10203 }
10204 _ACEOF
10205 rm -f conftest.$ac_objext conftest$ac_exeext
10206 if { (ac_try="$ac_link"
10207 case "(($ac_try" in
10208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209   *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212   (eval "$ac_link") 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } && {
10219          test -z "$ac_c_werror_flag" ||
10220          test ! -s conftest.err
10221        } && test -s conftest$ac_exeext &&
10222        $as_test_x conftest$ac_exeext; then
10223   ac_cv_lib_dl_dlopen=yes
10224 else
10225   echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10227
10228         ac_cv_lib_dl_dlopen=no
10229 fi
10230
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232       conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10234 fi
10235 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10236 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10237 if test $ac_cv_lib_dl_dlopen = yes; then
10238   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10239 else
10240
10241     lt_cv_dlopen="dyld"
10242     lt_cv_dlopen_libs=
10243     lt_cv_dlopen_self=yes
10244
10245 fi
10246
10247    ;;
10248
10249   *)
10250     { echo "$as_me:$LINENO: checking for shl_load" >&5
10251 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10252 if test "${ac_cv_func_shl_load+set}" = set; then
10253   echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255   cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h.  */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h.  */
10261 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10263 #define shl_load innocuous_shl_load
10264
10265 /* System header to define __stub macros and hopefully few prototypes,
10266     which can conflict with char shl_load (); below.
10267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10268     <limits.h> exists even on freestanding compilers.  */
10269
10270 #ifdef __STDC__
10271 # include <limits.h>
10272 #else
10273 # include <assert.h>
10274 #endif
10275
10276 #undef shl_load
10277
10278 /* Override any GCC internal prototype to avoid an error.
10279    Use char because int might match the return type of a GCC
10280    builtin and then its argument prototype would still apply.  */
10281 #ifdef __cplusplus
10282 extern "C"
10283 #endif
10284 char shl_load ();
10285 /* The GNU C library defines this for functions which it implements
10286     to always fail with ENOSYS.  Some functions are actually named
10287     something starting with __ and the normal name is an alias.  */
10288 #if defined __stub_shl_load || defined __stub___shl_load
10289 choke me
10290 #endif
10291
10292 int
10293 main ()
10294 {
10295 return shl_load ();
10296   ;
10297   return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (ac_try="$ac_link"
10302 case "(($ac_try" in
10303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304   *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307   (eval "$ac_link") 2>conftest.er1
10308   ac_status=$?
10309   grep -v '^ *+' conftest.er1 >conftest.err
10310   rm -f conftest.er1
10311   cat conftest.err >&5
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); } && {
10314          test -z "$ac_c_werror_flag" ||
10315          test ! -s conftest.err
10316        } && test -s conftest$ac_exeext &&
10317        $as_test_x conftest$ac_exeext; then
10318   ac_cv_func_shl_load=yes
10319 else
10320   echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323         ac_cv_func_shl_load=no
10324 fi
10325
10326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327       conftest$ac_exeext conftest.$ac_ext
10328 fi
10329 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10330 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10331 if test $ac_cv_func_shl_load = yes; then
10332   lt_cv_dlopen="shl_load"
10333 else
10334   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10335 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10336 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10337   echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339   ac_check_lib_save_LIBS=$LIBS
10340 LIBS="-ldld  $LIBS"
10341 cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h.  */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h.  */
10347
10348 /* Override any GCC internal prototype to avoid an error.
10349    Use char because int might match the return type of a GCC
10350    builtin and then its argument prototype would still apply.  */
10351 #ifdef __cplusplus
10352 extern "C"
10353 #endif
10354 char shl_load ();
10355 int
10356 main ()
10357 {
10358 return shl_load ();
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (ac_try="$ac_link"
10365 case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_link") 2>conftest.er1
10371   ac_status=$?
10372   grep -v '^ *+' conftest.er1 >conftest.err
10373   rm -f conftest.er1
10374   cat conftest.err >&5
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); } && {
10377          test -z "$ac_c_werror_flag" ||
10378          test ! -s conftest.err
10379        } && test -s conftest$ac_exeext &&
10380        $as_test_x conftest$ac_exeext; then
10381   ac_cv_lib_dld_shl_load=yes
10382 else
10383   echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10385
10386         ac_cv_lib_dld_shl_load=no
10387 fi
10388
10389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10390       conftest$ac_exeext conftest.$ac_ext
10391 LIBS=$ac_check_lib_save_LIBS
10392 fi
10393 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10394 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10395 if test $ac_cv_lib_dld_shl_load = yes; then
10396   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10397 else
10398   { echo "$as_me:$LINENO: checking for dlopen" >&5
10399 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10400 if test "${ac_cv_func_dlopen+set}" = set; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   cat >conftest.$ac_ext <<_ACEOF
10404 /* confdefs.h.  */
10405 _ACEOF
10406 cat confdefs.h >>conftest.$ac_ext
10407 cat >>conftest.$ac_ext <<_ACEOF
10408 /* end confdefs.h.  */
10409 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10411 #define dlopen innocuous_dlopen
10412
10413 /* System header to define __stub macros and hopefully few prototypes,
10414     which can conflict with char dlopen (); below.
10415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416     <limits.h> exists even on freestanding compilers.  */
10417
10418 #ifdef __STDC__
10419 # include <limits.h>
10420 #else
10421 # include <assert.h>
10422 #endif
10423
10424 #undef dlopen
10425
10426 /* Override any GCC internal prototype to avoid an error.
10427    Use char because int might match the return type of a GCC
10428    builtin and then its argument prototype would still apply.  */
10429 #ifdef __cplusplus
10430 extern "C"
10431 #endif
10432 char dlopen ();
10433 /* The GNU C library defines this for functions which it implements
10434     to always fail with ENOSYS.  Some functions are actually named
10435     something starting with __ and the normal name is an alias.  */
10436 #if defined __stub_dlopen || defined __stub___dlopen
10437 choke me
10438 #endif
10439
10440 int
10441 main ()
10442 {
10443 return dlopen ();
10444   ;
10445   return 0;
10446 }
10447 _ACEOF
10448 rm -f conftest.$ac_objext conftest$ac_exeext
10449 if { (ac_try="$ac_link"
10450 case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_link") 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } && {
10462          test -z "$ac_c_werror_flag" ||
10463          test ! -s conftest.err
10464        } && test -s conftest$ac_exeext &&
10465        $as_test_x conftest$ac_exeext; then
10466   ac_cv_func_dlopen=yes
10467 else
10468   echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10470
10471         ac_cv_func_dlopen=no
10472 fi
10473
10474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10475       conftest$ac_exeext conftest.$ac_ext
10476 fi
10477 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10478 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10479 if test $ac_cv_func_dlopen = yes; then
10480   lt_cv_dlopen="dlopen"
10481 else
10482   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10483 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10484 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10485   echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487   ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-ldl  $LIBS"
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h.  */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h.  */
10495
10496 /* Override any GCC internal prototype to avoid an error.
10497    Use char because int might match the return type of a GCC
10498    builtin and then its argument prototype would still apply.  */
10499 #ifdef __cplusplus
10500 extern "C"
10501 #endif
10502 char dlopen ();
10503 int
10504 main ()
10505 {
10506 return dlopen ();
10507   ;
10508   return 0;
10509 }
10510 _ACEOF
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515   *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518   (eval "$ac_link") 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } && {
10525          test -z "$ac_c_werror_flag" ||
10526          test ! -s conftest.err
10527        } && test -s conftest$ac_exeext &&
10528        $as_test_x conftest$ac_exeext; then
10529   ac_cv_lib_dl_dlopen=yes
10530 else
10531   echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534         ac_cv_lib_dl_dlopen=no
10535 fi
10536
10537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10538       conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10540 fi
10541 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10542 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10543 if test $ac_cv_lib_dl_dlopen = yes; then
10544   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10545 else
10546   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10547 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10548 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10549   echo $ECHO_N "(cached) $ECHO_C" >&6
10550 else
10551   ac_check_lib_save_LIBS=$LIBS
10552 LIBS="-lsvld  $LIBS"
10553 cat >conftest.$ac_ext <<_ACEOF
10554 /* confdefs.h.  */
10555 _ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h.  */
10559
10560 /* Override any GCC internal prototype to avoid an error.
10561    Use char because int might match the return type of a GCC
10562    builtin and then its argument prototype would still apply.  */
10563 #ifdef __cplusplus
10564 extern "C"
10565 #endif
10566 char dlopen ();
10567 int
10568 main ()
10569 {
10570 return dlopen ();
10571   ;
10572   return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (ac_try="$ac_link"
10577 case "(($ac_try" in
10578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10579   *) ac_try_echo=$ac_try;;
10580 esac
10581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10582   (eval "$ac_link") 2>conftest.er1
10583   ac_status=$?
10584   grep -v '^ *+' conftest.er1 >conftest.err
10585   rm -f conftest.er1
10586   cat conftest.err >&5
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); } && {
10589          test -z "$ac_c_werror_flag" ||
10590          test ! -s conftest.err
10591        } && test -s conftest$ac_exeext &&
10592        $as_test_x conftest$ac_exeext; then
10593   ac_cv_lib_svld_dlopen=yes
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598         ac_cv_lib_svld_dlopen=no
10599 fi
10600
10601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10602       conftest$ac_exeext conftest.$ac_ext
10603 LIBS=$ac_check_lib_save_LIBS
10604 fi
10605 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10606 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10607 if test $ac_cv_lib_svld_dlopen = yes; then
10608   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10609 else
10610   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10611 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10612 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615   ac_check_lib_save_LIBS=$LIBS
10616 LIBS="-ldld  $LIBS"
10617 cat >conftest.$ac_ext <<_ACEOF
10618 /* confdefs.h.  */
10619 _ACEOF
10620 cat confdefs.h >>conftest.$ac_ext
10621 cat >>conftest.$ac_ext <<_ACEOF
10622 /* end confdefs.h.  */
10623
10624 /* Override any GCC internal prototype to avoid an error.
10625    Use char because int might match the return type of a GCC
10626    builtin and then its argument prototype would still apply.  */
10627 #ifdef __cplusplus
10628 extern "C"
10629 #endif
10630 char dld_link ();
10631 int
10632 main ()
10633 {
10634 return dld_link ();
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (ac_try="$ac_link"
10641 case "(($ac_try" in
10642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10643   *) ac_try_echo=$ac_try;;
10644 esac
10645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10646   (eval "$ac_link") 2>conftest.er1
10647   ac_status=$?
10648   grep -v '^ *+' conftest.er1 >conftest.err
10649   rm -f conftest.er1
10650   cat conftest.err >&5
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } && {
10653          test -z "$ac_c_werror_flag" ||
10654          test ! -s conftest.err
10655        } && test -s conftest$ac_exeext &&
10656        $as_test_x conftest$ac_exeext; then
10657   ac_cv_lib_dld_dld_link=yes
10658 else
10659   echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10661
10662         ac_cv_lib_dld_dld_link=no
10663 fi
10664
10665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10666       conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10668 fi
10669 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10670 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10671 if test $ac_cv_lib_dld_dld_link = yes; then
10672   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10673 fi
10674
10675
10676 fi
10677
10678
10679 fi
10680
10681
10682 fi
10683
10684
10685 fi
10686
10687
10688 fi
10689
10690     ;;
10691   esac
10692
10693   if test "x$lt_cv_dlopen" != xno; then
10694     enable_dlopen=yes
10695   else
10696     enable_dlopen=no
10697   fi
10698
10699   case $lt_cv_dlopen in
10700   dlopen)
10701     save_CPPFLAGS="$CPPFLAGS"
10702     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10703
10704     save_LDFLAGS="$LDFLAGS"
10705     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10706
10707     save_LIBS="$LIBS"
10708     LIBS="$lt_cv_dlopen_libs $LIBS"
10709
10710     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10711 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10712 if test "${lt_cv_dlopen_self+set}" = set; then
10713   echo $ECHO_N "(cached) $ECHO_C" >&6
10714 else
10715           if test "$cross_compiling" = yes; then :
10716   lt_cv_dlopen_self=cross
10717 else
10718   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10719   lt_status=$lt_dlunknown
10720   cat > conftest.$ac_ext <<EOF
10721 #line 10721 "configure"
10722 #include "confdefs.h"
10723
10724 #if HAVE_DLFCN_H
10725 #include <dlfcn.h>
10726 #endif
10727
10728 #include <stdio.h>
10729
10730 #ifdef RTLD_GLOBAL
10731 #  define LT_DLGLOBAL           RTLD_GLOBAL
10732 #else
10733 #  ifdef DL_GLOBAL
10734 #    define LT_DLGLOBAL         DL_GLOBAL
10735 #  else
10736 #    define LT_DLGLOBAL         0
10737 #  endif
10738 #endif
10739
10740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10741    find out it does not work in some platform. */
10742 #ifndef LT_DLLAZY_OR_NOW
10743 #  ifdef RTLD_LAZY
10744 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10745 #  else
10746 #    ifdef DL_LAZY
10747 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10748 #    else
10749 #      ifdef RTLD_NOW
10750 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10751 #      else
10752 #        ifdef DL_NOW
10753 #          define LT_DLLAZY_OR_NOW      DL_NOW
10754 #        else
10755 #          define LT_DLLAZY_OR_NOW      0
10756 #        endif
10757 #      endif
10758 #    endif
10759 #  endif
10760 #endif
10761
10762 #ifdef __cplusplus
10763 extern "C" void exit (int);
10764 #endif
10765
10766 void fnord() { int i=42;}
10767 int main ()
10768 {
10769   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10770   int status = $lt_dlunknown;
10771
10772   if (self)
10773     {
10774       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10775       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10776       /* dlclose (self); */
10777     }
10778   else
10779     puts (dlerror ());
10780
10781     exit (status);
10782 }
10783 EOF
10784   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10785   (eval $ac_link) 2>&5
10786   ac_status=$?
10787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10789     (./conftest; exit; ) >&5 2>/dev/null
10790     lt_status=$?
10791     case x$lt_status in
10792       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10793       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10794       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10795     esac
10796   else :
10797     # compilation failed
10798     lt_cv_dlopen_self=no
10799   fi
10800 fi
10801 rm -fr conftest*
10802
10803
10804 fi
10805 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10806 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10807
10808     if test "x$lt_cv_dlopen_self" = xyes; then
10809       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10810       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10811 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10812 if test "${lt_cv_dlopen_self_static+set}" = set; then
10813   echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815           if test "$cross_compiling" = yes; then :
10816   lt_cv_dlopen_self_static=cross
10817 else
10818   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10819   lt_status=$lt_dlunknown
10820   cat > conftest.$ac_ext <<EOF
10821 #line 10821 "configure"
10822 #include "confdefs.h"
10823
10824 #if HAVE_DLFCN_H
10825 #include <dlfcn.h>
10826 #endif
10827
10828 #include <stdio.h>
10829
10830 #ifdef RTLD_GLOBAL
10831 #  define LT_DLGLOBAL           RTLD_GLOBAL
10832 #else
10833 #  ifdef DL_GLOBAL
10834 #    define LT_DLGLOBAL         DL_GLOBAL
10835 #  else
10836 #    define LT_DLGLOBAL         0
10837 #  endif
10838 #endif
10839
10840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10841    find out it does not work in some platform. */
10842 #ifndef LT_DLLAZY_OR_NOW
10843 #  ifdef RTLD_LAZY
10844 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10845 #  else
10846 #    ifdef DL_LAZY
10847 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10848 #    else
10849 #      ifdef RTLD_NOW
10850 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10851 #      else
10852 #        ifdef DL_NOW
10853 #          define LT_DLLAZY_OR_NOW      DL_NOW
10854 #        else
10855 #          define LT_DLLAZY_OR_NOW      0
10856 #        endif
10857 #      endif
10858 #    endif
10859 #  endif
10860 #endif
10861
10862 #ifdef __cplusplus
10863 extern "C" void exit (int);
10864 #endif
10865
10866 void fnord() { int i=42;}
10867 int main ()
10868 {
10869   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10870   int status = $lt_dlunknown;
10871
10872   if (self)
10873     {
10874       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10875       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10876       /* dlclose (self); */
10877     }
10878   else
10879     puts (dlerror ());
10880
10881     exit (status);
10882 }
10883 EOF
10884   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885   (eval $ac_link) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10889     (./conftest; exit; ) >&5 2>/dev/null
10890     lt_status=$?
10891     case x$lt_status in
10892       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10893       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10894       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10895     esac
10896   else :
10897     # compilation failed
10898     lt_cv_dlopen_self_static=no
10899   fi
10900 fi
10901 rm -fr conftest*
10902
10903
10904 fi
10905 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10906 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10907     fi
10908
10909     CPPFLAGS="$save_CPPFLAGS"
10910     LDFLAGS="$save_LDFLAGS"
10911     LIBS="$save_LIBS"
10912     ;;
10913   esac
10914
10915   case $lt_cv_dlopen_self in
10916   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10917   *) enable_dlopen_self=unknown ;;
10918   esac
10919
10920   case $lt_cv_dlopen_self_static in
10921   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10922   *) enable_dlopen_self_static=unknown ;;
10923   esac
10924 fi
10925
10926
10927 # Report which library types will actually be built
10928 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10929 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10930 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10931 echo "${ECHO_T}$can_build_shared" >&6; }
10932
10933 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10934 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10935 test "$can_build_shared" = "no" && enable_shared=no
10936
10937 # On AIX, shared libraries and static libraries use the same namespace, and
10938 # are all built from PIC.
10939 case $host_os in
10940 aix3*)
10941   test "$enable_shared" = yes && enable_static=no
10942   if test -n "$RANLIB"; then
10943     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10944     postinstall_cmds='$RANLIB $lib'
10945   fi
10946   ;;
10947
10948 aix4* | aix5*)
10949   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10950     test "$enable_shared" = yes && enable_static=no
10951   fi
10952     ;;
10953 esac
10954 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10955 echo "${ECHO_T}$enable_shared" >&6; }
10956
10957 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10958 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10959 # Make sure either enable_shared or enable_static is yes.
10960 test "$enable_shared" = yes || enable_static=yes
10961 { echo "$as_me:$LINENO: result: $enable_static" >&5
10962 echo "${ECHO_T}$enable_static" >&6; }
10963
10964 # The else clause should only fire when bootstrapping the
10965 # libtool distribution, otherwise you forgot to ship ltmain.sh
10966 # with your package, and you will get complaints that there are
10967 # no rules to generate ltmain.sh.
10968 if test -f "$ltmain"; then
10969   # See if we are running on zsh, and set the options which allow our commands through
10970   # without removal of \ escapes.
10971   if test -n "${ZSH_VERSION+set}" ; then
10972     setopt NO_GLOB_SUBST
10973   fi
10974   # Now quote all the things that may contain metacharacters while being
10975   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10976   # variables and quote the copies for generation of the libtool script.
10977   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10978     SED SHELL STRIP \
10979     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10980     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10981     deplibs_check_method reload_flag reload_cmds need_locks \
10982     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10983     lt_cv_sys_global_symbol_to_c_name_address \
10984     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10985     old_postinstall_cmds old_postuninstall_cmds \
10986     compiler \
10987     CC \
10988     LD \
10989     lt_prog_compiler_wl \
10990     lt_prog_compiler_pic \
10991     lt_prog_compiler_static \
10992     lt_prog_compiler_no_builtin_flag \
10993     export_dynamic_flag_spec \
10994     thread_safe_flag_spec \
10995     whole_archive_flag_spec \
10996     enable_shared_with_static_runtimes \
10997     old_archive_cmds \
10998     old_archive_from_new_cmds \
10999     predep_objects \
11000     postdep_objects \
11001     predeps \
11002     postdeps \
11003     compiler_lib_search_path \
11004     archive_cmds \
11005     archive_expsym_cmds \
11006     postinstall_cmds \
11007     postuninstall_cmds \
11008     old_archive_from_expsyms_cmds \
11009     allow_undefined_flag \
11010     no_undefined_flag \
11011     export_symbols_cmds \
11012     hardcode_libdir_flag_spec \
11013     hardcode_libdir_flag_spec_ld \
11014     hardcode_libdir_separator \
11015     hardcode_automatic \
11016     module_cmds \
11017     module_expsym_cmds \
11018     lt_cv_prog_compiler_c_o \
11019     fix_srcfile_path \
11020     exclude_expsyms \
11021     include_expsyms; do
11022
11023     case $var in
11024     old_archive_cmds | \
11025     old_archive_from_new_cmds | \
11026     archive_cmds | \
11027     archive_expsym_cmds | \
11028     module_cmds | \
11029     module_expsym_cmds | \
11030     old_archive_from_expsyms_cmds | \
11031     export_symbols_cmds | \
11032     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11033     postinstall_cmds | postuninstall_cmds | \
11034     old_postinstall_cmds | old_postuninstall_cmds | \
11035     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11036       # Double-quote double-evaled strings.
11037       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11038       ;;
11039     *)
11040       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11041       ;;
11042     esac
11043   done
11044
11045   case $lt_echo in
11046   *'\$0 --fallback-echo"')
11047     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11048     ;;
11049   esac
11050
11051 cfgfile="${ofile}T"
11052   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11053   $rm -f "$cfgfile"
11054   { echo "$as_me:$LINENO: creating $ofile" >&5
11055 echo "$as_me: creating $ofile" >&6;}
11056
11057   cat <<__EOF__ >> "$cfgfile"
11058 #! $SHELL
11059
11060 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11061 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11062 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11063 #
11064 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
11065 # Free Software Foundation, Inc.
11066 #
11067 # This file is part of GNU Libtool:
11068 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11069 #
11070 # This program is free software; you can redistribute it and/or modify
11071 # it under the terms of the GNU General Public License as published by
11072 # the Free Software Foundation; either version 2 of the License, or
11073 # (at your option) any later version.
11074 #
11075 # This program is distributed in the hope that it will be useful, but
11076 # WITHOUT ANY WARRANTY; without even the implied warranty of
11077 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11078 # General Public License for more details.
11079 #
11080 # You should have received a copy of the GNU General Public License
11081 # along with this program; if not, write to the Free Software
11082 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11083 #
11084 # As a special exception to the GNU General Public License, if you
11085 # distribute this file as part of a program that contains a
11086 # configuration script generated by Autoconf, you may include it under
11087 # the same distribution terms that you use for the rest of that program.
11088
11089 # A sed program that does not truncate output.
11090 SED=$lt_SED
11091
11092 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11093 Xsed="$SED -e 1s/^X//"
11094
11095 # The HP-UX ksh and POSIX shell print the target directory to stdout
11096 # if CDPATH is set.
11097 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11098
11099 # The names of the tagged configurations supported by this script.
11100 available_tags=
11101
11102 # ### BEGIN LIBTOOL CONFIG
11103
11104 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11105
11106 # Shell to use when invoking shell scripts.
11107 SHELL=$lt_SHELL
11108
11109 # Whether or not to build shared libraries.
11110 build_libtool_libs=$enable_shared
11111
11112 # Whether or not to build static libraries.
11113 build_old_libs=$enable_static
11114
11115 # Whether or not to add -lc for building shared libraries.
11116 build_libtool_need_lc=$archive_cmds_need_lc
11117
11118 # Whether or not to disallow shared libs when runtime libs are static
11119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11120
11121 # Whether or not to optimize for fast installation.
11122 fast_install=$enable_fast_install
11123
11124 # The host system.
11125 host_alias=$host_alias
11126 host=$host
11127 host_os=$host_os
11128
11129 # The build system.
11130 build_alias=$build_alias
11131 build=$build
11132 build_os=$build_os
11133
11134 # An echo program that does not interpret backslashes.
11135 echo=$lt_echo
11136
11137 # The archiver.
11138 AR=$lt_AR
11139 AR_FLAGS=$lt_AR_FLAGS
11140
11141 # A C compiler.
11142 LTCC=$lt_LTCC
11143
11144 # LTCC compiler flags.
11145 LTCFLAGS=$lt_LTCFLAGS
11146
11147 # A language-specific compiler.
11148 CC=$lt_compiler
11149
11150 # Is the compiler the GNU C compiler?
11151 with_gcc=$GCC
11152
11153 # An ERE matcher.
11154 EGREP=$lt_EGREP
11155
11156 # The linker used to build libraries.
11157 LD=$lt_LD
11158
11159 # Whether we need hard or soft links.
11160 LN_S=$lt_LN_S
11161
11162 # A BSD-compatible nm program.
11163 NM=$lt_NM
11164
11165 # A symbol stripping program
11166 STRIP=$lt_STRIP
11167
11168 # Used to examine libraries when file_magic_cmd begins "file"
11169 MAGIC_CMD=$MAGIC_CMD
11170
11171 # Used on cygwin: DLL creation program.
11172 DLLTOOL="$DLLTOOL"
11173
11174 # Used on cygwin: object dumper.
11175 OBJDUMP="$OBJDUMP"
11176
11177 # Used on cygwin: assembler.
11178 AS="$AS"
11179
11180 # The name of the directory that contains temporary libtool files.
11181 objdir=$objdir
11182
11183 # How to create reloadable object files.
11184 reload_flag=$lt_reload_flag
11185 reload_cmds=$lt_reload_cmds
11186
11187 # How to pass a linker flag through the compiler.
11188 wl=$lt_lt_prog_compiler_wl
11189
11190 # Object file suffix (normally "o").
11191 objext="$ac_objext"
11192
11193 # Old archive suffix (normally "a").
11194 libext="$libext"
11195
11196 # Shared library suffix (normally ".so").
11197 shrext_cmds='$shrext_cmds'
11198
11199 # Executable file suffix (normally "").
11200 exeext="$exeext"
11201
11202 # Additional compiler flags for building library objects.
11203 pic_flag=$lt_lt_prog_compiler_pic
11204 pic_mode=$pic_mode
11205
11206 # What is the maximum length of a command?
11207 max_cmd_len=$lt_cv_sys_max_cmd_len
11208
11209 # Does compiler simultaneously support -c and -o options?
11210 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11211
11212 # Must we lock files when doing compilation?
11213 need_locks=$lt_need_locks
11214
11215 # Do we need the lib prefix for modules?
11216 need_lib_prefix=$need_lib_prefix
11217
11218 # Do we need a version for libraries?
11219 need_version=$need_version
11220
11221 # Whether dlopen is supported.
11222 dlopen_support=$enable_dlopen
11223
11224 # Whether dlopen of programs is supported.
11225 dlopen_self=$enable_dlopen_self
11226
11227 # Whether dlopen of statically linked programs is supported.
11228 dlopen_self_static=$enable_dlopen_self_static
11229
11230 # Compiler flag to prevent dynamic linking.
11231 link_static_flag=$lt_lt_prog_compiler_static
11232
11233 # Compiler flag to turn off builtin functions.
11234 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11235
11236 # Compiler flag to allow reflexive dlopens.
11237 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11238
11239 # Compiler flag to generate shared objects directly from archives.
11240 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11241
11242 # Compiler flag to generate thread-safe objects.
11243 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11244
11245 # Library versioning type.
11246 version_type=$version_type
11247
11248 # Format of library name prefix.
11249 libname_spec=$lt_libname_spec
11250
11251 # List of archive names.  First name is the real one, the rest are links.
11252 # The last name is the one that the linker finds with -lNAME.
11253 library_names_spec=$lt_library_names_spec
11254
11255 # The coded name of the library, if different from the real name.
11256 soname_spec=$lt_soname_spec
11257
11258 # Commands used to build and install an old-style archive.
11259 RANLIB=$lt_RANLIB
11260 old_archive_cmds=$lt_old_archive_cmds
11261 old_postinstall_cmds=$lt_old_postinstall_cmds
11262 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11263
11264 # Create an old-style archive from a shared archive.
11265 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11266
11267 # Create a temporary old-style archive to link instead of a shared archive.
11268 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11269
11270 # Commands used to build and install a shared archive.
11271 archive_cmds=$lt_archive_cmds
11272 archive_expsym_cmds=$lt_archive_expsym_cmds
11273 postinstall_cmds=$lt_postinstall_cmds
11274 postuninstall_cmds=$lt_postuninstall_cmds
11275
11276 # Commands used to build a loadable module (assumed same as above if empty)
11277 module_cmds=$lt_module_cmds
11278 module_expsym_cmds=$lt_module_expsym_cmds
11279
11280 # Commands to strip libraries.
11281 old_striplib=$lt_old_striplib
11282 striplib=$lt_striplib
11283
11284 # Dependencies to place before the objects being linked to create a
11285 # shared library.
11286 predep_objects=$lt_predep_objects
11287
11288 # Dependencies to place after the objects being linked to create a
11289 # shared library.
11290 postdep_objects=$lt_postdep_objects
11291
11292 # Dependencies to place before the objects being linked to create a
11293 # shared library.
11294 predeps=$lt_predeps
11295
11296 # Dependencies to place after the objects being linked to create a
11297 # shared library.
11298 postdeps=$lt_postdeps
11299
11300 # The library search path used internally by the compiler when linking
11301 # a shared library.
11302 compiler_lib_search_path=$lt_compiler_lib_search_path
11303
11304 # Method to check whether dependent libraries are shared objects.
11305 deplibs_check_method=$lt_deplibs_check_method
11306
11307 # Command to use when deplibs_check_method == file_magic.
11308 file_magic_cmd=$lt_file_magic_cmd
11309
11310 # Flag that allows shared libraries with undefined symbols to be built.
11311 allow_undefined_flag=$lt_allow_undefined_flag
11312
11313 # Flag that forces no undefined symbols.
11314 no_undefined_flag=$lt_no_undefined_flag
11315
11316 # Commands used to finish a libtool library installation in a directory.
11317 finish_cmds=$lt_finish_cmds
11318
11319 # Same as above, but a single script fragment to be evaled but not shown.
11320 finish_eval=$lt_finish_eval
11321
11322 # Take the output of nm and produce a listing of raw symbols and C names.
11323 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11324
11325 # Transform the output of nm in a proper C declaration
11326 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11327
11328 # Transform the output of nm in a C name address pair
11329 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11330
11331 # This is the shared library runtime path variable.
11332 runpath_var=$runpath_var
11333
11334 # This is the shared library path variable.
11335 shlibpath_var=$shlibpath_var
11336
11337 # Is shlibpath searched before the hard-coded library search path?
11338 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11339
11340 # How to hardcode a shared library path into an executable.
11341 hardcode_action=$hardcode_action
11342
11343 # Whether we should hardcode library paths into libraries.
11344 hardcode_into_libs=$hardcode_into_libs
11345
11346 # Flag to hardcode \$libdir into a binary during linking.
11347 # This must work even if \$libdir does not exist.
11348 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11349
11350 # If ld is used when linking, flag to hardcode \$libdir into
11351 # a binary during linking. This must work even if \$libdir does
11352 # not exist.
11353 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11354
11355 # Whether we need a single -rpath flag with a separated argument.
11356 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11357
11358 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11359 # resulting binary.
11360 hardcode_direct=$hardcode_direct
11361
11362 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11363 # resulting binary.
11364 hardcode_minus_L=$hardcode_minus_L
11365
11366 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11367 # the resulting binary.
11368 hardcode_shlibpath_var=$hardcode_shlibpath_var
11369
11370 # Set to yes if building a shared library automatically hardcodes DIR into the library
11371 # and all subsequent libraries and executables linked against it.
11372 hardcode_automatic=$hardcode_automatic
11373
11374 # Variables whose values should be saved in libtool wrapper scripts and
11375 # restored at relink time.
11376 variables_saved_for_relink="$variables_saved_for_relink"
11377
11378 # Whether libtool must link a program against all its dependency libraries.
11379 link_all_deplibs=$link_all_deplibs
11380
11381 # Compile-time system search path for libraries
11382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11383
11384 # Run-time system search path for libraries
11385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11386
11387 # Fix the shell variable \$srcfile for the compiler.
11388 fix_srcfile_path=$lt_fix_srcfile_path
11389
11390 # Set to yes if exported symbols are required.
11391 always_export_symbols=$always_export_symbols
11392
11393 # The commands to list exported symbols.
11394 export_symbols_cmds=$lt_export_symbols_cmds
11395
11396 # The commands to extract the exported symbol list from a shared archive.
11397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11398
11399 # Symbols that should not be listed in the preloaded symbols.
11400 exclude_expsyms=$lt_exclude_expsyms
11401
11402 # Symbols that must always be exported.
11403 include_expsyms=$lt_include_expsyms
11404
11405 # ### END LIBTOOL CONFIG
11406
11407 __EOF__
11408
11409
11410   case $host_os in
11411   aix3*)
11412     cat <<\EOF >> "$cfgfile"
11413
11414 # AIX sometimes has problems with the GCC collect2 program.  For some
11415 # reason, if we set the COLLECT_NAMES environment variable, the problems
11416 # vanish in a puff of smoke.
11417 if test "X${COLLECT_NAMES+set}" != Xset; then
11418   COLLECT_NAMES=
11419   export COLLECT_NAMES
11420 fi
11421 EOF
11422     ;;
11423   esac
11424
11425   # We use sed instead of cat because bash on DJGPP gets confused if
11426   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11427   # text mode, it properly converts lines to CR/LF.  This bash problem
11428   # is reportedly fixed, but why not run on old versions too?
11429   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11430
11431   mv -f "$cfgfile" "$ofile" || \
11432     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11433   chmod +x "$ofile"
11434
11435 else
11436   # If there is no Makefile yet, we rely on a make rule to execute
11437   # `config.status --recheck' to rerun these tests and create the
11438   # libtool script then.
11439   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11440   if test -f "$ltmain_in"; then
11441     test -f Makefile && make "$ltmain"
11442   fi
11443 fi
11444
11445
11446 ac_ext=c
11447 ac_cpp='$CPP $CPPFLAGS'
11448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11451
11452 CC="$lt_save_CC"
11453
11454
11455 # Check whether --with-tags was given.
11456 if test "${with_tags+set}" = set; then
11457   withval=$with_tags; tagnames="$withval"
11458 fi
11459
11460
11461 if test -f "$ltmain" && test -n "$tagnames"; then
11462   if test ! -f "${ofile}"; then
11463     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11464 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11465   fi
11466
11467   if test -z "$LTCC"; then
11468     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11469     if test -z "$LTCC"; then
11470       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11471 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11472     else
11473       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11474 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11475     fi
11476   fi
11477   if test -z "$LTCFLAGS"; then
11478     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11479   fi
11480
11481   # Extract list of available tagged configurations in $ofile.
11482   # Note that this assumes the entire list is on one line.
11483   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11484
11485   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11486   for tagname in $tagnames; do
11487     IFS="$lt_save_ifs"
11488     # Check whether tagname contains only valid characters
11489     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11490     "") ;;
11491     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11492 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11493    { (exit 1); exit 1; }; }
11494         ;;
11495     esac
11496
11497     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11498     then
11499       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11500 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11501    { (exit 1); exit 1; }; }
11502     fi
11503
11504     # Update the list of available tags.
11505     if test -n "$tagname"; then
11506       echo appending configuration tag \"$tagname\" to $ofile
11507
11508       case $tagname in
11509       CXX)
11510         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11511             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11512             (test "X$CXX" != "Xg++"))) ; then
11513           ac_ext=cpp
11514 ac_cpp='$CXXCPP $CPPFLAGS'
11515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11518
11519
11520
11521
11522 archive_cmds_need_lc_CXX=no
11523 allow_undefined_flag_CXX=
11524 always_export_symbols_CXX=no
11525 archive_expsym_cmds_CXX=
11526 export_dynamic_flag_spec_CXX=
11527 hardcode_direct_CXX=no
11528 hardcode_libdir_flag_spec_CXX=
11529 hardcode_libdir_flag_spec_ld_CXX=
11530 hardcode_libdir_separator_CXX=
11531 hardcode_minus_L_CXX=no
11532 hardcode_shlibpath_var_CXX=unsupported
11533 hardcode_automatic_CXX=no
11534 module_cmds_CXX=
11535 module_expsym_cmds_CXX=
11536 link_all_deplibs_CXX=unknown
11537 old_archive_cmds_CXX=$old_archive_cmds
11538 no_undefined_flag_CXX=
11539 whole_archive_flag_spec_CXX=
11540 enable_shared_with_static_runtimes_CXX=no
11541
11542 # Dependencies to place before and after the object being linked:
11543 predep_objects_CXX=
11544 postdep_objects_CXX=
11545 predeps_CXX=
11546 postdeps_CXX=
11547 compiler_lib_search_path_CXX=
11548
11549 # Source file extension for C++ test sources.
11550 ac_ext=cpp
11551
11552 # Object file extension for compiled C++ test sources.
11553 objext=o
11554 objext_CXX=$objext
11555
11556 # Code to be used in simple compile tests
11557 lt_simple_compile_test_code="int some_variable = 0;"
11558
11559 # Code to be used in simple link tests
11560 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11561
11562 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11563
11564 # If no C compiler was specified, use CC.
11565 LTCC=${LTCC-"$CC"}
11566
11567 # If no C compiler flags were specified, use CFLAGS.
11568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11569
11570 # Allow CC to be a program name with arguments.
11571 compiler=$CC
11572
11573
11574 # save warnings/boilerplate of simple test code
11575 ac_outfile=conftest.$ac_objext
11576 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11578 _lt_compiler_boilerplate=`cat conftest.err`
11579 $rm conftest*
11580
11581 ac_outfile=conftest.$ac_objext
11582 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11584 _lt_linker_boilerplate=`cat conftest.err`
11585 $rm conftest*
11586
11587
11588 # Allow CC to be a program name with arguments.
11589 lt_save_CC=$CC
11590 lt_save_LD=$LD
11591 lt_save_GCC=$GCC
11592 GCC=$GXX
11593 lt_save_with_gnu_ld=$with_gnu_ld
11594 lt_save_path_LD=$lt_cv_path_LD
11595 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11596   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11597 else
11598   $as_unset lt_cv_prog_gnu_ld
11599 fi
11600 if test -n "${lt_cv_path_LDCXX+set}"; then
11601   lt_cv_path_LD=$lt_cv_path_LDCXX
11602 else
11603   $as_unset lt_cv_path_LD
11604 fi
11605 test -z "${LDCXX+set}" || LD=$LDCXX
11606 CC=${CXX-"c++"}
11607 compiler=$CC
11608 compiler_CXX=$CC
11609 for cc_temp in $compiler""; do
11610   case $cc_temp in
11611     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11612     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11613     \-*) ;;
11614     *) break;;
11615   esac
11616 done
11617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11618
11619
11620 # We don't want -fno-exception wen compiling C++ code, so set the
11621 # no_builtin_flag separately
11622 if test "$GXX" = yes; then
11623   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11624 else
11625   lt_prog_compiler_no_builtin_flag_CXX=
11626 fi
11627
11628 if test "$GXX" = yes; then
11629   # Set up default GNU C++ configuration
11630
11631
11632 # Check whether --with-gnu-ld was given.
11633 if test "${with_gnu_ld+set}" = set; then
11634   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11635 else
11636   with_gnu_ld=no
11637 fi
11638
11639 ac_prog=ld
11640 if test "$GCC" = yes; then
11641   # Check if gcc -print-prog-name=ld gives a path.
11642   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11643 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11644   case $host in
11645   *-*-mingw*)
11646     # gcc leaves a trailing carriage return which upsets mingw
11647     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11648   *)
11649     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11650   esac
11651   case $ac_prog in
11652     # Accept absolute paths.
11653     [\\/]* | ?:[\\/]*)
11654       re_direlt='/[^/][^/]*/\.\./'
11655       # Canonicalize the pathname of ld
11656       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11657       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11658         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11659       done
11660       test -z "$LD" && LD="$ac_prog"
11661       ;;
11662   "")
11663     # If it fails, then pretend we aren't using GCC.
11664     ac_prog=ld
11665     ;;
11666   *)
11667     # If it is relative, then search for the first ld in PATH.
11668     with_gnu_ld=unknown
11669     ;;
11670   esac
11671 elif test "$with_gnu_ld" = yes; then
11672   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11673 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11674 else
11675   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11676 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11677 fi
11678 if test "${lt_cv_path_LD+set}" = set; then
11679   echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681   if test -z "$LD"; then
11682   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11683   for ac_dir in $PATH; do
11684     IFS="$lt_save_ifs"
11685     test -z "$ac_dir" && ac_dir=.
11686     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11687       lt_cv_path_LD="$ac_dir/$ac_prog"
11688       # Check to see if the program is GNU ld.  I'd rather use --version,
11689       # but apparently some variants of GNU ld only accept -v.
11690       # Break only if it was the GNU/non-GNU ld that we prefer.
11691       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11692       *GNU* | *'with BFD'*)
11693         test "$with_gnu_ld" != no && break
11694         ;;
11695       *)
11696         test "$with_gnu_ld" != yes && break
11697         ;;
11698       esac
11699     fi
11700   done
11701   IFS="$lt_save_ifs"
11702 else
11703   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11704 fi
11705 fi
11706
11707 LD="$lt_cv_path_LD"
11708 if test -n "$LD"; then
11709   { echo "$as_me:$LINENO: result: $LD" >&5
11710 echo "${ECHO_T}$LD" >&6; }
11711 else
11712   { echo "$as_me:$LINENO: result: no" >&5
11713 echo "${ECHO_T}no" >&6; }
11714 fi
11715 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11716 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11717    { (exit 1); exit 1; }; }
11718 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11719 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11720 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11724 case `$LD -v 2>&1 </dev/null` in
11725 *GNU* | *'with BFD'*)
11726   lt_cv_prog_gnu_ld=yes
11727   ;;
11728 *)
11729   lt_cv_prog_gnu_ld=no
11730   ;;
11731 esac
11732 fi
11733 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11734 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11735 with_gnu_ld=$lt_cv_prog_gnu_ld
11736
11737
11738
11739   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11740   # archiving commands below assume that GNU ld is being used.
11741   if test "$with_gnu_ld" = yes; then
11742     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11743     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'
11744
11745     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11746     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11747
11748     # If archive_cmds runs LD, not CC, wlarc should be empty
11749     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11750     #     investigate it a little bit more. (MM)
11751     wlarc='${wl}'
11752
11753     # ancient GNU ld didn't support --whole-archive et. al.
11754     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11755         grep 'no-whole-archive' > /dev/null; then
11756       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11757     else
11758       whole_archive_flag_spec_CXX=
11759     fi
11760   else
11761     with_gnu_ld=no
11762     wlarc=
11763
11764     # A generic and very simple default shared library creation
11765     # command for GNU C++ for the case where it uses the native
11766     # linker, instead of GNU ld.  If possible, this setting should
11767     # overridden to take advantage of the native linker features on
11768     # the platform it is being used on.
11769     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11770   fi
11771
11772   # Commands to make compiler produce verbose output that lists
11773   # what "hidden" libraries, object files and flags are used when
11774   # linking a shared library.
11775   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11776
11777 else
11778   GXX=no
11779   with_gnu_ld=no
11780   wlarc=
11781 fi
11782
11783 # PORTME: fill in a description of your system's C++ link characteristics
11784 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11785 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11786 ld_shlibs_CXX=yes
11787 case $host_os in
11788   aix3*)
11789     # FIXME: insert proper C++ library support
11790     ld_shlibs_CXX=no
11791     ;;
11792   aix4* | aix5*)
11793     if test "$host_cpu" = ia64; then
11794       # On IA64, the linker does run time linking by default, so we don't
11795       # have to do anything special.
11796       aix_use_runtimelinking=no
11797       exp_sym_flag='-Bexport'
11798       no_entry_flag=""
11799     else
11800       aix_use_runtimelinking=no
11801
11802       # Test if we are trying to use run time linking or normal
11803       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11804       # need to do runtime linking.
11805       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11806         for ld_flag in $LDFLAGS; do
11807           case $ld_flag in
11808           *-brtl*)
11809             aix_use_runtimelinking=yes
11810             break
11811             ;;
11812           esac
11813         done
11814         ;;
11815       esac
11816
11817       exp_sym_flag='-bexport'
11818       no_entry_flag='-bnoentry'
11819     fi
11820
11821     # When large executables or shared objects are built, AIX ld can
11822     # have problems creating the table of contents.  If linking a library
11823     # or program results in "error TOC overflow" add -mminimal-toc to
11824     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11825     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11826
11827     archive_cmds_CXX=''
11828     hardcode_direct_CXX=yes
11829     hardcode_libdir_separator_CXX=':'
11830     link_all_deplibs_CXX=yes
11831
11832     if test "$GXX" = yes; then
11833       case $host_os in aix4.[012]|aix4.[012].*)
11834       # We only want to do this on AIX 4.2 and lower, the check
11835       # below for broken collect2 doesn't work under 4.3+
11836         collect2name=`${CC} -print-prog-name=collect2`
11837         if test -f "$collect2name" && \
11838            strings "$collect2name" | grep resolve_lib_name >/dev/null
11839         then
11840           # We have reworked collect2
11841           :
11842         else
11843           # We have old collect2
11844           hardcode_direct_CXX=unsupported
11845           # It fails to find uninstalled libraries when the uninstalled
11846           # path is not listed in the libpath.  Setting hardcode_minus_L
11847           # to unsupported forces relinking
11848           hardcode_minus_L_CXX=yes
11849           hardcode_libdir_flag_spec_CXX='-L$libdir'
11850           hardcode_libdir_separator_CXX=
11851         fi
11852         ;;
11853       esac
11854       shared_flag='-shared'
11855       if test "$aix_use_runtimelinking" = yes; then
11856         shared_flag="$shared_flag "'${wl}-G'
11857       fi
11858     else
11859       # not using gcc
11860       if test "$host_cpu" = ia64; then
11861         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11862         # chokes on -Wl,-G. The following line is correct:
11863         shared_flag='-G'
11864       else
11865         if test "$aix_use_runtimelinking" = yes; then
11866           shared_flag='${wl}-G'
11867         else
11868           shared_flag='${wl}-bM:SRE'
11869         fi
11870       fi
11871     fi
11872
11873     # It seems that -bexpall does not export symbols beginning with
11874     # underscore (_), so it is better to generate a list of symbols to export.
11875     always_export_symbols_CXX=yes
11876     if test "$aix_use_runtimelinking" = yes; then
11877       # Warning - without using the other runtime loading flags (-brtl),
11878       # -berok will link without error, but may produce a broken library.
11879       allow_undefined_flag_CXX='-berok'
11880       # Determine the default libpath from the value encoded in an empty executable.
11881       cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h.  */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h.  */
11887
11888 int
11889 main ()
11890 {
11891
11892   ;
11893   return 0;
11894 }
11895 _ACEOF
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (ac_try="$ac_link"
11898 case "(($ac_try" in
11899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900   *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903   (eval "$ac_link") 2>conftest.er1
11904   ac_status=$?
11905   grep -v '^ *+' conftest.er1 >conftest.err
11906   rm -f conftest.er1
11907   cat conftest.err >&5
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); } && {
11910          test -z "$ac_cxx_werror_flag" ||
11911          test ! -s conftest.err
11912        } && test -s conftest$ac_exeext &&
11913        $as_test_x conftest$ac_exeext; then
11914
11915 lt_aix_libpath_sed='
11916     /Import File Strings/,/^$/ {
11917         /^0/ {
11918             s/^0  *\(.*\)$/\1/
11919             p
11920         }
11921     }'
11922 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11923 # Check for a 64-bit object if we didn't find anything.
11924 if test -z "$aix_libpath"; then
11925   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11926 fi
11927 else
11928   echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931
11932 fi
11933
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935       conftest$ac_exeext conftest.$ac_ext
11936 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11937
11938       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11939
11940       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"
11941      else
11942       if test "$host_cpu" = ia64; then
11943         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11944         allow_undefined_flag_CXX="-z nodefs"
11945         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"
11946       else
11947         # Determine the default libpath from the value encoded in an empty executable.
11948         cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954
11955 int
11956 main ()
11957 {
11958
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967   *) ac_try_echo=$ac_try;;
11968 esac
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970   (eval "$ac_link") 2>conftest.er1
11971   ac_status=$?
11972   grep -v '^ *+' conftest.er1 >conftest.err
11973   rm -f conftest.er1
11974   cat conftest.err >&5
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } && {
11977          test -z "$ac_cxx_werror_flag" ||
11978          test ! -s conftest.err
11979        } && test -s conftest$ac_exeext &&
11980        $as_test_x conftest$ac_exeext; then
11981
11982 lt_aix_libpath_sed='
11983     /Import File Strings/,/^$/ {
11984         /^0/ {
11985             s/^0  *\(.*\)$/\1/
11986             p
11987         }
11988     }'
11989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11990 # Check for a 64-bit object if we didn't find anything.
11991 if test -z "$aix_libpath"; then
11992   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11993 fi
11994 else
11995   echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998
11999 fi
12000
12001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12002       conftest$ac_exeext conftest.$ac_ext
12003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12004
12005         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12006         # Warning - without using the other run time loading flags,
12007         # -berok will link without error, but may produce a broken library.
12008         no_undefined_flag_CXX=' ${wl}-bernotok'
12009         allow_undefined_flag_CXX=' ${wl}-berok'
12010         # Exported symbols can be pulled into shared objects from archives
12011         whole_archive_flag_spec_CXX='$convenience'
12012         archive_cmds_need_lc_CXX=yes
12013         # This is similar to how AIX traditionally builds its shared libraries.
12014         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'
12015       fi
12016     fi
12017     ;;
12018
12019   beos*)
12020     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12021       allow_undefined_flag_CXX=unsupported
12022       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12023       # support --undefined.  This deserves some investigation.  FIXME
12024       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12025     else
12026       ld_shlibs_CXX=no
12027     fi
12028     ;;
12029
12030   chorus*)
12031     case $cc_basename in
12032       *)
12033         # FIXME: insert proper C++ library support
12034         ld_shlibs_CXX=no
12035         ;;
12036     esac
12037     ;;
12038
12039   cygwin* | mingw* | pw32*)
12040     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12041     # as there is no search path for DLLs.
12042     hardcode_libdir_flag_spec_CXX='-L$libdir'
12043     allow_undefined_flag_CXX=unsupported
12044     always_export_symbols_CXX=no
12045     enable_shared_with_static_runtimes_CXX=yes
12046
12047     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12048       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'
12049       # If the export-symbols file already is a .def file (1st line
12050       # is EXPORTS), use it as is; otherwise, prepend...
12051       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12052         cp $export_symbols $output_objdir/$soname.def;
12053       else
12054         echo EXPORTS > $output_objdir/$soname.def;
12055         cat $export_symbols >> $output_objdir/$soname.def;
12056       fi~
12057       $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'
12058     else
12059       ld_shlibs_CXX=no
12060     fi
12061   ;;
12062       darwin* | rhapsody*)
12063         case $host_os in
12064         rhapsody* | darwin1.[012])
12065          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12066          ;;
12067        *) # Darwin 1.3 on
12068          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12069            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12070          else
12071            case ${MACOSX_DEPLOYMENT_TARGET} in
12072              10.[012])
12073                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12074                ;;
12075              10.*)
12076                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12077                ;;
12078            esac
12079          fi
12080          ;;
12081         esac
12082       archive_cmds_need_lc_CXX=no
12083       hardcode_direct_CXX=no
12084       hardcode_automatic_CXX=yes
12085       hardcode_shlibpath_var_CXX=unsupported
12086       whole_archive_flag_spec_CXX=''
12087       link_all_deplibs_CXX=yes
12088
12089     if test "$GXX" = yes ; then
12090       lt_int_apple_cc_single_mod=no
12091       output_verbose_link_cmd='echo'
12092       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12093        lt_int_apple_cc_single_mod=yes
12094       fi
12095       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12096        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12097       else
12098           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'
12099         fi
12100         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12101         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12102           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12103             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}'
12104           else
12105             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}'
12106           fi
12107             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}'
12108       else
12109       case $cc_basename in
12110         xlc*)
12111          output_verbose_link_cmd='echo'
12112           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
12113           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12114           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12115           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12116           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}'
12117           ;;
12118        *)
12119          ld_shlibs_CXX=no
12120           ;;
12121       esac
12122       fi
12123         ;;
12124
12125   dgux*)
12126     case $cc_basename in
12127       ec++*)
12128         # FIXME: insert proper C++ library support
12129         ld_shlibs_CXX=no
12130         ;;
12131       ghcx*)
12132         # Green Hills C++ Compiler
12133         # FIXME: insert proper C++ library support
12134         ld_shlibs_CXX=no
12135         ;;
12136       *)
12137         # FIXME: insert proper C++ library support
12138         ld_shlibs_CXX=no
12139         ;;
12140     esac
12141     ;;
12142   freebsd[12]*)
12143     # C++ shared libraries reported to be fairly broken before switch to ELF
12144     ld_shlibs_CXX=no
12145     ;;
12146   freebsd-elf*)
12147     archive_cmds_need_lc_CXX=no
12148     ;;
12149   freebsd* | dragonfly*)
12150     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12151     # conventions
12152     ld_shlibs_CXX=yes
12153     ;;
12154   gnu*)
12155     ;;
12156   hpux9*)
12157     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12158     hardcode_libdir_separator_CXX=:
12159     export_dynamic_flag_spec_CXX='${wl}-E'
12160     hardcode_direct_CXX=yes
12161     hardcode_minus_L_CXX=yes # Not in the search PATH,
12162                                 # but as the default
12163                                 # location of the library.
12164
12165     case $cc_basename in
12166     CC*)
12167       # FIXME: insert proper C++ library support
12168       ld_shlibs_CXX=no
12169       ;;
12170     aCC*)
12171       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'
12172       # Commands to make compiler produce verbose output that lists
12173       # what "hidden" libraries, object files and flags are used when
12174       # linking a shared library.
12175       #
12176       # There doesn't appear to be a way to prevent this compiler from
12177       # explicitly linking system object files so we need to strip them
12178       # from the output so that they don't get included in the library
12179       # dependencies.
12180       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'
12181       ;;
12182     *)
12183       if test "$GXX" = yes; then
12184         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'
12185       else
12186         # FIXME: insert proper C++ library support
12187         ld_shlibs_CXX=no
12188       fi
12189       ;;
12190     esac
12191     ;;
12192   hpux10*|hpux11*)
12193     if test $with_gnu_ld = no; then
12194       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12195       hardcode_libdir_separator_CXX=:
12196
12197       case $host_cpu in
12198       hppa*64*|ia64*) ;;
12199       *)
12200         export_dynamic_flag_spec_CXX='${wl}-E'
12201         ;;
12202       esac
12203     fi
12204     case $host_cpu in
12205     hppa*64*|ia64*)
12206       hardcode_direct_CXX=no
12207       hardcode_shlibpath_var_CXX=no
12208       ;;
12209     *)
12210       hardcode_direct_CXX=yes
12211       hardcode_minus_L_CXX=yes # Not in the search PATH,
12212                                               # but as the default
12213                                               # location of the library.
12214       ;;
12215     esac
12216
12217     case $cc_basename in
12218       CC*)
12219         # FIXME: insert proper C++ library support
12220         ld_shlibs_CXX=no
12221         ;;
12222       aCC*)
12223         case $host_cpu in
12224         hppa*64*)
12225           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12226           ;;
12227         ia64*)
12228           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12229           ;;
12230         *)
12231           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12232           ;;
12233         esac
12234         # Commands to make compiler produce verbose output that lists
12235         # what "hidden" libraries, object files and flags are used when
12236         # linking a shared library.
12237         #
12238         # There doesn't appear to be a way to prevent this compiler from
12239         # explicitly linking system object files so we need to strip them
12240         # from the output so that they don't get included in the library
12241         # dependencies.
12242         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'
12243         ;;
12244       *)
12245         if test "$GXX" = yes; then
12246           if test $with_gnu_ld = no; then
12247             case $host_cpu in
12248             hppa*64*)
12249               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12250               ;;
12251             ia64*)
12252               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12253               ;;
12254             *)
12255               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'
12256               ;;
12257             esac
12258           fi
12259         else
12260           # FIXME: insert proper C++ library support
12261           ld_shlibs_CXX=no
12262         fi
12263         ;;
12264     esac
12265     ;;
12266   interix[3-9]*)
12267     hardcode_direct_CXX=no
12268     hardcode_shlibpath_var_CXX=no
12269     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12270     export_dynamic_flag_spec_CXX='${wl}-E'
12271     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12272     # Instead, shared libraries are loaded at an image base (0x10000000 by
12273     # default) and relocated if they conflict, which is a slow very memory
12274     # consuming and fragmenting process.  To avoid this, we pick a random,
12275     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12276     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12277     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'
12278     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'
12279     ;;
12280   irix5* | irix6*)
12281     case $cc_basename in
12282       CC*)
12283         # SGI C++
12284         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'
12285
12286         # Archives containing C++ object files must be created using
12287         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12288         # necessary to make sure instantiated templates are included
12289         # in the archive.
12290         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12291         ;;
12292       *)
12293         if test "$GXX" = yes; then
12294           if test "$with_gnu_ld" = no; then
12295             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'
12296           else
12297             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'
12298           fi
12299         fi
12300         link_all_deplibs_CXX=yes
12301         ;;
12302     esac
12303     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12304     hardcode_libdir_separator_CXX=:
12305     ;;
12306   linux* | k*bsd*-gnu)
12307     case $cc_basename in
12308       KCC*)
12309         # Kuck and Associates, Inc. (KAI) C++ Compiler
12310
12311         # KCC will only create a shared library if the output file
12312         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12313         # to its proper name (with version) after linking.
12314         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'
12315         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'
12316         # Commands to make compiler produce verbose output that lists
12317         # what "hidden" libraries, object files and flags are used when
12318         # linking a shared library.
12319         #
12320         # There doesn't appear to be a way to prevent this compiler from
12321         # explicitly linking system object files so we need to strip them
12322         # from the output so that they don't get included in the library
12323         # dependencies.
12324         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'
12325
12326         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12327         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12328
12329         # Archives containing C++ object files must be created using
12330         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12331         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12332         ;;
12333       icpc*)
12334         # Intel C++
12335         with_gnu_ld=yes
12336         # version 8.0 and above of icpc choke on multiply defined symbols
12337         # if we add $predep_objects and $postdep_objects, however 7.1 and
12338         # earlier do not add the objects themselves.
12339         case `$CC -V 2>&1` in
12340         *"Version 7."*)
12341           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12342           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'
12343           ;;
12344         *)  # Version 8.0 or newer
12345           tmp_idyn=
12346           case $host_cpu in
12347             ia64*) tmp_idyn=' -i_dynamic';;
12348           esac
12349           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12350           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'
12351           ;;
12352         esac
12353         archive_cmds_need_lc_CXX=no
12354         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12355         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12356         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12357         ;;
12358       pgCC*)
12359         # Portland Group C++ compiler
12360         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12361         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'
12362
12363         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12364         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12365         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'
12366         ;;
12367       cxx*)
12368         # Compaq C++
12369         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12370         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'
12371
12372         runpath_var=LD_RUN_PATH
12373         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12374         hardcode_libdir_separator_CXX=:
12375
12376         # Commands to make compiler produce verbose output that lists
12377         # what "hidden" libraries, object files and flags are used when
12378         # linking a shared library.
12379         #
12380         # There doesn't appear to be a way to prevent this compiler from
12381         # explicitly linking system object files so we need to strip them
12382         # from the output so that they don't get included in the library
12383         # dependencies.
12384         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'
12385         ;;
12386       *)
12387         case `$CC -V 2>&1 | sed 5q` in
12388         *Sun\ C*)
12389           # Sun C++ 5.9
12390           no_undefined_flag_CXX=' -zdefs'
12391           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12392           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12393           hardcode_libdir_flag_spec_CXX='-R$libdir'
12394           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12395
12396           # Not sure whether something based on
12397           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12398           # would be better.
12399           output_verbose_link_cmd='echo'
12400
12401           # Archives containing C++ object files must be created using
12402           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12403           # necessary to make sure instantiated templates are included
12404           # in the archive.
12405           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12406           ;;
12407         esac
12408         ;;
12409     esac
12410     ;;
12411   lynxos*)
12412     # FIXME: insert proper C++ library support
12413     ld_shlibs_CXX=no
12414     ;;
12415   m88k*)
12416     # FIXME: insert proper C++ library support
12417     ld_shlibs_CXX=no
12418     ;;
12419   mvs*)
12420     case $cc_basename in
12421       cxx*)
12422         # FIXME: insert proper C++ library support
12423         ld_shlibs_CXX=no
12424         ;;
12425       *)
12426         # FIXME: insert proper C++ library support
12427         ld_shlibs_CXX=no
12428         ;;
12429     esac
12430     ;;
12431   netbsd* | netbsdelf*-gnu)
12432     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12433       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12434       wlarc=
12435       hardcode_libdir_flag_spec_CXX='-R$libdir'
12436       hardcode_direct_CXX=yes
12437       hardcode_shlibpath_var_CXX=no
12438     fi
12439     # Workaround some broken pre-1.5 toolchains
12440     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12441     ;;
12442   openbsd2*)
12443     # C++ shared libraries are fairly broken
12444     ld_shlibs_CXX=no
12445     ;;
12446   openbsd*)
12447     if test -f /usr/libexec/ld.so; then
12448       hardcode_direct_CXX=yes
12449       hardcode_shlibpath_var_CXX=no
12450       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12451       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12452       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12453         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12454         export_dynamic_flag_spec_CXX='${wl}-E'
12455         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12456       fi
12457       output_verbose_link_cmd='echo'
12458     else
12459       ld_shlibs_CXX=no
12460     fi
12461     ;;
12462   osf3*)
12463     case $cc_basename in
12464       KCC*)
12465         # Kuck and Associates, Inc. (KAI) C++ Compiler
12466
12467         # KCC will only create a shared library if the output file
12468         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12469         # to its proper name (with version) after linking.
12470         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'
12471
12472         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12473         hardcode_libdir_separator_CXX=:
12474
12475         # Archives containing C++ object files must be created using
12476         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12477         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12478
12479         ;;
12480       RCC*)
12481         # Rational C++ 2.4.1
12482         # FIXME: insert proper C++ library support
12483         ld_shlibs_CXX=no
12484         ;;
12485       cxx*)
12486         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12487         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'
12488
12489         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12490         hardcode_libdir_separator_CXX=:
12491
12492         # Commands to make compiler produce verbose output that lists
12493         # what "hidden" libraries, object files and flags are used when
12494         # linking a shared library.
12495         #
12496         # There doesn't appear to be a way to prevent this compiler from
12497         # explicitly linking system object files so we need to strip them
12498         # from the output so that they don't get included in the library
12499         # dependencies.
12500         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'
12501         ;;
12502       *)
12503         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12504           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12505           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'
12506
12507           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12508           hardcode_libdir_separator_CXX=:
12509
12510           # Commands to make compiler produce verbose output that lists
12511           # what "hidden" libraries, object files and flags are used when
12512           # linking a shared library.
12513           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12514
12515         else
12516           # FIXME: insert proper C++ library support
12517           ld_shlibs_CXX=no
12518         fi
12519         ;;
12520     esac
12521     ;;
12522   osf4* | osf5*)
12523     case $cc_basename in
12524       KCC*)
12525         # Kuck and Associates, Inc. (KAI) C++ Compiler
12526
12527         # KCC will only create a shared library if the output file
12528         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12529         # to its proper name (with version) after linking.
12530         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'
12531
12532         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12533         hardcode_libdir_separator_CXX=:
12534
12535         # Archives containing C++ object files must be created using
12536         # the KAI C++ compiler.
12537         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12538         ;;
12539       RCC*)
12540         # Rational C++ 2.4.1
12541         # FIXME: insert proper C++ library support
12542         ld_shlibs_CXX=no
12543         ;;
12544       cxx*)
12545         allow_undefined_flag_CXX=' -expect_unresolved \*'
12546         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'
12547         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12548           echo "-hidden">> $lib.exp~
12549           $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~
12550           $rm $lib.exp'
12551
12552         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12553         hardcode_libdir_separator_CXX=:
12554
12555         # Commands to make compiler produce verbose output that lists
12556         # what "hidden" libraries, object files and flags are used when
12557         # linking a shared library.
12558         #
12559         # There doesn't appear to be a way to prevent this compiler from
12560         # explicitly linking system object files so we need to strip them
12561         # from the output so that they don't get included in the library
12562         # dependencies.
12563         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'
12564         ;;
12565       *)
12566         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12567           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12568          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'
12569
12570           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12571           hardcode_libdir_separator_CXX=:
12572
12573           # Commands to make compiler produce verbose output that lists
12574           # what "hidden" libraries, object files and flags are used when
12575           # linking a shared library.
12576           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12577
12578         else
12579           # FIXME: insert proper C++ library support
12580           ld_shlibs_CXX=no
12581         fi
12582         ;;
12583     esac
12584     ;;
12585   psos*)
12586     # FIXME: insert proper C++ library support
12587     ld_shlibs_CXX=no
12588     ;;
12589   sunos4*)
12590     case $cc_basename in
12591       CC*)
12592         # Sun C++ 4.x
12593         # FIXME: insert proper C++ library support
12594         ld_shlibs_CXX=no
12595         ;;
12596       lcc*)
12597         # Lucid
12598         # FIXME: insert proper C++ library support
12599         ld_shlibs_CXX=no
12600         ;;
12601       *)
12602         # FIXME: insert proper C++ library support
12603         ld_shlibs_CXX=no
12604         ;;
12605     esac
12606     ;;
12607   solaris*)
12608     case $cc_basename in
12609       CC*)
12610         # Sun C++ 4.2, 5.x and Centerline C++
12611         archive_cmds_need_lc_CXX=yes
12612         no_undefined_flag_CXX=' -zdefs'
12613         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12614         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12615         $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'
12616
12617         hardcode_libdir_flag_spec_CXX='-R$libdir'
12618         hardcode_shlibpath_var_CXX=no
12619         case $host_os in
12620           solaris2.[0-5] | solaris2.[0-5].*) ;;
12621           *)
12622             # The compiler driver will combine and reorder linker options,
12623             # but understands `-z linker_flag'.
12624             # Supported since Solaris 2.6 (maybe 2.5.1?)
12625             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12626             ;;
12627         esac
12628         link_all_deplibs_CXX=yes
12629
12630         output_verbose_link_cmd='echo'
12631
12632         # Archives containing C++ object files must be created using
12633         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12634         # necessary to make sure instantiated templates are included
12635         # in the archive.
12636         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12637         ;;
12638       gcx*)
12639         # Green Hills C++ Compiler
12640         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12641
12642         # The C++ compiler must be used to create the archive.
12643         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12644         ;;
12645       *)
12646         # GNU C++ compiler with Solaris linker
12647         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12648           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12649           if $CC --version | grep -v '^2\.7' > /dev/null; then
12650             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12651             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12652                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12653
12654             # Commands to make compiler produce verbose output that lists
12655             # what "hidden" libraries, object files and flags are used when
12656             # linking a shared library.
12657             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12658           else
12659             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12660             # platform.
12661             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12662             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12663                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12664
12665             # Commands to make compiler produce verbose output that lists
12666             # what "hidden" libraries, object files and flags are used when
12667             # linking a shared library.
12668             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12669           fi
12670
12671           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12672           case $host_os in
12673           solaris2.[0-5] | solaris2.[0-5].*) ;;
12674           *)
12675             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12676             ;;
12677           esac
12678         fi
12679         ;;
12680     esac
12681     ;;
12682   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12683     no_undefined_flag_CXX='${wl}-z,text'
12684     archive_cmds_need_lc_CXX=no
12685     hardcode_shlibpath_var_CXX=no
12686     runpath_var='LD_RUN_PATH'
12687
12688     case $cc_basename in
12689       CC*)
12690         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12691         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12692         ;;
12693       *)
12694         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12695         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12696         ;;
12697     esac
12698     ;;
12699   sysv5* | sco3.2v5* | sco5v6*)
12700     # Note: We can NOT use -z defs as we might desire, because we do not
12701     # link with -lc, and that would cause any symbols used from libc to
12702     # always be unresolved, which means just about no library would
12703     # ever link correctly.  If we're not using GNU ld we use -z text
12704     # though, which does catch some bad symbols but isn't as heavy-handed
12705     # as -z defs.
12706     # For security reasons, it is highly recommended that you always
12707     # use absolute paths for naming shared libraries, and exclude the
12708     # DT_RUNPATH tag from executables and libraries.  But doing so
12709     # requires that you compile everything twice, which is a pain.
12710     # So that behaviour is only enabled if SCOABSPATH is set to a
12711     # non-empty value in the environment.  Most likely only useful for
12712     # creating official distributions of packages.
12713     # This is a hack until libtool officially supports absolute path
12714     # names for shared libraries.
12715     no_undefined_flag_CXX='${wl}-z,text'
12716     allow_undefined_flag_CXX='${wl}-z,nodefs'
12717     archive_cmds_need_lc_CXX=no
12718     hardcode_shlibpath_var_CXX=no
12719     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12720     hardcode_libdir_separator_CXX=':'
12721     link_all_deplibs_CXX=yes
12722     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12723     runpath_var='LD_RUN_PATH'
12724
12725     case $cc_basename in
12726       CC*)
12727         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12728         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12729         ;;
12730       *)
12731         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12732         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12733         ;;
12734     esac
12735     ;;
12736   tandem*)
12737     case $cc_basename in
12738       NCC*)
12739         # NonStop-UX NCC 3.20
12740         # FIXME: insert proper C++ library support
12741         ld_shlibs_CXX=no
12742         ;;
12743       *)
12744         # FIXME: insert proper C++ library support
12745         ld_shlibs_CXX=no
12746         ;;
12747     esac
12748     ;;
12749   vxworks*)
12750     # FIXME: insert proper C++ library support
12751     ld_shlibs_CXX=no
12752     ;;
12753   *)
12754     # FIXME: insert proper C++ library support
12755     ld_shlibs_CXX=no
12756     ;;
12757 esac
12758 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12759 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12760 test "$ld_shlibs_CXX" = no && can_build_shared=no
12761
12762 GCC_CXX="$GXX"
12763 LD_CXX="$LD"
12764
12765
12766 cat > conftest.$ac_ext <<EOF
12767 class Foo
12768 {
12769 public:
12770   Foo (void) { a = 0; }
12771 private:
12772   int a;
12773 };
12774 EOF
12775
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777   (eval $ac_compile) 2>&5
12778   ac_status=$?
12779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780   (exit $ac_status); }; then
12781   # Parse the compiler output and extract the necessary
12782   # objects, libraries and library flags.
12783
12784   # Sentinel used to keep track of whether or not we are before
12785   # the conftest object file.
12786   pre_test_object_deps_done=no
12787
12788   # The `*' in the case matches for architectures that use `case' in
12789   # $output_verbose_cmd can trigger glob expansion during the loop
12790   # eval without this substitution.
12791   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12792
12793   for p in `eval $output_verbose_link_cmd`; do
12794     case $p in
12795
12796     -L* | -R* | -l*)
12797        # Some compilers place space between "-{L,R}" and the path.
12798        # Remove the space.
12799        if test $p = "-L" \
12800           || test $p = "-R"; then
12801          prev=$p
12802          continue
12803        else
12804          prev=
12805        fi
12806
12807        if test "$pre_test_object_deps_done" = no; then
12808          case $p in
12809          -L* | -R*)
12810            # Internal compiler library paths should come after those
12811            # provided the user.  The postdeps already come after the
12812            # user supplied libs so there is no need to process them.
12813            if test -z "$compiler_lib_search_path_CXX"; then
12814              compiler_lib_search_path_CXX="${prev}${p}"
12815            else
12816              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12817            fi
12818            ;;
12819          # The "-l" case would never come before the object being
12820          # linked, so don't bother handling this case.
12821          esac
12822        else
12823          if test -z "$postdeps_CXX"; then
12824            postdeps_CXX="${prev}${p}"
12825          else
12826            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12827          fi
12828        fi
12829        ;;
12830
12831     *.$objext)
12832        # This assumes that the test object file only shows up
12833        # once in the compiler output.
12834        if test "$p" = "conftest.$objext"; then
12835          pre_test_object_deps_done=yes
12836          continue
12837        fi
12838
12839        if test "$pre_test_object_deps_done" = no; then
12840          if test -z "$predep_objects_CXX"; then
12841            predep_objects_CXX="$p"
12842          else
12843            predep_objects_CXX="$predep_objects_CXX $p"
12844          fi
12845        else
12846          if test -z "$postdep_objects_CXX"; then
12847            postdep_objects_CXX="$p"
12848          else
12849            postdep_objects_CXX="$postdep_objects_CXX $p"
12850          fi
12851        fi
12852        ;;
12853
12854     *) ;; # Ignore the rest.
12855
12856     esac
12857   done
12858
12859   # Clean up.
12860   rm -f a.out a.exe
12861 else
12862   echo "libtool.m4: error: problem compiling CXX test program"
12863 fi
12864
12865 $rm -f confest.$objext
12866
12867 # PORTME: override above test on systems where it is broken
12868 case $host_os in
12869 interix[3-9]*)
12870   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12871   # hack all around it, let's just trust "g++" to DTRT.
12872   predep_objects_CXX=
12873   postdep_objects_CXX=
12874   postdeps_CXX=
12875   ;;
12876
12877 linux*)
12878   case `$CC -V 2>&1 | sed 5q` in
12879   *Sun\ C*)
12880     # Sun C++ 5.9
12881     #
12882     # The more standards-conforming stlport4 library is
12883     # incompatible with the Cstd library. Avoid specifying
12884     # it if it's in CXXFLAGS. Ignore libCrun as
12885     # -library=stlport4 depends on it.
12886     case " $CXX $CXXFLAGS " in
12887     *" -library=stlport4 "*)
12888       solaris_use_stlport4=yes
12889       ;;
12890     esac
12891     if test "$solaris_use_stlport4" != yes; then
12892       postdeps_CXX='-library=Cstd -library=Crun'
12893     fi
12894     ;;
12895   esac
12896   ;;
12897
12898 solaris*)
12899   case $cc_basename in
12900   CC*)
12901     # The more standards-conforming stlport4 library is
12902     # incompatible with the Cstd library. Avoid specifying
12903     # it if it's in CXXFLAGS. Ignore libCrun as
12904     # -library=stlport4 depends on it.
12905     case " $CXX $CXXFLAGS " in
12906     *" -library=stlport4 "*)
12907       solaris_use_stlport4=yes
12908       ;;
12909     esac
12910
12911     # Adding this requires a known-good setup of shared libraries for
12912     # Sun compiler versions before 5.6, else PIC objects from an old
12913     # archive will be linked into the output, leading to subtle bugs.
12914     if test "$solaris_use_stlport4" != yes; then
12915       postdeps_CXX='-library=Cstd -library=Crun'
12916     fi
12917     ;;
12918   esac
12919   ;;
12920 esac
12921
12922
12923 case " $postdeps_CXX " in
12924 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12925 esac
12926
12927 lt_prog_compiler_wl_CXX=
12928 lt_prog_compiler_pic_CXX=
12929 lt_prog_compiler_static_CXX=
12930
12931 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12932 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12933
12934   # C++ specific cases for pic, static, wl, etc.
12935   if test "$GXX" = yes; then
12936     lt_prog_compiler_wl_CXX='-Wl,'
12937     lt_prog_compiler_static_CXX='-static'
12938
12939     case $host_os in
12940     aix*)
12941       # All AIX code is PIC.
12942       if test "$host_cpu" = ia64; then
12943         # AIX 5 now supports IA64 processor
12944         lt_prog_compiler_static_CXX='-Bstatic'
12945       fi
12946       ;;
12947     amigaos*)
12948       # FIXME: we need at least 68020 code to build shared libraries, but
12949       # adding the `-m68020' flag to GCC prevents building anything better,
12950       # like `-m68040'.
12951       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12952       ;;
12953     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12954       # PIC is the default for these OSes.
12955       ;;
12956     mingw* | cygwin* | os2* | pw32*)
12957       # This hack is so that the source file can tell whether it is being
12958       # built for inclusion in a dll (and should export symbols for example).
12959       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12960       # (--disable-auto-import) libraries
12961       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12962       ;;
12963     darwin* | rhapsody*)
12964       # PIC is the default on this platform
12965       # Common symbols not allowed in MH_DYLIB files
12966       lt_prog_compiler_pic_CXX='-fno-common'
12967       ;;
12968     *djgpp*)
12969       # DJGPP does not support shared libraries at all
12970       lt_prog_compiler_pic_CXX=
12971       ;;
12972     interix[3-9]*)
12973       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12974       # Instead, we relocate shared libraries at runtime.
12975       ;;
12976     sysv4*MP*)
12977       if test -d /usr/nec; then
12978         lt_prog_compiler_pic_CXX=-Kconform_pic
12979       fi
12980       ;;
12981     hpux*)
12982       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12983       # not for PA HP-UX.
12984       case $host_cpu in
12985       hppa*64*|ia64*)
12986         ;;
12987       *)
12988         lt_prog_compiler_pic_CXX='-fPIC'
12989         ;;
12990       esac
12991       ;;
12992     *)
12993       lt_prog_compiler_pic_CXX='-fPIC'
12994       ;;
12995     esac
12996   else
12997     case $host_os in
12998       aix4* | aix5*)
12999         # All AIX code is PIC.
13000         if test "$host_cpu" = ia64; then
13001           # AIX 5 now supports IA64 processor
13002           lt_prog_compiler_static_CXX='-Bstatic'
13003         else
13004           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13005         fi
13006         ;;
13007       chorus*)
13008         case $cc_basename in
13009         cxch68*)
13010           # Green Hills C++ Compiler
13011           # _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"
13012           ;;
13013         esac
13014         ;;
13015        darwin*)
13016          # PIC is the default on this platform
13017          # Common symbols not allowed in MH_DYLIB files
13018          case $cc_basename in
13019            xlc*)
13020            lt_prog_compiler_pic_CXX='-qnocommon'
13021            lt_prog_compiler_wl_CXX='-Wl,'
13022            ;;
13023          esac
13024        ;;
13025       dgux*)
13026         case $cc_basename in
13027           ec++*)
13028             lt_prog_compiler_pic_CXX='-KPIC'
13029             ;;
13030           ghcx*)
13031             # Green Hills C++ Compiler
13032             lt_prog_compiler_pic_CXX='-pic'
13033             ;;
13034           *)
13035             ;;
13036         esac
13037         ;;
13038       freebsd* | dragonfly*)
13039         # FreeBSD uses GNU C++
13040         ;;
13041       hpux9* | hpux10* | hpux11*)
13042         case $cc_basename in
13043           CC*)
13044             lt_prog_compiler_wl_CXX='-Wl,'
13045             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13046             if test "$host_cpu" != ia64; then
13047               lt_prog_compiler_pic_CXX='+Z'
13048             fi
13049             ;;
13050           aCC*)
13051             lt_prog_compiler_wl_CXX='-Wl,'
13052             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13053             case $host_cpu in
13054             hppa*64*|ia64*)
13055               # +Z the default
13056               ;;
13057             *)
13058               lt_prog_compiler_pic_CXX='+Z'
13059               ;;
13060             esac
13061             ;;
13062           *)
13063             ;;
13064         esac
13065         ;;
13066       interix*)
13067         # This is c89, which is MS Visual C++ (no shared libs)
13068         # Anyone wants to do a port?
13069         ;;
13070       irix5* | irix6* | nonstopux*)
13071         case $cc_basename in
13072           CC*)
13073             lt_prog_compiler_wl_CXX='-Wl,'
13074             lt_prog_compiler_static_CXX='-non_shared'
13075             # CC pic flag -KPIC is the default.
13076             ;;
13077           *)
13078             ;;
13079         esac
13080         ;;
13081       linux* | k*bsd*-gnu)
13082         case $cc_basename in
13083           KCC*)
13084             # KAI C++ Compiler
13085             lt_prog_compiler_wl_CXX='--backend -Wl,'
13086             lt_prog_compiler_pic_CXX='-fPIC'
13087             ;;
13088           icpc* | ecpc*)
13089             # Intel C++
13090             lt_prog_compiler_wl_CXX='-Wl,'
13091             lt_prog_compiler_pic_CXX='-KPIC'
13092             lt_prog_compiler_static_CXX='-static'
13093             ;;
13094           pgCC*)
13095             # Portland Group C++ compiler.
13096             lt_prog_compiler_wl_CXX='-Wl,'
13097             lt_prog_compiler_pic_CXX='-fpic'
13098             lt_prog_compiler_static_CXX='-Bstatic'
13099             ;;
13100           cxx*)
13101             # Compaq C++
13102             # Make sure the PIC flag is empty.  It appears that all Alpha
13103             # Linux and Compaq Tru64 Unix objects are PIC.
13104             lt_prog_compiler_pic_CXX=
13105             lt_prog_compiler_static_CXX='-non_shared'
13106             ;;
13107           *)
13108             case `$CC -V 2>&1 | sed 5q` in
13109             *Sun\ C*)
13110               # Sun C++ 5.9
13111               lt_prog_compiler_pic_CXX='-KPIC'
13112               lt_prog_compiler_static_CXX='-Bstatic'
13113               lt_prog_compiler_wl_CXX='-Qoption ld '
13114               ;;
13115             esac
13116             ;;
13117         esac
13118         ;;
13119       lynxos*)
13120         ;;
13121       m88k*)
13122         ;;
13123       mvs*)
13124         case $cc_basename in
13125           cxx*)
13126             lt_prog_compiler_pic_CXX='-W c,exportall'
13127             ;;
13128           *)
13129             ;;
13130         esac
13131         ;;
13132       netbsd* | netbsdelf*-gnu)
13133         ;;
13134       osf3* | osf4* | osf5*)
13135         case $cc_basename in
13136           KCC*)
13137             lt_prog_compiler_wl_CXX='--backend -Wl,'
13138             ;;
13139           RCC*)
13140             # Rational C++ 2.4.1
13141             lt_prog_compiler_pic_CXX='-pic'
13142             ;;
13143           cxx*)
13144             # Digital/Compaq C++
13145             lt_prog_compiler_wl_CXX='-Wl,'
13146             # Make sure the PIC flag is empty.  It appears that all Alpha
13147             # Linux and Compaq Tru64 Unix objects are PIC.
13148             lt_prog_compiler_pic_CXX=
13149             lt_prog_compiler_static_CXX='-non_shared'
13150             ;;
13151           *)
13152             ;;
13153         esac
13154         ;;
13155       psos*)
13156         ;;
13157       solaris*)
13158         case $cc_basename in
13159           CC*)
13160             # Sun C++ 4.2, 5.x and Centerline C++
13161             lt_prog_compiler_pic_CXX='-KPIC'
13162             lt_prog_compiler_static_CXX='-Bstatic'
13163             lt_prog_compiler_wl_CXX='-Qoption ld '
13164             ;;
13165           gcx*)
13166             # Green Hills C++ Compiler
13167             lt_prog_compiler_pic_CXX='-PIC'
13168             ;;
13169           *)
13170             ;;
13171         esac
13172         ;;
13173       sunos4*)
13174         case $cc_basename in
13175           CC*)
13176             # Sun C++ 4.x
13177             lt_prog_compiler_pic_CXX='-pic'
13178             lt_prog_compiler_static_CXX='-Bstatic'
13179             ;;
13180           lcc*)
13181             # Lucid
13182             lt_prog_compiler_pic_CXX='-pic'
13183             ;;
13184           *)
13185             ;;
13186         esac
13187         ;;
13188       tandem*)
13189         case $cc_basename in
13190           NCC*)
13191             # NonStop-UX NCC 3.20
13192             lt_prog_compiler_pic_CXX='-KPIC'
13193             ;;
13194           *)
13195             ;;
13196         esac
13197         ;;
13198       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13199         case $cc_basename in
13200           CC*)
13201             lt_prog_compiler_wl_CXX='-Wl,'
13202             lt_prog_compiler_pic_CXX='-KPIC'
13203             lt_prog_compiler_static_CXX='-Bstatic'
13204             ;;
13205         esac
13206         ;;
13207       vxworks*)
13208         ;;
13209       *)
13210         lt_prog_compiler_can_build_shared_CXX=no
13211         ;;
13212     esac
13213   fi
13214
13215 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13216 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13217
13218 #
13219 # Check to make sure the PIC flag actually works.
13220 #
13221 if test -n "$lt_prog_compiler_pic_CXX"; then
13222
13223 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13224 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13225 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13226   echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228   lt_prog_compiler_pic_works_CXX=no
13229   ac_outfile=conftest.$ac_objext
13230    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13231    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13232    # Insert the option either (1) after the last *FLAGS variable, or
13233    # (2) before a word containing "conftest.", or (3) at the end.
13234    # Note that $ac_compile itself does not contain backslashes and begins
13235    # with a dollar sign (not a hyphen), so the echo should work correctly.
13236    # The option is referenced via a variable to avoid confusing sed.
13237    lt_compile=`echo "$ac_compile" | $SED \
13238    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13239    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13240    -e 's:$: $lt_compiler_flag:'`
13241    (eval echo "\"\$as_me:13241: $lt_compile\"" >&5)
13242    (eval "$lt_compile" 2>conftest.err)
13243    ac_status=$?
13244    cat conftest.err >&5
13245    echo "$as_me:13245: \$? = $ac_status" >&5
13246    if (exit $ac_status) && test -s "$ac_outfile"; then
13247      # The compiler can only warn and ignore the option if not recognized
13248      # So say no if there are warnings other than the usual output.
13249      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13250      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13251      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13252        lt_prog_compiler_pic_works_CXX=yes
13253      fi
13254    fi
13255    $rm conftest*
13256
13257 fi
13258 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13259 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13260
13261 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13262     case $lt_prog_compiler_pic_CXX in
13263      "" | " "*) ;;
13264      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13265      esac
13266 else
13267     lt_prog_compiler_pic_CXX=
13268      lt_prog_compiler_can_build_shared_CXX=no
13269 fi
13270
13271 fi
13272 case $host_os in
13273   # For platforms which do not support PIC, -DPIC is meaningless:
13274   *djgpp*)
13275     lt_prog_compiler_pic_CXX=
13276     ;;
13277   *)
13278     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13279     ;;
13280 esac
13281
13282 #
13283 # Check to make sure the static flag actually works.
13284 #
13285 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13286 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13287 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13288 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291   lt_prog_compiler_static_works_CXX=no
13292    save_LDFLAGS="$LDFLAGS"
13293    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13294    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13295    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13296      # The linker can only warn and ignore the option if not recognized
13297      # So say no if there are warnings
13298      if test -s conftest.err; then
13299        # Append any errors to the config.log.
13300        cat conftest.err 1>&5
13301        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13302        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13303        if diff conftest.exp conftest.er2 >/dev/null; then
13304          lt_prog_compiler_static_works_CXX=yes
13305        fi
13306      else
13307        lt_prog_compiler_static_works_CXX=yes
13308      fi
13309    fi
13310    $rm conftest*
13311    LDFLAGS="$save_LDFLAGS"
13312
13313 fi
13314 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13315 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13316
13317 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13318     :
13319 else
13320     lt_prog_compiler_static_CXX=
13321 fi
13322
13323
13324 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13325 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13326 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13327   echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329   lt_cv_prog_compiler_c_o_CXX=no
13330    $rm -r conftest 2>/dev/null
13331    mkdir conftest
13332    cd conftest
13333    mkdir out
13334    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13335
13336    lt_compiler_flag="-o out/conftest2.$ac_objext"
13337    # Insert the option either (1) after the last *FLAGS variable, or
13338    # (2) before a word containing "conftest.", or (3) at the end.
13339    # Note that $ac_compile itself does not contain backslashes and begins
13340    # with a dollar sign (not a hyphen), so the echo should work correctly.
13341    lt_compile=`echo "$ac_compile" | $SED \
13342    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13344    -e 's:$: $lt_compiler_flag:'`
13345    (eval echo "\"\$as_me:13345: $lt_compile\"" >&5)
13346    (eval "$lt_compile" 2>out/conftest.err)
13347    ac_status=$?
13348    cat out/conftest.err >&5
13349    echo "$as_me:13349: \$? = $ac_status" >&5
13350    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13351    then
13352      # The compiler can only warn and ignore the option if not recognized
13353      # So say no if there are warnings
13354      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13355      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13356      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13357        lt_cv_prog_compiler_c_o_CXX=yes
13358      fi
13359    fi
13360    chmod u+w . 2>&5
13361    $rm conftest*
13362    # SGI C++ compiler will create directory out/ii_files/ for
13363    # template instantiation
13364    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13365    $rm out/* && rmdir out
13366    cd ..
13367    rmdir conftest
13368    $rm conftest*
13369
13370 fi
13371 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13372 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13373
13374
13375 hard_links="nottested"
13376 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13377   # do not overwrite the value of need_locks provided by the user
13378   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13379 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13380   hard_links=yes
13381   $rm conftest*
13382   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13383   touch conftest.a
13384   ln conftest.a conftest.b 2>&5 || hard_links=no
13385   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13386   { echo "$as_me:$LINENO: result: $hard_links" >&5
13387 echo "${ECHO_T}$hard_links" >&6; }
13388   if test "$hard_links" = no; then
13389     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13390 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13391     need_locks=warn
13392   fi
13393 else
13394   need_locks=no
13395 fi
13396
13397 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13398 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13399
13400   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13401   case $host_os in
13402   aix4* | aix5*)
13403     # If we're using GNU nm, then we don't want the "-C" option.
13404     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13405     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13406       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'
13407     else
13408       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'
13409     fi
13410     ;;
13411   pw32*)
13412     export_symbols_cmds_CXX="$ltdll_cmds"
13413   ;;
13414   cygwin* | mingw*)
13415     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'
13416   ;;
13417   linux* | k*bsd*-gnu)
13418     link_all_deplibs_CXX=no
13419   ;;
13420   *)
13421     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13422   ;;
13423   esac
13424
13425 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13426 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13427 test "$ld_shlibs_CXX" = no && can_build_shared=no
13428
13429 #
13430 # Do we need to explicitly link libc?
13431 #
13432 case "x$archive_cmds_need_lc_CXX" in
13433 x|xyes)
13434   # Assume -lc should be added
13435   archive_cmds_need_lc_CXX=yes
13436
13437   if test "$enable_shared" = yes && test "$GCC" = yes; then
13438     case $archive_cmds_CXX in
13439     *'~'*)
13440       # FIXME: we may have to deal with multi-command sequences.
13441       ;;
13442     '$CC '*)
13443       # Test whether the compiler implicitly links with -lc since on some
13444       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13445       # to ld, don't add -lc before -lgcc.
13446       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13447 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13448       $rm conftest*
13449       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13450
13451       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452   (eval $ac_compile) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } 2>conftest.err; then
13456         soname=conftest
13457         lib=conftest
13458         libobjs=conftest.$ac_objext
13459         deplibs=
13460         wl=$lt_prog_compiler_wl_CXX
13461         pic_flag=$lt_prog_compiler_pic_CXX
13462         compiler_flags=-v
13463         linker_flags=-v
13464         verstring=
13465         output_objdir=.
13466         libname=conftest
13467         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13468         allow_undefined_flag_CXX=
13469         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13470   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }
13474         then
13475           archive_cmds_need_lc_CXX=no
13476         else
13477           archive_cmds_need_lc_CXX=yes
13478         fi
13479         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13480       else
13481         cat conftest.err 1>&5
13482       fi
13483       $rm conftest*
13484       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13485 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13486       ;;
13487     esac
13488   fi
13489   ;;
13490 esac
13491
13492 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13493 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13494 library_names_spec=
13495 libname_spec='lib$name'
13496 soname_spec=
13497 shrext_cmds=".so"
13498 postinstall_cmds=
13499 postuninstall_cmds=
13500 finish_cmds=
13501 finish_eval=
13502 shlibpath_var=
13503 shlibpath_overrides_runpath=unknown
13504 version_type=none
13505 dynamic_linker="$host_os ld.so"
13506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13507
13508 need_lib_prefix=unknown
13509 hardcode_into_libs=no
13510
13511 # when you set need_version to no, make sure it does not cause -set_version
13512 # flags to be left without arguments
13513 need_version=unknown
13514
13515 case $host_os in
13516 aix3*)
13517   version_type=linux
13518   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13519   shlibpath_var=LIBPATH
13520
13521   # AIX 3 has no versioning support, so we append a major version to the name.
13522   soname_spec='${libname}${release}${shared_ext}$major'
13523   ;;
13524
13525 aix4* | aix5*)
13526   version_type=linux
13527   need_lib_prefix=no
13528   need_version=no
13529   hardcode_into_libs=yes
13530   if test "$host_cpu" = ia64; then
13531     # AIX 5 supports IA64
13532     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13533     shlibpath_var=LD_LIBRARY_PATH
13534   else
13535     # With GCC up to 2.95.x, collect2 would create an import file
13536     # for dependence libraries.  The import file would start with
13537     # the line `#! .'.  This would cause the generated library to
13538     # depend on `.', always an invalid library.  This was fixed in
13539     # development snapshots of GCC prior to 3.0.
13540     case $host_os in
13541       aix4 | aix4.[01] | aix4.[01].*)
13542       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13543            echo ' yes '
13544            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13545         :
13546       else
13547         can_build_shared=no
13548       fi
13549       ;;
13550     esac
13551     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13552     # soname into executable. Probably we can add versioning support to
13553     # collect2, so additional links can be useful in future.
13554     if test "$aix_use_runtimelinking" = yes; then
13555       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13556       # instead of lib<name>.a to let people know that these are not
13557       # typical AIX shared libraries.
13558       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559     else
13560       # We preserve .a as extension for shared libraries through AIX4.2
13561       # and later when we are not doing run time linking.
13562       library_names_spec='${libname}${release}.a $libname.a'
13563       soname_spec='${libname}${release}${shared_ext}$major'
13564     fi
13565     shlibpath_var=LIBPATH
13566   fi
13567   ;;
13568
13569 amigaos*)
13570   library_names_spec='$libname.ixlibrary $libname.a'
13571   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13572   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'
13573   ;;
13574
13575 beos*)
13576   library_names_spec='${libname}${shared_ext}'
13577   dynamic_linker="$host_os ld.so"
13578   shlibpath_var=LIBRARY_PATH
13579   ;;
13580
13581 bsdi[45]*)
13582   version_type=linux
13583   need_version=no
13584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13585   soname_spec='${libname}${release}${shared_ext}$major'
13586   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13587   shlibpath_var=LD_LIBRARY_PATH
13588   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13589   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13590   # the default ld.so.conf also contains /usr/contrib/lib and
13591   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13592   # libtool to hard-code these into programs
13593   ;;
13594
13595 cygwin* | mingw* | pw32*)
13596   version_type=windows
13597   shrext_cmds=".dll"
13598   need_version=no
13599   need_lib_prefix=no
13600
13601   case $GCC,$host_os in
13602   yes,cygwin* | yes,mingw* | yes,pw32*)
13603     library_names_spec='$libname.dll.a'
13604     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13605     postinstall_cmds='base_file=`basename \${file}`~
13606       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13607       dldir=$destdir/`dirname \$dlpath`~
13608       test -d \$dldir || mkdir -p \$dldir~
13609       $install_prog $dir/$dlname \$dldir/$dlname~
13610       chmod a+x \$dldir/$dlname'
13611     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13612       dlpath=$dir/\$dldll~
13613        $rm \$dlpath'
13614     shlibpath_overrides_runpath=yes
13615
13616     case $host_os in
13617     cygwin*)
13618       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13619       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13620       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13621       ;;
13622     mingw*)
13623       # MinGW DLLs use traditional 'lib' prefix
13624       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13625       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13626       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13627         # It is most probably a Windows format PATH printed by
13628         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13629         # path with ; separators, and with drive letters. We can handle the
13630         # drive letters (cygwin fileutils understands them), so leave them,
13631         # especially as we might pass files found there to a mingw objdump,
13632         # which wouldn't understand a cygwinified path. Ahh.
13633         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13634       else
13635         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13636       fi
13637       ;;
13638     pw32*)
13639       # pw32 DLLs use 'pw' prefix rather than 'lib'
13640       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13641       ;;
13642     esac
13643     ;;
13644
13645   *)
13646     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13647     ;;
13648   esac
13649   dynamic_linker='Win32 ld.exe'
13650   # FIXME: first we should search . and the directory the executable is in
13651   shlibpath_var=PATH
13652   ;;
13653
13654 darwin* | rhapsody*)
13655   dynamic_linker="$host_os dyld"
13656   version_type=darwin
13657   need_lib_prefix=no
13658   need_version=no
13659   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13660   soname_spec='${libname}${release}${major}$shared_ext'
13661   shlibpath_overrides_runpath=yes
13662   shlibpath_var=DYLD_LIBRARY_PATH
13663   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13664
13665   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13666   ;;
13667
13668 dgux*)
13669   version_type=linux
13670   need_lib_prefix=no
13671   need_version=no
13672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13673   soname_spec='${libname}${release}${shared_ext}$major'
13674   shlibpath_var=LD_LIBRARY_PATH
13675   ;;
13676
13677 freebsd1*)
13678   dynamic_linker=no
13679   ;;
13680
13681 freebsd* | dragonfly*)
13682   # DragonFly does not have aout.  When/if they implement a new
13683   # versioning mechanism, adjust this.
13684   if test -x /usr/bin/objformat; then
13685     objformat=`/usr/bin/objformat`
13686   else
13687     case $host_os in
13688     freebsd[123]*) objformat=aout ;;
13689     *) objformat=elf ;;
13690     esac
13691   fi
13692   version_type=freebsd-$objformat
13693   case $version_type in
13694     freebsd-elf*)
13695       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13696       need_version=no
13697       need_lib_prefix=no
13698       ;;
13699     freebsd-*)
13700       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13701       need_version=yes
13702       ;;
13703   esac
13704   shlibpath_var=LD_LIBRARY_PATH
13705   case $host_os in
13706   freebsd2*)
13707     shlibpath_overrides_runpath=yes
13708     ;;
13709   freebsd3.[01]* | freebsdelf3.[01]*)
13710     shlibpath_overrides_runpath=yes
13711     hardcode_into_libs=yes
13712     ;;
13713   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13714   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13715     shlibpath_overrides_runpath=no
13716     hardcode_into_libs=yes
13717     ;;
13718   *) # from 4.6 on, and DragonFly
13719     shlibpath_overrides_runpath=yes
13720     hardcode_into_libs=yes
13721     ;;
13722   esac
13723   ;;
13724
13725 gnu*)
13726   version_type=linux
13727   need_lib_prefix=no
13728   need_version=no
13729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13730   soname_spec='${libname}${release}${shared_ext}$major'
13731   shlibpath_var=LD_LIBRARY_PATH
13732   hardcode_into_libs=yes
13733   ;;
13734
13735 hpux9* | hpux10* | hpux11*)
13736   # Give a soname corresponding to the major version so that dld.sl refuses to
13737   # link against other versions.
13738   version_type=sunos
13739   need_lib_prefix=no
13740   need_version=no
13741   case $host_cpu in
13742   ia64*)
13743     shrext_cmds='.so'
13744     hardcode_into_libs=yes
13745     dynamic_linker="$host_os dld.so"
13746     shlibpath_var=LD_LIBRARY_PATH
13747     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13749     soname_spec='${libname}${release}${shared_ext}$major'
13750     if test "X$HPUX_IA64_MODE" = X32; then
13751       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13752     else
13753       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13754     fi
13755     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13756     ;;
13757    hppa*64*)
13758      shrext_cmds='.sl'
13759      hardcode_into_libs=yes
13760      dynamic_linker="$host_os dld.sl"
13761      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13762      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13763      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764      soname_spec='${libname}${release}${shared_ext}$major'
13765      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13766      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13767      ;;
13768    *)
13769     shrext_cmds='.sl'
13770     dynamic_linker="$host_os dld.sl"
13771     shlibpath_var=SHLIB_PATH
13772     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13774     soname_spec='${libname}${release}${shared_ext}$major'
13775     ;;
13776   esac
13777   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13778   postinstall_cmds='chmod 555 $lib'
13779   ;;
13780
13781 interix[3-9]*)
13782   version_type=linux
13783   need_lib_prefix=no
13784   need_version=no
13785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13786   soname_spec='${libname}${release}${shared_ext}$major'
13787   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13788   shlibpath_var=LD_LIBRARY_PATH
13789   shlibpath_overrides_runpath=no
13790   hardcode_into_libs=yes
13791   ;;
13792
13793 irix5* | irix6* | nonstopux*)
13794   case $host_os in
13795     nonstopux*) version_type=nonstopux ;;
13796     *)
13797         if test "$lt_cv_prog_gnu_ld" = yes; then
13798                 version_type=linux
13799         else
13800                 version_type=irix
13801         fi ;;
13802   esac
13803   need_lib_prefix=no
13804   need_version=no
13805   soname_spec='${libname}${release}${shared_ext}$major'
13806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13807   case $host_os in
13808   irix5* | nonstopux*)
13809     libsuff= shlibsuff=
13810     ;;
13811   *)
13812     case $LD in # libtool.m4 will add one of these switches to LD
13813     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13814       libsuff= shlibsuff= libmagic=32-bit;;
13815     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13816       libsuff=32 shlibsuff=N32 libmagic=N32;;
13817     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13818       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13819     *) libsuff= shlibsuff= libmagic=never-match;;
13820     esac
13821     ;;
13822   esac
13823   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13824   shlibpath_overrides_runpath=no
13825   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13826   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13827   hardcode_into_libs=yes
13828   ;;
13829
13830 # No shared lib support for Linux oldld, aout, or coff.
13831 linux*oldld* | linux*aout* | linux*coff*)
13832   dynamic_linker=no
13833   ;;
13834
13835 # This must be Linux ELF.
13836 linux* | k*bsd*-gnu)
13837   version_type=linux
13838   need_lib_prefix=no
13839   need_version=no
13840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13841   soname_spec='${libname}${release}${shared_ext}$major'
13842   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13843   shlibpath_var=LD_LIBRARY_PATH
13844   shlibpath_overrides_runpath=no
13845   # This implies no fast_install, which is unacceptable.
13846   # Some rework will be needed to allow for fast_install
13847   # before this can be enabled.
13848   hardcode_into_libs=yes
13849
13850   # Append ld.so.conf contents to the search path
13851   if test -f /etc/ld.so.conf; then
13852     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13853     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13854   fi
13855
13856   # We used to test for /lib/ld.so.1 and disable shared libraries on
13857   # powerpc, because MkLinux only supported shared libraries with the
13858   # GNU dynamic linker.  Since this was broken with cross compilers,
13859   # most powerpc-linux boxes support dynamic linking these days and
13860   # people can always --disable-shared, the test was removed, and we
13861   # assume the GNU/Linux dynamic linker is in use.
13862   dynamic_linker='GNU/Linux ld.so'
13863   ;;
13864
13865 netbsdelf*-gnu)
13866   version_type=linux
13867   need_lib_prefix=no
13868   need_version=no
13869   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13870   soname_spec='${libname}${release}${shared_ext}$major'
13871   shlibpath_var=LD_LIBRARY_PATH
13872   shlibpath_overrides_runpath=no
13873   hardcode_into_libs=yes
13874   dynamic_linker='NetBSD ld.elf_so'
13875   ;;
13876
13877 netbsd*)
13878   version_type=sunos
13879   need_lib_prefix=no
13880   need_version=no
13881   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13882     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13883     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13884     dynamic_linker='NetBSD (a.out) ld.so'
13885   else
13886     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13887     soname_spec='${libname}${release}${shared_ext}$major'
13888     dynamic_linker='NetBSD ld.elf_so'
13889   fi
13890   shlibpath_var=LD_LIBRARY_PATH
13891   shlibpath_overrides_runpath=yes
13892   hardcode_into_libs=yes
13893   ;;
13894
13895 newsos6)
13896   version_type=linux
13897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898   shlibpath_var=LD_LIBRARY_PATH
13899   shlibpath_overrides_runpath=yes
13900   ;;
13901
13902 nto-qnx*)
13903   version_type=linux
13904   need_lib_prefix=no
13905   need_version=no
13906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907   soname_spec='${libname}${release}${shared_ext}$major'
13908   shlibpath_var=LD_LIBRARY_PATH
13909   shlibpath_overrides_runpath=yes
13910   ;;
13911
13912 openbsd*)
13913   version_type=sunos
13914   sys_lib_dlsearch_path_spec="/usr/lib"
13915   need_lib_prefix=no
13916   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13917   case $host_os in
13918     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13919     *)                         need_version=no  ;;
13920   esac
13921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13923   shlibpath_var=LD_LIBRARY_PATH
13924   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13925     case $host_os in
13926       openbsd2.[89] | openbsd2.[89].*)
13927         shlibpath_overrides_runpath=no
13928         ;;
13929       *)
13930         shlibpath_overrides_runpath=yes
13931         ;;
13932       esac
13933   else
13934     shlibpath_overrides_runpath=yes
13935   fi
13936   ;;
13937
13938 os2*)
13939   libname_spec='$name'
13940   shrext_cmds=".dll"
13941   need_lib_prefix=no
13942   library_names_spec='$libname${shared_ext} $libname.a'
13943   dynamic_linker='OS/2 ld.exe'
13944   shlibpath_var=LIBPATH
13945   ;;
13946
13947 osf3* | osf4* | osf5*)
13948   version_type=osf
13949   need_lib_prefix=no
13950   need_version=no
13951   soname_spec='${libname}${release}${shared_ext}$major'
13952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953   shlibpath_var=LD_LIBRARY_PATH
13954   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13955   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13956   ;;
13957
13958 rdos*)
13959   dynamic_linker=no
13960   ;;
13961
13962 solaris*)
13963   version_type=linux
13964   need_lib_prefix=no
13965   need_version=no
13966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967   soname_spec='${libname}${release}${shared_ext}$major'
13968   shlibpath_var=LD_LIBRARY_PATH
13969   shlibpath_overrides_runpath=yes
13970   hardcode_into_libs=yes
13971   # ldd complains unless libraries are executable
13972   postinstall_cmds='chmod +x $lib'
13973   ;;
13974
13975 sunos4*)
13976   version_type=sunos
13977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13978   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13979   shlibpath_var=LD_LIBRARY_PATH
13980   shlibpath_overrides_runpath=yes
13981   if test "$with_gnu_ld" = yes; then
13982     need_lib_prefix=no
13983   fi
13984   need_version=yes
13985   ;;
13986
13987 sysv4 | sysv4.3*)
13988   version_type=linux
13989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990   soname_spec='${libname}${release}${shared_ext}$major'
13991   shlibpath_var=LD_LIBRARY_PATH
13992   case $host_vendor in
13993     sni)
13994       shlibpath_overrides_runpath=no
13995       need_lib_prefix=no
13996       export_dynamic_flag_spec='${wl}-Blargedynsym'
13997       runpath_var=LD_RUN_PATH
13998       ;;
13999     siemens)
14000       need_lib_prefix=no
14001       ;;
14002     motorola)
14003       need_lib_prefix=no
14004       need_version=no
14005       shlibpath_overrides_runpath=no
14006       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14007       ;;
14008   esac
14009   ;;
14010
14011 sysv4*MP*)
14012   if test -d /usr/nec ;then
14013     version_type=linux
14014     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14015     soname_spec='$libname${shared_ext}.$major'
14016     shlibpath_var=LD_LIBRARY_PATH
14017   fi
14018   ;;
14019
14020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14021   version_type=freebsd-elf
14022   need_lib_prefix=no
14023   need_version=no
14024   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14025   soname_spec='${libname}${release}${shared_ext}$major'
14026   shlibpath_var=LD_LIBRARY_PATH
14027   hardcode_into_libs=yes
14028   if test "$with_gnu_ld" = yes; then
14029     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14030     shlibpath_overrides_runpath=no
14031   else
14032     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14033     shlibpath_overrides_runpath=yes
14034     case $host_os in
14035       sco3.2v5*)
14036         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14037         ;;
14038     esac
14039   fi
14040   sys_lib_dlsearch_path_spec='/usr/lib'
14041   ;;
14042
14043 uts4*)
14044   version_type=linux
14045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14046   soname_spec='${libname}${release}${shared_ext}$major'
14047   shlibpath_var=LD_LIBRARY_PATH
14048   ;;
14049
14050 *)
14051   dynamic_linker=no
14052   ;;
14053 esac
14054 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14055 echo "${ECHO_T}$dynamic_linker" >&6; }
14056 test "$dynamic_linker" = no && can_build_shared=no
14057
14058 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14059 if test "$GCC" = yes; then
14060   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14061 fi
14062
14063 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14064 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14065 hardcode_action_CXX=
14066 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14067    test -n "$runpath_var_CXX" || \
14068    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14069
14070   # We can hardcode non-existant directories.
14071   if test "$hardcode_direct_CXX" != no &&
14072      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14073      # have to relink, otherwise we might link with an installed library
14074      # when we should be linking with a yet-to-be-installed one
14075      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14076      test "$hardcode_minus_L_CXX" != no; then
14077     # Linking always hardcodes the temporary library directory.
14078     hardcode_action_CXX=relink
14079   else
14080     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14081     hardcode_action_CXX=immediate
14082   fi
14083 else
14084   # We cannot hardcode anything, or else we can only hardcode existing
14085   # directories.
14086   hardcode_action_CXX=unsupported
14087 fi
14088 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14089 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14090
14091 if test "$hardcode_action_CXX" = relink; then
14092   # Fast installation is not supported
14093   enable_fast_install=no
14094 elif test "$shlibpath_overrides_runpath" = yes ||
14095      test "$enable_shared" = no; then
14096   # Fast installation is not necessary
14097   enable_fast_install=needless
14098 fi
14099
14100
14101 # The else clause should only fire when bootstrapping the
14102 # libtool distribution, otherwise you forgot to ship ltmain.sh
14103 # with your package, and you will get complaints that there are
14104 # no rules to generate ltmain.sh.
14105 if test -f "$ltmain"; then
14106   # See if we are running on zsh, and set the options which allow our commands through
14107   # without removal of \ escapes.
14108   if test -n "${ZSH_VERSION+set}" ; then
14109     setopt NO_GLOB_SUBST
14110   fi
14111   # Now quote all the things that may contain metacharacters while being
14112   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14113   # variables and quote the copies for generation of the libtool script.
14114   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14115     SED SHELL STRIP \
14116     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14117     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14118     deplibs_check_method reload_flag reload_cmds need_locks \
14119     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14120     lt_cv_sys_global_symbol_to_c_name_address \
14121     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14122     old_postinstall_cmds old_postuninstall_cmds \
14123     compiler_CXX \
14124     CC_CXX \
14125     LD_CXX \
14126     lt_prog_compiler_wl_CXX \
14127     lt_prog_compiler_pic_CXX \
14128     lt_prog_compiler_static_CXX \
14129     lt_prog_compiler_no_builtin_flag_CXX \
14130     export_dynamic_flag_spec_CXX \
14131     thread_safe_flag_spec_CXX \
14132     whole_archive_flag_spec_CXX \
14133     enable_shared_with_static_runtimes_CXX \
14134     old_archive_cmds_CXX \
14135     old_archive_from_new_cmds_CXX \
14136     predep_objects_CXX \
14137     postdep_objects_CXX \
14138     predeps_CXX \
14139     postdeps_CXX \
14140     compiler_lib_search_path_CXX \
14141     archive_cmds_CXX \
14142     archive_expsym_cmds_CXX \
14143     postinstall_cmds_CXX \
14144     postuninstall_cmds_CXX \
14145     old_archive_from_expsyms_cmds_CXX \
14146     allow_undefined_flag_CXX \
14147     no_undefined_flag_CXX \
14148     export_symbols_cmds_CXX \
14149     hardcode_libdir_flag_spec_CXX \
14150     hardcode_libdir_flag_spec_ld_CXX \
14151     hardcode_libdir_separator_CXX \
14152     hardcode_automatic_CXX \
14153     module_cmds_CXX \
14154     module_expsym_cmds_CXX \
14155     lt_cv_prog_compiler_c_o_CXX \
14156     fix_srcfile_path_CXX \
14157     exclude_expsyms_CXX \
14158     include_expsyms_CXX; do
14159
14160     case $var in
14161     old_archive_cmds_CXX | \
14162     old_archive_from_new_cmds_CXX | \
14163     archive_cmds_CXX | \
14164     archive_expsym_cmds_CXX | \
14165     module_cmds_CXX | \
14166     module_expsym_cmds_CXX | \
14167     old_archive_from_expsyms_cmds_CXX | \
14168     export_symbols_cmds_CXX | \
14169     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14170     postinstall_cmds | postuninstall_cmds | \
14171     old_postinstall_cmds | old_postuninstall_cmds | \
14172     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14173       # Double-quote double-evaled strings.
14174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14175       ;;
14176     *)
14177       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14178       ;;
14179     esac
14180   done
14181
14182   case $lt_echo in
14183   *'\$0 --fallback-echo"')
14184     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14185     ;;
14186   esac
14187
14188 cfgfile="$ofile"
14189
14190   cat <<__EOF__ >> "$cfgfile"
14191 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14192
14193 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14194
14195 # Shell to use when invoking shell scripts.
14196 SHELL=$lt_SHELL
14197
14198 # Whether or not to build shared libraries.
14199 build_libtool_libs=$enable_shared
14200
14201 # Whether or not to build static libraries.
14202 build_old_libs=$enable_static
14203
14204 # Whether or not to add -lc for building shared libraries.
14205 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14206
14207 # Whether or not to disallow shared libs when runtime libs are static
14208 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14209
14210 # Whether or not to optimize for fast installation.
14211 fast_install=$enable_fast_install
14212
14213 # The host system.
14214 host_alias=$host_alias
14215 host=$host
14216 host_os=$host_os
14217
14218 # The build system.
14219 build_alias=$build_alias
14220 build=$build
14221 build_os=$build_os
14222
14223 # An echo program that does not interpret backslashes.
14224 echo=$lt_echo
14225
14226 # The archiver.
14227 AR=$lt_AR
14228 AR_FLAGS=$lt_AR_FLAGS
14229
14230 # A C compiler.
14231 LTCC=$lt_LTCC
14232
14233 # LTCC compiler flags.
14234 LTCFLAGS=$lt_LTCFLAGS
14235
14236 # A language-specific compiler.
14237 CC=$lt_compiler_CXX
14238
14239 # Is the compiler the GNU C compiler?
14240 with_gcc=$GCC_CXX
14241
14242 # An ERE matcher.
14243 EGREP=$lt_EGREP
14244
14245 # The linker used to build libraries.
14246 LD=$lt_LD_CXX
14247
14248 # Whether we need hard or soft links.
14249 LN_S=$lt_LN_S
14250
14251 # A BSD-compatible nm program.
14252 NM=$lt_NM
14253
14254 # A symbol stripping program
14255 STRIP=$lt_STRIP
14256
14257 # Used to examine libraries when file_magic_cmd begins "file"
14258 MAGIC_CMD=$MAGIC_CMD
14259
14260 # Used on cygwin: DLL creation program.
14261 DLLTOOL="$DLLTOOL"
14262
14263 # Used on cygwin: object dumper.
14264 OBJDUMP="$OBJDUMP"
14265
14266 # Used on cygwin: assembler.
14267 AS="$AS"
14268
14269 # The name of the directory that contains temporary libtool files.
14270 objdir=$objdir
14271
14272 # How to create reloadable object files.
14273 reload_flag=$lt_reload_flag
14274 reload_cmds=$lt_reload_cmds
14275
14276 # How to pass a linker flag through the compiler.
14277 wl=$lt_lt_prog_compiler_wl_CXX
14278
14279 # Object file suffix (normally "o").
14280 objext="$ac_objext"
14281
14282 # Old archive suffix (normally "a").
14283 libext="$libext"
14284
14285 # Shared library suffix (normally ".so").
14286 shrext_cmds='$shrext_cmds'
14287
14288 # Executable file suffix (normally "").
14289 exeext="$exeext"
14290
14291 # Additional compiler flags for building library objects.
14292 pic_flag=$lt_lt_prog_compiler_pic_CXX
14293 pic_mode=$pic_mode
14294
14295 # What is the maximum length of a command?
14296 max_cmd_len=$lt_cv_sys_max_cmd_len
14297
14298 # Does compiler simultaneously support -c and -o options?
14299 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14300
14301 # Must we lock files when doing compilation?
14302 need_locks=$lt_need_locks
14303
14304 # Do we need the lib prefix for modules?
14305 need_lib_prefix=$need_lib_prefix
14306
14307 # Do we need a version for libraries?
14308 need_version=$need_version
14309
14310 # Whether dlopen is supported.
14311 dlopen_support=$enable_dlopen
14312
14313 # Whether dlopen of programs is supported.
14314 dlopen_self=$enable_dlopen_self
14315
14316 # Whether dlopen of statically linked programs is supported.
14317 dlopen_self_static=$enable_dlopen_self_static
14318
14319 # Compiler flag to prevent dynamic linking.
14320 link_static_flag=$lt_lt_prog_compiler_static_CXX
14321
14322 # Compiler flag to turn off builtin functions.
14323 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14324
14325 # Compiler flag to allow reflexive dlopens.
14326 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14327
14328 # Compiler flag to generate shared objects directly from archives.
14329 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14330
14331 # Compiler flag to generate thread-safe objects.
14332 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14333
14334 # Library versioning type.
14335 version_type=$version_type
14336
14337 # Format of library name prefix.
14338 libname_spec=$lt_libname_spec
14339
14340 # List of archive names.  First name is the real one, the rest are links.
14341 # The last name is the one that the linker finds with -lNAME.
14342 library_names_spec=$lt_library_names_spec
14343
14344 # The coded name of the library, if different from the real name.
14345 soname_spec=$lt_soname_spec
14346
14347 # Commands used to build and install an old-style archive.
14348 RANLIB=$lt_RANLIB
14349 old_archive_cmds=$lt_old_archive_cmds_CXX
14350 old_postinstall_cmds=$lt_old_postinstall_cmds
14351 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14352
14353 # Create an old-style archive from a shared archive.
14354 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14355
14356 # Create a temporary old-style archive to link instead of a shared archive.
14357 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14358
14359 # Commands used to build and install a shared archive.
14360 archive_cmds=$lt_archive_cmds_CXX
14361 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14362 postinstall_cmds=$lt_postinstall_cmds
14363 postuninstall_cmds=$lt_postuninstall_cmds
14364
14365 # Commands used to build a loadable module (assumed same as above if empty)
14366 module_cmds=$lt_module_cmds_CXX
14367 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14368
14369 # Commands to strip libraries.
14370 old_striplib=$lt_old_striplib
14371 striplib=$lt_striplib
14372
14373 # Dependencies to place before the objects being linked to create a
14374 # shared library.
14375 predep_objects=$lt_predep_objects_CXX
14376
14377 # Dependencies to place after the objects being linked to create a
14378 # shared library.
14379 postdep_objects=$lt_postdep_objects_CXX
14380
14381 # Dependencies to place before the objects being linked to create a
14382 # shared library.
14383 predeps=$lt_predeps_CXX
14384
14385 # Dependencies to place after the objects being linked to create a
14386 # shared library.
14387 postdeps=$lt_postdeps_CXX
14388
14389 # The library search path used internally by the compiler when linking
14390 # a shared library.
14391 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14392
14393 # Method to check whether dependent libraries are shared objects.
14394 deplibs_check_method=$lt_deplibs_check_method
14395
14396 # Command to use when deplibs_check_method == file_magic.
14397 file_magic_cmd=$lt_file_magic_cmd
14398
14399 # Flag that allows shared libraries with undefined symbols to be built.
14400 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14401
14402 # Flag that forces no undefined symbols.
14403 no_undefined_flag=$lt_no_undefined_flag_CXX
14404
14405 # Commands used to finish a libtool library installation in a directory.
14406 finish_cmds=$lt_finish_cmds
14407
14408 # Same as above, but a single script fragment to be evaled but not shown.
14409 finish_eval=$lt_finish_eval
14410
14411 # Take the output of nm and produce a listing of raw symbols and C names.
14412 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14413
14414 # Transform the output of nm in a proper C declaration
14415 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14416
14417 # Transform the output of nm in a C name address pair
14418 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14419
14420 # This is the shared library runtime path variable.
14421 runpath_var=$runpath_var
14422
14423 # This is the shared library path variable.
14424 shlibpath_var=$shlibpath_var
14425
14426 # Is shlibpath searched before the hard-coded library search path?
14427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14428
14429 # How to hardcode a shared library path into an executable.
14430 hardcode_action=$hardcode_action_CXX
14431
14432 # Whether we should hardcode library paths into libraries.
14433 hardcode_into_libs=$hardcode_into_libs
14434
14435 # Flag to hardcode \$libdir into a binary during linking.
14436 # This must work even if \$libdir does not exist.
14437 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14438
14439 # If ld is used when linking, flag to hardcode \$libdir into
14440 # a binary during linking. This must work even if \$libdir does
14441 # not exist.
14442 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14443
14444 # Whether we need a single -rpath flag with a separated argument.
14445 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14446
14447 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14448 # resulting binary.
14449 hardcode_direct=$hardcode_direct_CXX
14450
14451 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14452 # resulting binary.
14453 hardcode_minus_L=$hardcode_minus_L_CXX
14454
14455 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14456 # the resulting binary.
14457 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14458
14459 # Set to yes if building a shared library automatically hardcodes DIR into the library
14460 # and all subsequent libraries and executables linked against it.
14461 hardcode_automatic=$hardcode_automatic_CXX
14462
14463 # Variables whose values should be saved in libtool wrapper scripts and
14464 # restored at relink time.
14465 variables_saved_for_relink="$variables_saved_for_relink"
14466
14467 # Whether libtool must link a program against all its dependency libraries.
14468 link_all_deplibs=$link_all_deplibs_CXX
14469
14470 # Compile-time system search path for libraries
14471 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14472
14473 # Run-time system search path for libraries
14474 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14475
14476 # Fix the shell variable \$srcfile for the compiler.
14477 fix_srcfile_path=$lt_fix_srcfile_path
14478
14479 # Set to yes if exported symbols are required.
14480 always_export_symbols=$always_export_symbols_CXX
14481
14482 # The commands to list exported symbols.
14483 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14484
14485 # The commands to extract the exported symbol list from a shared archive.
14486 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14487
14488 # Symbols that should not be listed in the preloaded symbols.
14489 exclude_expsyms=$lt_exclude_expsyms_CXX
14490
14491 # Symbols that must always be exported.
14492 include_expsyms=$lt_include_expsyms_CXX
14493
14494 # ### END LIBTOOL TAG CONFIG: $tagname
14495
14496 __EOF__
14497
14498
14499 else
14500   # If there is no Makefile yet, we rely on a make rule to execute
14501   # `config.status --recheck' to rerun these tests and create the
14502   # libtool script then.
14503   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14504   if test -f "$ltmain_in"; then
14505     test -f Makefile && make "$ltmain"
14506   fi
14507 fi
14508
14509
14510 ac_ext=c
14511 ac_cpp='$CPP $CPPFLAGS'
14512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14515
14516 CC=$lt_save_CC
14517 LDCXX=$LD
14518 LD=$lt_save_LD
14519 GCC=$lt_save_GCC
14520 with_gnu_ldcxx=$with_gnu_ld
14521 with_gnu_ld=$lt_save_with_gnu_ld
14522 lt_cv_path_LDCXX=$lt_cv_path_LD
14523 lt_cv_path_LD=$lt_save_path_LD
14524 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14525 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14526
14527         else
14528           tagname=""
14529         fi
14530         ;;
14531
14532       F77)
14533         if test -n "$F77" && test "X$F77" != "Xno"; then
14534
14535 ac_ext=f
14536 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14537 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14538 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14539
14540
14541 archive_cmds_need_lc_F77=no
14542 allow_undefined_flag_F77=
14543 always_export_symbols_F77=no
14544 archive_expsym_cmds_F77=
14545 export_dynamic_flag_spec_F77=
14546 hardcode_direct_F77=no
14547 hardcode_libdir_flag_spec_F77=
14548 hardcode_libdir_flag_spec_ld_F77=
14549 hardcode_libdir_separator_F77=
14550 hardcode_minus_L_F77=no
14551 hardcode_automatic_F77=no
14552 module_cmds_F77=
14553 module_expsym_cmds_F77=
14554 link_all_deplibs_F77=unknown
14555 old_archive_cmds_F77=$old_archive_cmds
14556 no_undefined_flag_F77=
14557 whole_archive_flag_spec_F77=
14558 enable_shared_with_static_runtimes_F77=no
14559
14560 # Source file extension for f77 test sources.
14561 ac_ext=f
14562
14563 # Object file extension for compiled f77 test sources.
14564 objext=o
14565 objext_F77=$objext
14566
14567 # Code to be used in simple compile tests
14568 lt_simple_compile_test_code="\
14569       subroutine t
14570       return
14571       end
14572 "
14573
14574 # Code to be used in simple link tests
14575 lt_simple_link_test_code="\
14576       program t
14577       end
14578 "
14579
14580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14581
14582 # If no C compiler was specified, use CC.
14583 LTCC=${LTCC-"$CC"}
14584
14585 # If no C compiler flags were specified, use CFLAGS.
14586 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14587
14588 # Allow CC to be a program name with arguments.
14589 compiler=$CC
14590
14591
14592 # save warnings/boilerplate of simple test code
14593 ac_outfile=conftest.$ac_objext
14594 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14596 _lt_compiler_boilerplate=`cat conftest.err`
14597 $rm conftest*
14598
14599 ac_outfile=conftest.$ac_objext
14600 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14602 _lt_linker_boilerplate=`cat conftest.err`
14603 $rm conftest*
14604
14605
14606 # Allow CC to be a program name with arguments.
14607 lt_save_CC="$CC"
14608 CC=${F77-"f77"}
14609 compiler=$CC
14610 compiler_F77=$CC
14611 for cc_temp in $compiler""; do
14612   case $cc_temp in
14613     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14614     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14615     \-*) ;;
14616     *) break;;
14617   esac
14618 done
14619 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14620
14621
14622 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14623 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14624 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14625 echo "${ECHO_T}$can_build_shared" >&6; }
14626
14627 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14628 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14629 test "$can_build_shared" = "no" && enable_shared=no
14630
14631 # On AIX, shared libraries and static libraries use the same namespace, and
14632 # are all built from PIC.
14633 case $host_os in
14634 aix3*)
14635   test "$enable_shared" = yes && enable_static=no
14636   if test -n "$RANLIB"; then
14637     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14638     postinstall_cmds='$RANLIB $lib'
14639   fi
14640   ;;
14641 aix4* | aix5*)
14642   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14643     test "$enable_shared" = yes && enable_static=no
14644   fi
14645   ;;
14646 esac
14647 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14648 echo "${ECHO_T}$enable_shared" >&6; }
14649
14650 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14651 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14652 # Make sure either enable_shared or enable_static is yes.
14653 test "$enable_shared" = yes || enable_static=yes
14654 { echo "$as_me:$LINENO: result: $enable_static" >&5
14655 echo "${ECHO_T}$enable_static" >&6; }
14656
14657 GCC_F77="$G77"
14658 LD_F77="$LD"
14659
14660 lt_prog_compiler_wl_F77=
14661 lt_prog_compiler_pic_F77=
14662 lt_prog_compiler_static_F77=
14663
14664 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14665 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14666
14667   if test "$GCC" = yes; then
14668     lt_prog_compiler_wl_F77='-Wl,'
14669     lt_prog_compiler_static_F77='-static'
14670
14671     case $host_os in
14672       aix*)
14673       # All AIX code is PIC.
14674       if test "$host_cpu" = ia64; then
14675         # AIX 5 now supports IA64 processor
14676         lt_prog_compiler_static_F77='-Bstatic'
14677       fi
14678       ;;
14679
14680     amigaos*)
14681       # FIXME: we need at least 68020 code to build shared libraries, but
14682       # adding the `-m68020' flag to GCC prevents building anything better,
14683       # like `-m68040'.
14684       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14685       ;;
14686
14687     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14688       # PIC is the default for these OSes.
14689       ;;
14690
14691     mingw* | cygwin* | pw32* | os2*)
14692       # This hack is so that the source file can tell whether it is being
14693       # built for inclusion in a dll (and should export symbols for example).
14694       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14695       # (--disable-auto-import) libraries
14696       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14697       ;;
14698
14699     darwin* | rhapsody*)
14700       # PIC is the default on this platform
14701       # Common symbols not allowed in MH_DYLIB files
14702       lt_prog_compiler_pic_F77='-fno-common'
14703       ;;
14704
14705     interix[3-9]*)
14706       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14707       # Instead, we relocate shared libraries at runtime.
14708       ;;
14709
14710     msdosdjgpp*)
14711       # Just because we use GCC doesn't mean we suddenly get shared libraries
14712       # on systems that don't support them.
14713       lt_prog_compiler_can_build_shared_F77=no
14714       enable_shared=no
14715       ;;
14716
14717     sysv4*MP*)
14718       if test -d /usr/nec; then
14719         lt_prog_compiler_pic_F77=-Kconform_pic
14720       fi
14721       ;;
14722
14723     hpux*)
14724       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14725       # not for PA HP-UX.
14726       case $host_cpu in
14727       hppa*64*|ia64*)
14728         # +Z the default
14729         ;;
14730       *)
14731         lt_prog_compiler_pic_F77='-fPIC'
14732         ;;
14733       esac
14734       ;;
14735
14736     *)
14737       lt_prog_compiler_pic_F77='-fPIC'
14738       ;;
14739     esac
14740   else
14741     # PORTME Check for flag to pass linker flags through the system compiler.
14742     case $host_os in
14743     aix*)
14744       lt_prog_compiler_wl_F77='-Wl,'
14745       if test "$host_cpu" = ia64; then
14746         # AIX 5 now supports IA64 processor
14747         lt_prog_compiler_static_F77='-Bstatic'
14748       else
14749         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14750       fi
14751       ;;
14752       darwin*)
14753         # PIC is the default on this platform
14754         # Common symbols not allowed in MH_DYLIB files
14755        case $cc_basename in
14756          xlc*)
14757          lt_prog_compiler_pic_F77='-qnocommon'
14758          lt_prog_compiler_wl_F77='-Wl,'
14759          ;;
14760        esac
14761        ;;
14762
14763     mingw* | cygwin* | pw32* | os2*)
14764       # This hack is so that the source file can tell whether it is being
14765       # built for inclusion in a dll (and should export symbols for example).
14766       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14767       ;;
14768
14769     hpux9* | hpux10* | hpux11*)
14770       lt_prog_compiler_wl_F77='-Wl,'
14771       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14772       # not for PA HP-UX.
14773       case $host_cpu in
14774       hppa*64*|ia64*)
14775         # +Z the default
14776         ;;
14777       *)
14778         lt_prog_compiler_pic_F77='+Z'
14779         ;;
14780       esac
14781       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14782       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14783       ;;
14784
14785     irix5* | irix6* | nonstopux*)
14786       lt_prog_compiler_wl_F77='-Wl,'
14787       # PIC (with -KPIC) is the default.
14788       lt_prog_compiler_static_F77='-non_shared'
14789       ;;
14790
14791     newsos6)
14792       lt_prog_compiler_pic_F77='-KPIC'
14793       lt_prog_compiler_static_F77='-Bstatic'
14794       ;;
14795
14796     linux* | k*bsd*-gnu)
14797       case $cc_basename in
14798       icc* | ecc*)
14799         lt_prog_compiler_wl_F77='-Wl,'
14800         lt_prog_compiler_pic_F77='-KPIC'
14801         lt_prog_compiler_static_F77='-static'
14802         ;;
14803       pgcc* | pgf77* | pgf90* | pgf95*)
14804         # Portland Group compilers (*not* the Pentium gcc compiler,
14805         # which looks to be a dead project)
14806         lt_prog_compiler_wl_F77='-Wl,'
14807         lt_prog_compiler_pic_F77='-fpic'
14808         lt_prog_compiler_static_F77='-Bstatic'
14809         ;;
14810       ccc*)
14811         lt_prog_compiler_wl_F77='-Wl,'
14812         # All Alpha code is PIC.
14813         lt_prog_compiler_static_F77='-non_shared'
14814         ;;
14815       *)
14816         case `$CC -V 2>&1 | sed 5q` in
14817         *Sun\ C*)
14818           # Sun C 5.9
14819           lt_prog_compiler_pic_F77='-KPIC'
14820           lt_prog_compiler_static_F77='-Bstatic'
14821           lt_prog_compiler_wl_F77='-Wl,'
14822           ;;
14823         *Sun\ F*)
14824           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14825           lt_prog_compiler_pic_F77='-KPIC'
14826           lt_prog_compiler_static_F77='-Bstatic'
14827           lt_prog_compiler_wl_F77=''
14828           ;;
14829         esac
14830         ;;
14831       esac
14832       ;;
14833
14834     osf3* | osf4* | osf5*)
14835       lt_prog_compiler_wl_F77='-Wl,'
14836       # All OSF/1 code is PIC.
14837       lt_prog_compiler_static_F77='-non_shared'
14838       ;;
14839
14840     rdos*)
14841       lt_prog_compiler_static_F77='-non_shared'
14842       ;;
14843
14844     solaris*)
14845       lt_prog_compiler_pic_F77='-KPIC'
14846       lt_prog_compiler_static_F77='-Bstatic'
14847       case $cc_basename in
14848       f77* | f90* | f95*)
14849         lt_prog_compiler_wl_F77='-Qoption ld ';;
14850       *)
14851         lt_prog_compiler_wl_F77='-Wl,';;
14852       esac
14853       ;;
14854
14855     sunos4*)
14856       lt_prog_compiler_wl_F77='-Qoption ld '
14857       lt_prog_compiler_pic_F77='-PIC'
14858       lt_prog_compiler_static_F77='-Bstatic'
14859       ;;
14860
14861     sysv4 | sysv4.2uw2* | sysv4.3*)
14862       lt_prog_compiler_wl_F77='-Wl,'
14863       lt_prog_compiler_pic_F77='-KPIC'
14864       lt_prog_compiler_static_F77='-Bstatic'
14865       ;;
14866
14867     sysv4*MP*)
14868       if test -d /usr/nec ;then
14869         lt_prog_compiler_pic_F77='-Kconform_pic'
14870         lt_prog_compiler_static_F77='-Bstatic'
14871       fi
14872       ;;
14873
14874     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14875       lt_prog_compiler_wl_F77='-Wl,'
14876       lt_prog_compiler_pic_F77='-KPIC'
14877       lt_prog_compiler_static_F77='-Bstatic'
14878       ;;
14879
14880     unicos*)
14881       lt_prog_compiler_wl_F77='-Wl,'
14882       lt_prog_compiler_can_build_shared_F77=no
14883       ;;
14884
14885     uts4*)
14886       lt_prog_compiler_pic_F77='-pic'
14887       lt_prog_compiler_static_F77='-Bstatic'
14888       ;;
14889
14890     *)
14891       lt_prog_compiler_can_build_shared_F77=no
14892       ;;
14893     esac
14894   fi
14895
14896 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14897 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14898
14899 #
14900 # Check to make sure the PIC flag actually works.
14901 #
14902 if test -n "$lt_prog_compiler_pic_F77"; then
14903
14904 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14905 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14906 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14907   echo $ECHO_N "(cached) $ECHO_C" >&6
14908 else
14909   lt_prog_compiler_pic_works_F77=no
14910   ac_outfile=conftest.$ac_objext
14911    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14912    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14913    # Insert the option either (1) after the last *FLAGS variable, or
14914    # (2) before a word containing "conftest.", or (3) at the end.
14915    # Note that $ac_compile itself does not contain backslashes and begins
14916    # with a dollar sign (not a hyphen), so the echo should work correctly.
14917    # The option is referenced via a variable to avoid confusing sed.
14918    lt_compile=`echo "$ac_compile" | $SED \
14919    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14920    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14921    -e 's:$: $lt_compiler_flag:'`
14922    (eval echo "\"\$as_me:14922: $lt_compile\"" >&5)
14923    (eval "$lt_compile" 2>conftest.err)
14924    ac_status=$?
14925    cat conftest.err >&5
14926    echo "$as_me:14926: \$? = $ac_status" >&5
14927    if (exit $ac_status) && test -s "$ac_outfile"; then
14928      # The compiler can only warn and ignore the option if not recognized
14929      # So say no if there are warnings other than the usual output.
14930      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14931      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14932      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14933        lt_prog_compiler_pic_works_F77=yes
14934      fi
14935    fi
14936    $rm conftest*
14937
14938 fi
14939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14940 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14941
14942 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14943     case $lt_prog_compiler_pic_F77 in
14944      "" | " "*) ;;
14945      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14946      esac
14947 else
14948     lt_prog_compiler_pic_F77=
14949      lt_prog_compiler_can_build_shared_F77=no
14950 fi
14951
14952 fi
14953 case $host_os in
14954   # For platforms which do not support PIC, -DPIC is meaningless:
14955   *djgpp*)
14956     lt_prog_compiler_pic_F77=
14957     ;;
14958   *)
14959     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14960     ;;
14961 esac
14962
14963 #
14964 # Check to make sure the static flag actually works.
14965 #
14966 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14967 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14968 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14969 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14970   echo $ECHO_N "(cached) $ECHO_C" >&6
14971 else
14972   lt_prog_compiler_static_works_F77=no
14973    save_LDFLAGS="$LDFLAGS"
14974    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14975    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14976    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14977      # The linker can only warn and ignore the option if not recognized
14978      # So say no if there are warnings
14979      if test -s conftest.err; then
14980        # Append any errors to the config.log.
14981        cat conftest.err 1>&5
14982        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14983        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14984        if diff conftest.exp conftest.er2 >/dev/null; then
14985          lt_prog_compiler_static_works_F77=yes
14986        fi
14987      else
14988        lt_prog_compiler_static_works_F77=yes
14989      fi
14990    fi
14991    $rm conftest*
14992    LDFLAGS="$save_LDFLAGS"
14993
14994 fi
14995 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14996 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14997
14998 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14999     :
15000 else
15001     lt_prog_compiler_static_F77=
15002 fi
15003
15004
15005 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15006 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15007 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15008   echo $ECHO_N "(cached) $ECHO_C" >&6
15009 else
15010   lt_cv_prog_compiler_c_o_F77=no
15011    $rm -r conftest 2>/dev/null
15012    mkdir conftest
15013    cd conftest
15014    mkdir out
15015    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15016
15017    lt_compiler_flag="-o out/conftest2.$ac_objext"
15018    # Insert the option either (1) after the last *FLAGS variable, or
15019    # (2) before a word containing "conftest.", or (3) at the end.
15020    # Note that $ac_compile itself does not contain backslashes and begins
15021    # with a dollar sign (not a hyphen), so the echo should work correctly.
15022    lt_compile=`echo "$ac_compile" | $SED \
15023    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15024    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15025    -e 's:$: $lt_compiler_flag:'`
15026    (eval echo "\"\$as_me:15026: $lt_compile\"" >&5)
15027    (eval "$lt_compile" 2>out/conftest.err)
15028    ac_status=$?
15029    cat out/conftest.err >&5
15030    echo "$as_me:15030: \$? = $ac_status" >&5
15031    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15032    then
15033      # The compiler can only warn and ignore the option if not recognized
15034      # So say no if there are warnings
15035      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15036      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15037      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15038        lt_cv_prog_compiler_c_o_F77=yes
15039      fi
15040    fi
15041    chmod u+w . 2>&5
15042    $rm conftest*
15043    # SGI C++ compiler will create directory out/ii_files/ for
15044    # template instantiation
15045    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15046    $rm out/* && rmdir out
15047    cd ..
15048    rmdir conftest
15049    $rm conftest*
15050
15051 fi
15052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15053 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15054
15055
15056 hard_links="nottested"
15057 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15058   # do not overwrite the value of need_locks provided by the user
15059   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15060 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15061   hard_links=yes
15062   $rm conftest*
15063   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15064   touch conftest.a
15065   ln conftest.a conftest.b 2>&5 || hard_links=no
15066   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15067   { echo "$as_me:$LINENO: result: $hard_links" >&5
15068 echo "${ECHO_T}$hard_links" >&6; }
15069   if test "$hard_links" = no; then
15070     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15071 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15072     need_locks=warn
15073   fi
15074 else
15075   need_locks=no
15076 fi
15077
15078 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15079 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15080
15081   runpath_var=
15082   allow_undefined_flag_F77=
15083   enable_shared_with_static_runtimes_F77=no
15084   archive_cmds_F77=
15085   archive_expsym_cmds_F77=
15086   old_archive_From_new_cmds_F77=
15087   old_archive_from_expsyms_cmds_F77=
15088   export_dynamic_flag_spec_F77=
15089   whole_archive_flag_spec_F77=
15090   thread_safe_flag_spec_F77=
15091   hardcode_libdir_flag_spec_F77=
15092   hardcode_libdir_flag_spec_ld_F77=
15093   hardcode_libdir_separator_F77=
15094   hardcode_direct_F77=no
15095   hardcode_minus_L_F77=no
15096   hardcode_shlibpath_var_F77=unsupported
15097   link_all_deplibs_F77=unknown
15098   hardcode_automatic_F77=no
15099   module_cmds_F77=
15100   module_expsym_cmds_F77=
15101   always_export_symbols_F77=no
15102   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15103   # include_expsyms should be a list of space-separated symbols to be *always*
15104   # included in the symbol list
15105   include_expsyms_F77=
15106   # exclude_expsyms can be an extended regexp of symbols to exclude
15107   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15108   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15109   # as well as any symbol that contains `d'.
15110   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15111   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15112   # platforms (ab)use it in PIC code, but their linkers get confused if
15113   # the symbol is explicitly referenced.  Since portable code cannot
15114   # rely on this symbol name, it's probably fine to never include it in
15115   # preloaded symbol tables.
15116   extract_expsyms_cmds=
15117   # Just being paranoid about ensuring that cc_basename is set.
15118   for cc_temp in $compiler""; do
15119   case $cc_temp in
15120     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15121     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15122     \-*) ;;
15123     *) break;;
15124   esac
15125 done
15126 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15127
15128   case $host_os in
15129   cygwin* | mingw* | pw32*)
15130     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15131     # When not using gcc, we currently assume that we are using
15132     # Microsoft Visual C++.
15133     if test "$GCC" != yes; then
15134       with_gnu_ld=no
15135     fi
15136     ;;
15137   interix*)
15138     # we just hope/assume this is gcc and not c89 (= MSVC++)
15139     with_gnu_ld=yes
15140     ;;
15141   openbsd*)
15142     with_gnu_ld=no
15143     ;;
15144   esac
15145
15146   ld_shlibs_F77=yes
15147   if test "$with_gnu_ld" = yes; then
15148     # If archive_cmds runs LD, not CC, wlarc should be empty
15149     wlarc='${wl}'
15150
15151     # Set some defaults for GNU ld with shared library support. These
15152     # are reset later if shared libraries are not supported. Putting them
15153     # here allows them to be overridden if necessary.
15154     runpath_var=LD_RUN_PATH
15155     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15156     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15157     # ancient GNU ld didn't support --whole-archive et. al.
15158     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15159         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15160       else
15161         whole_archive_flag_spec_F77=
15162     fi
15163     supports_anon_versioning=no
15164     case `$LD -v 2>/dev/null` in
15165       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15166       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15167       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15168       *\ 2.11.*) ;; # other 2.11 versions
15169       *) supports_anon_versioning=yes ;;
15170     esac
15171
15172     # See if GNU ld supports shared libraries.
15173     case $host_os in
15174     aix3* | aix4* | aix5*)
15175       # On AIX/PPC, the GNU linker is very broken
15176       if test "$host_cpu" != ia64; then
15177         ld_shlibs_F77=no
15178         cat <<EOF 1>&2
15179
15180 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15181 *** to be unable to reliably create shared libraries on AIX.
15182 *** Therefore, libtool is disabling shared libraries support.  If you
15183 *** really care for shared libraries, you may want to modify your PATH
15184 *** so that a non-GNU linker is found, and then restart.
15185
15186 EOF
15187       fi
15188       ;;
15189
15190     amigaos*)
15191       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)'
15192       hardcode_libdir_flag_spec_F77='-L$libdir'
15193       hardcode_minus_L_F77=yes
15194
15195       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15196       # that the semantics of dynamic libraries on AmigaOS, at least up
15197       # to version 4, is to share data among multiple programs linked
15198       # with the same dynamic library.  Since this doesn't match the
15199       # behavior of shared libraries on other platforms, we can't use
15200       # them.
15201       ld_shlibs_F77=no
15202       ;;
15203
15204     beos*)
15205       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15206         allow_undefined_flag_F77=unsupported
15207         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15208         # support --undefined.  This deserves some investigation.  FIXME
15209         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15210       else
15211         ld_shlibs_F77=no
15212       fi
15213       ;;
15214
15215     cygwin* | mingw* | pw32*)
15216       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15217       # as there is no search path for DLLs.
15218       hardcode_libdir_flag_spec_F77='-L$libdir'
15219       allow_undefined_flag_F77=unsupported
15220       always_export_symbols_F77=no
15221       enable_shared_with_static_runtimes_F77=yes
15222       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15223
15224       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15225         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15226         # If the export-symbols file already is a .def file (1st line
15227         # is EXPORTS), use it as is; otherwise, prepend...
15228         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15229           cp $export_symbols $output_objdir/$soname.def;
15230         else
15231           echo EXPORTS > $output_objdir/$soname.def;
15232           cat $export_symbols >> $output_objdir/$soname.def;
15233         fi~
15234         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15235       else
15236         ld_shlibs_F77=no
15237       fi
15238       ;;
15239
15240     interix[3-9]*)
15241       hardcode_direct_F77=no
15242       hardcode_shlibpath_var_F77=no
15243       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15244       export_dynamic_flag_spec_F77='${wl}-E'
15245       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15246       # Instead, shared libraries are loaded at an image base (0x10000000 by
15247       # default) and relocated if they conflict, which is a slow very memory
15248       # consuming and fragmenting process.  To avoid this, we pick a random,
15249       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15250       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15251       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'
15252       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'
15253       ;;
15254
15255     gnu* | linux* | k*bsd*-gnu)
15256       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15257         tmp_addflag=
15258         case $cc_basename,$host_cpu in
15259         pgcc*)                          # Portland Group C compiler
15260           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'
15261           tmp_addflag=' $pic_flag'
15262           ;;
15263         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15264           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'
15265           tmp_addflag=' $pic_flag -Mnomain' ;;
15266         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15267           tmp_addflag=' -i_dynamic' ;;
15268         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15269           tmp_addflag=' -i_dynamic -nofor_main' ;;
15270         ifc* | ifort*)                  # Intel Fortran compiler
15271           tmp_addflag=' -nofor_main' ;;
15272         esac
15273         case `$CC -V 2>&1 | sed 5q` in
15274         *Sun\ C*)                       # Sun C 5.9
15275           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15276           tmp_sharedflag='-G' ;;
15277         *Sun\ F*)                       # Sun Fortran 8.3
15278           tmp_sharedflag='-G' ;;
15279         *)
15280           tmp_sharedflag='-shared' ;;
15281         esac
15282         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283
15284         if test $supports_anon_versioning = yes; then
15285           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15286   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15287   $echo "local: *; };" >> $output_objdir/$libname.ver~
15288           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15289         fi
15290         link_all_deplibs_F77=no
15291       else
15292         ld_shlibs_F77=no
15293       fi
15294       ;;
15295
15296     netbsd* | netbsdelf*-gnu)
15297       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15298         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15299         wlarc=
15300       else
15301         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15302         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15303       fi
15304       ;;
15305
15306     solaris*)
15307       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15308         ld_shlibs_F77=no
15309         cat <<EOF 1>&2
15310
15311 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15312 *** create shared libraries on Solaris systems.  Therefore, libtool
15313 *** is disabling shared libraries support.  We urge you to upgrade GNU
15314 *** binutils to release 2.9.1 or newer.  Another option is to modify
15315 *** your PATH or compiler configuration so that the native linker is
15316 *** used, and then restart.
15317
15318 EOF
15319       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15320         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15322       else
15323         ld_shlibs_F77=no
15324       fi
15325       ;;
15326
15327     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15328       case `$LD -v 2>&1` in
15329         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15330         ld_shlibs_F77=no
15331         cat <<_LT_EOF 1>&2
15332
15333 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15334 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15335 *** is disabling shared libraries support.  We urge you to upgrade GNU
15336 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15337 *** your PATH or compiler configuration so that the native linker is
15338 *** used, and then restart.
15339
15340 _LT_EOF
15341         ;;
15342         *)
15343           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15344             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15345             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15346             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15347           else
15348             ld_shlibs_F77=no
15349           fi
15350         ;;
15351       esac
15352       ;;
15353
15354     sunos4*)
15355       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15356       wlarc=
15357       hardcode_direct_F77=yes
15358       hardcode_shlibpath_var_F77=no
15359       ;;
15360
15361     *)
15362       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15363         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15364         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15365       else
15366         ld_shlibs_F77=no
15367       fi
15368       ;;
15369     esac
15370
15371     if test "$ld_shlibs_F77" = no; then
15372       runpath_var=
15373       hardcode_libdir_flag_spec_F77=
15374       export_dynamic_flag_spec_F77=
15375       whole_archive_flag_spec_F77=
15376     fi
15377   else
15378     # PORTME fill in a description of your system's linker (not GNU ld)
15379     case $host_os in
15380     aix3*)
15381       allow_undefined_flag_F77=unsupported
15382       always_export_symbols_F77=yes
15383       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'
15384       # Note: this linker hardcodes the directories in LIBPATH if there
15385       # are no directories specified by -L.
15386       hardcode_minus_L_F77=yes
15387       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15388         # Neither direct hardcoding nor static linking is supported with a
15389         # broken collect2.
15390         hardcode_direct_F77=unsupported
15391       fi
15392       ;;
15393
15394     aix4* | aix5*)
15395       if test "$host_cpu" = ia64; then
15396         # On IA64, the linker does run time linking by default, so we don't
15397         # have to do anything special.
15398         aix_use_runtimelinking=no
15399         exp_sym_flag='-Bexport'
15400         no_entry_flag=""
15401       else
15402         # If we're using GNU nm, then we don't want the "-C" option.
15403         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15404         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15405           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'
15406         else
15407           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'
15408         fi
15409         aix_use_runtimelinking=no
15410
15411         # Test if we are trying to use run time linking or normal
15412         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15413         # need to do runtime linking.
15414         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15415           for ld_flag in $LDFLAGS; do
15416           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15417             aix_use_runtimelinking=yes
15418             break
15419           fi
15420           done
15421           ;;
15422         esac
15423
15424         exp_sym_flag='-bexport'
15425         no_entry_flag='-bnoentry'
15426       fi
15427
15428       # When large executables or shared objects are built, AIX ld can
15429       # have problems creating the table of contents.  If linking a library
15430       # or program results in "error TOC overflow" add -mminimal-toc to
15431       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15432       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15433
15434       archive_cmds_F77=''
15435       hardcode_direct_F77=yes
15436       hardcode_libdir_separator_F77=':'
15437       link_all_deplibs_F77=yes
15438
15439       if test "$GCC" = yes; then
15440         case $host_os in aix4.[012]|aix4.[012].*)
15441         # We only want to do this on AIX 4.2 and lower, the check
15442         # below for broken collect2 doesn't work under 4.3+
15443           collect2name=`${CC} -print-prog-name=collect2`
15444           if test -f "$collect2name" && \
15445            strings "$collect2name" | grep resolve_lib_name >/dev/null
15446           then
15447           # We have reworked collect2
15448           :
15449           else
15450           # We have old collect2
15451           hardcode_direct_F77=unsupported
15452           # It fails to find uninstalled libraries when the uninstalled
15453           # path is not listed in the libpath.  Setting hardcode_minus_L
15454           # to unsupported forces relinking
15455           hardcode_minus_L_F77=yes
15456           hardcode_libdir_flag_spec_F77='-L$libdir'
15457           hardcode_libdir_separator_F77=
15458           fi
15459           ;;
15460         esac
15461         shared_flag='-shared'
15462         if test "$aix_use_runtimelinking" = yes; then
15463           shared_flag="$shared_flag "'${wl}-G'
15464         fi
15465       else
15466         # not using gcc
15467         if test "$host_cpu" = ia64; then
15468         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15469         # chokes on -Wl,-G. The following line is correct:
15470           shared_flag='-G'
15471         else
15472           if test "$aix_use_runtimelinking" = yes; then
15473             shared_flag='${wl}-G'
15474           else
15475             shared_flag='${wl}-bM:SRE'
15476           fi
15477         fi
15478       fi
15479
15480       # It seems that -bexpall does not export symbols beginning with
15481       # underscore (_), so it is better to generate a list of symbols to export.
15482       always_export_symbols_F77=yes
15483       if test "$aix_use_runtimelinking" = yes; then
15484         # Warning - without using the other runtime loading flags (-brtl),
15485         # -berok will link without error, but may produce a broken library.
15486         allow_undefined_flag_F77='-berok'
15487        # Determine the default libpath from the value encoded in an empty executable.
15488        cat >conftest.$ac_ext <<_ACEOF
15489       program main
15490
15491       end
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_link") 2>conftest.er1
15501   ac_status=$?
15502   grep -v '^ *+' conftest.er1 >conftest.err
15503   rm -f conftest.er1
15504   cat conftest.err >&5
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); } && {
15507          test -z "$ac_f77_werror_flag" ||
15508          test ! -s conftest.err
15509        } && test -s conftest$ac_exeext &&
15510        $as_test_x conftest$ac_exeext; then
15511
15512 lt_aix_libpath_sed='
15513     /Import File Strings/,/^$/ {
15514         /^0/ {
15515             s/^0  *\(.*\)$/\1/
15516             p
15517         }
15518     }'
15519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15520 # Check for a 64-bit object if we didn't find anything.
15521 if test -z "$aix_libpath"; then
15522   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15523 fi
15524 else
15525   echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528
15529 fi
15530
15531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15532       conftest$ac_exeext conftest.$ac_ext
15533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15534
15535        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15536         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"
15537        else
15538         if test "$host_cpu" = ia64; then
15539           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15540           allow_undefined_flag_F77="-z nodefs"
15541           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"
15542         else
15543          # Determine the default libpath from the value encoded in an empty executable.
15544          cat >conftest.$ac_ext <<_ACEOF
15545       program main
15546
15547       end
15548 _ACEOF
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (ac_try="$ac_link"
15551 case "(($ac_try" in
15552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553   *) ac_try_echo=$ac_try;;
15554 esac
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556   (eval "$ac_link") 2>conftest.er1
15557   ac_status=$?
15558   grep -v '^ *+' conftest.er1 >conftest.err
15559   rm -f conftest.er1
15560   cat conftest.err >&5
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); } && {
15563          test -z "$ac_f77_werror_flag" ||
15564          test ! -s conftest.err
15565        } && test -s conftest$ac_exeext &&
15566        $as_test_x conftest$ac_exeext; then
15567
15568 lt_aix_libpath_sed='
15569     /Import File Strings/,/^$/ {
15570         /^0/ {
15571             s/^0  *\(.*\)$/\1/
15572             p
15573         }
15574     }'
15575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15576 # Check for a 64-bit object if we didn't find anything.
15577 if test -z "$aix_libpath"; then
15578   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15579 fi
15580 else
15581   echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15583
15584
15585 fi
15586
15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588       conftest$ac_exeext conftest.$ac_ext
15589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15590
15591          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15592           # Warning - without using the other run time loading flags,
15593           # -berok will link without error, but may produce a broken library.
15594           no_undefined_flag_F77=' ${wl}-bernotok'
15595           allow_undefined_flag_F77=' ${wl}-berok'
15596           # Exported symbols can be pulled into shared objects from archives
15597           whole_archive_flag_spec_F77='$convenience'
15598           archive_cmds_need_lc_F77=yes
15599           # This is similar to how AIX traditionally builds its shared libraries.
15600           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'
15601         fi
15602       fi
15603       ;;
15604
15605     amigaos*)
15606       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)'
15607       hardcode_libdir_flag_spec_F77='-L$libdir'
15608       hardcode_minus_L_F77=yes
15609       # see comment about different semantics on the GNU ld section
15610       ld_shlibs_F77=no
15611       ;;
15612
15613     bsdi[45]*)
15614       export_dynamic_flag_spec_F77=-rdynamic
15615       ;;
15616
15617     cygwin* | mingw* | pw32*)
15618       # When not using gcc, we currently assume that we are using
15619       # Microsoft Visual C++.
15620       # hardcode_libdir_flag_spec is actually meaningless, as there is
15621       # no search path for DLLs.
15622       hardcode_libdir_flag_spec_F77=' '
15623       allow_undefined_flag_F77=unsupported
15624       # Tell ltmain to make .lib files, not .a files.
15625       libext=lib
15626       # Tell ltmain to make .dll files, not .so files.
15627       shrext_cmds=".dll"
15628       # FIXME: Setting linknames here is a bad hack.
15629       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15630       # The linker will automatically build a .lib file if we build a DLL.
15631       old_archive_From_new_cmds_F77='true'
15632       # FIXME: Should let the user specify the lib program.
15633       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15634       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15635       enable_shared_with_static_runtimes_F77=yes
15636       ;;
15637
15638     darwin* | rhapsody*)
15639       case $host_os in
15640         rhapsody* | darwin1.[012])
15641          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15642          ;;
15643        *) # Darwin 1.3 on
15644          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15645            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15646          else
15647            case ${MACOSX_DEPLOYMENT_TARGET} in
15648              10.[012])
15649                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15650                ;;
15651              10.*)
15652                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15653                ;;
15654            esac
15655          fi
15656          ;;
15657       esac
15658       archive_cmds_need_lc_F77=no
15659       hardcode_direct_F77=no
15660       hardcode_automatic_F77=yes
15661       hardcode_shlibpath_var_F77=unsupported
15662       whole_archive_flag_spec_F77=''
15663       link_all_deplibs_F77=yes
15664     if test "$GCC" = yes ; then
15665         output_verbose_link_cmd='echo'
15666         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15667       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15668       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15669       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}'
15670       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}'
15671     else
15672       case $cc_basename in
15673         xlc*)
15674          output_verbose_link_cmd='echo'
15675          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15676          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15677           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15678          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15679           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}'
15680           ;;
15681        *)
15682          ld_shlibs_F77=no
15683           ;;
15684       esac
15685     fi
15686       ;;
15687
15688     dgux*)
15689       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690       hardcode_libdir_flag_spec_F77='-L$libdir'
15691       hardcode_shlibpath_var_F77=no
15692       ;;
15693
15694     freebsd1*)
15695       ld_shlibs_F77=no
15696       ;;
15697
15698     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15699     # support.  Future versions do this automatically, but an explicit c++rt0.o
15700     # does not break anything, and helps significantly (at the cost of a little
15701     # extra space).
15702     freebsd2.2*)
15703       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15704       hardcode_libdir_flag_spec_F77='-R$libdir'
15705       hardcode_direct_F77=yes
15706       hardcode_shlibpath_var_F77=no
15707       ;;
15708
15709     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15710     freebsd2*)
15711       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15712       hardcode_direct_F77=yes
15713       hardcode_minus_L_F77=yes
15714       hardcode_shlibpath_var_F77=no
15715       ;;
15716
15717     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15718     freebsd* | dragonfly*)
15719       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15720       hardcode_libdir_flag_spec_F77='-R$libdir'
15721       hardcode_direct_F77=yes
15722       hardcode_shlibpath_var_F77=no
15723       ;;
15724
15725     hpux9*)
15726       if test "$GCC" = yes; then
15727         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'
15728       else
15729         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'
15730       fi
15731       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15732       hardcode_libdir_separator_F77=:
15733       hardcode_direct_F77=yes
15734
15735       # hardcode_minus_L: Not really in the search PATH,
15736       # but as the default location of the library.
15737       hardcode_minus_L_F77=yes
15738       export_dynamic_flag_spec_F77='${wl}-E'
15739       ;;
15740
15741     hpux10*)
15742       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15743         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15744       else
15745         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15746       fi
15747       if test "$with_gnu_ld" = no; then
15748         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15749         hardcode_libdir_separator_F77=:
15750
15751         hardcode_direct_F77=yes
15752         export_dynamic_flag_spec_F77='${wl}-E'
15753
15754         # hardcode_minus_L: Not really in the search PATH,
15755         # but as the default location of the library.
15756         hardcode_minus_L_F77=yes
15757       fi
15758       ;;
15759
15760     hpux11*)
15761       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15762         case $host_cpu in
15763         hppa*64*)
15764           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15765           ;;
15766         ia64*)
15767           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15768           ;;
15769         *)
15770           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15771           ;;
15772         esac
15773       else
15774         case $host_cpu in
15775         hppa*64*)
15776           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777           ;;
15778         ia64*)
15779           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15780           ;;
15781         *)
15782           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15783           ;;
15784         esac
15785       fi
15786       if test "$with_gnu_ld" = no; then
15787         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15788         hardcode_libdir_separator_F77=:
15789
15790         case $host_cpu in
15791         hppa*64*|ia64*)
15792           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15793           hardcode_direct_F77=no
15794           hardcode_shlibpath_var_F77=no
15795           ;;
15796         *)
15797           hardcode_direct_F77=yes
15798           export_dynamic_flag_spec_F77='${wl}-E'
15799
15800           # hardcode_minus_L: Not really in the search PATH,
15801           # but as the default location of the library.
15802           hardcode_minus_L_F77=yes
15803           ;;
15804         esac
15805       fi
15806       ;;
15807
15808     irix5* | irix6* | nonstopux*)
15809       if test "$GCC" = yes; then
15810         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'
15811       else
15812         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'
15813         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15814       fi
15815       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15816       hardcode_libdir_separator_F77=:
15817       link_all_deplibs_F77=yes
15818       ;;
15819
15820     netbsd* | netbsdelf*-gnu)
15821       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15822         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15823       else
15824         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15825       fi
15826       hardcode_libdir_flag_spec_F77='-R$libdir'
15827       hardcode_direct_F77=yes
15828       hardcode_shlibpath_var_F77=no
15829       ;;
15830
15831     newsos6)
15832       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15833       hardcode_direct_F77=yes
15834       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15835       hardcode_libdir_separator_F77=:
15836       hardcode_shlibpath_var_F77=no
15837       ;;
15838
15839     openbsd*)
15840       if test -f /usr/libexec/ld.so; then
15841         hardcode_direct_F77=yes
15842         hardcode_shlibpath_var_F77=no
15843         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15844           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15845           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15846           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15847           export_dynamic_flag_spec_F77='${wl}-E'
15848         else
15849           case $host_os in
15850            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15851              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15852              hardcode_libdir_flag_spec_F77='-R$libdir'
15853              ;;
15854            *)
15855              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15856              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15857              ;;
15858           esac
15859         fi
15860       else
15861         ld_shlibs_F77=no
15862       fi
15863       ;;
15864
15865     os2*)
15866       hardcode_libdir_flag_spec_F77='-L$libdir'
15867       hardcode_minus_L_F77=yes
15868       allow_undefined_flag_F77=unsupported
15869       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'
15870       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15871       ;;
15872
15873     osf3*)
15874       if test "$GCC" = yes; then
15875         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15876         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'
15877       else
15878         allow_undefined_flag_F77=' -expect_unresolved \*'
15879         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'
15880       fi
15881       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15882       hardcode_libdir_separator_F77=:
15883       ;;
15884
15885     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15886       if test "$GCC" = yes; then
15887         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15888         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'
15889         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15890       else
15891         allow_undefined_flag_F77=' -expect_unresolved \*'
15892         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'
15893         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~
15894         $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'
15895
15896         # Both c and cxx compiler support -rpath directly
15897         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15898       fi
15899       hardcode_libdir_separator_F77=:
15900       ;;
15901
15902     solaris*)
15903       no_undefined_flag_F77=' -z text'
15904       if test "$GCC" = yes; then
15905         wlarc='${wl}'
15906         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15907         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15908           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15909       else
15910         wlarc=''
15911         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15912         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15913         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15914       fi
15915       hardcode_libdir_flag_spec_F77='-R$libdir'
15916       hardcode_shlibpath_var_F77=no
15917       case $host_os in
15918       solaris2.[0-5] | solaris2.[0-5].*) ;;
15919       *)
15920         # The compiler driver will combine and reorder linker options,
15921         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15922         # but is careful enough not to reorder.
15923         # Supported since Solaris 2.6 (maybe 2.5.1?)
15924         if test "$GCC" = yes; then
15925           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15926         else
15927           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15928         fi
15929         ;;
15930       esac
15931       link_all_deplibs_F77=yes
15932       ;;
15933
15934     sunos4*)
15935       if test "x$host_vendor" = xsequent; then
15936         # Use $CC to link under sequent, because it throws in some extra .o
15937         # files that make .init and .fini sections work.
15938         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15939       else
15940         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15941       fi
15942       hardcode_libdir_flag_spec_F77='-L$libdir'
15943       hardcode_direct_F77=yes
15944       hardcode_minus_L_F77=yes
15945       hardcode_shlibpath_var_F77=no
15946       ;;
15947
15948     sysv4)
15949       case $host_vendor in
15950         sni)
15951           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952           hardcode_direct_F77=yes # is this really true???
15953         ;;
15954         siemens)
15955           ## LD is ld it makes a PLAMLIB
15956           ## CC just makes a GrossModule.
15957           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15958           reload_cmds_F77='$CC -r -o $output$reload_objs'
15959           hardcode_direct_F77=no
15960         ;;
15961         motorola)
15962           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15963           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15964         ;;
15965       esac
15966       runpath_var='LD_RUN_PATH'
15967       hardcode_shlibpath_var_F77=no
15968       ;;
15969
15970     sysv4.3*)
15971       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15972       hardcode_shlibpath_var_F77=no
15973       export_dynamic_flag_spec_F77='-Bexport'
15974       ;;
15975
15976     sysv4*MP*)
15977       if test -d /usr/nec; then
15978         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15979         hardcode_shlibpath_var_F77=no
15980         runpath_var=LD_RUN_PATH
15981         hardcode_runpath_var=yes
15982         ld_shlibs_F77=yes
15983       fi
15984       ;;
15985
15986     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15987       no_undefined_flag_F77='${wl}-z,text'
15988       archive_cmds_need_lc_F77=no
15989       hardcode_shlibpath_var_F77=no
15990       runpath_var='LD_RUN_PATH'
15991
15992       if test "$GCC" = yes; then
15993         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15994         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15995       else
15996         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15997         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15998       fi
15999       ;;
16000
16001     sysv5* | sco3.2v5* | sco5v6*)
16002       # Note: We can NOT use -z defs as we might desire, because we do not
16003       # link with -lc, and that would cause any symbols used from libc to
16004       # always be unresolved, which means just about no library would
16005       # ever link correctly.  If we're not using GNU ld we use -z text
16006       # though, which does catch some bad symbols but isn't as heavy-handed
16007       # as -z defs.
16008       no_undefined_flag_F77='${wl}-z,text'
16009       allow_undefined_flag_F77='${wl}-z,nodefs'
16010       archive_cmds_need_lc_F77=no
16011       hardcode_shlibpath_var_F77=no
16012       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16013       hardcode_libdir_separator_F77=':'
16014       link_all_deplibs_F77=yes
16015       export_dynamic_flag_spec_F77='${wl}-Bexport'
16016       runpath_var='LD_RUN_PATH'
16017
16018       if test "$GCC" = yes; then
16019         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16020         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16021       else
16022         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16023         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16024       fi
16025       ;;
16026
16027     uts4*)
16028       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16029       hardcode_libdir_flag_spec_F77='-L$libdir'
16030       hardcode_shlibpath_var_F77=no
16031       ;;
16032
16033     *)
16034       ld_shlibs_F77=no
16035       ;;
16036     esac
16037   fi
16038
16039 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16040 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16041 test "$ld_shlibs_F77" = no && can_build_shared=no
16042
16043 #
16044 # Do we need to explicitly link libc?
16045 #
16046 case "x$archive_cmds_need_lc_F77" in
16047 x|xyes)
16048   # Assume -lc should be added
16049   archive_cmds_need_lc_F77=yes
16050
16051   if test "$enable_shared" = yes && test "$GCC" = yes; then
16052     case $archive_cmds_F77 in
16053     *'~'*)
16054       # FIXME: we may have to deal with multi-command sequences.
16055       ;;
16056     '$CC '*)
16057       # Test whether the compiler implicitly links with -lc since on some
16058       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16059       # to ld, don't add -lc before -lgcc.
16060       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16062       $rm conftest*
16063       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16064
16065       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16066   (eval $ac_compile) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } 2>conftest.err; then
16070         soname=conftest
16071         lib=conftest
16072         libobjs=conftest.$ac_objext
16073         deplibs=
16074         wl=$lt_prog_compiler_wl_F77
16075         pic_flag=$lt_prog_compiler_pic_F77
16076         compiler_flags=-v
16077         linker_flags=-v
16078         verstring=
16079         output_objdir=.
16080         libname=conftest
16081         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16082         allow_undefined_flag_F77=
16083         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16084   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16085   ac_status=$?
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); }
16088         then
16089           archive_cmds_need_lc_F77=no
16090         else
16091           archive_cmds_need_lc_F77=yes
16092         fi
16093         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16094       else
16095         cat conftest.err 1>&5
16096       fi
16097       $rm conftest*
16098       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16099 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16100       ;;
16101     esac
16102   fi
16103   ;;
16104 esac
16105
16106 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16107 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16108 library_names_spec=
16109 libname_spec='lib$name'
16110 soname_spec=
16111 shrext_cmds=".so"
16112 postinstall_cmds=
16113 postuninstall_cmds=
16114 finish_cmds=
16115 finish_eval=
16116 shlibpath_var=
16117 shlibpath_overrides_runpath=unknown
16118 version_type=none
16119 dynamic_linker="$host_os ld.so"
16120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16121
16122 need_lib_prefix=unknown
16123 hardcode_into_libs=no
16124
16125 # when you set need_version to no, make sure it does not cause -set_version
16126 # flags to be left without arguments
16127 need_version=unknown
16128
16129 case $host_os in
16130 aix3*)
16131   version_type=linux
16132   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16133   shlibpath_var=LIBPATH
16134
16135   # AIX 3 has no versioning support, so we append a major version to the name.
16136   soname_spec='${libname}${release}${shared_ext}$major'
16137   ;;
16138
16139 aix4* | aix5*)
16140   version_type=linux
16141   need_lib_prefix=no
16142   need_version=no
16143   hardcode_into_libs=yes
16144   if test "$host_cpu" = ia64; then
16145     # AIX 5 supports IA64
16146     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16147     shlibpath_var=LD_LIBRARY_PATH
16148   else
16149     # With GCC up to 2.95.x, collect2 would create an import file
16150     # for dependence libraries.  The import file would start with
16151     # the line `#! .'.  This would cause the generated library to
16152     # depend on `.', always an invalid library.  This was fixed in
16153     # development snapshots of GCC prior to 3.0.
16154     case $host_os in
16155       aix4 | aix4.[01] | aix4.[01].*)
16156       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16157            echo ' yes '
16158            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16159         :
16160       else
16161         can_build_shared=no
16162       fi
16163       ;;
16164     esac
16165     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16166     # soname into executable. Probably we can add versioning support to
16167     # collect2, so additional links can be useful in future.
16168     if test "$aix_use_runtimelinking" = yes; then
16169       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16170       # instead of lib<name>.a to let people know that these are not
16171       # typical AIX shared libraries.
16172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173     else
16174       # We preserve .a as extension for shared libraries through AIX4.2
16175       # and later when we are not doing run time linking.
16176       library_names_spec='${libname}${release}.a $libname.a'
16177       soname_spec='${libname}${release}${shared_ext}$major'
16178     fi
16179     shlibpath_var=LIBPATH
16180   fi
16181   ;;
16182
16183 amigaos*)
16184   library_names_spec='$libname.ixlibrary $libname.a'
16185   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16186   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'
16187   ;;
16188
16189 beos*)
16190   library_names_spec='${libname}${shared_ext}'
16191   dynamic_linker="$host_os ld.so"
16192   shlibpath_var=LIBRARY_PATH
16193   ;;
16194
16195 bsdi[45]*)
16196   version_type=linux
16197   need_version=no
16198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16199   soname_spec='${libname}${release}${shared_ext}$major'
16200   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16201   shlibpath_var=LD_LIBRARY_PATH
16202   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16203   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16204   # the default ld.so.conf also contains /usr/contrib/lib and
16205   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16206   # libtool to hard-code these into programs
16207   ;;
16208
16209 cygwin* | mingw* | pw32*)
16210   version_type=windows
16211   shrext_cmds=".dll"
16212   need_version=no
16213   need_lib_prefix=no
16214
16215   case $GCC,$host_os in
16216   yes,cygwin* | yes,mingw* | yes,pw32*)
16217     library_names_spec='$libname.dll.a'
16218     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16219     postinstall_cmds='base_file=`basename \${file}`~
16220       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16221       dldir=$destdir/`dirname \$dlpath`~
16222       test -d \$dldir || mkdir -p \$dldir~
16223       $install_prog $dir/$dlname \$dldir/$dlname~
16224       chmod a+x \$dldir/$dlname'
16225     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16226       dlpath=$dir/\$dldll~
16227        $rm \$dlpath'
16228     shlibpath_overrides_runpath=yes
16229
16230     case $host_os in
16231     cygwin*)
16232       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16233       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16234       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16235       ;;
16236     mingw*)
16237       # MinGW DLLs use traditional 'lib' prefix
16238       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16239       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16240       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16241         # It is most probably a Windows format PATH printed by
16242         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16243         # path with ; separators, and with drive letters. We can handle the
16244         # drive letters (cygwin fileutils understands them), so leave them,
16245         # especially as we might pass files found there to a mingw objdump,
16246         # which wouldn't understand a cygwinified path. Ahh.
16247         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16248       else
16249         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16250       fi
16251       ;;
16252     pw32*)
16253       # pw32 DLLs use 'pw' prefix rather than 'lib'
16254       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16255       ;;
16256     esac
16257     ;;
16258
16259   *)
16260     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16261     ;;
16262   esac
16263   dynamic_linker='Win32 ld.exe'
16264   # FIXME: first we should search . and the directory the executable is in
16265   shlibpath_var=PATH
16266   ;;
16267
16268 darwin* | rhapsody*)
16269   dynamic_linker="$host_os dyld"
16270   version_type=darwin
16271   need_lib_prefix=no
16272   need_version=no
16273   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16274   soname_spec='${libname}${release}${major}$shared_ext'
16275   shlibpath_overrides_runpath=yes
16276   shlibpath_var=DYLD_LIBRARY_PATH
16277   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16278
16279   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16280   ;;
16281
16282 dgux*)
16283   version_type=linux
16284   need_lib_prefix=no
16285   need_version=no
16286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16287   soname_spec='${libname}${release}${shared_ext}$major'
16288   shlibpath_var=LD_LIBRARY_PATH
16289   ;;
16290
16291 freebsd1*)
16292   dynamic_linker=no
16293   ;;
16294
16295 freebsd* | dragonfly*)
16296   # DragonFly does not have aout.  When/if they implement a new
16297   # versioning mechanism, adjust this.
16298   if test -x /usr/bin/objformat; then
16299     objformat=`/usr/bin/objformat`
16300   else
16301     case $host_os in
16302     freebsd[123]*) objformat=aout ;;
16303     *) objformat=elf ;;
16304     esac
16305   fi
16306   version_type=freebsd-$objformat
16307   case $version_type in
16308     freebsd-elf*)
16309       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16310       need_version=no
16311       need_lib_prefix=no
16312       ;;
16313     freebsd-*)
16314       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16315       need_version=yes
16316       ;;
16317   esac
16318   shlibpath_var=LD_LIBRARY_PATH
16319   case $host_os in
16320   freebsd2*)
16321     shlibpath_overrides_runpath=yes
16322     ;;
16323   freebsd3.[01]* | freebsdelf3.[01]*)
16324     shlibpath_overrides_runpath=yes
16325     hardcode_into_libs=yes
16326     ;;
16327   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16328   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16329     shlibpath_overrides_runpath=no
16330     hardcode_into_libs=yes
16331     ;;
16332   *) # from 4.6 on, and DragonFly
16333     shlibpath_overrides_runpath=yes
16334     hardcode_into_libs=yes
16335     ;;
16336   esac
16337   ;;
16338
16339 gnu*)
16340   version_type=linux
16341   need_lib_prefix=no
16342   need_version=no
16343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16344   soname_spec='${libname}${release}${shared_ext}$major'
16345   shlibpath_var=LD_LIBRARY_PATH
16346   hardcode_into_libs=yes
16347   ;;
16348
16349 hpux9* | hpux10* | hpux11*)
16350   # Give a soname corresponding to the major version so that dld.sl refuses to
16351   # link against other versions.
16352   version_type=sunos
16353   need_lib_prefix=no
16354   need_version=no
16355   case $host_cpu in
16356   ia64*)
16357     shrext_cmds='.so'
16358     hardcode_into_libs=yes
16359     dynamic_linker="$host_os dld.so"
16360     shlibpath_var=LD_LIBRARY_PATH
16361     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363     soname_spec='${libname}${release}${shared_ext}$major'
16364     if test "X$HPUX_IA64_MODE" = X32; then
16365       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16366     else
16367       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16368     fi
16369     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16370     ;;
16371    hppa*64*)
16372      shrext_cmds='.sl'
16373      hardcode_into_libs=yes
16374      dynamic_linker="$host_os dld.sl"
16375      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16376      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16377      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16378      soname_spec='${libname}${release}${shared_ext}$major'
16379      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16380      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16381      ;;
16382    *)
16383     shrext_cmds='.sl'
16384     dynamic_linker="$host_os dld.sl"
16385     shlibpath_var=SHLIB_PATH
16386     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16387     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388     soname_spec='${libname}${release}${shared_ext}$major'
16389     ;;
16390   esac
16391   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16392   postinstall_cmds='chmod 555 $lib'
16393   ;;
16394
16395 interix[3-9]*)
16396   version_type=linux
16397   need_lib_prefix=no
16398   need_version=no
16399   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16400   soname_spec='${libname}${release}${shared_ext}$major'
16401   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16402   shlibpath_var=LD_LIBRARY_PATH
16403   shlibpath_overrides_runpath=no
16404   hardcode_into_libs=yes
16405   ;;
16406
16407 irix5* | irix6* | nonstopux*)
16408   case $host_os in
16409     nonstopux*) version_type=nonstopux ;;
16410     *)
16411         if test "$lt_cv_prog_gnu_ld" = yes; then
16412                 version_type=linux
16413         else
16414                 version_type=irix
16415         fi ;;
16416   esac
16417   need_lib_prefix=no
16418   need_version=no
16419   soname_spec='${libname}${release}${shared_ext}$major'
16420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16421   case $host_os in
16422   irix5* | nonstopux*)
16423     libsuff= shlibsuff=
16424     ;;
16425   *)
16426     case $LD in # libtool.m4 will add one of these switches to LD
16427     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16428       libsuff= shlibsuff= libmagic=32-bit;;
16429     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16430       libsuff=32 shlibsuff=N32 libmagic=N32;;
16431     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16432       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16433     *) libsuff= shlibsuff= libmagic=never-match;;
16434     esac
16435     ;;
16436   esac
16437   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16438   shlibpath_overrides_runpath=no
16439   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16440   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16441   hardcode_into_libs=yes
16442   ;;
16443
16444 # No shared lib support for Linux oldld, aout, or coff.
16445 linux*oldld* | linux*aout* | linux*coff*)
16446   dynamic_linker=no
16447   ;;
16448
16449 # This must be Linux ELF.
16450 linux* | k*bsd*-gnu)
16451   version_type=linux
16452   need_lib_prefix=no
16453   need_version=no
16454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16455   soname_spec='${libname}${release}${shared_ext}$major'
16456   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16457   shlibpath_var=LD_LIBRARY_PATH
16458   shlibpath_overrides_runpath=no
16459   # This implies no fast_install, which is unacceptable.
16460   # Some rework will be needed to allow for fast_install
16461   # before this can be enabled.
16462   hardcode_into_libs=yes
16463
16464   # Append ld.so.conf contents to the search path
16465   if test -f /etc/ld.so.conf; then
16466     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16467     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16468   fi
16469
16470   # We used to test for /lib/ld.so.1 and disable shared libraries on
16471   # powerpc, because MkLinux only supported shared libraries with the
16472   # GNU dynamic linker.  Since this was broken with cross compilers,
16473   # most powerpc-linux boxes support dynamic linking these days and
16474   # people can always --disable-shared, the test was removed, and we
16475   # assume the GNU/Linux dynamic linker is in use.
16476   dynamic_linker='GNU/Linux ld.so'
16477   ;;
16478
16479 netbsdelf*-gnu)
16480   version_type=linux
16481   need_lib_prefix=no
16482   need_version=no
16483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16484   soname_spec='${libname}${release}${shared_ext}$major'
16485   shlibpath_var=LD_LIBRARY_PATH
16486   shlibpath_overrides_runpath=no
16487   hardcode_into_libs=yes
16488   dynamic_linker='NetBSD ld.elf_so'
16489   ;;
16490
16491 netbsd*)
16492   version_type=sunos
16493   need_lib_prefix=no
16494   need_version=no
16495   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16496     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16497     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16498     dynamic_linker='NetBSD (a.out) ld.so'
16499   else
16500     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16501     soname_spec='${libname}${release}${shared_ext}$major'
16502     dynamic_linker='NetBSD ld.elf_so'
16503   fi
16504   shlibpath_var=LD_LIBRARY_PATH
16505   shlibpath_overrides_runpath=yes
16506   hardcode_into_libs=yes
16507   ;;
16508
16509 newsos6)
16510   version_type=linux
16511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512   shlibpath_var=LD_LIBRARY_PATH
16513   shlibpath_overrides_runpath=yes
16514   ;;
16515
16516 nto-qnx*)
16517   version_type=linux
16518   need_lib_prefix=no
16519   need_version=no
16520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16521   soname_spec='${libname}${release}${shared_ext}$major'
16522   shlibpath_var=LD_LIBRARY_PATH
16523   shlibpath_overrides_runpath=yes
16524   ;;
16525
16526 openbsd*)
16527   version_type=sunos
16528   sys_lib_dlsearch_path_spec="/usr/lib"
16529   need_lib_prefix=no
16530   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16531   case $host_os in
16532     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16533     *)                         need_version=no  ;;
16534   esac
16535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16537   shlibpath_var=LD_LIBRARY_PATH
16538   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16539     case $host_os in
16540       openbsd2.[89] | openbsd2.[89].*)
16541         shlibpath_overrides_runpath=no
16542         ;;
16543       *)
16544         shlibpath_overrides_runpath=yes
16545         ;;
16546       esac
16547   else
16548     shlibpath_overrides_runpath=yes
16549   fi
16550   ;;
16551
16552 os2*)
16553   libname_spec='$name'
16554   shrext_cmds=".dll"
16555   need_lib_prefix=no
16556   library_names_spec='$libname${shared_ext} $libname.a'
16557   dynamic_linker='OS/2 ld.exe'
16558   shlibpath_var=LIBPATH
16559   ;;
16560
16561 osf3* | osf4* | osf5*)
16562   version_type=osf
16563   need_lib_prefix=no
16564   need_version=no
16565   soname_spec='${libname}${release}${shared_ext}$major'
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567   shlibpath_var=LD_LIBRARY_PATH
16568   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16569   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16570   ;;
16571
16572 rdos*)
16573   dynamic_linker=no
16574   ;;
16575
16576 solaris*)
16577   version_type=linux
16578   need_lib_prefix=no
16579   need_version=no
16580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581   soname_spec='${libname}${release}${shared_ext}$major'
16582   shlibpath_var=LD_LIBRARY_PATH
16583   shlibpath_overrides_runpath=yes
16584   hardcode_into_libs=yes
16585   # ldd complains unless libraries are executable
16586   postinstall_cmds='chmod +x $lib'
16587   ;;
16588
16589 sunos4*)
16590   version_type=sunos
16591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16592   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16593   shlibpath_var=LD_LIBRARY_PATH
16594   shlibpath_overrides_runpath=yes
16595   if test "$with_gnu_ld" = yes; then
16596     need_lib_prefix=no
16597   fi
16598   need_version=yes
16599   ;;
16600
16601 sysv4 | sysv4.3*)
16602   version_type=linux
16603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16604   soname_spec='${libname}${release}${shared_ext}$major'
16605   shlibpath_var=LD_LIBRARY_PATH
16606   case $host_vendor in
16607     sni)
16608       shlibpath_overrides_runpath=no
16609       need_lib_prefix=no
16610       export_dynamic_flag_spec='${wl}-Blargedynsym'
16611       runpath_var=LD_RUN_PATH
16612       ;;
16613     siemens)
16614       need_lib_prefix=no
16615       ;;
16616     motorola)
16617       need_lib_prefix=no
16618       need_version=no
16619       shlibpath_overrides_runpath=no
16620       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16621       ;;
16622   esac
16623   ;;
16624
16625 sysv4*MP*)
16626   if test -d /usr/nec ;then
16627     version_type=linux
16628     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16629     soname_spec='$libname${shared_ext}.$major'
16630     shlibpath_var=LD_LIBRARY_PATH
16631   fi
16632   ;;
16633
16634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16635   version_type=freebsd-elf
16636   need_lib_prefix=no
16637   need_version=no
16638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16639   soname_spec='${libname}${release}${shared_ext}$major'
16640   shlibpath_var=LD_LIBRARY_PATH
16641   hardcode_into_libs=yes
16642   if test "$with_gnu_ld" = yes; then
16643     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16644     shlibpath_overrides_runpath=no
16645   else
16646     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16647     shlibpath_overrides_runpath=yes
16648     case $host_os in
16649       sco3.2v5*)
16650         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16651         ;;
16652     esac
16653   fi
16654   sys_lib_dlsearch_path_spec='/usr/lib'
16655   ;;
16656
16657 uts4*)
16658   version_type=linux
16659   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660   soname_spec='${libname}${release}${shared_ext}$major'
16661   shlibpath_var=LD_LIBRARY_PATH
16662   ;;
16663
16664 *)
16665   dynamic_linker=no
16666   ;;
16667 esac
16668 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16669 echo "${ECHO_T}$dynamic_linker" >&6; }
16670 test "$dynamic_linker" = no && can_build_shared=no
16671
16672 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16673 if test "$GCC" = yes; then
16674   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16675 fi
16676
16677 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16678 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16679 hardcode_action_F77=
16680 if test -n "$hardcode_libdir_flag_spec_F77" || \
16681    test -n "$runpath_var_F77" || \
16682    test "X$hardcode_automatic_F77" = "Xyes" ; then
16683
16684   # We can hardcode non-existant directories.
16685   if test "$hardcode_direct_F77" != no &&
16686      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16687      # have to relink, otherwise we might link with an installed library
16688      # when we should be linking with a yet-to-be-installed one
16689      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16690      test "$hardcode_minus_L_F77" != no; then
16691     # Linking always hardcodes the temporary library directory.
16692     hardcode_action_F77=relink
16693   else
16694     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16695     hardcode_action_F77=immediate
16696   fi
16697 else
16698   # We cannot hardcode anything, or else we can only hardcode existing
16699   # directories.
16700   hardcode_action_F77=unsupported
16701 fi
16702 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16703 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16704
16705 if test "$hardcode_action_F77" = relink; then
16706   # Fast installation is not supported
16707   enable_fast_install=no
16708 elif test "$shlibpath_overrides_runpath" = yes ||
16709      test "$enable_shared" = no; then
16710   # Fast installation is not necessary
16711   enable_fast_install=needless
16712 fi
16713
16714
16715 # The else clause should only fire when bootstrapping the
16716 # libtool distribution, otherwise you forgot to ship ltmain.sh
16717 # with your package, and you will get complaints that there are
16718 # no rules to generate ltmain.sh.
16719 if test -f "$ltmain"; then
16720   # See if we are running on zsh, and set the options which allow our commands through
16721   # without removal of \ escapes.
16722   if test -n "${ZSH_VERSION+set}" ; then
16723     setopt NO_GLOB_SUBST
16724   fi
16725   # Now quote all the things that may contain metacharacters while being
16726   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16727   # variables and quote the copies for generation of the libtool script.
16728   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16729     SED SHELL STRIP \
16730     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16731     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16732     deplibs_check_method reload_flag reload_cmds need_locks \
16733     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16734     lt_cv_sys_global_symbol_to_c_name_address \
16735     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16736     old_postinstall_cmds old_postuninstall_cmds \
16737     compiler_F77 \
16738     CC_F77 \
16739     LD_F77 \
16740     lt_prog_compiler_wl_F77 \
16741     lt_prog_compiler_pic_F77 \
16742     lt_prog_compiler_static_F77 \
16743     lt_prog_compiler_no_builtin_flag_F77 \
16744     export_dynamic_flag_spec_F77 \
16745     thread_safe_flag_spec_F77 \
16746     whole_archive_flag_spec_F77 \
16747     enable_shared_with_static_runtimes_F77 \
16748     old_archive_cmds_F77 \
16749     old_archive_from_new_cmds_F77 \
16750     predep_objects_F77 \
16751     postdep_objects_F77 \
16752     predeps_F77 \
16753     postdeps_F77 \
16754     compiler_lib_search_path_F77 \
16755     archive_cmds_F77 \
16756     archive_expsym_cmds_F77 \
16757     postinstall_cmds_F77 \
16758     postuninstall_cmds_F77 \
16759     old_archive_from_expsyms_cmds_F77 \
16760     allow_undefined_flag_F77 \
16761     no_undefined_flag_F77 \
16762     export_symbols_cmds_F77 \
16763     hardcode_libdir_flag_spec_F77 \
16764     hardcode_libdir_flag_spec_ld_F77 \
16765     hardcode_libdir_separator_F77 \
16766     hardcode_automatic_F77 \
16767     module_cmds_F77 \
16768     module_expsym_cmds_F77 \
16769     lt_cv_prog_compiler_c_o_F77 \
16770     fix_srcfile_path_F77 \
16771     exclude_expsyms_F77 \
16772     include_expsyms_F77; do
16773
16774     case $var in
16775     old_archive_cmds_F77 | \
16776     old_archive_from_new_cmds_F77 | \
16777     archive_cmds_F77 | \
16778     archive_expsym_cmds_F77 | \
16779     module_cmds_F77 | \
16780     module_expsym_cmds_F77 | \
16781     old_archive_from_expsyms_cmds_F77 | \
16782     export_symbols_cmds_F77 | \
16783     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16784     postinstall_cmds | postuninstall_cmds | \
16785     old_postinstall_cmds | old_postuninstall_cmds | \
16786     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16787       # Double-quote double-evaled strings.
16788       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16789       ;;
16790     *)
16791       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16792       ;;
16793     esac
16794   done
16795
16796   case $lt_echo in
16797   *'\$0 --fallback-echo"')
16798     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16799     ;;
16800   esac
16801
16802 cfgfile="$ofile"
16803
16804   cat <<__EOF__ >> "$cfgfile"
16805 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16806
16807 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16808
16809 # Shell to use when invoking shell scripts.
16810 SHELL=$lt_SHELL
16811
16812 # Whether or not to build shared libraries.
16813 build_libtool_libs=$enable_shared
16814
16815 # Whether or not to build static libraries.
16816 build_old_libs=$enable_static
16817
16818 # Whether or not to add -lc for building shared libraries.
16819 build_libtool_need_lc=$archive_cmds_need_lc_F77
16820
16821 # Whether or not to disallow shared libs when runtime libs are static
16822 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16823
16824 # Whether or not to optimize for fast installation.
16825 fast_install=$enable_fast_install
16826
16827 # The host system.
16828 host_alias=$host_alias
16829 host=$host
16830 host_os=$host_os
16831
16832 # The build system.
16833 build_alias=$build_alias
16834 build=$build
16835 build_os=$build_os
16836
16837 # An echo program that does not interpret backslashes.
16838 echo=$lt_echo
16839
16840 # The archiver.
16841 AR=$lt_AR
16842 AR_FLAGS=$lt_AR_FLAGS
16843
16844 # A C compiler.
16845 LTCC=$lt_LTCC
16846
16847 # LTCC compiler flags.
16848 LTCFLAGS=$lt_LTCFLAGS
16849
16850 # A language-specific compiler.
16851 CC=$lt_compiler_F77
16852
16853 # Is the compiler the GNU C compiler?
16854 with_gcc=$GCC_F77
16855
16856 # An ERE matcher.
16857 EGREP=$lt_EGREP
16858
16859 # The linker used to build libraries.
16860 LD=$lt_LD_F77
16861
16862 # Whether we need hard or soft links.
16863 LN_S=$lt_LN_S
16864
16865 # A BSD-compatible nm program.
16866 NM=$lt_NM
16867
16868 # A symbol stripping program
16869 STRIP=$lt_STRIP
16870
16871 # Used to examine libraries when file_magic_cmd begins "file"
16872 MAGIC_CMD=$MAGIC_CMD
16873
16874 # Used on cygwin: DLL creation program.
16875 DLLTOOL="$DLLTOOL"
16876
16877 # Used on cygwin: object dumper.
16878 OBJDUMP="$OBJDUMP"
16879
16880 # Used on cygwin: assembler.
16881 AS="$AS"
16882
16883 # The name of the directory that contains temporary libtool files.
16884 objdir=$objdir
16885
16886 # How to create reloadable object files.
16887 reload_flag=$lt_reload_flag
16888 reload_cmds=$lt_reload_cmds
16889
16890 # How to pass a linker flag through the compiler.
16891 wl=$lt_lt_prog_compiler_wl_F77
16892
16893 # Object file suffix (normally "o").
16894 objext="$ac_objext"
16895
16896 # Old archive suffix (normally "a").
16897 libext="$libext"
16898
16899 # Shared library suffix (normally ".so").
16900 shrext_cmds='$shrext_cmds'
16901
16902 # Executable file suffix (normally "").
16903 exeext="$exeext"
16904
16905 # Additional compiler flags for building library objects.
16906 pic_flag=$lt_lt_prog_compiler_pic_F77
16907 pic_mode=$pic_mode
16908
16909 # What is the maximum length of a command?
16910 max_cmd_len=$lt_cv_sys_max_cmd_len
16911
16912 # Does compiler simultaneously support -c and -o options?
16913 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16914
16915 # Must we lock files when doing compilation?
16916 need_locks=$lt_need_locks
16917
16918 # Do we need the lib prefix for modules?
16919 need_lib_prefix=$need_lib_prefix
16920
16921 # Do we need a version for libraries?
16922 need_version=$need_version
16923
16924 # Whether dlopen is supported.
16925 dlopen_support=$enable_dlopen
16926
16927 # Whether dlopen of programs is supported.
16928 dlopen_self=$enable_dlopen_self
16929
16930 # Whether dlopen of statically linked programs is supported.
16931 dlopen_self_static=$enable_dlopen_self_static
16932
16933 # Compiler flag to prevent dynamic linking.
16934 link_static_flag=$lt_lt_prog_compiler_static_F77
16935
16936 # Compiler flag to turn off builtin functions.
16937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16938
16939 # Compiler flag to allow reflexive dlopens.
16940 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16941
16942 # Compiler flag to generate shared objects directly from archives.
16943 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16944
16945 # Compiler flag to generate thread-safe objects.
16946 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16947
16948 # Library versioning type.
16949 version_type=$version_type
16950
16951 # Format of library name prefix.
16952 libname_spec=$lt_libname_spec
16953
16954 # List of archive names.  First name is the real one, the rest are links.
16955 # The last name is the one that the linker finds with -lNAME.
16956 library_names_spec=$lt_library_names_spec
16957
16958 # The coded name of the library, if different from the real name.
16959 soname_spec=$lt_soname_spec
16960
16961 # Commands used to build and install an old-style archive.
16962 RANLIB=$lt_RANLIB
16963 old_archive_cmds=$lt_old_archive_cmds_F77
16964 old_postinstall_cmds=$lt_old_postinstall_cmds
16965 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16966
16967 # Create an old-style archive from a shared archive.
16968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16969
16970 # Create a temporary old-style archive to link instead of a shared archive.
16971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16972
16973 # Commands used to build and install a shared archive.
16974 archive_cmds=$lt_archive_cmds_F77
16975 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16976 postinstall_cmds=$lt_postinstall_cmds
16977 postuninstall_cmds=$lt_postuninstall_cmds
16978
16979 # Commands used to build a loadable module (assumed same as above if empty)
16980 module_cmds=$lt_module_cmds_F77
16981 module_expsym_cmds=$lt_module_expsym_cmds_F77
16982
16983 # Commands to strip libraries.
16984 old_striplib=$lt_old_striplib
16985 striplib=$lt_striplib
16986
16987 # Dependencies to place before the objects being linked to create a
16988 # shared library.
16989 predep_objects=$lt_predep_objects_F77
16990
16991 # Dependencies to place after the objects being linked to create a
16992 # shared library.
16993 postdep_objects=$lt_postdep_objects_F77
16994
16995 # Dependencies to place before the objects being linked to create a
16996 # shared library.
16997 predeps=$lt_predeps_F77
16998
16999 # Dependencies to place after the objects being linked to create a
17000 # shared library.
17001 postdeps=$lt_postdeps_F77
17002
17003 # The library search path used internally by the compiler when linking
17004 # a shared library.
17005 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17006
17007 # Method to check whether dependent libraries are shared objects.
17008 deplibs_check_method=$lt_deplibs_check_method
17009
17010 # Command to use when deplibs_check_method == file_magic.
17011 file_magic_cmd=$lt_file_magic_cmd
17012
17013 # Flag that allows shared libraries with undefined symbols to be built.
17014 allow_undefined_flag=$lt_allow_undefined_flag_F77
17015
17016 # Flag that forces no undefined symbols.
17017 no_undefined_flag=$lt_no_undefined_flag_F77
17018
17019 # Commands used to finish a libtool library installation in a directory.
17020 finish_cmds=$lt_finish_cmds
17021
17022 # Same as above, but a single script fragment to be evaled but not shown.
17023 finish_eval=$lt_finish_eval
17024
17025 # Take the output of nm and produce a listing of raw symbols and C names.
17026 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17027
17028 # Transform the output of nm in a proper C declaration
17029 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17030
17031 # Transform the output of nm in a C name address pair
17032 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17033
17034 # This is the shared library runtime path variable.
17035 runpath_var=$runpath_var
17036
17037 # This is the shared library path variable.
17038 shlibpath_var=$shlibpath_var
17039
17040 # Is shlibpath searched before the hard-coded library search path?
17041 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17042
17043 # How to hardcode a shared library path into an executable.
17044 hardcode_action=$hardcode_action_F77
17045
17046 # Whether we should hardcode library paths into libraries.
17047 hardcode_into_libs=$hardcode_into_libs
17048
17049 # Flag to hardcode \$libdir into a binary during linking.
17050 # This must work even if \$libdir does not exist.
17051 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17052
17053 # If ld is used when linking, flag to hardcode \$libdir into
17054 # a binary during linking. This must work even if \$libdir does
17055 # not exist.
17056 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17057
17058 # Whether we need a single -rpath flag with a separated argument.
17059 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17060
17061 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17062 # resulting binary.
17063 hardcode_direct=$hardcode_direct_F77
17064
17065 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17066 # resulting binary.
17067 hardcode_minus_L=$hardcode_minus_L_F77
17068
17069 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17070 # the resulting binary.
17071 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17072
17073 # Set to yes if building a shared library automatically hardcodes DIR into the library
17074 # and all subsequent libraries and executables linked against it.
17075 hardcode_automatic=$hardcode_automatic_F77
17076
17077 # Variables whose values should be saved in libtool wrapper scripts and
17078 # restored at relink time.
17079 variables_saved_for_relink="$variables_saved_for_relink"
17080
17081 # Whether libtool must link a program against all its dependency libraries.
17082 link_all_deplibs=$link_all_deplibs_F77
17083
17084 # Compile-time system search path for libraries
17085 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17086
17087 # Run-time system search path for libraries
17088 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17089
17090 # Fix the shell variable \$srcfile for the compiler.
17091 fix_srcfile_path=$lt_fix_srcfile_path
17092
17093 # Set to yes if exported symbols are required.
17094 always_export_symbols=$always_export_symbols_F77
17095
17096 # The commands to list exported symbols.
17097 export_symbols_cmds=$lt_export_symbols_cmds_F77
17098
17099 # The commands to extract the exported symbol list from a shared archive.
17100 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17101
17102 # Symbols that should not be listed in the preloaded symbols.
17103 exclude_expsyms=$lt_exclude_expsyms_F77
17104
17105 # Symbols that must always be exported.
17106 include_expsyms=$lt_include_expsyms_F77
17107
17108 # ### END LIBTOOL TAG CONFIG: $tagname
17109
17110 __EOF__
17111
17112
17113 else
17114   # If there is no Makefile yet, we rely on a make rule to execute
17115   # `config.status --recheck' to rerun these tests and create the
17116   # libtool script then.
17117   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17118   if test -f "$ltmain_in"; then
17119     test -f Makefile && make "$ltmain"
17120   fi
17121 fi
17122
17123
17124 ac_ext=c
17125 ac_cpp='$CPP $CPPFLAGS'
17126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17129
17130 CC="$lt_save_CC"
17131
17132         else
17133           tagname=""
17134         fi
17135         ;;
17136
17137       GCJ)
17138         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17139
17140
17141 # Source file extension for Java test sources.
17142 ac_ext=java
17143
17144 # Object file extension for compiled Java test sources.
17145 objext=o
17146 objext_GCJ=$objext
17147
17148 # Code to be used in simple compile tests
17149 lt_simple_compile_test_code="class foo {}"
17150
17151 # Code to be used in simple link tests
17152 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17153
17154 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17155
17156 # If no C compiler was specified, use CC.
17157 LTCC=${LTCC-"$CC"}
17158
17159 # If no C compiler flags were specified, use CFLAGS.
17160 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17161
17162 # Allow CC to be a program name with arguments.
17163 compiler=$CC
17164
17165
17166 # save warnings/boilerplate of simple test code
17167 ac_outfile=conftest.$ac_objext
17168 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17170 _lt_compiler_boilerplate=`cat conftest.err`
17171 $rm conftest*
17172
17173 ac_outfile=conftest.$ac_objext
17174 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17176 _lt_linker_boilerplate=`cat conftest.err`
17177 $rm conftest*
17178
17179
17180 # Allow CC to be a program name with arguments.
17181 lt_save_CC="$CC"
17182 CC=${GCJ-"gcj"}
17183 compiler=$CC
17184 compiler_GCJ=$CC
17185 for cc_temp in $compiler""; do
17186   case $cc_temp in
17187     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17188     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17189     \-*) ;;
17190     *) break;;
17191   esac
17192 done
17193 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17194
17195
17196 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17197 archive_cmds_need_lc_GCJ=no
17198
17199 old_archive_cmds_GCJ=$old_archive_cmds
17200
17201
17202 lt_prog_compiler_no_builtin_flag_GCJ=
17203
17204 if test "$GCC" = yes; then
17205   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17206
17207
17208 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17209 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17210 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17211   echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213   lt_cv_prog_compiler_rtti_exceptions=no
17214   ac_outfile=conftest.$ac_objext
17215    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17216    lt_compiler_flag="-fno-rtti -fno-exceptions"
17217    # Insert the option either (1) after the last *FLAGS variable, or
17218    # (2) before a word containing "conftest.", or (3) at the end.
17219    # Note that $ac_compile itself does not contain backslashes and begins
17220    # with a dollar sign (not a hyphen), so the echo should work correctly.
17221    # The option is referenced via a variable to avoid confusing sed.
17222    lt_compile=`echo "$ac_compile" | $SED \
17223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17225    -e 's:$: $lt_compiler_flag:'`
17226    (eval echo "\"\$as_me:17226: $lt_compile\"" >&5)
17227    (eval "$lt_compile" 2>conftest.err)
17228    ac_status=$?
17229    cat conftest.err >&5
17230    echo "$as_me:17230: \$? = $ac_status" >&5
17231    if (exit $ac_status) && test -s "$ac_outfile"; then
17232      # The compiler can only warn and ignore the option if not recognized
17233      # So say no if there are warnings other than the usual output.
17234      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17235      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17236      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17237        lt_cv_prog_compiler_rtti_exceptions=yes
17238      fi
17239    fi
17240    $rm conftest*
17241
17242 fi
17243 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17244 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17245
17246 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17247     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17248 else
17249     :
17250 fi
17251
17252 fi
17253
17254 lt_prog_compiler_wl_GCJ=
17255 lt_prog_compiler_pic_GCJ=
17256 lt_prog_compiler_static_GCJ=
17257
17258 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17259 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17260
17261   if test "$GCC" = yes; then
17262     lt_prog_compiler_wl_GCJ='-Wl,'
17263     lt_prog_compiler_static_GCJ='-static'
17264
17265     case $host_os in
17266       aix*)
17267       # All AIX code is PIC.
17268       if test "$host_cpu" = ia64; then
17269         # AIX 5 now supports IA64 processor
17270         lt_prog_compiler_static_GCJ='-Bstatic'
17271       fi
17272       ;;
17273
17274     amigaos*)
17275       # FIXME: we need at least 68020 code to build shared libraries, but
17276       # adding the `-m68020' flag to GCC prevents building anything better,
17277       # like `-m68040'.
17278       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17279       ;;
17280
17281     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17282       # PIC is the default for these OSes.
17283       ;;
17284
17285     mingw* | cygwin* | pw32* | os2*)
17286       # This hack is so that the source file can tell whether it is being
17287       # built for inclusion in a dll (and should export symbols for example).
17288       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17289       # (--disable-auto-import) libraries
17290       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17291       ;;
17292
17293     darwin* | rhapsody*)
17294       # PIC is the default on this platform
17295       # Common symbols not allowed in MH_DYLIB files
17296       lt_prog_compiler_pic_GCJ='-fno-common'
17297       ;;
17298
17299     interix[3-9]*)
17300       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17301       # Instead, we relocate shared libraries at runtime.
17302       ;;
17303
17304     msdosdjgpp*)
17305       # Just because we use GCC doesn't mean we suddenly get shared libraries
17306       # on systems that don't support them.
17307       lt_prog_compiler_can_build_shared_GCJ=no
17308       enable_shared=no
17309       ;;
17310
17311     sysv4*MP*)
17312       if test -d /usr/nec; then
17313         lt_prog_compiler_pic_GCJ=-Kconform_pic
17314       fi
17315       ;;
17316
17317     hpux*)
17318       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17319       # not for PA HP-UX.
17320       case $host_cpu in
17321       hppa*64*|ia64*)
17322         # +Z the default
17323         ;;
17324       *)
17325         lt_prog_compiler_pic_GCJ='-fPIC'
17326         ;;
17327       esac
17328       ;;
17329
17330     *)
17331       lt_prog_compiler_pic_GCJ='-fPIC'
17332       ;;
17333     esac
17334   else
17335     # PORTME Check for flag to pass linker flags through the system compiler.
17336     case $host_os in
17337     aix*)
17338       lt_prog_compiler_wl_GCJ='-Wl,'
17339       if test "$host_cpu" = ia64; then
17340         # AIX 5 now supports IA64 processor
17341         lt_prog_compiler_static_GCJ='-Bstatic'
17342       else
17343         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17344       fi
17345       ;;
17346       darwin*)
17347         # PIC is the default on this platform
17348         # Common symbols not allowed in MH_DYLIB files
17349        case $cc_basename in
17350          xlc*)
17351          lt_prog_compiler_pic_GCJ='-qnocommon'
17352          lt_prog_compiler_wl_GCJ='-Wl,'
17353          ;;
17354        esac
17355        ;;
17356
17357     mingw* | cygwin* | pw32* | os2*)
17358       # This hack is so that the source file can tell whether it is being
17359       # built for inclusion in a dll (and should export symbols for example).
17360       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17361       ;;
17362
17363     hpux9* | hpux10* | hpux11*)
17364       lt_prog_compiler_wl_GCJ='-Wl,'
17365       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17366       # not for PA HP-UX.
17367       case $host_cpu in
17368       hppa*64*|ia64*)
17369         # +Z the default
17370         ;;
17371       *)
17372         lt_prog_compiler_pic_GCJ='+Z'
17373         ;;
17374       esac
17375       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17376       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17377       ;;
17378
17379     irix5* | irix6* | nonstopux*)
17380       lt_prog_compiler_wl_GCJ='-Wl,'
17381       # PIC (with -KPIC) is the default.
17382       lt_prog_compiler_static_GCJ='-non_shared'
17383       ;;
17384
17385     newsos6)
17386       lt_prog_compiler_pic_GCJ='-KPIC'
17387       lt_prog_compiler_static_GCJ='-Bstatic'
17388       ;;
17389
17390     linux* | k*bsd*-gnu)
17391       case $cc_basename in
17392       icc* | ecc*)
17393         lt_prog_compiler_wl_GCJ='-Wl,'
17394         lt_prog_compiler_pic_GCJ='-KPIC'
17395         lt_prog_compiler_static_GCJ='-static'
17396         ;;
17397       pgcc* | pgf77* | pgf90* | pgf95*)
17398         # Portland Group compilers (*not* the Pentium gcc compiler,
17399         # which looks to be a dead project)
17400         lt_prog_compiler_wl_GCJ='-Wl,'
17401         lt_prog_compiler_pic_GCJ='-fpic'
17402         lt_prog_compiler_static_GCJ='-Bstatic'
17403         ;;
17404       ccc*)
17405         lt_prog_compiler_wl_GCJ='-Wl,'
17406         # All Alpha code is PIC.
17407         lt_prog_compiler_static_GCJ='-non_shared'
17408         ;;
17409       *)
17410         case `$CC -V 2>&1 | sed 5q` in
17411         *Sun\ C*)
17412           # Sun C 5.9
17413           lt_prog_compiler_pic_GCJ='-KPIC'
17414           lt_prog_compiler_static_GCJ='-Bstatic'
17415           lt_prog_compiler_wl_GCJ='-Wl,'
17416           ;;
17417         *Sun\ F*)
17418           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17419           lt_prog_compiler_pic_GCJ='-KPIC'
17420           lt_prog_compiler_static_GCJ='-Bstatic'
17421           lt_prog_compiler_wl_GCJ=''
17422           ;;
17423         esac
17424         ;;
17425       esac
17426       ;;
17427
17428     osf3* | osf4* | osf5*)
17429       lt_prog_compiler_wl_GCJ='-Wl,'
17430       # All OSF/1 code is PIC.
17431       lt_prog_compiler_static_GCJ='-non_shared'
17432       ;;
17433
17434     rdos*)
17435       lt_prog_compiler_static_GCJ='-non_shared'
17436       ;;
17437
17438     solaris*)
17439       lt_prog_compiler_pic_GCJ='-KPIC'
17440       lt_prog_compiler_static_GCJ='-Bstatic'
17441       case $cc_basename in
17442       f77* | f90* | f95*)
17443         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17444       *)
17445         lt_prog_compiler_wl_GCJ='-Wl,';;
17446       esac
17447       ;;
17448
17449     sunos4*)
17450       lt_prog_compiler_wl_GCJ='-Qoption ld '
17451       lt_prog_compiler_pic_GCJ='-PIC'
17452       lt_prog_compiler_static_GCJ='-Bstatic'
17453       ;;
17454
17455     sysv4 | sysv4.2uw2* | sysv4.3*)
17456       lt_prog_compiler_wl_GCJ='-Wl,'
17457       lt_prog_compiler_pic_GCJ='-KPIC'
17458       lt_prog_compiler_static_GCJ='-Bstatic'
17459       ;;
17460
17461     sysv4*MP*)
17462       if test -d /usr/nec ;then
17463         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17464         lt_prog_compiler_static_GCJ='-Bstatic'
17465       fi
17466       ;;
17467
17468     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17469       lt_prog_compiler_wl_GCJ='-Wl,'
17470       lt_prog_compiler_pic_GCJ='-KPIC'
17471       lt_prog_compiler_static_GCJ='-Bstatic'
17472       ;;
17473
17474     unicos*)
17475       lt_prog_compiler_wl_GCJ='-Wl,'
17476       lt_prog_compiler_can_build_shared_GCJ=no
17477       ;;
17478
17479     uts4*)
17480       lt_prog_compiler_pic_GCJ='-pic'
17481       lt_prog_compiler_static_GCJ='-Bstatic'
17482       ;;
17483
17484     *)
17485       lt_prog_compiler_can_build_shared_GCJ=no
17486       ;;
17487     esac
17488   fi
17489
17490 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17491 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17492
17493 #
17494 # Check to make sure the PIC flag actually works.
17495 #
17496 if test -n "$lt_prog_compiler_pic_GCJ"; then
17497
17498 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17499 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17500 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17501   echo $ECHO_N "(cached) $ECHO_C" >&6
17502 else
17503   lt_prog_compiler_pic_works_GCJ=no
17504   ac_outfile=conftest.$ac_objext
17505    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17506    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17507    # Insert the option either (1) after the last *FLAGS variable, or
17508    # (2) before a word containing "conftest.", or (3) at the end.
17509    # Note that $ac_compile itself does not contain backslashes and begins
17510    # with a dollar sign (not a hyphen), so the echo should work correctly.
17511    # The option is referenced via a variable to avoid confusing sed.
17512    lt_compile=`echo "$ac_compile" | $SED \
17513    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17514    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17515    -e 's:$: $lt_compiler_flag:'`
17516    (eval echo "\"\$as_me:17516: $lt_compile\"" >&5)
17517    (eval "$lt_compile" 2>conftest.err)
17518    ac_status=$?
17519    cat conftest.err >&5
17520    echo "$as_me:17520: \$? = $ac_status" >&5
17521    if (exit $ac_status) && test -s "$ac_outfile"; then
17522      # The compiler can only warn and ignore the option if not recognized
17523      # So say no if there are warnings other than the usual output.
17524      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17525      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17526      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17527        lt_prog_compiler_pic_works_GCJ=yes
17528      fi
17529    fi
17530    $rm conftest*
17531
17532 fi
17533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17534 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17535
17536 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17537     case $lt_prog_compiler_pic_GCJ in
17538      "" | " "*) ;;
17539      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17540      esac
17541 else
17542     lt_prog_compiler_pic_GCJ=
17543      lt_prog_compiler_can_build_shared_GCJ=no
17544 fi
17545
17546 fi
17547 case $host_os in
17548   # For platforms which do not support PIC, -DPIC is meaningless:
17549   *djgpp*)
17550     lt_prog_compiler_pic_GCJ=
17551     ;;
17552   *)
17553     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17554     ;;
17555 esac
17556
17557 #
17558 # Check to make sure the static flag actually works.
17559 #
17560 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17561 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17562 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17563 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17564   echo $ECHO_N "(cached) $ECHO_C" >&6
17565 else
17566   lt_prog_compiler_static_works_GCJ=no
17567    save_LDFLAGS="$LDFLAGS"
17568    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17569    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17570    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17571      # The linker can only warn and ignore the option if not recognized
17572      # So say no if there are warnings
17573      if test -s conftest.err; then
17574        # Append any errors to the config.log.
17575        cat conftest.err 1>&5
17576        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17577        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17578        if diff conftest.exp conftest.er2 >/dev/null; then
17579          lt_prog_compiler_static_works_GCJ=yes
17580        fi
17581      else
17582        lt_prog_compiler_static_works_GCJ=yes
17583      fi
17584    fi
17585    $rm conftest*
17586    LDFLAGS="$save_LDFLAGS"
17587
17588 fi
17589 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17590 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17591
17592 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17593     :
17594 else
17595     lt_prog_compiler_static_GCJ=
17596 fi
17597
17598
17599 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17600 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17601 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17602   echo $ECHO_N "(cached) $ECHO_C" >&6
17603 else
17604   lt_cv_prog_compiler_c_o_GCJ=no
17605    $rm -r conftest 2>/dev/null
17606    mkdir conftest
17607    cd conftest
17608    mkdir out
17609    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17610
17611    lt_compiler_flag="-o out/conftest2.$ac_objext"
17612    # Insert the option either (1) after the last *FLAGS variable, or
17613    # (2) before a word containing "conftest.", or (3) at the end.
17614    # Note that $ac_compile itself does not contain backslashes and begins
17615    # with a dollar sign (not a hyphen), so the echo should work correctly.
17616    lt_compile=`echo "$ac_compile" | $SED \
17617    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17618    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17619    -e 's:$: $lt_compiler_flag:'`
17620    (eval echo "\"\$as_me:17620: $lt_compile\"" >&5)
17621    (eval "$lt_compile" 2>out/conftest.err)
17622    ac_status=$?
17623    cat out/conftest.err >&5
17624    echo "$as_me:17624: \$? = $ac_status" >&5
17625    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17626    then
17627      # The compiler can only warn and ignore the option if not recognized
17628      # So say no if there are warnings
17629      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17630      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17631      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17632        lt_cv_prog_compiler_c_o_GCJ=yes
17633      fi
17634    fi
17635    chmod u+w . 2>&5
17636    $rm conftest*
17637    # SGI C++ compiler will create directory out/ii_files/ for
17638    # template instantiation
17639    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17640    $rm out/* && rmdir out
17641    cd ..
17642    rmdir conftest
17643    $rm conftest*
17644
17645 fi
17646 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17647 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17648
17649
17650 hard_links="nottested"
17651 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17652   # do not overwrite the value of need_locks provided by the user
17653   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17654 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17655   hard_links=yes
17656   $rm conftest*
17657   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17658   touch conftest.a
17659   ln conftest.a conftest.b 2>&5 || hard_links=no
17660   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17661   { echo "$as_me:$LINENO: result: $hard_links" >&5
17662 echo "${ECHO_T}$hard_links" >&6; }
17663   if test "$hard_links" = no; then
17664     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17665 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17666     need_locks=warn
17667   fi
17668 else
17669   need_locks=no
17670 fi
17671
17672 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17673 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17674
17675   runpath_var=
17676   allow_undefined_flag_GCJ=
17677   enable_shared_with_static_runtimes_GCJ=no
17678   archive_cmds_GCJ=
17679   archive_expsym_cmds_GCJ=
17680   old_archive_From_new_cmds_GCJ=
17681   old_archive_from_expsyms_cmds_GCJ=
17682   export_dynamic_flag_spec_GCJ=
17683   whole_archive_flag_spec_GCJ=
17684   thread_safe_flag_spec_GCJ=
17685   hardcode_libdir_flag_spec_GCJ=
17686   hardcode_libdir_flag_spec_ld_GCJ=
17687   hardcode_libdir_separator_GCJ=
17688   hardcode_direct_GCJ=no
17689   hardcode_minus_L_GCJ=no
17690   hardcode_shlibpath_var_GCJ=unsupported
17691   link_all_deplibs_GCJ=unknown
17692   hardcode_automatic_GCJ=no
17693   module_cmds_GCJ=
17694   module_expsym_cmds_GCJ=
17695   always_export_symbols_GCJ=no
17696   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17697   # include_expsyms should be a list of space-separated symbols to be *always*
17698   # included in the symbol list
17699   include_expsyms_GCJ=
17700   # exclude_expsyms can be an extended regexp of symbols to exclude
17701   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17702   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17703   # as well as any symbol that contains `d'.
17704   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17705   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17706   # platforms (ab)use it in PIC code, but their linkers get confused if
17707   # the symbol is explicitly referenced.  Since portable code cannot
17708   # rely on this symbol name, it's probably fine to never include it in
17709   # preloaded symbol tables.
17710   extract_expsyms_cmds=
17711   # Just being paranoid about ensuring that cc_basename is set.
17712   for cc_temp in $compiler""; do
17713   case $cc_temp in
17714     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17715     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17716     \-*) ;;
17717     *) break;;
17718   esac
17719 done
17720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17721
17722   case $host_os in
17723   cygwin* | mingw* | pw32*)
17724     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17725     # When not using gcc, we currently assume that we are using
17726     # Microsoft Visual C++.
17727     if test "$GCC" != yes; then
17728       with_gnu_ld=no
17729     fi
17730     ;;
17731   interix*)
17732     # we just hope/assume this is gcc and not c89 (= MSVC++)
17733     with_gnu_ld=yes
17734     ;;
17735   openbsd*)
17736     with_gnu_ld=no
17737     ;;
17738   esac
17739
17740   ld_shlibs_GCJ=yes
17741   if test "$with_gnu_ld" = yes; then
17742     # If archive_cmds runs LD, not CC, wlarc should be empty
17743     wlarc='${wl}'
17744
17745     # Set some defaults for GNU ld with shared library support. These
17746     # are reset later if shared libraries are not supported. Putting them
17747     # here allows them to be overridden if necessary.
17748     runpath_var=LD_RUN_PATH
17749     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17750     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17751     # ancient GNU ld didn't support --whole-archive et. al.
17752     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17753         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17754       else
17755         whole_archive_flag_spec_GCJ=
17756     fi
17757     supports_anon_versioning=no
17758     case `$LD -v 2>/dev/null` in
17759       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17760       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17761       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17762       *\ 2.11.*) ;; # other 2.11 versions
17763       *) supports_anon_versioning=yes ;;
17764     esac
17765
17766     # See if GNU ld supports shared libraries.
17767     case $host_os in
17768     aix3* | aix4* | aix5*)
17769       # On AIX/PPC, the GNU linker is very broken
17770       if test "$host_cpu" != ia64; then
17771         ld_shlibs_GCJ=no
17772         cat <<EOF 1>&2
17773
17774 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17775 *** to be unable to reliably create shared libraries on AIX.
17776 *** Therefore, libtool is disabling shared libraries support.  If you
17777 *** really care for shared libraries, you may want to modify your PATH
17778 *** so that a non-GNU linker is found, and then restart.
17779
17780 EOF
17781       fi
17782       ;;
17783
17784     amigaos*)
17785       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)'
17786       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17787       hardcode_minus_L_GCJ=yes
17788
17789       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17790       # that the semantics of dynamic libraries on AmigaOS, at least up
17791       # to version 4, is to share data among multiple programs linked
17792       # with the same dynamic library.  Since this doesn't match the
17793       # behavior of shared libraries on other platforms, we can't use
17794       # them.
17795       ld_shlibs_GCJ=no
17796       ;;
17797
17798     beos*)
17799       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17800         allow_undefined_flag_GCJ=unsupported
17801         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17802         # support --undefined.  This deserves some investigation.  FIXME
17803         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17804       else
17805         ld_shlibs_GCJ=no
17806       fi
17807       ;;
17808
17809     cygwin* | mingw* | pw32*)
17810       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17811       # as there is no search path for DLLs.
17812       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17813       allow_undefined_flag_GCJ=unsupported
17814       always_export_symbols_GCJ=no
17815       enable_shared_with_static_runtimes_GCJ=yes
17816       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17817
17818       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17819         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17820         # If the export-symbols file already is a .def file (1st line
17821         # is EXPORTS), use it as is; otherwise, prepend...
17822         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17823           cp $export_symbols $output_objdir/$soname.def;
17824         else
17825           echo EXPORTS > $output_objdir/$soname.def;
17826           cat $export_symbols >> $output_objdir/$soname.def;
17827         fi~
17828         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17829       else
17830         ld_shlibs_GCJ=no
17831       fi
17832       ;;
17833
17834     interix[3-9]*)
17835       hardcode_direct_GCJ=no
17836       hardcode_shlibpath_var_GCJ=no
17837       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17838       export_dynamic_flag_spec_GCJ='${wl}-E'
17839       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17840       # Instead, shared libraries are loaded at an image base (0x10000000 by
17841       # default) and relocated if they conflict, which is a slow very memory
17842       # consuming and fragmenting process.  To avoid this, we pick a random,
17843       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17844       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17845       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'
17846       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'
17847       ;;
17848
17849     gnu* | linux* | k*bsd*-gnu)
17850       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17851         tmp_addflag=
17852         case $cc_basename,$host_cpu in
17853         pgcc*)                          # Portland Group C compiler
17854           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'
17855           tmp_addflag=' $pic_flag'
17856           ;;
17857         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17858           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'
17859           tmp_addflag=' $pic_flag -Mnomain' ;;
17860         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17861           tmp_addflag=' -i_dynamic' ;;
17862         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17863           tmp_addflag=' -i_dynamic -nofor_main' ;;
17864         ifc* | ifort*)                  # Intel Fortran compiler
17865           tmp_addflag=' -nofor_main' ;;
17866         esac
17867         case `$CC -V 2>&1 | sed 5q` in
17868         *Sun\ C*)                       # Sun C 5.9
17869           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17870           tmp_sharedflag='-G' ;;
17871         *Sun\ F*)                       # Sun Fortran 8.3
17872           tmp_sharedflag='-G' ;;
17873         *)
17874           tmp_sharedflag='-shared' ;;
17875         esac
17876         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17877
17878         if test $supports_anon_versioning = yes; then
17879           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17880   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17881   $echo "local: *; };" >> $output_objdir/$libname.ver~
17882           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17883         fi
17884         link_all_deplibs_GCJ=no
17885       else
17886         ld_shlibs_GCJ=no
17887       fi
17888       ;;
17889
17890     netbsd* | netbsdelf*-gnu)
17891       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17892         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17893         wlarc=
17894       else
17895         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17896         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17897       fi
17898       ;;
17899
17900     solaris*)
17901       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17902         ld_shlibs_GCJ=no
17903         cat <<EOF 1>&2
17904
17905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17906 *** create shared libraries on Solaris systems.  Therefore, libtool
17907 *** is disabling shared libraries support.  We urge you to upgrade GNU
17908 *** binutils to release 2.9.1 or newer.  Another option is to modify
17909 *** your PATH or compiler configuration so that the native linker is
17910 *** used, and then restart.
17911
17912 EOF
17913       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17914         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17915         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17916       else
17917         ld_shlibs_GCJ=no
17918       fi
17919       ;;
17920
17921     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17922       case `$LD -v 2>&1` in
17923         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17924         ld_shlibs_GCJ=no
17925         cat <<_LT_EOF 1>&2
17926
17927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17928 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17929 *** is disabling shared libraries support.  We urge you to upgrade GNU
17930 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17931 *** your PATH or compiler configuration so that the native linker is
17932 *** used, and then restart.
17933
17934 _LT_EOF
17935         ;;
17936         *)
17937           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17938             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17939             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17940             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17941           else
17942             ld_shlibs_GCJ=no
17943           fi
17944         ;;
17945       esac
17946       ;;
17947
17948     sunos4*)
17949       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17950       wlarc=
17951       hardcode_direct_GCJ=yes
17952       hardcode_shlibpath_var_GCJ=no
17953       ;;
17954
17955     *)
17956       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17957         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17958         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17959       else
17960         ld_shlibs_GCJ=no
17961       fi
17962       ;;
17963     esac
17964
17965     if test "$ld_shlibs_GCJ" = no; then
17966       runpath_var=
17967       hardcode_libdir_flag_spec_GCJ=
17968       export_dynamic_flag_spec_GCJ=
17969       whole_archive_flag_spec_GCJ=
17970     fi
17971   else
17972     # PORTME fill in a description of your system's linker (not GNU ld)
17973     case $host_os in
17974     aix3*)
17975       allow_undefined_flag_GCJ=unsupported
17976       always_export_symbols_GCJ=yes
17977       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'
17978       # Note: this linker hardcodes the directories in LIBPATH if there
17979       # are no directories specified by -L.
17980       hardcode_minus_L_GCJ=yes
17981       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17982         # Neither direct hardcoding nor static linking is supported with a
17983         # broken collect2.
17984         hardcode_direct_GCJ=unsupported
17985       fi
17986       ;;
17987
17988     aix4* | aix5*)
17989       if test "$host_cpu" = ia64; then
17990         # On IA64, the linker does run time linking by default, so we don't
17991         # have to do anything special.
17992         aix_use_runtimelinking=no
17993         exp_sym_flag='-Bexport'
17994         no_entry_flag=""
17995       else
17996         # If we're using GNU nm, then we don't want the "-C" option.
17997         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17998         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17999           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'
18000         else
18001           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'
18002         fi
18003         aix_use_runtimelinking=no
18004
18005         # Test if we are trying to use run time linking or normal
18006         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18007         # need to do runtime linking.
18008         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18009           for ld_flag in $LDFLAGS; do
18010           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18011             aix_use_runtimelinking=yes
18012             break
18013           fi
18014           done
18015           ;;
18016         esac
18017
18018         exp_sym_flag='-bexport'
18019         no_entry_flag='-bnoentry'
18020       fi
18021
18022       # When large executables or shared objects are built, AIX ld can
18023       # have problems creating the table of contents.  If linking a library
18024       # or program results in "error TOC overflow" add -mminimal-toc to
18025       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18026       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18027
18028       archive_cmds_GCJ=''
18029       hardcode_direct_GCJ=yes
18030       hardcode_libdir_separator_GCJ=':'
18031       link_all_deplibs_GCJ=yes
18032
18033       if test "$GCC" = yes; then
18034         case $host_os in aix4.[012]|aix4.[012].*)
18035         # We only want to do this on AIX 4.2 and lower, the check
18036         # below for broken collect2 doesn't work under 4.3+
18037           collect2name=`${CC} -print-prog-name=collect2`
18038           if test -f "$collect2name" && \
18039            strings "$collect2name" | grep resolve_lib_name >/dev/null
18040           then
18041           # We have reworked collect2
18042           :
18043           else
18044           # We have old collect2
18045           hardcode_direct_GCJ=unsupported
18046           # It fails to find uninstalled libraries when the uninstalled
18047           # path is not listed in the libpath.  Setting hardcode_minus_L
18048           # to unsupported forces relinking
18049           hardcode_minus_L_GCJ=yes
18050           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18051           hardcode_libdir_separator_GCJ=
18052           fi
18053           ;;
18054         esac
18055         shared_flag='-shared'
18056         if test "$aix_use_runtimelinking" = yes; then
18057           shared_flag="$shared_flag "'${wl}-G'
18058         fi
18059       else
18060         # not using gcc
18061         if test "$host_cpu" = ia64; then
18062         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18063         # chokes on -Wl,-G. The following line is correct:
18064           shared_flag='-G'
18065         else
18066           if test "$aix_use_runtimelinking" = yes; then
18067             shared_flag='${wl}-G'
18068           else
18069             shared_flag='${wl}-bM:SRE'
18070           fi
18071         fi
18072       fi
18073
18074       # It seems that -bexpall does not export symbols beginning with
18075       # underscore (_), so it is better to generate a list of symbols to export.
18076       always_export_symbols_GCJ=yes
18077       if test "$aix_use_runtimelinking" = yes; then
18078         # Warning - without using the other runtime loading flags (-brtl),
18079         # -berok will link without error, but may produce a broken library.
18080         allow_undefined_flag_GCJ='-berok'
18081        # Determine the default libpath from the value encoded in an empty executable.
18082        cat >conftest.$ac_ext <<_ACEOF
18083 /* confdefs.h.  */
18084 _ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h.  */
18088
18089 int
18090 main ()
18091 {
18092
18093   ;
18094   return 0;
18095 }
18096 _ACEOF
18097 rm -f conftest.$ac_objext conftest$ac_exeext
18098 if { (ac_try="$ac_link"
18099 case "(($ac_try" in
18100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101   *) ac_try_echo=$ac_try;;
18102 esac
18103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104   (eval "$ac_link") 2>conftest.er1
18105   ac_status=$?
18106   grep -v '^ *+' conftest.er1 >conftest.err
18107   rm -f conftest.er1
18108   cat conftest.err >&5
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); } && {
18111          test -z "$ac_c_werror_flag" ||
18112          test ! -s conftest.err
18113        } && test -s conftest$ac_exeext &&
18114        $as_test_x conftest$ac_exeext; then
18115
18116 lt_aix_libpath_sed='
18117     /Import File Strings/,/^$/ {
18118         /^0/ {
18119             s/^0  *\(.*\)$/\1/
18120             p
18121         }
18122     }'
18123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18124 # Check for a 64-bit object if we didn't find anything.
18125 if test -z "$aix_libpath"; then
18126   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18127 fi
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132
18133 fi
18134
18135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18136       conftest$ac_exeext conftest.$ac_ext
18137 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18138
18139        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18140         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"
18141        else
18142         if test "$host_cpu" = ia64; then
18143           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18144           allow_undefined_flag_GCJ="-z nodefs"
18145           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"
18146         else
18147          # Determine the default libpath from the value encoded in an empty executable.
18148          cat >conftest.$ac_ext <<_ACEOF
18149 /* confdefs.h.  */
18150 _ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h.  */
18154
18155 int
18156 main ()
18157 {
18158
18159   ;
18160   return 0;
18161 }
18162 _ACEOF
18163 rm -f conftest.$ac_objext conftest$ac_exeext
18164 if { (ac_try="$ac_link"
18165 case "(($ac_try" in
18166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167   *) ac_try_echo=$ac_try;;
18168 esac
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170   (eval "$ac_link") 2>conftest.er1
18171   ac_status=$?
18172   grep -v '^ *+' conftest.er1 >conftest.err
18173   rm -f conftest.er1
18174   cat conftest.err >&5
18175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176   (exit $ac_status); } && {
18177          test -z "$ac_c_werror_flag" ||
18178          test ! -s conftest.err
18179        } && test -s conftest$ac_exeext &&
18180        $as_test_x conftest$ac_exeext; then
18181
18182 lt_aix_libpath_sed='
18183     /Import File Strings/,/^$/ {
18184         /^0/ {
18185             s/^0  *\(.*\)$/\1/
18186             p
18187         }
18188     }'
18189 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18190 # Check for a 64-bit object if we didn't find anything.
18191 if test -z "$aix_libpath"; then
18192   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18193 fi
18194 else
18195   echo "$as_me: failed program was:" >&5
18196 sed 's/^/| /' conftest.$ac_ext >&5
18197
18198
18199 fi
18200
18201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18202       conftest$ac_exeext conftest.$ac_ext
18203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18204
18205          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18206           # Warning - without using the other run time loading flags,
18207           # -berok will link without error, but may produce a broken library.
18208           no_undefined_flag_GCJ=' ${wl}-bernotok'
18209           allow_undefined_flag_GCJ=' ${wl}-berok'
18210           # Exported symbols can be pulled into shared objects from archives
18211           whole_archive_flag_spec_GCJ='$convenience'
18212           archive_cmds_need_lc_GCJ=yes
18213           # This is similar to how AIX traditionally builds its shared libraries.
18214           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'
18215         fi
18216       fi
18217       ;;
18218
18219     amigaos*)
18220       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)'
18221       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18222       hardcode_minus_L_GCJ=yes
18223       # see comment about different semantics on the GNU ld section
18224       ld_shlibs_GCJ=no
18225       ;;
18226
18227     bsdi[45]*)
18228       export_dynamic_flag_spec_GCJ=-rdynamic
18229       ;;
18230
18231     cygwin* | mingw* | pw32*)
18232       # When not using gcc, we currently assume that we are using
18233       # Microsoft Visual C++.
18234       # hardcode_libdir_flag_spec is actually meaningless, as there is
18235       # no search path for DLLs.
18236       hardcode_libdir_flag_spec_GCJ=' '
18237       allow_undefined_flag_GCJ=unsupported
18238       # Tell ltmain to make .lib files, not .a files.
18239       libext=lib
18240       # Tell ltmain to make .dll files, not .so files.
18241       shrext_cmds=".dll"
18242       # FIXME: Setting linknames here is a bad hack.
18243       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18244       # The linker will automatically build a .lib file if we build a DLL.
18245       old_archive_From_new_cmds_GCJ='true'
18246       # FIXME: Should let the user specify the lib program.
18247       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18248       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18249       enable_shared_with_static_runtimes_GCJ=yes
18250       ;;
18251
18252     darwin* | rhapsody*)
18253       case $host_os in
18254         rhapsody* | darwin1.[012])
18255          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18256          ;;
18257        *) # Darwin 1.3 on
18258          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18259            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18260          else
18261            case ${MACOSX_DEPLOYMENT_TARGET} in
18262              10.[012])
18263                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18264                ;;
18265              10.*)
18266                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18267                ;;
18268            esac
18269          fi
18270          ;;
18271       esac
18272       archive_cmds_need_lc_GCJ=no
18273       hardcode_direct_GCJ=no
18274       hardcode_automatic_GCJ=yes
18275       hardcode_shlibpath_var_GCJ=unsupported
18276       whole_archive_flag_spec_GCJ=''
18277       link_all_deplibs_GCJ=yes
18278     if test "$GCC" = yes ; then
18279         output_verbose_link_cmd='echo'
18280         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18281       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18282       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18283       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}'
18284       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}'
18285     else
18286       case $cc_basename in
18287         xlc*)
18288          output_verbose_link_cmd='echo'
18289          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18290          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18291           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18292          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18293           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}'
18294           ;;
18295        *)
18296          ld_shlibs_GCJ=no
18297           ;;
18298       esac
18299     fi
18300       ;;
18301
18302     dgux*)
18303       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18304       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18305       hardcode_shlibpath_var_GCJ=no
18306       ;;
18307
18308     freebsd1*)
18309       ld_shlibs_GCJ=no
18310       ;;
18311
18312     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18313     # support.  Future versions do this automatically, but an explicit c++rt0.o
18314     # does not break anything, and helps significantly (at the cost of a little
18315     # extra space).
18316     freebsd2.2*)
18317       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18318       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18319       hardcode_direct_GCJ=yes
18320       hardcode_shlibpath_var_GCJ=no
18321       ;;
18322
18323     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18324     freebsd2*)
18325       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18326       hardcode_direct_GCJ=yes
18327       hardcode_minus_L_GCJ=yes
18328       hardcode_shlibpath_var_GCJ=no
18329       ;;
18330
18331     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18332     freebsd* | dragonfly*)
18333       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18334       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18335       hardcode_direct_GCJ=yes
18336       hardcode_shlibpath_var_GCJ=no
18337       ;;
18338
18339     hpux9*)
18340       if test "$GCC" = yes; then
18341         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'
18342       else
18343         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'
18344       fi
18345       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18346       hardcode_libdir_separator_GCJ=:
18347       hardcode_direct_GCJ=yes
18348
18349       # hardcode_minus_L: Not really in the search PATH,
18350       # but as the default location of the library.
18351       hardcode_minus_L_GCJ=yes
18352       export_dynamic_flag_spec_GCJ='${wl}-E'
18353       ;;
18354
18355     hpux10*)
18356       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18357         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18358       else
18359         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18360       fi
18361       if test "$with_gnu_ld" = no; then
18362         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18363         hardcode_libdir_separator_GCJ=:
18364
18365         hardcode_direct_GCJ=yes
18366         export_dynamic_flag_spec_GCJ='${wl}-E'
18367
18368         # hardcode_minus_L: Not really in the search PATH,
18369         # but as the default location of the library.
18370         hardcode_minus_L_GCJ=yes
18371       fi
18372       ;;
18373
18374     hpux11*)
18375       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18376         case $host_cpu in
18377         hppa*64*)
18378           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18379           ;;
18380         ia64*)
18381           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18382           ;;
18383         *)
18384           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18385           ;;
18386         esac
18387       else
18388         case $host_cpu in
18389         hppa*64*)
18390           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391           ;;
18392         ia64*)
18393           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18394           ;;
18395         *)
18396           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18397           ;;
18398         esac
18399       fi
18400       if test "$with_gnu_ld" = no; then
18401         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18402         hardcode_libdir_separator_GCJ=:
18403
18404         case $host_cpu in
18405         hppa*64*|ia64*)
18406           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18407           hardcode_direct_GCJ=no
18408           hardcode_shlibpath_var_GCJ=no
18409           ;;
18410         *)
18411           hardcode_direct_GCJ=yes
18412           export_dynamic_flag_spec_GCJ='${wl}-E'
18413
18414           # hardcode_minus_L: Not really in the search PATH,
18415           # but as the default location of the library.
18416           hardcode_minus_L_GCJ=yes
18417           ;;
18418         esac
18419       fi
18420       ;;
18421
18422     irix5* | irix6* | nonstopux*)
18423       if test "$GCC" = yes; then
18424         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'
18425       else
18426         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'
18427         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18428       fi
18429       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18430       hardcode_libdir_separator_GCJ=:
18431       link_all_deplibs_GCJ=yes
18432       ;;
18433
18434     netbsd* | netbsdelf*-gnu)
18435       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18436         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18437       else
18438         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18439       fi
18440       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18441       hardcode_direct_GCJ=yes
18442       hardcode_shlibpath_var_GCJ=no
18443       ;;
18444
18445     newsos6)
18446       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18447       hardcode_direct_GCJ=yes
18448       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18449       hardcode_libdir_separator_GCJ=:
18450       hardcode_shlibpath_var_GCJ=no
18451       ;;
18452
18453     openbsd*)
18454       if test -f /usr/libexec/ld.so; then
18455         hardcode_direct_GCJ=yes
18456         hardcode_shlibpath_var_GCJ=no
18457         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18458           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18459           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18460           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18461           export_dynamic_flag_spec_GCJ='${wl}-E'
18462         else
18463           case $host_os in
18464            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18465              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18466              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18467              ;;
18468            *)
18469              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18470              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18471              ;;
18472           esac
18473         fi
18474       else
18475         ld_shlibs_GCJ=no
18476       fi
18477       ;;
18478
18479     os2*)
18480       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18481       hardcode_minus_L_GCJ=yes
18482       allow_undefined_flag_GCJ=unsupported
18483       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'
18484       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18485       ;;
18486
18487     osf3*)
18488       if test "$GCC" = yes; then
18489         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18490         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'
18491       else
18492         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18493         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'
18494       fi
18495       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18496       hardcode_libdir_separator_GCJ=:
18497       ;;
18498
18499     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18500       if test "$GCC" = yes; then
18501         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18502         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'
18503         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18504       else
18505         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18506         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'
18507         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~
18508         $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'
18509
18510         # Both c and cxx compiler support -rpath directly
18511         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18512       fi
18513       hardcode_libdir_separator_GCJ=:
18514       ;;
18515
18516     solaris*)
18517       no_undefined_flag_GCJ=' -z text'
18518       if test "$GCC" = yes; then
18519         wlarc='${wl}'
18520         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18521         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18522           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18523       else
18524         wlarc=''
18525         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18526         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18527         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18528       fi
18529       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18530       hardcode_shlibpath_var_GCJ=no
18531       case $host_os in
18532       solaris2.[0-5] | solaris2.[0-5].*) ;;
18533       *)
18534         # The compiler driver will combine and reorder linker options,
18535         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18536         # but is careful enough not to reorder.
18537         # Supported since Solaris 2.6 (maybe 2.5.1?)
18538         if test "$GCC" = yes; then
18539           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18540         else
18541           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18542         fi
18543         ;;
18544       esac
18545       link_all_deplibs_GCJ=yes
18546       ;;
18547
18548     sunos4*)
18549       if test "x$host_vendor" = xsequent; then
18550         # Use $CC to link under sequent, because it throws in some extra .o
18551         # files that make .init and .fini sections work.
18552         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18553       else
18554         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18555       fi
18556       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18557       hardcode_direct_GCJ=yes
18558       hardcode_minus_L_GCJ=yes
18559       hardcode_shlibpath_var_GCJ=no
18560       ;;
18561
18562     sysv4)
18563       case $host_vendor in
18564         sni)
18565           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18566           hardcode_direct_GCJ=yes # is this really true???
18567         ;;
18568         siemens)
18569           ## LD is ld it makes a PLAMLIB
18570           ## CC just makes a GrossModule.
18571           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18572           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18573           hardcode_direct_GCJ=no
18574         ;;
18575         motorola)
18576           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18577           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18578         ;;
18579       esac
18580       runpath_var='LD_RUN_PATH'
18581       hardcode_shlibpath_var_GCJ=no
18582       ;;
18583
18584     sysv4.3*)
18585       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586       hardcode_shlibpath_var_GCJ=no
18587       export_dynamic_flag_spec_GCJ='-Bexport'
18588       ;;
18589
18590     sysv4*MP*)
18591       if test -d /usr/nec; then
18592         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18593         hardcode_shlibpath_var_GCJ=no
18594         runpath_var=LD_RUN_PATH
18595         hardcode_runpath_var=yes
18596         ld_shlibs_GCJ=yes
18597       fi
18598       ;;
18599
18600     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18601       no_undefined_flag_GCJ='${wl}-z,text'
18602       archive_cmds_need_lc_GCJ=no
18603       hardcode_shlibpath_var_GCJ=no
18604       runpath_var='LD_RUN_PATH'
18605
18606       if test "$GCC" = yes; then
18607         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18608         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18609       else
18610         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18611         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18612       fi
18613       ;;
18614
18615     sysv5* | sco3.2v5* | sco5v6*)
18616       # Note: We can NOT use -z defs as we might desire, because we do not
18617       # link with -lc, and that would cause any symbols used from libc to
18618       # always be unresolved, which means just about no library would
18619       # ever link correctly.  If we're not using GNU ld we use -z text
18620       # though, which does catch some bad symbols but isn't as heavy-handed
18621       # as -z defs.
18622       no_undefined_flag_GCJ='${wl}-z,text'
18623       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18624       archive_cmds_need_lc_GCJ=no
18625       hardcode_shlibpath_var_GCJ=no
18626       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18627       hardcode_libdir_separator_GCJ=':'
18628       link_all_deplibs_GCJ=yes
18629       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18630       runpath_var='LD_RUN_PATH'
18631
18632       if test "$GCC" = yes; then
18633         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18634         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18635       else
18636         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18637         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18638       fi
18639       ;;
18640
18641     uts4*)
18642       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18643       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18644       hardcode_shlibpath_var_GCJ=no
18645       ;;
18646
18647     *)
18648       ld_shlibs_GCJ=no
18649       ;;
18650     esac
18651   fi
18652
18653 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18654 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18655 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18656
18657 #
18658 # Do we need to explicitly link libc?
18659 #
18660 case "x$archive_cmds_need_lc_GCJ" in
18661 x|xyes)
18662   # Assume -lc should be added
18663   archive_cmds_need_lc_GCJ=yes
18664
18665   if test "$enable_shared" = yes && test "$GCC" = yes; then
18666     case $archive_cmds_GCJ in
18667     *'~'*)
18668       # FIXME: we may have to deal with multi-command sequences.
18669       ;;
18670     '$CC '*)
18671       # Test whether the compiler implicitly links with -lc since on some
18672       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18673       # to ld, don't add -lc before -lgcc.
18674       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18675 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18676       $rm conftest*
18677       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18678
18679       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18680   (eval $ac_compile) 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); } 2>conftest.err; then
18684         soname=conftest
18685         lib=conftest
18686         libobjs=conftest.$ac_objext
18687         deplibs=
18688         wl=$lt_prog_compiler_wl_GCJ
18689         pic_flag=$lt_prog_compiler_pic_GCJ
18690         compiler_flags=-v
18691         linker_flags=-v
18692         verstring=
18693         output_objdir=.
18694         libname=conftest
18695         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18696         allow_undefined_flag_GCJ=
18697         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18698   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18699   ac_status=$?
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); }
18702         then
18703           archive_cmds_need_lc_GCJ=no
18704         else
18705           archive_cmds_need_lc_GCJ=yes
18706         fi
18707         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18708       else
18709         cat conftest.err 1>&5
18710       fi
18711       $rm conftest*
18712       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18713 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18714       ;;
18715     esac
18716   fi
18717   ;;
18718 esac
18719
18720 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18721 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18722 library_names_spec=
18723 libname_spec='lib$name'
18724 soname_spec=
18725 shrext_cmds=".so"
18726 postinstall_cmds=
18727 postuninstall_cmds=
18728 finish_cmds=
18729 finish_eval=
18730 shlibpath_var=
18731 shlibpath_overrides_runpath=unknown
18732 version_type=none
18733 dynamic_linker="$host_os ld.so"
18734 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18735
18736 need_lib_prefix=unknown
18737 hardcode_into_libs=no
18738
18739 # when you set need_version to no, make sure it does not cause -set_version
18740 # flags to be left without arguments
18741 need_version=unknown
18742
18743 case $host_os in
18744 aix3*)
18745   version_type=linux
18746   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18747   shlibpath_var=LIBPATH
18748
18749   # AIX 3 has no versioning support, so we append a major version to the name.
18750   soname_spec='${libname}${release}${shared_ext}$major'
18751   ;;
18752
18753 aix4* | aix5*)
18754   version_type=linux
18755   need_lib_prefix=no
18756   need_version=no
18757   hardcode_into_libs=yes
18758   if test "$host_cpu" = ia64; then
18759     # AIX 5 supports IA64
18760     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18761     shlibpath_var=LD_LIBRARY_PATH
18762   else
18763     # With GCC up to 2.95.x, collect2 would create an import file
18764     # for dependence libraries.  The import file would start with
18765     # the line `#! .'.  This would cause the generated library to
18766     # depend on `.', always an invalid library.  This was fixed in
18767     # development snapshots of GCC prior to 3.0.
18768     case $host_os in
18769       aix4 | aix4.[01] | aix4.[01].*)
18770       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18771            echo ' yes '
18772            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18773         :
18774       else
18775         can_build_shared=no
18776       fi
18777       ;;
18778     esac
18779     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18780     # soname into executable. Probably we can add versioning support to
18781     # collect2, so additional links can be useful in future.
18782     if test "$aix_use_runtimelinking" = yes; then
18783       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18784       # instead of lib<name>.a to let people know that these are not
18785       # typical AIX shared libraries.
18786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18787     else
18788       # We preserve .a as extension for shared libraries through AIX4.2
18789       # and later when we are not doing run time linking.
18790       library_names_spec='${libname}${release}.a $libname.a'
18791       soname_spec='${libname}${release}${shared_ext}$major'
18792     fi
18793     shlibpath_var=LIBPATH
18794   fi
18795   ;;
18796
18797 amigaos*)
18798   library_names_spec='$libname.ixlibrary $libname.a'
18799   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18800   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'
18801   ;;
18802
18803 beos*)
18804   library_names_spec='${libname}${shared_ext}'
18805   dynamic_linker="$host_os ld.so"
18806   shlibpath_var=LIBRARY_PATH
18807   ;;
18808
18809 bsdi[45]*)
18810   version_type=linux
18811   need_version=no
18812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18813   soname_spec='${libname}${release}${shared_ext}$major'
18814   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18815   shlibpath_var=LD_LIBRARY_PATH
18816   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18817   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18818   # the default ld.so.conf also contains /usr/contrib/lib and
18819   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18820   # libtool to hard-code these into programs
18821   ;;
18822
18823 cygwin* | mingw* | pw32*)
18824   version_type=windows
18825   shrext_cmds=".dll"
18826   need_version=no
18827   need_lib_prefix=no
18828
18829   case $GCC,$host_os in
18830   yes,cygwin* | yes,mingw* | yes,pw32*)
18831     library_names_spec='$libname.dll.a'
18832     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18833     postinstall_cmds='base_file=`basename \${file}`~
18834       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18835       dldir=$destdir/`dirname \$dlpath`~
18836       test -d \$dldir || mkdir -p \$dldir~
18837       $install_prog $dir/$dlname \$dldir/$dlname~
18838       chmod a+x \$dldir/$dlname'
18839     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18840       dlpath=$dir/\$dldll~
18841        $rm \$dlpath'
18842     shlibpath_overrides_runpath=yes
18843
18844     case $host_os in
18845     cygwin*)
18846       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18847       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18848       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18849       ;;
18850     mingw*)
18851       # MinGW DLLs use traditional 'lib' prefix
18852       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18853       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18854       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18855         # It is most probably a Windows format PATH printed by
18856         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18857         # path with ; separators, and with drive letters. We can handle the
18858         # drive letters (cygwin fileutils understands them), so leave them,
18859         # especially as we might pass files found there to a mingw objdump,
18860         # which wouldn't understand a cygwinified path. Ahh.
18861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18862       else
18863         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18864       fi
18865       ;;
18866     pw32*)
18867       # pw32 DLLs use 'pw' prefix rather than 'lib'
18868       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18869       ;;
18870     esac
18871     ;;
18872
18873   *)
18874     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18875     ;;
18876   esac
18877   dynamic_linker='Win32 ld.exe'
18878   # FIXME: first we should search . and the directory the executable is in
18879   shlibpath_var=PATH
18880   ;;
18881
18882 darwin* | rhapsody*)
18883   dynamic_linker="$host_os dyld"
18884   version_type=darwin
18885   need_lib_prefix=no
18886   need_version=no
18887   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18888   soname_spec='${libname}${release}${major}$shared_ext'
18889   shlibpath_overrides_runpath=yes
18890   shlibpath_var=DYLD_LIBRARY_PATH
18891   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18892
18893   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18894   ;;
18895
18896 dgux*)
18897   version_type=linux
18898   need_lib_prefix=no
18899   need_version=no
18900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18901   soname_spec='${libname}${release}${shared_ext}$major'
18902   shlibpath_var=LD_LIBRARY_PATH
18903   ;;
18904
18905 freebsd1*)
18906   dynamic_linker=no
18907   ;;
18908
18909 freebsd* | dragonfly*)
18910   # DragonFly does not have aout.  When/if they implement a new
18911   # versioning mechanism, adjust this.
18912   if test -x /usr/bin/objformat; then
18913     objformat=`/usr/bin/objformat`
18914   else
18915     case $host_os in
18916     freebsd[123]*) objformat=aout ;;
18917     *) objformat=elf ;;
18918     esac
18919   fi
18920   version_type=freebsd-$objformat
18921   case $version_type in
18922     freebsd-elf*)
18923       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18924       need_version=no
18925       need_lib_prefix=no
18926       ;;
18927     freebsd-*)
18928       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18929       need_version=yes
18930       ;;
18931   esac
18932   shlibpath_var=LD_LIBRARY_PATH
18933   case $host_os in
18934   freebsd2*)
18935     shlibpath_overrides_runpath=yes
18936     ;;
18937   freebsd3.[01]* | freebsdelf3.[01]*)
18938     shlibpath_overrides_runpath=yes
18939     hardcode_into_libs=yes
18940     ;;
18941   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18942   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18943     shlibpath_overrides_runpath=no
18944     hardcode_into_libs=yes
18945     ;;
18946   *) # from 4.6 on, and DragonFly
18947     shlibpath_overrides_runpath=yes
18948     hardcode_into_libs=yes
18949     ;;
18950   esac
18951   ;;
18952
18953 gnu*)
18954   version_type=linux
18955   need_lib_prefix=no
18956   need_version=no
18957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18958   soname_spec='${libname}${release}${shared_ext}$major'
18959   shlibpath_var=LD_LIBRARY_PATH
18960   hardcode_into_libs=yes
18961   ;;
18962
18963 hpux9* | hpux10* | hpux11*)
18964   # Give a soname corresponding to the major version so that dld.sl refuses to
18965   # link against other versions.
18966   version_type=sunos
18967   need_lib_prefix=no
18968   need_version=no
18969   case $host_cpu in
18970   ia64*)
18971     shrext_cmds='.so'
18972     hardcode_into_libs=yes
18973     dynamic_linker="$host_os dld.so"
18974     shlibpath_var=LD_LIBRARY_PATH
18975     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18976     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18977     soname_spec='${libname}${release}${shared_ext}$major'
18978     if test "X$HPUX_IA64_MODE" = X32; then
18979       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18980     else
18981       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18982     fi
18983     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18984     ;;
18985    hppa*64*)
18986      shrext_cmds='.sl'
18987      hardcode_into_libs=yes
18988      dynamic_linker="$host_os dld.sl"
18989      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18990      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18991      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18992      soname_spec='${libname}${release}${shared_ext}$major'
18993      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18994      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18995      ;;
18996    *)
18997     shrext_cmds='.sl'
18998     dynamic_linker="$host_os dld.sl"
18999     shlibpath_var=SHLIB_PATH
19000     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19002     soname_spec='${libname}${release}${shared_ext}$major'
19003     ;;
19004   esac
19005   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19006   postinstall_cmds='chmod 555 $lib'
19007   ;;
19008
19009 interix[3-9]*)
19010   version_type=linux
19011   need_lib_prefix=no
19012   need_version=no
19013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19014   soname_spec='${libname}${release}${shared_ext}$major'
19015   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19016   shlibpath_var=LD_LIBRARY_PATH
19017   shlibpath_overrides_runpath=no
19018   hardcode_into_libs=yes
19019   ;;
19020
19021 irix5* | irix6* | nonstopux*)
19022   case $host_os in
19023     nonstopux*) version_type=nonstopux ;;
19024     *)
19025         if test "$lt_cv_prog_gnu_ld" = yes; then
19026                 version_type=linux
19027         else
19028                 version_type=irix
19029         fi ;;
19030   esac
19031   need_lib_prefix=no
19032   need_version=no
19033   soname_spec='${libname}${release}${shared_ext}$major'
19034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19035   case $host_os in
19036   irix5* | nonstopux*)
19037     libsuff= shlibsuff=
19038     ;;
19039   *)
19040     case $LD in # libtool.m4 will add one of these switches to LD
19041     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19042       libsuff= shlibsuff= libmagic=32-bit;;
19043     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19044       libsuff=32 shlibsuff=N32 libmagic=N32;;
19045     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19046       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19047     *) libsuff= shlibsuff= libmagic=never-match;;
19048     esac
19049     ;;
19050   esac
19051   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19052   shlibpath_overrides_runpath=no
19053   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19054   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19055   hardcode_into_libs=yes
19056   ;;
19057
19058 # No shared lib support for Linux oldld, aout, or coff.
19059 linux*oldld* | linux*aout* | linux*coff*)
19060   dynamic_linker=no
19061   ;;
19062
19063 # This must be Linux ELF.
19064 linux* | k*bsd*-gnu)
19065   version_type=linux
19066   need_lib_prefix=no
19067   need_version=no
19068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19069   soname_spec='${libname}${release}${shared_ext}$major'
19070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19071   shlibpath_var=LD_LIBRARY_PATH
19072   shlibpath_overrides_runpath=no
19073   # This implies no fast_install, which is unacceptable.
19074   # Some rework will be needed to allow for fast_install
19075   # before this can be enabled.
19076   hardcode_into_libs=yes
19077
19078   # Append ld.so.conf contents to the search path
19079   if test -f /etc/ld.so.conf; then
19080     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19081     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19082   fi
19083
19084   # We used to test for /lib/ld.so.1 and disable shared libraries on
19085   # powerpc, because MkLinux only supported shared libraries with the
19086   # GNU dynamic linker.  Since this was broken with cross compilers,
19087   # most powerpc-linux boxes support dynamic linking these days and
19088   # people can always --disable-shared, the test was removed, and we
19089   # assume the GNU/Linux dynamic linker is in use.
19090   dynamic_linker='GNU/Linux ld.so'
19091   ;;
19092
19093 netbsdelf*-gnu)
19094   version_type=linux
19095   need_lib_prefix=no
19096   need_version=no
19097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19098   soname_spec='${libname}${release}${shared_ext}$major'
19099   shlibpath_var=LD_LIBRARY_PATH
19100   shlibpath_overrides_runpath=no
19101   hardcode_into_libs=yes
19102   dynamic_linker='NetBSD ld.elf_so'
19103   ;;
19104
19105 netbsd*)
19106   version_type=sunos
19107   need_lib_prefix=no
19108   need_version=no
19109   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19111     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19112     dynamic_linker='NetBSD (a.out) ld.so'
19113   else
19114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19115     soname_spec='${libname}${release}${shared_ext}$major'
19116     dynamic_linker='NetBSD ld.elf_so'
19117   fi
19118   shlibpath_var=LD_LIBRARY_PATH
19119   shlibpath_overrides_runpath=yes
19120   hardcode_into_libs=yes
19121   ;;
19122
19123 newsos6)
19124   version_type=linux
19125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126   shlibpath_var=LD_LIBRARY_PATH
19127   shlibpath_overrides_runpath=yes
19128   ;;
19129
19130 nto-qnx*)
19131   version_type=linux
19132   need_lib_prefix=no
19133   need_version=no
19134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19135   soname_spec='${libname}${release}${shared_ext}$major'
19136   shlibpath_var=LD_LIBRARY_PATH
19137   shlibpath_overrides_runpath=yes
19138   ;;
19139
19140 openbsd*)
19141   version_type=sunos
19142   sys_lib_dlsearch_path_spec="/usr/lib"
19143   need_lib_prefix=no
19144   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19145   case $host_os in
19146     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19147     *)                         need_version=no  ;;
19148   esac
19149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19151   shlibpath_var=LD_LIBRARY_PATH
19152   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19153     case $host_os in
19154       openbsd2.[89] | openbsd2.[89].*)
19155         shlibpath_overrides_runpath=no
19156         ;;
19157       *)
19158         shlibpath_overrides_runpath=yes
19159         ;;
19160       esac
19161   else
19162     shlibpath_overrides_runpath=yes
19163   fi
19164   ;;
19165
19166 os2*)
19167   libname_spec='$name'
19168   shrext_cmds=".dll"
19169   need_lib_prefix=no
19170   library_names_spec='$libname${shared_ext} $libname.a'
19171   dynamic_linker='OS/2 ld.exe'
19172   shlibpath_var=LIBPATH
19173   ;;
19174
19175 osf3* | osf4* | osf5*)
19176   version_type=osf
19177   need_lib_prefix=no
19178   need_version=no
19179   soname_spec='${libname}${release}${shared_ext}$major'
19180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181   shlibpath_var=LD_LIBRARY_PATH
19182   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19183   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19184   ;;
19185
19186 rdos*)
19187   dynamic_linker=no
19188   ;;
19189
19190 solaris*)
19191   version_type=linux
19192   need_lib_prefix=no
19193   need_version=no
19194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19195   soname_spec='${libname}${release}${shared_ext}$major'
19196   shlibpath_var=LD_LIBRARY_PATH
19197   shlibpath_overrides_runpath=yes
19198   hardcode_into_libs=yes
19199   # ldd complains unless libraries are executable
19200   postinstall_cmds='chmod +x $lib'
19201   ;;
19202
19203 sunos4*)
19204   version_type=sunos
19205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19206   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19207   shlibpath_var=LD_LIBRARY_PATH
19208   shlibpath_overrides_runpath=yes
19209   if test "$with_gnu_ld" = yes; then
19210     need_lib_prefix=no
19211   fi
19212   need_version=yes
19213   ;;
19214
19215 sysv4 | sysv4.3*)
19216   version_type=linux
19217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19218   soname_spec='${libname}${release}${shared_ext}$major'
19219   shlibpath_var=LD_LIBRARY_PATH
19220   case $host_vendor in
19221     sni)
19222       shlibpath_overrides_runpath=no
19223       need_lib_prefix=no
19224       export_dynamic_flag_spec='${wl}-Blargedynsym'
19225       runpath_var=LD_RUN_PATH
19226       ;;
19227     siemens)
19228       need_lib_prefix=no
19229       ;;
19230     motorola)
19231       need_lib_prefix=no
19232       need_version=no
19233       shlibpath_overrides_runpath=no
19234       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19235       ;;
19236   esac
19237   ;;
19238
19239 sysv4*MP*)
19240   if test -d /usr/nec ;then
19241     version_type=linux
19242     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19243     soname_spec='$libname${shared_ext}.$major'
19244     shlibpath_var=LD_LIBRARY_PATH
19245   fi
19246   ;;
19247
19248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19249   version_type=freebsd-elf
19250   need_lib_prefix=no
19251   need_version=no
19252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19253   soname_spec='${libname}${release}${shared_ext}$major'
19254   shlibpath_var=LD_LIBRARY_PATH
19255   hardcode_into_libs=yes
19256   if test "$with_gnu_ld" = yes; then
19257     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19258     shlibpath_overrides_runpath=no
19259   else
19260     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19261     shlibpath_overrides_runpath=yes
19262     case $host_os in
19263       sco3.2v5*)
19264         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19265         ;;
19266     esac
19267   fi
19268   sys_lib_dlsearch_path_spec='/usr/lib'
19269   ;;
19270
19271 uts4*)
19272   version_type=linux
19273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19274   soname_spec='${libname}${release}${shared_ext}$major'
19275   shlibpath_var=LD_LIBRARY_PATH
19276   ;;
19277
19278 *)
19279   dynamic_linker=no
19280   ;;
19281 esac
19282 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19283 echo "${ECHO_T}$dynamic_linker" >&6; }
19284 test "$dynamic_linker" = no && can_build_shared=no
19285
19286 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19287 if test "$GCC" = yes; then
19288   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19289 fi
19290
19291 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19292 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19293 hardcode_action_GCJ=
19294 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19295    test -n "$runpath_var_GCJ" || \
19296    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19297
19298   # We can hardcode non-existant directories.
19299   if test "$hardcode_direct_GCJ" != no &&
19300      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19301      # have to relink, otherwise we might link with an installed library
19302      # when we should be linking with a yet-to-be-installed one
19303      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19304      test "$hardcode_minus_L_GCJ" != no; then
19305     # Linking always hardcodes the temporary library directory.
19306     hardcode_action_GCJ=relink
19307   else
19308     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19309     hardcode_action_GCJ=immediate
19310   fi
19311 else
19312   # We cannot hardcode anything, or else we can only hardcode existing
19313   # directories.
19314   hardcode_action_GCJ=unsupported
19315 fi
19316 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19317 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19318
19319 if test "$hardcode_action_GCJ" = relink; then
19320   # Fast installation is not supported
19321   enable_fast_install=no
19322 elif test "$shlibpath_overrides_runpath" = yes ||
19323      test "$enable_shared" = no; then
19324   # Fast installation is not necessary
19325   enable_fast_install=needless
19326 fi
19327
19328
19329 # The else clause should only fire when bootstrapping the
19330 # libtool distribution, otherwise you forgot to ship ltmain.sh
19331 # with your package, and you will get complaints that there are
19332 # no rules to generate ltmain.sh.
19333 if test -f "$ltmain"; then
19334   # See if we are running on zsh, and set the options which allow our commands through
19335   # without removal of \ escapes.
19336   if test -n "${ZSH_VERSION+set}" ; then
19337     setopt NO_GLOB_SUBST
19338   fi
19339   # Now quote all the things that may contain metacharacters while being
19340   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19341   # variables and quote the copies for generation of the libtool script.
19342   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19343     SED SHELL STRIP \
19344     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19345     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19346     deplibs_check_method reload_flag reload_cmds need_locks \
19347     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19348     lt_cv_sys_global_symbol_to_c_name_address \
19349     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19350     old_postinstall_cmds old_postuninstall_cmds \
19351     compiler_GCJ \
19352     CC_GCJ \
19353     LD_GCJ \
19354     lt_prog_compiler_wl_GCJ \
19355     lt_prog_compiler_pic_GCJ \
19356     lt_prog_compiler_static_GCJ \
19357     lt_prog_compiler_no_builtin_flag_GCJ \
19358     export_dynamic_flag_spec_GCJ \
19359     thread_safe_flag_spec_GCJ \
19360     whole_archive_flag_spec_GCJ \
19361     enable_shared_with_static_runtimes_GCJ \
19362     old_archive_cmds_GCJ \
19363     old_archive_from_new_cmds_GCJ \
19364     predep_objects_GCJ \
19365     postdep_objects_GCJ \
19366     predeps_GCJ \
19367     postdeps_GCJ \
19368     compiler_lib_search_path_GCJ \
19369     archive_cmds_GCJ \
19370     archive_expsym_cmds_GCJ \
19371     postinstall_cmds_GCJ \
19372     postuninstall_cmds_GCJ \
19373     old_archive_from_expsyms_cmds_GCJ \
19374     allow_undefined_flag_GCJ \
19375     no_undefined_flag_GCJ \
19376     export_symbols_cmds_GCJ \
19377     hardcode_libdir_flag_spec_GCJ \
19378     hardcode_libdir_flag_spec_ld_GCJ \
19379     hardcode_libdir_separator_GCJ \
19380     hardcode_automatic_GCJ \
19381     module_cmds_GCJ \
19382     module_expsym_cmds_GCJ \
19383     lt_cv_prog_compiler_c_o_GCJ \
19384     fix_srcfile_path_GCJ \
19385     exclude_expsyms_GCJ \
19386     include_expsyms_GCJ; do
19387
19388     case $var in
19389     old_archive_cmds_GCJ | \
19390     old_archive_from_new_cmds_GCJ | \
19391     archive_cmds_GCJ | \
19392     archive_expsym_cmds_GCJ | \
19393     module_cmds_GCJ | \
19394     module_expsym_cmds_GCJ | \
19395     old_archive_from_expsyms_cmds_GCJ | \
19396     export_symbols_cmds_GCJ | \
19397     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19398     postinstall_cmds | postuninstall_cmds | \
19399     old_postinstall_cmds | old_postuninstall_cmds | \
19400     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19401       # Double-quote double-evaled strings.
19402       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19403       ;;
19404     *)
19405       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19406       ;;
19407     esac
19408   done
19409
19410   case $lt_echo in
19411   *'\$0 --fallback-echo"')
19412     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19413     ;;
19414   esac
19415
19416 cfgfile="$ofile"
19417
19418   cat <<__EOF__ >> "$cfgfile"
19419 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19420
19421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19422
19423 # Shell to use when invoking shell scripts.
19424 SHELL=$lt_SHELL
19425
19426 # Whether or not to build shared libraries.
19427 build_libtool_libs=$enable_shared
19428
19429 # Whether or not to build static libraries.
19430 build_old_libs=$enable_static
19431
19432 # Whether or not to add -lc for building shared libraries.
19433 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19434
19435 # Whether or not to disallow shared libs when runtime libs are static
19436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19437
19438 # Whether or not to optimize for fast installation.
19439 fast_install=$enable_fast_install
19440
19441 # The host system.
19442 host_alias=$host_alias
19443 host=$host
19444 host_os=$host_os
19445
19446 # The build system.
19447 build_alias=$build_alias
19448 build=$build
19449 build_os=$build_os
19450
19451 # An echo program that does not interpret backslashes.
19452 echo=$lt_echo
19453
19454 # The archiver.
19455 AR=$lt_AR
19456 AR_FLAGS=$lt_AR_FLAGS
19457
19458 # A C compiler.
19459 LTCC=$lt_LTCC
19460
19461 # LTCC compiler flags.
19462 LTCFLAGS=$lt_LTCFLAGS
19463
19464 # A language-specific compiler.
19465 CC=$lt_compiler_GCJ
19466
19467 # Is the compiler the GNU C compiler?
19468 with_gcc=$GCC_GCJ
19469
19470 # An ERE matcher.
19471 EGREP=$lt_EGREP
19472
19473 # The linker used to build libraries.
19474 LD=$lt_LD_GCJ
19475
19476 # Whether we need hard or soft links.
19477 LN_S=$lt_LN_S
19478
19479 # A BSD-compatible nm program.
19480 NM=$lt_NM
19481
19482 # A symbol stripping program
19483 STRIP=$lt_STRIP
19484
19485 # Used to examine libraries when file_magic_cmd begins "file"
19486 MAGIC_CMD=$MAGIC_CMD
19487
19488 # Used on cygwin: DLL creation program.
19489 DLLTOOL="$DLLTOOL"
19490
19491 # Used on cygwin: object dumper.
19492 OBJDUMP="$OBJDUMP"
19493
19494 # Used on cygwin: assembler.
19495 AS="$AS"
19496
19497 # The name of the directory that contains temporary libtool files.
19498 objdir=$objdir
19499
19500 # How to create reloadable object files.
19501 reload_flag=$lt_reload_flag
19502 reload_cmds=$lt_reload_cmds
19503
19504 # How to pass a linker flag through the compiler.
19505 wl=$lt_lt_prog_compiler_wl_GCJ
19506
19507 # Object file suffix (normally "o").
19508 objext="$ac_objext"
19509
19510 # Old archive suffix (normally "a").
19511 libext="$libext"
19512
19513 # Shared library suffix (normally ".so").
19514 shrext_cmds='$shrext_cmds'
19515
19516 # Executable file suffix (normally "").
19517 exeext="$exeext"
19518
19519 # Additional compiler flags for building library objects.
19520 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19521 pic_mode=$pic_mode
19522
19523 # What is the maximum length of a command?
19524 max_cmd_len=$lt_cv_sys_max_cmd_len
19525
19526 # Does compiler simultaneously support -c and -o options?
19527 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19528
19529 # Must we lock files when doing compilation?
19530 need_locks=$lt_need_locks
19531
19532 # Do we need the lib prefix for modules?
19533 need_lib_prefix=$need_lib_prefix
19534
19535 # Do we need a version for libraries?
19536 need_version=$need_version
19537
19538 # Whether dlopen is supported.
19539 dlopen_support=$enable_dlopen
19540
19541 # Whether dlopen of programs is supported.
19542 dlopen_self=$enable_dlopen_self
19543
19544 # Whether dlopen of statically linked programs is supported.
19545 dlopen_self_static=$enable_dlopen_self_static
19546
19547 # Compiler flag to prevent dynamic linking.
19548 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19549
19550 # Compiler flag to turn off builtin functions.
19551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19552
19553 # Compiler flag to allow reflexive dlopens.
19554 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19555
19556 # Compiler flag to generate shared objects directly from archives.
19557 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19558
19559 # Compiler flag to generate thread-safe objects.
19560 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19561
19562 # Library versioning type.
19563 version_type=$version_type
19564
19565 # Format of library name prefix.
19566 libname_spec=$lt_libname_spec
19567
19568 # List of archive names.  First name is the real one, the rest are links.
19569 # The last name is the one that the linker finds with -lNAME.
19570 library_names_spec=$lt_library_names_spec
19571
19572 # The coded name of the library, if different from the real name.
19573 soname_spec=$lt_soname_spec
19574
19575 # Commands used to build and install an old-style archive.
19576 RANLIB=$lt_RANLIB
19577 old_archive_cmds=$lt_old_archive_cmds_GCJ
19578 old_postinstall_cmds=$lt_old_postinstall_cmds
19579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19580
19581 # Create an old-style archive from a shared archive.
19582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19583
19584 # Create a temporary old-style archive to link instead of a shared archive.
19585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19586
19587 # Commands used to build and install a shared archive.
19588 archive_cmds=$lt_archive_cmds_GCJ
19589 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19590 postinstall_cmds=$lt_postinstall_cmds
19591 postuninstall_cmds=$lt_postuninstall_cmds
19592
19593 # Commands used to build a loadable module (assumed same as above if empty)
19594 module_cmds=$lt_module_cmds_GCJ
19595 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19596
19597 # Commands to strip libraries.
19598 old_striplib=$lt_old_striplib
19599 striplib=$lt_striplib
19600
19601 # Dependencies to place before the objects being linked to create a
19602 # shared library.
19603 predep_objects=$lt_predep_objects_GCJ
19604
19605 # Dependencies to place after the objects being linked to create a
19606 # shared library.
19607 postdep_objects=$lt_postdep_objects_GCJ
19608
19609 # Dependencies to place before the objects being linked to create a
19610 # shared library.
19611 predeps=$lt_predeps_GCJ
19612
19613 # Dependencies to place after the objects being linked to create a
19614 # shared library.
19615 postdeps=$lt_postdeps_GCJ
19616
19617 # The library search path used internally by the compiler when linking
19618 # a shared library.
19619 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19620
19621 # Method to check whether dependent libraries are shared objects.
19622 deplibs_check_method=$lt_deplibs_check_method
19623
19624 # Command to use when deplibs_check_method == file_magic.
19625 file_magic_cmd=$lt_file_magic_cmd
19626
19627 # Flag that allows shared libraries with undefined symbols to be built.
19628 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19629
19630 # Flag that forces no undefined symbols.
19631 no_undefined_flag=$lt_no_undefined_flag_GCJ
19632
19633 # Commands used to finish a libtool library installation in a directory.
19634 finish_cmds=$lt_finish_cmds
19635
19636 # Same as above, but a single script fragment to be evaled but not shown.
19637 finish_eval=$lt_finish_eval
19638
19639 # Take the output of nm and produce a listing of raw symbols and C names.
19640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19641
19642 # Transform the output of nm in a proper C declaration
19643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19644
19645 # Transform the output of nm in a C name address pair
19646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19647
19648 # This is the shared library runtime path variable.
19649 runpath_var=$runpath_var
19650
19651 # This is the shared library path variable.
19652 shlibpath_var=$shlibpath_var
19653
19654 # Is shlibpath searched before the hard-coded library search path?
19655 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19656
19657 # How to hardcode a shared library path into an executable.
19658 hardcode_action=$hardcode_action_GCJ
19659
19660 # Whether we should hardcode library paths into libraries.
19661 hardcode_into_libs=$hardcode_into_libs
19662
19663 # Flag to hardcode \$libdir into a binary during linking.
19664 # This must work even if \$libdir does not exist.
19665 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19666
19667 # If ld is used when linking, flag to hardcode \$libdir into
19668 # a binary during linking. This must work even if \$libdir does
19669 # not exist.
19670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19671
19672 # Whether we need a single -rpath flag with a separated argument.
19673 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19674
19675 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19676 # resulting binary.
19677 hardcode_direct=$hardcode_direct_GCJ
19678
19679 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19680 # resulting binary.
19681 hardcode_minus_L=$hardcode_minus_L_GCJ
19682
19683 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19684 # the resulting binary.
19685 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19686
19687 # Set to yes if building a shared library automatically hardcodes DIR into the library
19688 # and all subsequent libraries and executables linked against it.
19689 hardcode_automatic=$hardcode_automatic_GCJ
19690
19691 # Variables whose values should be saved in libtool wrapper scripts and
19692 # restored at relink time.
19693 variables_saved_for_relink="$variables_saved_for_relink"
19694
19695 # Whether libtool must link a program against all its dependency libraries.
19696 link_all_deplibs=$link_all_deplibs_GCJ
19697
19698 # Compile-time system search path for libraries
19699 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19700
19701 # Run-time system search path for libraries
19702 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19703
19704 # Fix the shell variable \$srcfile for the compiler.
19705 fix_srcfile_path=$lt_fix_srcfile_path
19706
19707 # Set to yes if exported symbols are required.
19708 always_export_symbols=$always_export_symbols_GCJ
19709
19710 # The commands to list exported symbols.
19711 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19712
19713 # The commands to extract the exported symbol list from a shared archive.
19714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19715
19716 # Symbols that should not be listed in the preloaded symbols.
19717 exclude_expsyms=$lt_exclude_expsyms_GCJ
19718
19719 # Symbols that must always be exported.
19720 include_expsyms=$lt_include_expsyms_GCJ
19721
19722 # ### END LIBTOOL TAG CONFIG: $tagname
19723
19724 __EOF__
19725
19726
19727 else
19728   # If there is no Makefile yet, we rely on a make rule to execute
19729   # `config.status --recheck' to rerun these tests and create the
19730   # libtool script then.
19731   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19732   if test -f "$ltmain_in"; then
19733     test -f Makefile && make "$ltmain"
19734   fi
19735 fi
19736
19737
19738 ac_ext=c
19739 ac_cpp='$CPP $CPPFLAGS'
19740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19743
19744 CC="$lt_save_CC"
19745
19746         else
19747           tagname=""
19748         fi
19749         ;;
19750
19751       RC)
19752
19753
19754 # Source file extension for RC test sources.
19755 ac_ext=rc
19756
19757 # Object file extension for compiled RC test sources.
19758 objext=o
19759 objext_RC=$objext
19760
19761 # Code to be used in simple compile tests
19762 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19763
19764 # Code to be used in simple link tests
19765 lt_simple_link_test_code="$lt_simple_compile_test_code"
19766
19767 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19768
19769 # If no C compiler was specified, use CC.
19770 LTCC=${LTCC-"$CC"}
19771
19772 # If no C compiler flags were specified, use CFLAGS.
19773 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19774
19775 # Allow CC to be a program name with arguments.
19776 compiler=$CC
19777
19778
19779 # save warnings/boilerplate of simple test code
19780 ac_outfile=conftest.$ac_objext
19781 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19782 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19783 _lt_compiler_boilerplate=`cat conftest.err`
19784 $rm conftest*
19785
19786 ac_outfile=conftest.$ac_objext
19787 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19788 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19789 _lt_linker_boilerplate=`cat conftest.err`
19790 $rm conftest*
19791
19792
19793 # Allow CC to be a program name with arguments.
19794 lt_save_CC="$CC"
19795 CC=${RC-"windres"}
19796 compiler=$CC
19797 compiler_RC=$CC
19798 for cc_temp in $compiler""; do
19799   case $cc_temp in
19800     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19801     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19802     \-*) ;;
19803     *) break;;
19804   esac
19805 done
19806 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19807
19808 lt_cv_prog_compiler_c_o_RC=yes
19809
19810 # The else clause should only fire when bootstrapping the
19811 # libtool distribution, otherwise you forgot to ship ltmain.sh
19812 # with your package, and you will get complaints that there are
19813 # no rules to generate ltmain.sh.
19814 if test -f "$ltmain"; then
19815   # See if we are running on zsh, and set the options which allow our commands through
19816   # without removal of \ escapes.
19817   if test -n "${ZSH_VERSION+set}" ; then
19818     setopt NO_GLOB_SUBST
19819   fi
19820   # Now quote all the things that may contain metacharacters while being
19821   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19822   # variables and quote the copies for generation of the libtool script.
19823   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19824     SED SHELL STRIP \
19825     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19826     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19827     deplibs_check_method reload_flag reload_cmds need_locks \
19828     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19829     lt_cv_sys_global_symbol_to_c_name_address \
19830     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19831     old_postinstall_cmds old_postuninstall_cmds \
19832     compiler_RC \
19833     CC_RC \
19834     LD_RC \
19835     lt_prog_compiler_wl_RC \
19836     lt_prog_compiler_pic_RC \
19837     lt_prog_compiler_static_RC \
19838     lt_prog_compiler_no_builtin_flag_RC \
19839     export_dynamic_flag_spec_RC \
19840     thread_safe_flag_spec_RC \
19841     whole_archive_flag_spec_RC \
19842     enable_shared_with_static_runtimes_RC \
19843     old_archive_cmds_RC \
19844     old_archive_from_new_cmds_RC \
19845     predep_objects_RC \
19846     postdep_objects_RC \
19847     predeps_RC \
19848     postdeps_RC \
19849     compiler_lib_search_path_RC \
19850     archive_cmds_RC \
19851     archive_expsym_cmds_RC \
19852     postinstall_cmds_RC \
19853     postuninstall_cmds_RC \
19854     old_archive_from_expsyms_cmds_RC \
19855     allow_undefined_flag_RC \
19856     no_undefined_flag_RC \
19857     export_symbols_cmds_RC \
19858     hardcode_libdir_flag_spec_RC \
19859     hardcode_libdir_flag_spec_ld_RC \
19860     hardcode_libdir_separator_RC \
19861     hardcode_automatic_RC \
19862     module_cmds_RC \
19863     module_expsym_cmds_RC \
19864     lt_cv_prog_compiler_c_o_RC \
19865     fix_srcfile_path_RC \
19866     exclude_expsyms_RC \
19867     include_expsyms_RC; do
19868
19869     case $var in
19870     old_archive_cmds_RC | \
19871     old_archive_from_new_cmds_RC | \
19872     archive_cmds_RC | \
19873     archive_expsym_cmds_RC | \
19874     module_cmds_RC | \
19875     module_expsym_cmds_RC | \
19876     old_archive_from_expsyms_cmds_RC | \
19877     export_symbols_cmds_RC | \
19878     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19879     postinstall_cmds | postuninstall_cmds | \
19880     old_postinstall_cmds | old_postuninstall_cmds | \
19881     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19882       # Double-quote double-evaled strings.
19883       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19884       ;;
19885     *)
19886       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19887       ;;
19888     esac
19889   done
19890
19891   case $lt_echo in
19892   *'\$0 --fallback-echo"')
19893     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19894     ;;
19895   esac
19896
19897 cfgfile="$ofile"
19898
19899   cat <<__EOF__ >> "$cfgfile"
19900 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19901
19902 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19903
19904 # Shell to use when invoking shell scripts.
19905 SHELL=$lt_SHELL
19906
19907 # Whether or not to build shared libraries.
19908 build_libtool_libs=$enable_shared
19909
19910 # Whether or not to build static libraries.
19911 build_old_libs=$enable_static
19912
19913 # Whether or not to add -lc for building shared libraries.
19914 build_libtool_need_lc=$archive_cmds_need_lc_RC
19915
19916 # Whether or not to disallow shared libs when runtime libs are static
19917 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19918
19919 # Whether or not to optimize for fast installation.
19920 fast_install=$enable_fast_install
19921
19922 # The host system.
19923 host_alias=$host_alias
19924 host=$host
19925 host_os=$host_os
19926
19927 # The build system.
19928 build_alias=$build_alias
19929 build=$build
19930 build_os=$build_os
19931
19932 # An echo program that does not interpret backslashes.
19933 echo=$lt_echo
19934
19935 # The archiver.
19936 AR=$lt_AR
19937 AR_FLAGS=$lt_AR_FLAGS
19938
19939 # A C compiler.
19940 LTCC=$lt_LTCC
19941
19942 # LTCC compiler flags.
19943 LTCFLAGS=$lt_LTCFLAGS
19944
19945 # A language-specific compiler.
19946 CC=$lt_compiler_RC
19947
19948 # Is the compiler the GNU C compiler?
19949 with_gcc=$GCC_RC
19950
19951 # An ERE matcher.
19952 EGREP=$lt_EGREP
19953
19954 # The linker used to build libraries.
19955 LD=$lt_LD_RC
19956
19957 # Whether we need hard or soft links.
19958 LN_S=$lt_LN_S
19959
19960 # A BSD-compatible nm program.
19961 NM=$lt_NM
19962
19963 # A symbol stripping program
19964 STRIP=$lt_STRIP
19965
19966 # Used to examine libraries when file_magic_cmd begins "file"
19967 MAGIC_CMD=$MAGIC_CMD
19968
19969 # Used on cygwin: DLL creation program.
19970 DLLTOOL="$DLLTOOL"
19971
19972 # Used on cygwin: object dumper.
19973 OBJDUMP="$OBJDUMP"
19974
19975 # Used on cygwin: assembler.
19976 AS="$AS"
19977
19978 # The name of the directory that contains temporary libtool files.
19979 objdir=$objdir
19980
19981 # How to create reloadable object files.
19982 reload_flag=$lt_reload_flag
19983 reload_cmds=$lt_reload_cmds
19984
19985 # How to pass a linker flag through the compiler.
19986 wl=$lt_lt_prog_compiler_wl_RC
19987
19988 # Object file suffix (normally "o").
19989 objext="$ac_objext"
19990
19991 # Old archive suffix (normally "a").
19992 libext="$libext"
19993
19994 # Shared library suffix (normally ".so").
19995 shrext_cmds='$shrext_cmds'
19996
19997 # Executable file suffix (normally "").
19998 exeext="$exeext"
19999
20000 # Additional compiler flags for building library objects.
20001 pic_flag=$lt_lt_prog_compiler_pic_RC
20002 pic_mode=$pic_mode
20003
20004 # What is the maximum length of a command?
20005 max_cmd_len=$lt_cv_sys_max_cmd_len
20006
20007 # Does compiler simultaneously support -c and -o options?
20008 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20009
20010 # Must we lock files when doing compilation?
20011 need_locks=$lt_need_locks
20012
20013 # Do we need the lib prefix for modules?
20014 need_lib_prefix=$need_lib_prefix
20015
20016 # Do we need a version for libraries?
20017 need_version=$need_version
20018
20019 # Whether dlopen is supported.
20020 dlopen_support=$enable_dlopen
20021
20022 # Whether dlopen of programs is supported.
20023 dlopen_self=$enable_dlopen_self
20024
20025 # Whether dlopen of statically linked programs is supported.
20026 dlopen_self_static=$enable_dlopen_self_static
20027
20028 # Compiler flag to prevent dynamic linking.
20029 link_static_flag=$lt_lt_prog_compiler_static_RC
20030
20031 # Compiler flag to turn off builtin functions.
20032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20033
20034 # Compiler flag to allow reflexive dlopens.
20035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20036
20037 # Compiler flag to generate shared objects directly from archives.
20038 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20039
20040 # Compiler flag to generate thread-safe objects.
20041 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20042
20043 # Library versioning type.
20044 version_type=$version_type
20045
20046 # Format of library name prefix.
20047 libname_spec=$lt_libname_spec
20048
20049 # List of archive names.  First name is the real one, the rest are links.
20050 # The last name is the one that the linker finds with -lNAME.
20051 library_names_spec=$lt_library_names_spec
20052
20053 # The coded name of the library, if different from the real name.
20054 soname_spec=$lt_soname_spec
20055
20056 # Commands used to build and install an old-style archive.
20057 RANLIB=$lt_RANLIB
20058 old_archive_cmds=$lt_old_archive_cmds_RC
20059 old_postinstall_cmds=$lt_old_postinstall_cmds
20060 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20061
20062 # Create an old-style archive from a shared archive.
20063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20064
20065 # Create a temporary old-style archive to link instead of a shared archive.
20066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20067
20068 # Commands used to build and install a shared archive.
20069 archive_cmds=$lt_archive_cmds_RC
20070 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20071 postinstall_cmds=$lt_postinstall_cmds
20072 postuninstall_cmds=$lt_postuninstall_cmds
20073
20074 # Commands used to build a loadable module (assumed same as above if empty)
20075 module_cmds=$lt_module_cmds_RC
20076 module_expsym_cmds=$lt_module_expsym_cmds_RC
20077
20078 # Commands to strip libraries.
20079 old_striplib=$lt_old_striplib
20080 striplib=$lt_striplib
20081
20082 # Dependencies to place before the objects being linked to create a
20083 # shared library.
20084 predep_objects=$lt_predep_objects_RC
20085
20086 # Dependencies to place after the objects being linked to create a
20087 # shared library.
20088 postdep_objects=$lt_postdep_objects_RC
20089
20090 # Dependencies to place before the objects being linked to create a
20091 # shared library.
20092 predeps=$lt_predeps_RC
20093
20094 # Dependencies to place after the objects being linked to create a
20095 # shared library.
20096 postdeps=$lt_postdeps_RC
20097
20098 # The library search path used internally by the compiler when linking
20099 # a shared library.
20100 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20101
20102 # Method to check whether dependent libraries are shared objects.
20103 deplibs_check_method=$lt_deplibs_check_method
20104
20105 # Command to use when deplibs_check_method == file_magic.
20106 file_magic_cmd=$lt_file_magic_cmd
20107
20108 # Flag that allows shared libraries with undefined symbols to be built.
20109 allow_undefined_flag=$lt_allow_undefined_flag_RC
20110
20111 # Flag that forces no undefined symbols.
20112 no_undefined_flag=$lt_no_undefined_flag_RC
20113
20114 # Commands used to finish a libtool library installation in a directory.
20115 finish_cmds=$lt_finish_cmds
20116
20117 # Same as above, but a single script fragment to be evaled but not shown.
20118 finish_eval=$lt_finish_eval
20119
20120 # Take the output of nm and produce a listing of raw symbols and C names.
20121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20122
20123 # Transform the output of nm in a proper C declaration
20124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20125
20126 # Transform the output of nm in a C name address pair
20127 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20128
20129 # This is the shared library runtime path variable.
20130 runpath_var=$runpath_var
20131
20132 # This is the shared library path variable.
20133 shlibpath_var=$shlibpath_var
20134
20135 # Is shlibpath searched before the hard-coded library search path?
20136 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20137
20138 # How to hardcode a shared library path into an executable.
20139 hardcode_action=$hardcode_action_RC
20140
20141 # Whether we should hardcode library paths into libraries.
20142 hardcode_into_libs=$hardcode_into_libs
20143
20144 # Flag to hardcode \$libdir into a binary during linking.
20145 # This must work even if \$libdir does not exist.
20146 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20147
20148 # If ld is used when linking, flag to hardcode \$libdir into
20149 # a binary during linking. This must work even if \$libdir does
20150 # not exist.
20151 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20152
20153 # Whether we need a single -rpath flag with a separated argument.
20154 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20155
20156 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20157 # resulting binary.
20158 hardcode_direct=$hardcode_direct_RC
20159
20160 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20161 # resulting binary.
20162 hardcode_minus_L=$hardcode_minus_L_RC
20163
20164 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20165 # the resulting binary.
20166 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20167
20168 # Set to yes if building a shared library automatically hardcodes DIR into the library
20169 # and all subsequent libraries and executables linked against it.
20170 hardcode_automatic=$hardcode_automatic_RC
20171
20172 # Variables whose values should be saved in libtool wrapper scripts and
20173 # restored at relink time.
20174 variables_saved_for_relink="$variables_saved_for_relink"
20175
20176 # Whether libtool must link a program against all its dependency libraries.
20177 link_all_deplibs=$link_all_deplibs_RC
20178
20179 # Compile-time system search path for libraries
20180 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20181
20182 # Run-time system search path for libraries
20183 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20184
20185 # Fix the shell variable \$srcfile for the compiler.
20186 fix_srcfile_path=$lt_fix_srcfile_path
20187
20188 # Set to yes if exported symbols are required.
20189 always_export_symbols=$always_export_symbols_RC
20190
20191 # The commands to list exported symbols.
20192 export_symbols_cmds=$lt_export_symbols_cmds_RC
20193
20194 # The commands to extract the exported symbol list from a shared archive.
20195 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20196
20197 # Symbols that should not be listed in the preloaded symbols.
20198 exclude_expsyms=$lt_exclude_expsyms_RC
20199
20200 # Symbols that must always be exported.
20201 include_expsyms=$lt_include_expsyms_RC
20202
20203 # ### END LIBTOOL TAG CONFIG: $tagname
20204
20205 __EOF__
20206
20207
20208 else
20209   # If there is no Makefile yet, we rely on a make rule to execute
20210   # `config.status --recheck' to rerun these tests and create the
20211   # libtool script then.
20212   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20213   if test -f "$ltmain_in"; then
20214     test -f Makefile && make "$ltmain"
20215   fi
20216 fi
20217
20218
20219 ac_ext=c
20220 ac_cpp='$CPP $CPPFLAGS'
20221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20224
20225 CC="$lt_save_CC"
20226
20227         ;;
20228
20229       *)
20230         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20231 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20232    { (exit 1); exit 1; }; }
20233         ;;
20234       esac
20235
20236       # Append the new tag name to the list of available tags.
20237       if test -n "$tagname" ; then
20238       available_tags="$available_tags $tagname"
20239     fi
20240     fi
20241   done
20242   IFS="$lt_save_ifs"
20243
20244   # Now substitute the updated list of available tags.
20245   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20246     mv "${ofile}T" "$ofile"
20247     chmod +x "$ofile"
20248   else
20249     rm -f "${ofile}T"
20250     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20251 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20252    { (exit 1); exit 1; }; }
20253   fi
20254 fi
20255
20256
20257
20258 # This can be used to rebuild libtool when needed
20259 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20260
20261 # Always use our own libtool.
20262 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20263
20264 # Prevent multiple expansion
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285 ac_config_files="$ac_config_files Makefile test/Makefile src/Makefile lib/Makefile bindings/mysql/myisenna/Makefile"
20286
20287
20288
20289
20290
20291
20292
20293 for ac_header in sys/mman.h sys/time.h sys/param.h sys/types.h pthread.h sys/resource.h
20294 do
20295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20297   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20300   echo $ECHO_N "(cached) $ECHO_C" >&6
20301 fi
20302 ac_res=`eval echo '${'$as_ac_Header'}'`
20303                { echo "$as_me:$LINENO: result: $ac_res" >&5
20304 echo "${ECHO_T}$ac_res" >&6; }
20305 else
20306   # Is the header compilable?
20307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20315 $ac_includes_default
20316 #include <$ac_header>
20317 _ACEOF
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322   *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325   (eval "$ac_compile") 2>conftest.er1
20326   ac_status=$?
20327   grep -v '^ *+' conftest.er1 >conftest.err
20328   rm -f conftest.er1
20329   cat conftest.err >&5
20330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331   (exit $ac_status); } && {
20332          test -z "$ac_c_werror_flag" ||
20333          test ! -s conftest.err
20334        } && test -s conftest.$ac_objext; then
20335   ac_header_compiler=yes
20336 else
20337   echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340         ac_header_compiler=no
20341 fi
20342
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20345 echo "${ECHO_T}$ac_header_compiler" >&6; }
20346
20347 # Is the header present?
20348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h.  */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h.  */
20356 #include <$ac_header>
20357 _ACEOF
20358 if { (ac_try="$ac_cpp conftest.$ac_ext"
20359 case "(($ac_try" in
20360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361   *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20365   ac_status=$?
20366   grep -v '^ *+' conftest.er1 >conftest.err
20367   rm -f conftest.er1
20368   cat conftest.err >&5
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); } >/dev/null && {
20371          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20372          test ! -s conftest.err
20373        }; then
20374   ac_header_preproc=yes
20375 else
20376   echo "$as_me: failed program was:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20378
20379   ac_header_preproc=no
20380 fi
20381
20382 rm -f conftest.err conftest.$ac_ext
20383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20384 echo "${ECHO_T}$ac_header_preproc" >&6; }
20385
20386 # So?  What about this header?
20387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20388   yes:no: )
20389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20393     ac_header_preproc=yes
20394     ;;
20395   no:yes:* )
20396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20408     ( cat <<\_ASBOX
20409 ## ----------------------------- ##
20410 ## Report this to senna@razil.jp ##
20411 ## ----------------------------- ##
20412 _ASBOX
20413      ) | sed "s/^/$as_me: WARNING:     /" >&2
20414     ;;
20415 esac
20416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20419   echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421   eval "$as_ac_Header=\$ac_header_preproc"
20422 fi
20423 ac_res=`eval echo '${'$as_ac_Header'}'`
20424                { echo "$as_me:$LINENO: result: $ac_res" >&5
20425 echo "${ECHO_T}$ac_res" >&6; }
20426
20427 fi
20428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20429   cat >>confdefs.h <<_ACEOF
20430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20431 _ACEOF
20432
20433 fi
20434
20435 done
20436
20437
20438
20439
20440
20441
20442 for ac_header in netdb.h sys/wait.h sys/socket.h netinet/in.h netinet/tcp.h
20443 do
20444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20446   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20449   echo $ECHO_N "(cached) $ECHO_C" >&6
20450 fi
20451 ac_res=`eval echo '${'$as_ac_Header'}'`
20452                { echo "$as_me:$LINENO: result: $ac_res" >&5
20453 echo "${ECHO_T}$ac_res" >&6; }
20454 else
20455   # Is the header compilable?
20456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20458 cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h.  */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h.  */
20464 $ac_includes_default
20465 #include <$ac_header>
20466 _ACEOF
20467 rm -f conftest.$ac_objext
20468 if { (ac_try="$ac_compile"
20469 case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_compile") 2>conftest.er1
20475   ac_status=$?
20476   grep -v '^ *+' conftest.er1 >conftest.err
20477   rm -f conftest.er1
20478   cat conftest.err >&5
20479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480   (exit $ac_status); } && {
20481          test -z "$ac_c_werror_flag" ||
20482          test ! -s conftest.err
20483        } && test -s conftest.$ac_objext; then
20484   ac_header_compiler=yes
20485 else
20486   echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489         ac_header_compiler=no
20490 fi
20491
20492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20494 echo "${ECHO_T}$ac_header_compiler" >&6; }
20495
20496 # Is the header present?
20497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h.  */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h.  */
20505 #include <$ac_header>
20506 _ACEOF
20507 if { (ac_try="$ac_cpp conftest.$ac_ext"
20508 case "(($ac_try" in
20509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510   *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } >/dev/null && {
20520          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20521          test ! -s conftest.err
20522        }; then
20523   ac_header_preproc=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528   ac_header_preproc=no
20529 fi
20530
20531 rm -f conftest.err conftest.$ac_ext
20532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20533 echo "${ECHO_T}$ac_header_preproc" >&6; }
20534
20535 # So?  What about this header?
20536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20537   yes:no: )
20538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20542     ac_header_preproc=yes
20543     ;;
20544   no:yes:* )
20545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20557     ( cat <<\_ASBOX
20558 ## ----------------------------- ##
20559 ## Report this to senna@razil.jp ##
20560 ## ----------------------------- ##
20561 _ASBOX
20562      ) | sed "s/^/$as_me: WARNING:     /" >&2
20563     ;;
20564 esac
20565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570   eval "$as_ac_Header=\$ac_header_preproc"
20571 fi
20572 ac_res=`eval echo '${'$as_ac_Header'}'`
20573                { echo "$as_me:$LINENO: result: $ac_res" >&5
20574 echo "${ECHO_T}$ac_res" >&6; }
20575
20576 fi
20577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20578   cat >>confdefs.h <<_ACEOF
20579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20580 _ACEOF
20581
20582 fi
20583
20584 done
20585
20586
20587
20588
20589 for ac_header in ucontext.h signal.h errno.h
20590 do
20591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20596   echo $ECHO_N "(cached) $ECHO_C" >&6
20597 fi
20598 ac_res=`eval echo '${'$as_ac_Header'}'`
20599                { echo "$as_me:$LINENO: result: $ac_res" >&5
20600 echo "${ECHO_T}$ac_res" >&6; }
20601 else
20602   # Is the header compilable?
20603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20605 cat >conftest.$ac_ext <<_ACEOF
20606 /* confdefs.h.  */
20607 _ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h.  */
20611 $ac_includes_default
20612 #include <$ac_header>
20613 _ACEOF
20614 rm -f conftest.$ac_objext
20615 if { (ac_try="$ac_compile"
20616 case "(($ac_try" in
20617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618   *) ac_try_echo=$ac_try;;
20619 esac
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621   (eval "$ac_compile") 2>conftest.er1
20622   ac_status=$?
20623   grep -v '^ *+' conftest.er1 >conftest.err
20624   rm -f conftest.er1
20625   cat conftest.err >&5
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); } && {
20628          test -z "$ac_c_werror_flag" ||
20629          test ! -s conftest.err
20630        } && test -s conftest.$ac_objext; then
20631   ac_header_compiler=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636         ac_header_compiler=no
20637 fi
20638
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20641 echo "${ECHO_T}$ac_header_compiler" >&6; }
20642
20643 # Is the header present?
20644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20646 cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652 #include <$ac_header>
20653 _ACEOF
20654 if { (ac_try="$ac_cpp conftest.$ac_ext"
20655 case "(($ac_try" in
20656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657   *) ac_try_echo=$ac_try;;
20658 esac
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20661   ac_status=$?
20662   grep -v '^ *+' conftest.er1 >conftest.err
20663   rm -f conftest.er1
20664   cat conftest.err >&5
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); } >/dev/null && {
20667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20668          test ! -s conftest.err
20669        }; then
20670   ac_header_preproc=yes
20671 else
20672   echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20674
20675   ac_header_preproc=no
20676 fi
20677
20678 rm -f conftest.err conftest.$ac_ext
20679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20680 echo "${ECHO_T}$ac_header_preproc" >&6; }
20681
20682 # So?  What about this header?
20683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20684   yes:no: )
20685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20689     ac_header_preproc=yes
20690     ;;
20691   no:yes:* )
20692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20704     ( cat <<\_ASBOX
20705 ## ----------------------------- ##
20706 ## Report this to senna@razil.jp ##
20707 ## ----------------------------- ##
20708 _ASBOX
20709      ) | sed "s/^/$as_me: WARNING:     /" >&2
20710     ;;
20711 esac
20712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715   echo $ECHO_N "(cached) $ECHO_C" >&6
20716 else
20717   eval "$as_ac_Header=\$ac_header_preproc"
20718 fi
20719 ac_res=`eval echo '${'$as_ac_Header'}'`
20720                { echo "$as_me:$LINENO: result: $ac_res" >&5
20721 echo "${ECHO_T}$ac_res" >&6; }
20722
20723 fi
20724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20725   cat >>confdefs.h <<_ACEOF
20726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20727 _ACEOF
20728
20729 fi
20730
20731 done
20732
20733
20734 for ac_func in localtime_r
20735 do
20736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20740   echo $ECHO_N "(cached) $ECHO_C" >&6
20741 else
20742   cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h.  */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h.  */
20748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20750 #define $ac_func innocuous_$ac_func
20751
20752 /* System header to define __stub macros and hopefully few prototypes,
20753     which can conflict with char $ac_func (); below.
20754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20755     <limits.h> exists even on freestanding compilers.  */
20756
20757 #ifdef __STDC__
20758 # include <limits.h>
20759 #else
20760 # include <assert.h>
20761 #endif
20762
20763 #undef $ac_func
20764
20765 /* Override any GCC internal prototype to avoid an error.
20766    Use char because int might match the return type of a GCC
20767    builtin and then its argument prototype would still apply.  */
20768 #ifdef __cplusplus
20769 extern "C"
20770 #endif
20771 char $ac_func ();
20772 /* The GNU C library defines this for functions which it implements
20773     to always fail with ENOSYS.  Some functions are actually named
20774     something starting with __ and the normal name is an alias.  */
20775 #if defined __stub_$ac_func || defined __stub___$ac_func
20776 choke me
20777 #endif
20778
20779 int
20780 main ()
20781 {
20782 return $ac_func ();
20783   ;
20784   return 0;
20785 }
20786 _ACEOF
20787 rm -f conftest.$ac_objext conftest$ac_exeext
20788 if { (ac_try="$ac_link"
20789 case "(($ac_try" in
20790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791   *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794   (eval "$ac_link") 2>conftest.er1
20795   ac_status=$?
20796   grep -v '^ *+' conftest.er1 >conftest.err
20797   rm -f conftest.er1
20798   cat conftest.err >&5
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); } && {
20801          test -z "$ac_c_werror_flag" ||
20802          test ! -s conftest.err
20803        } && test -s conftest$ac_exeext &&
20804        $as_test_x conftest$ac_exeext; then
20805   eval "$as_ac_var=yes"
20806 else
20807   echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810         eval "$as_ac_var=no"
20811 fi
20812
20813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20814       conftest$ac_exeext conftest.$ac_ext
20815 fi
20816 ac_res=`eval echo '${'$as_ac_var'}'`
20817                { echo "$as_me:$LINENO: result: $ac_res" >&5
20818 echo "${ECHO_T}$ac_res" >&6; }
20819 if test `eval echo '${'$as_ac_var'}'` = yes; then
20820   cat >>confdefs.h <<_ACEOF
20821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20822 _ACEOF
20823
20824 fi
20825 done
20826
20827 # Check whether --enable-largefile was given.
20828 if test "${enable_largefile+set}" = set; then
20829   enableval=$enable_largefile;
20830 fi
20831
20832 if test "$enable_largefile" != no; then
20833
20834   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
20835 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
20836 if test "${ac_cv_sys_largefile_CC+set}" = set; then
20837   echo $ECHO_N "(cached) $ECHO_C" >&6
20838 else
20839   ac_cv_sys_largefile_CC=no
20840      if test "$GCC" != yes; then
20841        ac_save_CC=$CC
20842        while :; do
20843          # IRIX 6.2 and later do not support large files by default,
20844          # so use the C compiler's -n32 option if that helps.
20845          cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h.  */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h.  */
20851 #include <sys/types.h>
20852  /* Check that off_t can represent 2**63 - 1 correctly.
20853     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20854     since some C++ compilers masquerading as C compilers
20855     incorrectly reject 9223372036854775807.  */
20856 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20857   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20858                        && LARGE_OFF_T % 2147483647 == 1)
20859                       ? 1 : -1];
20860 int
20861 main ()
20862 {
20863
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868          rm -f conftest.$ac_objext
20869 if { (ac_try="$ac_compile"
20870 case "(($ac_try" in
20871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872   *) ac_try_echo=$ac_try;;
20873 esac
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875   (eval "$ac_compile") 2>conftest.er1
20876   ac_status=$?
20877   grep -v '^ *+' conftest.er1 >conftest.err
20878   rm -f conftest.er1
20879   cat conftest.err >&5
20880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881   (exit $ac_status); } && {
20882          test -z "$ac_c_werror_flag" ||
20883          test ! -s conftest.err
20884        } && test -s conftest.$ac_objext; then
20885   break
20886 else
20887   echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20889
20890
20891 fi
20892
20893 rm -f core conftest.err conftest.$ac_objext
20894          CC="$CC -n32"
20895          rm -f conftest.$ac_objext
20896 if { (ac_try="$ac_compile"
20897 case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_compile") 2>conftest.er1
20903   ac_status=$?
20904   grep -v '^ *+' conftest.er1 >conftest.err
20905   rm -f conftest.er1
20906   cat conftest.err >&5
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); } && {
20909          test -z "$ac_c_werror_flag" ||
20910          test ! -s conftest.err
20911        } && test -s conftest.$ac_objext; then
20912   ac_cv_sys_largefile_CC=' -n32'; break
20913 else
20914   echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20916
20917
20918 fi
20919
20920 rm -f core conftest.err conftest.$ac_objext
20921          break
20922        done
20923        CC=$ac_save_CC
20924        rm -f conftest.$ac_ext
20925     fi
20926 fi
20927 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
20928 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
20929   if test "$ac_cv_sys_largefile_CC" != no; then
20930     CC=$CC$ac_cv_sys_largefile_CC
20931   fi
20932
20933   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20934 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
20935 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20936   echo $ECHO_N "(cached) $ECHO_C" >&6
20937 else
20938   while :; do
20939   cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h.  */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h.  */
20945 #include <sys/types.h>
20946  /* Check that off_t can represent 2**63 - 1 correctly.
20947     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20948     since some C++ compilers masquerading as C compilers
20949     incorrectly reject 9223372036854775807.  */
20950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
20951   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20952                        && LARGE_OFF_T % 2147483647 == 1)
20953                       ? 1 : -1];
20954 int
20955 main ()
20956 {
20957
20958   ;
20959   return 0;
20960 }
20961 _ACEOF
20962 rm -f conftest.$ac_objext
20963 if { (ac_try="$ac_compile"
20964 case "(($ac_try" in
20965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966   *) ac_try_echo=$ac_try;;
20967 esac
20968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969   (eval "$ac_compile") 2>conftest.er1
20970   ac_status=$?
20971   grep -v '^ *+' conftest.er1 >conftest.err
20972   rm -f conftest.er1
20973   cat conftest.err >&5
20974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975   (exit $ac_status); } && {
20976          test -z "$ac_c_werror_flag" ||
20977          test ! -s conftest.err
20978        } && test -s conftest.$ac_objext; then
20979   ac_cv_sys_file_offset_bits=no; break
20980 else
20981   echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20983
20984
20985 fi
20986
20987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20988   cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h.  */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h.  */
20994 #define _FILE_OFFSET_BITS 64
20995 #include <sys/types.h>
20996  /* Check that off_t can represent 2**63 - 1 correctly.
20997     We can't simply define LARGE_OFF_T to be 9223372036854775807,
20998     since some C++ compilers masquerading as C compilers
20999     incorrectly reject 9223372036854775807.  */
21000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21001   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21002                        && LARGE_OFF_T % 2147483647 == 1)
21003                       ? 1 : -1];
21004 int
21005 main ()
21006 {
21007
21008   ;
21009   return 0;
21010 }
21011 _ACEOF
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016   *) ac_try_echo=$ac_try;;
21017 esac
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019   (eval "$ac_compile") 2>conftest.er1
21020   ac_status=$?
21021   grep -v '^ *+' conftest.er1 >conftest.err
21022   rm -f conftest.er1
21023   cat conftest.err >&5
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); } && {
21026          test -z "$ac_c_werror_flag" ||
21027          test ! -s conftest.err
21028        } && test -s conftest.$ac_objext; then
21029   ac_cv_sys_file_offset_bits=64; break
21030 else
21031   echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21033
21034
21035 fi
21036
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038   ac_cv_sys_file_offset_bits=unknown
21039   break
21040 done
21041 fi
21042 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21043 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
21044 case $ac_cv_sys_file_offset_bits in #(
21045   no | unknown) ;;
21046   *)
21047 cat >>confdefs.h <<_ACEOF
21048 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21049 _ACEOF
21050 ;;
21051 esac
21052 rm -f conftest*
21053   if test $ac_cv_sys_file_offset_bits = unknown; then
21054     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21055 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
21056 if test "${ac_cv_sys_large_files+set}" = set; then
21057   echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059   while :; do
21060   cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h.  */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h.  */
21066 #include <sys/types.h>
21067  /* Check that off_t can represent 2**63 - 1 correctly.
21068     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21069     since some C++ compilers masquerading as C compilers
21070     incorrectly reject 9223372036854775807.  */
21071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21072   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21073                        && LARGE_OFF_T % 2147483647 == 1)
21074                       ? 1 : -1];
21075 int
21076 main ()
21077 {
21078
21079   ;
21080   return 0;
21081 }
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087   *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090   (eval "$ac_compile") 2>conftest.er1
21091   ac_status=$?
21092   grep -v '^ *+' conftest.er1 >conftest.err
21093   rm -f conftest.er1
21094   cat conftest.err >&5
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); } && {
21097          test -z "$ac_c_werror_flag" ||
21098          test ! -s conftest.err
21099        } && test -s conftest.$ac_objext; then
21100   ac_cv_sys_large_files=no; break
21101 else
21102   echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105
21106 fi
21107
21108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21109   cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h.  */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h.  */
21115 #define _LARGE_FILES 1
21116 #include <sys/types.h>
21117  /* Check that off_t can represent 2**63 - 1 correctly.
21118     We can't simply define LARGE_OFF_T to be 9223372036854775807,
21119     since some C++ compilers masquerading as C compilers
21120     incorrectly reject 9223372036854775807.  */
21121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
21122   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21123                        && LARGE_OFF_T % 2147483647 == 1)
21124                       ? 1 : -1];
21125 int
21126 main ()
21127 {
21128
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext
21134 if { (ac_try="$ac_compile"
21135 case "(($ac_try" in
21136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137   *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140   (eval "$ac_compile") 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } && {
21147          test -z "$ac_c_werror_flag" ||
21148          test ! -s conftest.err
21149        } && test -s conftest.$ac_objext; then
21150   ac_cv_sys_large_files=1; break
21151 else
21152   echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155
21156 fi
21157
21158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21159   ac_cv_sys_large_files=unknown
21160   break
21161 done
21162 fi
21163 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21164 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
21165 case $ac_cv_sys_large_files in #(
21166   no | unknown) ;;
21167   *)
21168 cat >>confdefs.h <<_ACEOF
21169 #define _LARGE_FILES $ac_cv_sys_large_files
21170 _ACEOF
21171 ;;
21172 esac
21173 rm -f conftest*
21174   fi
21175 fi
21176
21177 { echo "$as_me:$LINENO: checking for off_t" >&5
21178 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21179 if test "${ac_cv_type_off_t+set}" = set; then
21180   echo $ECHO_N "(cached) $ECHO_C" >&6
21181 else
21182   cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188 $ac_includes_default
21189 typedef off_t ac__type_new_;
21190 int
21191 main ()
21192 {
21193 if ((ac__type_new_ *) 0)
21194   return 0;
21195 if (sizeof (ac__type_new_))
21196   return 0;
21197   ;
21198   return 0;
21199 }
21200 _ACEOF
21201 rm -f conftest.$ac_objext
21202 if { (ac_try="$ac_compile"
21203 case "(($ac_try" in
21204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21205   *) ac_try_echo=$ac_try;;
21206 esac
21207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21208   (eval "$ac_compile") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest.$ac_objext; then
21218   ac_cv_type_off_t=yes
21219 else
21220   echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223         ac_cv_type_off_t=no
21224 fi
21225
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 fi
21228 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21229 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21230 if test $ac_cv_type_off_t = yes; then
21231   :
21232 else
21233
21234 cat >>confdefs.h <<_ACEOF
21235 #define off_t long int
21236 _ACEOF
21237
21238 fi
21239
21240 { echo "$as_me:$LINENO: checking for size_t" >&5
21241 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21242 if test "${ac_cv_type_size_t+set}" = set; then
21243   echo $ECHO_N "(cached) $ECHO_C" >&6
21244 else
21245   cat >conftest.$ac_ext <<_ACEOF
21246 /* confdefs.h.  */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h.  */
21251 $ac_includes_default
21252 typedef size_t ac__type_new_;
21253 int
21254 main ()
21255 {
21256 if ((ac__type_new_ *) 0)
21257   return 0;
21258 if (sizeof (ac__type_new_))
21259   return 0;
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 rm -f conftest.$ac_objext
21265 if { (ac_try="$ac_compile"
21266 case "(($ac_try" in
21267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268   *) ac_try_echo=$ac_try;;
21269 esac
21270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21271   (eval "$ac_compile") 2>conftest.er1
21272   ac_status=$?
21273   grep -v '^ *+' conftest.er1 >conftest.err
21274   rm -f conftest.er1
21275   cat conftest.err >&5
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); } && {
21278          test -z "$ac_c_werror_flag" ||
21279          test ! -s conftest.err
21280        } && test -s conftest.$ac_objext; then
21281   ac_cv_type_size_t=yes
21282 else
21283   echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286         ac_cv_type_size_t=no
21287 fi
21288
21289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21290 fi
21291 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21292 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21293 if test $ac_cv_type_size_t = yes; then
21294   :
21295 else
21296
21297 cat >>confdefs.h <<_ACEOF
21298 #define size_t unsigned int
21299 _ACEOF
21300
21301 fi
21302
21303 { echo "$as_me:$LINENO: checking for off_t" >&5
21304 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21305 if test "${ac_cv_type_off_t+set}" = set; then
21306   echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 $ac_includes_default
21315 typedef off_t ac__type_new_;
21316 int
21317 main ()
21318 {
21319 if ((ac__type_new_ *) 0)
21320   return 0;
21321 if (sizeof (ac__type_new_))
21322   return 0;
21323   ;
21324   return 0;
21325 }
21326 _ACEOF
21327 rm -f conftest.$ac_objext
21328 if { (ac_try="$ac_compile"
21329 case "(($ac_try" in
21330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331   *) ac_try_echo=$ac_try;;
21332 esac
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334   (eval "$ac_compile") 2>conftest.er1
21335   ac_status=$?
21336   grep -v '^ *+' conftest.er1 >conftest.err
21337   rm -f conftest.er1
21338   cat conftest.err >&5
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); } && {
21341          test -z "$ac_c_werror_flag" ||
21342          test ! -s conftest.err
21343        } && test -s conftest.$ac_objext; then
21344   ac_cv_type_off_t=yes
21345 else
21346   echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349         ac_cv_type_off_t=no
21350 fi
21351
21352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21353 fi
21354 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21355 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21356
21357 # The cast to long int works around a bug in the HP C Compiler
21358 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21359 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21360 # This bug is HP SR number 8606223364.
21361 { echo "$as_me:$LINENO: checking size of off_t" >&5
21362 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
21363 if test "${ac_cv_sizeof_off_t+set}" = set; then
21364   echo $ECHO_N "(cached) $ECHO_C" >&6
21365 else
21366   if test "$cross_compiling" = yes; then
21367   # Depending upon the size, compute the lo and hi bounds.
21368 cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374 $ac_includes_default
21375    typedef off_t ac__type_sizeof_;
21376 int
21377 main ()
21378 {
21379 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21380 test_array [0] = 0
21381
21382   ;
21383   return 0;
21384 }
21385 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (ac_try="$ac_compile"
21388 case "(($ac_try" in
21389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21390   *) ac_try_echo=$ac_try;;
21391 esac
21392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21393   (eval "$ac_compile") 2>conftest.er1
21394   ac_status=$?
21395   grep -v '^ *+' conftest.er1 >conftest.err
21396   rm -f conftest.er1
21397   cat conftest.err >&5
21398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399   (exit $ac_status); } && {
21400          test -z "$ac_c_werror_flag" ||
21401          test ! -s conftest.err
21402        } && test -s conftest.$ac_objext; then
21403   ac_lo=0 ac_mid=0
21404   while :; do
21405     cat >conftest.$ac_ext <<_ACEOF
21406 /* confdefs.h.  */
21407 _ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h.  */
21411 $ac_includes_default
21412    typedef off_t ac__type_sizeof_;
21413 int
21414 main ()
21415 {
21416 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21417 test_array [0] = 0
21418
21419   ;
21420   return 0;
21421 }
21422 _ACEOF
21423 rm -f conftest.$ac_objext
21424 if { (ac_try="$ac_compile"
21425 case "(($ac_try" in
21426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427   *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430   (eval "$ac_compile") 2>conftest.er1
21431   ac_status=$?
21432   grep -v '^ *+' conftest.er1 >conftest.err
21433   rm -f conftest.er1
21434   cat conftest.err >&5
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); } && {
21437          test -z "$ac_c_werror_flag" ||
21438          test ! -s conftest.err
21439        } && test -s conftest.$ac_objext; then
21440   ac_hi=$ac_mid; break
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445         ac_lo=`expr $ac_mid + 1`
21446                         if test $ac_lo -le $ac_mid; then
21447                           ac_lo= ac_hi=
21448                           break
21449                         fi
21450                         ac_mid=`expr 2 '*' $ac_mid + 1`
21451 fi
21452
21453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21454   done
21455 else
21456   echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459         cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465 $ac_includes_default
21466    typedef off_t ac__type_sizeof_;
21467 int
21468 main ()
21469 {
21470 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21471 test_array [0] = 0
21472
21473   ;
21474   return 0;
21475 }
21476 _ACEOF
21477 rm -f conftest.$ac_objext
21478 if { (ac_try="$ac_compile"
21479 case "(($ac_try" in
21480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21481   *) ac_try_echo=$ac_try;;
21482 esac
21483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21484   (eval "$ac_compile") 2>conftest.er1
21485   ac_status=$?
21486   grep -v '^ *+' conftest.er1 >conftest.err
21487   rm -f conftest.er1
21488   cat conftest.err >&5
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); } && {
21491          test -z "$ac_c_werror_flag" ||
21492          test ! -s conftest.err
21493        } && test -s conftest.$ac_objext; then
21494   ac_hi=-1 ac_mid=-1
21495   while :; do
21496     cat >conftest.$ac_ext <<_ACEOF
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502 $ac_includes_default
21503    typedef off_t ac__type_sizeof_;
21504 int
21505 main ()
21506 {
21507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21508 test_array [0] = 0
21509
21510   ;
21511   return 0;
21512 }
21513 _ACEOF
21514 rm -f conftest.$ac_objext
21515 if { (ac_try="$ac_compile"
21516 case "(($ac_try" in
21517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518   *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521   (eval "$ac_compile") 2>conftest.er1
21522   ac_status=$?
21523   grep -v '^ *+' conftest.er1 >conftest.err
21524   rm -f conftest.er1
21525   cat conftest.err >&5
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && {
21528          test -z "$ac_c_werror_flag" ||
21529          test ! -s conftest.err
21530        } && test -s conftest.$ac_objext; then
21531   ac_lo=$ac_mid; break
21532 else
21533   echo "$as_me: failed program was:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21535
21536         ac_hi=`expr '(' $ac_mid ')' - 1`
21537                         if test $ac_mid -le $ac_hi; then
21538                           ac_lo= ac_hi=
21539                           break
21540                         fi
21541                         ac_mid=`expr 2 '*' $ac_mid`
21542 fi
21543
21544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21545   done
21546 else
21547   echo "$as_me: failed program was:" >&5
21548 sed 's/^/| /' conftest.$ac_ext >&5
21549
21550         ac_lo= ac_hi=
21551 fi
21552
21553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21554 fi
21555
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 # Binary search between lo and hi bounds.
21558 while test "x$ac_lo" != "x$ac_hi"; do
21559   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21560   cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h.  */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h.  */
21566 $ac_includes_default
21567    typedef off_t ac__type_sizeof_;
21568 int
21569 main ()
21570 {
21571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21572 test_array [0] = 0
21573
21574   ;
21575   return 0;
21576 }
21577 _ACEOF
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582   *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585   (eval "$ac_compile") 2>conftest.er1
21586   ac_status=$?
21587   grep -v '^ *+' conftest.er1 >conftest.err
21588   rm -f conftest.er1
21589   cat conftest.err >&5
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); } && {
21592          test -z "$ac_c_werror_flag" ||
21593          test ! -s conftest.err
21594        } && test -s conftest.$ac_objext; then
21595   ac_hi=$ac_mid
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600         ac_lo=`expr '(' $ac_mid ')' + 1`
21601 fi
21602
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 done
21605 case $ac_lo in
21606 ?*) ac_cv_sizeof_off_t=$ac_lo;;
21607 '') if test "$ac_cv_type_off_t" = yes; then
21608      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
21609 See \`config.log' for more details." >&5
21610 echo "$as_me: error: cannot compute sizeof (off_t)
21611 See \`config.log' for more details." >&2;}
21612    { (exit 77); exit 77; }; }
21613    else
21614      ac_cv_sizeof_off_t=0
21615    fi ;;
21616 esac
21617 else
21618   cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 $ac_includes_default
21625    typedef off_t ac__type_sizeof_;
21626 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21627 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21628 #include <stdio.h>
21629 #include <stdlib.h>
21630 int
21631 main ()
21632 {
21633
21634   FILE *f = fopen ("conftest.val", "w");
21635   if (! f)
21636     return 1;
21637   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21638     {
21639       long int i = longval ();
21640       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21641         return 1;
21642       fprintf (f, "%ld\n", i);
21643     }
21644   else
21645     {
21646       unsigned long int i = ulongval ();
21647       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21648         return 1;
21649       fprintf (f, "%lu\n", i);
21650     }
21651   return ferror (f) || fclose (f) != 0;
21652
21653   ;
21654   return 0;
21655 }
21656 _ACEOF
21657 rm -f conftest$ac_exeext
21658 if { (ac_try="$ac_link"
21659 case "(($ac_try" in
21660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661   *) ac_try_echo=$ac_try;;
21662 esac
21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21664   (eval "$ac_link") 2>&5
21665   ac_status=$?
21666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21667   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21668   { (case "(($ac_try" in
21669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670   *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673   (eval "$ac_try") 2>&5
21674   ac_status=$?
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); }; }; then
21677   ac_cv_sizeof_off_t=`cat conftest.val`
21678 else
21679   echo "$as_me: program exited with status $ac_status" >&5
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21682
21683 ( exit $ac_status )
21684 if test "$ac_cv_type_off_t" = yes; then
21685      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
21686 See \`config.log' for more details." >&5
21687 echo "$as_me: error: cannot compute sizeof (off_t)
21688 See \`config.log' for more details." >&2;}
21689    { (exit 77); exit 77; }; }
21690    else
21691      ac_cv_sizeof_off_t=0
21692    fi
21693 fi
21694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21695 fi
21696 rm -f conftest.val
21697 fi
21698 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
21699 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
21700
21701
21702
21703 cat >>confdefs.h <<_ACEOF
21704 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21705 _ACEOF
21706
21707
21708
21709 # will deprecated
21710
21711 # Check whether --with-sennahome was given.
21712 if test "${with_sennahome+set}" = set; then
21713   withval=$with_sennahome; SENNA_HOME="$withval"
21714 else
21715   SENNA_HOME="/var/senna"
21716 fi
21717
21718
21719 cat >>confdefs.h <<_ACEOF
21720 #define SENNA_HOME "$SENNA_HOME"
21721 _ACEOF
21722
21723
21724 # log directory
21725
21726 # Check whether --with-log was given.
21727 if test "${with_log+set}" = set; then
21728   withval=$with_log; SENNA_LOG_PATH="$withval"
21729 else
21730   SENNA_LOG_PATH="$SENNA_HOME/log/senna.log"
21731 fi
21732
21733
21734 cat >>confdefs.h <<_ACEOF
21735 #define SENNA_LOG_PATH "$SENNA_LOG_PATH"
21736 _ACEOF
21737
21738
21739 # default encoding
21740
21741 # Check whether --with-encoding was given.
21742 if test "${with_encoding+set}" = set; then
21743   withval=$with_encoding; SENNA_DEFAULT_ENCODING="$withval"
21744 else
21745   SENNA_DEFAULT_ENCODING="euc_jp"
21746 fi
21747
21748
21749 cat >>confdefs.h <<_ACEOF
21750 #define SENNA_DEFAULT_ENCODING "$SENNA_DEFAULT_ENCODING"
21751 _ACEOF
21752
21753
21754 # default initial_n_segments
21755
21756 # Check whether --with-initial_n_segments was given.
21757 if test "${with_initial_n_segments+set}" = set; then
21758   withval=$with_initial_n_segments; SENNA_DEFAULT_INITIAL_N_SEGMENTS="$withval"
21759 else
21760   SENNA_DEFAULT_INITIAL_N_SEGMENTS="512"
21761 fi
21762
21763
21764 cat >>confdefs.h <<_ACEOF
21765 #define SENNA_DEFAULT_INITIAL_N_SEGMENTS $SENNA_DEFAULT_INITIAL_N_SEGMENTS
21766 _ACEOF
21767
21768
21769 # default query escalation threshold
21770
21771 # Check whether --with-query_escalation_threshold was given.
21772 if test "${with_query_escalation_threshold+set}" = set; then
21773   withval=$with_query_escalation_threshold; SENNA_DEFAULT_QUERY_ESCALATION_THRESHOLD="$withval"
21774 else
21775   SENNA_DEFAULT_QUERY_ESCALATION_THRESHOLD="0"
21776 fi
21777
21778
21779 cat >>confdefs.h <<_ACEOF
21780 #define SENNA_DEFAULT_QUERY_ESCALATION_THRESHOLD $SENNA_DEFAULT_QUERY_ESCALATION_THRESHOLD
21781 _ACEOF
21782
21783
21784 { echo "$as_me:$LINENO: checking for log in -lm" >&5
21785 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6; }
21786 if test "${ac_cv_lib_m_log+set}" = set; then
21787   echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789   ac_check_lib_save_LIBS=$LIBS
21790 LIBS="-lm  $LIBS"
21791 cat >conftest.$ac_ext <<_ACEOF
21792 /* confdefs.h.  */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h.  */
21797
21798 /* Override any GCC internal prototype to avoid an error.
21799    Use char because int might match the return type of a GCC
21800    builtin and then its argument prototype would still apply.  */
21801 #ifdef __cplusplus
21802 extern "C"
21803 #endif
21804 char log ();
21805 int
21806 main ()
21807 {
21808 return log ();
21809   ;
21810   return 0;
21811 }
21812 _ACEOF
21813 rm -f conftest.$ac_objext conftest$ac_exeext
21814 if { (ac_try="$ac_link"
21815 case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820   (eval "$ac_link") 2>conftest.er1
21821   ac_status=$?
21822   grep -v '^ *+' conftest.er1 >conftest.err
21823   rm -f conftest.er1
21824   cat conftest.err >&5
21825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826   (exit $ac_status); } && {
21827          test -z "$ac_c_werror_flag" ||
21828          test ! -s conftest.err
21829        } && test -s conftest$ac_exeext &&
21830        $as_test_x conftest$ac_exeext; then
21831   ac_cv_lib_m_log=yes
21832 else
21833   echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21835
21836         ac_cv_lib_m_log=no
21837 fi
21838
21839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21840       conftest$ac_exeext conftest.$ac_ext
21841 LIBS=$ac_check_lib_save_LIBS
21842 fi
21843 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
21844 echo "${ECHO_T}$ac_cv_lib_m_log" >&6; }
21845 if test $ac_cv_lib_m_log = yes; then
21846   M_LIBS="-lm"
21847 else
21848   { { echo "$as_me:$LINENO: error: \"No libm found\"" >&5
21849 echo "$as_me: error: \"No libm found\"" >&2;}
21850    { (exit 1); exit 1; }; }
21851 fi
21852
21853 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
21854 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
21855 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
21856   echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858   ac_check_lib_save_LIBS=$LIBS
21859 LIBS="-lpthread  $LIBS"
21860 cat >conftest.$ac_ext <<_ACEOF
21861 /* confdefs.h.  */
21862 _ACEOF
21863 cat confdefs.h >>conftest.$ac_ext
21864 cat >>conftest.$ac_ext <<_ACEOF
21865 /* end confdefs.h.  */
21866
21867 /* Override any GCC internal prototype to avoid an error.
21868    Use char because int might match the return type of a GCC
21869    builtin and then its argument prototype would still apply.  */
21870 #ifdef __cplusplus
21871 extern "C"
21872 #endif
21873 char pthread_mutex_init ();
21874 int
21875 main ()
21876 {
21877 return pthread_mutex_init ();
21878   ;
21879   return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest.$ac_objext 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>conftest.er1
21890   ac_status=$?
21891   grep -v '^ *+' conftest.er1 >conftest.err
21892   rm -f conftest.er1
21893   cat conftest.err >&5
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); } && {
21896          test -z "$ac_c_werror_flag" ||
21897          test ! -s conftest.err
21898        } && test -s conftest$ac_exeext &&
21899        $as_test_x conftest$ac_exeext; then
21900   ac_cv_lib_pthread_pthread_mutex_init=yes
21901 else
21902   echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21904
21905         ac_cv_lib_pthread_pthread_mutex_init=no
21906 fi
21907
21908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21909       conftest$ac_exeext conftest.$ac_ext
21910 LIBS=$ac_check_lib_save_LIBS
21911 fi
21912 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
21913 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
21914 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
21915   PTHREAD_LIBS="-lpthread"
21916 else
21917   { { echo "$as_me:$LINENO: error: \"No libpthread found\"" >&5
21918 echo "$as_me: error: \"No libpthread found\"" >&2;}
21919    { (exit 1); exit 1; }; }
21920 fi
21921
21922
21923 # aio
21924 # Check whether --enable-aio was given.
21925 if test "${enable_aio+set}" = set; then
21926   enableval=$enable_aio;
21927 else
21928   enable_aio="no"
21929 fi
21930
21931 if test "x$enable_aio" != "xno"; then
21932
21933 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
21934 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
21935 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
21936   echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938   ac_check_lib_save_LIBS=$LIBS
21939 LIBS="-lrt  $LIBS"
21940 cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946
21947 /* Override any GCC internal prototype to avoid an error.
21948    Use char because int might match the return type of a GCC
21949    builtin and then its argument prototype would still apply.  */
21950 #ifdef __cplusplus
21951 extern "C"
21952 #endif
21953 char nanosleep ();
21954 int
21955 main ()
21956 {
21957 return nanosleep ();
21958   ;
21959   return 0;
21960 }
21961 _ACEOF
21962 rm -f conftest.$ac_objext conftest$ac_exeext
21963 if { (ac_try="$ac_link"
21964 case "(($ac_try" in
21965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21966   *) ac_try_echo=$ac_try;;
21967 esac
21968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21969   (eval "$ac_link") 2>conftest.er1
21970   ac_status=$?
21971   grep -v '^ *+' conftest.er1 >conftest.err
21972   rm -f conftest.er1
21973   cat conftest.err >&5
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); } && {
21976          test -z "$ac_c_werror_flag" ||
21977          test ! -s conftest.err
21978        } && test -s conftest$ac_exeext &&
21979        $as_test_x conftest$ac_exeext; then
21980   ac_cv_lib_rt_nanosleep=yes
21981 else
21982   echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985         ac_cv_lib_rt_nanosleep=no
21986 fi
21987
21988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21989       conftest$ac_exeext conftest.$ac_ext
21990 LIBS=$ac_check_lib_save_LIBS
21991 fi
21992 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
21993 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
21994 if test $ac_cv_lib_rt_nanosleep = yes; then
21995   cat >>confdefs.h <<_ACEOF
21996 #define HAVE_LIBRT 1
21997 _ACEOF
21998
21999   LIBS="-lrt $LIBS"
22000
22001 else
22002   { { echo "$as_me:$LINENO: error: \"No librt found\"" >&5
22003 echo "$as_me: error: \"No librt found\"" >&2;}
22004    { (exit 1); exit 1; }; }
22005 fi
22006
22007
22008 cat >>confdefs.h <<\_ACEOF
22009 #define USE_AIO 1
22010 _ACEOF
22011
22012 fi
22013
22014 # nfkc
22015 # Check whether --enable-nfkc was given.
22016 if test "${enable_nfkc+set}" = set; then
22017   enableval=$enable_nfkc;
22018 else
22019   enable_nfkc="yes"
22020 fi
22021
22022 if test "x$enable_nfkc" != "xyes"; then
22023
22024 cat >>confdefs.h <<\_ACEOF
22025 #define NO_NFKC 1
22026 _ACEOF
22027
22028 fi
22029
22030 # gcov
22031 # Check whether --enable-gcov was given.
22032 if test "${enable_gcov+set}" = set; then
22033   enableval=$enable_gcov;
22034 else
22035   enable_gcov="no"
22036 fi
22037
22038 if test "x$enable_gcov" = "xno"; then
22039         OPT_CFLAGS=""
22040 else
22041         OPT_CFLAGS="-O0"
22042   GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
22043
22044 { echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
22045 echo $ECHO_N "checking for __gcov_init in -lgcov... $ECHO_C" >&6; }
22046 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
22047   echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22049   ac_check_lib_save_LIBS=$LIBS
22050 LIBS="-lgcov  $LIBS"
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h.  */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h.  */
22057
22058 /* Override any GCC internal prototype to avoid an error.
22059    Use char because int might match the return type of a GCC
22060    builtin and then its argument prototype would still apply.  */
22061 #ifdef __cplusplus
22062 extern "C"
22063 #endif
22064 char __gcov_init ();
22065 int
22066 main ()
22067 {
22068 return __gcov_init ();
22069   ;
22070   return 0;
22071 }
22072 _ACEOF
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (ac_try="$ac_link"
22075 case "(($ac_try" in
22076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077   *) ac_try_echo=$ac_try;;
22078 esac
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080   (eval "$ac_link") 2>conftest.er1
22081   ac_status=$?
22082   grep -v '^ *+' conftest.er1 >conftest.err
22083   rm -f conftest.er1
22084   cat conftest.err >&5
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } && {
22087          test -z "$ac_c_werror_flag" ||
22088          test ! -s conftest.err
22089        } && test -s conftest$ac_exeext &&
22090        $as_test_x conftest$ac_exeext; then
22091   ac_cv_lib_gcov___gcov_init=yes
22092 else
22093   echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22095
22096         ac_cv_lib_gcov___gcov_init=no
22097 fi
22098
22099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22100       conftest$ac_exeext conftest.$ac_ext
22101 LIBS=$ac_check_lib_save_LIBS
22102 fi
22103 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
22104 echo "${ECHO_T}$ac_cv_lib_gcov___gcov_init" >&6; }
22105 if test $ac_cv_lib_gcov___gcov_init = yes; then
22106   cat >>confdefs.h <<_ACEOF
22107 #define HAVE_LIBGCOV 1
22108 _ACEOF
22109
22110   LIBS="-lgcov $LIBS"
22111
22112 else
22113   { { echo "$as_me:$LINENO: error: \"No libgcov found\"" >&5
22114 echo "$as_me: error: \"No libgcov found\"" >&2;}
22115    { (exit 1); exit 1; }; }
22116 fi
22117
22118   GCOV_LIBS="-lgcov"
22119
22120
22121   # Extract the first word of "lcov", so it can be a program name with args.
22122 set dummy lcov; ac_word=$2
22123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22125 if test "${ac_cv_path_LCOV+set}" = set; then
22126   echo $ECHO_N "(cached) $ECHO_C" >&6
22127 else
22128   case $LCOV in
22129   [\\/]* | ?:[\\/]*)
22130   ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
22131   ;;
22132   *)
22133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134 for as_dir in $PATH
22135 do
22136   IFS=$as_save_IFS
22137   test -z "$as_dir" && as_dir=.
22138   for ac_exec_ext in '' $ac_executable_extensions; do
22139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22140     ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
22141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22142     break 2
22143   fi
22144 done
22145 done
22146 IFS=$as_save_IFS
22147
22148   test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
22149   ;;
22150 esac
22151 fi
22152 LCOV=$ac_cv_path_LCOV
22153 if test -n "$LCOV"; then
22154   { echo "$as_me:$LINENO: result: $LCOV" >&5
22155 echo "${ECHO_T}$LCOV" >&6; }
22156 else
22157   { echo "$as_me:$LINENO: result: no" >&5
22158 echo "${ECHO_T}no" >&6; }
22159 fi
22160
22161
22162   if test "x$LCOV" = "xno"; then
22163     { { echo "$as_me:$LINENO: error: lcov is missing." >&5
22164 echo "$as_me: error: lcov is missing." >&2;}
22165    { (exit 1); exit 1; }; }
22166   fi
22167
22168   # Extract the first word of "genhtml", so it can be a program name with args.
22169 set dummy genhtml; ac_word=$2
22170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22172 if test "${ac_cv_path_GENHTML+set}" = set; then
22173   echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175   case $GENHTML in
22176   [\\/]* | ?:[\\/]*)
22177   ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
22178   ;;
22179   *)
22180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22181 for as_dir in $PATH
22182 do
22183   IFS=$as_save_IFS
22184   test -z "$as_dir" && as_dir=.
22185   for ac_exec_ext in '' $ac_executable_extensions; do
22186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22187     ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
22188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22189     break 2
22190   fi
22191 done
22192 done
22193 IFS=$as_save_IFS
22194
22195   test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
22196   ;;
22197 esac
22198 fi
22199 GENHTML=$ac_cv_path_GENHTML
22200 if test -n "$GENHTML"; then
22201   { echo "$as_me:$LINENO: result: $GENHTML" >&5
22202 echo "${ECHO_T}$GENHTML" >&6; }
22203 else
22204   { echo "$as_me:$LINENO: result: no" >&5
22205 echo "${ECHO_T}no" >&6; }
22206 fi
22207
22208
22209   if test "x$GENHTML" = "xno"; then
22210     { { echo "$as_me:$LINENO: error: genhtml is missing." >&5
22211 echo "$as_me: error: genhtml is missing." >&2;}
22212    { (exit 1); exit 1; }; }
22213   fi
22214
22215
22216
22217 fi
22218
22219
22220 if test "x$enable_gcov" = "xyes"; then
22221   GCOV_ENABLED_TRUE=
22222   GCOV_ENABLED_FALSE='#'
22223 else
22224   GCOV_ENABLED_TRUE='#'
22225   GCOV_ENABLED_FALSE=
22226 fi
22227
22228
22229 # failmalloc
22230 # Check whether --enable-fmalloc was given.
22231 if test "${enable_fmalloc+set}" = set; then
22232   enableval=$enable_fmalloc;
22233 else
22234   enable_fail_malloc="no"
22235 fi
22236
22237 if test "x$enable_fail_malloc" != "xno"; then
22238
22239 cat >>confdefs.h <<\_ACEOF
22240 #define USE_FAIL_MALLOC 1
22241 _ACEOF
22242
22243 fi
22244
22245 # libmyisenna
22246
22247 # Check whether --with-mysqlsrc was given.
22248 if test "${with_mysqlsrc+set}" = set; then
22249   withval=$with_mysqlsrc; MYSQL_SRCDIR="$withval"
22250 fi
22251
22252
22253
22254 # epoll/poll/select check
22255 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
22256   { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
22257 echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
22258 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
22259   echo $ECHO_N "(cached) $ECHO_C" >&6
22260 fi
22261 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
22262 echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
22263 else
22264   # Is the header compilable?
22265 { echo "$as_me:$LINENO: checking sys/epoll.h usability" >&5
22266 echo $ECHO_N "checking sys/epoll.h usability... $ECHO_C" >&6; }
22267 cat >conftest.$ac_ext <<_ACEOF
22268 /* confdefs.h.  */
22269 _ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h.  */
22273 $ac_includes_default
22274 #include <sys/epoll.h>
22275 _ACEOF
22276 rm -f conftest.$ac_objext
22277 if { (ac_try="$ac_compile"
22278 case "(($ac_try" in
22279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280   *) ac_try_echo=$ac_try;;
22281 esac
22282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283   (eval "$ac_compile") 2>conftest.er1
22284   ac_status=$?
22285   grep -v '^ *+' conftest.er1 >conftest.err
22286   rm -f conftest.er1
22287   cat conftest.err >&5
22288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289   (exit $ac_status); } && {
22290          test -z "$ac_c_werror_flag" ||
22291          test ! -s conftest.err
22292        } && test -s conftest.$ac_objext; then
22293   ac_header_compiler=yes
22294 else
22295   echo "$as_me: failed program was:" >&5
22296 sed 's/^/| /' conftest.$ac_ext >&5
22297
22298         ac_header_compiler=no
22299 fi
22300
22301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22303 echo "${ECHO_T}$ac_header_compiler" >&6; }
22304
22305 # Is the header present?
22306 { echo "$as_me:$LINENO: checking sys/epoll.h presence" >&5
22307 echo $ECHO_N "checking sys/epoll.h presence... $ECHO_C" >&6; }
22308 cat >conftest.$ac_ext <<_ACEOF
22309 /* confdefs.h.  */
22310 _ACEOF
22311 cat confdefs.h >>conftest.$ac_ext
22312 cat >>conftest.$ac_ext <<_ACEOF
22313 /* end confdefs.h.  */
22314 #include <sys/epoll.h>
22315 _ACEOF
22316 if { (ac_try="$ac_cpp conftest.$ac_ext"
22317 case "(($ac_try" in
22318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319   *) ac_try_echo=$ac_try;;
22320 esac
22321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22322   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22323   ac_status=$?
22324   grep -v '^ *+' conftest.er1 >conftest.err
22325   rm -f conftest.er1
22326   cat conftest.err >&5
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); } >/dev/null && {
22329          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22330          test ! -s conftest.err
22331        }; then
22332   ac_header_preproc=yes
22333 else
22334   echo "$as_me: failed program was:" >&5
22335 sed 's/^/| /' conftest.$ac_ext >&5
22336
22337   ac_header_preproc=no
22338 fi
22339
22340 rm -f conftest.err conftest.$ac_ext
22341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22342 echo "${ECHO_T}$ac_header_preproc" >&6; }
22343
22344 # So?  What about this header?
22345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22346   yes:no: )
22347     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&5
22348 echo "$as_me: WARNING: sys/epoll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22349     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the compiler's result" >&5
22350 echo "$as_me: WARNING: sys/epoll.h: proceeding with the compiler's result" >&2;}
22351     ac_header_preproc=yes
22352     ;;
22353   no:yes:* )
22354     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: present but cannot be compiled" >&5
22355 echo "$as_me: WARNING: sys/epoll.h: present but cannot be compiled" >&2;}
22356     { echo "$as_me:$LINENO: WARNING: sys/epoll.h:     check for missing prerequisite headers?" >&5
22357 echo "$as_me: WARNING: sys/epoll.h:     check for missing prerequisite headers?" >&2;}
22358     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: see the Autoconf documentation" >&5
22359 echo "$as_me: WARNING: sys/epoll.h: see the Autoconf documentation" >&2;}
22360     { echo "$as_me:$LINENO: WARNING: sys/epoll.h:     section \"Present But Cannot Be Compiled\"" >&5
22361 echo "$as_me: WARNING: sys/epoll.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22362     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&5
22363 echo "$as_me: WARNING: sys/epoll.h: proceeding with the preprocessor's result" >&2;}
22364     { echo "$as_me:$LINENO: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&5
22365 echo "$as_me: WARNING: sys/epoll.h: in the future, the compiler will take precedence" >&2;}
22366     ( cat <<\_ASBOX
22367 ## ----------------------------- ##
22368 ## Report this to senna@razil.jp ##
22369 ## ----------------------------- ##
22370 _ASBOX
22371      ) | sed "s/^/$as_me: WARNING:     /" >&2
22372     ;;
22373 esac
22374 { echo "$as_me:$LINENO: checking for sys/epoll.h" >&5
22375 echo $ECHO_N "checking for sys/epoll.h... $ECHO_C" >&6; }
22376 if test "${ac_cv_header_sys_epoll_h+set}" = set; then
22377   echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379   ac_cv_header_sys_epoll_h=$ac_header_preproc
22380 fi
22381 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_epoll_h" >&5
22382 echo "${ECHO_T}$ac_cv_header_sys_epoll_h" >&6; }
22383
22384 fi
22385 if test $ac_cv_header_sys_epoll_h = yes; then
22386
22387   { echo "$as_me:$LINENO: checking for epoll_create" >&5
22388 echo $ECHO_N "checking for epoll_create... $ECHO_C" >&6; }
22389 if test "${ac_cv_func_epoll_create+set}" = set; then
22390   echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392   cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398 /* Define epoll_create to an innocuous variant, in case <limits.h> declares epoll_create.
22399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22400 #define epoll_create innocuous_epoll_create
22401
22402 /* System header to define __stub macros and hopefully few prototypes,
22403     which can conflict with char epoll_create (); below.
22404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22405     <limits.h> exists even on freestanding compilers.  */
22406
22407 #ifdef __STDC__
22408 # include <limits.h>
22409 #else
22410 # include <assert.h>
22411 #endif
22412
22413 #undef epoll_create
22414
22415 /* Override any GCC internal prototype to avoid an error.
22416    Use char because int might match the return type of a GCC
22417    builtin and then its argument prototype would still apply.  */
22418 #ifdef __cplusplus
22419 extern "C"
22420 #endif
22421 char epoll_create ();
22422 /* The GNU C library defines this for functions which it implements
22423     to always fail with ENOSYS.  Some functions are actually named
22424     something starting with __ and the normal name is an alias.  */
22425 #if defined __stub_epoll_create || defined __stub___epoll_create
22426 choke me
22427 #endif
22428
22429 int
22430 main ()
22431 {
22432 return epoll_create ();
22433   ;
22434   return 0;
22435 }
22436 _ACEOF
22437 rm -f conftest.$ac_objext conftest$ac_exeext
22438 if { (ac_try="$ac_link"
22439 case "(($ac_try" in
22440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441   *) ac_try_echo=$ac_try;;
22442 esac
22443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22444   (eval "$ac_link") 2>conftest.er1
22445   ac_status=$?
22446   grep -v '^ *+' conftest.er1 >conftest.err
22447   rm -f conftest.er1
22448   cat conftest.err >&5
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); } && {
22451          test -z "$ac_c_werror_flag" ||
22452          test ! -s conftest.err
22453        } && test -s conftest$ac_exeext &&
22454        $as_test_x conftest$ac_exeext; then
22455   ac_cv_func_epoll_create=yes
22456 else
22457   echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460         ac_cv_func_epoll_create=no
22461 fi
22462
22463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22464       conftest$ac_exeext conftest.$ac_ext
22465 fi
22466 { echo "$as_me:$LINENO: result: $ac_cv_func_epoll_create" >&5
22467 echo "${ECHO_T}$ac_cv_func_epoll_create" >&6; }
22468 if test $ac_cv_func_epoll_create = yes; then
22469
22470     if test "$cross_compiling" = yes; then
22471   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22472 See \`config.log' for more details." >&5
22473 echo "$as_me: error: cannot run test program while cross compiling
22474 See \`config.log' for more details." >&2;}
22475    { (exit 1); exit 1; }; }
22476 else
22477   cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483
22484 #include <sys/epoll.h>
22485 int main(int argc, char **argv) { return (epoll_create(16) < 0); }
22486
22487 _ACEOF
22488 rm -f conftest$ac_exeext
22489 if { (ac_try="$ac_link"
22490 case "(($ac_try" in
22491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492   *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495   (eval "$ac_link") 2>&5
22496   ac_status=$?
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22499   { (case "(($ac_try" in
22500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501   *) ac_try_echo=$ac_try;;
22502 esac
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504   (eval "$ac_try") 2>&5
22505   ac_status=$?
22506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22507   (exit $ac_status); }; }; then
22508
22509       have_epoll="yes"
22510
22511 cat >>confdefs.h <<\_ACEOF
22512 #define USE_EPOLL 1
22513 _ACEOF
22514
22515
22516
22517 else
22518   echo "$as_me: program exited with status $ac_status" >&5
22519 echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22521
22522 fi
22523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22524 fi
22525
22526
22527
22528 fi
22529
22530
22531 fi
22532
22533
22534
22535 if test "x$have_epoll" != "xyes"; then
22536   if test "${ac_cv_header_sys_poll_h+set}" = set; then
22537   { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
22538 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
22539 if test "${ac_cv_header_sys_poll_h+set}" = set; then
22540   echo $ECHO_N "(cached) $ECHO_C" >&6
22541 fi
22542 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
22543 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
22544 else
22545   # Is the header compilable?
22546 { echo "$as_me:$LINENO: checking sys/poll.h usability" >&5
22547 echo $ECHO_N "checking sys/poll.h usability... $ECHO_C" >&6; }
22548 cat >conftest.$ac_ext <<_ACEOF
22549 /* confdefs.h.  */
22550 _ACEOF
22551 cat confdefs.h >>conftest.$ac_ext
22552 cat >>conftest.$ac_ext <<_ACEOF
22553 /* end confdefs.h.  */
22554 $ac_includes_default
22555 #include <sys/poll.h>
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (ac_try="$ac_compile"
22559 case "(($ac_try" in
22560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22561   *) ac_try_echo=$ac_try;;
22562 esac
22563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22564   (eval "$ac_compile") 2>conftest.er1
22565   ac_status=$?
22566   grep -v '^ *+' conftest.er1 >conftest.err
22567   rm -f conftest.er1
22568   cat conftest.err >&5
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); } && {
22571          test -z "$ac_c_werror_flag" ||
22572          test ! -s conftest.err
22573        } && test -s conftest.$ac_objext; then
22574   ac_header_compiler=yes
22575 else
22576   echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22578
22579         ac_header_compiler=no
22580 fi
22581
22582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22584 echo "${ECHO_T}$ac_header_compiler" >&6; }
22585
22586 # Is the header present?
22587 { echo "$as_me:$LINENO: checking sys/poll.h presence" >&5
22588 echo $ECHO_N "checking sys/poll.h presence... $ECHO_C" >&6; }
22589 cat >conftest.$ac_ext <<_ACEOF
22590 /* confdefs.h.  */
22591 _ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h.  */
22595 #include <sys/poll.h>
22596 _ACEOF
22597 if { (ac_try="$ac_cpp conftest.$ac_ext"
22598 case "(($ac_try" in
22599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22600   *) ac_try_echo=$ac_try;;
22601 esac
22602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22604   ac_status=$?
22605   grep -v '^ *+' conftest.er1 >conftest.err
22606   rm -f conftest.er1
22607   cat conftest.err >&5
22608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609   (exit $ac_status); } >/dev/null && {
22610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22611          test ! -s conftest.err
22612        }; then
22613   ac_header_preproc=yes
22614 else
22615   echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22617
22618   ac_header_preproc=no
22619 fi
22620
22621 rm -f conftest.err conftest.$ac_ext
22622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22623 echo "${ECHO_T}$ac_header_preproc" >&6; }
22624
22625 # So?  What about this header?
22626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22627   yes:no: )
22628     { echo "$as_me:$LINENO: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
22629 echo "$as_me: WARNING: sys/poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22630     { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the compiler's result" >&5
22631 echo "$as_me: WARNING: sys/poll.h: proceeding with the compiler's result" >&2;}
22632     ac_header_preproc=yes
22633     ;;
22634   no:yes:* )
22635     { echo "$as_me:$LINENO: WARNING: sys/poll.h: present but cannot be compiled" >&5
22636 echo "$as_me: WARNING: sys/poll.h: present but cannot be compiled" >&2;}
22637     { echo "$as_me:$LINENO: WARNING: sys/poll.h:     check for missing prerequisite headers?" >&5
22638 echo "$as_me: WARNING: sys/poll.h:     check for missing prerequisite headers?" >&2;}
22639     { echo "$as_me:$LINENO: WARNING: sys/poll.h: see the Autoconf documentation" >&5
22640 echo "$as_me: WARNING: sys/poll.h: see the Autoconf documentation" >&2;}
22641     { echo "$as_me:$LINENO: WARNING: sys/poll.h:     section \"Present But Cannot Be Compiled\"" >&5
22642 echo "$as_me: WARNING: sys/poll.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22643     { echo "$as_me:$LINENO: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&5
22644 echo "$as_me: WARNING: sys/poll.h: proceeding with the preprocessor's result" >&2;}
22645     { echo "$as_me:$LINENO: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&5
22646 echo "$as_me: WARNING: sys/poll.h: in the future, the compiler will take precedence" >&2;}
22647     ( cat <<\_ASBOX
22648 ## ----------------------------- ##
22649 ## Report this to senna@razil.jp ##
22650 ## ----------------------------- ##
22651 _ASBOX
22652      ) | sed "s/^/$as_me: WARNING:     /" >&2
22653     ;;
22654 esac
22655 { echo "$as_me:$LINENO: checking for sys/poll.h" >&5
22656 echo $ECHO_N "checking for sys/poll.h... $ECHO_C" >&6; }
22657 if test "${ac_cv_header_sys_poll_h+set}" = set; then
22658   echo $ECHO_N "(cached) $ECHO_C" >&6
22659 else
22660   ac_cv_header_sys_poll_h=$ac_header_preproc
22661 fi
22662 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_poll_h" >&5
22663 echo "${ECHO_T}$ac_cv_header_sys_poll_h" >&6; }
22664
22665 fi
22666 if test $ac_cv_header_sys_poll_h = yes; then
22667
22668     { echo "$as_me:$LINENO: checking for poll" >&5
22669 echo $ECHO_N "checking for poll... $ECHO_C" >&6; }
22670 if test "${ac_cv_func_poll+set}" = set; then
22671   echo $ECHO_N "(cached) $ECHO_C" >&6
22672 else
22673   cat >conftest.$ac_ext <<_ACEOF
22674 /* confdefs.h.  */
22675 _ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h.  */
22679 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
22680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22681 #define poll innocuous_poll
22682
22683 /* System header to define __stub macros and hopefully few prototypes,
22684     which can conflict with char poll (); below.
22685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22686     <limits.h> exists even on freestanding compilers.  */
22687
22688 #ifdef __STDC__
22689 # include <limits.h>
22690 #else
22691 # include <assert.h>
22692 #endif
22693
22694 #undef poll
22695
22696 /* Override any GCC internal prototype to avoid an error.
22697    Use char because int might match the return type of a GCC
22698    builtin and then its argument prototype would still apply.  */
22699 #ifdef __cplusplus
22700 extern "C"
22701 #endif
22702 char poll ();
22703 /* The GNU C library defines this for functions which it implements
22704     to always fail with ENOSYS.  Some functions are actually named
22705     something starting with __ and the normal name is an alias.  */
22706 #if defined __stub_poll || defined __stub___poll
22707 choke me
22708 #endif
22709
22710 int
22711 main ()
22712 {
22713 return poll ();
22714   ;
22715   return 0;
22716 }
22717 _ACEOF
22718 rm -f conftest.$ac_objext conftest$ac_exeext
22719 if { (ac_try="$ac_link"
22720 case "(($ac_try" in
22721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722   *) ac_try_echo=$ac_try;;
22723 esac
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725   (eval "$ac_link") 2>conftest.er1
22726   ac_status=$?
22727   grep -v '^ *+' conftest.er1 >conftest.err
22728   rm -f conftest.er1
22729   cat conftest.err >&5
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } && {
22732          test -z "$ac_c_werror_flag" ||
22733          test ! -s conftest.err
22734        } && test -s conftest$ac_exeext &&
22735        $as_test_x conftest$ac_exeext; then
22736   ac_cv_func_poll=yes
22737 else
22738   echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22740
22741         ac_cv_func_poll=no
22742 fi
22743
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745       conftest$ac_exeext conftest.$ac_ext
22746 fi
22747 { echo "$as_me:$LINENO: result: $ac_cv_func_poll" >&5
22748 echo "${ECHO_T}$ac_cv_func_poll" >&6; }
22749 if test $ac_cv_func_poll = yes; then
22750
22751       have_poll="yes"
22752
22753 cat >>confdefs.h <<\_ACEOF
22754 #define USE_POLL 1
22755 _ACEOF
22756
22757
22758 fi
22759
22760
22761 fi
22762
22763
22764   if test "x$have_poll" != "xyes"; then
22765     { echo "$as_me:$LINENO: checking for select" >&5
22766 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
22767 if test "${ac_cv_func_select+set}" = set; then
22768   echo $ECHO_N "(cached) $ECHO_C" >&6
22769 else
22770   cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h.  */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h.  */
22776 /* Define select to an innocuous variant, in case <limits.h> declares select.
22777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22778 #define select innocuous_select
22779
22780 /* System header to define __stub macros and hopefully few prototypes,
22781     which can conflict with char select (); below.
22782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22783     <limits.h> exists even on freestanding compilers.  */
22784
22785 #ifdef __STDC__
22786 # include <limits.h>
22787 #else
22788 # include <assert.h>
22789 #endif
22790
22791 #undef select
22792
22793 /* Override any GCC internal prototype to avoid an error.
22794    Use char because int might match the return type of a GCC
22795    builtin and then its argument prototype would still apply.  */
22796 #ifdef __cplusplus
22797 extern "C"
22798 #endif
22799 char select ();
22800 /* The GNU C library defines this for functions which it implements
22801     to always fail with ENOSYS.  Some functions are actually named
22802     something starting with __ and the normal name is an alias.  */
22803 #if defined __stub_select || defined __stub___select
22804 choke me
22805 #endif
22806
22807 int
22808 main ()
22809 {
22810 return select ();
22811   ;
22812   return 0;
22813 }
22814 _ACEOF
22815 rm -f conftest.$ac_objext conftest$ac_exeext
22816 if { (ac_try="$ac_link"
22817 case "(($ac_try" in
22818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819   *) ac_try_echo=$ac_try;;
22820 esac
22821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822   (eval "$ac_link") 2>conftest.er1
22823   ac_status=$?
22824   grep -v '^ *+' conftest.er1 >conftest.err
22825   rm -f conftest.er1
22826   cat conftest.err >&5
22827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828   (exit $ac_status); } && {
22829          test -z "$ac_c_werror_flag" ||
22830          test ! -s conftest.err
22831        } && test -s conftest$ac_exeext &&
22832        $as_test_x conftest$ac_exeext; then
22833   ac_cv_func_select=yes
22834 else
22835   echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22837
22838         ac_cv_func_select=no
22839 fi
22840
22841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22842       conftest$ac_exeext conftest.$ac_ext
22843 fi
22844 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
22845 echo "${ECHO_T}$ac_cv_func_select" >&6; }
22846 if test $ac_cv_func_select = yes; then
22847
22848       have_select="yes"
22849
22850 for ac_header in sys/select.h
22851 do
22852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22857   echo $ECHO_N "(cached) $ECHO_C" >&6
22858 fi
22859 ac_res=`eval echo '${'$as_ac_Header'}'`
22860                { echo "$as_me:$LINENO: result: $ac_res" >&5
22861 echo "${ECHO_T}$ac_res" >&6; }
22862 else
22863   # Is the header compilable?
22864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h.  */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h.  */
22872 $ac_includes_default
22873 #include <$ac_header>
22874 _ACEOF
22875 rm -f conftest.$ac_objext
22876 if { (ac_try="$ac_compile"
22877 case "(($ac_try" in
22878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22879   *) ac_try_echo=$ac_try;;
22880 esac
22881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22882   (eval "$ac_compile") 2>conftest.er1
22883   ac_status=$?
22884   grep -v '^ *+' conftest.er1 >conftest.err
22885   rm -f conftest.er1
22886   cat conftest.err >&5
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); } && {
22889          test -z "$ac_c_werror_flag" ||
22890          test ! -s conftest.err
22891        } && test -s conftest.$ac_objext; then
22892   ac_header_compiler=yes
22893 else
22894   echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897         ac_header_compiler=no
22898 fi
22899
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22902 echo "${ECHO_T}$ac_header_compiler" >&6; }
22903
22904 # Is the header present?
22905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913 #include <$ac_header>
22914 _ACEOF
22915 if { (ac_try="$ac_cpp conftest.$ac_ext"
22916 case "(($ac_try" in
22917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918   *) ac_try_echo=$ac_try;;
22919 esac
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22922   ac_status=$?
22923   grep -v '^ *+' conftest.er1 >conftest.err
22924   rm -f conftest.er1
22925   cat conftest.err >&5
22926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927   (exit $ac_status); } >/dev/null && {
22928          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22929          test ! -s conftest.err
22930        }; then
22931   ac_header_preproc=yes
22932 else
22933   echo "$as_me: failed program was:" >&5
22934 sed 's/^/| /' conftest.$ac_ext >&5
22935
22936   ac_header_preproc=no
22937 fi
22938
22939 rm -f conftest.err conftest.$ac_ext
22940 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22941 echo "${ECHO_T}$ac_header_preproc" >&6; }
22942
22943 # So?  What about this header?
22944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22945   yes:no: )
22946     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22947 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22948     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22949 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22950     ac_header_preproc=yes
22951     ;;
22952   no:yes:* )
22953     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22954 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22955     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22956 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22957     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22958 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22959     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22960 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22963     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22964 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22965     ( cat <<\_ASBOX
22966 ## ----------------------------- ##
22967 ## Report this to senna@razil.jp ##
22968 ## ----------------------------- ##
22969 _ASBOX
22970      ) | sed "s/^/$as_me: WARNING:     /" >&2
22971     ;;
22972 esac
22973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22976   echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978   eval "$as_ac_Header=\$ac_header_preproc"
22979 fi
22980 ac_res=`eval echo '${'$as_ac_Header'}'`
22981                { echo "$as_me:$LINENO: result: $ac_res" >&5
22982 echo "${ECHO_T}$ac_res" >&6; }
22983
22984 fi
22985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22986   cat >>confdefs.h <<_ACEOF
22987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22988 _ACEOF
22989
22990 fi
22991
22992 done
22993
22994
22995 cat >>confdefs.h <<\_ACEOF
22996 #define USE_SELECT 1
22997 _ACEOF
22998
22999
23000 else
23001
23002       { { echo "$as_me:$LINENO: error: epoll/poll/select is missing." >&5
23003 echo "$as_me: error: epoll/poll/select is missing." >&2;}
23004    { (exit 1); exit 1; }; }
23005
23006 fi
23007
23008   fi
23009 fi
23010
23011 # check MSG_NOSIGNAL defined
23012 { echo "$as_me:$LINENO: checking whether MSG_NOSIGNAL defined" >&5
23013 echo $ECHO_N "checking whether MSG_NOSIGNAL defined... $ECHO_C" >&6; }
23014 cat >conftest.$ac_ext <<_ACEOF
23015
23016 #include <sys/types.h>
23017 #include <sys/socket.h>
23018
23019 #if __FreeBSD__ >= 2 && __FreeBSD_version >= 600020
23020 #ifndef MSG_NOSIGNAL
23021 #define MSG_NOSIGNAL 0x20000
23022 #endif
23023 #endif
23024
23025 int main(int argc, char **argv)
23026 {
23027   return MSG_NOSIGNAL;
23028 }
23029
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035   *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038   (eval "$ac_compile") 2>conftest.er1
23039   ac_status=$?
23040   grep -v '^ *+' conftest.er1 >conftest.err
23041   rm -f conftest.er1
23042   cat conftest.err >&5
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); } && {
23045          test -z "$ac_c_werror_flag" ||
23046          test ! -s conftest.err
23047        } && test -s conftest.$ac_objext; then
23048
23049       { echo "$as_me:$LINENO: result: yes" >&5
23050 echo "${ECHO_T}yes" >&6; }
23051
23052 cat >>confdefs.h <<\_ACEOF
23053 #define USE_MSG_NOSIGNAL 1
23054 _ACEOF
23055
23056
23057 else
23058   echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23060
23061
23062       { echo "$as_me:$LINENO: result: no" >&5
23063 echo "${ECHO_T}no" >&6; }
23064
23065 fi
23066
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23068
23069 # mecab
23070 # NOTE: MUST be checked last
23071
23072 # Check whether --with-mecab was given.
23073 if test "${with_mecab+set}" = set; then
23074   withval=$with_mecab; with_mecab="$withval"
23075 else
23076   with_mecab="yes"
23077 fi
23078
23079 if test "x$with_mecab" = "xno"; then
23080
23081 cat >>confdefs.h <<\_ACEOF
23082 #define NO_MECAB 1
23083 _ACEOF
23084
23085 else
23086   # mecab-config
23087
23088 # Check whether --with-mecab-config was given.
23089 if test "${with_mecab_config+set}" = set; then
23090   withval=$with_mecab_config; as_ac_File=`echo "ac_cv_file_"$withval"" | $as_tr_sh`
23091 { echo "$as_me:$LINENO: checking for \"$withval\"" >&5
23092 echo $ECHO_N "checking for \"$withval\"... $ECHO_C" >&6; }
23093 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
23094   echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096   test "$cross_compiling" = yes &&
23097   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23098 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23099    { (exit 1); exit 1; }; }
23100 if test -r ""$withval""; then
23101   eval "$as_ac_File=yes"
23102 else
23103   eval "$as_ac_File=no"
23104 fi
23105 fi
23106 ac_res=`eval echo '${'$as_ac_File'}'`
23107                { echo "$as_me:$LINENO: result: $ac_res" >&5
23108 echo "${ECHO_T}$ac_res" >&6; }
23109 if test `eval echo '${'$as_ac_File'}'` = yes; then
23110   MECAB_CONFIG="$withval"
23111 else
23112   MECAB_CONFIG=no
23113 fi
23114
23115 else
23116   # Extract the first word of "mecab-config", so it can be a program name with args.
23117 set dummy mecab-config; ac_word=$2
23118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23120 if test "${ac_cv_path_MECAB_CONFIG+set}" = set; then
23121   echo $ECHO_N "(cached) $ECHO_C" >&6
23122 else
23123   case $MECAB_CONFIG in
23124   [\\/]* | ?:[\\/]*)
23125   ac_cv_path_MECAB_CONFIG="$MECAB_CONFIG" # Let the user override the test with a path.
23126   ;;
23127   *)
23128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23129 for as_dir in $PATH
23130 do
23131   IFS=$as_save_IFS
23132   test -z "$as_dir" && as_dir=.
23133   for ac_exec_ext in '' $ac_executable_extensions; do
23134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23135     ac_cv_path_MECAB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23137     break 2
23138   fi
23139 done
23140 done
23141 IFS=$as_save_IFS
23142
23143   test -z "$ac_cv_path_MECAB_CONFIG" && ac_cv_path_MECAB_CONFIG="no"
23144   ;;
23145 esac
23146 fi
23147 MECAB_CONFIG=$ac_cv_path_MECAB_CONFIG
23148 if test -n "$MECAB_CONFIG"; then
23149   { echo "$as_me:$LINENO: result: $MECAB_CONFIG" >&5
23150 echo "${ECHO_T}$MECAB_CONFIG" >&6; }
23151 else
23152   { echo "$as_me:$LINENO: result: no" >&5
23153 echo "${ECHO_T}no" >&6; }
23154 fi
23155
23156
23157 fi
23158
23159   if test "x$MECAB_CONFIG" = "xno"; then
23160     { { echo "$as_me:$LINENO: error: mecab-config is missing." >&5
23161 echo "$as_me: error: mecab-config is missing." >&2;}
23162    { (exit 1); exit 1; }; }
23163   fi
23164
23165   MECAB_CFLAGS="-I`$MECAB_CONFIG --inc-dir`"
23166   LDFLAGS="$LDFLAGS -L`$MECAB_CONFIG --libs-only-L`"
23167
23168 { echo "$as_me:$LINENO: checking for mecab_new in -lmecab" >&5
23169 echo $ECHO_N "checking for mecab_new in -lmecab... $ECHO_C" >&6; }
23170 if test "${ac_cv_lib_mecab_mecab_new+set}" = set; then
23171   echo $ECHO_N "(cached) $ECHO_C" >&6
23172 else
23173   ac_check_lib_save_LIBS=$LIBS
23174 LIBS="-lmecab  $LIBS"
23175 cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h.  */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h.  */
23181
23182 /* Override any GCC internal prototype to avoid an error.
23183    Use char because int might match the return type of a GCC
23184    builtin and then its argument prototype would still apply.  */
23185 #ifdef __cplusplus
23186 extern "C"
23187 #endif
23188 char mecab_new ();
23189 int
23190 main ()
23191 {
23192 return mecab_new ();
23193   ;
23194   return 0;
23195 }
23196 _ACEOF
23197 rm -f conftest.$ac_objext conftest$ac_exeext
23198 if { (ac_try="$ac_link"
23199 case "(($ac_try" in
23200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201   *) ac_try_echo=$ac_try;;
23202 esac
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204   (eval "$ac_link") 2>conftest.er1
23205   ac_status=$?
23206   grep -v '^ *+' conftest.er1 >conftest.err
23207   rm -f conftest.er1
23208   cat conftest.err >&5
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); } && {
23211          test -z "$ac_c_werror_flag" ||
23212          test ! -s conftest.err
23213        } && test -s conftest$ac_exeext &&
23214        $as_test_x conftest$ac_exeext; then
23215   ac_cv_lib_mecab_mecab_new=yes
23216 else
23217   echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
23220         ac_cv_lib_mecab_mecab_new=no
23221 fi
23222
23223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224       conftest$ac_exeext conftest.$ac_ext
23225 LIBS=$ac_check_lib_save_LIBS
23226 fi
23227 { echo "$as_me:$LINENO: result: $ac_cv_lib_mecab_mecab_new" >&5
23228 echo "${ECHO_T}$ac_cv_lib_mecab_mecab_new" >&6; }
23229 if test $ac_cv_lib_mecab_mecab_new = yes; then
23230   cat >>confdefs.h <<_ACEOF
23231 #define HAVE_LIBMECAB 1
23232 _ACEOF
23233
23234   LIBS="-lmecab $LIBS"
23235
23236 else
23237   { { echo "$as_me:$LINENO: error: \"No libmecab found\"" >&5
23238 echo "$as_me: error: \"No libmecab found\"" >&2;}
23239    { (exit 1); exit 1; }; }
23240 fi
23241
23242         { echo "$as_me:$LINENO: checking for mecab_dictionary_info in -lmecab" >&5
23243 echo $ECHO_N "checking for mecab_dictionary_info in -lmecab... $ECHO_C" >&6; }
23244 if test "${ac_cv_lib_mecab_mecab_dictionary_info+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247   ac_check_lib_save_LIBS=$LIBS
23248 LIBS="-lmecab  $LIBS"
23249 cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255
23256 /* Override any GCC internal prototype to avoid an error.
23257    Use char because int might match the return type of a GCC
23258    builtin and then its argument prototype would still apply.  */
23259 #ifdef __cplusplus
23260 extern "C"
23261 #endif
23262 char mecab_dictionary_info ();
23263 int
23264 main ()
23265 {
23266 return mecab_dictionary_info ();
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (ac_try="$ac_link"
23273 case "(($ac_try" in
23274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275   *) ac_try_echo=$ac_try;;
23276 esac
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278   (eval "$ac_link") 2>conftest.er1
23279   ac_status=$?
23280   grep -v '^ *+' conftest.er1 >conftest.err
23281   rm -f conftest.er1
23282   cat conftest.err >&5
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } && {
23285          test -z "$ac_c_werror_flag" ||
23286          test ! -s conftest.err
23287        } && test -s conftest$ac_exeext &&
23288        $as_test_x conftest$ac_exeext; then
23289   ac_cv_lib_mecab_mecab_dictionary_info=yes
23290 else
23291   echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23293
23294         ac_cv_lib_mecab_mecab_dictionary_info=no
23295 fi
23296
23297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23298       conftest$ac_exeext conftest.$ac_ext
23299 LIBS=$ac_check_lib_save_LIBS
23300 fi
23301 { echo "$as_me:$LINENO: result: $ac_cv_lib_mecab_mecab_dictionary_info" >&5
23302 echo "${ECHO_T}$ac_cv_lib_mecab_mecab_dictionary_info" >&6; }
23303 if test $ac_cv_lib_mecab_mecab_dictionary_info = yes; then
23304
23305 cat >>confdefs.h <<\_ACEOF
23306 #define USE_MECAB_DICINFO 1
23307 _ACEOF
23308
23309 fi
23310
23311   CPPFLAGS="$CPPFLAGS $MECAB_CFLAGS"
23312   if test "${ac_cv_header_mecab_h+set}" = set; then
23313   { echo "$as_me:$LINENO: checking for mecab.h" >&5
23314 echo $ECHO_N "checking for mecab.h... $ECHO_C" >&6; }
23315 if test "${ac_cv_header_mecab_h+set}" = set; then
23316   echo $ECHO_N "(cached) $ECHO_C" >&6
23317 fi
23318 { echo "$as_me:$LINENO: result: $ac_cv_header_mecab_h" >&5
23319 echo "${ECHO_T}$ac_cv_header_mecab_h" >&6; }
23320 else
23321   # Is the header compilable?
23322 { echo "$as_me:$LINENO: checking mecab.h usability" >&5
23323 echo $ECHO_N "checking mecab.h usability... $ECHO_C" >&6; }
23324 cat >conftest.$ac_ext <<_ACEOF
23325 /* confdefs.h.  */
23326 _ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h.  */
23330 $ac_includes_default
23331 #include <mecab.h>
23332 _ACEOF
23333 rm -f conftest.$ac_objext
23334 if { (ac_try="$ac_compile"
23335 case "(($ac_try" in
23336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23337   *) ac_try_echo=$ac_try;;
23338 esac
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340   (eval "$ac_compile") 2>conftest.er1
23341   ac_status=$?
23342   grep -v '^ *+' conftest.er1 >conftest.err
23343   rm -f conftest.er1
23344   cat conftest.err >&5
23345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346   (exit $ac_status); } && {
23347          test -z "$ac_c_werror_flag" ||
23348          test ! -s conftest.err
23349        } && test -s conftest.$ac_objext; then
23350   ac_header_compiler=yes
23351 else
23352   echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23354
23355         ac_header_compiler=no
23356 fi
23357
23358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23359 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23360 echo "${ECHO_T}$ac_header_compiler" >&6; }
23361
23362 # Is the header present?
23363 { echo "$as_me:$LINENO: checking mecab.h presence" >&5
23364 echo $ECHO_N "checking mecab.h presence... $ECHO_C" >&6; }
23365 cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h.  */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h.  */
23371 #include <mecab.h>
23372 _ACEOF
23373 if { (ac_try="$ac_cpp conftest.$ac_ext"
23374 case "(($ac_try" in
23375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23376   *) ac_try_echo=$ac_try;;
23377 esac
23378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23379   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23380   ac_status=$?
23381   grep -v '^ *+' conftest.er1 >conftest.err
23382   rm -f conftest.er1
23383   cat conftest.err >&5
23384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385   (exit $ac_status); } >/dev/null && {
23386          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23387          test ! -s conftest.err
23388        }; then
23389   ac_header_preproc=yes
23390 else
23391   echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.$ac_ext >&5
23393
23394   ac_header_preproc=no
23395 fi
23396
23397 rm -f conftest.err conftest.$ac_ext
23398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23399 echo "${ECHO_T}$ac_header_preproc" >&6; }
23400
23401 # So?  What about this header?
23402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23403   yes:no: )
23404     { echo "$as_me:$LINENO: WARNING: mecab.h: accepted by the compiler, rejected by the preprocessor!" >&5
23405 echo "$as_me: WARNING: mecab.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23406     { echo "$as_me:$LINENO: WARNING: mecab.h: proceeding with the compiler's result" >&5
23407 echo "$as_me: WARNING: mecab.h: proceeding with the compiler's result" >&2;}
23408     ac_header_preproc=yes
23409     ;;
23410   no:yes:* )
23411     { echo "$as_me:$LINENO: WARNING: mecab.h: present but cannot be compiled" >&5
23412 echo "$as_me: WARNING: mecab.h: present but cannot be compiled" >&2;}
23413     { echo "$as_me:$LINENO: WARNING: mecab.h:     check for missing prerequisite headers?" >&5
23414 echo "$as_me: WARNING: mecab.h:     check for missing prerequisite headers?" >&2;}
23415     { echo "$as_me:$LINENO: WARNING: mecab.h: see the Autoconf documentation" >&5
23416 echo "$as_me: WARNING: mecab.h: see the Autoconf documentation" >&2;}
23417     { echo "$as_me:$LINENO: WARNING: mecab.h:     section \"Present But Cannot Be Compiled\"" >&5
23418 echo "$as_me: WARNING: mecab.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23419     { echo "$as_me:$LINENO: WARNING: mecab.h: proceeding with the preprocessor's result" >&5
23420 echo "$as_me: WARNING: mecab.h: proceeding with the preprocessor's result" >&2;}
23421     { echo "$as_me:$LINENO: WARNING: mecab.h: in the future, the compiler will take precedence" >&5
23422 echo "$as_me: WARNING: mecab.h: in the future, the compiler will take precedence" >&2;}
23423     ( cat <<\_ASBOX
23424 ## ----------------------------- ##
23425 ## Report this to senna@razil.jp ##
23426 ## ----------------------------- ##
23427 _ASBOX
23428      ) | sed "s/^/$as_me: WARNING:     /" >&2
23429     ;;
23430 esac
23431 { echo "$as_me:$LINENO: checking for mecab.h" >&5
23432 echo $ECHO_N "checking for mecab.h... $ECHO_C" >&6; }
23433 if test "${ac_cv_header_mecab_h+set}" = set; then
23434   echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23436   ac_cv_header_mecab_h=$ac_header_preproc
23437 fi
23438 { echo "$as_me:$LINENO: result: $ac_cv_header_mecab_h" >&5
23439 echo "${ECHO_T}$ac_cv_header_mecab_h" >&6; }
23440
23441 fi
23442 if test $ac_cv_header_mecab_h = yes; then
23443   :
23444 else
23445   { { echo "$as_me:$LINENO: error: \"No mecab.h found\"" >&5
23446 echo "$as_me: error: \"No mecab.h found\"" >&2;}
23447    { (exit 1); exit 1; }; }
23448 fi
23449
23450
23451 fi
23452
23453 # flags for compile senna
23454 CFLAGS="$CFLAGS $MECAB_CFLAGS $OPT_CFLAGS $GCOV_CFLAGS"
23455 LIBS="$LIBS $PTHREAD_LIBS $M_LIBS"
23456
23457 cat >>confdefs.h <<_ACEOF
23458 #define CONFIGURE_OPTIONS "$ac_configure_args"
23459 _ACEOF
23460
23461
23462 # flags for senna-cfg
23463 SENNA_LIBDIR='-L${libdir}'
23464 SENNA_INCLUDEDIR="-I${includedir}/senna"
23465 SENNA_CFLAGS="$GCOV_CFLAGS"
23466 SENNA_LIBS="-lsenna $GCOV_LIBS $PTHREAD_LIBS $M_LIBS"
23467
23468
23469
23470
23471
23472
23473 ac_config_files="$ac_config_files senna-cfg senna.spec vcc/config.h"
23474
23475 ac_config_commands="$ac_config_commands default"
23476
23477 cat >confcache <<\_ACEOF
23478 # This file is a shell script that caches the results of configure
23479 # tests run on this system so they can be shared between configure
23480 # scripts and configure runs, see configure's option --config-cache.
23481 # It is not useful on other systems.  If it contains results you don't
23482 # want to keep, you may remove or edit it.
23483 #
23484 # config.status only pays attention to the cache file if you give it
23485 # the --recheck option to rerun configure.
23486 #
23487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23489 # following values.
23490
23491 _ACEOF
23492
23493 # The following way of writing the cache mishandles newlines in values,
23494 # but we know of no workaround that is simple, portable, and efficient.
23495 # So, we kill variables containing newlines.
23496 # Ultrix sh set writes to stderr and can't be redirected directly,
23497 # and sets the high bit in the cache file unless we assign to the vars.
23498 (
23499   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23500     eval ac_val=\$$ac_var
23501     case $ac_val in #(
23502     *${as_nl}*)
23503       case $ac_var in #(
23504       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23505 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23506       esac
23507       case $ac_var in #(
23508       _ | IFS | as_nl) ;; #(
23509       *) $as_unset $ac_var ;;
23510       esac ;;
23511     esac
23512   done
23513
23514   (set) 2>&1 |
23515     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23516     *${as_nl}ac_space=\ *)
23517       # `set' does not quote correctly, so add quotes (double-quote
23518       # substitution turns \\\\ into \\, and sed turns \\ into \).
23519       sed -n \
23520         "s/'/'\\\\''/g;
23521           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23522       ;; #(
23523     *)
23524       # `set' quotes correctly as required by POSIX, so do not add quotes.
23525       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23526       ;;
23527     esac |
23528     sort
23529 ) |
23530   sed '
23531      /^ac_cv_env_/b end
23532      t clear
23533      :clear
23534      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23535      t end
23536      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23537      :end' >>confcache
23538 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23539   if test -w "$cache_file"; then
23540     test "x$cache_file" != "x/dev/null" &&
23541       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23542 echo "$as_me: updating cache $cache_file" >&6;}
23543     cat confcache >$cache_file
23544   else
23545     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23546 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23547   fi
23548 fi
23549 rm -f confcache
23550
23551 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23552 # Let make expand exec_prefix.
23553 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23554
23555 DEFS=-DHAVE_CONFIG_H
23556
23557 ac_libobjs=
23558 ac_ltlibobjs=
23559 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23560   # 1. Remove the extension, and $U if already installed.
23561   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23562   ac_i=`echo "$ac_i" | sed "$ac_script"`
23563   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23564   #    will be set to the directory where LIBOBJS objects are built.
23565   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23566   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23567 done
23568 LIBOBJS=$ac_libobjs
23569
23570 LTLIBOBJS=$ac_ltlibobjs
23571
23572
23573 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23574   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23575 Usually this means the macro was only invoked conditionally." >&5
23576 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23577 Usually this means the macro was only invoked conditionally." >&2;}
23578    { (exit 1); exit 1; }; }
23579 fi
23580 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23581   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23582 Usually this means the macro was only invoked conditionally." >&5
23583 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23584 Usually this means the macro was only invoked conditionally." >&2;}
23585    { (exit 1); exit 1; }; }
23586 fi
23587 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23588   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23589 Usually this means the macro was only invoked conditionally." >&5
23590 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23591 Usually this means the macro was only invoked conditionally." >&2;}
23592    { (exit 1); exit 1; }; }
23593 fi
23594 if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then
23595   { { echo "$as_me:$LINENO: error: conditional \"GCOV_ENABLED\" was never defined.
23596 Usually this means the macro was only invoked conditionally." >&5
23597 echo "$as_me: error: conditional \"GCOV_ENABLED\" was never defined.
23598 Usually this means the macro was only invoked conditionally." >&2;}
23599    { (exit 1); exit 1; }; }
23600 fi
23601
23602 : ${CONFIG_STATUS=./config.status}
23603 ac_clean_files_save=$ac_clean_files
23604 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23605 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23606 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23607 cat >$CONFIG_STATUS <<_ACEOF
23608 #! $SHELL
23609 # Generated by $as_me.
23610 # Run this file to recreate the current configuration.
23611 # Compiler output produced by configure, useful for debugging
23612 # configure, is in config.log if it exists.
23613
23614 debug=false
23615 ac_cs_recheck=false
23616 ac_cs_silent=false
23617 SHELL=\${CONFIG_SHELL-$SHELL}
23618 _ACEOF
23619
23620 cat >>$CONFIG_STATUS <<\_ACEOF
23621 ## --------------------- ##
23622 ## M4sh Initialization.  ##
23623 ## --------------------- ##
23624
23625 # Be more Bourne compatible
23626 DUALCASE=1; export DUALCASE # for MKS sh
23627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23628   emulate sh
23629   NULLCMD=:
23630   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23631   # is contrary to our usage.  Disable this feature.
23632   alias -g '${1+"$@"}'='"$@"'
23633   setopt NO_GLOB_SUBST
23634 else
23635   case `(set -o) 2>/dev/null` in
23636   *posix*) set -o posix ;;
23637 esac
23638
23639 fi
23640
23641
23642
23643
23644 # PATH needs CR
23645 # Avoid depending upon Character Ranges.
23646 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23647 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23648 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23649 as_cr_digits='0123456789'
23650 as_cr_alnum=$as_cr_Letters$as_cr_digits
23651
23652 # The user is always right.
23653 if test "${PATH_SEPARATOR+set}" != set; then
23654   echo "#! /bin/sh" >conf$$.sh
23655   echo  "exit 0"   >>conf$$.sh
23656   chmod +x conf$$.sh
23657   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23658     PATH_SEPARATOR=';'
23659   else
23660     PATH_SEPARATOR=:
23661   fi
23662   rm -f conf$$.sh
23663 fi
23664
23665 # Support unset when possible.
23666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23667   as_unset=unset
23668 else
23669   as_unset=false
23670 fi
23671
23672
23673 # IFS
23674 # We need space, tab and new line, in precisely that order.  Quoting is
23675 # there to prevent editors from complaining about space-tab.
23676 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23677 # splitting by setting IFS to empty value.)
23678 as_nl='
23679 '
23680 IFS=" ""        $as_nl"
23681
23682 # Find who we are.  Look in the path if we contain no directory separator.
23683 case $0 in
23684   *[\\/]* ) as_myself=$0 ;;
23685   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23686 for as_dir in $PATH
23687 do
23688   IFS=$as_save_IFS
23689   test -z "$as_dir" && as_dir=.
23690   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23691 done
23692 IFS=$as_save_IFS
23693
23694      ;;
23695 esac
23696 # We did not find ourselves, most probably we were run as `sh COMMAND'
23697 # in which case we are not to be found in the path.
23698 if test "x$as_myself" = x; then
23699   as_myself=$0
23700 fi
23701 if test ! -f "$as_myself"; then
23702   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23703   { (exit 1); exit 1; }
23704 fi
23705
23706 # Work around bugs in pre-3.0 UWIN ksh.
23707 for as_var in ENV MAIL MAILPATH
23708 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23709 done
23710 PS1='$ '
23711 PS2='> '
23712 PS4='+ '
23713
23714 # NLS nuisances.
23715 for as_var in \
23716   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23717   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23718   LC_TELEPHONE LC_TIME
23719 do
23720   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23721     eval $as_var=C; export $as_var
23722   else
23723     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23724   fi
23725 done
23726
23727 # Required to use basename.
23728 if expr a : '\(a\)' >/dev/null 2>&1 &&
23729    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23730   as_expr=expr
23731 else
23732   as_expr=false
23733 fi
23734
23735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23736   as_basename=basename
23737 else
23738   as_basename=false
23739 fi
23740
23741
23742 # Name of the executable.
23743 as_me=`$as_basename -- "$0" ||
23744 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23745          X"$0" : 'X\(//\)$' \| \
23746          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23747 echo X/"$0" |
23748     sed '/^.*\/\([^/][^/]*\)\/*$/{
23749             s//\1/
23750             q
23751           }
23752           /^X\/\(\/\/\)$/{
23753             s//\1/
23754             q
23755           }
23756           /^X\/\(\/\).*/{
23757             s//\1/
23758             q
23759           }
23760           s/.*/./; q'`
23761
23762 # CDPATH.
23763 $as_unset CDPATH
23764
23765
23766
23767   as_lineno_1=$LINENO
23768   as_lineno_2=$LINENO
23769   test "x$as_lineno_1" != "x$as_lineno_2" &&
23770   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23771
23772   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23773   # uniformly replaced by the line number.  The first 'sed' inserts a
23774   # line-number line after each line using $LINENO; the second 'sed'
23775   # does the real work.  The second script uses 'N' to pair each
23776   # line-number line with the line containing $LINENO, and appends
23777   # trailing '-' during substitution so that $LINENO is not a special
23778   # case at line end.
23779   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23780   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23781   # E. McMahon (1931-1989) for sed's syntax.  :-)
23782   sed -n '
23783     p
23784     /[$]LINENO/=
23785   ' <$as_myself |
23786     sed '
23787       s/[$]LINENO.*/&-/
23788       t lineno
23789       b
23790       :lineno
23791       N
23792       :loop
23793       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23794       t loop
23795       s/-\n.*//
23796     ' >$as_me.lineno &&
23797   chmod +x "$as_me.lineno" ||
23798     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23799    { (exit 1); exit 1; }; }
23800
23801   # Don't try to exec as it changes $[0], causing all sort of problems
23802   # (the dirname of $[0] is not the place where we might find the
23803   # original and so on.  Autoconf is especially sensitive to this).
23804   . "./$as_me.lineno"
23805   # Exit status is that of the last command.
23806   exit
23807 }
23808
23809
23810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23811   as_dirname=dirname
23812 else
23813   as_dirname=false
23814 fi
23815
23816 ECHO_C= ECHO_N= ECHO_T=
23817 case `echo -n x` in
23818 -n*)
23819   case `echo 'x\c'` in
23820   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23821   *)   ECHO_C='\c';;
23822   esac;;
23823 *)
23824   ECHO_N='-n';;
23825 esac
23826
23827 if expr a : '\(a\)' >/dev/null 2>&1 &&
23828    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23829   as_expr=expr
23830 else
23831   as_expr=false
23832 fi
23833
23834 rm -f conf$$ conf$$.exe conf$$.file
23835 if test -d conf$$.dir; then
23836   rm -f conf$$.dir/conf$$.file
23837 else
23838   rm -f conf$$.dir
23839   mkdir conf$$.dir
23840 fi
23841 echo >conf$$.file
23842 if ln -s conf$$.file conf$$ 2>/dev/null; then
23843   as_ln_s='ln -s'
23844   # ... but there are two gotchas:
23845   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23846   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23847   # In both cases, we have to default to `cp -p'.
23848   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23849     as_ln_s='cp -p'
23850 elif ln conf$$.file conf$$ 2>/dev/null; then
23851   as_ln_s=ln
23852 else
23853   as_ln_s='cp -p'
23854 fi
23855 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23856 rmdir conf$$.dir 2>/dev/null
23857
23858 if mkdir -p . 2>/dev/null; then
23859   as_mkdir_p=:
23860 else
23861   test -d ./-p && rmdir ./-p
23862   as_mkdir_p=false
23863 fi
23864
23865 if test -x / >/dev/null 2>&1; then
23866   as_test_x='test -x'
23867 else
23868   if ls -dL / >/dev/null 2>&1; then
23869     as_ls_L_option=L
23870   else
23871     as_ls_L_option=
23872   fi
23873   as_test_x='
23874     eval sh -c '\''
23875       if test -d "$1"; then
23876         test -d "$1/.";
23877       else
23878         case $1 in
23879         -*)set "./$1";;
23880         esac;
23881         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23882         ???[sx]*):;;*)false;;esac;fi
23883     '\'' sh
23884   '
23885 fi
23886 as_executable_p=$as_test_x
23887
23888 # Sed expression to map a string onto a valid CPP name.
23889 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23890
23891 # Sed expression to map a string onto a valid variable name.
23892 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23893
23894
23895 exec 6>&1
23896
23897 # Save the log message, to keep $[0] and so on meaningful, and to
23898 # report actual input values of CONFIG_FILES etc. instead of their
23899 # values after options handling.
23900 ac_log="
23901 This file was extended by senna $as_me 1.1.2, which was
23902 generated by GNU Autoconf 2.61.  Invocation command line was
23903
23904   CONFIG_FILES    = $CONFIG_FILES
23905   CONFIG_HEADERS  = $CONFIG_HEADERS
23906   CONFIG_LINKS    = $CONFIG_LINKS
23907   CONFIG_COMMANDS = $CONFIG_COMMANDS
23908   $ $0 $@
23909
23910 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23911 "
23912
23913 _ACEOF
23914
23915 cat >>$CONFIG_STATUS <<_ACEOF
23916 # Files that config.status was made for.
23917 config_files="$ac_config_files"
23918 config_headers="$ac_config_headers"
23919 config_commands="$ac_config_commands"
23920
23921 _ACEOF
23922
23923 cat >>$CONFIG_STATUS <<\_ACEOF
23924 ac_cs_usage="\
23925 \`$as_me' instantiates files from templates according to the
23926 current configuration.
23927
23928 Usage: $0 [OPTIONS] [FILE]...
23929
23930   -h, --help       print this help, then exit
23931   -V, --version    print version number and configuration settings, then exit
23932   -q, --quiet      do not print progress messages
23933   -d, --debug      don't remove temporary files
23934       --recheck    update $as_me by reconfiguring in the same conditions
23935   --file=FILE[:TEMPLATE]
23936                    instantiate the configuration file FILE
23937   --header=FILE[:TEMPLATE]
23938                    instantiate the configuration header FILE
23939
23940 Configuration files:
23941 $config_files
23942
23943 Configuration headers:
23944 $config_headers
23945
23946 Configuration commands:
23947 $config_commands
23948
23949 Report bugs to <bug-autoconf@gnu.org>."
23950
23951 _ACEOF
23952 cat >>$CONFIG_STATUS <<_ACEOF
23953 ac_cs_version="\\
23954 senna config.status 1.1.2
23955 configured by $0, generated by GNU Autoconf 2.61,
23956   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23957
23958 Copyright (C) 2006 Free Software Foundation, Inc.
23959 This config.status script is free software; the Free Software Foundation
23960 gives unlimited permission to copy, distribute and modify it."
23961
23962 ac_pwd='$ac_pwd'
23963 srcdir='$srcdir'
23964 INSTALL='$INSTALL'
23965 _ACEOF
23966
23967 cat >>$CONFIG_STATUS <<\_ACEOF
23968 # If no file are specified by the user, then we need to provide default
23969 # value.  By we need to know if files were specified by the user.
23970 ac_need_defaults=:
23971 while test $# != 0
23972 do
23973   case $1 in
23974   --*=*)
23975     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23976     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23977     ac_shift=:
23978     ;;
23979   *)
23980     ac_option=$1
23981     ac_optarg=$2
23982     ac_shift=shift
23983     ;;
23984   esac
23985
23986   case $ac_option in
23987   # Handling of the options.
23988   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23989     ac_cs_recheck=: ;;
23990   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23991     echo "$ac_cs_version"; exit ;;
23992   --debug | --debu | --deb | --de | --d | -d )
23993     debug=: ;;
23994   --file | --fil | --fi | --f )
23995     $ac_shift
23996     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23997     ac_need_defaults=false;;
23998   --header | --heade | --head | --hea )
23999     $ac_shift
24000     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24001     ac_need_defaults=false;;
24002   --he | --h)
24003     # Conflict between --help and --header
24004     { echo "$as_me: error: ambiguous option: $1
24005 Try \`$0 --help' for more information." >&2
24006    { (exit 1); exit 1; }; };;
24007   --help | --hel | -h )
24008     echo "$ac_cs_usage"; exit ;;
24009   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24010   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24011     ac_cs_silent=: ;;
24012
24013   # This is an error.
24014   -*) { echo "$as_me: error: unrecognized option: $1
24015 Try \`$0 --help' for more information." >&2
24016    { (exit 1); exit 1; }; } ;;
24017
24018   *) ac_config_targets="$ac_config_targets $1"
24019      ac_need_defaults=false ;;
24020
24021   esac
24022   shift
24023 done
24024
24025 ac_configure_extra_args=
24026
24027 if $ac_cs_silent; then
24028   exec 6>/dev/null
24029   ac_configure_extra_args="$ac_configure_extra_args --silent"
24030 fi
24031
24032 _ACEOF
24033 cat >>$CONFIG_STATUS <<_ACEOF
24034 if \$ac_cs_recheck; then
24035   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24036   CONFIG_SHELL=$SHELL
24037   export CONFIG_SHELL
24038   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24039 fi
24040
24041 _ACEOF
24042 cat >>$CONFIG_STATUS <<\_ACEOF
24043 exec 5>>config.log
24044 {
24045   echo
24046   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24047 ## Running $as_me. ##
24048 _ASBOX
24049   echo "$ac_log"
24050 } >&5
24051
24052 _ACEOF
24053 cat >>$CONFIG_STATUS <<_ACEOF
24054 #
24055 # INIT-COMMANDS
24056 #
24057 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24058
24059 _ACEOF
24060
24061 cat >>$CONFIG_STATUS <<\_ACEOF
24062
24063 # Handling of arguments.
24064 for ac_config_target in $ac_config_targets
24065 do
24066   case $ac_config_target in
24067     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24068     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24069     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24070     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24071     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24072     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24073     "bindings/mysql/myisenna/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/mysql/myisenna/Makefile" ;;
24074     "senna-cfg") CONFIG_FILES="$CONFIG_FILES senna-cfg" ;;
24075     "senna.spec") CONFIG_FILES="$CONFIG_FILES senna.spec" ;;
24076     "vcc/config.h") CONFIG_FILES="$CONFIG_FILES vcc/config.h" ;;
24077     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24078
24079   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24080 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24081    { (exit 1); exit 1; }; };;
24082   esac
24083 done
24084
24085
24086 # If the user did not use the arguments to specify the items to instantiate,
24087 # then the envvar interface is used.  Set only those that are not.
24088 # We use the long form for the default assignment because of an extremely
24089 # bizarre bug on SunOS 4.1.3.
24090 if $ac_need_defaults; then
24091   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24092   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24093   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24094 fi
24095
24096 # Have a temporary directory for convenience.  Make it in the build tree
24097 # simply because there is no reason against having it here, and in addition,
24098 # creating and moving files from /tmp can sometimes cause problems.
24099 # Hook for its removal unless debugging.
24100 # Note that there is a small window in which the directory will not be cleaned:
24101 # after its creation but before its name has been assigned to `$tmp'.
24102 $debug ||
24103 {
24104   tmp=
24105   trap 'exit_status=$?
24106   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24107 ' 0
24108   trap '{ (exit 1); exit 1; }' 1 2 13 15
24109 }
24110 # Create a (secure) tmp directory for tmp files.
24111
24112 {
24113   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24114   test -n "$tmp" && test -d "$tmp"
24115 }  ||
24116 {
24117   tmp=./conf$$-$RANDOM
24118   (umask 077 && mkdir "$tmp")
24119 } ||
24120 {
24121    echo "$me: cannot create a temporary directory in ." >&2
24122    { (exit 1); exit 1; }
24123 }
24124
24125 #
24126 # Set up the sed scripts for CONFIG_FILES section.
24127 #
24128
24129 # No need to generate the scripts if there are no CONFIG_FILES.
24130 # This happens for instance when ./config.status config.h
24131 if test -n "$CONFIG_FILES"; then
24132
24133 _ACEOF
24134
24135
24136
24137 ac_delim='%!_!# '
24138 for ac_last_try in false false false false false :; do
24139   cat >conf$$subs.sed <<_ACEOF
24140 SHELL!$SHELL$ac_delim
24141 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24142 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24143 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24144 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24145 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24146 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24147 exec_prefix!$exec_prefix$ac_delim
24148 prefix!$prefix$ac_delim
24149 program_transform_name!$program_transform_name$ac_delim
24150 bindir!$bindir$ac_delim
24151 sbindir!$sbindir$ac_delim
24152 libexecdir!$libexecdir$ac_delim
24153 datarootdir!$datarootdir$ac_delim
24154 datadir!$datadir$ac_delim
24155 sysconfdir!$sysconfdir$ac_delim
24156 sharedstatedir!$sharedstatedir$ac_delim
24157 localstatedir!$localstatedir$ac_delim
24158 includedir!$includedir$ac_delim
24159 oldincludedir!$oldincludedir$ac_delim
24160 docdir!$docdir$ac_delim
24161 infodir!$infodir$ac_delim
24162 htmldir!$htmldir$ac_delim
24163 dvidir!$dvidir$ac_delim
24164 pdfdir!$pdfdir$ac_delim
24165 psdir!$psdir$ac_delim
24166 libdir!$libdir$ac_delim
24167 localedir!$localedir$ac_delim
24168 mandir!$mandir$ac_delim
24169 DEFS!$DEFS$ac_delim
24170 ECHO_C!$ECHO_C$ac_delim
24171 ECHO_N!$ECHO_N$ac_delim
24172 ECHO_T!$ECHO_T$ac_delim
24173 LIBS!$LIBS$ac_delim
24174 build_alias!$build_alias$ac_delim
24175 host_alias!$host_alias$ac_delim
24176 target_alias!$target_alias$ac_delim
24177 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24178 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24179 INSTALL_DATA!$INSTALL_DATA$ac_delim
24180 CYGPATH_W!$CYGPATH_W$ac_delim
24181 PACKAGE!$PACKAGE$ac_delim
24182 VERSION!$VERSION$ac_delim
24183 ACLOCAL!$ACLOCAL$ac_delim
24184 AUTOCONF!$AUTOCONF$ac_delim
24185 AUTOMAKE!$AUTOMAKE$ac_delim
24186 AUTOHEADER!$AUTOHEADER$ac_delim
24187 MAKEINFO!$MAKEINFO$ac_delim
24188 install_sh!$install_sh$ac_delim
24189 STRIP!$STRIP$ac_delim
24190 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24191 mkdir_p!$mkdir_p$ac_delim
24192 AWK!$AWK$ac_delim
24193 SET_MAKE!$SET_MAKE$ac_delim
24194 am__leading_dot!$am__leading_dot$ac_delim
24195 AMTAR!$AMTAR$ac_delim
24196 am__tar!$am__tar$ac_delim
24197 am__untar!$am__untar$ac_delim
24198 CC!$CC$ac_delim
24199 CFLAGS!$CFLAGS$ac_delim
24200 LDFLAGS!$LDFLAGS$ac_delim
24201 CPPFLAGS!$CPPFLAGS$ac_delim
24202 ac_ct_CC!$ac_ct_CC$ac_delim
24203 EXEEXT!$EXEEXT$ac_delim
24204 OBJEXT!$OBJEXT$ac_delim
24205 DEPDIR!$DEPDIR$ac_delim
24206 am__include!$am__include$ac_delim
24207 am__quote!$am__quote$ac_delim
24208 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24209 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24210 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24211 CCDEPMODE!$CCDEPMODE$ac_delim
24212 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24213 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24214 build!$build$ac_delim
24215 build_cpu!$build_cpu$ac_delim
24216 build_vendor!$build_vendor$ac_delim
24217 build_os!$build_os$ac_delim
24218 host!$host$ac_delim
24219 host_cpu!$host_cpu$ac_delim
24220 host_vendor!$host_vendor$ac_delim
24221 host_os!$host_os$ac_delim
24222 SED!$SED$ac_delim
24223 GREP!$GREP$ac_delim
24224 EGREP!$EGREP$ac_delim
24225 LN_S!$LN_S$ac_delim
24226 ECHO!$ECHO$ac_delim
24227 AR!$AR$ac_delim
24228 RANLIB!$RANLIB$ac_delim
24229 CPP!$CPP$ac_delim
24230 CXX!$CXX$ac_delim
24231 CXXFLAGS!$CXXFLAGS$ac_delim
24232 ac_ct_CXX!$ac_ct_CXX$ac_delim
24233 CXXDEPMODE!$CXXDEPMODE$ac_delim
24234 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24235 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24236 CXXCPP!$CXXCPP$ac_delim
24237 _ACEOF
24238
24239   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24240     break
24241   elif $ac_last_try; then
24242     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24243 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24244    { (exit 1); exit 1; }; }
24245   else
24246     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24247   fi
24248 done
24249
24250 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24251 if test -n "$ac_eof"; then
24252   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24253   ac_eof=`expr $ac_eof + 1`
24254 fi
24255
24256 cat >>$CONFIG_STATUS <<_ACEOF
24257 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24258 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24259 _ACEOF
24260 sed '
24261 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24262 s/^/s,@/; s/!/@,|#_!!_#|/
24263 :n
24264 t n
24265 s/'"$ac_delim"'$/,g/; t
24266 s/$/\\/; p
24267 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24268 ' >>$CONFIG_STATUS <conf$$subs.sed
24269 rm -f conf$$subs.sed
24270 cat >>$CONFIG_STATUS <<_ACEOF
24271 CEOF$ac_eof
24272 _ACEOF
24273
24274
24275 ac_delim='%!_!# '
24276 for ac_last_try in false false false false false :; do
24277   cat >conf$$subs.sed <<_ACEOF
24278 F77!$F77$ac_delim
24279 FFLAGS!$FFLAGS$ac_delim
24280 ac_ct_F77!$ac_ct_F77$ac_delim
24281 LIBTOOL!$LIBTOOL$ac_delim
24282 GCOV_LIBS!$GCOV_LIBS$ac_delim
24283 LCOV!$LCOV$ac_delim
24284 GENHTML!$GENHTML$ac_delim
24285 GCOV_CFLAGS!$GCOV_CFLAGS$ac_delim
24286 GCOV_ENABLED_TRUE!$GCOV_ENABLED_TRUE$ac_delim
24287 GCOV_ENABLED_FALSE!$GCOV_ENABLED_FALSE$ac_delim
24288 MYSQL_SRCDIR!$MYSQL_SRCDIR$ac_delim
24289 MECAB_CONFIG!$MECAB_CONFIG$ac_delim
24290 SENNA_LIBDIR!$SENNA_LIBDIR$ac_delim
24291 SENNA_INCLUDEDIR!$SENNA_INCLUDEDIR$ac_delim
24292 SENNA_CFLAGS!$SENNA_CFLAGS$ac_delim
24293 SENNA_LIBS!$SENNA_LIBS$ac_delim
24294 LIBOBJS!$LIBOBJS$ac_delim
24295 LTLIBOBJS!$LTLIBOBJS$ac_delim
24296 _ACEOF
24297
24298   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
24299     break
24300   elif $ac_last_try; then
24301     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24302 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24303    { (exit 1); exit 1; }; }
24304   else
24305     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24306   fi
24307 done
24308
24309 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24310 if test -n "$ac_eof"; then
24311   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24312   ac_eof=`expr $ac_eof + 1`
24313 fi
24314
24315 cat >>$CONFIG_STATUS <<_ACEOF
24316 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24318 _ACEOF
24319 sed '
24320 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24321 s/^/s,@/; s/!/@,|#_!!_#|/
24322 :n
24323 t n
24324 s/'"$ac_delim"'$/,g/; t
24325 s/$/\\/; p
24326 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24327 ' >>$CONFIG_STATUS <conf$$subs.sed
24328 rm -f conf$$subs.sed
24329 cat >>$CONFIG_STATUS <<_ACEOF
24330 :end
24331 s/|#_!!_#|//g
24332 CEOF$ac_eof
24333 _ACEOF
24334
24335
24336 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24337 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24338 # trailing colons and then remove the whole line if VPATH becomes empty
24339 # (actually we leave an empty line to preserve line numbers).
24340 if test "x$srcdir" = x.; then
24341   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24342 s/:*\$(srcdir):*/:/
24343 s/:*\${srcdir}:*/:/
24344 s/:*@srcdir@:*/:/
24345 s/^\([^=]*=[     ]*\):*/\1/
24346 s/:*$//
24347 s/^[^=]*=[       ]*$//
24348 }'
24349 fi
24350
24351 cat >>$CONFIG_STATUS <<\_ACEOF
24352 fi # test -n "$CONFIG_FILES"
24353
24354
24355 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
24356 do
24357   case $ac_tag in
24358   :[FHLC]) ac_mode=$ac_tag; continue;;
24359   esac
24360   case $ac_mode$ac_tag in
24361   :[FHL]*:*);;
24362   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24363 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24364    { (exit 1); exit 1; }; };;
24365   :[FH]-) ac_tag=-:-;;
24366   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24367   esac
24368   ac_save_IFS=$IFS
24369   IFS=:
24370   set x $ac_tag
24371   IFS=$ac_save_IFS
24372   shift
24373   ac_file=$1
24374   shift
24375
24376   case $ac_mode in
24377   :L) ac_source=$1;;
24378   :[FH])
24379     ac_file_inputs=
24380     for ac_f
24381     do
24382       case $ac_f in
24383       -) ac_f="$tmp/stdin";;
24384       *) # Look for the file first in the build tree, then in the source tree
24385          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24386          # because $ac_f cannot contain `:'.
24387          test -f "$ac_f" ||
24388            case $ac_f in
24389            [\\/$]*) false;;
24390            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24391            esac ||
24392            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24393 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24394    { (exit 1); exit 1; }; };;
24395       esac
24396       ac_file_inputs="$ac_file_inputs $ac_f"
24397     done
24398
24399     # Let's still pretend it is `configure' which instantiates (i.e., don't
24400     # use $as_me), people would be surprised to read:
24401     #    /* config.h.  Generated by config.status.  */
24402     configure_input="Generated from "`IFS=:
24403           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24404     if test x"$ac_file" != x-; then
24405       configure_input="$ac_file.  $configure_input"
24406       { echo "$as_me:$LINENO: creating $ac_file" >&5
24407 echo "$as_me: creating $ac_file" >&6;}
24408     fi
24409
24410     case $ac_tag in
24411     *:-:* | *:-) cat >"$tmp/stdin";;
24412     esac
24413     ;;
24414   esac
24415
24416   ac_dir=`$as_dirname -- "$ac_file" ||
24417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24418          X"$ac_file" : 'X\(//\)[^/]' \| \
24419          X"$ac_file" : 'X\(//\)$' \| \
24420          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24421 echo X"$ac_file" |
24422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24423             s//\1/
24424             q
24425           }
24426           /^X\(\/\/\)[^/].*/{
24427             s//\1/
24428             q
24429           }
24430           /^X\(\/\/\)$/{
24431             s//\1/
24432             q
24433           }
24434           /^X\(\/\).*/{
24435             s//\1/
24436             q
24437           }
24438           s/.*/./; q'`
24439   { as_dir="$ac_dir"
24440   case $as_dir in #(
24441   -*) as_dir=./$as_dir;;
24442   esac
24443   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24444     as_dirs=
24445     while :; do
24446       case $as_dir in #(
24447       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24448       *) as_qdir=$as_dir;;
24449       esac
24450       as_dirs="'$as_qdir' $as_dirs"
24451       as_dir=`$as_dirname -- "$as_dir" ||
24452 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24453          X"$as_dir" : 'X\(//\)[^/]' \| \
24454          X"$as_dir" : 'X\(//\)$' \| \
24455          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24456 echo X"$as_dir" |
24457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24458             s//\1/
24459             q
24460           }
24461           /^X\(\/\/\)[^/].*/{
24462             s//\1/
24463             q
24464           }
24465           /^X\(\/\/\)$/{
24466             s//\1/
24467             q
24468           }
24469           /^X\(\/\).*/{
24470             s//\1/
24471             q
24472           }
24473           s/.*/./; q'`
24474       test -d "$as_dir" && break
24475     done
24476     test -z "$as_dirs" || eval "mkdir $as_dirs"
24477   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24478 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24479    { (exit 1); exit 1; }; }; }
24480   ac_builddir=.
24481
24482 case "$ac_dir" in
24483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24484 *)
24485   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24486   # A ".." for each directory in $ac_dir_suffix.
24487   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24488   case $ac_top_builddir_sub in
24489   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24490   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24491   esac ;;
24492 esac
24493 ac_abs_top_builddir=$ac_pwd
24494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24495 # for backward compatibility:
24496 ac_top_builddir=$ac_top_build_prefix
24497
24498 case $srcdir in
24499   .)  # We are building in place.
24500     ac_srcdir=.
24501     ac_top_srcdir=$ac_top_builddir_sub
24502     ac_abs_top_srcdir=$ac_pwd ;;
24503   [\\/]* | ?:[\\/]* )  # Absolute name.
24504     ac_srcdir=$srcdir$ac_dir_suffix;
24505     ac_top_srcdir=$srcdir
24506     ac_abs_top_srcdir=$srcdir ;;
24507   *) # Relative name.
24508     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24509     ac_top_srcdir=$ac_top_build_prefix$srcdir
24510     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24511 esac
24512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24513
24514
24515   case $ac_mode in
24516   :F)
24517   #
24518   # CONFIG_FILE
24519   #
24520
24521   case $INSTALL in
24522   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24523   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24524   esac
24525 _ACEOF
24526
24527 cat >>$CONFIG_STATUS <<\_ACEOF
24528 # If the template does not know about datarootdir, expand it.
24529 # FIXME: This hack should be removed a few years after 2.60.
24530 ac_datarootdir_hack=; ac_datarootdir_seen=
24531
24532 case `sed -n '/datarootdir/ {
24533   p
24534   q
24535 }
24536 /@datadir@/p
24537 /@docdir@/p
24538 /@infodir@/p
24539 /@localedir@/p
24540 /@mandir@/p
24541 ' $ac_file_inputs` in
24542 *datarootdir*) ac_datarootdir_seen=yes;;
24543 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24544   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24545 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24546 _ACEOF
24547 cat >>$CONFIG_STATUS <<_ACEOF
24548   ac_datarootdir_hack='
24549   s&@datadir@&$datadir&g
24550   s&@docdir@&$docdir&g
24551   s&@infodir@&$infodir&g
24552   s&@localedir@&$localedir&g
24553   s&@mandir@&$mandir&g
24554     s&\\\${datarootdir}&$datarootdir&g' ;;
24555 esac
24556 _ACEOF
24557
24558 # Neutralize VPATH when `$srcdir' = `.'.
24559 # Shell code in configure.ac might set extrasub.
24560 # FIXME: do we really want to maintain this feature?
24561 cat >>$CONFIG_STATUS <<_ACEOF
24562   sed "$ac_vpsub
24563 $extrasub
24564 _ACEOF
24565 cat >>$CONFIG_STATUS <<\_ACEOF
24566 :t
24567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24568 s&@configure_input@&$configure_input&;t t
24569 s&@top_builddir@&$ac_top_builddir_sub&;t t
24570 s&@srcdir@&$ac_srcdir&;t t
24571 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24572 s&@top_srcdir@&$ac_top_srcdir&;t t
24573 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24574 s&@builddir@&$ac_builddir&;t t
24575 s&@abs_builddir@&$ac_abs_builddir&;t t
24576 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24577 s&@INSTALL@&$ac_INSTALL&;t t
24578 $ac_datarootdir_hack
24579 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24580
24581 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24582   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24583   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24584   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24585 which seems to be undefined.  Please make sure it is defined." >&5
24586 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24587 which seems to be undefined.  Please make sure it is defined." >&2;}
24588
24589   rm -f "$tmp/stdin"
24590   case $ac_file in
24591   -) cat "$tmp/out"; rm -f "$tmp/out";;
24592   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24593   esac
24594  ;;
24595   :H)
24596   #
24597   # CONFIG_HEADER
24598   #
24599 _ACEOF
24600
24601 # Transform confdefs.h into a sed script `conftest.defines', that
24602 # substitutes the proper values into config.h.in to produce config.h.
24603 rm -f conftest.defines conftest.tail
24604 # First, append a space to every undef/define line, to ease matching.
24605 echo 's/$/ /' >conftest.defines
24606 # Then, protect against being on the right side of a sed subst, or in
24607 # an unquoted here document, in config.status.  If some macros were
24608 # called several times there might be several #defines for the same
24609 # symbol, which is useless.  But do not sort them, since the last
24610 # AC_DEFINE must be honored.
24611 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24612 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24613 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24614 # PARAMS is the parameter list in the macro definition--in most cases, it's
24615 # just an empty string.
24616 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24617 ac_dB='\\)[      (].*,\\1define\\2'
24618 ac_dC=' '
24619 ac_dD=' ,'
24620
24621 uniq confdefs.h |
24622   sed -n '
24623         t rset
24624         :rset
24625         s/^[     ]*#[    ]*define[       ][      ]*//
24626         t ok
24627         d
24628         :ok
24629         s/[\\&,]/\\&/g
24630         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24631         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24632   ' >>conftest.defines
24633
24634 # Remove the space that was appended to ease matching.
24635 # Then replace #undef with comments.  This is necessary, for
24636 # example, in the case of _POSIX_SOURCE, which is predefined and required
24637 # on some systems where configure will not decide to define it.
24638 # (The regexp can be short, since the line contains either #define or #undef.)
24639 echo 's/ $//
24640 s,^[     #]*u.*,/* & */,' >>conftest.defines
24641
24642 # Break up conftest.defines:
24643 ac_max_sed_lines=50
24644
24645 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24646 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24647 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24648 # et cetera.
24649 ac_in='$ac_file_inputs'
24650 ac_out='"$tmp/out1"'
24651 ac_nxt='"$tmp/out2"'
24652
24653 while :
24654 do
24655   # Write a here document:
24656     cat >>$CONFIG_STATUS <<_ACEOF
24657     # First, check the format of the line:
24658     cat >"\$tmp/defines.sed" <<\\CEOF
24659 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24660 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24661 b
24662 :def
24663 _ACEOF
24664   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24665   echo 'CEOF
24666     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24667   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24668   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24669   grep . conftest.tail >/dev/null || break
24670   rm -f conftest.defines
24671   mv conftest.tail conftest.defines
24672 done
24673 rm -f conftest.defines conftest.tail
24674
24675 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24677   if test x"$ac_file" != x-; then
24678     echo "/* $configure_input  */" >"$tmp/config.h"
24679     cat "$ac_result" >>"$tmp/config.h"
24680     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24681       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24682 echo "$as_me: $ac_file is unchanged" >&6;}
24683     else
24684       rm -f $ac_file
24685       mv "$tmp/config.h" $ac_file
24686     fi
24687   else
24688     echo "/* $configure_input  */"
24689     cat "$ac_result"
24690   fi
24691   rm -f "$tmp/out12"
24692 # Compute $ac_file's index in $config_headers.
24693 _am_stamp_count=1
24694 for _am_header in $config_headers :; do
24695   case $_am_header in
24696     $ac_file | $ac_file:* )
24697       break ;;
24698     * )
24699       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24700   esac
24701 done
24702 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24703 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24704          X$ac_file : 'X\(//\)[^/]' \| \
24705          X$ac_file : 'X\(//\)$' \| \
24706          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24707 echo X$ac_file |
24708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24709             s//\1/
24710             q
24711           }
24712           /^X\(\/\/\)[^/].*/{
24713             s//\1/
24714             q
24715           }
24716           /^X\(\/\/\)$/{
24717             s//\1/
24718             q
24719           }
24720           /^X\(\/\).*/{
24721             s//\1/
24722             q
24723           }
24724           s/.*/./; q'`/stamp-h$_am_stamp_count
24725  ;;
24726
24727   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24728 echo "$as_me: executing $ac_file commands" >&6;}
24729  ;;
24730   esac
24731
24732
24733   case $ac_file$ac_mode in
24734     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24735   # Strip MF so we end up with the name of the file.
24736   mf=`echo "$mf" | sed -e 's/:.*$//'`
24737   # Check whether this is an Automake generated Makefile or not.
24738   # We used to match only the files named `Makefile.in', but
24739   # some people rename them; so instead we look at the file content.
24740   # Grep'ing the first line is not enough: some people post-process
24741   # each Makefile.in and add a new line on top of each file to say so.
24742   # So let's grep whole file.
24743   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24744     dirpart=`$as_dirname -- "$mf" ||
24745 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24746          X"$mf" : 'X\(//\)[^/]' \| \
24747          X"$mf" : 'X\(//\)$' \| \
24748          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24749 echo X"$mf" |
24750     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24751             s//\1/
24752             q
24753           }
24754           /^X\(\/\/\)[^/].*/{
24755             s//\1/
24756             q
24757           }
24758           /^X\(\/\/\)$/{
24759             s//\1/
24760             q
24761           }
24762           /^X\(\/\).*/{
24763             s//\1/
24764             q
24765           }
24766           s/.*/./; q'`
24767   else
24768     continue
24769   fi
24770   # Extract the definition of DEPDIR, am__include, and am__quote
24771   # from the Makefile without running `make'.
24772   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24773   test -z "$DEPDIR" && continue
24774   am__include=`sed -n 's/^am__include = //p' < "$mf"`
24775   test -z "am__include" && continue
24776   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24777   # When using ansi2knr, U may be empty or an underscore; expand it
24778   U=`sed -n 's/^U = //p' < "$mf"`
24779   # Find all dependency output files, they are included files with
24780   # $(DEPDIR) in their names.  We invoke sed twice because it is the
24781   # simplest approach to changing $(DEPDIR) to its actual value in the
24782   # expansion.
24783   for file in `sed -n "
24784     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24785        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24786     # Make sure the directory exists.
24787     test -f "$dirpart/$file" && continue
24788     fdir=`$as_dirname -- "$file" ||
24789 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24790          X"$file" : 'X\(//\)[^/]' \| \
24791          X"$file" : 'X\(//\)$' \| \
24792          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24793 echo X"$file" |
24794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24795             s//\1/
24796             q
24797           }
24798           /^X\(\/\/\)[^/].*/{
24799             s//\1/
24800             q
24801           }
24802           /^X\(\/\/\)$/{
24803             s//\1/
24804             q
24805           }
24806           /^X\(\/\).*/{
24807             s//\1/
24808             q
24809           }
24810           s/.*/./; q'`
24811     { as_dir=$dirpart/$fdir
24812   case $as_dir in #(
24813   -*) as_dir=./$as_dir;;
24814   esac
24815   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24816     as_dirs=
24817     while :; do
24818       case $as_dir in #(
24819       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24820       *) as_qdir=$as_dir;;
24821       esac
24822       as_dirs="'$as_qdir' $as_dirs"
24823       as_dir=`$as_dirname -- "$as_dir" ||
24824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24825          X"$as_dir" : 'X\(//\)[^/]' \| \
24826          X"$as_dir" : 'X\(//\)$' \| \
24827          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24828 echo X"$as_dir" |
24829     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24830             s//\1/
24831             q
24832           }
24833           /^X\(\/\/\)[^/].*/{
24834             s//\1/
24835             q
24836           }
24837           /^X\(\/\/\)$/{
24838             s//\1/
24839             q
24840           }
24841           /^X\(\/\).*/{
24842             s//\1/
24843             q
24844           }
24845           s/.*/./; q'`
24846       test -d "$as_dir" && break
24847     done
24848     test -z "$as_dirs" || eval "mkdir $as_dirs"
24849   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24850 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24851    { (exit 1); exit 1; }; }; }
24852     # echo "creating $dirpart/$file"
24853     echo '# dummy' > "$dirpart/$file"
24854   done
24855 done
24856  ;;
24857     "default":C) chmod +x senna-cfg ;;
24858
24859   esac
24860 done # for ac_tag
24861
24862
24863 { (exit 0); exit 0; }
24864 _ACEOF
24865 chmod +x $CONFIG_STATUS
24866 ac_clean_files=$ac_clean_files_save
24867
24868
24869 # configure is writing to config.log, and then calls config.status.
24870 # config.status does its own redirection, appending to config.log.
24871 # Unfortunately, on DOS this fails, as config.log is still kept open
24872 # by configure, so config.status won't be able to write to it; its
24873 # output is simply discarded.  So we exec the FD to /dev/null,
24874 # effectively closing config.log, so it can be properly (re)opened and
24875 # appended to by config.status.  When coming back to configure, we
24876 # need to make the FD available again.
24877 if test "$no_create" != yes; then
24878   ac_cs_success=:
24879   ac_config_status_args=
24880   test "$silent" = yes &&
24881     ac_config_status_args="$ac_config_status_args --quiet"
24882   exec 5>/dev/null
24883   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24884   exec 5>>config.log
24885   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24886   # would make configure fail if this is the last instruction.
24887   $ac_cs_success || { (exit 1); exit 1; }
24888 fi
24889
24890
24891 echo "
24892 $PACKAGE_NAME $PACKAGE_VERSION configuration:
24893 -----------------------
24894   Compiler:              ${CC}
24895   CFLAGS:                ${CFLAGS}
24896   Libraries:             ${LIBS}
24897
24898   Install path prefix:   ${prefix}
24899
24900 Now type 'make' to build $PACKAGE_NAME $PACKAGE_VERSION!
24901 "