~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Bochs x86 Emulator
bochs/configure

Version: ~ [ 2.3.5 ] ~ [ 2.3 ] ~

  1 #! /bin/sh
  2 # From configure.in Id: configure.in,v 1.339 2007/07/31 20:25:51 sshwarts Exp .
  3 # Guess values for system-dependent variables and create Makefiles.
  4 # Generated by GNU Autoconf 2.60.
  5 #
  6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8 # This configure script is free software; the Free Software Foundation
  9 # gives unlimited permission to copy, distribute and modify it.
 10 ## --------------------- ##
 11 ## M4sh Initialization.  ##
 12 ## --------------------- ##
 13 
 14 # Be Bourne compatible
 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 16   emulate sh
 17   NULLCMD=:
 18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 19   # is contrary to our usage.  Disable this feature.
 20   alias -g '${1+"$@"}'='"$@"'
 21   setopt NO_GLOB_SUBST
 22 else
 23   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 24 fi
 25 BIN_SH=xpg4; export BIN_SH # for Tru64
 26 DUALCASE=1; export DUALCASE # for MKS sh
 27 
 28 
 29 # PATH needs CR
 30 # Avoid depending upon Character Ranges.
 31 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 32 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 33 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 34 as_cr_digits='0123456789'
 35 as_cr_alnum=$as_cr_Letters$as_cr_digits
 36 
 37 # The user is always right.
 38 if test "${PATH_SEPARATOR+set}" != set; then
 39   echo "#! /bin/sh" >conf$$.sh
 40   echo  "exit 0"   >>conf$$.sh
 41   chmod +x conf$$.sh
 42   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 43     PATH_SEPARATOR=';'
 44   else
 45     PATH_SEPARATOR=:
 46   fi
 47   rm -f conf$$.sh
 48 fi
 49 
 50 # Support unset when possible.
 51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 52   as_unset=unset
 53 else
 54   as_unset=false
 55 fi
 56 
 57 
 58 # IFS
 59 # We need space, tab and new line, in precisely that order.  Quoting is
 60 # there to prevent editors from complaining about space-tab.
 61 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 62 # splitting by setting IFS to empty value.)
 63 as_nl='
 64 '
 65 IFS=" ""        $as_nl"
 66 
 67 # Find who we are.  Look in the path if we contain no directory separator.
 68 case $0 in
 69   *[\\/]* ) as_myself=$0 ;;
 70   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 71 for as_dir in $PATH
 72 do
 73   IFS=$as_save_IFS
 74   test -z "$as_dir" && as_dir=.
 75   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 76 done
 77 IFS=$as_save_IFS
 78 
 79      ;;
 80 esac
 81 # We did not find ourselves, most probably we were run as `sh COMMAND'
 82 # in which case we are not to be found in the path.
 83 if test "x$as_myself" = x; then
 84   as_myself=$0
 85 fi
 86 if test ! -f "$as_myself"; then
 87   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 88   { (exit 1); exit 1; }
 89 fi
 90 
 91 # Work around bugs in pre-3.0 UWIN ksh.
 92 for as_var in ENV MAIL MAILPATH
 93 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 94 done
 95 PS1='$ '
 96 PS2='> '
 97 PS4='+ '
 98 
 99 # NLS nuisances.
100 for as_var in \
101   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
102   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
103   LC_TELEPHONE LC_TIME
104 do
105   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
106     eval $as_var=C; export $as_var
107   else
108     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109   fi
110 done
111 
112 # Required to use basename.
113 if expr a : '\(a\)' >/dev/null 2>&1 &&
114    test "X`expr 00001 : '.*\(...\)'`" = X001; then
115   as_expr=expr
116 else
117   as_expr=false
118 fi
119 
120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
121   as_basename=basename
122 else
123   as_basename=false
124 fi
125 
126 
127 # Name of the executable.
128 as_me=`$as_basename -- "$0" ||
129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
130          X"$0" : 'X\(//\)$' \| \
131          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 echo X/"$0" |
133     sed '/^.*\/\([^/][^/]*\)\/*$/{
134             s//\1/
135             q
136           }
137           /^X\/\(\/\/\)$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\).*/{
142             s//\1/
143             q
144           }
145           s/.*/./; q'`
146 
147 # CDPATH.
148 $as_unset CDPATH
149 
150 
151 if test "x$CONFIG_SHELL" = x; then
152   if (eval ":") 2>/dev/null; then
153   as_have_required=yes
154 else
155   as_have_required=no
156 fi
157 
158   if test $as_have_required = yes &&     (eval ":
159 (as_func_return () {
160   (exit \$1)
161 }
162 as_func_success () {
163   as_func_return 0
164 }
165 as_func_failure () {
166   as_func_return 1
167 }
168 as_func_ret_success () {
169   return 0
170 }
171 as_func_ret_failure () {
172   return 1
173 }
174 
175 exitcode=0
176 if as_func_success; then
177   :
178 else
179   exitcode=1
180   echo as_func_success failed.
181 fi
182 
183 if as_func_failure; then
184   exitcode=1
185   echo as_func_failure succeeded.
186 fi
187 
188 if as_func_ret_success; then
189   :
190 else
191   exitcode=1
192   echo as_func_ret_success failed.
193 fi
194 
195 if as_func_ret_failure; then
196   exitcode=1
197   echo as_func_ret_failure succeeded.
198 fi
199 
200 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
201   :
202 else
203   exitcode=1
204   echo positional parameters were not saved.
205 fi
206 
207 test \$exitcode = 0) || { (exit 1); exit 1; }
208 
209 (
210   as_lineno_1=\$LINENO
211   as_lineno_2=\$LINENO
212   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
213   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
214 ") 2> /dev/null; then
215   :
216 else
217   as_candidate_shells=
218     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 do
221   IFS=$as_save_IFS
222   test -z "$as_dir" && as_dir=.
223   case $as_dir in
224          /*)
225            for as_base in sh bash ksh sh5; do
226              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
227            done;;
228        esac
229 done
230 IFS=$as_save_IFS
231 
232 
233       for as_shell in $as_candidate_shells $SHELL; do
234          # Try only shells that exist, to save several forks.
235          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
236                 { ("$as_shell") 2> /dev/null <<\_ASEOF
237 # Be Bourne compatible
238 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
239   emulate sh
240   NULLCMD=:
241   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
242   # is contrary to our usage.  Disable this feature.
243   alias -g '${1+"$@"}'='"$@"'
244   setopt NO_GLOB_SUBST
245 else
246   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 fi
248 BIN_SH=xpg4; export BIN_SH # for Tru64
249 DUALCASE=1; export DUALCASE # for MKS sh
250 
251 :
252 _ASEOF
253 }; then
254   CONFIG_SHELL=$as_shell
255                as_have_required=yes
256                if { "$as_shell" 2> /dev/null <<\_ASEOF
257 # Be Bourne compatible
258 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
259   emulate sh
260   NULLCMD=:
261   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
262   # is contrary to our usage.  Disable this feature.
263   alias -g '${1+"$@"}'='"$@"'
264   setopt NO_GLOB_SUBST
265 else
266   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 fi
268 BIN_SH=xpg4; export BIN_SH # for Tru64
269 DUALCASE=1; export DUALCASE # for MKS sh
270 
271 :
272 (as_func_return () {
273   (exit $1)
274 }
275 as_func_success () {
276   as_func_return 0
277 }
278 as_func_failure () {
279   as_func_return 1
280 }
281 as_func_ret_success () {
282   return 0
283 }
284 as_func_ret_failure () {
285   return 1
286 }
287 
288 exitcode=0
289 if as_func_success; then
290   :
291 else
292   exitcode=1
293   echo as_func_success failed.
294 fi
295 
296 if as_func_failure; then
297   exitcode=1
298   echo as_func_failure succeeded.
299 fi
300 
301 if as_func_ret_success; then
302   :
303 else
304   exitcode=1
305   echo as_func_ret_success failed.
306 fi
307 
308 if as_func_ret_failure; then
309   exitcode=1
310   echo as_func_ret_failure succeeded.
311 fi
312 
313 if ( set x; as_func_ret_success y && test x = "$1" ); then
314   :
315 else
316   exitcode=1
317   echo positional parameters were not saved.
318 fi
319 
320 test $exitcode = 0) || { (exit 1); exit 1; }
321 
322 (
323   as_lineno_1=$LINENO
324   as_lineno_2=$LINENO
325   test "x$as_lineno_1" != "x$as_lineno_2" &&
326   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
327 
328 _ASEOF
329 }; then
330   break
331 fi
332 
333 fi
334 
335       done
336 
337       if test "x$CONFIG_SHELL" != x; then
338   for as_var in BASH_ENV ENV
339         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
340         done
341         export CONFIG_SHELL
342         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
343 fi
344 
345 
346     if test $as_have_required = no; then
347   echo This script requires a shell more modern than all the
348       echo shells that I found on your system.  Please install a
349       echo modern shell, or manually run the script under such a
350       echo shell if you do have one.
351       { (exit 1); exit 1; }
352 fi
353 
354 
355 fi
356 
357 fi
358 
359 
360 
361 (eval "as_func_return () {
362   (exit \$1)
363 }
364 as_func_success () {
365   as_func_return 0
366 }
367 as_func_failure () {
368   as_func_return 1
369 }
370 as_func_ret_success () {
371   return 0
372 }
373 as_func_ret_failure () {
374   return 1
375 }
376 
377 exitcode=0
378 if as_func_success; then
379   :
380 else
381   exitcode=1
382   echo as_func_success failed.
383 fi
384 
385 if as_func_failure; then
386   exitcode=1
387   echo as_func_failure succeeded.
388 fi
389 
390 if as_func_ret_success; then
391   :
392 else
393   exitcode=1
394   echo as_func_ret_success failed.
395 fi
396 
397 if as_func_ret_failure; then
398   exitcode=1
399   echo as_func_ret_failure succeeded.
400 fi
401 
402 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
403   :
404 else
405   exitcode=1
406   echo positional parameters were not saved.
407 fi
408 
409 test \$exitcode = 0") || {
410   echo No shell found that supports shell functions.
411   echo Please tell autoconf@gnu.org about your system,
412   echo including any error possibly output before this
413   echo message
414 }
415 
416 
417 
418   as_lineno_1=$LINENO
419   as_lineno_2=$LINENO
420   test "x$as_lineno_1" != "x$as_lineno_2" &&
421   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 
423   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
424   # uniformly replaced by the line number.  The first 'sed' inserts a
425   # line-number line after each line using $LINENO; the second 'sed'
426   # does the real work.  The second script uses 'N' to pair each
427   # line-number line with the line containing $LINENO, and appends
428   # trailing '-' during substitution so that $LINENO is not a special
429   # case at line end.
430   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
431   # scripts with optimization help from Paolo Bonzini.  Blame Lee
432   # E. McMahon (1931-1989) for sed's syntax.  :-)
433   sed -n '
434     p
435     /[$]LINENO/=
436   ' <$as_myself |
437     sed '
438       s/[$]LINENO.*/&-/
439       t lineno
440       b
441       :lineno
442       N
443       :loop
444       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445       t loop
446       s/-\n.*//
447     ' >$as_me.lineno &&
448   chmod +x "$as_me.lineno" ||
449     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
450    { (exit 1); exit 1; }; }
451 
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459 
460 
461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
462   as_dirname=dirname
463 else
464   as_dirname=false
465 fi
466 
467 ECHO_C= ECHO_N= ECHO_T=
468 case `echo -n x` in
469 -n*)
470   case `echo 'x\c'` in
471   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
472   *)   ECHO_C='\c';;
473   esac;;
474 *)
475   ECHO_N='-n';;
476 esac
477 
478 if expr a : '\(a\)' >/dev/null 2>&1 &&
479    test "X`expr 00001 : '.*\(...\)'`" = X001; then
480   as_expr=expr
481 else
482   as_expr=false
483 fi
484 
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir
491 fi
492 echo >conf$$.file
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494   as_ln_s='ln -s'
495   # ... but there are two gotchas:
496   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498   # In both cases, we have to default to `cp -p'.
499   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500     as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502   as_ln_s=ln
503 else
504   as_ln_s='cp -p'
505 fi
506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
507 rmdir conf$$.dir 2>/dev/null
508 
509 if mkdir -p . 2>/dev/null; then
510   as_mkdir_p=:
511 else
512   test -d ./-p && rmdir ./-p
513   as_mkdir_p=false
514 fi
515 
516 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
517 # systems may use methods other than mode bits to determine executability.
518 cat >conf$$.file <<_ASEOF
519 #! /bin/sh
520 exit 0
521 _ASEOF
522 chmod +x conf$$.file
523 if test -x conf$$.file >/dev/null 2>&1; then
524   as_executable_p="test -x"
525 else
526   as_executable_p=:
527 fi
528 rm -f conf$$.file
529 
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 
536 
537 
538 
539 # Check that we are running under the correct shell.
540 SHELL=${CONFIG_SHELL-/bin/sh}
541 
542 case X$ECHO in
543 X*--fallback-echo)
544   # Remove one level of quotation (which was required for Make).
545   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546   ;;
547 esac
548 
549 echo=${ECHO-echo}
550 if test "X$1" = X--no-reexec; then
551   # Discard the --no-reexec flag, and continue.
552   shift
553 elif test "X$1" = X--fallback-echo; then
554   # Avoid inline document here, it may be left over
555   :
556 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
557   # Yippee, $echo works!
558   :
559 else
560   # Restart under the correct shell.
561   exec $SHELL "$0" --no-reexec ${1+"$@"}
562 fi
563 
564 if test "X$1" = X--fallback-echo; then
565   # used as fallback echo
566   shift
567   cat <<EOF
568 $*
569 EOF
570   exit 0
571 fi
572 
573 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 # if CDPATH is set.
575 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
576 
577 if test -z "$ECHO"; then
578 if test "X${echo_test_string+set}" != Xset; then
579 # find a string as large as possible, as long as the shell can cope with it
580   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
581     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
582     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
583        echo_test_string="`eval $cmd`" &&
584        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
585     then
586       break
587     fi
588   done
589 fi
590 
591 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
592    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
593    test "X$echo_testing_string" = "X$echo_test_string"; then
594   :
595 else
596   # The Solaris, AIX, and Digital Unix default echo programs unquote
597   # backslashes.  This makes it impossible to quote backslashes using
598   #   echo "$something" | sed 's/\\/\\\\/g'
599   #
600   # So, first we look for a working echo in the user's PATH.
601 
602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
603   for dir in $PATH /usr/ucb; do
604     IFS="$lt_save_ifs"
605     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
606        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
607        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
608        test "X$echo_testing_string" = "X$echo_test_string"; then
609       echo="$dir/echo"
610       break
611     fi
612   done
613   IFS="$lt_save_ifs"
614 
615   if test "X$echo" = Xecho; then
616     # We didn't find a better echo, so look for alternatives.
617     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
618        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
619        test "X$echo_testing_string" = "X$echo_test_string"; then
620       # This shell has a builtin print -r that does the trick.
621       echo='print -r'
622     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
623          test "X$CONFIG_SHELL" != X/bin/ksh; then
624       # If we have ksh, try running configure again with it.
625       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
626       export ORIGINAL_CONFIG_SHELL
627       CONFIG_SHELL=/bin/ksh
628       export CONFIG_SHELL
629       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
630     else
631       # Try using printf.
632       echo='printf %s\n'
633       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
634          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
635          test "X$echo_testing_string" = "X$echo_test_string"; then
636         # Cool, printf works
637         :
638       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639            test "X$echo_testing_string" = 'X\t' &&
640            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641            test "X$echo_testing_string" = "X$echo_test_string"; then
642         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643         export CONFIG_SHELL
644         SHELL="$CONFIG_SHELL"
645         export SHELL
646         echo="$CONFIG_SHELL $0 --fallback-echo"
647       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
648            test "X$echo_testing_string" = 'X\t' &&
649            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
650            test "X$echo_testing_string" = "X$echo_test_string"; then
651         echo="$CONFIG_SHELL $0 --fallback-echo"
652       else
653         # maybe with a smaller string...
654         prev=:
655 
656         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
657           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
658           then
659             break
660           fi
661           prev="$cmd"
662         done
663 
664         if test "$prev" != 'sed 50q "$0"'; then
665           echo_test_string=`eval $prev`
666           export echo_test_string
667           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668         else
669           # Oops.  We lost completely, so just stick with echo.
670           echo=echo
671         fi
672       fi
673     fi
674   fi
675 fi
676 fi
677 
678 # Copy echo and quote the copy suitably for passing to libtool from
679 # the Makefile, instead of quoting the original, which is used later.
680 ECHO=$echo
681 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
682    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 fi
684 
685 
686 
687 
688 tagnames=${tagnames+${tagnames},}CXX
689 
690 tagnames=${tagnames+${tagnames},}F77
691 
692 exec 7<&0 </dev/null 6>&1
693 
694 # Name of the host.
695 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
696 # so uname gets run too.
697 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
698 
699 #
700 # Initializations.
701 #
702 ac_default_prefix=/usr/local
703 ac_clean_files=
704 ac_config_libobj_dir=.
705 LIBOBJS=
706 cross_compiling=no
707 subdirs=
708 MFLAGS=
709 MAKEFLAGS=
710 SHELL=${CONFIG_SHELL-/bin/sh}
711 
712 # Identity of this package.
713 PACKAGE_NAME=
714 PACKAGE_TARNAME=
715 PACKAGE_VERSION=
716 PACKAGE_STRING=
717 PACKAGE_BUGREPORT=
718 
719 ac_unique_file="bochs.h"
720 # Factoring default headers for most tests.
721 ac_includes_default="\
722 #include <stdio.h>
723 #if HAVE_SYS_TYPES_H
724 # include <sys/types.h>
725 #endif
726 #if HAVE_SYS_STAT_H
727 # include <sys/stat.h>
728 #endif
729 #if STDC_HEADERS
730 # include <stdlib.h>
731 # include <stddef.h>
732 #else
733 # if HAVE_STDLIB_H
734 #  include <stdlib.h>
735 # endif
736 #endif
737 #if HAVE_STRING_H
738 # if !STDC_HEADERS && HAVE_MEMORY_H
739 #  include <memory.h>
740 # endif
741 # include <string.h>
742 #endif
743 #if HAVE_STRINGS_H
744 # include <strings.h>
745 #endif
746 #if HAVE_INTTYPES_H
747 # include <inttypes.h>
748 #endif
749 #if HAVE_STDINT_H
750 # include <stdint.h>
751 #endif
752 #if HAVE_UNISTD_H
753 # include <unistd.h>
754 #endif"
755 
756 ac_subst_vars='SHELL
757 PATH_SEPARATOR
758 PACKAGE_NAME
759 PACKAGE_TARNAME
760 PACKAGE_VERSION
761 PACKAGE_STRING
762 PACKAGE_BUGREPORT
763 exec_prefix
764 prefix
765 program_transform_name
766 bindir
767 sbindir
768 libexecdir
769 datarootdir
770 datadir
771 sysconfdir
772 sharedstatedir
773 localstatedir
774 includedir
775 oldincludedir
776 docdir
777 infodir
778 htmldir
779 dvidir
780 pdfdir
781 psdir
782 libdir
783 localedir
784 mandir
785 DEFS
786 ECHO_C
787 ECHO_N
788 ECHO_T
789 LIBS
790 build_alias
791 host_alias
792 target_alias
793 build
794 build_cpu
795 build_vendor
796 build_os
797 host
798 host_cpu
799 host_vendor
800 host_os
801 target
802 target_cpu
803 target_vendor
804 target_os
805 CC
806 CFLAGS
807 LDFLAGS
808 CPPFLAGS
809 ac_ct_CC
810 EXEEXT
811 OBJEXT
812 CXX
813 CXXFLAGS
814 ac_ct_CXX
815 SET_MAKE
816 GREP
817 EGREP
818 LN_S
819 ECHO
820 AR
821 RANLIB
822 STRIP
823 CPP
824 CXXCPP
825 F77
826 FFLAGS
827 ac_ct_F77
828 LIBTOOL
829 LIBADD_DL
830 XMKMF
831 X_CFLAGS
832 X_PRE_LIBS
833 X_LIBS
834 X_EXTRA_LIBS
835 BX_USE_IDLE_HACK
836 DEFINE_PLUGIN_PATH
837 NONPLUGIN_GUI_LINK_OPTS
838 OBJS64
839 IOAPIC_OBJS
840 APIC_OBJS
841 BX_COMPRESSED_HD_SUPPORT
842 NE2K_OBJS
843 BX_SUPPORT_ACPI
844 PCI_OBJ
845 KERNELDIR
846 LSMOD
847 INSMOD
848 RMMOD
849 DEPMOD
850 PCIDEV_MODULE_MAKE_ALL
851 KERNEL_MODULE_SUFFIX
852 USBDEV_OBJS
853 SCSI_OBJS
854 NETLOW_OBJS
855 SUFFIX_LINE
856 CPP_SUFFIX
857 DEBUGGER_VAR
858 BX_EXTERNAL_DEBUGGER
859 BX_MAGIC_BREAKPOINT
860 DISASM_VAR
861 READLINE_LIB
862 INSTRUMENT_DIR
863 INSTRUMENT_VAR
864 FPU_VAR
865 CDROM_OBJS
866 SB16_OBJS
867 SOUNDLOW_OBJS
868 GAME_OBJS
869 GDBSTUB_VAR
870 IODEBUG_OBJS
871 DOCBOOK2HTML
872 BUILD_DOCBOOK_VAR
873 INSTALL_DOCBOOK_VAR
874 IODEV_LIB_VAR
875 EXTRA_BX_OBJS
876 NONINLINE_VAR
877 INLINE_VAR
878 EXTERNAL_DEPENDENCY
879 EXT_DEBUG_OBJS
880 RC_CMD
881 WX_CONFIG
882 XPM_LIB
883 PKG_CONFIG
884 GTK_CFLAGS
885 GTK_LIBS
886 GUI_CFLAGS
887 GUI_CXXFLAGS
888 WX_CFLAGS
889 WX_CXXFLAGS
890 WGET
891 DIALOG_OBJS
892 EXPORT_DYNAMIC
893 PTHREAD_CC
894 PTHREAD_LIBS
895 PTHREAD_CFLAGS
896 INSTALL_TARGET
897 INSTALL_LIST_FOR_PLATFORM
898 RFB_LIBS
899 GUI_OBJS
900 DEVICE_LINK_OPTS
901 GUI_LINK_OPTS
902 GUI_LINK_OPTS_TERM
903 GUI_LINK_OPTS_WX
904 BXIMAGE_LINK_OPTS
905 DASH
906 SLASH
907 CXXFP
908 CFP
909 OFP
910 MAKELIB
911 RMCOMMAND
912 LINK
913 LINK_CONSOLE
914 EXE
915 PRIMARY_TARGET
916 PLUGIN_LIBNAME_TRANSFORMATION
917 COMMAND_SEPARATOR
918 CD_UP_ONE
919 CD_UP_TWO
920 CD_UP_THREE
921 VERSION
922 VER_STRING
923 REL_STRING
924 EXTRA_LINK_OPTS
925 GUI_NON_PLUGIN_OBJS
926 GUI_PLUGIN_OBJS
927 IODEV_NON_PLUGIN_OBJS
928 IODEV_PLUGIN_OBJS
929 PLUGIN_VAR
930 PLUGIN_TARGET
931 INSTALL_PLUGINS_VAR
932 GZIP
933 TAR
934 LIBOBJS
935 LTLIBOBJS'
936 ac_subst_files=''
937       ac_precious_vars='build_alias
938 host_alias
939 target_alias
940 CC
941 CFLAGS
942 LDFLAGS
943 CPPFLAGS
944 CXX
945 CXXFLAGS
946 CCC
947 CPP
948 CXXCPP
949 F77
950 FFLAGS
951 XMKMF
952 PKG_CONFIG
953 GTK_CFLAGS
954 GTK_LIBS'
955 
956 
957 # Initialize some variables set by options.
958 ac_init_help=
959 ac_init_version=false
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
976 
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1002 
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1006 do
1007   # If the previous option needs an argument, assign it.
1008   if test -n "$ac_prev"; then
1009     eval $ac_prev=\$ac_option
1010     ac_prev=
1011     continue
1012   fi
1013 
1014   case $ac_option in
1015   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016   *)    ac_optarg=yes ;;
1017   esac
1018 
1019   # Accept the important Cygnus configure options, so we can diagnose typos.
1020 
1021   case $ac_dashdash$ac_option in
1022   --)
1023     ac_dashdash=yes ;;
1024 
1025   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026     ac_prev=bindir ;;
1027   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028     bindir=$ac_optarg ;;
1029 
1030   -build | --build | --buil | --bui | --bu)
1031     ac_prev=build_alias ;;
1032   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033     build_alias=$ac_optarg ;;
1034 
1035   -cache-file | --cache-file | --cache-fil | --cache-fi \
1036   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037     ac_prev=cache_file ;;
1038   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040     cache_file=$ac_optarg ;;
1041 
1042   --config-cache | -C)
1043     cache_file=config.cache ;;
1044 
1045   -datadir | --datadir | --datadi | --datad)
1046     ac_prev=datadir ;;
1047   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048     datadir=$ac_optarg ;;
1049 
1050   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051   | --dataroo | --dataro | --datar)
1052     ac_prev=datarootdir ;;
1053   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055     datarootdir=$ac_optarg ;;
1056 
1057   -disable-* | --disable-*)
1058     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059     # Reject names that are not valid shell variable names.
1060     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1061       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1062    { (exit 1); exit 1; }; }
1063     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1064     eval enable_$ac_feature=no ;;
1065 
1066   -docdir | --docdir | --docdi | --doc | --do)
1067     ac_prev=docdir ;;
1068   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069     docdir=$ac_optarg ;;
1070 
1071   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072     ac_prev=dvidir ;;
1073   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074     dvidir=$ac_optarg ;;
1075 
1076   -enable-* | --enable-*)
1077     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078     # Reject names that are not valid shell variable names.
1079     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1080       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1081    { (exit 1); exit 1; }; }
1082     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1083     eval enable_$ac_feature=\$ac_optarg ;;
1084 
1085   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087   | --exec | --exe | --ex)
1088     ac_prev=exec_prefix ;;
1089   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091   | --exec=* | --exe=* | --ex=*)
1092     exec_prefix=$ac_optarg ;;
1093 
1094   -gas | --gas | --ga | --g)
1095     # Obsolete; use --with-gas.
1096     with_gas=yes ;;
1097 
1098   -help | --help | --hel | --he | -h)
1099     ac_init_help=long ;;
1100   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101     ac_init_help=recursive ;;
1102   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103     ac_init_help=short ;;
1104 
1105   -host | --host | --hos | --ho)
1106     ac_prev=host_alias ;;
1107   -host=* | --host=* | --hos=* | --ho=*)
1108     host_alias=$ac_optarg ;;
1109 
1110   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111     ac_prev=htmldir ;;
1112   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113   | --ht=*)
1114     htmldir=$ac_optarg ;;
1115 
1116   -includedir | --includedir | --includedi | --included | --include \
1117   | --includ | --inclu | --incl | --inc)
1118     ac_prev=includedir ;;
1119   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120   | --includ=* | --inclu=* | --incl=* | --inc=*)
1121     includedir=$ac_optarg ;;
1122 
1123   -infodir | --infodir | --infodi | --infod | --info | --inf)
1124     ac_prev=infodir ;;
1125   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126     infodir=$ac_optarg ;;
1127 
1128   -libdir | --libdir | --libdi | --libd)
1129     ac_prev=libdir ;;
1130   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131     libdir=$ac_optarg ;;
1132 
1133   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134   | --libexe | --libex | --libe)
1135     ac_prev=libexecdir ;;
1136   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137   | --libexe=* | --libex=* | --libe=*)
1138     libexecdir=$ac_optarg ;;
1139 
1140   -localedir | --localedir | --localedi | --localed | --locale)
1141     ac_prev=localedir ;;
1142   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143     localedir=$ac_optarg ;;
1144 
1145   -localstatedir | --localstatedir | --localstatedi | --localstated \
1146   | --localstate | --localstat | --localsta | --localst | --locals)
1147     ac_prev=localstatedir ;;
1148   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150     localstatedir=$ac_optarg ;;
1151 
1152   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153     ac_prev=mandir ;;
1154   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155     mandir=$ac_optarg ;;
1156 
1157   -nfp | --nfp | --nf)
1158     # Obsolete; use --without-fp.
1159     with_fp=no ;;
1160 
1161   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162   | --no-cr | --no-c | -n)
1163     no_create=yes ;;
1164 
1165   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167     no_recursion=yes ;;
1168 
1169   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171   | --oldin | --oldi | --old | --ol | --o)
1172     ac_prev=oldincludedir ;;
1173   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176     oldincludedir=$ac_optarg ;;
1177 
1178   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179     ac_prev=prefix ;;
1180   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181     prefix=$ac_optarg ;;
1182 
1183   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184   | --program-pre | --program-pr | --program-p)
1185     ac_prev=program_prefix ;;
1186   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188     program_prefix=$ac_optarg ;;
1189 
1190   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191   | --program-suf | --program-su | --program-s)
1192     ac_prev=program_suffix ;;
1193   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195     program_suffix=$ac_optarg ;;
1196 
1197   -program-transform-name | --program-transform-name \
1198   | --program-transform-nam | --program-transform-na \
1199   | --program-transform-n | --program-transform- \
1200   | --program-transform | --program-transfor \
1201   | --program-transfo | --program-transf \
1202   | --program-trans | --program-tran \
1203   | --progr-tra | --program-tr | --program-t)
1204     ac_prev=program_transform_name ;;
1205   -program-transform-name=* | --program-transform-name=* \
1206   | --program-transform-nam=* | --program-transform-na=* \
1207   | --program-transform-n=* | --program-transform-=* \
1208   | --program-transform=* | --program-transfor=* \
1209   | --program-transfo=* | --program-transf=* \
1210   | --program-trans=* | --program-tran=* \
1211   | --progr-tra=* | --program-tr=* | --program-t=*)
1212     program_transform_name=$ac_optarg ;;
1213 
1214   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215     ac_prev=pdfdir ;;
1216   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217     pdfdir=$ac_optarg ;;
1218 
1219   -psdir | --psdir | --psdi | --psd | --ps)
1220     ac_prev=psdir ;;
1221   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222     psdir=$ac_optarg ;;
1223 
1224   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225   | -silent | --silent | --silen | --sile | --sil)
1226     silent=yes ;;
1227 
1228   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229     ac_prev=sbindir ;;
1230   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231   | --sbi=* | --sb=*)
1232     sbindir=$ac_optarg ;;
1233 
1234   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236   | --sharedst | --shareds | --shared | --share | --shar \
1237   | --sha | --sh)
1238     ac_prev=sharedstatedir ;;
1239   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242   | --sha=* | --sh=*)
1243     sharedstatedir=$ac_optarg ;;
1244 
1245   -site | --site | --sit)
1246     ac_prev=site ;;
1247   -site=* | --site=* | --sit=*)
1248     site=$ac_optarg ;;
1249 
1250   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251     ac_prev=srcdir ;;
1252   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253     srcdir=$ac_optarg ;;
1254 
1255   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256   | --syscon | --sysco | --sysc | --sys | --sy)
1257     ac_prev=sysconfdir ;;
1258   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260     sysconfdir=$ac_optarg ;;
1261 
1262   -target | --target | --targe | --targ | --tar | --ta | --t)
1263     ac_prev=target_alias ;;
1264   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265     target_alias=$ac_optarg ;;
1266 
1267   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268     verbose=yes ;;
1269 
1270   -version | --version | --versio | --versi | --vers | -V)
1271     ac_init_version=: ;;
1272 
1273   -with-* | --with-*)
1274     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1277       { echo "$as_me: error: invalid package name: $ac_package" >&2
1278    { (exit 1); exit 1; }; }
1279     ac_package=`echo $ac_package| sed 's/-/_/g'`
1280     eval with_$ac_package=\$ac_optarg ;;
1281 
1282   -without-* | --without-*)
1283     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1286       { echo "$as_me: error: invalid package name: $ac_package" >&2
1287    { (exit 1); exit 1; }; }
1288     ac_package=`echo $ac_package | sed 's/-/_/g'`
1289     eval with_$ac_package=no ;;
1290 
1291   --x)
1292     # Obsolete; use --with-x.
1293     with_x=yes ;;
1294 
1295   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296   | --x-incl | --x-inc | --x-in | --x-i)
1297     ac_prev=x_includes ;;
1298   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300     x_includes=$ac_optarg ;;
1301 
1302   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304     ac_prev=x_libraries ;;
1305   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307     x_libraries=$ac_optarg ;;
1308 
1309   -*) { echo "$as_me: error: unrecognized option: $ac_option
1310 Try \`$0 --help' for more information." >&2
1311    { (exit 1); exit 1; }; }
1312     ;;
1313 
1314   *=*)
1315     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316     # Reject names that are not valid shell variable names.
1317     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1318       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1319    { (exit 1); exit 1; }; }
1320     eval $ac_envvar=\$ac_optarg
1321     export $ac_envvar ;;
1322 
1323   *)
1324     # FIXME: should be removed in autoconf 3.0.
1325     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1329     ;;
1330 
1331   esac
1332 done
1333 
1334 if test -n "$ac_prev"; then
1335   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336   { echo "$as_me: error: missing argument to $ac_option" >&2
1337    { (exit 1); exit 1; }; }
1338 fi
1339 
1340 # Be sure to have absolute directory names.
1341 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342                 datadir sysconfdir sharedstatedir localstatedir includedir \
1343                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344                 libdir localedir mandir
1345 do
1346   eval ac_val=\$$ac_var
1347   case $ac_val in
1348     [\\/$]* | ?:[\\/]* )  continue;;
1349     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350   esac
1351   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1352    { (exit 1); exit 1; }; }
1353 done
1354 
1355 # There might be people who depend on the old broken behavior: `$host'
1356 # used to hold the argument of --host etc.
1357 # FIXME: To remove some day.
1358 build=$build_alias
1359 host=$host_alias
1360 target=$target_alias
1361 
1362 # FIXME: To remove some day.
1363 if test "x$host_alias" != x; then
1364   if test "x$build_alias" = x; then
1365     cross_compiling=maybe
1366     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1367     If a cross compiler is detected then cross compile mode will be used." >&2
1368   elif test "x$build_alias" != "x$host_alias"; then
1369     cross_compiling=yes
1370   fi
1371 fi
1372 
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 
1376 test "$silent" = yes && exec 6>/dev/null
1377 
1378 
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382   { echo "$as_me: error: Working directory cannot be determined" >&2
1383    { (exit 1); exit 1; }; }
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385   { echo "$as_me: error: pwd does not report name of working directory" >&2
1386    { (exit 1); exit 1; }; }
1387 
1388 
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391   ac_srcdir_defaulted=yes
1392   # Try the directory containing this script, then the parent directory.
1393   ac_confdir=`$as_dirname -- "$0" ||
1394 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395          X"$0" : 'X\(//\)[^/]' \| \
1396          X"$0" : 'X\(//\)$' \| \
1397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1398 echo X"$0" |
1399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\/\)[^/].*/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\).*/{
1412             s//\1/
1413             q
1414           }
1415           s/.*/./; q'`
1416   srcdir=$ac_confdir
1417   if test ! -r "$srcdir/$ac_unique_file"; then
1418     srcdir=..
1419   fi
1420 else
1421   ac_srcdir_defaulted=no
1422 fi
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1426    { (exit 1); exit 1; }; }
1427 fi
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1431    { (exit 1); exit 1; }; }
1432         pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435   srcdir=.
1436 fi
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_env_${ac_var}_value=\$${ac_var}
1446   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1449 
1450 #
1451 # Report the --help message.
1452 #
1453 if test "$ac_init_help" = "long"; then
1454   # Omit some internal or obsolete options to make the list less imposing.
1455   # This message is too long to be a string in the A/UX 3.1 sh.
1456   cat <<_ACEOF
1457 \`configure' configures this package to adapt to many kinds of systems.
1458 
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE.  See below for descriptions of some of the useful variables.
1463 
1464 Defaults for the options are specified in brackets.
1465 
1466 Configuration:
1467   -h, --help              display this help and exit
1468       --help=short        display options specific to this package
1469       --help=recursive    display the short help of all the included packages
1470   -V, --version           display version information and exit
1471   -q, --quiet, --silent   do not print \`checking...' messages
1472       --cache-file=FILE   cache test results in FILE [disabled]
1473   -C, --config-cache      alias for \`--cache-file=config.cache'
1474   -n, --no-create         do not create output files
1475       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476 
1477 Installation directories:
1478   --prefix=PREFIX         install architecture-independent files in PREFIX
1479                           [$ac_default_prefix]
1480   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                           [PREFIX]
1482 
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1487 
1488 For better control, use the options below.
1489 
1490 Fine tuning of the installation directories:
1491   --bindir=DIR           user executables [EPREFIX/bin]
1492   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1493   --libexecdir=DIR       program executables [EPREFIX/libexec]
1494   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1495   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1496   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1497   --libdir=DIR           object code libraries [EPREFIX/lib]
1498   --includedir=DIR       C header files [PREFIX/include]
1499   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1500   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1501   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1502   --infodir=DIR          info documentation [DATAROOTDIR/info]
1503   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1504   --mandir=DIR           man documentation [DATAROOTDIR/man]
1505   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1506   --htmldir=DIR          html documentation [DOCDIR]
1507   --dvidir=DIR           dvi documentation [DOCDIR]
1508   --pdfdir=DIR           pdf documentation [DOCDIR]
1509   --psdir=DIR            ps documentation [DOCDIR]
1510 _ACEOF
1511 
1512   cat <<\_ACEOF
1513 
1514 X features:
1515   --x-includes=DIR    X include files are in DIR
1516   --x-libraries=DIR   X library files are in DIR
1517 
1518 System types:
1519   --build=BUILD     configure for building on BUILD [guessed]
1520   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1521   --target=TARGET   configure for building compilers for TARGET [HOST]
1522 _ACEOF
1523 fi
1524 
1525 if test -n "$ac_init_help"; then
1526 
1527   cat <<\_ACEOF
1528 
1529 Optional Features:
1530   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1531   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1532   --enable-static[=PKGS]  build static libraries [default=no]
1533   --enable-shared[=PKGS]  build shared libraries [default=yes]
1534   --enable-fast-install[=PKGS]
1535                           optimize for fast installation [default=yes]
1536   --disable-libtool-lock  avoid locking (might break parallel builds)
1537   --enable-ltdl-install   install libltdl
1538   --disable-largefile     omit support for large files
1539   --enable-idle-hack                use Roland Mainz's idle hack
1540   --enable-plugins                  enable plugins
1541   --enable-x86-64                   compile in support for x86-64 instructions
1542   --enable-smp                      compile in support for SMP configurations
1543   --enable-cpu-level                select cpu level (3,4,5,6)
1544   --enable-apic                     enable APIC support
1545   --enable-compressed-hd            allows compressed (zlib) hard disk image (not implemented yet)
1546   --enable-ne2000                   enable limited ne2000 support
1547   --enable-acpi                     enable ACPI support
1548   --enable-pci                      enable limited i440FX PCI support
1549   --enable-pcidev                   enable PCI host device mapping support (linux host only)
1550   --enable-usb                      enable limited USB support
1551   --enable-pnic                     enable PCI pseudo NIC support
1552   --enable-4meg-pages               support 4Megabyte pages extensions
1553   --enable-pae                      support Physical Address Extensions
1554   --enable-global-pages             support for global pages in PDE/PTE
1555   --enable-guest2host-tlb           support guest to host addr TLB for speed
1556   --enable-repeat-speedups          support repeated IO and mem copy speedups
1557   --enable-icache                   support instruction cache
1558   --enable-fast-function-calls      support for fast function calls (gcc on x86 only)
1559   --enable-host-specific-asms       support for host specific inline assembly
1560   --enable-ignore-bad-msr           ignore bad MSR references
1561   --enable-port-e9-hack             writes to port e9 go to console
1562   --enable-show-ips                 show IPS in Bochs log file
1563   --enable-save-restore              support for simulation save and restore
1564   --enable-cpp                      use .cpp as C++ suffix
1565   --enable-debugger                 compile in support for Bochs internal debugger
1566   --enable-external-debugger        enable external debugger support (win32 only)
1567   --enable-magic-breakpoints        enable magic debugger breakpoints
1568   --enable-disasm                   compile in support for disassembler
1569   --enable-all-optimizations        compile in all possible optimizations
1570   --enable-readline                 use readline library, if available
1571   --enable-instrumentation          compile in support for instrumentation
1572   --enable-raw-serial               use raw serial port access
1573   --enable-vbe                      use VESA BIOS extensions
1574   --enable-clgd54xx                 enable CLGD54XX emulation
1575   --enable-fpu                      compile in FPU emulation
1576   --enable-vme                      virtual 8086 mode extensions
1577   --enable-mmx                      MMX support
1578   --enable-3dnow                    3DNow! support
1579   --enable-sse                      SSE support (--enable-sse=no|1|2|3|4)
1580   --enable-sse-extension            support for SSE extensions
1581   --enable-daz                      denormals-are-zeroes support
1582   --enable-alignment-check          alignment check (#AC) support
1583   --enable-misaligned-sse           misaligned SSE support
1584   --enable-sep                      SYSENTER/SYSEXIT support
1585   --enable-x86-debugger             x86 debugger support
1586   --enable-cdrom                    CDROM support
1587   --enable-sb16=xxx                 Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
1588   --enable-gameport                 enable standard PC gameport support
1589   --enable-gdb-stub                 enable gdb stub support
1590   --enable-iodebug                  enable I/O interface to debugger
1591   --enable-docbook                  build the Docbook documentation
1592   --enable-xpm                      enable the check for XPM support
1593   --enable-time0=n                  start at n (deprecated)
1594   --enable-config-interface         turns on/off configuration interface (deprecated)
1595   --enable-control-panel            turns on/off contol panel (deprecated)
1596   --enable-vga                      use VGA emulation (deprecated)
1597   --enable-processors               select number of processors (deprecated)
1598   --enable-reset-on-triple-fault    reset when cpu detects a triple fault (deprecated)
1599   --enable-pni                      PNI support (deprecated)
1600   --enable-new-pit                  use Greg Alexander's new PIT model (deprecated)
1601 
1602 Optional Packages:
1603   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1604   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1605   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1606   --with-pic              try to use only PIC/non-PIC objects [default=use
1607                           both]
1608   --with-tags[=TAGS]      include additional configurations [automatic]
1609   --with-x                use the X Window System
1610   --with-x11                        use X11 GUI
1611   --with-beos                       use BeOS GUI
1612   --with-win32                      use Win32 GUI
1613   --with-macos                      use Macintosh/CodeWarrior environment
1614   --with-carbon                     compile for MacOS X with Carbon GUI
1615   --with-nogui                      no native GUI, just use blank stubs
1616   --with-term                       textmode terminal environment
1617   --with-rfb                        use RFB protocol, works with VNC viewer
1618   --with-amigaos                    use AmigaOS (or MorphOS) GUI
1619   --with-sdl                        use SDL libraries
1620   --with-svga                       use SVGALib libraries
1621   --with-wx                         use wxWidgets libraries
1622   --with-all-libs                   compile all guis that Bochs supports
1623 
1624 Some influential environment variables:
1625   CC          C compiler command
1626   CFLAGS      C compiler flags
1627   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1628               nonstandard directory <lib dir>
1629   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1630               you have headers in a nonstandard directory <include dir>
1631   CXX         C++ compiler command
1632   CXXFLAGS    C++ compiler flags
1633   CPP         C preprocessor
1634   CXXCPP      C++ preprocessor
1635   F77         Fortran 77 compiler command
1636   FFLAGS      Fortran 77 compiler flags
1637   XMKMF       Path to xmkmf, Makefile generator for X Window System
1638   PKG_CONFIG  path to pkg-config utility
1639   GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1640   GTK_LIBS    linker flags for GTK, overriding pkg-config
1641 
1642 Use these variables to override the choices made by `configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1644 
1645 _ACEOF
1646 ac_status=$?
1647 fi
1648 
1649 if test "$ac_init_help" = "recursive"; then
1650   # If there are subdirs, report their specific --help.
1651   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652     test -d "$ac_dir" || continue
1653     ac_builddir=.
1654 
1655 case "$ac_dir" in
1656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *)
1658   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1659   # A ".." for each directory in $ac_dir_suffix.
1660   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1661   case $ac_top_builddir_sub in
1662   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1664   esac ;;
1665 esac
1666 ac_abs_top_builddir=$ac_pwd
1667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1668 # for backward compatibility:
1669 ac_top_builddir=$ac_top_build_prefix
1670 
1671 case $srcdir in
1672   .)  # We are building in place.
1673     ac_srcdir=.
1674     ac_top_srcdir=$ac_top_builddir_sub
1675     ac_abs_top_srcdir=$ac_pwd ;;
1676   [\\/]* | ?:[\\/]* )  # Absolute name.
1677     ac_srcdir=$srcdir$ac_dir_suffix;
1678     ac_top_srcdir=$srcdir
1679     ac_abs_top_srcdir=$srcdir ;;
1680   *) # Relative name.
1681     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1682     ac_top_srcdir=$ac_top_build_prefix$srcdir
1683     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 esac
1685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 
1687     cd "$ac_dir" || { ac_status=$?; continue; }
1688     # Check for guested configure.
1689     if test -f "$ac_srcdir/configure.gnu"; then
1690       echo &&
1691       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1692     elif test -f "$ac_srcdir/configure"; then
1693       echo &&
1694       $SHELL "$ac_srcdir/configure" --help=recursive
1695     else
1696       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697     fi || ac_status=$?
1698     cd "$ac_pwd" || { ac_status=$?; break; }
1699   done
1700 fi
1701 
1702 test -n "$ac_init_help" && exit $ac_status
1703 if $ac_init_version; then
1704   cat <<\_ACEOF
1705 configure
1706 generated by GNU Autoconf 2.60
1707 
1708 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1709 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1710 This configure script is free software; the Free Software Foundation
1711 gives unlimited permission to copy, distribute and modify it.
1712 _ACEOF
1713   exit
1714 fi
1715 cat >config.log <<_ACEOF
1716 This file contains any messages produced by compilers while
1717 running configure, to aid debugging if configure makes a mistake.
1718 
1719 It was created by $as_me, which was
1720 generated by GNU Autoconf 2.60.  Invocation command line was
1721 
1722   $ $0 $@
1723 
1724 _ACEOF
1725 exec 5>>config.log
1726 {
1727 cat <<_ASUNAME
1728 ## --------- ##
1729 ## Platform. ##
1730 ## --------- ##
1731 
1732 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1733 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1734 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1735 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1736 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1737 
1738 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1739 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1740 
1741 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1742 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1743 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1744 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1745 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1746 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1747 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1748 
1749 _ASUNAME
1750 
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   echo "PATH: $as_dir"
1757 done
1758 IFS=$as_save_IFS
1759 
1760 } >&5
1761 
1762 cat >&5 <<_ACEOF
1763 
1764 
1765 ## ----------- ##
1766 ## Core tests. ##
1767 ## ----------- ##
1768 
1769 _ACEOF
1770 
1771 
1772 # Keep a trace of the command line.
1773 # Strip out --no-create and --no-recursion so they do not pile up.
1774 # Strip out --silent because we don't want to record it for future runs.
1775 # Also quote any args containing shell meta-characters.
1776 # Make two passes to allow for proper duplicate-argument suppression.
1777 ac_configure_args=
1778 ac_configure_args0=
1779 ac_configure_args1=
1780 ac_must_keep_next=false
1781 for ac_pass in 1 2
1782 do
1783   for ac_arg
1784   do
1785     case $ac_arg in
1786     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1787     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1788     | -silent | --silent | --silen | --sile | --sil)
1789       continue ;;
1790     *\'*)
1791       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1792     esac
1793     case $ac_pass in
1794     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1795     2)
1796       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1797       if test $ac_must_keep_next = true; then
1798         ac_must_keep_next=false # Got value, back to normal.
1799       else
1800         case $ac_arg in
1801           *=* | --config-cache | -C | -disable-* | --disable-* \
1802           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1803           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1804           | -with-* | --with-* | -without-* | --without-* | --x)
1805             case "$ac_configure_args0 " in
1806               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1807             esac
1808             ;;
1809           -* ) ac_must_keep_next=true ;;
1810         esac
1811       fi
1812       ac_configure_args="$ac_configure_args '$ac_arg'"
1813       ;;
1814     esac
1815   done
1816 done
1817 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1818 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1819 
1820 # When interrupted or exit'd, cleanup temporary files, and complete
1821 # config.log.  We remove comments because anyway the quotes in there
1822 # would cause problems or look ugly.
1823 # WARNING: Use '\'' to represent an apostrophe within the trap.
1824 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1825 trap 'exit_status=$?
1826   # Save into config.log some information that might help in debugging.
1827   {
1828     echo
1829 
1830     cat <<\_ASBOX
1831 ## ---------------- ##
1832 ## Cache variables. ##
1833 ## ---------------- ##
1834 _ASBOX
1835     echo
1836     # The following way of writing the cache mishandles newlines in values,
1837 (
1838   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1839     eval ac_val=\$$ac_var
1840     case $ac_val in #(
1841     *${as_nl}*)
1842       case $ac_var in #(
1843       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1844 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1845       esac
1846       case $ac_var in #(
1847       _ | IFS | as_nl) ;; #(
1848       *) $as_unset $ac_var ;;
1849       esac ;;
1850     esac
1851   done
1852   (set) 2>&1 |
1853     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854     *${as_nl}ac_space=\ *)
1855       sed -n \
1856         "s/'\''/'\''\\\\'\'''\''/g;
1857           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858       ;; #(
1859     *)
1860       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1861       ;;
1862     esac |
1863     sort
1864 )
1865     echo
1866 
1867     cat <<\_ASBOX
1868 ## ----------------- ##
1869 ## Output variables. ##
1870 ## ----------------- ##
1871 _ASBOX
1872     echo
1873     for ac_var in $ac_subst_vars
1874     do
1875       eval ac_val=\$$ac_var
1876       case $ac_val in
1877       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1878       esac
1879       echo "$ac_var='\''$ac_val'\''"
1880     done | sort
1881     echo
1882 
1883     if test -n "$ac_subst_files"; then
1884       cat <<\_ASBOX
1885 ## ------------------- ##
1886 ## File substitutions. ##
1887 ## ------------------- ##
1888 _ASBOX
1889       echo
1890       for ac_var in $ac_subst_files
1891       do
1892         eval ac_val=\$$ac_var
1893         case $ac_val in
1894         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895         esac
1896         echo "$ac_var='\''$ac_val'\''"
1897       done | sort
1898       echo
1899     fi
1900 
1901     if test -s confdefs.h; then
1902       cat <<\_ASBOX
1903 ## ----------- ##
1904 ## confdefs.h. ##
1905 ## ----------- ##
1906 _ASBOX
1907       echo
1908       cat confdefs.h
1909       echo
1910     fi
1911     test "$ac_signal" != 0 &&
1912       echo "$as_me: caught signal $ac_signal"
1913     echo "$as_me: exit $exit_status"
1914   } >&5
1915   rm -f core *.core core.conftest.* &&
1916     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917     exit $exit_status
1918 ' 0
1919 for ac_signal in 1 2 13 15; do
1920   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921 done
1922 ac_signal=0
1923 
1924 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1925 rm -f -r conftest* confdefs.h
1926 
1927 # Predefined preprocessor variables.
1928 
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_NAME "$PACKAGE_NAME"
1931 _ACEOF
1932 
1933 
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936 _ACEOF
1937 
1938 
1939 cat >>confdefs.h <<_ACEOF
1940 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1941 _ACEOF
1942 
1943 
1944 cat >>confdefs.h <<_ACEOF
1945 #define PACKAGE_STRING "$PACKAGE_STRING"
1946 _ACEOF
1947 
1948 
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951 _ACEOF
1952 
1953 
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer explicitly selected file to automatically selected ones.
1956 if test -n "$CONFIG_SITE"; then
1957   set x "$CONFIG_SITE"
1958 elif test "x$prefix" != xNONE; then
1959   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1960 else
1961   set x "$ac_default_prefix/share/config.site" \
1962         "$ac_default_prefix/etc/config.site"
1963 fi
1964 shift
1965 for ac_site_file
1966 do
1967   if test -r "$ac_site_file"; then
1968     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1969 echo "$as_me: loading site script $ac_site_file" >&6;}
1970     sed 's/^/| /' "$ac_site_file" >&5
1971     . "$ac_site_file"
1972   fi
1973 done
1974 
1975 if test -r "$cache_file"; then
1976   # Some versions of bash will fail to source /dev/null (special
1977   # files actually), so we avoid doing that.
1978   if test -f "$cache_file"; then
1979     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1980 echo "$as_me: loading cache $cache_file" >&6;}
1981     case $cache_file in
1982       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1983       *)                      . "./$cache_file";;
1984     esac
1985   fi
1986 else
1987   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1988 echo "$as_me: creating cache $cache_file" >&6;}
1989   >$cache_file
1990 fi
1991 
1992 # Check that the precious variables saved in the cache have kept the same
1993 # value.
1994 ac_cache_corrupted=false
1995 for ac_var in $ac_precious_vars; do
1996   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1997   eval ac_new_set=\$ac_env_${ac_var}_set
1998   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1999   eval ac_new_val=\$ac_env_${ac_var}_value
2000   case $ac_old_set,$ac_new_set in
2001     set,)
2002       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2003 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2004       ac_cache_corrupted=: ;;
2005     ,set)
2006       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2007 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2008       ac_cache_corrupted=: ;;
2009     ,);;
2010     *)
2011       if test "x$ac_old_val" != "x$ac_new_val"; then
2012         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2013 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2014         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2015 echo "$as_me:   former value:  $ac_old_val" >&2;}
2016         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2017 echo "$as_me:   current value: $ac_new_val" >&2;}
2018         ac_cache_corrupted=:
2019       fi;;
2020   esac
2021   # Pass precious variables to config.status.
2022   if test "$ac_new_set" = set; then
2023     case $ac_new_val in
2024     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2025     *) ac_arg=$ac_var=$ac_new_val ;;
2026     esac
2027     case " $ac_configure_args " in
2028       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2029       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030     esac
2031   fi
2032 done
2033 if $ac_cache_corrupted; then
2034   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2035 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2036   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2037 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2038    { (exit 1); exit 1; }; }
2039 fi
2040 
2041 
2042 
2043 
2044 
2045 
2046 
2047 
2048 
2049 
2050 
2051 
2052 
2053 
2054 
2055 
2056 
2057 ac_ext=c
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 
2063 
2064 
2065 ac_config_headers="$ac_config_headers config.h"
2066 
2067 ac_config_headers="$ac_config_headers ltdlconf.h"
2068 
2069 
2070 VERSION="2.3.5"
2071 VER_STRING="2.3.5"
2072 REL_STRING="Build from CVS snapshot, on September 16, 2007"
2073 
2074 
2075 
2076 
2077 ac_aux_dir=
2078 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2079   if test -f "$ac_dir/install-sh"; then
2080     ac_aux_dir=$ac_dir
2081     ac_install_sh="$ac_aux_dir/install-sh -c"
2082     break
2083   elif test -f "$ac_dir/install.sh"; then
2084     ac_aux_dir=$ac_dir
2085     ac_install_sh="$ac_aux_dir/install.sh -c"
2086     break
2087   elif test -f "$ac_dir/shtool"; then
2088     ac_aux_dir=$ac_dir
2089     ac_install_sh="$ac_aux_dir/shtool install -c"
2090     break
2091   fi
2092 done
2093 if test -z "$ac_aux_dir"; then
2094   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2095 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2096    { (exit 1); exit 1; }; }
2097 fi
2098 
2099 # These three variables are undocumented and unsupported,
2100 # and are intended to be withdrawn in a future Autoconf release.
2101 # They can cause serious problems if a builder's source tree is in a directory
2102 # whose full name contains unusual characters.
2103 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2104 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2105 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2106 
2107 
2108 # Make sure we can run config.sub.
2109 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2110   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2111 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2112    { (exit 1); exit 1; }; }
2113 
2114 { echo "$as_me:$LINENO: checking build system type" >&5
2115 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2116 if test "${ac_cv_build+set}" = set; then
2117   echo $ECHO_N "(cached) $ECHO_C" >&6
2118 else
2119   ac_build_alias=$build_alias
2120 test "x$ac_build_alias" = x &&
2121   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2122 test "x$ac_build_alias" = x &&
2123   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2124 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2125    { (exit 1); exit 1; }; }
2126 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2127   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2128 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2129    { (exit 1); exit 1; }; }
2130 
2131 fi
2132 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2133 echo "${ECHO_T}$ac_cv_build" >&6; }
2134 case $ac_cv_build in
2135 *-*-*) ;;
2136 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2137 echo "$as_me: error: invalid value of canonical build" >&2;}
2138    { (exit 1); exit 1; }; };;
2139 esac
2140 build=$ac_cv_build
2141 ac_save_IFS=$IFS; IFS='-'
2142 set x $ac_cv_build
2143 shift
2144 build_cpu=$1
2145 build_vendor=$2
2146 shift; shift
2147 # Remember, the first character of IFS is used to create $*,
2148 # except with old shells:
2149 build_os=$*
2150 IFS=$ac_save_IFS
2151 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2152 
2153 
2154 { echo "$as_me:$LINENO: checking host system type" >&5
2155 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2156 if test "${ac_cv_host+set}" = set; then
2157   echo $ECHO_N "(cached) $ECHO_C" >&6
2158 else
2159   if test "x$host_alias" = x; then
2160   ac_cv_host=$ac_cv_build
2161 else
2162   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2163     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2165    { (exit 1); exit 1; }; }
2166 fi
2167 
2168 fi
2169 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2170 echo "${ECHO_T}$ac_cv_host" >&6; }
2171 case $ac_cv_host in
2172 *-*-*) ;;
2173 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2174 echo "$as_me: error: invalid value of canonical host" >&2;}
2175    { (exit 1); exit 1; }; };;
2176 esac
2177 host=$ac_cv_host
2178 ac_save_IFS=$IFS; IFS='-'
2179 set x $ac_cv_host
2180 shift
2181 host_cpu=$1
2182 host_vendor=$2
2183 shift; shift
2184 # Remember, the first character of IFS is used to create $*,
2185 # except with old shells:
2186 host_os=$*
2187 IFS=$ac_save_IFS
2188 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2189 
2190 
2191 { echo "$as_me:$LINENO: checking target system type" >&5
2192 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2193 if test "${ac_cv_target+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   if test "x$target_alias" = x; then
2197   ac_cv_target=$ac_cv_host
2198 else
2199   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2200     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2201 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2202    { (exit 1); exit 1; }; }
2203 fi
2204 
2205 fi
2206 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2207 echo "${ECHO_T}$ac_cv_target" >&6; }
2208 case $ac_cv_target in
2209 *-*-*) ;;
2210 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2211 echo "$as_me: error: invalid value of canonical target" >&2;}
2212    { (exit 1); exit 1; }; };;
2213 esac
2214 target=$ac_cv_target
2215 ac_save_IFS=$IFS; IFS='-'
2216 set x $ac_cv_target
2217 shift
2218 target_cpu=$1
2219 target_vendor=$2
2220 shift; shift
2221 # Remember, the first character of IFS is used to create $*,
2222 # except with old shells:
2223 target_os=$*
2224 IFS=$ac_save_IFS
2225 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2226 
2227 
2228 # The aliases save the names the user supplied, while $host etc.
2229 # will get canonicalized.
2230 test -n "$target_alias" &&
2231   test "$program_prefix$program_suffix$program_transform_name" = \
2232     NONENONEs,x,x, &&
2233   program_prefix=${target_alias}-
2234 
2235 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
2236 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
2237 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
2238   { echo "$as_me:$LINENO: result: yes" >&5
2239 echo "${ECHO_T}yes" >&6; }
2240   cross_configure=1
2241 else
2242   { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2244   cross_configure=0
2245 fi
2246 
2247 # this case statement defines the compile flags which are needed to
2248 # compile bochs on a platform.  Don't put things like optimization settings
2249 # into the configure.in file, since people will want to be able to change
2250 # those settings by defining CFLAGS and CXXFLAGS before running configure.
2251 NO_LT=0
2252 need_dlcompat_for_plugins=0
2253 case "$target" in
2254   *-pc-windows* | *-pc-winnt*)
2255     DEFAULT_GUI=win32                 # default to win32 gui
2256     ;;
2257   *-pc-cygwin* | *-pc-mingw32*)
2258     NO_LT=1   # do not use libtool at all on cygwin
2259     if test "$with_term" = yes; then
2260       # ncurses won't compile with -mno-cygwin or -DWIN32
2261       # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
2262       # see /usr/include/curses.h for details.
2263       ADD_FLAGS="-DBROKEN_LINKER=1"
2264     else
2265       # default case
2266       ADD_FLAGS="-mno-cygwin -DWIN32"   # required for cygwin compile+win32 gui
2267       DEFAULT_GUI=win32                 # default to win32 gui
2268     fi
2269     ;;
2270   *-macosx* | *-darwin*)
2271     ADD_FLAGS="-fpascal-strings -fno-common -arch ppc -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh"      # required for macosx compile
2272     DEFAULT_GUI=carbon                # default to carbon
2273     need_dlcompat_for_plugins=1
2274     ;;
2275   *-macos*)
2276     DEFAULT_GUI=macos                 # macos defaults to macos
2277     ;;
2278   *-beos*)
2279     ADD_FLAGS="-Wno-multichar"
2280     DEFAULT_GUI=beos                  # beos defaults to beos
2281     ;;
2282   *-amigaos* | *-morphos*)
2283     DEFAULT_GUI=amigaos               # amigaos or morphos defaults to amigaos gui
2284     ;;
2285   *-solaris*)
2286     ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__"      # required for correct function prototypes
2287     LIBS="$LIBS -lsocket -lnsl"
2288     DEFAULT_GUI=x11
2289     ;;
2290   *)
2291     DEFAULT_GUI=x11
2292     ;;
2293 esac
2294 if test "${ADD_FLAGS:+set}" = set; then
2295       CFLAGS="$CFLAGS $ADD_FLAGS"
2296       CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
2297       CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
2298 fi
2299 
2300 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
2301 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
2302 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
2303 echo "${ECHO_T}$ADD_FLAGS" >&6; }
2304 
2305 if (test "$with_sdl" != yes) && \
2306    (test "$with_svga" != yes) && \
2307    (test "$with_x11" != yes) && \
2308    (test "$with_beos" != yes) && \
2309    (test "$with_win32" != yes) && \
2310    (test "$with_nogui" != yes) && \
2311    (test "$with_term" != yes) && \
2312    (test "$with_rfb" != yes) && \
2313    (test "$with_amigaos" != yes) && \
2314    (test "$with_carbon" != yes) && \
2315    (test "$with_wx" != yes) && \
2316    (test "$with_macos" != yes); then
2317   # use DEFAULT_GUI.  Set the appropriate variable.
2318   # DEFAULT_GUI must be set to one of the names above.  Otherwise, no
2319   # valid $with_* variable will be set and who knows what will happen?
2320   eval "with_${DEFAULT_GUI}=yes"
2321 fi
2322 
2323 ac_ext=c
2324 ac_cpp='$CPP $CPPFLAGS'
2325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2328 if test -n "$ac_tool_prefix"; then
2329   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2330 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$CC"; then
2337   ac_cv_prog_CC="$CC" # Let the user override the test.
2338 else
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344   for ac_exec_ext in '' $ac_executable_extensions; do
2345   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2346     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348     break 2
2349   fi
2350 done
2351 done
2352 IFS=$as_save_IFS
2353 
2354 fi
2355 fi
2356 CC=$ac_cv_prog_CC
2357 if test -n "$CC"; then
2358   { echo "$as_me:$LINENO: result: $CC" >&5
2359 echo "${ECHO_T}$CC" >&6; }
2360 else
2361   { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2363 fi
2364 
2365 
2366 fi
2367 if test -z "$ac_cv_prog_CC"; then
2368   ac_ct_CC=$CC
2369   # Extract the first word of "gcc", so it can be a program name with args.
2370 set dummy gcc; ac_word=$2
2371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   if test -n "$ac_ct_CC"; then
2377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384   for ac_exec_ext in '' $ac_executable_extensions; do
2385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2386     ac_cv_prog_ac_ct_CC="gcc"
2387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388     break 2
2389   fi
2390 done
2391 done
2392 IFS=$as_save_IFS
2393 
2394 fi
2395 fi
2396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2397 if test -n "$ac_ct_CC"; then
2398   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2399 echo "${ECHO_T}$ac_ct_CC" >&6; }
2400 else
2401   { echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6; }
2403 fi
2404 
2405   if test "x$ac_ct_CC" = x; then
2406     CC=""
2407   else
2408     case $cross_compiling:$ac_tool_warned in
2409 yes:)
2410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet.  If you think this
2412 configuration is useful to you, please write to autoconf@gnu.org." >&5
2413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet.  If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416 ac_tool_warned=yes ;;
2417 esac
2418     CC=$ac_ct_CC
2419   fi
2420 else
2421   CC="$ac_cv_prog_CC"
2422 fi
2423 
2424 if test -z "$CC"; then
2425           if test -n "$ac_tool_prefix"; then
2426     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2427 set dummy ${ac_tool_prefix}cc; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   if test -n "$CC"; then
2434   ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439   IFS=$as_save_IFS
2440   test -z "$as_dir" && as_dir=.
2441   for ac_exec_ext in '' $ac_executable_extensions; do
2442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443     ac_cv_prog_CC="${ac_tool_prefix}cc"
2444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445     break 2
2446   fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450 
2451 fi
2452 fi
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455   { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2457 else
2458   { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2460 fi
2461 
2462 
2463   fi
2464 fi
2465 if test -z "$CC"; then
2466   # Extract the first word of "cc", so it can be a program name with args.
2467 set dummy cc; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_CC+set}" = set; then
2471   echo $ECHO_N "(cached) $ECHO_C" >&6
2472 else
2473   if test -n "$CC"; then
2474   ac_cv_prog_CC="$CC" # Let the user override the test.
2475 else
2476   ac_prog_rejected=no
2477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2478 for as_dir in $PATH
2479 do
2480   IFS=$as_save_IFS
2481   test -z "$as_dir" && as_dir=.
2482   for ac_exec_ext in '' $ac_executable_extensions; do
2483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2484     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2485        ac_prog_rejected=yes
2486        continue
2487      fi
2488     ac_cv_prog_CC="cc"
2489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490     break 2
2491   fi
2492 done
2493 done
2494 IFS=$as_save_IFS
2495 
2496 if test $ac_prog_rejected = yes; then
2497   # We found a bogon in the path, so make sure we never use it.
2498   set dummy $ac_cv_prog_CC
2499   shift
2500   if test $# != 0; then
2501     # We chose a different compiler from the bogus one.
2502     # However, it has the same basename, so the bogon will be chosen
2503     # first if we set CC to just the basename; use the full file name.
2504     shift
2505     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2506   fi
2507 fi
2508 fi
2509 fi
2510 CC=$ac_cv_prog_CC
2511 if test -n "$CC"; then
2512   { echo "$as_me:$LINENO: result: $CC" >&5
2513 echo "${ECHO_T}$CC" >&6; }
2514 else
2515   { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2517 fi
2518 
2519 
2520 fi
2521 if test -z "$CC"; then
2522   if test -n "$ac_tool_prefix"; then
2523   for ac_prog in cl.exe
2524   do
2525     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2526 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_CC+set}" = set; then
2530   echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532   if test -n "$CC"; then
2533   ac_cv_prog_CC="$CC" # Let the user override the test.
2534 else
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538   IFS=$as_save_IFS
2539   test -z "$as_dir" && as_dir=.
2540   for ac_exec_ext in '' $ac_executable_extensions; do
2541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2542     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544     break 2
2545   fi
2546 done
2547 done
2548 IFS=$as_save_IFS
2549 
2550 fi
2551 fi
2552 CC=$ac_cv_prog_CC
2553 if test -n "$CC"; then
2554   { echo "$as_me:$LINENO: result: $CC" >&5
2555 echo "${ECHO_T}$CC" >&6; }
2556 else
2557   { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2559 fi
2560 
2561 
2562     test -n "$CC" && break
2563   done
2564 fi
2565 if test -z "$CC"; then
2566   ac_ct_CC=$CC
2567   for ac_prog in cl.exe
2568 do
2569   # Extract the first word of "$ac_prog", so it can be a program name with args.
2570 set dummy $ac_prog; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2574   echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576   if test -n "$ac_ct_CC"; then
2577   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584   for ac_exec_ext in '' $ac_executable_extensions; do
2585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2586     ac_cv_prog_ac_ct_CC="$ac_prog"
2587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591 done
2592 IFS=$as_save_IFS
2593 
2594 fi
2595 fi
2596 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2597 if test -n "$ac_ct_CC"; then
2598   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2599 echo "${ECHO_T}$ac_ct_CC" >&6; }
2600 else
2601   { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2603 fi
2604 
2605 
2606   test -n "$ac_ct_CC" && break
2607 done
2608 
2609   if test "x$ac_ct_CC" = x; then
2610     CC=""
2611   else
2612     case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2615 whose name does not start with the host triplet.  If you think this
2616 configuration is useful to you, please write to autoconf@gnu.org." >&5
2617 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2618 whose name does not start with the host triplet.  If you think this
2619 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2620 ac_tool_warned=yes ;;
2621 esac
2622     CC=$ac_ct_CC
2623   fi
2624 fi
2625 
2626 fi
2627 
2628 
2629 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2630 See \`config.log' for more details." >&5
2631 echo "$as_me: error: no acceptable C compiler found in \$PATH
2632 See \`config.log' for more details." >&2;}
2633    { (exit 1); exit 1; }; }
2634 
2635 # Provide some information about the compiler.
2636 echo "$as_me:$LINENO: checking for C compiler version" >&5
2637 ac_compiler=`set X $ac_compile; echo $2`
2638 { (ac_try="$ac_compiler --version >&5"
2639 case "(($ac_try" in
2640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641   *) ac_try_echo=$ac_try;;
2642 esac
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644   (eval "$ac_compiler --version >&5") 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }
2648 { (ac_try="$ac_compiler -v >&5"
2649 case "(($ac_try" in
2650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651   *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654   (eval "$ac_compiler -v >&5") 2>&5
2655   ac_status=$?
2656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657   (exit $ac_status); }
2658 { (ac_try="$ac_compiler -V >&5"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compiler -V >&5") 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }
2668 
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675 
2676 int
2677 main ()
2678 {
2679 
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 ac_clean_files_save=$ac_clean_files
2685 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2686 # Try to create an executable without -o first, disregard a.out.
2687 # It will help us diagnose broken compilers, and finding out an intuition
2688 # of exeext.
2689 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2690 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2691 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2692 #
2693 # List of possible output files, starting from the most likely.
2694 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2695 # only as a last resort.  b.out is created by i960 compilers.
2696 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2697 #
2698 # The IRIX 6 linker writes into existing files which may not be
2699 # executable, retaining their permissions.  Remove them first so a
2700 # subsequent execution test works.
2701 ac_rmfiles=
2702 for ac_file in $ac_files
2703 do
2704   case $ac_file in
2705     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2706     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2707   esac
2708 done
2709 rm -f $ac_rmfiles
2710 
2711 if { (ac_try="$ac_link_default"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_link_default") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; then
2721   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2722 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2723 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2724 # so that the user can short-circuit this test for compilers unknown to
2725 # Autoconf.
2726 for ac_file in $ac_files
2727 do
2728   test -f "$ac_file" || continue
2729   case $ac_file in
2730     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2731         ;;
2732     [ab].out )
2733         # We found the default executable, but exeext='' is most
2734         # certainly right.
2735         break;;
2736     *.* )
2737         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2738         then :; else
2739            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2740         fi
2741         # We set ac_cv_exeext here because the later test for it is not
2742         # safe: cross compilers may not add the suffix if given an `-o'
2743         # argument, so we may need to know it at that point already.
2744         # Even if this section looks crufty: it has the advantage of
2745         # actually working.
2746         break;;
2747     * )
2748         break;;
2749   esac
2750 done
2751 test "$ac_cv_exeext" = no && ac_cv_exeext=
2752 
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756 
2757 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: C compiler cannot create executables
2760 See \`config.log' for more details." >&2;}
2761    { (exit 77); exit 77; }; }
2762 fi
2763 
2764 ac_exeext=$ac_cv_exeext
2765 { echo "$as_me:$LINENO: result: $ac_file" >&5
2766 echo "${ECHO_T}$ac_file" >&6; }
2767 
2768 # Check that the compiler produces executables we can run.  If not, either
2769 # the compiler is broken, or we cross compile.
2770 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2771 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2772 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2773 # If not cross compiling, check that we can run a simple program.
2774 if test "$cross_compiling" != yes; then
2775   if { ac_try='./$ac_file'
2776   { (case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_try") 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785     cross_compiling=no
2786   else
2787     if test "$cross_compiling" = maybe; then
2788         cross_compiling=yes
2789     else
2790         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2791 If you meant to cross compile, use \`--host'.
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: cannot run C compiled programs.
2794 If you meant to cross compile, use \`--host'.
2795 See \`config.log' for more details." >&2;}
2796    { (exit 1); exit 1; }; }
2797     fi
2798   fi
2799 fi
2800 { echo "$as_me:$LINENO: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6; }
2802 
2803 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2804 ac_clean_files=$ac_clean_files_save
2805 # Check that the compiler produces executables we can run.  If not, either
2806 # the compiler is broken, or we cross compile.
2807 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2808 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2809 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2810 echo "${ECHO_T}$cross_compiling" >&6; }
2811 
2812 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2813 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2814 if { (ac_try="$ac_link"
2815 case "(($ac_try" in
2816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817   *) ac_try_echo=$ac_try;;
2818 esac
2819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820   (eval "$ac_link") 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; then
2824   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2825 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2826 # work properly (i.e., refer to `conftest.exe'), while it won't with
2827 # `rm'.
2828 for ac_file in conftest.exe conftest conftest.*; do
2829   test -f "$ac_file" || continue
2830   case $ac_file in
2831     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2832     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833           break;;
2834     * ) break;;
2835   esac
2836 done
2837 else
2838   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2839 See \`config.log' for more details." >&5
2840 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2841 See \`config.log' for more details." >&2;}
2842    { (exit 1); exit 1; }; }
2843 fi
2844 
2845 rm -f conftest$ac_cv_exeext
2846 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2847 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2848 
2849 rm -f conftest.$ac_ext
2850 EXEEXT=$ac_cv_exeext
2851 ac_exeext=$EXEEXT
2852 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2853 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2854 if test "${ac_cv_objext+set}" = set; then
2855   echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 
2864 int
2865 main ()
2866 {
2867 
2868   ;
2869   return 0;
2870 }
2871 _ACEOF
2872 rm -f conftest.o conftest.obj
2873 if { (ac_try="$ac_compile"
2874 case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879   (eval "$ac_compile") 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; then
2883   for ac_file in conftest.o conftest.obj conftest.*; do
2884   test -f "$ac_file" || continue;
2885   case $ac_file in
2886     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2887     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2888        break;;
2889   esac
2890 done
2891 else
2892   echo "$as_me: failed program was:" >&5
2893 sed 's/^/| /' conftest.$ac_ext >&5
2894 
2895 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2898 See \`config.log' for more details." >&2;}
2899    { (exit 1); exit 1; }; }
2900 fi
2901 
2902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2903 fi
2904 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2905 echo "${ECHO_T}$ac_cv_objext" >&6; }
2906 OBJEXT=$ac_cv_objext
2907 ac_objext=$OBJEXT
2908 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2909 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2910 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919 
2920 int
2921 main ()
2922 {
2923 #ifndef __GNUC__
2924        choke me
2925 #endif
2926 
2927   ;
2928   return 0;
2929 }
2930 _ACEOF
2931 rm -f conftest.$ac_objext
2932 if { (ac_try="$ac_compile"
2933 case "(($ac_try" in
2934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935   *) ac_try_echo=$ac_try;;
2936 esac
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938   (eval "$ac_compile") 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } &&
2945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2946   { (case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_try") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; } &&
2955          { ac_try='test -s conftest.$ac_objext'
2956   { (case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961   (eval "$ac_try") 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965   ac_compiler_gnu=yes
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969 
2970         ac_compiler_gnu=no
2971 fi
2972 
2973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2975 
2976 fi
2977 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2978 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2979 GCC=`test $ac_compiler_gnu = yes && echo yes`
2980 ac_test_CFLAGS=${CFLAGS+set}
2981 ac_save_CFLAGS=$CFLAGS
2982 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2983 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_cc_g+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   ac_save_c_werror_flag=$ac_c_werror_flag
2988    ac_c_werror_flag=yes
2989    ac_cv_prog_cc_g=no
2990    CFLAGS="-g"
2991    cat >conftest.$ac_ext <<_ACEOF
2992 /* confdefs.h.  */
2993 _ACEOF
2994 cat confdefs.h >>conftest.$ac_ext
2995 cat >>conftest.$ac_ext <<_ACEOF
2996 /* end confdefs.h.  */
2997 
2998 int
2999 main ()
3000 {
3001 
3002   ;
3003   return 0;
3004 }
3005 _ACEOF
3006 rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3008 case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_compile") 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } &&
3020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021   { (case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_try") 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; } &&
3030          { ac_try='test -s conftest.$ac_objext'
3031   { (case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_try") 2>&5
3037   ac_status=$?
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); }; }; then
3040   ac_cv_prog_cc_g=yes
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044 
3045         CFLAGS=""
3046       cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h.  */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h.  */
3052 
3053 int
3054 main ()
3055 {
3056 
3057   ;
3058   return 0;
3059 }
3060 _ACEOF
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065   *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068   (eval "$ac_compile") 2>conftest.er1
3069   ac_status=$?
3070   grep -v '^ *+' conftest.er1 >conftest.err
3071   rm -f conftest.er1
3072   cat conftest.err >&5
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); } &&
3075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3076   { (case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081   (eval "$ac_try") 2>&5
3082   ac_status=$?
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); }; } &&
3085          { ac_try='test -s conftest.$ac_objext'
3086   { (case "(($ac_try" in
3087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088   *) ac_try_echo=$ac_try;;
3089 esac
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091   (eval "$ac_try") 2>&5
3092   ac_status=$?
3093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094   (exit $ac_status); }; }; then
3095   :
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099 
3100         ac_c_werror_flag=$ac_save_c_werror_flag
3101          CFLAGS="-g"
3102          cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h.  */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h.  */
3108 
3109 int
3110 main ()
3111 {
3112 
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3119 case "(($ac_try" in
3120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121   *) ac_try_echo=$ac_try;;
3122 esac
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124   (eval "$ac_compile") 2>conftest.er1
3125   ac_status=$?
3126   grep -v '^ *+' conftest.er1 >conftest.err
3127   rm -f conftest.er1
3128   cat conftest.err >&5
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); } &&
3131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3132   { (case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137   (eval "$ac_try") 2>&5
3138   ac_status=$?
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); }; } &&
3141          { ac_try='test -s conftest.$ac_objext'
3142   { (case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_try") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; }; then
3151   ac_cv_prog_cc_g=yes
3152 else
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155 
3156 
3157 fi
3158 
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 fi
3161 
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 fi
3164 
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166    ac_c_werror_flag=$ac_save_c_werror_flag
3167 fi
3168 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3170 if test "$ac_test_CFLAGS" = set; then
3171   CFLAGS=$ac_save_CFLAGS
3172 elif test $ac_cv_prog_cc_g = yes; then
3173   if test "$GCC" = yes; then
3174     CFLAGS="-g -O2"
3175   else
3176     CFLAGS="-g"
3177   fi
3178 else
3179   if test "$GCC" = yes; then
3180     CFLAGS="-O2"
3181   else
3182     CFLAGS=
3183   fi
3184 fi
3185 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3186 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3187 if test "${ac_cv_prog_cc_c89+set}" = set; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   ac_cv_prog_cc_c89=no
3191 ac_save_CC=$CC
3192 cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 #include <stdarg.h>
3199 #include <stdio.h>
3200 #include <sys/types.h>
3201 #include <sys/stat.h>
3202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3203 struct buf { int x; };
3204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3205 static char *e (p, i)
3206      char **p;
3207      int i;
3208 {
3209   return p[i];
3210 }
3211 static char *f (char * (*g) (char **, int), char **p, ...)
3212 {
3213   char *s;
3214   va_list v;
3215   va_start (v,p);
3216   s = g (p, va_arg (v,int));
3217   va_end (v);
3218   return s;
3219 }
3220 
3221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3222    function prototypes and stuff, but not '\xHH' hex character constants.
3223    These don't provoke an error unfortunately, instead are silently treated
3224    as 'x'.  The following induces an error, until -std is added to get
3225    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3226    array size at least.  It's necessary to write '\x00'==0 to get something
3227    that's true only with -std.  */
3228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3229 
3230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3231    inside strings and character constants.  */
3232 #define FOO(x) 'x'
3233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3234 
3235 int test (int i, double x);
3236 struct s1 {int (*f) (int a);};
3237 struct s2 {int (*f) (double a);};
3238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3239 int argc;
3240 char **argv;
3241 int
3242 main ()
3243 {
3244 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3245   ;
3246   return 0;
3247 }
3248 _ACEOF
3249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3250         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3251 do
3252   CC="$ac_save_CC $ac_arg"
3253   rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3255 case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_compile") 2>conftest.er1
3261   ac_status=$?
3262   grep -v '^ *+' conftest.er1 >conftest.err
3263   rm -f conftest.er1
3264   cat conftest.err >&5
3265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266   (exit $ac_status); } &&
3267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3268   { (case "(($ac_try" in
3269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270   *) ac_try_echo=$ac_try;;
3271 esac
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273   (eval "$ac_try") 2>&5
3274   ac_status=$?
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); }; } &&
3277          { ac_try='test -s conftest.$ac_objext'
3278   { (case "(($ac_try" in
3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280   *) ac_try_echo=$ac_try;;
3281 esac
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283   (eval "$ac_try") 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; }; then
3287   ac_cv_prog_cc_c89=$ac_arg
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291 
3292 
3293 fi
3294 
3295 rm -f core conftest.err conftest.$ac_objext
3296   test "x$ac_cv_prog_cc_c89" != "xno" && break
3297 done
3298 rm -f conftest.$ac_ext
3299 CC=$ac_save_CC
3300 
3301 fi
3302 # AC_CACHE_VAL
3303 case "x$ac_cv_prog_cc_c89" in
3304   x)
3305     { echo "$as_me:$LINENO: result: none needed" >&5
3306 echo "${ECHO_T}none needed" >&6; } ;;
3307   xno)
3308     { echo "$as_me:$LINENO: result: unsupported" >&5
3309 echo "${ECHO_T}unsupported" >&6; } ;;
3310   *)
3311     CC="$CC $ac_cv_prog_cc_c89"
3312     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3313 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3314 esac
3315 
3316 
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322 
3323 ac_ext=cpp
3324 ac_cpp='$CXXCPP $CPPFLAGS'
3325 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3328 if test -z "$CXX"; then
3329   if test -n "$CCC"; then
3330     CXX=$CCC
3331   else
3332     if test -n "$ac_tool_prefix"; then
3333   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3334   do
3335     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3339 if test "${ac_cv_prog_CXX+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   if test -n "$CXX"; then
3343   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350   for ac_exec_ext in '' $ac_executable_extensions; do
3351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3352     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359 
3360 fi
3361 fi
3362 CXX=$ac_cv_prog_CXX
3363 if test -n "$CXX"; then
3364   { echo "$as_me:$LINENO: result: $CXX" >&5
3365 echo "${ECHO_T}$CXX" >&6; }
3366 else
3367   { echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6; }
3369 fi
3370 
3371 
3372     test -n "$CXX" && break
3373   done
3374 fi
3375 if test -z "$CXX"; then
3376   ac_ct_CXX=$CXX
3377   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3378 do
3379   # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$ac_ct_CXX"; then
3387   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394   for ac_exec_ext in '' $ac_executable_extensions; do
3395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3396     ac_cv_prog_ac_ct_CXX="$ac_prog"
3397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401 done
3402 IFS=$as_save_IFS
3403 
3404 fi
3405 fi
3406 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3407 if test -n "$ac_ct_CXX"; then
3408   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3409 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3410 else
3411   { echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6; }
3413 fi
3414 
3415 
3416   test -n "$ac_ct_CXX" && break
3417 done
3418 
3419   if test "x$ac_ct_CXX" = x; then
3420     CXX="g++"
3421   else
3422     case $cross_compiling:$ac_tool_warned in
3423 yes:)
3424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3425 whose name does not start with the host triplet.  If you think this
3426 configuration is useful to you, please write to autoconf@gnu.org." >&5
3427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3428 whose name does not start with the host triplet.  If you think this
3429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3430 ac_tool_warned=yes ;;
3431 esac
3432     CXX=$ac_ct_CXX
3433   fi
3434 fi
3435 
3436   fi
3437 fi
3438 # Provide some information about the compiler.
3439 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3440 ac_compiler=`set X $ac_compile; echo $2`
3441 { (ac_try="$ac_compiler --version >&5"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447   (eval "$ac_compiler --version >&5") 2>&5
3448   ac_status=$?
3449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450   (exit $ac_status); }
3451 { (ac_try="$ac_compiler -v >&5"
3452 case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457   (eval "$ac_compiler -v >&5") 2>&5
3458   ac_status=$?
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); }
3461 { (ac_try="$ac_compiler -V >&5"
3462 case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_compiler -V >&5") 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }
3471 
3472 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3473 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3474 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h.  */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h.  */
3483 
3484 int
3485 main ()
3486 {
3487 #ifndef __GNUC__
3488        choke me
3489 #endif
3490 
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502   (eval "$ac_compile") 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3510   { (case "(($ac_try" in
3511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512   *) ac_try_echo=$ac_try;;
3513 esac
3514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3515   (eval "$ac_try") 2>&5
3516   ac_status=$?
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); }; } &&
3519          { ac_try='test -s conftest.$ac_objext'
3520   { (case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_try") 2>&5
3526   ac_status=$?
3527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528   (exit $ac_status); }; }; then
3529   ac_compiler_gnu=yes
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533 
3534         ac_compiler_gnu=no
3535 fi
3536 
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3539 
3540 fi
3541 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3542 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3543 GXX=`test $ac_compiler_gnu = yes && echo yes`
3544 ac_test_CXXFLAGS=${CXXFLAGS+set}
3545 ac_save_CXXFLAGS=$CXXFLAGS
3546 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3547 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3548 if test "${ac_cv_prog_cxx_g+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3552    ac_cxx_werror_flag=yes
3553    ac_cv_prog_cxx_g=no
3554    CXXFLAGS="-g"
3555    cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561 
3562 int
3563 main ()
3564 {
3565 
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.$ac_objext
3571 if { (ac_try="$ac_compile"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577   (eval "$ac_compile") 2>conftest.er1
3578   ac_status=$?
3579   grep -v '^ *+' conftest.er1 >conftest.err
3580   rm -f conftest.er1
3581   cat conftest.err >&5
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); } &&
3584          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3585   { (case "(($ac_try" in
3586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587   *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590   (eval "$ac_try") 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); }; } &&
3594          { ac_try='test -s conftest.$ac_objext'
3595   { (case "(($ac_try" in
3596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597   *) ac_try_echo=$ac_try;;
3598 esac
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600   (eval "$ac_try") 2>&5
3601   ac_status=$?
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); }; }; then
3604   ac_cv_prog_cxx_g=yes
3605 else
3606   echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608 
3609         CXXFLAGS=""
3610       cat >conftest.$ac_ext <<_ACEOF
3611 /* confdefs.h.  */
3612 _ACEOF
3613 cat confdefs.h >>conftest.$ac_ext
3614 cat >>conftest.$ac_ext <<_ACEOF
3615 /* end confdefs.h.  */
3616 
3617 int
3618 main ()
3619 {
3620 
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (ac_try="$ac_compile"
3627 case "(($ac_try" in
3628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629   *) ac_try_echo=$ac_try;;
3630 esac
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632   (eval "$ac_compile") 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } &&
3639          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3640   { (case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645   (eval "$ac_try") 2>&5
3646   ac_status=$?
3647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }; } &&
3649          { ac_try='test -s conftest.$ac_objext'
3650   { (case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655   (eval "$ac_try") 2>&5
3656   ac_status=$?
3657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658   (exit $ac_status); }; }; then
3659   :
3660 else
3661   echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663 
3664         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3665          CXXFLAGS="-g"
3666          cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h.  */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h.  */
3672 
3673 int
3674 main ()
3675 {
3676 
3677   ;
3678   return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (ac_try="$ac_compile"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688   (eval "$ac_compile") 2>conftest.er1
3689   ac_status=$?
3690   grep -v '^ *+' conftest.er1 >conftest.err
3691   rm -f conftest.er1
3692   cat conftest.err >&5
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); } &&
3695          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3696   { (case "(($ac_try" in
3697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698   *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701   (eval "$ac_try") 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; } &&
3705          { ac_try='test -s conftest.$ac_objext'
3706   { (case "(($ac_try" in
3707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708   *) ac_try_echo=$ac_try;;
3709 esac
3710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3711   (eval "$ac_try") 2>&5
3712   ac_status=$?
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); }; }; then
3715   ac_cv_prog_cxx_g=yes
3716 else
3717   echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719 
3720 
3721 fi
3722 
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 fi
3725 
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 fi
3728 
3729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3731 fi
3732 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3733 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3734 if test "$ac_test_CXXFLAGS" = set; then
3735   CXXFLAGS=$ac_save_CXXFLAGS
3736 elif test $ac_cv_prog_cxx_g = yes; then
3737   if test "$GXX" = yes; then
3738     CXXFLAGS="-g -O2"
3739   else
3740     CXXFLAGS="-g"
3741   fi
3742 else
3743   if test "$GXX" = yes; then
3744     CXXFLAGS="-O2"
3745   else
3746     CXXFLAGS=
3747   fi
3748 fi
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 
3755 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3756 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3757 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3758 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   cat >conftest.make <<\_ACEOF
3762 SHELL = /bin/sh
3763 all:
3764         @echo '@@@%%%=$(MAKE)=@@@%%%'
3765 _ACEOF
3766 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3767 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3768   *@@@%%%=?*=@@@%%%*)
3769     eval ac_cv_prog_make_${ac_make}_set=yes;;
3770   *)
3771     eval ac_cv_prog_make_${ac_make}_set=no;;
3772 esac
3773 rm -f conftest.make
3774 fi
3775 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3776   { echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6; }
3778   SET_MAKE=
3779 else
3780   { echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6; }
3782   SET_MAKE="MAKE=${MAKE-make}"
3783 fi
3784 
3785 
3786 # Check whether --enable-static was given.
3787 if test "${enable_static+set}" = set; then
3788   enableval=$enable_static; p=${PACKAGE-default}
3789     case $enableval in
3790     yes) enable_static=yes ;;
3791     no) enable_static=no ;;
3792     *)
3793      enable_static=no
3794       # Look at the argument we got.  We use all the common list separators.
3795       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3796       for pkg in $enableval; do
3797         IFS="$lt_save_ifs"
3798         if test "X$pkg" = "X$p"; then
3799           enable_static=yes
3800         fi
3801       done
3802       IFS="$lt_save_ifs"
3803       ;;
3804     esac
3805 else
3806   enable_static=no
3807 fi
3808 
3809 
3810 
3811 
3812 
3813 # Check whether --enable-shared was given.
3814 if test "${enable_shared+set}" = set; then
3815   enableval=$enable_shared; p=${PACKAGE-default}
3816     case $enableval in
3817     yes) enable_shared=yes ;;
3818     no) enable_shared=no ;;
3819     *)
3820       enable_shared=no
3821       # Look at the argument we got.  We use all the common list separators.
3822       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3823       for pkg in $enableval; do
3824         IFS="$lt_save_ifs"
3825         if test "X$pkg" = "X$p"; then
3826           enable_shared=yes
3827         fi
3828       done
3829       IFS="$lt_save_ifs"
3830       ;;
3831     esac
3832 else
3833   enable_shared=yes
3834 fi
3835 
3836 
3837 # Check whether --enable-fast-install was given.
3838 if test "${enable_fast_install+set}" = set; then
3839   enableval=$enable_fast_install; p=${PACKAGE-default}
3840     case $enableval in
3841     yes) enable_fast_install=yes ;;
3842     no) enable_fast_install=no ;;
3843     *)
3844       enable_fast_install=no
3845       # Look at the argument we got.  We use all the common list separators.
3846       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3847       for pkg in $enableval; do
3848         IFS="$lt_save_ifs"
3849         if test "X$pkg" = "X$p"; then
3850           enable_fast_install=yes
3851         fi
3852       done
3853       IFS="$lt_save_ifs"
3854       ;;
3855     esac
3856 else
3857   enable_fast_install=yes
3858 fi
3859 
3860 
3861 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3862 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3863 if test "${lt_cv_path_SED+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   # Loop through the user's path and test for sed and gsed.
3867 # Then use that list of sed's as ones to test for truncation.
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for lt_ac_prog in sed gsed; do
3874     for ac_exec_ext in '' $ac_executable_extensions; do
3875       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3876         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3877       fi
3878     done
3879   done
3880 done
3881 lt_ac_max=0
3882 lt_ac_count=0
3883 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3884 # along with /bin/sed that truncates output.
3885 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3886   test ! -f $lt_ac_sed && break
3887   cat /dev/null > conftest.in
3888   lt_ac_count=0
3889   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3890   # Check for GNU sed and select it if it is found.
3891   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3892     lt_cv_path_SED=$lt_ac_sed
3893     break
3894   fi
3895   while true; do
3896     cat conftest.in conftest.in >conftest.tmp
3897     mv conftest.tmp conftest.in
3898     cp conftest.in conftest.nl
3899     echo >>conftest.nl
3900     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3901     cmp -s conftest.out conftest.nl || break
3902     # 10000 chars as input seems more than enough
3903     test $lt_ac_count -gt 10 && break
3904     lt_ac_count=`expr $lt_ac_count + 1`
3905     if test $lt_ac_count -gt $lt_ac_max; then
3906       lt_ac_max=$lt_ac_count
3907       lt_cv_path_SED=$lt_ac_sed
3908     fi
3909   done
3910 done
3911 SED=$lt_cv_path_SED
3912 
3913 fi
3914 
3915 { echo "$as_me:$LINENO: result: $SED" >&5
3916 echo "${ECHO_T}$SED" >&6; }
3917 
3918 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3919 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3920 if test "${ac_cv_path_GREP+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   # Extract the first word of "grep ggrep" to use in msg output
3924 if test -z "$GREP"; then
3925 set dummy grep ggrep; ac_prog_name=$2
3926 if test "${ac_cv_path_GREP+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   ac_path_GREP_found=false
3930 # Loop through the user's path and test for each of PROGNAME-LIST
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933 do
3934   IFS=$as_save_IFS
3935   test -z "$as_dir" && as_dir=.
3936   for ac_prog in grep ggrep; do
3937   for ac_exec_ext in '' $ac_executable_extensions; do
3938     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3940     # Check for GNU ac_path_GREP and select it if it is found.
3941   # Check for GNU $ac_path_GREP
3942 case `"$ac_path_GREP" --version 2>&1` in
3943 *GNU*)
3944   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3945 *)
3946   ac_count=0
3947   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3948   while :
3949   do
3950     cat "conftest.in" "conftest.in" >"conftest.tmp"
3951     mv "conftest.tmp" "conftest.in"
3952     cp "conftest.in" "conftest.nl"
3953     echo 'GREP' >> "conftest.nl"
3954     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956     ac_count=`expr $ac_count + 1`
3957     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958       # Best one so far, save it but keep looking for a better one
3959       ac_cv_path_GREP="$ac_path_GREP"
3960       ac_path_GREP_max=$ac_count
3961     fi
3962     # 10*(2^10) chars as input seems more than enough
3963     test $ac_count -gt 10 && break
3964   done
3965   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966 esac
3967 
3968 
3969     $ac_path_GREP_found && break 3
3970   done
3971 done
3972 
3973 done
3974 IFS=$as_save_IFS
3975 
3976 
3977 fi
3978 
3979 GREP="$ac_cv_path_GREP"
3980 if test -z "$GREP"; then
3981   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3982 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3983    { (exit 1); exit 1; }; }
3984 fi
3985 
3986 else
3987   ac_cv_path_GREP=$GREP
3988 fi
3989 
3990 
3991 fi
3992 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3994  GREP="$ac_cv_path_GREP"
3995 
3996 
3997 { echo "$as_me:$LINENO: checking for egrep" >&5
3998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3999 if test "${ac_cv_path_EGREP+set}" = set; then
4000   echo $ECHO_N "(cached) $ECHO_C" >&6
4001 else
4002   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003    then ac_cv_path_EGREP="$GREP -E"
4004    else
4005      # Extract the first word of "egrep" to use in msg output
4006 if test -z "$EGREP"; then
4007 set dummy egrep; ac_prog_name=$2
4008 if test "${ac_cv_path_EGREP+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   ac_path_EGREP_found=false
4012 # Loop through the user's path and test for each of PROGNAME-LIST
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_prog in egrep; do
4019   for ac_exec_ext in '' $ac_executable_extensions; do
4020     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4022     # Check for GNU ac_path_EGREP and select it if it is found.
4023   # Check for GNU $ac_path_EGREP
4024 case `"$ac_path_EGREP" --version 2>&1` in
4025 *GNU*)
4026   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4027 *)
4028   ac_count=0
4029   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4030   while :
4031   do
4032     cat "conftest.in" "conftest.in" >"conftest.tmp"
4033     mv "conftest.tmp" "conftest.in"
4034     cp "conftest.in" "conftest.nl"
4035     echo 'EGREP' >> "conftest.nl"
4036     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038     ac_count=`expr $ac_count + 1`
4039     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040       # Best one so far, save it but keep looking for a better one
4041       ac_cv_path_EGREP="$ac_path_EGREP"
4042       ac_path_EGREP_max=$ac_count
4043     fi
4044     # 10*(2^10) chars as input seems more than enough
4045     test $ac_count -gt 10 && break
4046   done
4047   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4048 esac
4049 
4050 
4051     $ac_path_EGREP_found && break 3
4052   done
4053 done
4054 
4055 done
4056 IFS=$as_save_IFS
4057 
4058 
4059 fi
4060 
4061 EGREP="$ac_cv_path_EGREP"
4062 if test -z "$EGREP"; then
4063   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065    { (exit 1); exit 1; }; }
4066 fi
4067 
4068 else
4069   ac_cv_path_EGREP=$EGREP
4070 fi
4071 
4072 
4073    fi
4074 fi
4075 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4076 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4077  EGREP="$ac_cv_path_EGREP"
4078 
4079 
4080 
4081 # Check whether --with-gnu-ld was given.
4082 if test "${with_gnu_ld+set}" = set; then
4083   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4084 else
4085   with_gnu_ld=no
4086 fi
4087 
4088 ac_prog=ld
4089 if test "$GCC" = yes; then
4090   # Check if gcc -print-prog-name=ld gives a path.
4091   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4092 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4093   case $host in
4094   *-*-mingw*)
4095     # gcc leaves a trailing carriage return which upsets mingw
4096     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4097   *)
4098     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4099   esac
4100   case $ac_prog in
4101     # Accept absolute paths.
4102     [\\/]* | ?:[\\/]*)
4103       re_direlt='/[^/][^/]*/\.\./'
4104       # Canonicalize the pathname of ld
4105       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4106       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4107         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4108       done
4109       test -z "$LD" && LD="$ac_prog"
4110       ;;
4111   "")
4112     # If it fails, then pretend we aren't using GCC.
4113     ac_prog=ld
4114     ;;
4115   *)
4116     # If it is relative, then search for the first ld in PATH.
4117     with_gnu_ld=unknown
4118     ;;
4119   esac
4120 elif test "$with_gnu_ld" = yes; then
4121   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4122 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4123 else
4124   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4125 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4126 fi
4127 if test "${lt_cv_path_LD+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   if test -z "$LD"; then
4131   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4132   for ac_dir in $PATH; do
4133     IFS="$lt_save_ifs"
4134     test -z "$ac_dir" && ac_dir=.
4135     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4136       lt_cv_path_LD="$ac_dir/$ac_prog"
4137       # Check to see if the program is GNU ld.  I'd rather use --version,
4138       # but apparently some GNU ld's only accept -v.
4139       # Break only if it was the GNU/non-GNU ld that we prefer.
4140       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4141       *GNU* | *'with BFD'*)
4142         test "$with_gnu_ld" != no && break
4143         ;;
4144       *)
4145         test "$with_gnu_ld" != yes && break
4146         ;;
4147       esac
4148     fi
4149   done
4150   IFS="$lt_save_ifs"
4151 else
4152   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4153 fi
4154 fi
4155 
4156 LD="$lt_cv_path_LD"
4157 if test -n "$LD"; then
4158   { echo "$as_me:$LINENO: result: $LD" >&5
4159 echo "${ECHO_T}$LD" >&6; }
4160 else
4161   { echo "$as_me:$LINENO: result: no" >&5
4162 echo "${ECHO_T}no" >&6; }
4163 fi
4164 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4165 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4166    { (exit 1); exit 1; }; }
4167 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4168 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4169 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4173 case `$LD -v 2>&1 </dev/null` in
4174 *GNU* | *'with BFD'*)
4175   lt_cv_prog_gnu_ld=yes
4176   ;;
4177 *)
4178   lt_cv_prog_gnu_ld=no
4179   ;;
4180 esac
4181 fi
4182 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4183 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4184 with_gnu_ld=$lt_cv_prog_gnu_ld
4185 
4186 
4187 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4188 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4189 if test "${lt_cv_ld_reload_flag+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   lt_cv_ld_reload_flag='-r'
4193 fi
4194 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4195 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4196 reload_flag=$lt_cv_ld_reload_flag
4197 case $reload_flag in
4198 "" | " "*) ;;
4199 *) reload_flag=" $reload_flag" ;;
4200 esac
4201 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4202 
4203 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4204 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4205 if test "${lt_cv_path_NM+set}" = set; then
4206   echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208   if test -n "$NM"; then
4209   # Let the user override the test.
4210   lt_cv_path_NM="$NM"
4211 else
4212   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4213   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4214     IFS="$lt_save_ifs"
4215     test -z "$ac_dir" && ac_dir=.
4216     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4217     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4218       # Check to see if the nm accepts a BSD-compat flag.
4219       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4220       #   nm: unknown option "B" ignored
4221       # Tru64's nm complains that /dev/null is an invalid object file
4222       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4223       */dev/null* | *'Invalid file or object type'*)
4224         lt_cv_path_NM="$tmp_nm -B"
4225         break
4226         ;;
4227       *)
4228         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4229         */dev/null*)
4230           lt_cv_path_NM="$tmp_nm -p"
4231           break
4232           ;;
4233         *)
4234           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4235           continue # so that we can try to find one that supports BSD flags
4236           ;;
4237         esac
4238       esac
4239     fi
4240   done
4241   IFS="$lt_save_ifs"
4242   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4243 fi
4244 fi
4245 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4246 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4247 NM="$lt_cv_path_NM"
4248 
4249 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4250 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4251 LN_S=$as_ln_s
4252 if test "$LN_S" = "ln -s"; then
4253   { echo "$as_me:$LINENO: result: yes" >&5
4254 echo "${ECHO_T}yes" >&6; }
4255 else
4256   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4257 echo "${ECHO_T}no, using $LN_S" >&6; }
4258 fi
4259 
4260 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4261 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4262 if test "${lt_cv_deplibs_check_method+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   lt_cv_file_magic_cmd='$MAGIC_CMD'
4266 lt_cv_file_magic_test_file=
4267 lt_cv_deplibs_check_method='unknown'
4268 # Need to set the preceding variable on all platforms that support
4269 # interlibrary dependencies.
4270 # 'none' -- dependencies not supported.
4271 # `unknown' -- same as none, but documents that we really don't know.
4272 # 'pass_all' -- all dependencies passed with no checks.
4273 # 'test_compile' -- check by making test program.
4274 # 'file_magic [[regex]]' -- check by looking for files in library path
4275 # which responds to the $file_magic_cmd with a given extended regex.
4276 # If you have `file' or equivalent on your system and you're not sure
4277 # whether `pass_all' will *always* work, you probably want this one.
4278 
4279 case $host_os in
4280 aix4* | aix5*)
4281   lt_cv_deplibs_check_method=pass_all
4282   ;;
4283 
4284 beos*)
4285   lt_cv_deplibs_check_method=pass_all
4286   ;;
4287 
4288 bsdi4*)
4289   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4290   lt_cv_file_magic_cmd='/usr/bin/file -L'
4291   lt_cv_file_magic_test_file=/shlib/libc.so
4292   ;;
4293 
4294 cygwin* | mingw* | pw32*)
4295   # win32_libid is a shell function defined in ltmain.sh
4296   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4297   lt_cv_file_magic_cmd='win32_libid'
4298   ;;
4299 
4300 darwin* | rhapsody*)
4301   # this will be overwritten by pass_all, but leave it in just in case
4302   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4303   lt_cv_file_magic_cmd='/usr/bin/file -L'
4304   case "$host_os" in
4305   rhapsody* | darwin1.[012])
4306     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4307     ;;
4308   *) # Darwin 1.3 on
4309     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4310     ;;
4311   esac
4312   lt_cv_deplibs_check_method=pass_all
4313   ;;
4314 
4315 freebsd* | kfreebsd*-gnu)
4316   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4317     case $host_cpu in
4318     i*86 )
4319       # Not sure whether the presence of OpenBSD here was a mistake.
4320       # Let's accept both of them until this is cleared up.
4321       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4322       lt_cv_file_magic_cmd=/usr/bin/file
4323       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4324       ;;
4325     esac
4326   else
4327     lt_cv_deplibs_check_method=pass_all
4328   fi
4329   ;;
4330 
4331 gnu*)
4332   lt_cv_deplibs_check_method=pass_all
4333   ;;
4334 
4335 hpux10.20* | hpux11*)
4336   lt_cv_file_magic_cmd=/usr/bin/file
4337   case "$host_cpu" in
4338   ia64*)
4339     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4340     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4341     ;;
4342   hppa*64*)
4343     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]'
4344     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4345     ;;
4346   *)
4347     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4348     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4349     ;;
4350   esac
4351   ;;
4352 
4353 irix5* | irix6* | nonstopux*)
4354   case $host_os in
4355   irix5* | nonstopux*)
4356     # this will be overridden with pass_all, but let us keep it just in case
4357     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4358     ;;
4359   *)
4360     case $LD in
4361     *-32|*"-32 ") libmagic=32-bit;;
4362     *-n32|*"-n32 ") libmagic=N32;;
4363     *-64|*"-64 ") libmagic=64-bit;;
4364     *) libmagic=never-match;;
4365     esac
4366     # this will be overridden with pass_all, but let us keep it just in case
4367     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4368     ;;
4369   esac
4370   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4371   lt_cv_deplibs_check_method=pass_all
4372   ;;
4373 
4374 # This must be Linux ELF.
4375 linux*)
4376   case $host_cpu in
4377   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
4378     lt_cv_deplibs_check_method=pass_all ;;
4379   *)
4380     # glibc up to 2.1.1 does not perform some relocations on ARM
4381     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4382   esac
4383   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4384   ;;
4385 
4386 netbsd*)
4387   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4388     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4389   else
4390     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4391   fi
4392   ;;
4393 
4394 newos6*)
4395   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4396   lt_cv_file_magic_cmd=/usr/bin/file
4397   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4398   ;;
4399 
4400 nto-qnx*)
4401   lt_cv_deplibs_check_method=unknown
4402   ;;
4403 
4404 openbsd*)
4405   lt_cv_file_magic_cmd=/usr/bin/file
4406   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4407   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4408     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4409   else
4410     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4411   fi
4412   ;;
4413 
4414 osf3* | osf4* | osf5*)
4415   # this will be overridden with pass_all, but let us keep it just in case
4416   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4417   lt_cv_file_magic_test_file=/shlib/libc.so
4418   lt_cv_deplibs_check_method=pass_all
4419   ;;
4420 
4421 sco3.2v5*)
4422   lt_cv_deplibs_check_method=pass_all
4423   ;;
4424 
4425 solaris*)
4426   lt_cv_deplibs_check_method=pass_all
4427   lt_cv_file_magic_test_file=/lib/libc.so
4428   ;;
4429 
4430 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4431   case $host_vendor in
4432   motorola)
4433     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]'
4434     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4435     ;;
4436   ncr)
4437     lt_cv_deplibs_check_method=pass_all
4438     ;;
4439   sequent)
4440     lt_cv_file_magic_cmd='/bin/file'
4441     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4442     ;;
4443   sni)
4444     lt_cv_file_magic_cmd='/bin/file'
4445     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4446     lt_cv_file_magic_test_file=/lib/libc.so
4447     ;;
4448   siemens)
4449     lt_cv_deplibs_check_method=pass_all
4450     ;;
4451   esac
4452   ;;
4453 
4454 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4455   lt_cv_deplibs_check_method=pass_all
4456   ;;
4457 esac
4458 
4459 fi
4460 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4461 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4462 file_magic_cmd=$lt_cv_file_magic_cmd
4463 deplibs_check_method=$lt_cv_deplibs_check_method
4464 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4465 
4466 
4467 
4468 
4469 # If no C compiler was specified, use CC.
4470 LTCC=${LTCC-"$CC"}
4471 
4472 # Allow CC to be a program name with arguments.
4473 compiler=$CC
4474 
4475 
4476 # Check whether --enable-libtool-lock was given.
4477 if test "${enable_libtool_lock+set}" = set; then
4478   enableval=$enable_libtool_lock;
4479 fi
4480 
4481 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4482 
4483 # Some flags need to be propagated to the compiler or linker for good
4484 # libtool support.
4485 case $host in
4486 ia64-*-hpux*)
4487   # Find out which ABI we are using.
4488   echo 'int i;' > conftest.$ac_ext
4489   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490   (eval $ac_compile) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; then
4494     case `/usr/bin/file conftest.$ac_objext` in
4495     *ELF-32*)
4496       HPUX_IA64_MODE="32"
4497       ;;
4498     *ELF-64*)
4499       HPUX_IA64_MODE="64"
4500       ;;
4501     esac
4502   fi
4503   rm -rf conftest*
4504   ;;
4505 *-*-irix6*)
4506   # Find out which ABI we are using.
4507   echo '#line 4507 "configure"' > conftest.$ac_ext
4508   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509   (eval $ac_compile) 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }; then
4513    if test "$lt_cv_prog_gnu_ld" = yes; then
4514     case `/usr/bin/file conftest.$ac_objext` in
4515     *32-bit*)
4516       LD="${LD-ld} -melf32bsmip"
4517       ;;
4518     *N32*)
4519       LD="${LD-ld} -melf32bmipn32"
4520       ;;
4521     *64-bit*)
4522       LD="${LD-ld} -melf64bmip"
4523       ;;
4524     esac
4525    else
4526     case `/usr/bin/file conftest.$ac_objext` in
4527     *32-bit*)
4528       LD="${LD-ld} -32"
4529       ;;
4530     *N32*)
4531       LD="${LD-ld} -n32"
4532       ;;
4533     *64-bit*)
4534       LD="${LD-ld} -64"
4535       ;;
4536     esac
4537    fi
4538   fi
4539   rm -rf conftest*
4540   ;;
4541 
4542 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4543   # Find out which ABI we are using.
4544   echo 'int i;' > conftest.$ac_ext
4545   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546   (eval $ac_compile) 2>&5
4547   ac_status=$?
4548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549   (exit $ac_status); }; then
4550     case "`/usr/bin/file conftest.o`" in
4551     *32-bit*)
4552       case $host in
4553         x86_64-*linux*)
4554           LD="${LD-ld} -m elf_i386"
4555           ;;
4556         ppc64-*linux*|powerpc64-*linux*)
4557           LD="${LD-ld} -m elf32ppclinux"
4558           ;;
4559         s390x-*linux*)
4560           LD="${LD-ld} -m elf_s390"
4561           ;;
4562         sparc64-*linux*)
4563           LD="${LD-ld} -m elf32_sparc"
4564           ;;
4565       esac
4566       ;;
4567     *64-bit*)
4568       case $host in
4569         x86_64-*linux*)
4570           LD="${LD-ld} -m elf_x86_64"
4571           ;;
4572         ppc*-*linux*|powerpc*-*linux*)
4573           LD="${LD-ld} -m elf64ppc"
4574           ;;
4575         s390*-*linux*)
4576           LD="${LD-ld} -m elf64_s390"
4577           ;;
4578         sparc*-*linux*)
4579           LD="${LD-ld} -m elf64_sparc"
4580           ;;
4581       esac
4582       ;;
4583     esac
4584   fi
4585   rm -rf conftest*
4586   ;;
4587 
4588 *-*-sco3.2v5*)
4589   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4590   SAVE_CFLAGS="$CFLAGS"
4591   CFLAGS="$CFLAGS -belf"
4592   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4593 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4594 if test "${lt_cv_cc_needs_belf+set}" = set; then
4595   echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597   ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602 
4603      cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h.  */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h.  */
4609 
4610 int
4611 main ()
4612 {
4613 
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 rm -f conftest.$ac_objext conftest$ac_exeext
4619 if { (ac_try="$ac_link"
4620 case "(($ac_try" in
4621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622   *) ac_try_echo=$ac_try;;
4623 esac
4624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4625   (eval "$ac_link") 2>conftest.er1
4626   ac_status=$?
4627   grep -v '^ *+' conftest.er1 >conftest.err
4628   rm -f conftest.er1
4629   cat conftest.err >&5
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } &&
4632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4633   { (case "(($ac_try" in
4634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635   *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638   (eval "$ac_try") 2>&5
4639   ac_status=$?
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); }; } &&
4642          { ac_try='test -s conftest$ac_exeext'
4643   { (case "(($ac_try" in
4644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645   *) ac_try_echo=$ac_try;;
4646 esac
4647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648   (eval "$ac_try") 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }; }; then
4652   lt_cv_cc_needs_belf=yes
4653 else
4654   echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656 
4657         lt_cv_cc_needs_belf=no
4658 fi
4659 
4660 rm -f core conftest.err conftest.$ac_objext \
4661       conftest$ac_exeext conftest.$ac_ext
4662      ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667 
4668 fi
4669 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4670 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4671   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4672     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4673     CFLAGS="$SAVE_CFLAGS"
4674   fi
4675   ;;
4676 
4677 esac
4678 
4679 need_locks="$enable_libtool_lock"
4680 
4681 
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4688 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4689 # On Suns, sometimes $CPP names a directory.
4690 if test -n "$CPP" && test -d "$CPP"; then
4691   CPP=
4692 fi
4693 if test -z "$CPP"; then
4694   if test "${ac_cv_prog_CPP+set}" = set; then
4695   echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697       # Double quotes because CPP needs to be expanded
4698     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4699     do
4700       ac_preproc_ok=false
4701 for ac_c_preproc_warn_flag in '' yes
4702 do
4703   # Use a header file that comes with gcc, so configuring glibc
4704   # with a fresh cross-compiler works.
4705   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4706   # <limits.h> exists even on freestanding compilers.
4707   # On the NeXT, cc -E runs the code through the compiler's parser,
4708   # not just through cpp. "Syntax error" is here to catch this case.
4709   cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 #ifdef __STDC__
4716 # include <limits.h>
4717 #else
4718 # include <assert.h>
4719 #endif
4720                      Syntax error
4721 _ACEOF
4722 if { (ac_try="$ac_cpp conftest.$ac_ext"
4723 case "(($ac_try" in
4724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725   *) ac_try_echo=$ac_try;;
4726 esac
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4729   ac_status=$?
4730   grep -v '^ *+' conftest.er1 >conftest.err
4731   rm -f conftest.er1
4732   cat conftest.err >&5
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } >/dev/null; then
4735   if test -s conftest.err; then
4736     ac_cpp_err=$ac_c_preproc_warn_flag
4737     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4738   else
4739     ac_cpp_err=
4740   fi
4741 else
4742   ac_cpp_err=yes
4743 fi
4744 if test -z "$ac_cpp_err"; then
4745   :
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749 
4750   # Broken: fails on valid input.
4751 continue
4752 fi
4753 
4754 rm -f conftest.err conftest.$ac_ext
4755 
4756   # OK, works on sane cases.  Now check whether nonexistent headers
4757   # can be detected and how.
4758   cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h.  */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h.  */
4764 #include <ac_nonexistent.h>
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 case "(($ac_try" in
4768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769   *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773   ac_status=$?
4774   grep -v '^ *+' conftest.er1 >conftest.err
4775   rm -f conftest.er1
4776   cat conftest.err >&5
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } >/dev/null; then
4779   if test -s conftest.err; then
4780     ac_cpp_err=$ac_c_preproc_warn_flag
4781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4782   else
4783     ac_cpp_err=
4784   fi
4785 else
4786   ac_cpp_err=yes
4787 fi
4788 if test -z "$ac_cpp_err"; then
4789   # Broken: success on invalid input.
4790 continue
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794 
4795   # Passes both tests.
4796 ac_preproc_ok=:
4797 break
4798 fi
4799 
4800 rm -f conftest.err conftest.$ac_ext
4801 
4802 done
4803 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4804 rm -f conftest.err conftest.$ac_ext
4805 if $ac_preproc_ok; then
4806   break
4807 fi
4808 
4809     done
4810     ac_cv_prog_CPP=$CPP
4811 
4812 fi
4813   CPP=$ac_cv_prog_CPP
4814 else
4815   ac_cv_prog_CPP=$CPP
4816 fi
4817 { echo "$as_me:$LINENO: result: $CPP" >&5
4818 echo "${ECHO_T}$CPP" >&6; }
4819 ac_preproc_ok=false
4820 for ac_c_preproc_warn_flag in '' yes
4821 do
4822   # Use a header file that comes with gcc, so configuring glibc
4823   # with a fresh cross-compiler works.
4824   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4825   # <limits.h> exists even on freestanding compilers.
4826   # On the NeXT, cc -E runs the code through the compiler's parser,
4827   # not just through cpp. "Syntax error" is here to catch this case.
4828   cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834 #ifdef __STDC__
4835 # include <limits.h>
4836 #else
4837 # include <assert.h>
4838 #endif
4839                      Syntax error
4840 _ACEOF
4841 if { (ac_try="$ac_cpp conftest.$ac_ext"
4842 case "(($ac_try" in
4843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844   *) ac_try_echo=$ac_try;;
4845 esac
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } >/dev/null; then
4854   if test -s conftest.err; then
4855     ac_cpp_err=$ac_c_preproc_warn_flag
4856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4857   else
4858     ac_cpp_err=
4859   fi
4860 else
4861   ac_cpp_err=yes
4862 fi
4863 if test -z "$ac_cpp_err"; then
4864   :
4865 else
4866   echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868 
4869   # Broken: fails on valid input.
4870 continue
4871 fi
4872 
4873 rm -f conftest.err conftest.$ac_ext
4874 
4875   # OK, works on sane cases.  Now check whether nonexistent headers
4876   # can be detected and how.
4877   cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883 #include <ac_nonexistent.h>
4884 _ACEOF
4885 if { (ac_try="$ac_cpp conftest.$ac_ext"
4886 case "(($ac_try" in
4887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888   *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4892   ac_status=$?
4893   grep -v '^ *+' conftest.er1 >conftest.err
4894   rm -f conftest.er1
4895   cat conftest.err >&5
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); } >/dev/null; then
4898   if test -s conftest.err; then
4899     ac_cpp_err=$ac_c_preproc_warn_flag
4900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4901   else
4902     ac_cpp_err=
4903   fi
4904 else
4905   ac_cpp_err=yes
4906 fi
4907 if test -z "$ac_cpp_err"; then
4908   # Broken: success on invalid input.
4909 continue
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913 
4914   # Passes both tests.
4915 ac_preproc_ok=:
4916 break
4917 fi
4918 
4919 rm -f conftest.err conftest.$ac_ext
4920 
4921 done
4922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4923 rm -f conftest.err conftest.$ac_ext
4924 if $ac_preproc_ok; then
4925   :
4926 else
4927   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4928 See \`config.log' for more details." >&5
4929 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4930 See \`config.log' for more details." >&2;}
4931    { (exit 1); exit 1; }; }
4932 fi
4933 
4934 ac_ext=c
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939 
4940 
4941 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4942 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4943 if test "${ac_cv_header_stdc+set}" = set; then
4944   echo $ECHO_N "(cached) $ECHO_C" >&6
4945 else
4946   cat >conftest.$ac_ext <<_ACEOF
4947 /* confdefs.h.  */
4948 _ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h.  */
4952 #include <stdlib.h>
4953 #include <stdarg.h>
4954 #include <string.h>
4955 #include <float.h>
4956 
4957 int
4958 main ()
4959 {
4960 
4961   ;
4962   return 0;
4963 }
4964 _ACEOF
4965 rm -f conftest.$ac_objext
4966 if { (ac_try="$ac_compile"
4967 case "(($ac_try" in
4968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4969   *) ac_try_echo=$ac_try;;
4970 esac
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972   (eval "$ac_compile") 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4980   { (case "(($ac_try" in
4981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982   *) ac_try_echo=$ac_try;;
4983 esac
4984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4985   (eval "$ac_try") 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; } &&
4989          { ac_try='test -s conftest.$ac_objext'
4990   { (case "(($ac_try" in
4991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992   *) ac_try_echo=$ac_try;;
4993 esac
4994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4995   (eval "$ac_try") 2>&5
4996   ac_status=$?
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); }; }; then
4999   ac_cv_header_stdc=yes
5000 else
5001   echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003 
5004         ac_cv_header_stdc=no
5005 fi
5006 
5007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 
5009 if test $ac_cv_header_stdc = yes; then
5010   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5011   cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 #include <string.h>
5018 
5019 _ACEOF
5020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5021   $EGREP "memchr" >/dev/null 2>&1; then
5022   :
5023 else
5024   ac_cv_header_stdc=no
5025 fi
5026 rm -f conftest*
5027 
5028 fi
5029 
5030 if test $ac_cv_header_stdc = yes; then
5031   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5032   cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 #include <stdlib.h>
5039 
5040 _ACEOF
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042   $EGREP "free" >/dev/null 2>&1; then
5043   :
5044 else
5045   ac_cv_header_stdc=no
5046 fi
5047 rm -f conftest*
5048 
5049 fi
5050 
5051 if test $ac_cv_header_stdc = yes; then
5052   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5053   if test "$cross_compiling" = yes; then
5054   :
5055 else
5056   cat >conftest.$ac_ext <<_ACEOF
5057 /* confdefs.h.  */
5058 _ACEOF
5059 cat confdefs.h >>conftest.$ac_ext
5060 cat >>conftest.$ac_ext <<_ACEOF
5061 /* end confdefs.h.  */
5062 #include <ctype.h>
5063 #include <stdlib.h>
5064 #if ((' ' & 0x0FF) == 0x020)
5065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5067 #else
5068 # define ISLOWER(c) \
5069                    (('a' <= (c) && (c) <= 'i') \
5070                      || ('j' <= (c) && (c) <= 'r') \
5071                      || ('s' <= (c) && (c) <= 'z'))
5072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5073 #endif
5074 
5075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5076 int
5077 main ()
5078 {
5079   int i;
5080   for (i = 0; i < 256; i++)
5081     if (XOR (islower (i), ISLOWER (i))
5082         || toupper (i) != TOUPPER (i))
5083       return 2;
5084   return 0;
5085 }
5086 _ACEOF
5087 rm -f conftest$ac_exeext
5088 if { (ac_try="$ac_link"
5089 case "(($ac_try" in
5090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091   *) ac_try_echo=$ac_try;;
5092 esac
5093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094   (eval "$ac_link") 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5098   { (case "(($ac_try" in
5099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100   *) ac_try_echo=$ac_try;;
5101 esac
5102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103   (eval "$ac_try") 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   :
5108 else
5109   echo "$as_me: program exited with status $ac_status" >&5
5110 echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112 
5113 ( exit $ac_status )
5114 ac_cv_header_stdc=no
5115 fi
5116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 
5119 
5120 fi
5121 fi
5122 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5123 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5124 if test $ac_cv_header_stdc = yes; then
5125 
5126 cat >>confdefs.h <<\_ACEOF
5127 #define STDC_HEADERS 1
5128 _ACEOF
5129 
5130 fi
5131 
5132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5133 
5134 
5135 
5136 
5137 
5138 
5139 
5140 
5141 
5142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5143                   inttypes.h stdint.h unistd.h
5144 do
5145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h.  */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h.  */
5157 $ac_includes_default
5158 
5159 #include <$ac_header>
5160 _ACEOF
5161 rm -f conftest.$ac_objext
5162 if { (ac_try="$ac_compile"
5163 case "(($ac_try" in
5164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165   *) ac_try_echo=$ac_try;;
5166 esac
5167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168   (eval "$ac_compile") 2>conftest.er1
5169   ac_status=$?
5170   grep -v '^ *+' conftest.er1 >conftest.err
5171   rm -f conftest.er1
5172   cat conftest.err >&5
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } &&
5175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5176   { (case "(($ac_try" in
5177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178   *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181   (eval "$ac_try") 2>&5
5182   ac_status=$?
5183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184   (exit $ac_status); }; } &&
5185          { ac_try='test -s conftest.$ac_objext'
5186   { (case "(($ac_try" in
5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188   *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191   (eval "$ac_try") 2>&5
5192   ac_status=$?
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); }; }; then
5195   eval "$as_ac_Header=yes"
5196 else
5197   echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199 
5200         eval "$as_ac_Header=no"
5201 fi
5202 
5203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204 fi
5205 ac_res=`eval echo '${'$as_ac_Header'}'`
5206                { echo "$as_me:$LINENO: result: $ac_res" >&5
5207 echo "${ECHO_T}$ac_res" >&6; }
5208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5209   cat >>confdefs.h <<_ACEOF
5210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5211 _ACEOF
5212 
5213 fi
5214 
5215 done
5216 
5217 
5218 
5219 for ac_header in dlfcn.h
5220 do
5221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5223   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 fi
5228 ac_res=`eval echo '${'$as_ac_Header'}'`
5229                { echo "$as_me:$LINENO: result: $ac_res" >&5
5230 echo "${ECHO_T}$ac_res" >&6; }
5231 else
5232   # Is the header compilable?
5233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5235 cat >conftest.$ac_ext <<_ACEOF
5236 /* confdefs.h.  */
5237 _ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h.  */
5241 $ac_includes_default
5242 #include <$ac_header>
5243 _ACEOF
5244 rm -f conftest.$ac_objext
5245 if { (ac_try="$ac_compile"
5246 case "(($ac_try" in
5247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248   *) ac_try_echo=$ac_try;;
5249 esac
5250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5251   (eval "$ac_compile") 2>conftest.er1
5252   ac_status=$?
5253   grep -v '^ *+' conftest.er1 >conftest.err
5254   rm -f conftest.er1
5255   cat conftest.err >&5
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } &&
5258          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5259   { (case "(($ac_try" in
5260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261   *) ac_try_echo=$ac_try;;
5262 esac
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264   (eval "$ac_try") 2>&5
5265   ac_status=$?
5266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267   (exit $ac_status); }; } &&
5268          { ac_try='test -s conftest.$ac_objext'
5269   { (case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_try") 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }; }; then
5278   ac_header_compiler=yes
5279 else
5280   echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5282 
5283         ac_header_compiler=no
5284 fi
5285 
5286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5288 echo "${ECHO_T}$ac_header_compiler" >&6; }
5289 
5290 # Is the header present?
5291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 #include <$ac_header>
5300 _ACEOF
5301 if { (ac_try="$ac_cpp conftest.$ac_ext"
5302 case "(($ac_try" in
5303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304   *) ac_try_echo=$ac_try;;
5305 esac
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5308   ac_status=$?
5309   grep -v '^ *+' conftest.er1 >conftest.err
5310   rm -f conftest.er1
5311   cat conftest.err >&5
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } >/dev/null; then
5314   if test -s conftest.err; then
5315     ac_cpp_err=$ac_c_preproc_warn_flag
5316     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5317   else
5318     ac_cpp_err=
5319   fi
5320 else
5321   ac_cpp_err=yes
5322 fi
5323 if test -z "$ac_cpp_err"; then
5324   ac_header_preproc=yes
5325 else
5326   echo "$as_me: failed program was:" >&5
5327 sed 's/^/| /' conftest.$ac_ext >&5
5328 
5329   ac_header_preproc=no
5330 fi
5331 
5332 rm -f conftest.err conftest.$ac_ext
5333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5334 echo "${ECHO_T}$ac_header_preproc" >&6; }
5335 
5336 # So?  What about this header?
5337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5338   yes:no: )
5339     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5343     ac_header_preproc=yes
5344     ;;
5345   no:yes:* )
5346     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5348     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5349 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5350     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5352     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5353 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5356     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5358 
5359     ;;
5360 esac
5361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   eval "$as_ac_Header=\$ac_header_preproc"
5367 fi
5368 ac_res=`eval echo '${'$as_ac_Header'}'`
5369                { echo "$as_me:$LINENO: result: $ac_res" >&5
5370 echo "${ECHO_T}$ac_res" >&6; }
5371 
5372 fi
5373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5374   cat >>confdefs.h <<_ACEOF
5375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5376 _ACEOF
5377 
5378 fi
5379 
5380 done
5381 
5382 ac_ext=cpp
5383 ac_cpp='$CXXCPP $CPPFLAGS'
5384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5387 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5388 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5389 if test -z "$CXXCPP"; then
5390   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393       # Double quotes because CXXCPP needs to be expanded
5394     for CXXCPP in "$CXX -E" "/lib/cpp"
5395     do
5396       ac_preproc_ok=false
5397 for ac_cxx_preproc_warn_flag in '' yes
5398 do
5399   # Use a header file that comes with gcc, so configuring glibc
5400   # with a fresh cross-compiler works.
5401   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5402   # <limits.h> exists even on freestanding compilers.
5403   # On the NeXT, cc -E runs the code through the compiler's parser,
5404   # not just through cpp. "Syntax error" is here to catch this case.
5405   cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h.  */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h.  */
5411 #ifdef __STDC__
5412 # include <limits.h>
5413 #else
5414 # include <assert.h>
5415 #endif
5416                      Syntax error
5417 _ACEOF
5418 if { (ac_try="$ac_cpp conftest.$ac_ext"
5419 case "(($ac_try" in
5420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421   *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } >/dev/null; then
5431   if test -s conftest.err; then
5432     ac_cpp_err=$ac_cxx_preproc_warn_flag
5433     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5434   else
5435     ac_cpp_err=
5436   fi
5437 else
5438   ac_cpp_err=yes
5439 fi
5440 if test -z "$ac_cpp_err"; then
5441   :
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445 
5446   # Broken: fails on valid input.
5447 continue
5448 fi
5449 
5450 rm -f conftest.err conftest.$ac_ext
5451 
5452   # OK, works on sane cases.  Now check whether nonexistent headers
5453   # can be detected and how.
5454   cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h.  */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h.  */
5460 #include <ac_nonexistent.h>
5461 _ACEOF
5462 if { (ac_try="$ac_cpp conftest.$ac_ext"
5463 case "(($ac_try" in
5464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465   *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5469   ac_status=$?
5470   grep -v '^ *+' conftest.er1 >conftest.err
5471   rm -f conftest.er1
5472   cat conftest.err >&5
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); } >/dev/null; then
5475   if test -s conftest.err; then
5476     ac_cpp_err=$ac_cxx_preproc_warn_flag
5477     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5478   else
5479     ac_cpp_err=
5480   fi
5481 else
5482   ac_cpp_err=yes
5483 fi
5484 if test -z "$ac_cpp_err"; then
5485   # Broken: success on invalid input.
5486 continue
5487 else
5488   echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490 
5491   # Passes both tests.
5492 ac_preproc_ok=:
5493 break
5494 fi
5495 
5496 rm -f conftest.err conftest.$ac_ext
5497 
5498 done
5499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5500 rm -f conftest.err conftest.$ac_ext
5501 if $ac_preproc_ok; then
5502   break
5503 fi
5504 
5505     done
5506     ac_cv_prog_CXXCPP=$CXXCPP
5507 
5508 fi
5509   CXXCPP=$ac_cv_prog_CXXCPP
5510 else
5511   ac_cv_prog_CXXCPP=$CXXCPP
5512 fi
5513 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5514 echo "${ECHO_T}$CXXCPP" >&6; }
5515 ac_preproc_ok=false
5516 for ac_cxx_preproc_warn_flag in '' yes
5517 do
5518   # Use a header file that comes with gcc, so configuring glibc
5519   # with a fresh cross-compiler works.
5520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521   # <limits.h> exists even on freestanding compilers.
5522   # On the NeXT, cc -E runs the code through the compiler's parser,
5523   # not just through cpp. "Syntax error" is here to catch this case.
5524   cat >conftest.$ac_ext <<_ACEOF
5525 /* confdefs.h.  */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h.  */
5530 #ifdef __STDC__
5531 # include <limits.h>
5532 #else
5533 # include <assert.h>
5534 #endif
5535                      Syntax error
5536 _ACEOF
5537 if { (ac_try="$ac_cpp conftest.$ac_ext"
5538 case "(($ac_try" in
5539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540   *) ac_try_echo=$ac_try;;
5541 esac
5542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5544   ac_status=$?
5545   grep -v '^ *+' conftest.er1 >conftest.err
5546   rm -f conftest.er1
5547   cat conftest.err >&5
5548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549   (exit $ac_status); } >/dev/null; then
5550   if test -s conftest.err; then
5551     ac_cpp_err=$ac_cxx_preproc_warn_flag
5552     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5553   else
5554     ac_cpp_err=
5555   fi
5556 else
5557   ac_cpp_err=yes
5558 fi
5559 if test -z "$ac_cpp_err"; then
5560   :
5561 else
5562   echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564 
5565   # Broken: fails on valid input.
5566 continue
5567 fi
5568 
5569 rm -f conftest.err conftest.$ac_ext
5570 
5571   # OK, works on sane cases.  Now check whether nonexistent headers
5572   # can be detected and how.
5573   cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h.  */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h.  */
5579 #include <ac_nonexistent.h>
5580 _ACEOF
5581 if { (ac_try="$ac_cpp conftest.$ac_ext"
5582 case "(($ac_try" in
5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584   *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5588   ac_status=$?
5589   grep -v '^ *+' conftest.er1 >conftest.err
5590   rm -f conftest.er1
5591   cat conftest.err >&5
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); } >/dev/null; then
5594   if test -s conftest.err; then
5595     ac_cpp_err=$ac_cxx_preproc_warn_flag
5596     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5597   else
5598     ac_cpp_err=
5599   fi
5600 else
5601   ac_cpp_err=yes
5602 fi
5603 if test -z "$ac_cpp_err"; then
5604   # Broken: success on invalid input.
5605 continue
5606 else
5607   echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609 
5610   # Passes both tests.
5611 ac_preproc_ok=:
5612 break
5613 fi
5614 
5615 rm -f conftest.err conftest.$ac_ext
5616 
5617 done
5618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5619 rm -f conftest.err conftest.$ac_ext
5620 if $ac_preproc_ok; then
5621   :
5622 else
5623   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5624 See \`config.log' for more details." >&5
5625 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5626 See \`config.log' for more details." >&2;}
5627    { (exit 1); exit 1; }; }
5628 fi
5629 
5630 ac_ext=cpp
5631 ac_cpp='$CXXCPP $CPPFLAGS'
5632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5635 
5636 
5637 ac_ext=f
5638 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5639 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5640 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5641 if test -n "$ac_tool_prefix"; then
5642   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5643   do
5644     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5648 if test "${ac_cv_prog_F77+set}" = set; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651   if test -n "$F77"; then
5652   ac_cv_prog_F77="$F77" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659   for ac_exec_ext in '' $ac_executable_extensions; do
5660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5661     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666 done
5667 IFS=$as_save_IFS
5668 
5669 fi
5670 fi
5671 F77=$ac_cv_prog_F77
5672 if test -n "$F77"; then
5673   { echo "$as_me:$LINENO: result: $F77" >&5
5674 echo "${ECHO_T}$F77" >&6; }
5675 else
5676   { echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6; }
5678 fi
5679 
5680 
5681     test -n "$F77" && break
5682   done
5683 fi
5684 if test -z "$F77"; then
5685   ac_ct_F77=$F77
5686   for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5687 do
5688   # Extract the first word of "$ac_prog", so it can be a program name with args.
5689 set dummy $ac_prog; ac_word=$2
5690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5692 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   if test -n "$ac_ct_F77"; then
5696   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5697 else
5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703   for ac_exec_ext in '' $ac_executable_extensions; do
5704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5705     ac_cv_prog_ac_ct_F77="$ac_prog"
5706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5707     break 2
5708   fi
5709 done
5710 done
5711 IFS=$as_save_IFS
5712 
5713 fi
5714 fi
5715 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5716 if test -n "$ac_ct_F77"; then
5717   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5718 echo "${ECHO_T}$ac_ct_F77" >&6; }
5719 else
5720   { echo "$as_me:$LINENO: result: no" >&5
5721 echo "${ECHO_T}no" >&6; }
5722 fi
5723 
5724 
5725   test -n "$ac_ct_F77" && break
5726 done
5727 
5728   if test "x$ac_ct_F77" = x; then
5729     F77=""
5730   else
5731     case $cross_compiling:$ac_tool_warned in
5732 yes:)
5733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5734 whose name does not start with the host triplet.  If you think this
5735 configuration is useful to you, please write to autoconf@gnu.org." >&5
5736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5737 whose name does not start with the host triplet.  If you think this
5738 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5739 ac_tool_warned=yes ;;
5740 esac
5741     F77=$ac_ct_F77
5742   fi
5743 fi
5744 
5745 
5746 # Provide some information about the compiler.
5747 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5748 ac_compiler=`set X $ac_compile; echo $2`
5749 { (ac_try="$ac_compiler --version >&5"
5750 case "(($ac_try" in
5751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752   *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755   (eval "$ac_compiler --version >&5") 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }
5759 { (ac_try="$ac_compiler -v >&5"
5760 case "(($ac_try" in
5761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762   *) ac_try_echo=$ac_try;;
5763 esac
5764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765   (eval "$ac_compiler -v >&5") 2>&5
5766   ac_status=$?
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); }
5769 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }
5779 rm -f a.out
5780 
5781 # If we don't use `.F' as extension, the preprocessor is not run on the
5782 # input file.  (Note that this only needs to work for GNU compilers.)
5783 ac_save_ext=$ac_ext
5784 ac_ext=F
5785 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5786 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5787 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5788   echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790   cat >conftest.$ac_ext <<_ACEOF
5791       program main
5792 #ifndef __GNUC__
5793        choke me
5794 #endif
5795 
5796       end
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805   (eval "$ac_compile") 2>conftest.er1
5806   ac_status=$?
5807   grep -v '^ *+' conftest.er1 >conftest.err
5808   rm -f conftest.er1
5809   cat conftest.err >&5
5810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811   (exit $ac_status); } &&
5812          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5813   { (case "(($ac_try" in
5814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815   *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818   (eval "$ac_try") 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; } &&
5822          { ac_try='test -s conftest.$ac_objext'
5823   { (case "(($ac_try" in
5824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825   *) ac_try_echo=$ac_try;;
5826 esac
5827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5828   (eval "$ac_try") 2>&5
5829   ac_status=$?
5830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831   (exit $ac_status); }; }; then
5832   ac_compiler_gnu=yes
5833 else
5834   echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5836 
5837         ac_compiler_gnu=no
5838 fi
5839 
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5841 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5842 
5843 fi
5844 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5845 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5846 ac_ext=$ac_save_ext
5847 ac_test_FFLAGS=${FFLAGS+set}
5848 ac_save_FFLAGS=$FFLAGS
5849 FFLAGS=
5850 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5851 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5852 if test "${ac_cv_prog_f77_g+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   FFLAGS=-g
5856 cat >conftest.$ac_ext <<_ACEOF
5857       program main
5858 
5859       end
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5863 case "(($ac_try" in
5864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865   *) ac_try_echo=$ac_try;;
5866 esac
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868   (eval "$ac_compile") 2>conftest.er1
5869   ac_status=$?
5870   grep -v '^ *+' conftest.er1 >conftest.err
5871   rm -f conftest.er1
5872   cat conftest.err >&5
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } &&
5875          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5876   { (case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881   (eval "$ac_try") 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; } &&
5885          { ac_try='test -s conftest.$ac_objext'
5886   { (case "(($ac_try" in
5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888   *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891   (eval "$ac_try") 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; }; then
5895   ac_cv_prog_f77_g=yes
5896 else
5897   echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899 
5900         ac_cv_prog_f77_g=no
5901 fi
5902 
5903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 
5905 fi
5906 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5907 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5908 if test "$ac_test_FFLAGS" = set; then
5909   FFLAGS=$ac_save_FFLAGS
5910 elif test $ac_cv_prog_f77_g = yes; then
5911   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5912     FFLAGS="-g -O2"
5913   else
5914     FFLAGS="-g"
5915   fi
5916 else
5917   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5918     FFLAGS="-O2"
5919   else
5920     FFLAGS=
5921   fi
5922 fi
5923 
5924 G77=`test $ac_compiler_gnu = yes && echo yes`
5925 ac_ext=c
5926 ac_cpp='$CPP $CPPFLAGS'
5927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5930 
5931 
5932 
5933 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5934 
5935 # find the maximum length of command line arguments
5936 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5937 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5938 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941     i=0
5942   testring="ABCD"
5943 
5944   case $build_os in
5945   msdosdjgpp*)
5946     # On DJGPP, this test can blow up pretty badly due to problems in libc
5947     # (any single argument exceeding 2000 bytes causes a buffer overrun
5948     # during glob expansion).  Even if it were fixed, the result of this
5949     # check would be larger than it should be.
5950     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5951     ;;
5952 
5953   gnu*)
5954     # Under GNU Hurd, this test is not required because there is
5955     # no limit to the length of command line arguments.
5956     # Libtool will interpret -1 as no limit whatsoever
5957     lt_cv_sys_max_cmd_len=-1;
5958     ;;
5959 
5960   cygwin* | mingw*)
5961     # On Win9x/ME, this test blows up -- it succeeds, but takes
5962     # about 5 minutes as the teststring grows exponentially.
5963     # Worse, since 9x/ME are not pre-emptively multitasking,
5964     # you end up with a "frozen" computer, even though with patience
5965     # the test eventually succeeds (with a max line length of 256k).
5966     # Instead, let's just punt: use the minimum linelength reported by
5967     # all of the supported platforms: 8192 (on NT/2K/XP).
5968     lt_cv_sys_max_cmd_len=8192;
5969     ;;
5970 
5971   amigaos* | morphos*)
5972     # On AmigaOS with pdksh, this test takes hours, literally.
5973     # So we just punt and use a minimum line length of 8192.
5974     lt_cv_sys_max_cmd_len=8192;
5975     ;;
5976 
5977  *)
5978     # If test is not a shell built-in, we'll probably end up computing a
5979     # maximum length that is only half of the actual maximum length, but
5980     # we can't tell.
5981     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5982                = "XX$testring") >/dev/null 2>&1 &&
5983             new_result=`expr "X$testring" : ".*" 2>&1` &&
5984             lt_cv_sys_max_cmd_len=$new_result &&
5985             test $i != 17 # 1/2 MB should be enough
5986     do
5987       i=`expr $i + 1`
5988       testring=$testring$testring
5989     done
5990     testring=
5991     # Add a significant safety factor because C++ compilers can tack on massive
5992     # amounts of additional arguments before passing them to the linker.
5993     # It appears as though 1/2 is a usable value.
5994     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5995     ;;
5996   esac
5997 
5998 fi
5999 
6000 if test -n $lt_cv_sys_max_cmd_len ; then
6001   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6002 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6003 else
6004   { echo "$as_me:$LINENO: result: none" >&5
6005 echo "${ECHO_T}none" >&6; }
6006 fi
6007 
6008 
6009 
6010 
6011 # Check for command to grab the raw symbol name followed by C symbol from nm.
6012 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6013 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6014 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 
6018 # These are sane defaults that work on at least a few old systems.
6019 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6020 
6021 # Character class describing NM global symbol codes.
6022 symcode='[BCDEGRST]'
6023 
6024 # Regexp to match symbols that can be accessed directly from C.
6025 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6026 
6027 # Transform the above into a raw symbol and a C symbol.
6028 symxfrm='\1 \2\3 \3'
6029 
6030 # Transform an extracted symbol line into a proper C declaration
6031 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6032 
6033 # Transform an extracted symbol line into symbol name and symbol address
6034 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'"
6035 
6036 # Define system-specific variables.
6037 case $host_os in
6038 aix*)
6039   symcode='[BCDT]'
6040   ;;
6041 cygwin* | mingw* | pw32*)
6042   symcode='[ABCDGISTW]'
6043   ;;
6044 hpux*) # Its linker distinguishes data from code symbols
6045   if test "$host_cpu" = ia64; then
6046     symcode='[ABCDEGRST]'
6047   fi
6048   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6049   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'"
6050   ;;
6051 irix* | nonstopux*)
6052   symcode='[BCDEGRST]'
6053   ;;
6054 osf*)
6055   symcode='[BCDEGQRST]'
6056   ;;
6057 solaris* | sysv5*)
6058   symcode='[BDRT]'
6059   ;;
6060 sysv4)
6061   symcode='[DFNSTU]'
6062   ;;
6063 esac
6064 
6065 # Handle CRLF in mingw tool chain
6066 opt_cr=
6067 case $build_os in
6068 mingw*)
6069   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6070   ;;
6071 esac
6072 
6073 # If we're using GNU nm, then use its standard symbol codes.
6074 case `$NM -V 2>&1` in
6075 *GNU* | *'with BFD'*)
6076   symcode='[ABCDGIRSTW]' ;;
6077 esac
6078 
6079 # Try without a prefix undercore, then with it.
6080 for ac_symprfx in "" "_"; do
6081 
6082   # Write the raw and C identifiers.
6083   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6084 
6085   # Check to see that the pipe works correctly.
6086   pipe_works=no
6087 
6088   rm -f conftest*
6089   cat > conftest.$ac_ext <<EOF
6090 #ifdef __cplusplus
6091 extern "C" {
6092 #endif
6093 char nm_test_var;
6094 void nm_test_func(){}
6095 #ifdef __cplusplus
6096 }
6097 #endif
6098 int main(){nm_test_var='a';nm_test_func();return(0);}
6099 EOF
6100 
6101   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6102   (eval $ac_compile) 2>&5
6103   ac_status=$?
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); }; then
6106     # Now try to grab the symbols.
6107     nlist=conftest.nm
6108     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6109   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } && test -s "$nlist"; then
6113       # Try sorting and uniquifying the output.
6114       if sort "$nlist" | uniq > "$nlist"T; then
6115         mv -f "$nlist"T "$nlist"
6116       else
6117         rm -f "$nlist"T
6118       fi
6119 
6120       # Make sure that we snagged all the symbols we need.
6121       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6122         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6123           cat <<EOF > conftest.$ac_ext
6124 #ifdef __cplusplus
6125 extern "C" {
6126 #endif
6127 
6128 EOF
6129           # Now generate the symbol file.
6130           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6131 
6132           cat <<EOF >> conftest.$ac_ext
6133 #if defined (__STDC__) && __STDC__
6134 # define lt_ptr_t void *
6135 #else
6136 # define lt_ptr_t char *
6137 # define const
6138 #endif
6139 
6140 /* The mapping between symbol names and symbols. */
6141 const struct {
6142   const char *name;
6143   lt_ptr_t address;
6144 }
6145 lt_preloaded_symbols[] =
6146 {
6147 EOF
6148           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6149           cat <<\EOF >> conftest.$ac_ext
6150   {0, (lt_ptr_t) 0}
6151 };
6152 
6153 #ifdef __cplusplus
6154 }
6155 #endif
6156 EOF
6157           # Now try linking the two files.
6158           mv conftest.$ac_objext conftstm.$ac_objext
6159           lt_save_LIBS="$LIBS"
6160           lt_save_CFLAGS="$CFLAGS"
6161           LIBS="conftstm.$ac_objext"
6162           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6163           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164   (eval $ac_link) 2>&5
6165   ac_status=$?
6166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6168             pipe_works=yes
6169           fi
6170           LIBS="$lt_save_LIBS"
6171           CFLAGS="$lt_save_CFLAGS"
6172         else
6173           echo "cannot find nm_test_func in $nlist" >&5
6174         fi
6175       else
6176         echo "cannot find nm_test_var in $nlist" >&5
6177       fi
6178     else
6179       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6180     fi
6181   else
6182     echo "$progname: failed program was:" >&5
6183     cat conftest.$ac_ext >&5
6184   fi
6185   rm -f conftest* conftst*
6186 
6187   # Do not use the global_symbol_pipe unless it works.
6188   if test "$pipe_works" = yes; then
6189     break
6190   else
6191     lt_cv_sys_global_symbol_pipe=
6192   fi
6193 done
6194 
6195 fi
6196 
6197 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6198   lt_cv_sys_global_symbol_to_cdecl=
6199 fi
6200 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6201   { echo "$as_me:$LINENO: result: failed" >&5
6202 echo "${ECHO_T}failed" >&6; }
6203 else
6204   { echo "$as_me:$LINENO: result: ok" >&5
6205 echo "${ECHO_T}ok" >&6; }
6206 fi
6207 
6208 { echo "$as_me:$LINENO: checking for objdir" >&5
6209 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6210 if test "${lt_cv_objdir+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   rm -f .libs 2>/dev/null
6214 mkdir .libs 2>/dev/null
6215 if test -d .libs; then
6216   lt_cv_objdir=.libs
6217 else
6218   # MS-DOS does not allow filenames that begin with a dot.
6219   lt_cv_objdir=_libs
6220 fi
6221 rmdir .libs 2>/dev/null
6222 fi
6223 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6224 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6225 objdir=$lt_cv_objdir
6226 
6227 
6228 
6229 
6230 
6231 case $host_os in
6232 aix3*)
6233   # AIX sometimes has problems with the GCC collect2 program.  For some
6234   # reason, if we set the COLLECT_NAMES environment variable, the problems
6235   # vanish in a puff of smoke.
6236   if test "X${COLLECT_NAMES+set}" != Xset; then
6237     COLLECT_NAMES=
6238     export COLLECT_NAMES
6239   fi
6240   ;;
6241 esac
6242 
6243 # Sed substitution that helps us do robust quoting.  It backslashifies
6244 # metacharacters that are still active within double-quoted strings.
6245 Xsed='sed -e s/^X//'
6246 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6247 
6248 # Same as above, but do not quote variable references.
6249 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6250 
6251 # Sed substitution to delay expansion of an escaped shell variable in a
6252 # double_quote_subst'ed string.
6253 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6254 
6255 # Sed substitution to avoid accidental globbing in evaled expressions
6256 no_glob_subst='s/\*/\\\*/g'
6257 
6258 # Constants:
6259 rm="rm -f"
6260 
6261 # Global variables:
6262 default_ofile=libtool
6263 can_build_shared=yes
6264 
6265 # All known linkers require a `.a' archive for static linking (except M$VC,
6266 # which needs '.lib').
6267 libext=a
6268 ltmain="$ac_aux_dir/ltmain.sh"
6269 ofile="$default_ofile"
6270 with_gnu_ld="$lt_cv_prog_gnu_ld"
6271 
6272 if test -n "$ac_tool_prefix"; then
6273   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6274 set dummy ${ac_tool_prefix}ar; ac_word=$2
6275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277 if test "${ac_cv_prog_AR+set}" = set; then
6278   echo $ECHO_N "(cached) $ECHO_C" >&6
6279 else
6280   if test -n "$AR"; then
6281   ac_cv_prog_AR="$AR" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288   for ac_exec_ext in '' $ac_executable_extensions; do
6289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290     ac_cv_prog_AR="${ac_tool_prefix}ar"
6291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295 done
6296 IFS=$as_save_IFS
6297 
6298 fi
6299 fi
6300 AR=$ac_cv_prog_AR
6301 if test -n "$AR"; then
6302   { echo "$as_me:$LINENO: result: $AR" >&5
6303 echo "${ECHO_T}$AR" >&6; }
6304 else
6305   { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6308 
6309 
6310 fi
6311 if test -z "$ac_cv_prog_AR"; then
6312   ac_ct_AR=$AR
6313   # Extract the first word of "ar", so it can be a program name with args.
6314 set dummy ar; ac_word=$2
6315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6317 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   if test -n "$ac_ct_AR"; then
6321   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6322 else
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 for as_dir in $PATH
6325 do
6326   IFS=$as_save_IFS
6327   test -z "$as_dir" && as_dir=.
6328   for ac_exec_ext in '' $ac_executable_extensions; do
6329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330     ac_cv_prog_ac_ct_AR="ar"
6331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6332     break 2
6333   fi
6334 done
6335 done
6336 IFS=$as_save_IFS
6337 
6338 fi
6339 fi
6340 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6341 if test -n "$ac_ct_AR"; then
6342   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6343 echo "${ECHO_T}$ac_ct_AR" >&6; }
6344 else
6345   { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6347 fi
6348 
6349   if test "x$ac_ct_AR" = x; then
6350     AR="false"
6351   else
6352     case $cross_compiling:$ac_tool_warned in
6353 yes:)
6354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6355 whose name does not start with the host triplet.  If you think this
6356 configuration is useful to you, please write to autoconf@gnu.org." >&5
6357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6358 whose name does not start with the host triplet.  If you think this
6359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6360 ac_tool_warned=yes ;;
6361 esac
6362     AR=$ac_ct_AR
6363   fi
6364 else
6365   AR="$ac_cv_prog_AR"
6366 fi
6367 
6368 if test -n "$ac_tool_prefix"; then
6369   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6373 if test "${ac_cv_prog_RANLIB+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   if test -n "$RANLIB"; then
6377   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6378 else
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380 for as_dir in $PATH
6381 do
6382   IFS=$as_save_IFS
6383   test -z "$as_dir" && as_dir=.
6384   for ac_exec_ext in '' $ac_executable_extensions; do
6385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6386     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388     break 2
6389   fi
6390 done
6391 done
6392 IFS=$as_save_IFS
6393 
6394 fi
6395 fi
6396 RANLIB=$ac_cv_prog_RANLIB
6397 if test -n "$RANLIB"; then
6398   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6399 echo "${ECHO_T}$RANLIB" >&6; }
6400 else
6401   { echo "$as_me:$LINENO: result: no" >&5
6402 echo "${ECHO_T}no" >&6; }
6403 fi
6404 
6405 
6406 fi
6407 if test -z "$ac_cv_prog_RANLIB"; then
6408   ac_ct_RANLIB=$RANLIB
6409   # Extract the first word of "ranlib", so it can be a program name with args.
6410 set dummy ranlib; ac_word=$2
6411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6413 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6414   echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416   if test -n "$ac_ct_RANLIB"; then
6417   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6418 else
6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 for as_dir in $PATH
6421 do
6422   IFS=$as_save_IFS
6423   test -z "$as_dir" && as_dir=.
6424   for ac_exec_ext in '' $ac_executable_extensions; do
6425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6426     ac_cv_prog_ac_ct_RANLIB="ranlib"
6427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6428     break 2
6429   fi
6430 done
6431 done
6432 IFS=$as_save_IFS
6433 
6434 fi
6435 fi
6436 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6437 if test -n "$ac_ct_RANLIB"; then
6438   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6439 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6440 else
6441   { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6443 fi
6444 
6445   if test "x$ac_ct_RANLIB" = x; then
6446     RANLIB=":"
6447   else
6448     case $cross_compiling:$ac_tool_warned in
6449 yes:)
6450 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6451 whose name does not start with the host triplet.  If you think this
6452 configuration is useful to you, please write to autoconf@gnu.org." >&5
6453 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6454 whose name does not start with the host triplet.  If you think this
6455 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458     RANLIB=$ac_ct_RANLIB
6459   fi
6460 else
6461   RANLIB="$ac_cv_prog_RANLIB"
6462 fi
6463 
6464 if test -n "$ac_tool_prefix"; then
6465   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6466 set dummy ${ac_tool_prefix}strip; ac_word=$2
6467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6469 if test "${ac_cv_prog_STRIP+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   if test -n "$STRIP"; then
6473   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489 
6490 fi
6491 fi
6492 STRIP=$ac_cv_prog_STRIP
6493 if test -n "$STRIP"; then
6494   { echo "$as_me:$LINENO: result: $STRIP" >&5
6495 echo "${ECHO_T}$STRIP" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 fi
6500 
6501 
6502 fi
6503 if test -z "$ac_cv_prog_STRIP"; then
6504   ac_ct_STRIP=$STRIP
6505   # Extract the first word of "strip", so it can be a program name with args.
6506 set dummy strip; ac_word=$2
6507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6510   echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512   if test -n "$ac_ct_STRIP"; then
6513   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520   for ac_exec_ext in '' $ac_executable_extensions; do
6521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6522     ac_cv_prog_ac_ct_STRIP="strip"
6523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529 
6530 fi
6531 fi
6532 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6533 if test -n "$ac_ct_STRIP"; then
6534   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6535 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6536 else
6537   { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6539 fi
6540 
6541   if test "x$ac_ct_STRIP" = x; then
6542     STRIP=":"
6543   else
6544     case $cross_compiling:$ac_tool_warned in
6545 yes:)
6546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6547 whose name does not start with the host triplet.  If you think this
6548 configuration is useful to you, please write to autoconf@gnu.org." >&5
6549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6550 whose name does not start with the host triplet.  If you think this
6551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6552 ac_tool_warned=yes ;;
6553 esac
6554     STRIP=$ac_ct_STRIP
6555   fi
6556 else
6557   STRIP="$ac_cv_prog_STRIP"
6558 fi
6559 
6560 
6561 old_CC="$CC"
6562 old_CFLAGS="$CFLAGS"
6563 
6564 # Set sane defaults for various variables
6565 test -z "$AR" && AR=ar
6566 test -z "$AR_FLAGS" && AR_FLAGS=cru
6567 test -z "$AS" && AS=as
6568 test -z "$CC" && CC=cc
6569 test -z "$LTCC" && LTCC=$CC
6570 test -z "$DLLTOOL" && DLLTOOL=dlltool
6571 test -z "$LD" && LD=ld
6572 test -z "$LN_S" && LN_S="ln -s"
6573 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6574 test -z "$NM" && NM=nm
6575 test -z "$SED" && SED=sed
6576 test -z "$OBJDUMP" && OBJDUMP=objdump
6577 test -z "$RANLIB" && RANLIB=:
6578 test -z "$STRIP" && STRIP=:
6579 test -z "$ac_objext" && ac_objext=o
6580 
6581 # Determine commands to create old-style static archives.
6582 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6583 old_postinstall_cmds='chmod 644 $oldlib'
6584 old_postuninstall_cmds=
6585 
6586 if test -n "$RANLIB"; then
6587   case $host_os in
6588   openbsd*)
6589     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6590     ;;
6591   *)
6592     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6593     ;;
6594   esac
6595   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6596 fi
6597 
6598 # Only perform the check for file, if the check method requires it
6599 case $deplibs_check_method in
6600 file_magic*)
6601   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6602     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6603 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6604 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   case $MAGIC_CMD in
6608 [\\/*] |  ?:[\\/]*)
6609   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6610   ;;
6611 *)
6612   lt_save_MAGIC_CMD="$MAGIC_CMD"
6613   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6614   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6615   for ac_dir in $ac_dummy; do
6616     IFS="$lt_save_ifs"
6617     test -z "$ac_dir" && ac_dir=.
6618     if test -f $ac_dir/${ac_tool_prefix}file; then
6619       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6620       if test -n "$file_magic_test_file"; then
6621         case $deplibs_check_method in
6622         "file_magic "*)
6623           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6624           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6625           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6626             $EGREP "$file_magic_regex" > /dev/null; then
6627             :
6628           else
6629             cat <<EOF 1>&2
6630 
6631 *** Warning: the command libtool uses to detect shared libraries,
6632 *** $file_magic_cmd, produces output that libtool cannot recognize.
6633 *** The result is that libtool may fail to recognize shared libraries
6634 *** as such.  This will affect the creation of libtool libraries that
6635 *** depend on shared libraries, but programs linked with such libtool
6636 *** libraries will work regardless of this problem.  Nevertheless, you
6637 *** may want to report the problem to your system manager and/or to
6638 *** bug-libtool@gnu.org
6639 
6640 EOF
6641           fi ;;
6642         esac
6643       fi
6644       break
6645     fi
6646   done
6647   IFS="$lt_save_ifs"
6648   MAGIC_CMD="$lt_save_MAGIC_CMD"
6649   ;;
6650 esac
6651 fi
6652 
6653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6654 if test -n "$MAGIC_CMD"; then
6655   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6656 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6657 else
6658   { echo "$as_me:$LINENO: result: no" >&5
6659 echo "${ECHO_T}no" >&6; }
6660 fi
6661 
6662 if test -z "$lt_cv_path_MAGIC_CMD"; then
6663   if test -n "$ac_tool_prefix"; then
6664     { echo "$as_me:$LINENO: checking for file" >&5
6665 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6666 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   case $MAGIC_CMD in
6670 [\\/*] |  ?:[\\/]*)
6671   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6672   ;;
6673 *)
6674   lt_save_MAGIC_CMD="$MAGIC_CMD"
6675   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6676   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6677   for ac_dir in $ac_dummy; do
6678     IFS="$lt_save_ifs"
6679     test -z "$ac_dir" && ac_dir=.
6680     if test -f $ac_dir/file; then
6681       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6682       if test -n "$file_magic_test_file"; then
6683         case $deplibs_check_method in
6684         "file_magic "*)
6685           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6686           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6687           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6688             $EGREP "$file_magic_regex" > /dev/null; then
6689             :
6690           else
6691             cat <<EOF 1>&2
6692 
6693 *** Warning: the command libtool uses to detect shared libraries,
6694 *** $file_magic_cmd, produces output that libtool cannot recognize.
6695 *** The result is that libtool may fail to recognize shared libraries
6696 *** as such.  This will affect the creation of libtool libraries that
6697 *** depend on shared libraries, but programs linked with such libtool
6698 *** libraries will work regardless of this problem.  Nevertheless, you
6699 *** may want to report the problem to your system manager and/or to
6700 *** bug-libtool@gnu.org
6701 
6702 EOF
6703           fi ;;
6704         esac
6705       fi
6706       break
6707     fi
6708   done
6709   IFS="$lt_save_ifs"
6710   MAGIC_CMD="$lt_save_MAGIC_CMD"
6711   ;;
6712 esac
6713 fi
6714 
6715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6716 if test -n "$MAGIC_CMD"; then
6717   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6718 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6719 else
6720   { echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6; }
6722 fi
6723 
6724   else
6725     MAGIC_CMD=:
6726   fi
6727 fi
6728 
6729   fi
6730   ;;
6731 esac
6732 
6733 enable_dlopen=yes
6734 enable_win32_dll=no
6735 
6736 # Check whether --enable-libtool-lock was given.
6737 if test "${enable_libtool_lock+set}" = set; then
6738   enableval=$enable_libtool_lock;
6739 fi
6740 
6741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6742 
6743 
6744 # Check whether --with-pic was given.
6745 if test "${with_pic+set}" = set; then
6746   withval=$with_pic; pic_mode="$withval"
6747 else
6748   pic_mode=default
6749 fi
6750 
6751 test -z "$pic_mode" && pic_mode=default
6752 
6753 # Use C for the default configuration in the libtool script
6754 tagname=
6755 lt_save_CC="$CC"
6756 ac_ext=c
6757 ac_cpp='$CPP $CPPFLAGS'
6758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6761 
6762 
6763 # Source file extension for C test sources.
6764 ac_ext=c
6765 
6766 # Object file extension for compiled C test sources.
6767 objext=o
6768 objext=$objext
6769 
6770 # Code to be used in simple compile tests
6771 lt_simple_compile_test_code="int some_variable = 0;\n"
6772 
6773 # Code to be used in simple link tests
6774 lt_simple_link_test_code='int main(){return(0);}\n'
6775 
6776 
6777 # If no C compiler was specified, use CC.
6778 LTCC=${LTCC-"$CC"}
6779 
6780 # Allow CC to be a program name with arguments.
6781 compiler=$CC
6782 
6783 
6784 #
6785 # Check for any special shared library compilation flags.
6786 #
6787 lt_prog_cc_shlib=
6788 if test "$GCC" = no; then
6789   case $host_os in
6790   sco3.2v5*)
6791     lt_prog_cc_shlib='-belf'
6792     ;;
6793   esac
6794 fi
6795 if test -n "$lt_prog_cc_shlib"; then
6796   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6797 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6798   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6799   else
6800     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6801 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6802     lt_cv_prog_cc_can_build_shared=no
6803   fi
6804 fi
6805 
6806 
6807 #
6808 # Check to make sure the static flag actually works.
6809 #
6810 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6811 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
6812 if test "${lt_prog_compiler_static_works+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   lt_prog_compiler_static_works=no
6816    save_LDFLAGS="$LDFLAGS"
6817    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6818    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6819    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6820      # The compiler can only warn and ignore the option if not recognized
6821      # So say no if there are warnings
6822      if test -s conftest.err; then
6823        # Append any errors to the config.log.
6824        cat conftest.err 1>&5
6825      else
6826        lt_prog_compiler_static_works=yes
6827      fi
6828    fi
6829    $rm conftest*
6830    LDFLAGS="$save_LDFLAGS"
6831 
6832 fi
6833 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6834 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6835 
6836 if test x"$lt_prog_compiler_static_works" = xyes; then
6837     :
6838 else
6839     lt_prog_compiler_static=
6840 fi
6841 
6842 
6843 
6844 ## CAVEAT EMPTOR:
6845 ## There is no encapsulation within the following macros, do not change
6846 ## the running order or otherwise move them around unless you know exactly
6847 ## what you are doing...
6848 
6849 lt_prog_compiler_no_builtin_flag=
6850 
6851 if test "$GCC" = yes; then
6852   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6853 
6854 
6855 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6856 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6857 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   lt_cv_prog_compiler_rtti_exceptions=no
6861   ac_outfile=conftest.$ac_objext
6862    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6863    lt_compiler_flag="-fno-rtti -fno-exceptions"
6864    # Insert the option either (1) after the last *FLAGS variable, or
6865    # (2) before a word containing "conftest.", or (3) at the end.
6866    # Note that $ac_compile itself does not contain backslashes and begins
6867    # with a dollar sign (not a hyphen), so the echo should work correctly.
6868    # The option is referenced via a variable to avoid confusing sed.
6869    lt_compile=`echo "$ac_compile" | $SED \
6870    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6871    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6872    -e 's:$: $lt_compiler_flag:'`
6873    (eval echo "\"\$as_me:6873: $lt_compile\"" >&5)
6874    (eval "$lt_compile" 2>conftest.err)
6875    ac_status=$?
6876    cat conftest.err >&5
6877    echo "$as_me:6877: \$? = $ac_status" >&5
6878    if (exit $ac_status) && test -s "$ac_outfile"; then
6879      # The compiler can only warn and ignore the option if not recognized
6880      # So say no if there are warnings
6881      if test ! -s conftest.err; then
6882        lt_cv_prog_compiler_rtti_exceptions=yes
6883      fi
6884    fi
6885    $rm conftest*
6886 
6887 fi
6888 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6889 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6890 
6891 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6892     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6893 else
6894     :
6895 fi
6896 
6897 fi
6898 
6899 lt_prog_compiler_wl=
6900 lt_prog_compiler_pic=
6901 lt_prog_compiler_static=
6902 
6903 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6904 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
6905 
6906   if test "$GCC" = yes; then
6907     lt_prog_compiler_wl='-Wl,'
6908     lt_prog_compiler_static='-static'
6909 
6910     case $host_os in
6911       aix*)
6912       # All AIX code is PIC.
6913       if test "$host_cpu" = ia64; then
6914         # AIX 5 now supports IA64 processor
6915         lt_prog_compiler_static='-Bstatic'
6916       fi
6917       ;;
6918 
6919     amigaos*)
6920       # FIXME: we need at least 68020 code to build shared libraries, but
6921       # adding the `-m68020' flag to GCC prevents building anything better,
6922       # like `-m68040'.
6923       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6924       ;;
6925 
6926     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6927       # PIC is the default for these OSes.
6928       ;;
6929 
6930     mingw* | pw32* | os2*)
6931       # This hack is so that the source file can tell whether it is being
6932       # built for inclusion in a dll (and should export symbols for example).
6933       lt_prog_compiler_pic='-DDLL_EXPORT'
6934       ;;
6935 
6936     darwin* | rhapsody*)
6937       # PIC is the default on this platform
6938       # Common symbols not allowed in MH_DYLIB files
6939       lt_prog_compiler_pic='-fno-common'
6940       ;;
6941 
6942     msdosdjgpp*)
6943       # Just because we use GCC doesn't mean we suddenly get shared libraries
6944       # on systems that don't support them.
6945       lt_prog_compiler_can_build_shared=no
6946       enable_shared=no
6947       ;;
6948 
6949     sysv4*MP*)
6950       if test -d /usr/nec; then
6951         lt_prog_compiler_pic=-Kconform_pic
6952       fi
6953       ;;
6954 
6955     hpux*)
6956       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6957       # not for PA HP-UX.
6958       case "$host_cpu" in
6959       hppa*64*|ia64*)
6960         # +Z the default
6961         ;;
6962       *)
6963         lt_prog_compiler_pic='-fPIC'
6964         ;;
6965       esac
6966       ;;
6967 
6968     *)
6969       lt_prog_compiler_pic='-fPIC'
6970       ;;
6971     esac
6972   else
6973     # PORTME Check for flag to pass linker flags through the system compiler.
6974     case $host_os in
6975     aix*)
6976       lt_prog_compiler_wl='-Wl,'
6977       if test "$host_cpu" = ia64; then
6978         # AIX 5 now supports IA64 processor
6979         lt_prog_compiler_static='-Bstatic'
6980       else
6981         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6982       fi
6983       ;;
6984 
6985     mingw* | pw32* | os2*)
6986       # This hack is so that the source file can tell whether it is being
6987       # built for inclusion in a dll (and should export symbols for example).
6988       lt_prog_compiler_pic='-DDLL_EXPORT'
6989       ;;
6990 
6991     hpux9* | hpux10* | hpux11*)
6992       lt_prog_compiler_wl='-Wl,'
6993       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6994       # not for PA HP-UX.
6995       case "$host_cpu" in
6996       hppa*64*|ia64*)
6997         # +Z the default
6998         ;;
6999       *)
7000         lt_prog_compiler_pic='+Z'
7001         ;;
7002       esac
7003       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7004       lt_prog_compiler_static='${wl}-a ${wl}archive'
7005       ;;
7006 
7007     irix5* | irix6* | nonstopux*)
7008       lt_prog_compiler_wl='-Wl,'
7009       # PIC (with -KPIC) is the default.
7010       lt_prog_compiler_static='-non_shared'
7011       ;;
7012 
7013     newsos6)
7014       lt_prog_compiler_pic='-KPIC'
7015       lt_prog_compiler_static='-Bstatic'
7016       ;;
7017 
7018     linux*)
7019       case $CC in
7020       icc* | ecc*)
7021         lt_prog_compiler_wl='-Wl,'
7022         lt_prog_compiler_pic='-KPIC'
7023         lt_prog_compiler_static='-static'
7024         ;;
7025       ccc*)
7026         lt_prog_compiler_wl='-Wl,'
7027         # All Alpha code is PIC.
7028         lt_prog_compiler_static='-non_shared'
7029         ;;
7030       esac
7031       ;;
7032 
7033     osf3* | osf4* | osf5*)
7034       lt_prog_compiler_wl='-Wl,'
7035       # All OSF/1 code is PIC.
7036       lt_prog_compiler_static='-non_shared'
7037       ;;
7038 
7039     sco3.2v5*)
7040       lt_prog_compiler_pic='-Kpic'
7041       lt_prog_compiler_static='-dn'
7042       ;;
7043 
7044     solaris*)
7045       lt_prog_compiler_wl='-Wl,'
7046       lt_prog_compiler_pic='-KPIC'
7047       lt_prog_compiler_static='-Bstatic'
7048       ;;
7049 
7050     sunos4*)
7051       lt_prog_compiler_wl='-Qoption ld '
7052       lt_prog_compiler_pic='-PIC'
7053       lt_prog_compiler_static='-Bstatic'
7054       ;;
7055 
7056     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7057       lt_prog_compiler_wl='-Wl,'
7058       lt_prog_compiler_pic='-KPIC'
7059       lt_prog_compiler_static='-Bstatic'
7060       ;;
7061 
7062     sysv4*MP*)
7063       if test -d /usr/nec ;then
7064         lt_prog_compiler_pic='-Kconform_pic'
7065         lt_prog_compiler_static='-Bstatic'
7066       fi
7067       ;;
7068 
7069     uts4*)
7070       lt_prog_compiler_pic='-pic'
7071       lt_prog_compiler_static='-Bstatic'
7072       ;;
7073 
7074     *)
7075       lt_prog_compiler_can_build_shared=no
7076       ;;
7077     esac
7078   fi
7079 
7080 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7081 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7082 
7083 #
7084 # Check to make sure the PIC flag actually works.
7085 #
7086 if test -n "$lt_prog_compiler_pic"; then
7087 
7088 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7089 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7090 if test "${lt_prog_compiler_pic_works+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   lt_prog_compiler_pic_works=no
7094   ac_outfile=conftest.$ac_objext
7095    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7096    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7097    # Insert the option either (1) after the last *FLAGS variable, or
7098    # (2) before a word containing "conftest.", or (3) at the end.
7099    # Note that $ac_compile itself does not contain backslashes and begins
7100    # with a dollar sign (not a hyphen), so the echo should work correctly.
7101    # The option is referenced via a variable to avoid confusing sed.
7102    lt_compile=`echo "$ac_compile" | $SED \
7103    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7105    -e 's:$: $lt_compiler_flag:'`
7106    (eval echo "\"\$as_me:7106: $lt_compile\"" >&5)
7107    (eval "$lt_compile" 2>conftest.err)
7108    ac_status=$?
7109    cat conftest.err >&5
7110    echo "$as_me:7110: \$? = $ac_status" >&5
7111    if (exit $ac_status) && test -s "$ac_outfile"; then
7112      # The compiler can only warn and ignore the option if not recognized
7113      # So say no if there are warnings
7114      if test ! -s conftest.err; then
7115        lt_prog_compiler_pic_works=yes
7116      fi
7117    fi
7118    $rm conftest*
7119 
7120 fi
7121 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7122 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7123 
7124 if test x"$lt_prog_compiler_pic_works" = xyes; then
7125     case $lt_prog_compiler_pic in
7126      "" | " "*) ;;
7127      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7128      esac
7129 else
7130     lt_prog_compiler_pic=
7131      lt_prog_compiler_can_build_shared=no
7132 fi
7133 
7134 fi
7135 case "$host_os" in
7136   # For platforms which do not support PIC, -DPIC is meaningless:
7137   *djgpp*)
7138     lt_prog_compiler_pic=
7139     ;;
7140   *)
7141     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7142     ;;
7143 esac
7144 
7145 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7146 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7147 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   lt_cv_prog_compiler_c_o=no
7151    $rm -r conftest 2>/dev/null
7152    mkdir conftest
7153    cd conftest
7154    mkdir out
7155    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7156 
7157    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
7158    # that will create temporary files in the current directory regardless of
7159    # the output directory.  Thus, making CWD read-only will cause this test
7160    # to fail, enabling locking or at least warning the user not to do parallel
7161    # builds.
7162    chmod -w .
7163 
7164    lt_compiler_flag="-o out/conftest2.$ac_objext"
7165    # Insert the option either (1) after the last *FLAGS variable, or
7166    # (2) before a word containing "conftest.", or (3) at the end.
7167    # Note that $ac_compile itself does not contain backslashes and begins
7168    # with a dollar sign (not a hyphen), so the echo should work correctly.
7169    lt_compile=`echo "$ac_compile" | $SED \
7170    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172    -e 's:$: $lt_compiler_flag:'`
7173    (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
7174    (eval "$lt_compile" 2>out/conftest.err)
7175    ac_status=$?
7176    cat out/conftest.err >&5
7177    echo "$as_me:7177: \$? = $ac_status" >&5
7178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7179    then
7180      # The compiler can only warn and ignore the option if not recognized
7181      # So say no if there are warnings
7182      if test ! -s out/conftest.err; then
7183        lt_cv_prog_compiler_c_o=yes
7184      fi
7185    fi
7186    chmod u+w .
7187    $rm conftest*
7188    # SGI C++ compiler will create directory out/ii_files/ for
7189    # template instantiation
7190    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7191    $rm out/* && rmdir out
7192    cd ..
7193    rmdir conftest
7194    $rm conftest*
7195 
7196 fi
7197 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7198 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7199 
7200 
7201 hard_links="nottested"
7202 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7203   # do not overwrite the value of need_locks provided by the user
7204   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7205 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7206   hard_links=yes
7207   $rm conftest*
7208   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7209   touch conftest.a
7210   ln conftest.a conftest.b 2>&5 || hard_links=no
7211   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7212   { echo "$as_me:$LINENO: result: $hard_links" >&5
7213 echo "${ECHO_T}$hard_links" >&6; }
7214   if test "$hard_links" = no; then
7215     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7216 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7217     need_locks=warn
7218   fi
7219 else
7220   need_locks=no
7221 fi
7222 
7223 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7224 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7225 
7226   runpath_var=
7227   allow_undefined_flag=
7228   enable_shared_with_static_runtimes=no
7229   archive_cmds=
7230   archive_expsym_cmds=
7231   old_archive_From_new_cmds=
7232   old_archive_from_expsyms_cmds=
7233   export_dynamic_flag_spec=
7234   whole_archive_flag_spec=
7235   thread_safe_flag_spec=
7236   hardcode_libdir_flag_spec=
7237   hardcode_libdir_flag_spec_ld=
7238   hardcode_libdir_separator=
7239   hardcode_direct=no
7240   hardcode_minus_L=no
7241   hardcode_shlibpath_var=unsupported
7242   link_all_deplibs=unknown
7243   hardcode_automatic=no
7244   module_cmds=
7245   module_expsym_cmds=
7246   always_export_symbols=no
7247   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7248   # include_expsyms should be a list of space-separated symbols to be *always*
7249   # included in the symbol list
7250   include_expsyms=
7251   # exclude_expsyms can be an extended regexp of symbols to exclude
7252   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7253   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7254   # as well as any symbol that contains `d'.
7255   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7256   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7257   # platforms (ab)use it in PIC code, but their linkers get confused if
7258   # the symbol is explicitly referenced.  Since portable code cannot
7259   # rely on this symbol name, it's probably fine to never include it in
7260   # preloaded symbol tables.
7261   extract_expsyms_cmds=
7262 
7263   case $host_os in
7264   cygwin* | mingw* | pw32*)
7265     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7266     # When not using gcc, we currently assume that we are using
7267     # Microsoft Visual C++.
7268     if test "$GCC" != yes; then
7269       with_gnu_ld=no
7270     fi
7271     ;;
7272   openbsd*)
7273     with_gnu_ld=no
7274     ;;
7275   esac
7276 
7277   ld_shlibs=yes
7278   if test "$with_gnu_ld" = yes; then
7279     # If archive_cmds runs LD, not CC, wlarc should be empty
7280     wlarc='${wl}'
7281 
7282     # See if GNU ld supports shared libraries.
7283     case $host_os in
7284     aix3* | aix4* | aix5*)
7285       # On AIX/PPC, the GNU linker is very broken
7286       if test "$host_cpu" != ia64; then
7287         ld_shlibs=no
7288         cat <<EOF 1>&2
7289 
7290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7291 *** to be unable to reliably create shared libraries on AIX.
7292 *** Therefore, libtool is disabling shared libraries support.  If you
7293 *** really care for shared libraries, you may want to modify your PATH
7294 *** so that a non-GNU linker is found, and then restart.
7295 
7296 EOF
7297       fi
7298       ;;
7299 
7300     amigaos*)
7301       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)'
7302       hardcode_libdir_flag_spec='-L$libdir'
7303       hardcode_minus_L=yes
7304 
7305       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7306       # that the semantics of dynamic libraries on AmigaOS, at least up
7307       # to version 4, is to share data among multiple programs linked
7308       # with the same dynamic library.  Since this doesn't match the
7309       # behavior of shared libraries on other platforms, we can't use
7310       # them.
7311       ld_shlibs=no
7312       ;;
7313 
7314     beos*)
7315       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7316         allow_undefined_flag=unsupported
7317         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7318         # support --undefined.  This deserves some investigation.  FIXME
7319         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7320       else
7321         ld_shlibs=no
7322       fi
7323       ;;
7324 
7325     cygwin* | mingw* | pw32*)
7326       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7327       # as there is no search path for DLLs.
7328       hardcode_libdir_flag_spec='-L$libdir'
7329       allow_undefined_flag=unsupported
7330       always_export_symbols=no
7331       enable_shared_with_static_runtimes=yes
7332       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7333 
7334       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7335         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7336         # If the export-symbols file already is a .def file (1st line
7337         # is EXPORTS), use it as is; otherwise, prepend...
7338         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7339           cp $export_symbols $output_objdir/$soname.def;
7340         else
7341           echo EXPORTS > $output_objdir/$soname.def;
7342           cat $export_symbols >> $output_objdir/$soname.def;
7343         fi~
7344         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7345       else
7346         ld_shlibs=no
7347       fi
7348       ;;
7349 
7350     netbsd*)
7351       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7352         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7353         wlarc=
7354       else
7355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7356         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7357       fi
7358       ;;
7359 
7360     solaris* | sysv5*)
7361       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7362         ld_shlibs=no
7363         cat <<EOF 1>&2
7364 
7365 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7366 *** create shared libraries on Solaris systems.  Therefore, libtool
7367 *** is disabling shared libraries support.  We urge you to upgrade GNU
7368 *** binutils to release 2.9.1 or newer.  Another option is to modify
7369 *** your PATH or compiler configuration so that the native linker is
7370 *** used, and then restart.
7371 
7372 EOF
7373       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7374         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7375         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7376       else
7377         ld_shlibs=no
7378       fi
7379       ;;
7380 
7381     sunos4*)
7382       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7383       wlarc=
7384       hardcode_direct=yes
7385       hardcode_shlibpath_var=no
7386       ;;
7387 
7388   linux*)
7389     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7390         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7391         archive_cmds="$tmp_archive_cmds"
7392       supports_anon_versioning=no
7393       case `$LD -v 2>/dev/null` in
7394         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7395         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7396         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7397         *\ 2.11.*) ;; # other 2.11 versions
7398         *) supports_anon_versioning=yes ;;
7399       esac
7400       if test $supports_anon_versioning = yes; then
7401         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7403 $echo "local: *; };" >> $output_objdir/$libname.ver~
7404         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7405       else
7406         archive_expsym_cmds="$tmp_archive_cmds"
7407       fi
7408     else
7409       ld_shlibs=no
7410     fi
7411     ;;
7412 
7413     *)
7414       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7415         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7416         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7417       else
7418         ld_shlibs=no
7419       fi
7420       ;;
7421     esac
7422 
7423     if test "$ld_shlibs" = yes; then
7424       runpath_var=LD_RUN_PATH
7425       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7426       export_dynamic_flag_spec='${wl}--export-dynamic'
7427       # ancient GNU ld didn't support --whole-archive et. al.
7428       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7429         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7430       else
7431         whole_archive_flag_spec=
7432       fi
7433     fi
7434   else
7435     # PORTME fill in a description of your system's linker (not GNU ld)
7436     case $host_os in
7437     aix3*)
7438       allow_undefined_flag=unsupported
7439       always_export_symbols=yes
7440       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'
7441       # Note: this linker hardcodes the directories in LIBPATH if there
7442       # are no directories specified by -L.
7443       hardcode_minus_L=yes
7444       if test "$GCC" = yes && test -z "$link_static_flag"; then
7445         # Neither direct hardcoding nor static linking is supported with a
7446         # broken collect2.
7447         hardcode_direct=unsupported
7448       fi
7449       ;;
7450 
7451     aix4* | aix5*)
7452       if test "$host_cpu" = ia64; then
7453         # On IA64, the linker does run time linking by default, so we don't
7454         # have to do anything special.
7455         aix_use_runtimelinking=no
7456         exp_sym_flag='-Bexport'
7457         no_entry_flag=""
7458       else
7459         # If we're using GNU nm, then we don't want the "-C" option.
7460         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7461         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7462           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'
7463         else
7464           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'
7465         fi
7466         aix_use_runtimelinking=no
7467 
7468         # Test if we are trying to use run time linking or normal
7469         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7470         # need to do runtime linking.
7471         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7472           for ld_flag in $LDFLAGS; do
7473           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7474             aix_use_runtimelinking=yes
7475             break
7476           fi
7477           done
7478         esac
7479 
7480         exp_sym_flag='-bexport'
7481         no_entry_flag='-bnoentry'
7482       fi
7483 
7484       # When large executables or shared objects are built, AIX ld can
7485       # have problems creating the table of contents.  If linking a library
7486       # or program results in "error TOC overflow" add -mminimal-toc to
7487       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7488       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7489 
7490       archive_cmds=''
7491       hardcode_direct=yes
7492       hardcode_libdir_separator=':'
7493       link_all_deplibs=yes
7494 
7495       if test "$GCC" = yes; then
7496         case $host_os in aix4.012|aix4.012.*)
7497         # We only want to do this on AIX 4.2 and lower, the check
7498         # below for broken collect2 doesn't work under 4.3+
7499           collect2name=`${CC} -print-prog-name=collect2`
7500           if test -f "$collect2name" && \
7501            strings "$collect2name" | grep resolve_lib_name >/dev/null
7502           then
7503           # We have reworked collect2
7504           hardcode_direct=yes
7505           else
7506           # We have old collect2
7507           hardcode_direct=unsupported
7508           # It fails to find uninstalled libraries when the uninstalled
7509           # path is not listed in the libpath.  Setting hardcode_minus_L
7510           # to unsupported forces relinking
7511           hardcode_minus_L=yes
7512           hardcode_libdir_flag_spec='-L$libdir'
7513           hardcode_libdir_separator=
7514           fi
7515         esac
7516         shared_flag='-shared'
7517       else
7518         # not using gcc
7519         if test "$host_cpu" = ia64; then
7520         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7521         # chokes on -Wl,-G. The following line is correct:
7522           shared_flag='-G'
7523         else
7524         if test "$aix_use_runtimelinking" = yes; then
7525             shared_flag='${wl}-G'
7526           else
7527             shared_flag='${wl}-bM:SRE'
7528         fi
7529         fi
7530       fi
7531 
7532       # It seems that -bexpall does not export symbols beginning with
7533       # underscore (_), so it is better to generate a list of symbols to export.
7534       always_export_symbols=yes
7535       if test "$aix_use_runtimelinking" = yes; then
7536         # Warning - without using the other runtime loading flags (-brtl),
7537         # -berok will link without error, but may produce a broken library.
7538         allow_undefined_flag='-berok'
7539        # Determine the default libpath from the value encoded in an empty executable.
7540        cat >conftest.$ac_ext <<_ACEOF
7541 /* confdefs.h.  */
7542 _ACEOF
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h.  */
7546 
7547 int
7548 main ()
7549 {
7550 
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (ac_try="$ac_link"
7557 case "(($ac_try" in
7558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559   *) ac_try_echo=$ac_try;;
7560 esac
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562   (eval "$ac_link") 2>conftest.er1
7563   ac_status=$?
7564   grep -v '^ *+' conftest.er1 >conftest.err
7565   rm -f conftest.er1
7566   cat conftest.err >&5
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); } &&
7569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7570   { (case "(($ac_try" in
7571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572   *) ac_try_echo=$ac_try;;
7573 esac
7574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575   (eval "$ac_try") 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; } &&
7579          { ac_try='test -s conftest$ac_exeext'
7580   { (case "(($ac_try" in
7581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7582   *) ac_try_echo=$ac_try;;
7583 esac
7584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7585   (eval "$ac_try") 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); }; }; then
7589 
7590 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7591 }'`
7592 # Check for a 64-bit object if we didn't find anything.
7593 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7594 }'`; fi
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598 
7599 
7600 fi
7601 
7602 rm -f core conftest.err conftest.$ac_objext \
7603       conftest$ac_exeext conftest.$ac_ext
7604 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7605 
7606        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7607         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7608        else
7609         if test "$host_cpu" = ia64; then
7610           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7611           allow_undefined_flag="-z nodefs"
7612           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7613         else
7614          # Determine the default libpath from the value encoded in an empty executable.
7615          cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h.  */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h.  */
7621 
7622 int
7623 main ()
7624 {
7625 
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (ac_try="$ac_link"
7632 case "(($ac_try" in
7633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634   *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637   (eval "$ac_link") 2>conftest.er1
7638   ac_status=$?
7639   grep -v '^ *+' conftest.er1 >conftest.err
7640   rm -f conftest.er1
7641   cat conftest.err >&5
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); } &&
7644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7645   { (case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_try") 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; } &&
7654          { ac_try='test -s conftest$ac_exeext'
7655   { (case "(($ac_try" in
7656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657   *) ac_try_echo=$ac_try;;
7658 esac
7659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660   (eval "$ac_try") 2>&5
7661   ac_status=$?
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); }; }; then
7664 
7665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7666 }'`
7667 # Check for a 64-bit object if we didn't find anything.
7668 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7669 }'`; fi
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673 
7674 
7675 fi
7676 
7677 rm -f core conftest.err conftest.$ac_objext \
7678       conftest$ac_exeext conftest.$ac_ext
7679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7680 
7681          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7682           # Warning - without using the other run time loading flags,
7683           # -berok will link without error, but may produce a broken library.
7684           no_undefined_flag=' ${wl}-bernotok'
7685           allow_undefined_flag=' ${wl}-berok'
7686           # -bexpall does not export symbols beginning with underscore (_)
7687           always_export_symbols=yes
7688           # Exported symbols can be pulled into shared objects from archives
7689           whole_archive_flag_spec=' '
7690           archive_cmds_need_lc=yes
7691           # This is similar to how AIX traditionally builds it's shared libraries.
7692           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7693         fi
7694       fi
7695       ;;
7696 
7697     amigaos*)
7698       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)'
7699       hardcode_libdir_flag_spec='-L$libdir'
7700       hardcode_minus_L=yes
7701       # see comment about different semantics on the GNU ld section
7702       ld_shlibs=no
7703       ;;
7704 
7705     bsdi4*)
7706       export_dynamic_flag_spec=-rdynamic
7707       ;;
7708 
7709     cygwin* | mingw* | pw32*)
7710       # When not using gcc, we currently assume that we are using
7711       # Microsoft Visual C++.
7712       # hardcode_libdir_flag_spec is actually meaningless, as there is
7713       # no search path for DLLs.
7714       hardcode_libdir_flag_spec=' '
7715       allow_undefined_flag=unsupported
7716       # Tell ltmain to make .lib files, not .a files.
7717       libext=lib
7718       # Tell ltmain to make .dll files, not .so files.
7719       shrext=".dll"
7720       # FIXME: Setting linknames here is a bad hack.
7721       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7722       # The linker will automatically build a .lib file if we build a DLL.
7723       old_archive_From_new_cmds='true'
7724       # FIXME: Should let the user specify the lib program.
7725       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7726       fix_srcfile_path='`cygpath -w "$srcfile"`'
7727       enable_shared_with_static_runtimes=yes
7728       ;;
7729 
7730     darwin* | rhapsody*)
7731     if test "$GXX" = yes ; then
7732       archive_cmds_need_lc=no
7733       case "$host_os" in
7734       rhapsody* | darwin1.[012])
7735         allow_undefined_flag='-undefined suppress'
7736         ;;
7737       *) # Darwin 1.3 on
7738       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7739         allow_undefined_flag='-flat_namespace -undefined suppress'
7740       else
7741         case ${MACOSX_DEPLOYMENT_TARGET} in
7742           10.[012])
7743             allow_undefined_flag='-flat_namespace -undefined suppress'
7744             ;;
7745           10.*)
7746             allow_undefined_flag='-undefined dynamic_lookup'
7747             ;;
7748         esac
7749       fi
7750         ;;
7751       esac
7752         lt_int_apple_cc_single_mod=no
7753         output_verbose_link_cmd='echo'
7754         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7755           lt_int_apple_cc_single_mod=yes
7756         fi
7757         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7758           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7759         else
7760         archive_cmds='$CC -r ${wl}-bind_at_load -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'
7761       fi
7762       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7763       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7764         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7765           archive_expsym_cmds='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}'
7766         else
7767           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7768         fi
7769           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}'
7770       hardcode_direct=no
7771       hardcode_automatic=yes
7772       hardcode_shlibpath_var=unsupported
7773       whole_archive_flag_spec='-all_load $convenience'
7774       link_all_deplibs=yes
7775     else
7776       ld_shlibs=no
7777     fi
7778       ;;
7779 
7780     dgux*)
7781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7782       hardcode_libdir_flag_spec='-L$libdir'
7783       hardcode_shlibpath_var=no
7784       ;;
7785 
7786     freebsd1*)
7787       ld_shlibs=no
7788       ;;
7789 
7790     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7791     # support.  Future versions do this automatically, but an explicit c++rt0.o
7792     # does not break anything, and helps significantly (at the cost of a little
7793     # extra space).
7794     freebsd2.2*)
7795       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7796       hardcode_libdir_flag_spec='-R$libdir'
7797       hardcode_direct=yes
7798       hardcode_shlibpath_var=no
7799       ;;
7800 
7801     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7802     freebsd2*)
7803       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7804       hardcode_direct=yes
7805       hardcode_minus_L=yes
7806       hardcode_shlibpath_var=no
7807       ;;
7808 
7809     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7810     freebsd* | kfreebsd*-gnu)
7811       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7812       hardcode_libdir_flag_spec='-R$libdir'
7813       hardcode_direct=yes
7814       hardcode_shlibpath_var=no
7815       ;;
7816 
7817     hpux9*)
7818       if test "$GCC" = yes; then
7819         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'
7820       else
7821         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'
7822       fi
7823       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7824       hardcode_libdir_separator=:
7825       hardcode_direct=yes
7826 
7827       # hardcode_minus_L: Not really in the search PATH,
7828       # but as the default location of the library.
7829       hardcode_minus_L=yes
7830       export_dynamic_flag_spec='${wl}-E'
7831       ;;
7832 
7833     hpux10* | hpux11*)
7834       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7835         case "$host_cpu" in
7836         hppa*64*|ia64*)
7837           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7838           ;;
7839         *)
7840           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7841           ;;
7842         esac
7843       else
7844         case "$host_cpu" in
7845         hppa*64*|ia64*)
7846           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7847           ;;
7848         *)
7849           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7850           ;;
7851         esac
7852       fi
7853       if test "$with_gnu_ld" = no; then
7854         case "$host_cpu" in
7855         hppa*64*)
7856           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7857           hardcode_libdir_flag_spec_ld='+b $libdir'
7858           hardcode_libdir_separator=:
7859           hardcode_direct=no
7860           hardcode_shlibpath_var=no
7861           ;;
7862         ia64*)
7863           hardcode_libdir_flag_spec='-L$libdir'
7864           hardcode_direct=no
7865           hardcode_shlibpath_var=no
7866 
7867           # hardcode_minus_L: Not really in the search PATH,
7868           # but as the default location of the library.
7869           hardcode_minus_L=yes
7870           ;;
7871         *)
7872           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7873           hardcode_libdir_separator=:
7874           hardcode_direct=yes
7875           export_dynamic_flag_spec='${wl}-E'
7876 
7877           # hardcode_minus_L: Not really in the search PATH,
7878           # but as the default location of the library.
7879           hardcode_minus_L=yes
7880           ;;
7881         esac
7882       fi
7883       ;;
7884 
7885     irix5* | irix6* | nonstopux*)
7886       if test "$GCC" = yes; then
7887         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'
7888       else
7889         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'
7890         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7891       fi
7892       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7893       hardcode_libdir_separator=:
7894       link_all_deplibs=yes
7895       ;;
7896 
7897     netbsd*)
7898       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7899         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7900       else
7901         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7902       fi
7903       hardcode_libdir_flag_spec='-R$libdir'
7904       hardcode_direct=yes
7905       hardcode_shlibpath_var=no
7906       ;;
7907 
7908     newsos6)
7909       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7910       hardcode_direct=yes
7911       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7912       hardcode_libdir_separator=:
7913       hardcode_shlibpath_var=no
7914       ;;
7915 
7916     openbsd*)
7917       hardcode_direct=yes
7918       hardcode_shlibpath_var=no
7919       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7920         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7921         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7922         export_dynamic_flag_spec='${wl}-E'
7923       else
7924        case $host_os in
7925          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7926            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7927            hardcode_libdir_flag_spec='-R$libdir'
7928            ;;
7929          *)
7930            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7931            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7932            ;;
7933        esac
7934       fi
7935       ;;
7936 
7937     os2*)
7938       hardcode_libdir_flag_spec='-L$libdir'
7939       hardcode_minus_L=yes
7940       allow_undefined_flag=unsupported
7941       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'
7942       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7943       ;;
7944 
7945     osf3*)
7946       if test "$GCC" = yes; then
7947         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7948         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'
7949       else
7950         allow_undefined_flag=' -expect_unresolved \*'
7951         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'
7952       fi
7953       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7954       hardcode_libdir_separator=:
7955       ;;
7956 
7957     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7958       if test "$GCC" = yes; then
7959         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7960         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'
7961         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7962       else
7963         allow_undefined_flag=' -expect_unresolved \*'
7964         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'
7965         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7966         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7967 
7968         # Both c and cxx compiler support -rpath directly
7969         hardcode_libdir_flag_spec='-rpath $libdir'
7970       fi
7971       hardcode_libdir_separator=:
7972       ;;
7973 
7974     sco3.2v5*)
7975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7976       hardcode_shlibpath_var=no
7977       export_dynamic_flag_spec='${wl}-Bexport'
7978       runpath_var=LD_RUN_PATH
7979       hardcode_runpath_var=yes
7980       ;;
7981 
7982     solaris*)
7983       no_undefined_flag=' -z text'
7984       if test "$GCC" = yes; then
7985         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7986         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7987           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7988       else
7989         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7990         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7991         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7992       fi
7993       hardcode_libdir_flag_spec='-R$libdir'
7994       hardcode_shlibpath_var=no
7995       case $host_os in
7996       solaris2.[0-5] | solaris2.[0-5].*) ;;
7997       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7998         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7999       esac
8000       link_all_deplibs=yes
8001       ;;
8002 
8003     sunos4*)
8004       if test "x$host_vendor" = xsequent; then
8005         # Use $CC to link under sequent, because it throws in some extra .o
8006         # files that make .init and .fini sections work.
8007         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8008       else
8009         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8010       fi
8011       hardcode_libdir_flag_spec='-L$libdir'
8012       hardcode_direct=yes
8013       hardcode_minus_L=yes
8014       hardcode_shlibpath_var=no
8015       ;;
8016 
8017     sysv4)
8018       case $host_vendor in
8019         sni)
8020           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8021           hardcode_direct=yes # is this really true???
8022         ;;
8023         siemens)
8024           ## LD is ld it makes a PLAMLIB
8025           ## CC just makes a GrossModule.
8026           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8027           reload_cmds='$CC -r -o $output$reload_objs'
8028           hardcode_direct=no
8029         ;;
8030         motorola)
8031           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8032           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8033         ;;
8034       esac
8035       runpath_var='LD_RUN_PATH'
8036       hardcode_shlibpath_var=no
8037       ;;
8038 
8039     sysv4.3*)
8040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8041       hardcode_shlibpath_var=no
8042       export_dynamic_flag_spec='-Bexport'
8043       ;;
8044 
8045     sysv4*MP*)
8046       if test -d /usr/nec; then
8047         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8048         hardcode_shlibpath_var=no
8049         runpath_var=LD_RUN_PATH
8050         hardcode_runpath_var=yes
8051         ld_shlibs=yes
8052       fi
8053       ;;
8054 
8055     sysv4.2uw2*)
8056       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8057       hardcode_direct=yes
8058       hardcode_minus_L=no
8059       hardcode_shlibpath_var=no
8060       hardcode_runpath_var=yes
8061       runpath_var=LD_RUN_PATH
8062       ;;
8063 
8064    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8065       no_undefined_flag='${wl}-z ${wl}text'
8066       if test "$GCC" = yes; then
8067         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8068       else
8069         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8070       fi
8071       runpath_var='LD_RUN_PATH'
8072       hardcode_shlibpath_var=no
8073       ;;
8074 
8075     sysv5*)
8076       no_undefined_flag=' -z text'
8077       # $CC -shared without GNU ld will not create a library from C++
8078       # object files and a static libstdc++, better avoid it by now
8079       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8080       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8081                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8082       hardcode_libdir_flag_spec=
8083       hardcode_shlibpath_var=no
8084       runpath_var='LD_RUN_PATH'
8085       ;;
8086 
8087     uts4*)
8088       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8089       hardcode_libdir_flag_spec='-L$libdir'
8090       hardcode_shlibpath_var=no
8091       ;;
8092 
8093     *)
8094       ld_shlibs=no
8095       ;;
8096     esac
8097   fi
8098 
8099 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8100 echo "${ECHO_T}$ld_shlibs" >&6; }
8101 test "$ld_shlibs" = no && can_build_shared=no
8102 
8103 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8104 if test "$GCC" = yes; then
8105   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8106 fi
8107 
8108 #
8109 # Do we need to explicitly link libc?
8110 #
8111 case "x$archive_cmds_need_lc" in
8112 x|xyes)
8113   # Assume -lc should be added
8114   archive_cmds_need_lc=yes
8115 
8116   if test "$enable_shared" = yes && test "$GCC" = yes; then
8117     case $archive_cmds in
8118     *'~'*)
8119       # FIXME: we may have to deal with multi-command sequences.
8120       ;;
8121     '$CC '*)
8122       # Test whether the compiler implicitly links with -lc since on some
8123       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8124       # to ld, don't add -lc before -lgcc.
8125       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8126 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8127       $rm conftest*
8128       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8129 
8130       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8131   (eval $ac_compile) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } 2>conftest.err; then
8135         soname=conftest
8136         lib=conftest
8137         libobjs=conftest.$ac_objext
8138         deplibs=
8139         wl=$lt_prog_compiler_wl
8140         compiler_flags=-v
8141         linker_flags=-v
8142         verstring=
8143         output_objdir=.
8144         libname=conftest
8145         lt_save_allow_undefined_flag=$allow_undefined_flag
8146         allow_undefined_flag=
8147         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8148   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }
8152         then
8153           archive_cmds_need_lc=no
8154         else
8155           archive_cmds_need_lc=yes
8156         fi
8157         allow_undefined_flag=$lt_save_allow_undefined_flag
8158       else
8159         cat conftest.err 1>&5
8160       fi
8161       $rm conftest*
8162       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8163 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8164       ;;
8165     esac
8166   fi
8167   ;;
8168 esac
8169 
8170 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8171 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8172 library_names_spec=
8173 libname_spec='lib$name'
8174 soname_spec=
8175 shrext=".so"
8176 postinstall_cmds=
8177 postuninstall_cmds=
8178 finish_cmds=
8179 finish_eval=
8180 shlibpath_var=
8181 shlibpath_overrides_runpath=unknown
8182 version_type=none
8183 dynamic_linker="$host_os ld.so"
8184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8185 if test "$GCC" = yes; then
8186   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8187   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8188     # if the path contains ";" then we assume it to be the separator
8189     # otherwise default to the standard path separator (i.e. ":") - it is
8190     # assumed that no part of a normal pathname contains ";" but that should
8191     # okay in the real world where ";" in dirpaths is itself problematic.
8192     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8193   else
8194     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8195   fi
8196 else
8197   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8198 fi
8199 need_lib_prefix=unknown
8200 hardcode_into_libs=no
8201 
8202 # when you set need_version to no, make sure it does not cause -set_version
8203 # flags to be left without arguments
8204 need_version=unknown
8205 
8206 case $host_os in
8207 aix3*)
8208   version_type=linux
8209   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8210   shlibpath_var=LIBPATH
8211 
8212   # AIX 3 has no versioning support, so we append a major version to the name.
8213   soname_spec='${libname}${release}${shared_ext}$major'
8214   ;;
8215 
8216 aix4* | aix5*)
8217   version_type=linux
8218   need_lib_prefix=no
8219   need_version=no
8220   hardcode_into_libs=yes
8221   if test "$host_cpu" = ia64; then
8222     # AIX 5 supports IA64
8223     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8224     shlibpath_var=LD_LIBRARY_PATH
8225   else
8226     # With GCC up to 2.95.x, collect2 would create an import file
8227     # for dependence libraries.  The import file would start with
8228     # the line `#! .'.  This would cause the generated library to
8229     # depend on `.', always an invalid library.  This was fixed in
8230     # development snapshots of GCC prior to 3.0.
8231     case $host_os in
8232       aix4 | aix4.[01] | aix4.[01].*)
8233       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8234            echo ' yes '
8235            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8236         :
8237       else
8238         can_build_shared=no
8239       fi
8240       ;;
8241     esac
8242     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8243     # soname into executable. Probably we can add versioning support to
8244     # collect2, so additional links can be useful in future.
8245     if test "$aix_use_runtimelinking" = yes; then
8246       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8247       # instead of lib<name>.a to let people know that these are not
8248       # typical AIX shared libraries.
8249       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8250     else
8251       # We preserve .a as extension for shared libraries through AIX4.2
8252       # and later when we are not doing run time linking.
8253       library_names_spec='${libname}${release}.a $libname.a'
8254       soname_spec='${libname}${release}${shared_ext}$major'
8255     fi
8256     shlibpath_var=LIBPATH
8257   fi
8258   ;;
8259 
8260 amigaos*)
8261   library_names_spec='$libname.ixlibrary $libname.a'
8262   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8263   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'
8264   ;;
8265 
8266 beos*)
8267   library_names_spec='${libname}${shared_ext}'
8268   dynamic_linker="$host_os ld.so"
8269   shlibpath_var=LIBRARY_PATH
8270   ;;
8271 
8272 bsdi4*)
8273   version_type=linux
8274   need_version=no
8275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8276   soname_spec='${libname}${release}${shared_ext}$major'
8277   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8278   shlibpath_var=LD_LIBRARY_PATH
8279   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8280   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8281   # the default ld.so.conf also contains /usr/contrib/lib and
8282   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8283   # libtool to hard-code these into programs
8284   ;;
8285 
8286 cygwin* | mingw* | pw32*)
8287   version_type=windows
8288   shrext=".dll"
8289   need_version=no
8290   need_lib_prefix=no
8291 
8292   case $GCC,$host_os in
8293   yes,cygwin* | yes,mingw* | yes,pw32*)
8294     library_names_spec='$libname.dll.a'
8295     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8296     postinstall_cmds='base_file=`basename \${file}`~
8297       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8298       dldir=$destdir/`dirname \$dlpath`~
8299       test -d \$dldir || mkdir -p \$dldir~
8300       $install_prog $dir/$dlname \$dldir/$dlname'
8301     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8302       dlpath=$dir/\$dldll~
8303        $rm \$dlpath'
8304     shlibpath_overrides_runpath=yes
8305 
8306     case $host_os in
8307     cygwin*)
8308       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8309       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8310       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8311       ;;
8312     mingw*)
8313       # MinGW DLLs use traditional 'lib' prefix
8314       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8315       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8316       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8317         # It is most probably a Windows format PATH printed by
8318         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8319         # path with ; separators, and with drive letters. We can handle the
8320         # drive letters (cygwin fileutils understands them), so leave them,
8321         # especially as we might pass files found there to a mingw objdump,
8322         # which wouldn't understand a cygwinified path. Ahh.
8323         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8324       else
8325         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8326       fi
8327       ;;
8328     pw32*)
8329       # pw32 DLLs use 'pw' prefix rather than 'lib'
8330       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8331       ;;
8332     esac
8333     ;;
8334 
8335   *)
8336     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8337     ;;
8338   esac
8339   dynamic_linker='Win32 ld.exe'
8340   # FIXME: first we should search . and the directory the executable is in
8341   shlibpath_var=PATH
8342   ;;
8343 
8344 darwin* | rhapsody*)
8345   dynamic_linker="$host_os dyld"
8346   version_type=darwin
8347   need_lib_prefix=no
8348   need_version=no
8349   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8350   soname_spec='${libname}${release}${major}$shared_ext'
8351   shlibpath_overrides_runpath=yes
8352   shlibpath_var=DYLD_LIBRARY_PATH
8353   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8354   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8355   if test "$GCC" = yes; then
8356     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8357   else
8358     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8359   fi
8360   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8361   ;;
8362 
8363 dgux*)
8364   version_type=linux
8365   need_lib_prefix=no
8366   need_version=no
8367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8368   soname_spec='${libname}${release}${shared_ext}$major'
8369   shlibpath_var=LD_LIBRARY_PATH
8370   ;;
8371 
8372 freebsd1*)
8373   dynamic_linker=no
8374   ;;
8375 
8376 kfreebsd*-gnu)
8377   version_type=linux
8378   need_lib_prefix=no
8379   need_version=no
8380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8381   soname_spec='${libname}${release}${shared_ext}$major'
8382   shlibpath_var=LD_LIBRARY_PATH
8383   shlibpath_overrides_runpath=no
8384   hardcode_into_libs=yes
8385   dynamic_linker='GNU ld.so'
8386   ;;
8387 
8388 freebsd*)
8389   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8390   version_type=freebsd-$objformat
8391   case $version_type in
8392     freebsd-elf*)
8393       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8394       need_version=no
8395       need_lib_prefix=no
8396       ;;
8397     freebsd-*)
8398       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8399       need_version=yes
8400       ;;
8401   esac
8402   shlibpath_var=LD_LIBRARY_PATH
8403   case $host_os in
8404   freebsd2*)
8405     shlibpath_overrides_runpath=yes
8406     ;;
8407   freebsd3.01* | freebsdelf3.01*)
8408     shlibpath_overrides_runpath=yes
8409     hardcode_into_libs=yes
8410     ;;
8411   *) # from 3.2 on
8412     shlibpath_overrides_runpath=no
8413     hardcode_into_libs=yes
8414     ;;
8415   esac
8416   ;;
8417 
8418 gnu*)
8419   version_type=linux
8420   need_lib_prefix=no
8421   need_version=no
8422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8423   soname_spec='${libname}${release}${shared_ext}$major'
8424   shlibpath_var=LD_LIBRARY_PATH
8425   hardcode_into_libs=yes
8426   ;;
8427 
8428 hpux9* | hpux10* | hpux11*)
8429   # Give a soname corresponding to the major version so that dld.sl refuses to
8430   # link against other versions.
8431   version_type=sunos
8432   need_lib_prefix=no
8433   need_version=no
8434   case "$host_cpu" in
8435   ia64*)
8436     shrext='.so'
8437     hardcode_into_libs=yes
8438     dynamic_linker="$host_os dld.so"
8439     shlibpath_var=LD_LIBRARY_PATH
8440     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8442     soname_spec='${libname}${release}${shared_ext}$major'
8443     if test "X$HPUX_IA64_MODE" = X32; then
8444       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8445     else
8446       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8447     fi
8448     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8449     ;;
8450    hppa*64*)
8451      shrext='.sl'
8452      hardcode_into_libs=yes
8453      dynamic_linker="$host_os dld.sl"
8454      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8455      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8456      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8457      soname_spec='${libname}${release}${shared_ext}$major'
8458      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8459      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8460      ;;
8461    *)
8462     shrext='.sl'
8463     dynamic_linker="$host_os dld.sl"
8464     shlibpath_var=SHLIB_PATH
8465     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8467     soname_spec='${libname}${release}${shared_ext}$major'
8468     ;;
8469   esac
8470   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8471   postinstall_cmds='chmod 555 $lib'
8472   ;;
8473 
8474 irix5* | irix6* | nonstopux*)
8475   case $host_os in
8476     nonstopux*) version_type=nonstopux ;;
8477     *)
8478         if test "$lt_cv_prog_gnu_ld" = yes; then
8479                 version_type=linux
8480         else
8481                 version_type=irix
8482         fi ;;
8483   esac
8484   need_lib_prefix=no
8485   need_version=no
8486   soname_spec='${libname}${release}${shared_ext}$major'
8487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8488   case $host_os in
8489   irix5* | nonstopux*)
8490     libsuff= shlibsuff=
8491     ;;
8492   *)
8493     case $LD in # libtool.m4 will add one of these switches to LD
8494     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8495       libsuff= shlibsuff= libmagic=32-bit;;
8496     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8497       libsuff=32 shlibsuff=N32 libmagic=N32;;
8498     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8499       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8500     *) libsuff= shlibsuff= libmagic=never-match;;
8501     esac
8502     ;;
8503   esac
8504   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8505   shlibpath_overrides_runpath=no
8506   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8507   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8508   hardcode_into_libs=yes
8509   ;;
8510 
8511 # No shared lib support for Linux oldld, aout, or coff.
8512 linux*oldld* | linux*aout* | linux*coff*)
8513   dynamic_linker=no
8514   ;;
8515 
8516 # This must be Linux ELF.
8517 linux*)
8518   version_type=linux
8519   need_lib_prefix=no
8520   need_version=no
8521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8522   soname_spec='${libname}${release}${shared_ext}$major'
8523   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8524   shlibpath_var=LD_LIBRARY_PATH
8525   shlibpath_overrides_runpath=no
8526   # This implies no fast_install, which is unacceptable.
8527   # Some rework will be needed to allow for fast_install
8528   # before this can be enabled.
8529   hardcode_into_libs=yes
8530 
8531   # We used to test for /lib/ld.so.1 and disable shared libraries on
8532   # powerpc, because MkLinux only supported shared libraries with the
8533   # GNU dynamic linker.  Since this was broken with cross compilers,
8534   # most powerpc-linux boxes support dynamic linking these days and
8535   # people can always --disable-shared, the test was removed, and we
8536   # assume the GNU/Linux dynamic linker is in use.
8537   dynamic_linker='GNU/Linux ld.so'
8538   ;;
8539 
8540 netbsd*)
8541   version_type=sunos
8542   need_lib_prefix=no
8543   need_version=no
8544   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8546     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8547     dynamic_linker='NetBSD (a.out) ld.so'
8548   else
8549     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8550     soname_spec='${libname}${release}${shared_ext}$major'
8551     dynamic_linker='NetBSD ld.elf_so'
8552   fi
8553   shlibpath_var=LD_LIBRARY_PATH
8554   shlibpath_overrides_runpath=yes
8555   hardcode_into_libs=yes
8556   ;;
8557 
8558 newsos6)
8559   version_type=linux
8560   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561   shlibpath_var=LD_LIBRARY_PATH
8562   shlibpath_overrides_runpath=yes
8563   ;;
8564 
8565 nto-qnx*)
8566   version_type=linux
8567   need_lib_prefix=no
8568   need_version=no
8569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8570   soname_spec='${libname}${release}${shared_ext}$major'
8571   shlibpath_var=LD_LIBRARY_PATH
8572   shlibpath_overrides_runpath=yes
8573   ;;
8574 
8575 openbsd*)
8576   version_type=sunos
8577   need_lib_prefix=no
8578   need_version=no
8579   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8580   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8581   shlibpath_var=LD_LIBRARY_PATH
8582   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8583     case $host_os in
8584       openbsd2.[89] | openbsd2.[89].*)
8585         shlibpath_overrides_runpath=no
8586         ;;
8587       *)
8588         shlibpath_overrides_runpath=yes
8589         ;;
8590       esac
8591   else
8592     shlibpath_overrides_runpath=yes
8593   fi
8594   ;;
8595 
8596 os2*)
8597   libname_spec='$name'
8598   shrext=".dll"
8599   need_lib_prefix=no
8600   library_names_spec='$libname${shared_ext} $libname.a'
8601   dynamic_linker='OS/2 ld.exe'
8602   shlibpath_var=LIBPATH
8603   ;;
8604 
8605 osf3* | osf4* | osf5*)
8606   version_type=osf
8607   need_lib_prefix=no
8608   need_version=no
8609   soname_spec='${libname}${release}${shared_ext}$major'
8610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611   shlibpath_var=LD_LIBRARY_PATH
8612   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8613   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8614   ;;
8615 
8616 sco3.2v5*)
8617   version_type=osf
8618   soname_spec='${libname}${release}${shared_ext}$major'
8619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8620   shlibpath_var=LD_LIBRARY_PATH
8621   ;;
8622 
8623 solaris*)
8624   version_type=linux
8625   need_lib_prefix=no
8626   need_version=no
8627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8628   soname_spec='${libname}${release}${shared_ext}$major'
8629   shlibpath_var=LD_LIBRARY_PATH
8630   shlibpath_overrides_runpath=yes
8631   hardcode_into_libs=yes
8632   # ldd complains unless libraries are executable
8633   postinstall_cmds='chmod +x $lib'
8634   ;;
8635 
8636 sunos4*)
8637   version_type=sunos
8638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8639   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8640   shlibpath_var=LD_LIBRARY_PATH
8641   shlibpath_overrides_runpath=yes
8642   if test "$with_gnu_ld" = yes; then
8643     need_lib_prefix=no
8644   fi
8645   need_version=yes
8646   ;;
8647 
8648 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8649   version_type=linux
8650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8651   soname_spec='${libname}${release}${shared_ext}$major'
8652   shlibpath_var=LD_LIBRARY_PATH
8653   case $host_vendor in
8654     sni)
8655       shlibpath_overrides_runpath=no
8656       need_lib_prefix=no
8657       export_dynamic_flag_spec='${wl}-Blargedynsym'
8658       runpath_var=LD_RUN_PATH
8659       ;;
8660     siemens)
8661       need_lib_prefix=no
8662       ;;
8663     motorola)
8664       need_lib_prefix=no
8665       need_version=no
8666       shlibpath_overrides_runpath=no
8667       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8668       ;;
8669   esac
8670   ;;
8671 
8672 sysv4*MP*)
8673   if test -d /usr/nec ;then
8674     version_type=linux
8675     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8676     soname_spec='$libname${shared_ext}.$major'
8677     shlibpath_var=LD_LIBRARY_PATH
8678   fi
8679   ;;
8680 
8681 uts4*)
8682   version_type=linux
8683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8684   soname_spec='${libname}${release}${shared_ext}$major'
8685   shlibpath_var=LD_LIBRARY_PATH
8686   ;;
8687 
8688 *)
8689   dynamic_linker=no
8690   ;;
8691 esac
8692 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8693 echo "${ECHO_T}$dynamic_linker" >&6; }
8694 test "$dynamic_linker" = no && can_build_shared=no
8695 
8696 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8697 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
8698 hardcode_action=
8699 if test -n "$hardcode_libdir_flag_spec" || \
8700    test -n "$runpath_var " || \
8701    test "X$hardcode_automatic"="Xyes" ; then
8702 
8703   # We can hardcode non-existant directories.
8704   if test "$hardcode_direct" != no &&
8705      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8706      # have to relink, otherwise we might link with an installed library
8707      # when we should be linking with a yet-to-be-installed one
8708      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8709      test "$hardcode_minus_L" != no; then
8710     # Linking always hardcodes the temporary library directory.
8711     hardcode_action=relink
8712   else
8713     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8714     hardcode_action=immediate
8715   fi
8716 else
8717   # We cannot hardcode anything, or else we can only hardcode existing
8718   # directories.
8719   hardcode_action=unsupported
8720 fi
8721 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
8722 echo "${ECHO_T}$hardcode_action" >&6; }
8723 
8724 if test "$hardcode_action" = relink; then
8725   # Fast installation is not supported
8726   enable_fast_install=no
8727 elif test "$shlibpath_overrides_runpath" = yes ||
8728      test "$enable_shared" = no; then
8729   # Fast installation is not necessary
8730   enable_fast_install=needless
8731 fi
8732 
8733 striplib=
8734 old_striplib=
8735 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8736 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
8737 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8738   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8739   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8740   { echo "$as_me:$LINENO: result: yes" >&5
8741 echo "${ECHO_T}yes" >&6; }
8742 else
8743 # FIXME - insert some real tests, host_os isn't really good enough
8744   case $host_os in
8745    darwin*)
8746        if test -n "$STRIP" ; then
8747          striplib="$STRIP -x"
8748          { echo "$as_me:$LINENO: result: yes" >&5
8749 echo "${ECHO_T}yes" >&6; }
8750        else
8751   { echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6; }
8753 fi
8754        ;;
8755    *)
8756   { echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6; }
8758     ;;
8759   esac
8760 fi
8761 
8762 if test "x$enable_dlopen" != xyes; then
8763   enable_dlopen=unknown
8764   enable_dlopen_self=unknown
8765   enable_dlopen_self_static=unknown
8766 else
8767   lt_cv_dlopen=no
8768   lt_cv_dlopen_libs=
8769 
8770   case $host_os in
8771   beos*)
8772     lt_cv_dlopen="load_add_on"
8773     lt_cv_dlopen_libs=
8774     lt_cv_dlopen_self=yes
8775     ;;
8776 
8777   mingw* | pw32*)
8778     lt_cv_dlopen="LoadLibrary"
8779     lt_cv_dlopen_libs=
8780    ;;
8781 
8782   cygwin*)
8783     lt_cv_dlopen="dlopen"
8784     lt_cv_dlopen_libs=
8785    ;;
8786 
8787   darwin*)
8788   # if libdl is installed we need to link against it
8789     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8790 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
8791 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8792   echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794   ac_check_lib_save_LIBS=$LIBS
8795 LIBS="-ldl  $LIBS"
8796 cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802 
8803 /* Override any GCC internal prototype to avoid an error.
8804    Use char because int might match the return type of a GCC
8805    builtin and then its argument prototype would still apply.  */
8806 #ifdef __cplusplus
8807 extern "C"
8808 #endif
8809 char dlopen ();
8810 int
8811 main ()
8812 {
8813 return dlopen ();
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (ac_try="$ac_link"
8820 case "(($ac_try" in
8821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822   *) ac_try_echo=$ac_try;;
8823 esac
8824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8825   (eval "$ac_link") 2>conftest.er1
8826   ac_status=$?
8827   grep -v '^ *+' conftest.er1 >conftest.err
8828   rm -f conftest.er1
8829   cat conftest.err >&5
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); } &&
8832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8833   { (case "(($ac_try" in
8834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835   *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838   (eval "$ac_try") 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); }; } &&
8842          { ac_try='test -s conftest$ac_exeext'
8843   { (case "(($ac_try" in
8844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845   *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848   (eval "$ac_try") 2>&5
8849   ac_status=$?
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); }; }; then
8852   ac_cv_lib_dl_dlopen=yes
8853 else
8854   echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856 
8857         ac_cv_lib_dl_dlopen=no
8858 fi
8859 
8860 rm -f core conftest.err conftest.$ac_objext \
8861       conftest$ac_exeext conftest.$ac_ext
8862 LIBS=$ac_check_lib_save_LIBS
8863 fi
8864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8865 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
8866 if test $ac_cv_lib_dl_dlopen = yes; then
8867   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8868 else
8869 
8870     lt_cv_dlopen="dyld"
8871     lt_cv_dlopen_libs=
8872     lt_cv_dlopen_self=yes
8873 
8874 fi
8875 
8876    ;;
8877 
8878   *)
8879     { echo "$as_me:$LINENO: checking for shl_load" >&5
8880 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
8881 if test "${ac_cv_func_shl_load+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884   cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8892 #define shl_load innocuous_shl_load
8893 
8894 /* System header to define __stub macros and hopefully few prototypes,
8895     which can conflict with char shl_load (); below.
8896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8897     <limits.h> exists even on freestanding compilers.  */
8898 
8899 #ifdef __STDC__
8900 # include <limits.h>
8901 #else
8902 # include <assert.h>
8903 #endif
8904 
8905 #undef shl_load
8906 
8907 /* Override any GCC internal prototype to avoid an error.
8908    Use char because int might match the return type of a GCC
8909    builtin and then its argument prototype would still apply.  */
8910 #ifdef __cplusplus
8911 extern "C"
8912 #endif
8913 char shl_load ();
8914 /* The GNU C library defines this for functions which it implements
8915     to always fail with ENOSYS.  Some functions are actually named
8916     something starting with __ and the normal name is an alias.  */
8917 #if defined __stub_shl_load || defined __stub___shl_load
8918 choke me
8919 #endif
8920 
8921 int
8922 main ()
8923 {
8924 return shl_load ();
8925   ;
8926   return 0;
8927 }
8928 _ACEOF
8929 rm -f conftest.$ac_objext conftest$ac_exeext
8930 if { (ac_try="$ac_link"
8931 case "(($ac_try" in
8932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933   *) ac_try_echo=$ac_try;;
8934 esac
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936   (eval "$ac_link") 2>conftest.er1
8937   ac_status=$?
8938   grep -v '^ *+' conftest.er1 >conftest.err
8939   rm -f conftest.er1
8940   cat conftest.err >&5
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); } &&
8943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8944   { (case "(($ac_try" in
8945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946   *) ac_try_echo=$ac_try;;
8947 esac
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949   (eval "$ac_try") 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; } &&
8953          { ac_try='test -s conftest$ac_exeext'
8954   { (case "(($ac_try" in
8955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8956   *) ac_try_echo=$ac_try;;
8957 esac
8958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8959   (eval "$ac_try") 2>&5
8960   ac_status=$?
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); }; }; then
8963   ac_cv_func_shl_load=yes
8964 else
8965   echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8967 
8968         ac_cv_func_shl_load=no
8969 fi
8970 
8971 rm -f core conftest.err conftest.$ac_objext \
8972       conftest$ac_exeext conftest.$ac_ext
8973 fi
8974 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8975 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
8976 if test $ac_cv_func_shl_load = yes; then
8977   lt_cv_dlopen="shl_load"
8978 else
8979   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8980 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
8981 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8982   echo $ECHO_N "(cached) $ECHO_C" >&6
8983 else
8984   ac_check_lib_save_LIBS=$LIBS
8985 LIBS="-ldld  $LIBS"
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992 
8993 /* Override any GCC internal prototype to avoid an error.
8994    Use char because int might match the return type of a GCC
8995    builtin and then its argument prototype would still apply.  */
8996 #ifdef __cplusplus
8997 extern "C"
8998 #endif
8999 char shl_load ();
9000 int
9001 main ()
9002 {
9003 return shl_load ();
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (ac_try="$ac_link"
9010 case "(($ac_try" in
9011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012   *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015   (eval "$ac_link") 2>conftest.er1
9016   ac_status=$?
9017   grep -v '^ *+' conftest.er1 >conftest.err
9018   rm -f conftest.er1
9019   cat conftest.err >&5
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); } &&
9022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9023   { (case "(($ac_try" in
9024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025   *) ac_try_echo=$ac_try;;
9026 esac
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028   (eval "$ac_try") 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); }; } &&
9032          { ac_try='test -s conftest$ac_exeext'
9033   { (case "(($ac_try" in
9034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035   *) ac_try_echo=$ac_try;;
9036 esac
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038   (eval "$ac_try") 2>&5
9039   ac_status=$?
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); }; }; then
9042   ac_cv_lib_dld_shl_load=yes
9043 else
9044   echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046 
9047         ac_cv_lib_dld_shl_load=no
9048 fi
9049 
9050 rm -f core conftest.err conftest.$ac_objext \
9051       conftest$ac_exeext conftest.$ac_ext
9052 LIBS=$ac_check_lib_save_LIBS
9053 fi
9054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9055 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9056 if test $ac_cv_lib_dld_shl_load = yes; then
9057   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9058 else
9059   { echo "$as_me:$LINENO: checking for dlopen" >&5
9060 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9061 if test "${ac_cv_func_dlopen+set}" = set; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064   cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h.  */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h.  */
9070 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9072 #define dlopen innocuous_dlopen
9073 
9074 /* System header to define __stub macros and hopefully few prototypes,
9075     which can conflict with char dlopen (); below.
9076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9077     <limits.h> exists even on freestanding compilers.  */
9078 
9079 #ifdef __STDC__
9080 # include <limits.h>
9081 #else
9082 # include <assert.h>
9083 #endif
9084 
9085 #undef dlopen
9086 
9087 /* Override any GCC internal prototype to avoid an error.
9088    Use char because int might match the return type of a GCC
9089    builtin and then its argument prototype would still apply.  */
9090 #ifdef __cplusplus
9091 extern "C"
9092 #endif
9093 char dlopen ();
9094 /* The GNU C library defines this for functions which it implements
9095     to always fail with ENOSYS.  Some functions are actually named
9096     something starting with __ and the normal name is an alias.  */
9097 #if defined __stub_dlopen || defined __stub___dlopen
9098 choke me
9099 #endif
9100 
9101 int
9102 main ()
9103 {
9104 return dlopen ();
9105   ;
9106   return 0;
9107 }
9108 _ACEOF
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (ac_try="$ac_link"
9111 case "(($ac_try" in
9112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113   *) ac_try_echo=$ac_try;;
9114 esac
9115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116   (eval "$ac_link") 2>conftest.er1
9117   ac_status=$?
9118   grep -v '^ *+' conftest.er1 >conftest.err
9119   rm -f conftest.er1
9120   cat conftest.err >&5
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); } &&
9123          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9124   { (case "(($ac_try" in
9125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126   *) ac_try_echo=$ac_try;;
9127 esac
9128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129   (eval "$ac_try") 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; } &&
9133          { ac_try='test -s conftest$ac_exeext'
9134   { (case "(($ac_try" in
9135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136   *) ac_try_echo=$ac_try;;
9137 esac
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139   (eval "$ac_try") 2>&5
9140   ac_status=$?
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); }; }; then
9143   ac_cv_func_dlopen=yes
9144 else
9145   echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9147 
9148         ac_cv_func_dlopen=no
9149 fi
9150 
9151 rm -f core conftest.err conftest.$ac_objext \
9152       conftest$ac_exeext conftest.$ac_ext
9153 fi
9154 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9155 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9156 if test $ac_cv_func_dlopen = yes; then
9157   lt_cv_dlopen="dlopen"
9158 else
9159   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9160 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9161 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9162   echo $ECHO_N "(cached) $ECHO_C" >&6
9163 else
9164   ac_check_lib_save_LIBS=$LIBS
9165 LIBS="-ldl  $LIBS"
9166 cat >conftest.$ac_ext <<_ACEOF
9167 /* confdefs.h.  */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h.  */
9172 
9173 /* Override any GCC internal prototype to avoid an error.
9174    Use char because int might match the return type of a GCC
9175    builtin and then its argument prototype would still apply.  */
9176 #ifdef __cplusplus
9177 extern "C"
9178 #endif
9179 char dlopen ();
9180 int
9181 main ()
9182 {
9183 return dlopen ();
9184   ;
9185   return 0;
9186 }
9187 _ACEOF
9188 rm -f conftest.$ac_objext conftest$ac_exeext
9189 if { (ac_try="$ac_link"
9190 case "(($ac_try" in
9191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192   *) ac_try_echo=$ac_try;;
9193 esac
9194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9195   (eval "$ac_link") 2>conftest.er1
9196   ac_status=$?
9197   grep -v '^ *+' conftest.er1 >conftest.err
9198   rm -f conftest.er1
9199   cat conftest.err >&5
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); } &&
9202          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9203   { (case "(($ac_try" in
9204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205   *) ac_try_echo=$ac_try;;
9206 esac
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208   (eval "$ac_try") 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; } &&
9212          { ac_try='test -s conftest$ac_exeext'
9213   { (case "(($ac_try" in
9214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215   *) ac_try_echo=$ac_try;;
9216 esac
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218   (eval "$ac_try") 2>&5
9219   ac_status=$?
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); }; }; then
9222   ac_cv_lib_dl_dlopen=yes
9223 else
9224   echo "$as_me: failed program was:" >&5
9225 sed 's/^/| /' conftest.$ac_ext >&5
9226 
9227         ac_cv_lib_dl_dlopen=no
9228 fi
9229 
9230 rm -f core conftest.err conftest.$ac_objext \
9231       conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9233 fi
9234 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9235 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9236 if test $ac_cv_lib_dl_dlopen = yes; then
9237   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9238 else
9239   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9240 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9241 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9242   echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244   ac_check_lib_save_LIBS=$LIBS
9245 LIBS="-lsvld  $LIBS"
9246 cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h.  */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h.  */
9252 
9253 /* Override any GCC internal prototype to avoid an error.
9254    Use char because int might match the return type of a GCC
9255    builtin and then its argument prototype would still apply.  */
9256 #ifdef __cplusplus
9257 extern "C"
9258 #endif
9259 char dlopen ();
9260 int
9261 main ()
9262 {
9263 return dlopen ();
9264   ;
9265   return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (ac_try="$ac_link"
9270 case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_link") 2>conftest.er1
9276   ac_status=$?
9277   grep -v '^ *+' conftest.er1 >conftest.err
9278   rm -f conftest.er1
9279   cat conftest.err >&5
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); } &&
9282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9283   { (case "(($ac_try" in
9284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285   *) ac_try_echo=$ac_try;;
9286 esac
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288   (eval "$ac_try") 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); }; } &&
9292          { ac_try='test -s conftest$ac_exeext'
9293   { (case "(($ac_try" in
9294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9295   *) ac_try_echo=$ac_try;;
9296 esac
9297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9298   (eval "$ac_try") 2>&5
9299   ac_status=$?
9300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301   (exit $ac_status); }; }; then
9302   ac_cv_lib_svld_dlopen=yes
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306 
9307         ac_cv_lib_svld_dlopen=no
9308 fi
9309 
9310 rm -f core conftest.err conftest.$ac_objext \
9311       conftest$ac_exeext conftest.$ac_ext
9312 LIBS=$ac_check_lib_save_LIBS
9313 fi
9314 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9315 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9316 if test $ac_cv_lib_svld_dlopen = yes; then
9317   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9318 else
9319   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9320 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9321 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   ac_check_lib_save_LIBS=$LIBS
9325 LIBS="-ldld  $LIBS"
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h.  */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h.  */
9332 
9333 /* Override any GCC internal prototype to avoid an error.
9334    Use char because int might match the return type of a GCC
9335    builtin and then its argument prototype would still apply.  */
9336 #ifdef __cplusplus
9337 extern "C"
9338 #endif
9339 char dld_link ();
9340 int
9341 main ()
9342 {
9343 return dld_link ();
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
9350 case "(($ac_try" in
9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352   *) ac_try_echo=$ac_try;;
9353 esac
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355   (eval "$ac_link") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } &&
9362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9363   { (case "(($ac_try" in
9364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365   *) ac_try_echo=$ac_try;;
9366 esac
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368   (eval "$ac_try") 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; } &&
9372          { ac_try='test -s conftest$ac_exeext'
9373   { (case "(($ac_try" in
9374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375   *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378   (eval "$ac_try") 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; }; then
9382   ac_cv_lib_dld_dld_link=yes
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386 
9387         ac_cv_lib_dld_dld_link=no
9388 fi
9389 
9390 rm -f core conftest.err conftest.$ac_objext \
9391       conftest$ac_exeext conftest.$ac_ext
9392 LIBS=$ac_check_lib_save_LIBS
9393 fi
9394 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9395 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9396 if test $ac_cv_lib_dld_dld_link = yes; then
9397   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9398 fi
9399 
9400 
9401 fi
9402 
9403 
9404 fi
9405 
9406 
9407 fi
9408 
9409 
9410 fi
9411 
9412 
9413 fi
9414 
9415     ;;
9416   esac
9417 
9418   if test "x$lt_cv_dlopen" != xno; then
9419     enable_dlopen=yes
9420   else
9421     enable_dlopen=no
9422   fi
9423 
9424   case $lt_cv_dlopen in
9425   dlopen)
9426     save_CPPFLAGS="$CPPFLAGS"
9427     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9428 
9429     save_LDFLAGS="$LDFLAGS"
9430     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9431 
9432     save_LIBS="$LIBS"
9433     LIBS="$lt_cv_dlopen_libs $LIBS"
9434 
9435     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9436 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9437 if test "${lt_cv_dlopen_self+set}" = set; then
9438   echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440           if test "$cross_compiling" = yes; then :
9441   lt_cv_dlopen_self=cross
9442 else
9443   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9444   lt_status=$lt_dlunknown
9445   cat > conftest.$ac_ext <<EOF
9446 #line 9446 "configure"
9447 #include "confdefs.h"
9448 
9449 #if HAVE_DLFCN_H
9450 #include <dlfcn.h>
9451 #endif
9452 
9453 #include <stdio.h>
9454 
9455 #ifdef RTLD_GLOBAL
9456 #  define LT_DLGLOBAL           RTLD_GLOBAL
9457 #else
9458 #  ifdef DL_GLOBAL
9459 #    define LT_DLGLOBAL         DL_GLOBAL
9460 #  else
9461 #    define LT_DLGLOBAL         0
9462 #  endif
9463 #endif
9464 
9465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9466    find out it does not work in some platform. */
9467 #ifndef LT_DLLAZY_OR_NOW
9468 #  ifdef RTLD_LAZY
9469 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9470 #  else
9471 #    ifdef DL_LAZY
9472 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9473 #    else
9474 #      ifdef RTLD_NOW
9475 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9476 #      else
9477 #        ifdef DL_NOW
9478 #          define LT_DLLAZY_OR_NOW      DL_NOW
9479 #        else
9480 #          define LT_DLLAZY_OR_NOW      0
9481 #        endif
9482 #      endif
9483 #    endif
9484 #  endif
9485 #endif
9486 
9487 #ifdef __cplusplus
9488 extern "C" void exit (int);
9489 #endif
9490 
9491 void fnord() { int i=42;}
9492 int main ()
9493 {
9494   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9495   int status = $lt_dlunknown;
9496 
9497   if (self)
9498     {
9499       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9500       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9501       /* dlclose (self); */
9502     }
9503 
9504     exit (status);
9505 }
9506 EOF
9507   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9508   (eval $ac_link) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9512     (./conftest; exit; ) 2>/dev/null
9513     lt_status=$?
9514     case x$lt_status in
9515       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9516       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9517       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9518     esac
9519   else :
9520     # compilation failed
9521     lt_cv_dlopen_self=no
9522   fi
9523 fi
9524 rm -fr conftest*
9525 
9526 
9527 fi
9528 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9529 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9530 
9531     if test "x$lt_cv_dlopen_self" = xyes; then
9532       LDFLAGS="$LDFLAGS $link_static_flag"
9533       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9534 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9535 if test "${lt_cv_dlopen_self_static+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538           if test "$cross_compiling" = yes; then :
9539   lt_cv_dlopen_self_static=cross
9540 else
9541   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9542   lt_status=$lt_dlunknown
9543   cat > conftest.$ac_ext <<EOF
9544 #line 9544 "configure"
9545 #include "confdefs.h"
9546 
9547 #if HAVE_DLFCN_H
9548 #include <dlfcn.h>
9549 #endif
9550 
9551 #include <stdio.h>
9552 
9553 #ifdef RTLD_GLOBAL
9554 #  define LT_DLGLOBAL           RTLD_GLOBAL
9555 #else
9556 #  ifdef DL_GLOBAL
9557 #    define LT_DLGLOBAL         DL_GLOBAL
9558 #  else
9559 #    define LT_DLGLOBAL         0
9560 #  endif
9561 #endif
9562 
9563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9564    find out it does not work in some platform. */
9565 #ifndef LT_DLLAZY_OR_NOW
9566 #  ifdef RTLD_LAZY
9567 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9568 #  else
9569 #    ifdef DL_LAZY
9570 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9571 #    else
9572 #      ifdef RTLD_NOW
9573 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9574 #      else
9575 #        ifdef DL_NOW
9576 #          define LT_DLLAZY_OR_NOW      DL_NOW
9577 #        else
9578 #          define LT_DLLAZY_OR_NOW      0
9579 #        endif
9580 #      endif
9581 #    endif
9582 #  endif
9583 #endif
9584 
9585 #ifdef __cplusplus
9586 extern "C" void exit (int);
9587 #endif
9588 
9589 void fnord() { int i=42;}
9590 int main ()
9591 {
9592   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9593   int status = $lt_dlunknown;
9594 
9595   if (self)
9596     {
9597       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9598       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9599       /* dlclose (self); */
9600     }
9601 
9602     exit (status);
9603 }
9604 EOF
9605   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606   (eval $ac_link) 2>&5
9607   ac_status=$?
9608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9610     (./conftest; exit; ) 2>/dev/null
9611     lt_status=$?
9612     case x$lt_status in
9613       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9614       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9615       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9616     esac
9617   else :
9618     # compilation failed
9619     lt_cv_dlopen_self_static=no
9620   fi
9621 fi
9622 rm -fr conftest*
9623 
9624 
9625 fi
9626 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9627 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9628     fi
9629 
9630     CPPFLAGS="$save_CPPFLAGS"
9631     LDFLAGS="$save_LDFLAGS"
9632     LIBS="$save_LIBS"
9633     ;;
9634   esac
9635 
9636   case $lt_cv_dlopen_self in
9637   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9638   *) enable_dlopen_self=unknown ;;
9639   esac
9640 
9641   case $lt_cv_dlopen_self_static in
9642   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9643   *) enable_dlopen_self_static=unknown ;;
9644   esac
9645 fi
9646 
9647 
9648 # Report which librarie types wil actually be built
9649 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9650 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9651 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9652 echo "${ECHO_T}$can_build_shared" >&6; }
9653 
9654 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9655 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9656 test "$can_build_shared" = "no" && enable_shared=no
9657 
9658 # On AIX, shared libraries and static libraries use the same namespace, and
9659 # are all built from PIC.
9660 case "$host_os" in
9661 aix3*)
9662   test "$enable_shared" = yes && enable_static=no
9663   if test -n "$RANLIB"; then
9664     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9665     postinstall_cmds='$RANLIB $lib'
9666   fi
9667   ;;
9668 
9669 aix4*)
9670   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9671     test "$enable_shared" = yes && enable_static=no
9672   fi
9673   ;;
9674   darwin* | rhapsody*)
9675   if test "$GCC" = yes; then
9676     archive_cmds_need_lc=no
9677     case "$host_os" in
9678     rhapsody* | darwin1.[012])
9679       allow_undefined_flag='-undefined suppress'
9680       ;;
9681     *) # Darwin 1.3 on
9682       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9683         allow_undefined_flag='-flat_namespace -undefined suppress'
9684       else
9685         case ${MACOSX_DEPLOYMENT_TARGET} in
9686           10.[012])
9687             allow_undefined_flag='-flat_namespace -undefined suppress'
9688             ;;
9689           10.*)
9690             allow_undefined_flag='-undefined dynamic_lookup'
9691             ;;
9692         esac
9693       fi
9694       ;;
9695     esac
9696     output_verbose_link_cmd='echo'
9697     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9698     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9699     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9700     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}'
9701     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}'
9702     hardcode_direct=no
9703     hardcode_automatic=yes
9704     hardcode_shlibpath_var=unsupported
9705     whole_archive_flag_spec='-all_load $convenience'
9706     link_all_deplibs=yes
9707   else
9708     ld_shlibs=no
9709   fi
9710     ;;
9711 esac
9712 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9713 echo "${ECHO_T}$enable_shared" >&6; }
9714 
9715 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9716 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9717 # Make sure either enable_shared or enable_static is yes.
9718 test "$enable_shared" = yes || enable_static=yes
9719 { echo "$as_me:$LINENO: result: $enable_static" >&5
9720 echo "${ECHO_T}$enable_static" >&6; }
9721 
9722 # The else clause should only fire when bootstrapping the
9723 # libtool distribution, otherwise you forgot to ship ltmain.sh
9724 # with your package, and you will get complaints that there are
9725 # no rules to generate ltmain.sh.
9726 if test -f "$ltmain"; then
9727   # See if we are running on zsh, and set the options which allow our commands through
9728   # without removal of \ escapes.
9729   if test -n "${ZSH_VERSION+set}" ; then
9730     setopt NO_GLOB_SUBST
9731   fi
9732   # Now quote all the things that may contain metacharacters while being
9733   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9734   # variables and quote the copies for generation of the libtool script.
9735   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
9736     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9737     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9738     deplibs_check_method reload_flag reload_cmds need_locks \
9739     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9740     lt_cv_sys_global_symbol_to_c_name_address \
9741     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9742     old_postinstall_cmds old_postuninstall_cmds \
9743     compiler \
9744     CC \
9745     LD \
9746     lt_prog_compiler_wl \
9747     lt_prog_compiler_pic \
9748     lt_prog_compiler_static \
9749     lt_prog_compiler_no_builtin_flag \
9750     export_dynamic_flag_spec \
9751     thread_safe_flag_spec \
9752     whole_archive_flag_spec \
9753     enable_shared_with_static_runtimes \
9754     old_archive_cmds \
9755     old_archive_from_new_cmds \
9756     predep_objects \
9757     postdep_objects \
9758     predeps \
9759     postdeps \
9760     compiler_lib_search_path \
9761     archive_cmds \
9762     archive_expsym_cmds \
9763     postinstall_cmds \
9764     postuninstall_cmds \
9765     old_archive_from_expsyms_cmds \
9766     allow_undefined_flag \
9767     no_undefined_flag \
9768     export_symbols_cmds \
9769     hardcode_libdir_flag_spec \
9770     hardcode_libdir_flag_spec_ld \
9771     hardcode_libdir_separator \
9772     hardcode_automatic \
9773     module_cmds \
9774     module_expsym_cmds \
9775     lt_cv_prog_compiler_c_o \
9776     exclude_expsyms \
9777     include_expsyms; do
9778 
9779     case $var in
9780     old_archive_cmds | \
9781     old_archive_from_new_cmds | \
9782     archive_cmds | \
9783     archive_expsym_cmds | \
9784     module_cmds | \
9785     module_expsym_cmds | \
9786     old_archive_from_expsyms_cmds | \
9787     export_symbols_cmds | \
9788     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9789     postinstall_cmds | postuninstall_cmds | \
9790     old_postinstall_cmds | old_postuninstall_cmds | \
9791     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9792       # Double-quote double-evaled strings.
9793       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9794       ;;
9795     *)
9796       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9797       ;;
9798     esac
9799   done
9800 
9801   case $lt_echo in
9802   *'\$0 --fallback-echo"')
9803     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9804     ;;
9805   esac
9806 
9807 cfgfile="${ofile}T"
9808   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9809   $rm -f "$cfgfile"
9810   { echo "$as_me:$LINENO: creating $ofile" >&5
9811 echo "$as_me: creating $ofile" >&6;}
9812 
9813   cat <<__EOF__ >> "$cfgfile"
9814 #! $SHELL
9815 
9816 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9817 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9818 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9819 #
9820 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9821 # Free Software Foundation, Inc.
9822 #
9823 # This file is part of GNU Libtool:
9824 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9825 #
9826 # This program is free software; you can redistribute it and/or modify
9827 # it under the terms of the GNU General Public License as published by
9828 # the Free Software Foundation; either version 2 of the License, or
9829 # (at your option) any later version.
9830 #
9831 # This program is distributed in the hope that it will be useful, but
9832 # WITHOUT ANY WARRANTY; without even the implied warranty of
9833 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9834 # General Public License for more details.
9835 #
9836 # You should have received a copy of the GNU General Public License
9837 # along with this program; if not, write to the Free Software
9838 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9839 #
9840 # As a special exception to the GNU General Public License, if you
9841 # distribute this file as part of a program that contains a
9842 # configuration script generated by Autoconf, you may include it under
9843 # the same distribution terms that you use for the rest of that program.
9844 
9845 # A sed program that does not truncate output.
9846 SED=$lt_SED
9847 
9848 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9849 Xsed="$SED -e s/^X//"
9850 
9851 # The HP-UX ksh and POSIX shell print the target directory to stdout
9852 # if CDPATH is set.
9853 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9854 
9855 # The names of the tagged configurations supported by this script.
9856 available_tags=
9857 
9858 # ### BEGIN LIBTOOL CONFIG
9859 
9860 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9861 
9862 # Shell to use when invoking shell scripts.
9863 SHELL=$lt_SHELL
9864 
9865 # Whether or not to build shared libraries.
9866 build_libtool_libs=$enable_shared
9867 
9868 # Whether or not to build static libraries.
9869 build_old_libs=$enable_static
9870 
9871 # Whether or not to add -lc for building shared libraries.
9872 build_libtool_need_lc=$archive_cmds_need_lc
9873 
9874 # Whether or not to disallow shared libs when runtime libs are static
9875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9876 
9877 # Whether or not to optimize for fast installation.
9878 fast_install=$enable_fast_install
9879 
9880 # The host system.
9881 host_alias=$host_alias
9882 host=$host
9883 
9884 # An echo program that does not interpret backslashes.
9885 echo=$lt_echo
9886 
9887 # The archiver.
9888 AR=$lt_AR
9889 AR_FLAGS=$lt_AR_FLAGS
9890 
9891 # A C compiler.
9892 LTCC=$lt_LTCC
9893 
9894 # A language-specific compiler.
9895 CC=$lt_compiler
9896 
9897 # Is the compiler the GNU C compiler?
9898 with_gcc=$GCC
9899 
9900 # An ERE matcher.
9901 EGREP=$lt_EGREP
9902 
9903 # The linker used to build libraries.
9904 LD=$lt_LD
9905 
9906 # Whether we need hard or soft links.
9907 LN_S=$lt_LN_S
9908 
9909 # A BSD-compatible nm program.
9910 NM=$lt_NM
9911 
9912 # A symbol stripping program
9913 STRIP="$STRIP"
9914 
9915 # Used to examine libraries when file_magic_cmd begins "file"
9916 MAGIC_CMD=$MAGIC_CMD
9917 
9918 # Used on cygwin: DLL creation program.
9919 DLLTOOL="$DLLTOOL"
9920 
9921 # Used on cygwin: object dumper.
9922 OBJDUMP="$OBJDUMP"
9923 
9924 # Used on cygwin: assembler.
9925 AS="$AS"
9926 
9927 # The name of the directory that contains temporary libtool files.
9928 objdir=$objdir
9929 
9930 # How to create reloadable object files.
9931 reload_flag=$lt_reload_flag
9932 reload_cmds=$lt_reload_cmds
9933 
9934 # How to pass a linker flag through the compiler.
9935 wl=$lt_lt_prog_compiler_wl
9936 
9937 # Object file suffix (normally "o").
9938 objext="$ac_objext"
9939 
9940 # Old archive suffix (normally "a").
9941 libext="$libext"
9942 
9943 # Shared library suffix (normally ".so").
9944 shrext='$shrext'
9945 
9946 # Executable file suffix (normally "").
9947 exeext="$exeext"
9948 
9949 # Additional compiler flags for building library objects.
9950 pic_flag=$lt_lt_prog_compiler_pic
9951 pic_mode=$pic_mode
9952 
9953 # What is the maximum length of a command?
9954 max_cmd_len=$lt_cv_sys_max_cmd_len
9955 
9956 # Does compiler simultaneously support -c and -o options?
9957 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9958 
9959 # Must we lock files when doing compilation ?
9960 need_locks=$lt_need_locks
9961 
9962 # Do we need the lib prefix for modules?
9963 need_lib_prefix=$need_lib_prefix
9964 
9965 # Do we need a version for libraries?
9966 need_version=$need_version
9967 
9968 # Whether dlopen is supported.
9969 dlopen_support=$enable_dlopen
9970 
9971 # Whether dlopen of programs is supported.
9972 dlopen_self=$enable_dlopen_self
9973 
9974 # Whether dlopen of statically linked programs is supported.
9975 dlopen_self_static=$enable_dlopen_self_static
9976 
9977 # Compiler flag to prevent dynamic linking.
9978 link_static_flag=$lt_lt_prog_compiler_static
9979 
9980 # Compiler flag to turn off builtin functions.
9981 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9982 
9983 # Compiler flag to allow reflexive dlopens.
9984 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9985 
9986 # Compiler flag to generate shared objects directly from archives.
9987 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9988 
9989 # Compiler flag to generate thread-safe objects.
9990 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9991 
9992 # Library versioning type.
9993 version_type=$version_type
9994 
9995 # Format of library name prefix.
9996 libname_spec=$lt_libname_spec
9997 
9998 # List of archive names.  First name is the real one, the rest are links.
9999 # The last name is the one that the linker finds with -lNAME.
10000 library_names_spec=$lt_library_names_spec
10001 
10002 # The coded name of the library, if different from the real name.
10003 soname_spec=$lt_soname_spec
10004 
10005 # Commands used to build and install an old-style archive.
10006 RANLIB=$lt_RANLIB
10007 old_archive_cmds=$lt_old_archive_cmds
10008 old_postinstall_cmds=$lt_old_postinstall_cmds
10009 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10010 
10011 # Create an old-style archive from a shared archive.
10012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10013 
10014 # Create a temporary old-style archive to link instead of a shared archive.
10015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10016 
10017 # Commands used to build and install a shared archive.
10018 archive_cmds=$lt_archive_cmds
10019 archive_expsym_cmds=$lt_archive_expsym_cmds
10020 postinstall_cmds=$lt_postinstall_cmds
10021 postuninstall_cmds=$lt_postuninstall_cmds
10022 
10023 # Commands used to build a loadable module (assumed same as above if empty)
10024 module_cmds=$lt_module_cmds
10025 module_expsym_cmds=$lt_module_expsym_cmds
10026 
10027 # Commands to strip libraries.
10028 old_striplib=$lt_old_striplib
10029 striplib=$lt_striplib
10030 
10031 # Dependencies to place before the objects being linked to create a
10032 # shared library.
10033 predep_objects=$lt_predep_objects
10034 
10035 # Dependencies to place after the objects being linked to create a
10036 # shared library.
10037 postdep_objects=$lt_postdep_objects
10038 
10039 # Dependencies to place before the objects being linked to create a
10040 # shared library.
10041 predeps=$lt_predeps
10042 
10043 # Dependencies to place after the objects being linked to create a
10044 # shared library.
10045 postdeps=$lt_postdeps
10046 
10047 # The library search path used internally by the compiler when linking
10048 # a shared library.
10049 compiler_lib_search_path=$lt_compiler_lib_search_path
10050 
10051 # Method to check whether dependent libraries are shared objects.
10052 deplibs_check_method=$lt_deplibs_check_method
10053 
10054 # Command to use when deplibs_check_method == file_magic.
10055 file_magic_cmd=$lt_file_magic_cmd
10056 
10057 # Flag that allows shared libraries with undefined symbols to be built.
10058 allow_undefined_flag=$lt_allow_undefined_flag
10059 
10060 # Flag that forces no undefined symbols.
10061 no_undefined_flag=$lt_no_undefined_flag
10062 
10063 # Commands used to finish a libtool library installation in a directory.
10064 finish_cmds=$lt_finish_cmds
10065 
10066 # Same as above, but a single script fragment to be evaled but not shown.
10067 finish_eval=$lt_finish_eval
10068 
10069 # Take the output of nm and produce a listing of raw symbols and C names.
10070 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10071 
10072 # Transform the output of nm in a proper C declaration
10073 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10074 
10075 # Transform the output of nm in a C name address pair
10076 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10077 
10078 # This is the shared library runtime path variable.
10079 runpath_var=$runpath_var
10080 
10081 # This is the shared library path variable.
10082 shlibpath_var=$shlibpath_var
10083 
10084 # Is shlibpath searched before the hard-coded library search path?
10085 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10086 
10087 # How to hardcode a shared library path into an executable.
10088 hardcode_action=$hardcode_action
10089 
10090 # Whether we should hardcode library paths into libraries.
10091 hardcode_into_libs=$hardcode_into_libs
10092 
10093 # Flag to hardcode \$libdir into a binary during linking.
10094 # This must work even if \$libdir does not exist.
10095 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10096 
10097 # If ld is used when linking, flag to hardcode \$libdir into
10098 # a binary during linking. This must work even if \$libdir does
10099 # not exist.
10100 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10101 
10102 # Whether we need a single -rpath flag with a separated argument.
10103 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10104 
10105 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10106 # resulting binary.
10107 hardcode_direct=$hardcode_direct
10108 
10109 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10110 # resulting binary.
10111 hardcode_minus_L=$hardcode_minus_L
10112 
10113 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10114 # the resulting binary.
10115 hardcode_shlibpath_var=$hardcode_shlibpath_var
10116 
10117 # Set to yes if building a shared library automatically hardcodes DIR into the library
10118 # and all subsequent libraries and executables linked against it.
10119 hardcode_automatic=$hardcode_automatic
10120 
10121 # Variables whose values should be saved in libtool wrapper scripts and
10122 # restored at relink time.
10123 variables_saved_for_relink="$variables_saved_for_relink"
10124 
10125 # Whether libtool must link a program against all its dependency libraries.
10126 link_all_deplibs=$link_all_deplibs
10127 
10128 # Compile-time system search path for libraries
10129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10130 
10131 # Run-time system search path for libraries
10132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10133 
10134 # Fix the shell variable \$srcfile for the compiler.
10135 fix_srcfile_path="$fix_srcfile_path"
10136 
10137 # Set to yes if exported symbols are required.
10138 always_export_symbols=$always_export_symbols
10139 
10140 # The commands to list exported symbols.
10141 export_symbols_cmds=$lt_export_symbols_cmds
10142 
10143 # The commands to extract the exported symbol list from a shared archive.
10144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10145 
10146 # Symbols that should not be listed in the preloaded symbols.
10147 exclude_expsyms=$lt_exclude_expsyms
10148 
10149 # Symbols that must always be exported.
10150 include_expsyms=$lt_include_expsyms
10151 
10152 # ### END LIBTOOL CONFIG
10153 
10154 __EOF__
10155 
10156 
10157   case $host_os in
10158   aix3*)
10159     cat <<\EOF >> "$cfgfile"
10160 
10161 # AIX sometimes has problems with the GCC collect2 program.  For some
10162 # reason, if we set the COLLECT_NAMES environment variable, the problems
10163 # vanish in a puff of smoke.
10164 if test "X${COLLECT_NAMES+set}" != Xset; then
10165   COLLECT_NAMES=
10166   export COLLECT_NAMES
10167 fi
10168 EOF
10169     ;;
10170   esac
10171 
10172   # We use sed instead of cat because bash on DJGPP gets confused if
10173   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10174   # text mode, it properly converts lines to CR/LF.  This bash problem
10175   # is reportedly fixed, but why not run on old versions too?
10176   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10177 
10178   mv -f "$cfgfile" "$ofile" || \
10179     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10180   chmod +x "$ofile"
10181 
10182 else
10183   # If there is no Makefile yet, we rely on a make rule to execute
10184   # `config.status --recheck' to rerun these tests and create the
10185   # libtool script then.
10186   test -f Makefile && make "$ltmain"
10187 fi
10188 
10189 
10190 ac_ext=c
10191 ac_cpp='$CPP $CPPFLAGS'
10192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10195 
10196 CC="$lt_save_CC"
10197 
10198 
10199 # Check whether --with-tags was given.
10200 if test "${with_tags+set}" = set; then
10201   withval=$with_tags; tagnames="$withval"
10202 fi
10203 
10204 
10205 if test -f "$ltmain" && test -n "$tagnames"; then
10206   if test ! -f "${ofile}"; then
10207     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10208 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10209   fi
10210 
10211   if test -z "$LTCC"; then
10212     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10213     if test -z "$LTCC"; then
10214       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10215 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10216     else
10217       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10218 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10219     fi
10220   fi
10221 
10222   # Extract list of available tagged configurations in $ofile.
10223   # Note that this assumes the entire list is on one line.
10224   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10225 
10226   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10227   for tagname in $tagnames; do
10228     IFS="$lt_save_ifs"
10229     # Check whether tagname contains only valid characters
10230     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10231     "") ;;
10232     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10233 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10234    { (exit 1); exit 1; }; }
10235         ;;
10236     esac
10237 
10238     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10239     then
10240       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10241 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10242    { (exit 1); exit 1; }; }
10243     fi
10244 
10245     # Update the list of available tags.
10246     if test -n "$tagname"; then
10247       echo appending configuration tag \"$tagname\" to $ofile
10248 
10249       case $tagname in
10250       CXX)
10251         if test -n "$CXX" && test "X$CXX" != "Xno"; then
10252           ac_ext=cpp
10253 ac_cpp='$CXXCPP $CPPFLAGS'
10254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10257 
10258 
10259 
10260 
10261 archive_cmds_need_lc_CXX=no
10262 allow_undefined_flag_CXX=
10263 always_export_symbols_CXX=no
10264 archive_expsym_cmds_CXX=
10265 export_dynamic_flag_spec_CXX=
10266 hardcode_direct_CXX=no
10267 hardcode_libdir_flag_spec_CXX=
10268 hardcode_libdir_flag_spec_ld_CXX=
10269 hardcode_libdir_separator_CXX=
10270 hardcode_minus_L_CXX=no
10271 hardcode_automatic_CXX=no
10272 module_cmds_CXX=
10273 module_expsym_cmds_CXX=
10274 link_all_deplibs_CXX=unknown
10275 old_archive_cmds_CXX=$old_archive_cmds
10276 no_undefined_flag_CXX=
10277 whole_archive_flag_spec_CXX=
10278 enable_shared_with_static_runtimes_CXX=no
10279 
10280 # Dependencies to place before and after the object being linked:
10281 predep_objects_CXX=
10282 postdep_objects_CXX=
10283 predeps_CXX=
10284 postdeps_CXX=
10285 compiler_lib_search_path_CXX=
10286 
10287 # Source file extension for C++ test sources.
10288 ac_ext=cc
10289 
10290 # Object file extension for compiled C++ test sources.
10291 objext=o
10292 objext_CXX=$objext
10293 
10294 # Code to be used in simple compile tests
10295 lt_simple_compile_test_code="int some_variable = 0;\n"
10296 
10297 # Code to be used in simple link tests
10298 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10299 
10300 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10301 
10302 # If no C compiler was specified, use CC.
10303 LTCC=${LTCC-"$CC"}
10304 
10305 # Allow CC to be a program name with arguments.
10306 compiler=$CC
10307 
10308 
10309 # Allow CC to be a program name with arguments.
10310 lt_save_CC=$CC
10311 lt_save_LD=$LD
10312 lt_save_GCC=$GCC
10313 GCC=$GXX
10314 lt_save_with_gnu_ld=$with_gnu_ld
10315 lt_save_path_LD=$lt_cv_path_LD
10316 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10317   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10318 else
10319   unset lt_cv_prog_gnu_ld
10320 fi
10321 if test -n "${lt_cv_path_LDCXX+set}"; then
10322   lt_cv_path_LD=$lt_cv_path_LDCXX
10323 else
10324   unset lt_cv_path_LD
10325 fi
10326 test -z "${LDCXX+set}" || LD=$LDCXX
10327 CC=${CXX-"c++"}
10328 compiler=$CC
10329 compiler_CXX=$CC
10330 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10331 
10332 # We don't want -fno-exception wen compiling C++ code, so set the
10333 # no_builtin_flag separately
10334 if test "$GXX" = yes; then
10335   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10336 else
10337   lt_prog_compiler_no_builtin_flag_CXX=
10338 fi
10339 
10340 if test "$GXX" = yes; then
10341   # Set up default GNU C++ configuration
10342 
10343 
10344 # Check whether --with-gnu-ld was given.
10345 if test "${with_gnu_ld+set}" = set; then
10346   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10347 else
10348   with_gnu_ld=no
10349 fi
10350 
10351 ac_prog=ld
10352 if test "$GCC" = yes; then
10353   # Check if gcc -print-prog-name=ld gives a path.
10354   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10355 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10356   case $host in
10357   *-*-mingw*)
10358     # gcc leaves a trailing carriage return which upsets mingw
10359     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10360   *)
10361     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10362   esac
10363   case $ac_prog in
10364     # Accept absolute paths.
10365     [\\/]* | ?:[\\/]*)
10366       re_direlt='/[^/][^/]*/\.\./'
10367       # Canonicalize the pathname of ld
10368       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10369       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10370         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10371       done
10372       test -z "$LD" && LD="$ac_prog"
10373       ;;
10374   "")
10375     # If it fails, then pretend we aren't using GCC.
10376     ac_prog=ld
10377     ;;
10378   *)
10379     # If it is relative, then search for the first ld in PATH.
10380     with_gnu_ld=unknown
10381     ;;
10382   esac
10383 elif test "$with_gnu_ld" = yes; then
10384   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10385 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10386 else
10387   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10388 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10389 fi
10390 if test "${lt_cv_path_LD+set}" = set; then
10391   echo $ECHO_N "(cached) $ECHO_C" >&6
10392 else
10393   if test -z "$LD"; then
10394   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10395   for ac_dir in $PATH; do
10396     IFS="$lt_save_ifs"
10397     test -z "$ac_dir" && ac_dir=.
10398     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10399       lt_cv_path_LD="$ac_dir/$ac_prog"
10400       # Check to see if the program is GNU ld.  I'd rather use --version,
10401       # but apparently some GNU ld's only accept -v.
10402       # Break only if it was the GNU/non-GNU ld that we prefer.
10403       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10404       *GNU* | *'with BFD'*)
10405         test "$with_gnu_ld" != no && break
10406         ;;
10407       *)
10408         test "$with_gnu_ld" != yes && break
10409         ;;
10410       esac
10411     fi
10412   done
10413   IFS="$lt_save_ifs"
10414 else
10415   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10416 fi
10417 fi
10418 
10419 LD="$lt_cv_path_LD"
10420 if test -n "$LD"; then
10421   { echo "$as_me:$LINENO: result: $LD" >&5
10422 echo "${ECHO_T}$LD" >&6; }
10423 else
10424   { echo "$as_me:$LINENO: result: no" >&5
10425 echo "${ECHO_T}no" >&6; }
10426 fi
10427 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10428 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10429    { (exit 1); exit 1; }; }
10430 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10431 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10432 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10433   echo $ECHO_N "(cached) $ECHO_C" >&6
10434 else
10435   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10436 case `$LD -v 2>&1 </dev/null` in
10437 *GNU* | *'with BFD'*)
10438   lt_cv_prog_gnu_ld=yes
10439   ;;
10440 *)
10441   lt_cv_prog_gnu_ld=no
10442   ;;
10443 esac
10444 fi
10445 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10446 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10447 with_gnu_ld=$lt_cv_prog_gnu_ld
10448 
10449 
10450 
10451   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10452   # archiving commands below assume that GNU ld is being used.
10453   if test "$with_gnu_ld" = yes; then
10454     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10455     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'
10456 
10457     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10458     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10459 
10460     # If archive_cmds runs LD, not CC, wlarc should be empty
10461     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10462     #     investigate it a little bit more. (MM)
10463     wlarc='${wl}'
10464 
10465     # ancient GNU ld didn't support --whole-archive et. al.
10466     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10467         grep 'no-whole-archive' > /dev/null; then
10468       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10469     else
10470       whole_archive_flag_spec_CXX=
10471     fi
10472   else
10473     with_gnu_ld=no
10474     wlarc=
10475 
10476     # A generic and very simple default shared library creation
10477     # command for GNU C++ for the case where it uses the native
10478     # linker, instead of GNU ld.  If possible, this setting should
10479     # overridden to take advantage of the native linker features on
10480     # the platform it is being used on.
10481     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10482   fi
10483 
10484   # Commands to make compiler produce verbose output that lists
10485   # what "hidden" libraries, object files and flags are used when
10486   # linking a shared library.
10487   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10488 
10489 else
10490   GXX=no
10491   with_gnu_ld=no
10492   wlarc=
10493 fi
10494 
10495 # PORTME: fill in a description of your system's C++ link characteristics
10496 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10497 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10498 ld_shlibs_CXX=yes
10499 case $host_os in
10500   aix3*)
10501     # FIXME: insert proper C++ library support
10502     ld_shlibs_CXX=no
10503     ;;
10504   aix4* | aix5*)
10505     if test "$host_cpu" = ia64; then
10506       # On IA64, the linker does run time linking by default, so we don't
10507       # have to do anything special.
10508       aix_use_runtimelinking=no
10509       exp_sym_flag='-Bexport'
10510       no_entry_flag=""
10511     else
10512       aix_use_runtimelinking=no
10513 
10514       # Test if we are trying to use run time linking or normal
10515       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10516       # need to do runtime linking.
10517       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10518         for ld_flag in $LDFLAGS; do
10519           case $ld_flag in
10520           *-brtl*)
10521             aix_use_runtimelinking=yes
10522             break
10523             ;;
10524           esac
10525         done
10526       esac
10527 
10528       exp_sym_flag='-bexport'
10529       no_entry_flag='-bnoentry'
10530     fi
10531 
10532     # When large executables or shared objects are built, AIX ld can
10533     # have problems creating the table of contents.  If linking a library
10534     # or program results in "error TOC overflow" add -mminimal-toc to
10535     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10536     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10537 
10538     archive_cmds_CXX=''
10539     hardcode_direct_CXX=yes
10540     hardcode_libdir_separator_CXX=':'
10541     link_all_deplibs_CXX=yes
10542 
10543     if test "$GXX" = yes; then
10544       case $host_os in aix4.012|aix4.012.*)
10545       # We only want to do this on AIX 4.2 and lower, the check
10546       # below for broken collect2 doesn't work under 4.3+
10547         collect2name=`${CC} -print-prog-name=collect2`
10548         if test -f "$collect2name" && \
10549            strings "$collect2name" | grep resolve_lib_name >/dev/null
10550         then
10551           # We have reworked collect2
10552           hardcode_direct_CXX=yes
10553         else
10554           # We have old collect2
10555           hardcode_direct_CXX=unsupported
10556           # It fails to find uninstalled libraries when the uninstalled
10557           # path is not listed in the libpath.  Setting hardcode_minus_L
10558           # to unsupported forces relinking
10559           hardcode_minus_L_CXX=yes
10560           hardcode_libdir_flag_spec_CXX='-L$libdir'
10561           hardcode_libdir_separator_CXX=
10562         fi
10563       esac
10564       shared_flag='-shared'
10565     else
10566       # not using gcc
10567       if test "$host_cpu" = ia64; then
10568         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10569         # chokes on -Wl,-G. The following line is correct:
10570         shared_flag='-G'
10571       else
10572         if test "$aix_use_runtimelinking" = yes; then
10573           shared_flag='${wl}-G'
10574         else
10575           shared_flag='${wl}-bM:SRE'
10576         fi
10577       fi
10578     fi
10579 
10580     # It seems that -bexpall does not export symbols beginning with
10581     # underscore (_), so it is better to generate a list of symbols to export.
10582     always_export_symbols_CXX=yes
10583     if test "$aix_use_runtimelinking" = yes; then
10584       # Warning - without using the other runtime loading flags (-brtl),
10585       # -berok will link without error, but may produce a broken library.
10586       allow_undefined_flag_CXX='-berok'
10587       # Determine the default libpath from the value encoded in an empty executable.
10588       cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h.  */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h.  */
10594 
10595 int
10596 main ()
10597 {
10598 
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 rm -f conftest.$ac_objext conftest$ac_exeext
10604 if { (ac_try="$ac_link"
10605 case "(($ac_try" in
10606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10607   *) ac_try_echo=$ac_try;;
10608 esac
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610   (eval "$ac_link") 2>conftest.er1
10611   ac_status=$?
10612   grep -v '^ *+' conftest.er1 >conftest.err
10613   rm -f conftest.er1
10614   cat conftest.err >&5
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); } &&
10617          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10618   { (case "(($ac_try" in
10619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620   *) ac_try_echo=$ac_try;;
10621 esac
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623   (eval "$ac_try") 2>&5
10624   ac_status=$?
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); }; } &&
10627          { ac_try='test -s conftest$ac_exeext'
10628   { (case "(($ac_try" in
10629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630   *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633   (eval "$ac_try") 2>&5
10634   ac_status=$?
10635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); }; }; then
10637 
10638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10639 }'`
10640 # Check for a 64-bit object if we didn't find anything.
10641 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10642 }'`; fi
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646 
10647 
10648 fi
10649 
10650 rm -f core conftest.err conftest.$ac_objext \
10651       conftest$ac_exeext conftest.$ac_ext
10652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10653 
10654       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10655 
10656       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10657      else
10658       if test "$host_cpu" = ia64; then
10659         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10660         allow_undefined_flag_CXX="-z nodefs"
10661         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10662       else
10663         # Determine the default libpath from the value encoded in an empty executable.
10664         cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670 
10671 int
10672 main ()
10673 {
10674 
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_link") 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } &&
10693          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10694   { (case "(($ac_try" in
10695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696   *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699   (eval "$ac_try") 2>&5
10700   ac_status=$?
10701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); }; } &&
10703          { ac_try='test -s conftest$ac_exeext'
10704   { (case "(($ac_try" in
10705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706   *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709   (eval "$ac_try") 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; }; then
10713 
10714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10715 }'`
10716 # Check for a 64-bit object if we didn't find anything.
10717 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10718 }'`; fi
10719 else
10720   echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10722 
10723 
10724 fi
10725 
10726 rm -f core conftest.err conftest.$ac_objext \
10727       conftest$ac_exeext conftest.$ac_ext
10728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10729 
10730         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10731         # Warning - without using the other run time loading flags,
10732         # -berok will link without error, but may produce a broken library.
10733         no_undefined_flag_CXX=' ${wl}-bernotok'
10734         allow_undefined_flag_CXX=' ${wl}-berok'
10735         # -bexpall does not export symbols beginning with underscore (_)
10736         always_export_symbols_CXX=yes
10737         # Exported symbols can be pulled into shared objects from archives
10738         whole_archive_flag_spec_CXX=' '
10739         archive_cmds_need_lc_CXX=yes
10740         # This is similar to how AIX traditionally builds it's shared libraries.
10741         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10742       fi
10743     fi
10744     ;;
10745   chorus*)
10746     case $cc_basename in
10747       *)
10748         # FIXME: insert proper C++ library support
10749         ld_shlibs_CXX=no
10750         ;;
10751     esac
10752     ;;
10753 
10754   cygwin* | mingw* | pw32*)
10755     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10756     # as there is no search path for DLLs.
10757     hardcode_libdir_flag_spec_CXX='-L$libdir'
10758     allow_undefined_flag_CXX=unsupported
10759     always_export_symbols_CXX=no
10760     enable_shared_with_static_runtimes_CXX=yes
10761 
10762     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10763       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10764       # If the export-symbols file already is a .def file (1st line
10765       # is EXPORTS), use it as is; otherwise, prepend...
10766       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10767         cp $export_symbols $output_objdir/$soname.def;
10768       else
10769         echo EXPORTS > $output_objdir/$soname.def;
10770         cat $export_symbols >> $output_objdir/$soname.def;
10771       fi~
10772       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10773     else
10774       ld_shlibs_CXX=no
10775     fi
10776   ;;
10777 
10778   darwin* | rhapsody*)
10779   if test "$GXX" = yes; then
10780     archive_cmds_need_lc_CXX=no
10781     case "$host_os" in
10782     rhapsody* | darwin1.[012])
10783       allow_undefined_flag_CXX='-undefined suppress'
10784       ;;
10785     *) # Darwin 1.3 on
10786       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10787         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10788       else
10789         case ${MACOSX_DEPLOYMENT_TARGET} in
10790           10.[012])
10791             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10792             ;;
10793           10.*)
10794             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10795             ;;
10796         esac
10797       fi
10798       ;;
10799     esac
10800     lt_int_apple_cc_single_mod=no
10801     output_verbose_link_cmd='echo'
10802     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10803       lt_int_apple_cc_single_mod=yes
10804     fi
10805     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10806       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10807     else
10808       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10809     fi
10810     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10811 
10812     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10813     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10814       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}'
10815     else
10816       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10817     fi
10818     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}'
10819     hardcode_direct_CXX=no
10820     hardcode_automatic_CXX=yes
10821     hardcode_shlibpath_var_CXX=unsupported
10822     whole_archive_flag_spec_CXX='-all_load $convenience'
10823     link_all_deplibs_CXX=yes
10824   else
10825     ld_shlibs_CXX=no
10826   fi
10827     ;;
10828 
10829   dgux*)
10830     case $cc_basename in
10831       ec++)
10832         # FIXME: insert proper C++ library support
10833         ld_shlibs_CXX=no
10834         ;;
10835       ghcx)
10836         # Green Hills C++ Compiler
10837         # FIXME: insert proper C++ library support
10838         ld_shlibs_CXX=no
10839         ;;
10840       *)
10841         # FIXME: insert proper C++ library support
10842         ld_shlibs_CXX=no
10843         ;;
10844     esac
10845     ;;
10846   freebsd12*)
10847     # C++ shared libraries reported to be fairly broken before switch to ELF
10848     ld_shlibs_CXX=no
10849     ;;
10850   freebsd-elf*)
10851     archive_cmds_need_lc_CXX=no
10852     ;;
10853   freebsd* | kfreebsd*-gnu)
10854     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10855     # conventions
10856     ld_shlibs_CXX=yes
10857     ;;
10858   gnu*)
10859     ;;
10860   hpux9*)
10861     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10862     hardcode_libdir_separator_CXX=:
10863     export_dynamic_flag_spec_CXX='${wl}-E'
10864     hardcode_direct_CXX=yes
10865     hardcode_minus_L_CXX=yes # Not in the search PATH,
10866                                 # but as the default
10867                                 # location of the library.
10868 
10869     case $cc_basename in
10870     CC)
10871       # FIXME: insert proper C++ library support
10872       ld_shlibs_CXX=no
10873       ;;
10874     aCC)
10875       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'
10876       # Commands to make compiler produce verbose output that lists
10877       # what "hidden" libraries, object files and flags are used when
10878       # linking a shared library.
10879       #
10880       # There doesn't appear to be a way to prevent this compiler from
10881       # explicitly linking system object files so we need to strip them
10882       # from the output so that they don't get included in the library
10883       # dependencies.
10884       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10885       ;;
10886     *)
10887       if test "$GXX" = yes; then
10888         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'
10889       else
10890         # FIXME: insert proper C++ library support
10891         ld_shlibs_CXX=no
10892       fi
10893       ;;
10894     esac
10895     ;;
10896   hpux10*|hpux11*)
10897     if test $with_gnu_ld = no; then
10898       case "$host_cpu" in
10899       hppa*64*)
10900         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10901         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10902         hardcode_libdir_separator_CXX=:
10903         ;;
10904       ia64*)
10905         hardcode_libdir_flag_spec_CXX='-L$libdir'
10906         ;;
10907       *)
10908         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10909         hardcode_libdir_separator_CXX=:
10910         export_dynamic_flag_spec_CXX='${wl}-E'
10911         ;;
10912       esac
10913     fi
10914     case "$host_cpu" in
10915     hppa*64*)
10916       hardcode_direct_CXX=no
10917       hardcode_shlibpath_var_CXX=no
10918       ;;
10919     ia64*)
10920       hardcode_direct_CXX=no
10921       hardcode_shlibpath_var_CXX=no
10922       hardcode_minus_L_CXX=yes # Not in the search PATH,
10923                                               # but as the default
10924                                               # location of the library.
10925       ;;
10926     *)
10927       hardcode_direct_CXX=yes
10928       hardcode_minus_L_CXX=yes # Not in the search PATH,
10929                                               # but as the default
10930                                               # location of the library.
10931       ;;
10932     esac
10933 
10934     case $cc_basename in
10935       CC)
10936         # FIXME: insert proper C++ library support
10937         ld_shlibs_CXX=no
10938         ;;
10939       aCC)
10940         case "$host_cpu" in
10941         hppa*64*|ia64*)
10942           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10943           ;;
10944         *)
10945           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10946           ;;
10947         esac
10948         # Commands to make compiler produce verbose output that lists
10949         # what "hidden" libraries, object files and flags are used when
10950         # linking a shared library.
10951         #
10952         # There doesn't appear to be a way to prevent this compiler from
10953         # explicitly linking system object files so we need to strip them
10954         # from the output so that they don't get included in the library
10955         # dependencies.
10956         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'
10957         ;;
10958       *)
10959         if test "$GXX" = yes; then
10960           if test $with_gnu_ld = no; then
10961             case "$host_cpu" in
10962             ia64*|hppa*64*)
10963               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10964               ;;
10965             *)
10966               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'
10967               ;;
10968             esac
10969           fi
10970         else
10971           # FIXME: insert proper C++ library support
10972           ld_shlibs_CXX=no
10973         fi
10974         ;;
10975     esac
10976     ;;
10977   irix5* | irix6*)
10978     case $cc_basename in
10979       CC)
10980         # SGI C++
10981         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 ${objdir}/so_locations -o $lib'
10982 
10983         # Archives containing C++ object files must be created using
10984         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10985         # necessary to make sure instantiated templates are included
10986         # in the archive.
10987         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10988         ;;
10989       *)
10990         if test "$GXX" = yes; then
10991           if test "$with_gnu_ld" = no; then
10992             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}${objdir}/so_locations -o $lib'
10993           else
10994             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'
10995           fi
10996         fi
10997         link_all_deplibs_CXX=yes
10998         ;;
10999     esac
11000     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11001     hardcode_libdir_separator_CXX=:
11002     ;;
11003   linux*)
11004     case $cc_basename in
11005       KCC)
11006         # Kuck and Associates, Inc. (KAI) C++ Compiler
11007 
11008         # KCC will only create a shared library if the output file
11009         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11010         # to its proper name (with version) after linking.
11011         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'
11012         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'
11013         # Commands to make compiler produce verbose output that lists
11014         # what "hidden" libraries, object files and flags are used when
11015         # linking a shared library.
11016         #
11017         # There doesn't appear to be a way to prevent this compiler from
11018         # explicitly linking system object files so we need to strip them
11019         # from the output so that they don't get included in the library
11020         # dependencies.
11021         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'
11022 
11023         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11024         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11025 
11026         # Archives containing C++ object files must be created using
11027         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11028         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11029         ;;
11030       icpc)
11031         # Intel C++
11032         with_gnu_ld=yes
11033         archive_cmds_need_lc_CXX=no
11034         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11035         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'
11036         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11037         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11038         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11039         ;;
11040       cxx)
11041         # Compaq C++
11042         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11043         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'
11044 
11045         runpath_var=LD_RUN_PATH
11046         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11047         hardcode_libdir_separator_CXX=:
11048 
11049         # Commands to make compiler produce verbose output that lists
11050         # what "hidden" libraries, object files and flags are used when
11051         # linking a shared library.
11052         #
11053         # There doesn't appear to be a way to prevent this compiler from
11054         # explicitly linking system object files so we need to strip them
11055         # from the output so that they don't get included in the library
11056         # dependencies.
11057         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'
11058         ;;
11059     esac
11060     ;;
11061   lynxos*)
11062     # FIXME: insert proper C++ library support
11063     ld_shlibs_CXX=no
11064     ;;
11065   m88k*)
11066     # FIXME: insert proper C++ library support
11067     ld_shlibs_CXX=no
11068     ;;
11069   mvs*)
11070     case $cc_basename in
11071       cxx)
11072         # FIXME: insert proper C++ library support
11073         ld_shlibs_CXX=no
11074         ;;
11075       *)
11076         # FIXME: insert proper C++ library support
11077         ld_shlibs_CXX=no
11078         ;;
11079     esac
11080     ;;
11081   netbsd*)
11082     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11083       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11084       wlarc=
11085       hardcode_libdir_flag_spec_CXX='-R$libdir'
11086       hardcode_direct_CXX=yes
11087       hardcode_shlibpath_var_CXX=no
11088     fi
11089     # Workaround some broken pre-1.5 toolchains
11090     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11091     ;;
11092   osf3*)
11093     case $cc_basename in
11094       KCC)
11095         # Kuck and Associates, Inc. (KAI) C++ Compiler
11096 
11097         # KCC will only create a shared library if the output file
11098         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11099         # to its proper name (with version) after linking.
11100         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'
11101 
11102         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11103         hardcode_libdir_separator_CXX=:
11104 
11105         # Archives containing C++ object files must be created using
11106         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11107         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11108 
11109         ;;
11110       RCC)
11111         # Rational C++ 2.4.1
11112         # FIXME: insert proper C++ library support
11113         ld_shlibs_CXX=no
11114         ;;
11115       cxx)
11116         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11117         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 ${objdir}/so_locations -o $lib'
11118 
11119         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11120         hardcode_libdir_separator_CXX=:
11121 
11122         # Commands to make compiler produce verbose output that lists
11123         # what "hidden" libraries, object files and flags are used when
11124         # linking a shared library.
11125         #
11126         # There doesn't appear to be a way to prevent this compiler from
11127         # explicitly linking system object files so we need to strip them
11128         # from the output so that they don't get included in the library
11129         # dependencies.
11130         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'
11131         ;;
11132       *)
11133         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11134           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11135           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}${objdir}/so_locations -o $lib'
11136 
11137           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11138           hardcode_libdir_separator_CXX=:
11139 
11140           # Commands to make compiler produce verbose output that lists
11141           # what "hidden" libraries, object files and flags are used when
11142           # linking a shared library.
11143           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11144 
11145         else
11146           # FIXME: insert proper C++ library support
11147           ld_shlibs_CXX=no
11148         fi
11149         ;;
11150     esac
11151     ;;
11152   osf4* | osf5*)
11153     case $cc_basename in
11154       KCC)
11155         # Kuck and Associates, Inc. (KAI) C++ Compiler
11156 
11157         # KCC will only create a shared library if the output file
11158         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11159         # to its proper name (with version) after linking.
11160         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'
11161 
11162         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11163         hardcode_libdir_separator_CXX=:
11164 
11165         # Archives containing C++ object files must be created using
11166         # the KAI C++ compiler.
11167         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11168         ;;
11169       RCC)
11170         # Rational C++ 2.4.1
11171         # FIXME: insert proper C++ library support
11172         ld_shlibs_CXX=no
11173         ;;
11174       cxx)
11175         allow_undefined_flag_CXX=' -expect_unresolved \*'
11176         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 ${objdir}/so_locations -o $lib'
11177         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11178           echo "-hidden">> $lib.exp~
11179           $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 $objdir/so_locations -o $lib~
11180           $rm $lib.exp'
11181 
11182         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11183         hardcode_libdir_separator_CXX=:
11184 
11185         # Commands to make compiler produce verbose output that lists
11186         # what "hidden" libraries, object files and flags are used when
11187         # linking a shared library.
11188         #
11189         # There doesn't appear to be a way to prevent this compiler from
11190         # explicitly linking system object files so we need to strip them
11191         # from the output so that they don't get included in the library
11192         # dependencies.
11193         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'
11194         ;;
11195       *)
11196         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11197           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11198          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}${objdir}/so_locations -o $lib'
11199 
11200           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11201           hardcode_libdir_separator_CXX=:
11202 
11203           # Commands to make compiler produce verbose output that lists
11204           # what "hidden" libraries, object files and flags are used when
11205           # linking a shared library.
11206           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11207 
11208         else
11209           # FIXME: insert proper C++ library support
11210           ld_shlibs_CXX=no
11211         fi
11212         ;;
11213     esac
11214     ;;
11215   psos*)
11216     # FIXME: insert proper C++ library support
11217     ld_shlibs_CXX=no
11218     ;;
11219   sco*)
11220     archive_cmds_need_lc_CXX=no
11221     case $cc_basename in
11222       CC)
11223         # FIXME: insert proper C++ library support
11224         ld_shlibs_CXX=no
11225         ;;
11226       *)
11227         # FIXME: insert proper C++ library support
11228         ld_shlibs_CXX=no
11229         ;;
11230     esac
11231     ;;
11232   sunos4*)
11233     case $cc_basename in
11234       CC)
11235         # Sun C++ 4.x
11236         # FIXME: insert proper C++ library support
11237         ld_shlibs_CXX=no
11238         ;;
11239       lcc)
11240         # Lucid
11241         # FIXME: insert proper C++ library support
11242         ld_shlibs_CXX=no
11243         ;;
11244       *)
11245         # FIXME: insert proper C++ library support
11246         ld_shlibs_CXX=no
11247         ;;
11248     esac
11249     ;;
11250   solaris*)
11251     case $cc_basename in
11252       CC)
11253         # Sun C++ 4.2, 5.x and Centerline C++
11254         no_undefined_flag_CXX=' -zdefs'
11255         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11256         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11257         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11258 
11259         hardcode_libdir_flag_spec_CXX='-R$libdir'
11260         hardcode_shlibpath_var_CXX=no
11261         case $host_os in
11262           solaris2.0-5 | solaris2.0-5.*) ;;
11263           *)
11264             # The C++ compiler is used as linker so we must use $wl
11265             # flag to pass the commands to the underlying system
11266             # linker.
11267             # Supported since Solaris 2.6 (maybe 2.5.1?)
11268             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11269             ;;
11270         esac
11271         link_all_deplibs_CXX=yes
11272 
11273         # Commands to make compiler produce verbose output that lists
11274         # what "hidden" libraries, object files and flags are used when
11275         # linking a shared library.
11276         #
11277         # There doesn't appear to be a way to prevent this compiler from
11278         # explicitly linking system object files so we need to strip them
11279         # from the output so that they don't get included in the library
11280         # dependencies.
11281         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11282 
11283         # Archives containing C++ object files must be created using
11284         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11285         # necessary to make sure instantiated templates are included
11286         # in the archive.
11287         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11288         ;;
11289       gcx)
11290         # Green Hills C++ Compiler
11291         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11292 
11293         # The C++ compiler must be used to create the archive.
11294         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11295         ;;
11296       *)
11297         # GNU C++ compiler with Solaris linker
11298         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11299           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11300           if $CC --version | grep -v '^2\.7' > /dev/null; then
11301             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11302             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11303                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11304 
11305             # Commands to make compiler produce verbose output that lists
11306             # what "hidden" libraries, object files and flags are used when
11307             # linking a shared library.
11308             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11309           else
11310             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11311             # platform.
11312             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11313             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11314                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11315 
11316             # Commands to make compiler produce verbose output that lists
11317             # what "hidden" libraries, object files and flags are used when
11318             # linking a shared library.
11319             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11320           fi
11321 
11322           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11323         fi
11324         ;;
11325     esac
11326     ;;
11327   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11328     archive_cmds_need_lc_CXX=no
11329     ;;
11330   tandem*)
11331     case $cc_basename in
11332       NCC)
11333         # NonStop-UX NCC 3.20
11334         # FIXME: insert proper C++ library support
11335         ld_shlibs_CXX=no
11336         ;;
11337       *)
11338         # FIXME: insert proper C++ library support
11339         ld_shlibs_CXX=no
11340         ;;
11341     esac
11342     ;;
11343   vxworks*)
11344     # FIXME: insert proper C++ library support
11345     ld_shlibs_CXX=no
11346     ;;
11347   *)
11348     # FIXME: insert proper C++ library support
11349     ld_shlibs_CXX=no
11350     ;;
11351 esac
11352 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11353 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11354 test "$ld_shlibs_CXX" = no && can_build_shared=no
11355 
11356 GCC_CXX="$GXX"
11357 LD_CXX="$LD"
11358 
11359 ## CAVEAT EMPTOR:
11360 ## There is no encapsulation within the following macros, do not change
11361 ## the running order or otherwise move them around unless you know exactly
11362 ## what you are doing...
11363 
11364 cat > conftest.$ac_ext <<EOF
11365 class Foo
11366 {
11367 public:
11368   Foo (void) { a = 0; }
11369 private:
11370   int a;
11371 };
11372 EOF
11373 
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375   (eval $ac_compile) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; then
11379   # Parse the compiler output and extract the necessary
11380   # objects, libraries and library flags.
11381 
11382   # Sentinel used to keep track of whether or not we are before
11383   # the conftest object file.
11384   pre_test_object_deps_done=no
11385 
11386   # The `*' in the case matches for architectures that use `case' in
11387   # $output_verbose_cmd can trigger glob expansion during the loop
11388   # eval without this substitution.
11389   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11390 
11391   for p in `eval $output_verbose_link_cmd`; do
11392     case $p in
11393 
11394     -L* | -R* | -l*)
11395        # Some compilers place space between "-{L,R}" and the path.
11396        # Remove the space.
11397        if test $p = "-L" \
11398           || test $p = "-R"; then
11399          prev=$p
11400          continue
11401        else
11402          prev=
11403        fi
11404 
11405        if test "$pre_test_object_deps_done" = no; then
11406          case $p in
11407          -L* | -R*)
11408            # Internal compiler library paths should come after those
11409            # provided the user.  The postdeps already come after the
11410            # user supplied libs so there is no need to process them.
11411            if test -z "$compiler_lib_search_path_CXX"; then
11412              compiler_lib_search_path_CXX="${prev}${p}"
11413            else
11414              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11415            fi
11416            ;;
11417          # The "-l" case would never come before the object being
11418          # linked, so don't bother handling this case.
11419          esac
11420        else
11421          if test -z "$postdeps_CXX"; then
11422            postdeps_CXX="${prev}${p}"
11423          else
11424            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11425          fi
11426        fi
11427        ;;
11428 
11429     *.$objext)
11430        # This assumes that the test object file only shows up
11431        # once in the compiler output.
11432        if test "$p" = "conftest.$objext"; then
11433          pre_test_object_deps_done=yes
11434          continue
11435        fi
11436 
11437        if test "$pre_test_object_deps_done" = no; then
11438          if test -z "$predep_objects_CXX"; then
11439            predep_objects_CXX="$p"
11440          else
11441            predep_objects_CXX="$predep_objects_CXX $p"
11442          fi
11443        else
11444          if test -z "$postdep_objects_CXX"; then
11445            postdep_objects_CXX="$p"
11446          else
11447            postdep_objects_CXX="$postdep_objects_CXX $p"
11448          fi
11449        fi
11450        ;;
11451 
11452     *) ;; # Ignore the rest.
11453 
11454     esac
11455   done
11456 
11457   # Clean up.
11458   rm -f a.out a.exe
11459 else
11460   echo "libtool.m4: error: problem compiling CXX test program"
11461 fi
11462 
11463 $rm -f confest.$objext
11464 
11465 case " $postdeps_CXX " in
11466 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11467 esac
11468 
11469 lt_prog_compiler_wl_CXX=
11470 lt_prog_compiler_pic_CXX=
11471 lt_prog_compiler_static_CXX=
11472 
11473 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11475 
11476   # C++ specific cases for pic, static, wl, etc.
11477   if test "$GXX" = yes; then
11478     lt_prog_compiler_wl_CXX='-Wl,'
11479     lt_prog_compiler_static_CXX='-static'
11480 
11481     case $host_os in
11482     aix*)
11483       # All AIX code is PIC.
11484       if test "$host_cpu" = ia64; then
11485         # AIX 5 now supports IA64 processor
11486         lt_prog_compiler_static_CXX='-Bstatic'
11487       fi
11488       ;;
11489     amigaos*)
11490       # FIXME: we need at least 68020 code to build shared libraries, but
11491       # adding the `-m68020' flag to GCC prevents building anything better,
11492       # like `-m68040'.
11493       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11494       ;;
11495     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11496       # PIC is the default for these OSes.
11497       ;;
11498     mingw* | os2* | pw32*)
11499       # This hack is so that the source file can tell whether it is being
11500       # built for inclusion in a dll (and should export symbols for example).
11501       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11502       ;;
11503     darwin* | rhapsody*)
11504       # PIC is the default on this platform
11505       # Common symbols not allowed in MH_DYLIB files
11506       lt_prog_compiler_pic_CXX='-fno-common'
11507       ;;
11508     *djgpp*)
11509       # DJGPP does not support shared libraries at all
11510       lt_prog_compiler_pic_CXX=
11511       ;;
11512     sysv4*MP*)
11513       if test -d /usr/nec; then
11514         lt_prog_compiler_pic_CXX=-Kconform_pic
11515       fi
11516       ;;
11517     hpux*)
11518       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11519       # not for PA HP-UX.
11520       case "$host_cpu" in
11521       hppa*64*|ia64*)
11522         ;;
11523       *)
11524         lt_prog_compiler_pic_CXX='-fPIC'
11525         ;;
11526       esac
11527       ;;
11528     *)
11529       lt_prog_compiler_pic_CXX='-fPIC'
11530       ;;
11531     esac
11532   else
11533     case $host_os in
11534       aix4* | aix5*)
11535         # All AIX code is PIC.
11536         if test "$host_cpu" = ia64; then
11537           # AIX 5 now supports IA64 processor
11538           lt_prog_compiler_static_CXX='-Bstatic'
11539         else
11540           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11541         fi
11542         ;;
11543       chorus*)
11544         case $cc_basename in
11545         cxch68)
11546           # Green Hills C++ Compiler
11547           # _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"
11548           ;;
11549         esac
11550         ;;
11551       dgux*)
11552         case $cc_basename in
11553           ec++)
11554             lt_prog_compiler_pic_CXX='-KPIC'
11555             ;;
11556           ghcx)
11557             # Green Hills C++ Compiler
11558             lt_prog_compiler_pic_CXX='-pic'
11559             ;;
11560           *)
11561             ;;
11562         esac
11563         ;;
11564       freebsd* | kfreebsd*-gnu)
11565         # FreeBSD uses GNU C++
11566         ;;
11567       hpux9* | hpux10* | hpux11*)
11568         case $cc_basename in
11569           CC)
11570             lt_prog_compiler_wl_CXX='-Wl,'
11571             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11572             if test "$host_cpu" != ia64; then
11573               lt_prog_compiler_pic_CXX='+Z'
11574             fi
11575             ;;
11576           aCC)
11577             lt_prog_compiler_wl_CXX='-Wl,'
11578             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11579             case "$host_cpu" in
11580             hppa*64*|ia64*)
11581               # +Z the default
11582               ;;
11583             *)
11584               lt_prog_compiler_pic_CXX='+Z'
11585               ;;
11586             esac
11587             ;;
11588           *)
11589             ;;
11590         esac
11591         ;;
11592       irix5* | irix6* | nonstopux*)
11593         case $cc_basename in
11594           CC)
11595             lt_prog_compiler_wl_CXX='-Wl,'
11596             lt_prog_compiler_static_CXX='-non_shared'
11597             # CC pic flag -KPIC is the default.
11598             ;;
11599           *)
11600             ;;
11601         esac
11602         ;;
11603       linux*)
11604         case $cc_basename in
11605           KCC)
11606             # KAI C++ Compiler
11607             lt_prog_compiler_wl_CXX='--backend -Wl,'
11608             lt_prog_compiler_pic_CXX='-fPIC'
11609             ;;
11610           icpc)
11611             # Intel C++
11612             lt_prog_compiler_wl_CXX='-Wl,'
11613             lt_prog_compiler_pic_CXX='-KPIC'
11614             lt_prog_compiler_static_CXX='-static'
11615             ;;
11616           cxx)
11617             # Compaq C++
11618             # Make sure the PIC flag is empty.  It appears that all Alpha
11619             # Linux and Compaq Tru64 Unix objects are PIC.
11620             lt_prog_compiler_pic_CXX=
11621             lt_prog_compiler_static_CXX='-non_shared'
11622             ;;
11623           *)
11624             ;;
11625         esac
11626         ;;
11627       lynxos*)
11628         ;;
11629       m88k*)
11630         ;;
11631       mvs*)
11632         case $cc_basename in
11633           cxx)
11634             lt_prog_compiler_pic_CXX='-W c,exportall'
11635             ;;
11636           *)
11637             ;;
11638         esac
11639         ;;
11640       netbsd*)
11641         ;;
11642       osf3* | osf4* | osf5*)
11643         case $cc_basename in
11644           KCC)
11645             lt_prog_compiler_wl_CXX='--backend -Wl,'
11646             ;;
11647           RCC)
11648             # Rational C++ 2.4.1
11649             lt_prog_compiler_pic_CXX='-pic'
11650             ;;
11651           cxx)
11652             # Digital/Compaq C++
11653             lt_prog_compiler_wl_CXX='-Wl,'
11654             # Make sure the PIC flag is empty.  It appears that all Alpha
11655             # Linux and Compaq Tru64 Unix objects are PIC.
11656             lt_prog_compiler_pic_CXX=
11657             lt_prog_compiler_static_CXX='-non_shared'
11658             ;;
11659           *)
11660             ;;
11661         esac
11662         ;;
11663       psos*)
11664         ;;
11665       sco*)
11666         case $cc_basename in
11667           CC)
11668             lt_prog_compiler_pic_CXX='-fPIC'
11669             ;;
11670           *)
11671             ;;
11672         esac
11673         ;;
11674       solaris*)
11675         case $cc_basename in
11676           CC)
11677             # Sun C++ 4.2, 5.x and Centerline C++
11678             lt_prog_compiler_pic_CXX='-KPIC'
11679             lt_prog_compiler_static_CXX='-Bstatic'
11680             lt_prog_compiler_wl_CXX='-Qoption ld '
11681             ;;
11682           gcx)
11683             # Green Hills C++ Compiler
11684             lt_prog_compiler_pic_CXX='-PIC'
11685             ;;
11686           *)
11687             ;;
11688         esac
11689         ;;
11690       sunos4*)
11691         case $cc_basename in
11692           CC)
11693             # Sun C++ 4.x
11694             lt_prog_compiler_pic_CXX='-pic'
11695             lt_prog_compiler_static_CXX='-Bstatic'
11696             ;;
11697           lcc)
11698             # Lucid
11699             lt_prog_compiler_pic_CXX='-pic'
11700             ;;
11701           *)
11702             ;;
11703         esac
11704         ;;
11705       tandem*)
11706         case $cc_basename in
11707           NCC)
11708             # NonStop-UX NCC 3.20
11709             lt_prog_compiler_pic_CXX='-KPIC'
11710             ;;
11711           *)
11712             ;;
11713         esac
11714         ;;
11715       unixware*)
11716         ;;
11717       vxworks*)
11718         ;;
11719       *)
11720         lt_prog_compiler_can_build_shared_CXX=no
11721         ;;
11722     esac
11723   fi
11724 
11725 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11726 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
11727 
11728 #
11729 # Check to make sure the PIC flag actually works.
11730 #
11731 if test -n "$lt_prog_compiler_pic_CXX"; then
11732 
11733 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11734 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
11735 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738   lt_prog_compiler_pic_works_CXX=no
11739   ac_outfile=conftest.$ac_objext
11740    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11741    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11742    # Insert the option either (1) after the last *FLAGS variable, or
11743    # (2) before a word containing "conftest.", or (3) at the end.
11744    # Note that $ac_compile itself does not contain backslashes and begins
11745    # with a dollar sign (not a hyphen), so the echo should work correctly.
11746    # The option is referenced via a variable to avoid confusing sed.
11747    lt_compile=`echo "$ac_compile" | $SED \
11748    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11749    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11750    -e 's:$: $lt_compiler_flag:'`
11751    (eval echo "\"\$as_me:11751: $lt_compile\"" >&5)
11752    (eval "$lt_compile" 2>conftest.err)
11753    ac_status=$?
11754    cat conftest.err >&5
11755    echo "$as_me:11755: \$? = $ac_status" >&5
11756    if (exit $ac_status) && test -s "$ac_outfile"; then
11757      # The compiler can only warn and ignore the option if not recognized
11758      # So say no if there are warnings
11759      if test ! -s conftest.err; then
11760        lt_prog_compiler_pic_works_CXX=yes
11761      fi
11762    fi
11763    $rm conftest*
11764 
11765 fi
11766 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11767 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
11768 
11769 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11770     case $lt_prog_compiler_pic_CXX in
11771      "" | " "*) ;;
11772      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11773      esac
11774 else
11775     lt_prog_compiler_pic_CXX=
11776      lt_prog_compiler_can_build_shared_CXX=no
11777 fi
11778 
11779 fi
11780 case "$host_os" in
11781   # For platforms which do not support PIC, -DPIC is meaningless:
11782   *djgpp*)
11783     lt_prog_compiler_pic_CXX=
11784     ;;
11785   *)
11786     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11787     ;;
11788 esac
11789 
11790 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11791 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
11792 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11793   echo $ECHO_N "(cached) $ECHO_C" >&6
11794 else
11795   lt_cv_prog_compiler_c_o_CXX=no
11796    $rm -r conftest 2>/dev/null
11797    mkdir conftest
11798    cd conftest
11799    mkdir out
11800    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11801 
11802    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11803    # that will create temporary files in the current directory regardless of
11804    # the output directory.  Thus, making CWD read-only will cause this test
11805    # to fail, enabling locking or at least warning the user not to do parallel
11806    # builds.
11807    chmod -w .
11808 
11809    lt_compiler_flag="-o out/conftest2.$ac_objext"
11810    # Insert the option either (1) after the last *FLAGS variable, or
11811    # (2) before a word containing "conftest.", or (3) at the end.
11812    # Note that $ac_compile itself does not contain backslashes and begins
11813    # with a dollar sign (not a hyphen), so the echo should work correctly.
11814    lt_compile=`echo "$ac_compile" | $SED \
11815    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11816    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11817    -e 's:$: $lt_compiler_flag:'`
11818    (eval echo "\"\$as_me:11818: $lt_compile\"" >&5)
11819    (eval "$lt_compile" 2>out/conftest.err)
11820    ac_status=$?
11821    cat out/conftest.err >&5
11822    echo "$as_me:11822: \$? = $ac_status" >&5
11823    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11824    then
11825      # The compiler can only warn and ignore the option if not recognized
11826      # So say no if there are warnings
11827      if test ! -s out/conftest.err; then
11828        lt_cv_prog_compiler_c_o_CXX=yes
11829      fi
11830    fi
11831    chmod u+w .
11832    $rm conftest*
11833    # SGI C++ compiler will create directory out/ii_files/ for
11834    # template instantiation
11835    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11836    $rm out/* && rmdir out
11837    cd ..
11838    rmdir conftest
11839    $rm conftest*
11840 
11841 fi
11842 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11843 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
11844 
11845 
11846 hard_links="nottested"
11847 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11848   # do not overwrite the value of need_locks provided by the user
11849   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11850 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
11851   hard_links=yes
11852   $rm conftest*
11853   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11854   touch conftest.a
11855   ln conftest.a conftest.b 2>&5 || hard_links=no
11856   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11857   { echo "$as_me:$LINENO: result: $hard_links" >&5
11858 echo "${ECHO_T}$hard_links" >&6; }
11859   if test "$hard_links" = no; then
11860     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11861 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11862     need_locks=warn
11863   fi
11864 else
11865   need_locks=no
11866 fi
11867 
11868 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11869 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11870 
11871   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11872   case $host_os in
11873   aix4* | aix5*)
11874     # If we're using GNU nm, then we don't want the "-C" option.
11875     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11876     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11877       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'
11878     else
11879       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'
11880     fi
11881     ;;
11882   pw32*)
11883     export_symbols_cmds_CXX="$ltdll_cmds"
11884   ;;
11885   cygwin* | mingw*)
11886     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11887   ;;
11888   *)
11889     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11890   ;;
11891   esac
11892 
11893 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11894 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11895 test "$ld_shlibs_CXX" = no && can_build_shared=no
11896 
11897 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11898 if test "$GCC" = yes; then
11899   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11900 fi
11901 
11902 #
11903 # Do we need to explicitly link libc?
11904 #
11905 case "x$archive_cmds_need_lc_CXX" in
11906 x|xyes)
11907   # Assume -lc should be added
11908   archive_cmds_need_lc_CXX=yes
11909 
11910   if test "$enable_shared" = yes && test "$GCC" = yes; then
11911     case $archive_cmds_CXX in
11912     *'~'*)
11913       # FIXME: we may have to deal with multi-command sequences.
11914       ;;
11915     '$CC '*)
11916       # Test whether the compiler implicitly links with -lc since on some
11917       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11918       # to ld, don't add -lc before -lgcc.
11919       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11920 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11921       $rm conftest*
11922       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11923 
11924       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11925   (eval $ac_compile) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } 2>conftest.err; then
11929         soname=conftest
11930         lib=conftest
11931         libobjs=conftest.$ac_objext
11932         deplibs=
11933         wl=$lt_prog_compiler_wl_CXX
11934         compiler_flags=-v
11935         linker_flags=-v
11936         verstring=
11937         output_objdir=.
11938         libname=conftest
11939         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11940         allow_undefined_flag_CXX=
11941         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11942   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }
11946         then
11947           archive_cmds_need_lc_CXX=no
11948         else
11949           archive_cmds_need_lc_CXX=yes
11950         fi
11951         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11952       else
11953         cat conftest.err 1>&5
11954       fi
11955       $rm conftest*
11956       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11957 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
11958       ;;
11959     esac
11960   fi
11961   ;;
11962 esac
11963 
11964 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11965 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11966 library_names_spec=
11967 libname_spec='lib$name'
11968 soname_spec=
11969 shrext=".so"
11970 postinstall_cmds=
11971 postuninstall_cmds=
11972 finish_cmds=
11973 finish_eval=
11974 shlibpath_var=
11975 shlibpath_overrides_runpath=unknown
11976 version_type=none
11977 dynamic_linker="$host_os ld.so"
11978 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11979 if test "$GCC" = yes; then
11980   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11981   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11982     # if the path contains ";" then we assume it to be the separator
11983     # otherwise default to the standard path separator (i.e. ":") - it is
11984     # assumed that no part of a normal pathname contains ";" but that should
11985     # okay in the real world where ";" in dirpaths is itself problematic.
11986     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11987   else
11988     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11989   fi
11990 else
11991   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11992 fi
11993 need_lib_prefix=unknown
11994 hardcode_into_libs=no
11995 
11996 # when you set need_version to no, make sure it does not cause -set_version
11997 # flags to be left without arguments
11998 need_version=unknown
11999 
12000 case $host_os in
12001 aix3*)
12002   version_type=linux
12003   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12004   shlibpath_var=LIBPATH
12005 
12006   # AIX 3 has no versioning support, so we append a major version to the name.
12007   soname_spec='${libname}${release}${shared_ext}$major'
12008   ;;
12009 
12010 aix4* | aix5*)
12011   version_type=linux
12012   need_lib_prefix=no
12013   need_version=no
12014   hardcode_into_libs=yes
12015   if test "$host_cpu" = ia64; then
12016     # AIX 5 supports IA64
12017     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12018     shlibpath_var=LD_LIBRARY_PATH
12019   else
12020     # With GCC up to 2.95.x, collect2 would create an import file
12021     # for dependence libraries.  The import file would start with
12022     # the line `#! .'.  This would cause the generated library to
12023     # depend on `.', always an invalid library.  This was fixed in
12024     # development snapshots of GCC prior to 3.0.
12025     case $host_os in
12026       aix4 | aix4.[01] | aix4.[01].*)
12027       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12028            echo ' yes '
12029            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12030         :
12031       else
12032         can_build_shared=no
12033       fi
12034       ;;
12035     esac
12036     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12037     # soname into executable. Probably we can add versioning support to
12038     # collect2, so additional links can be useful in future.
12039     if test "$aix_use_runtimelinking" = yes; then
12040       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12041       # instead of lib<name>.a to let people know that these are not
12042       # typical AIX shared libraries.
12043       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12044     else
12045       # We preserve .a as extension for shared libraries through AIX4.2
12046       # and later when we are not doing run time linking.
12047       library_names_spec='${libname}${release}.a $libname.a'
12048       soname_spec='${libname}${release}${shared_ext}$major'
12049     fi
12050     shlibpath_var=LIBPATH
12051   fi
12052   ;;
12053 
12054 amigaos*)
12055   library_names_spec='$libname.ixlibrary $libname.a'
12056   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12057   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'
12058   ;;
12059 
12060 beos*)
12061   library_names_spec='${libname}${shared_ext}'
12062   dynamic_linker="$host_os ld.so"
12063   shlibpath_var=LIBRARY_PATH
12064   ;;
12065 
12066 bsdi4*)
12067   version_type=linux
12068   need_version=no
12069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070   soname_spec='${libname}${release}${shared_ext}$major'
12071   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12072   shlibpath_var=LD_LIBRARY_PATH
12073   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12074   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12075   # the default ld.so.conf also contains /usr/contrib/lib and
12076   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12077   # libtool to hard-code these into programs
12078   ;;
12079 
12080 cygwin* | mingw* | pw32*)
12081   version_type=windows
12082   shrext=".dll"
12083   need_version=no
12084   need_lib_prefix=no
12085 
12086   case $GCC,$host_os in
12087   yes,cygwin* | yes,mingw* | yes,pw32*)
12088     library_names_spec='$libname.dll.a'
12089     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12090     postinstall_cmds='base_file=`basename \${file}`~
12091       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12092       dldir=$destdir/`dirname \$dlpath`~
12093       test -d \$dldir || mkdir -p \$dldir~
12094       $install_prog $dir/$dlname \$dldir/$dlname'
12095     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12096       dlpath=$dir/\$dldll~
12097        $rm \$dlpath'
12098     shlibpath_overrides_runpath=yes
12099 
12100     case $host_os in
12101     cygwin*)
12102       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12103       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12104       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12105       ;;
12106     mingw*)
12107       # MinGW DLLs use traditional 'lib' prefix
12108       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12109       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12110       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12111         # It is most probably a Windows format PATH printed by
12112         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12113         # path with ; separators, and with drive letters. We can handle the
12114         # drive letters (cygwin fileutils understands them), so leave them,
12115         # especially as we might pass files found there to a mingw objdump,
12116         # which wouldn't understand a cygwinified path. Ahh.
12117         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12118       else
12119         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12120       fi
12121       ;;
12122     pw32*)
12123       # pw32 DLLs use 'pw' prefix rather than 'lib'
12124       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12125       ;;
12126     esac
12127     ;;
12128 
12129   *)
12130     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12131     ;;
12132   esac
12133   dynamic_linker='Win32 ld.exe'
12134   # FIXME: first we should search . and the directory the executable is in
12135   shlibpath_var=PATH
12136   ;;
12137 
12138 darwin* | rhapsody*)
12139   dynamic_linker="$host_os dyld"
12140   version_type=darwin
12141   need_lib_prefix=no
12142   need_version=no