Home | History | Annotate | Download | only in libogg
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.61.
      4 #
      5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      7 # This configure script is free software; the Free Software Foundation
      8 # gives unlimited permission to copy, distribute and modify it.
      9 ## --------------------- ##
     10 ## M4sh Initialization.  ##
     11 ## --------------------- ##
     12 
     13 # Be more Bourne compatible
     14 DUALCASE=1; export DUALCASE # for MKS sh
     15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     16   emulate sh
     17   NULLCMD=:
     18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     19   # is contrary to our usage.  Disable this feature.
     20   alias -g '${1+"$@"}'='"$@"'
     21   setopt NO_GLOB_SUBST
     22 else
     23   case `(set -o) 2>/dev/null` in
     24   *posix*) set -o posix ;;
     25 esac
     26 
     27 fi
     28 
     29 
     30 
     31 
     32 # PATH needs CR
     33 # Avoid depending upon Character Ranges.
     34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     37 as_cr_digits='0123456789'
     38 as_cr_alnum=$as_cr_Letters$as_cr_digits
     39 
     40 # The user is always right.
     41 if test "${PATH_SEPARATOR+set}" != set; then
     42   echo "#! /bin/sh" >conf$$.sh
     43   echo  "exit 0"   >>conf$$.sh
     44   chmod +x conf$$.sh
     45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     46     PATH_SEPARATOR=';'
     47   else
     48     PATH_SEPARATOR=:
     49   fi
     50   rm -f conf$$.sh
     51 fi
     52 
     53 # Support unset when possible.
     54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     55   as_unset=unset
     56 else
     57   as_unset=false
     58 fi
     59 
     60 
     61 # IFS
     62 # We need space, tab and new line, in precisely that order.  Quoting is
     63 # there to prevent editors from complaining about space-tab.
     64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     65 # splitting by setting IFS to empty value.)
     66 as_nl='
     67 '
     68 IFS=" ""	$as_nl"
     69 
     70 # Find who we are.  Look in the path if we contain no directory separator.
     71 case $0 in
     72   *[\\/]* ) as_myself=$0 ;;
     73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     74 for as_dir in $PATH
     75 do
     76   IFS=$as_save_IFS
     77   test -z "$as_dir" && as_dir=.
     78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     79 done
     80 IFS=$as_save_IFS
     81 
     82      ;;
     83 esac
     84 # We did not find ourselves, most probably we were run as `sh COMMAND'
     85 # in which case we are not to be found in the path.
     86 if test "x$as_myself" = x; then
     87   as_myself=$0
     88 fi
     89 if test ! -f "$as_myself"; then
     90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     91   { (exit 1); exit 1; }
     92 fi
     93 
     94 # Work around bugs in pre-3.0 UWIN ksh.
     95 for as_var in ENV MAIL MAILPATH
     96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     97 done
     98 PS1='$ '
     99 PS2='> '
    100 PS4='+ '
    101 
    102 # NLS nuisances.
    103 for as_var in \
    104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    106   LC_TELEPHONE LC_TIME
    107 do
    108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    109     eval $as_var=C; export $as_var
    110   else
    111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    112   fi
    113 done
    114 
    115 # Required to use basename.
    116 if expr a : '\(a\)' >/dev/null 2>&1 &&
    117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    118   as_expr=expr
    119 else
    120   as_expr=false
    121 fi
    122 
    123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    124   as_basename=basename
    125 else
    126   as_basename=false
    127 fi
    128 
    129 
    130 # Name of the executable.
    131 as_me=`$as_basename -- "$0" ||
    132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    133 	 X"$0" : 'X\(//\)$' \| \
    134 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    135 echo X/"$0" |
    136     sed '/^.*\/\([^/][^/]*\)\/*$/{
    137 	    s//\1/
    138 	    q
    139 	  }
    140 	  /^X\/\(\/\/\)$/{
    141 	    s//\1/
    142 	    q
    143 	  }
    144 	  /^X\/\(\/\).*/{
    145 	    s//\1/
    146 	    q
    147 	  }
    148 	  s/.*/./; q'`
    149 
    150 # CDPATH.
    151 $as_unset CDPATH
    152 
    153 
    154 if test "x$CONFIG_SHELL" = x; then
    155   if (eval ":") 2>/dev/null; then
    156   as_have_required=yes
    157 else
    158   as_have_required=no
    159 fi
    160 
    161   if test $as_have_required = yes && 	 (eval ":
    162 (as_func_return () {
    163   (exit \$1)
    164 }
    165 as_func_success () {
    166   as_func_return 0
    167 }
    168 as_func_failure () {
    169   as_func_return 1
    170 }
    171 as_func_ret_success () {
    172   return 0
    173 }
    174 as_func_ret_failure () {
    175   return 1
    176 }
    177 
    178 exitcode=0
    179 if as_func_success; then
    180   :
    181 else
    182   exitcode=1
    183   echo as_func_success failed.
    184 fi
    185 
    186 if as_func_failure; then
    187   exitcode=1
    188   echo as_func_failure succeeded.
    189 fi
    190 
    191 if as_func_ret_success; then
    192   :
    193 else
    194   exitcode=1
    195   echo as_func_ret_success failed.
    196 fi
    197 
    198 if as_func_ret_failure; then
    199   exitcode=1
    200   echo as_func_ret_failure succeeded.
    201 fi
    202 
    203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    204   :
    205 else
    206   exitcode=1
    207   echo positional parameters were not saved.
    208 fi
    209 
    210 test \$exitcode = 0) || { (exit 1); exit 1; }
    211 
    212 (
    213   as_lineno_1=\$LINENO
    214   as_lineno_2=\$LINENO
    215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    217 ") 2> /dev/null; then
    218   :
    219 else
    220   as_candidate_shells=
    221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    223 do
    224   IFS=$as_save_IFS
    225   test -z "$as_dir" && as_dir=.
    226   case $as_dir in
    227 	 /*)
    228 	   for as_base in sh bash ksh sh5; do
    229 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    230 	   done;;
    231        esac
    232 done
    233 IFS=$as_save_IFS
    234 
    235 
    236       for as_shell in $as_candidate_shells $SHELL; do
    237 	 # Try only shells that exist, to save several forks.
    238 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    239 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    241   emulate sh
    242   NULLCMD=:
    243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    244   # is contrary to our usage.  Disable this feature.
    245   alias -g '${1+"$@"}'='"$@"'
    246   setopt NO_GLOB_SUBST
    247 else
    248   case `(set -o) 2>/dev/null` in
    249   *posix*) set -o posix ;;
    250 esac
    251 
    252 fi
    253 
    254 
    255 :
    256 _ASEOF
    257 }; then
    258   CONFIG_SHELL=$as_shell
    259 	       as_have_required=yes
    260 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    262   emulate sh
    263   NULLCMD=:
    264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    265   # is contrary to our usage.  Disable this feature.
    266   alias -g '${1+"$@"}'='"$@"'
    267   setopt NO_GLOB_SUBST
    268 else
    269   case `(set -o) 2>/dev/null` in
    270   *posix*) set -o posix ;;
    271 esac
    272 
    273 fi
    274 
    275 
    276 :
    277 (as_func_return () {
    278   (exit $1)
    279 }
    280 as_func_success () {
    281   as_func_return 0
    282 }
    283 as_func_failure () {
    284   as_func_return 1
    285 }
    286 as_func_ret_success () {
    287   return 0
    288 }
    289 as_func_ret_failure () {
    290   return 1
    291 }
    292 
    293 exitcode=0
    294 if as_func_success; then
    295   :
    296 else
    297   exitcode=1
    298   echo as_func_success failed.
    299 fi
    300 
    301 if as_func_failure; then
    302   exitcode=1
    303   echo as_func_failure succeeded.
    304 fi
    305 
    306 if as_func_ret_success; then
    307   :
    308 else
    309   exitcode=1
    310   echo as_func_ret_success failed.
    311 fi
    312 
    313 if as_func_ret_failure; then
    314   exitcode=1
    315   echo as_func_ret_failure succeeded.
    316 fi
    317 
    318 if ( set x; as_func_ret_success y && test x = "$1" ); then
    319   :
    320 else
    321   exitcode=1
    322   echo positional parameters were not saved.
    323 fi
    324 
    325 test $exitcode = 0) || { (exit 1); exit 1; }
    326 
    327 (
    328   as_lineno_1=$LINENO
    329   as_lineno_2=$LINENO
    330   test "x$as_lineno_1" != "x$as_lineno_2" &&
    331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    332 
    333 _ASEOF
    334 }; then
    335   break
    336 fi
    337 
    338 fi
    339 
    340       done
    341 
    342       if test "x$CONFIG_SHELL" != x; then
    343   for as_var in BASH_ENV ENV
    344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    345         done
    346         export CONFIG_SHELL
    347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    348 fi
    349 
    350 
    351     if test $as_have_required = no; then
    352   echo This script requires a shell more modern than all the
    353       echo shells that I found on your system.  Please install a
    354       echo modern shell, or manually run the script under such a
    355       echo shell if you do have one.
    356       { (exit 1); exit 1; }
    357 fi
    358 
    359 
    360 fi
    361 
    362 fi
    363 
    364 
    365 
    366 (eval "as_func_return () {
    367   (exit \$1)
    368 }
    369 as_func_success () {
    370   as_func_return 0
    371 }
    372 as_func_failure () {
    373   as_func_return 1
    374 }
    375 as_func_ret_success () {
    376   return 0
    377 }
    378 as_func_ret_failure () {
    379   return 1
    380 }
    381 
    382 exitcode=0
    383 if as_func_success; then
    384   :
    385 else
    386   exitcode=1
    387   echo as_func_success failed.
    388 fi
    389 
    390 if as_func_failure; then
    391   exitcode=1
    392   echo as_func_failure succeeded.
    393 fi
    394 
    395 if as_func_ret_success; then
    396   :
    397 else
    398   exitcode=1
    399   echo as_func_ret_success failed.
    400 fi
    401 
    402 if as_func_ret_failure; then
    403   exitcode=1
    404   echo as_func_ret_failure succeeded.
    405 fi
    406 
    407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    408   :
    409 else
    410   exitcode=1
    411   echo positional parameters were not saved.
    412 fi
    413 
    414 test \$exitcode = 0") || {
    415   echo No shell found that supports shell functions.
    416   echo Please tell autoconf@gnu.org about your system,
    417   echo including any error possibly output before this
    418   echo message
    419 }
    420 
    421 
    422 
    423   as_lineno_1=$LINENO
    424   as_lineno_2=$LINENO
    425   test "x$as_lineno_1" != "x$as_lineno_2" &&
    426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    427 
    428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    429   # uniformly replaced by the line number.  The first 'sed' inserts a
    430   # line-number line after each line using $LINENO; the second 'sed'
    431   # does the real work.  The second script uses 'N' to pair each
    432   # line-number line with the line containing $LINENO, and appends
    433   # trailing '-' during substitution so that $LINENO is not a special
    434   # case at line end.
    435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    437   # E. McMahon (1931-1989) for sed's syntax.  :-)
    438   sed -n '
    439     p
    440     /[$]LINENO/=
    441   ' <$as_myself |
    442     sed '
    443       s/[$]LINENO.*/&-/
    444       t lineno
    445       b
    446       :lineno
    447       N
    448       :loop
    449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    450       t loop
    451       s/-\n.*//
    452     ' >$as_me.lineno &&
    453   chmod +x "$as_me.lineno" ||
    454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    455    { (exit 1); exit 1; }; }
    456 
    457   # Don't try to exec as it changes $[0], causing all sort of problems
    458   # (the dirname of $[0] is not the place where we might find the
    459   # original and so on.  Autoconf is especially sensitive to this).
    460   . "./$as_me.lineno"
    461   # Exit status is that of the last command.
    462   exit
    463 }
    464 
    465 
    466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    467   as_dirname=dirname
    468 else
    469   as_dirname=false
    470 fi
    471 
    472 ECHO_C= ECHO_N= ECHO_T=
    473 case `echo -n x` in
    474 -n*)
    475   case `echo 'x\c'` in
    476   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    477   *)   ECHO_C='\c';;
    478   esac;;
    479 *)
    480   ECHO_N='-n';;
    481 esac
    482 
    483 if expr a : '\(a\)' >/dev/null 2>&1 &&
    484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    485   as_expr=expr
    486 else
    487   as_expr=false
    488 fi
    489 
    490 rm -f conf$$ conf$$.exe conf$$.file
    491 if test -d conf$$.dir; then
    492   rm -f conf$$.dir/conf$$.file
    493 else
    494   rm -f conf$$.dir
    495   mkdir conf$$.dir
    496 fi
    497 echo >conf$$.file
    498 if ln -s conf$$.file conf$$ 2>/dev/null; then
    499   as_ln_s='ln -s'
    500   # ... but there are two gotchas:
    501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    503   # In both cases, we have to default to `cp -p'.
    504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    505     as_ln_s='cp -p'
    506 elif ln conf$$.file conf$$ 2>/dev/null; then
    507   as_ln_s=ln
    508 else
    509   as_ln_s='cp -p'
    510 fi
    511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    512 rmdir conf$$.dir 2>/dev/null
    513 
    514 if mkdir -p . 2>/dev/null; then
    515   as_mkdir_p=:
    516 else
    517   test -d ./-p && rmdir ./-p
    518   as_mkdir_p=false
    519 fi
    520 
    521 if test -x / >/dev/null 2>&1; then
    522   as_test_x='test -x'
    523 else
    524   if ls -dL / >/dev/null 2>&1; then
    525     as_ls_L_option=L
    526   else
    527     as_ls_L_option=
    528   fi
    529   as_test_x='
    530     eval sh -c '\''
    531       if test -d "$1"; then
    532         test -d "$1/.";
    533       else
    534 	case $1 in
    535         -*)set "./$1";;
    536 	esac;
    537 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    538 	???[sx]*):;;*)false;;esac;fi
    539     '\'' sh
    540   '
    541 fi
    542 as_executable_p=$as_test_x
    543 
    544 # Sed expression to map a string onto a valid CPP name.
    545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    546 
    547 # Sed expression to map a string onto a valid variable name.
    548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    549 
    550 
    551 
    552 
    553 # Check that we are running under the correct shell.
    554 SHELL=${CONFIG_SHELL-/bin/sh}
    555 
    556 case X$lt_ECHO in
    557 X*--fallback-echo)
    558   # Remove one level of quotation (which was required for Make).
    559   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
    560   ;;
    561 esac
    562 
    563 ECHO=${lt_ECHO-echo}
    564 if test "X$1" = X--no-reexec; then
    565   # Discard the --no-reexec flag, and continue.
    566   shift
    567 elif test "X$1" = X--fallback-echo; then
    568   # Avoid inline document here, it may be left over
    569   :
    570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
    571   # Yippee, $ECHO works!
    572   :
    573 else
    574   # Restart under the correct shell.
    575   exec $SHELL "$0" --no-reexec ${1+"$@"}
    576 fi
    577 
    578 if test "X$1" = X--fallback-echo; then
    579   # used as fallback echo
    580   shift
    581   cat <<_LT_EOF
    582 $*
    583 _LT_EOF
    584   exit 0
    585 fi
    586 
    587 # The HP-UX ksh and POSIX shell print the target directory to stdout
    588 # if CDPATH is set.
    589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    590 
    591 if test -z "$lt_ECHO"; then
    592   if test "X${echo_test_string+set}" != Xset; then
    593     # find a string as large as possible, as long as the shell can cope with it
    594     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    595       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    596       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
    597 	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
    598       then
    599         break
    600       fi
    601     done
    602   fi
    603 
    604   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    605      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    606      test "X$echo_testing_string" = "X$echo_test_string"; then
    607     :
    608   else
    609     # The Solaris, AIX, and Digital Unix default echo programs unquote
    610     # backslashes.  This makes it impossible to quote backslashes using
    611     #   echo "$something" | sed 's/\\/\\\\/g'
    612     #
    613     # So, first we look for a working echo in the user's PATH.
    614 
    615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    616     for dir in $PATH /usr/ucb; do
    617       IFS="$lt_save_ifs"
    618       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    619          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    620          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
    621          test "X$echo_testing_string" = "X$echo_test_string"; then
    622         ECHO="$dir/echo"
    623         break
    624       fi
    625     done
    626     IFS="$lt_save_ifs"
    627 
    628     if test "X$ECHO" = Xecho; then
    629       # We didn't find a better echo, so look for alternatives.
    630       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
    631          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
    632          test "X$echo_testing_string" = "X$echo_test_string"; then
    633         # This shell has a builtin print -r that does the trick.
    634         ECHO='print -r'
    635       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
    636 	   test "X$CONFIG_SHELL" != X/bin/ksh; then
    637         # If we have ksh, try running configure again with it.
    638         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    639         export ORIGINAL_CONFIG_SHELL
    640         CONFIG_SHELL=/bin/ksh
    641         export CONFIG_SHELL
    642         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
    643       else
    644         # Try using printf.
    645         ECHO='printf %s\n'
    646         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
    647 	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
    648 	   test "X$echo_testing_string" = "X$echo_test_string"; then
    649 	  # Cool, printf works
    650 	  :
    651         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    652 	     test "X$echo_testing_string" = 'X\t' &&
    653 	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    654 	     test "X$echo_testing_string" = "X$echo_test_string"; then
    655 	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
    656 	  export CONFIG_SHELL
    657 	  SHELL="$CONFIG_SHELL"
    658 	  export SHELL
    659 	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
    660         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    661 	     test "X$echo_testing_string" = 'X\t' &&
    662 	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    663 	     test "X$echo_testing_string" = "X$echo_test_string"; then
    664 	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
    665         else
    666 	  # maybe with a smaller string...
    667 	  prev=:
    668 
    669 	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
    670 	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
    671 	    then
    672 	      break
    673 	    fi
    674 	    prev="$cmd"
    675 	  done
    676 
    677 	  if test "$prev" != 'sed 50q "$0"'; then
    678 	    echo_test_string=`eval $prev`
    679 	    export echo_test_string
    680 	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
    681 	  else
    682 	    # Oops.  We lost completely, so just stick with echo.
    683 	    ECHO=echo
    684 	  fi
    685         fi
    686       fi
    687     fi
    688   fi
    689 fi
    690 
    691 # Copy echo and quote the copy suitably for passing to libtool from
    692 # the Makefile, instead of quoting the original, which is used later.
    693 lt_ECHO=$ECHO
    694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
    695    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
    696 fi
    697 
    698 
    699 
    700 
    701 exec 7<&0 </dev/null 6>&1
    702 
    703 # Name of the host.
    704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    705 # so uname gets run too.
    706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    707 
    708 #
    709 # Initializations.
    710 #
    711 ac_default_prefix=/usr/local
    712 ac_clean_files=
    713 ac_config_libobj_dir=.
    714 LIBOBJS=
    715 cross_compiling=no
    716 subdirs=
    717 MFLAGS=
    718 MAKEFLAGS=
    719 SHELL=${CONFIG_SHELL-/bin/sh}
    720 
    721 # Identity of this package.
    722 PACKAGE_NAME=
    723 PACKAGE_TARNAME=
    724 PACKAGE_VERSION=
    725 PACKAGE_STRING=
    726 PACKAGE_BUGREPORT=
    727 
    728 ac_unique_file="src/framing.c"
    729 # Factoring default headers for most tests.
    730 ac_includes_default="\
    731 #include <stdio.h>
    732 #ifdef HAVE_SYS_TYPES_H
    733 # include <sys/types.h>
    734 #endif
    735 #ifdef HAVE_SYS_STAT_H
    736 # include <sys/stat.h>
    737 #endif
    738 #ifdef STDC_HEADERS
    739 # include <stdlib.h>
    740 # include <stddef.h>
    741 #else
    742 # ifdef HAVE_STDLIB_H
    743 #  include <stdlib.h>
    744 # endif
    745 #endif
    746 #ifdef HAVE_STRING_H
    747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    748 #  include <memory.h>
    749 # endif
    750 # include <string.h>
    751 #endif
    752 #ifdef HAVE_STRINGS_H
    753 # include <strings.h>
    754 #endif
    755 #ifdef HAVE_INTTYPES_H
    756 # include <inttypes.h>
    757 #endif
    758 #ifdef HAVE_STDINT_H
    759 # include <stdint.h>
    760 #endif
    761 #ifdef HAVE_UNISTD_H
    762 # include <unistd.h>
    763 #endif"
    764 
    765 ac_subst_vars='SHELL
    766 PATH_SEPARATOR
    767 PACKAGE_NAME
    768 PACKAGE_TARNAME
    769 PACKAGE_VERSION
    770 PACKAGE_STRING
    771 PACKAGE_BUGREPORT
    772 exec_prefix
    773 prefix
    774 program_transform_name
    775 bindir
    776 sbindir
    777 libexecdir
    778 datarootdir
    779 datadir
    780 sysconfdir
    781 sharedstatedir
    782 localstatedir
    783 includedir
    784 oldincludedir
    785 docdir
    786 infodir
    787 htmldir
    788 dvidir
    789 pdfdir
    790 psdir
    791 libdir
    792 localedir
    793 mandir
    794 DEFS
    795 ECHO_C
    796 ECHO_N
    797 ECHO_T
    798 LIBS
    799 build_alias
    800 host_alias
    801 target_alias
    802 INSTALL_PROGRAM
    803 INSTALL_SCRIPT
    804 INSTALL_DATA
    805 CYGPATH_W
    806 PACKAGE
    807 VERSION
    808 ACLOCAL
    809 AUTOCONF
    810 AUTOMAKE
    811 AUTOHEADER
    812 MAKEINFO
    813 install_sh
    814 STRIP
    815 INSTALL_STRIP_PROGRAM
    816 mkdir_p
    817 AWK
    818 SET_MAKE
    819 am__leading_dot
    820 AMTAR
    821 am__tar
    822 am__untar
    823 MAINTAINER_MODE_TRUE
    824 MAINTAINER_MODE_FALSE
    825 MAINT
    826 LIB_CURRENT
    827 LIB_REVISION
    828 LIB_AGE
    829 CC
    830 CFLAGS
    831 LDFLAGS
    832 CPPFLAGS
    833 ac_ct_CC
    834 EXEEXT
    835 OBJEXT
    836 DEPDIR
    837 am__include
    838 am__quote
    839 AMDEP_TRUE
    840 AMDEP_FALSE
    841 AMDEPBACKSLASH
    842 CCDEPMODE
    843 am__fastdepCC_TRUE
    844 am__fastdepCC_FALSE
    845 LIBTOOL
    846 build
    847 build_cpu
    848 build_vendor
    849 build_os
    850 host
    851 host_cpu
    852 host_vendor
    853 host_os
    854 SED
    855 GREP
    856 EGREP
    857 FGREP
    858 LD
    859 DUMPBIN
    860 ac_ct_DUMPBIN
    861 NM
    862 LN_S
    863 OBJDUMP
    864 AR
    865 RANLIB
    866 lt_ECHO
    867 DSYMUTIL
    868 NMEDIT
    869 LIPO
    870 OTOOL
    871 OTOOL64
    872 CPP
    873 LIBOBJS
    874 LIBTOOL_DEPS
    875 SIZE16
    876 USIZE16
    877 SIZE32
    878 USIZE32
    879 SIZE64
    880 OPT
    881 DEBUG
    882 PROFILE
    883 LTLIBOBJS'
    884 ac_subst_files=''
    885       ac_precious_vars='build_alias
    886 host_alias
    887 target_alias
    888 CC
    889 CFLAGS
    890 LDFLAGS
    891 LIBS
    892 CPPFLAGS
    893 CPP'
    894 
    895 
    896 # Initialize some variables set by options.
    897 ac_init_help=
    898 ac_init_version=false
    899 # The variables have the same names as the options, with
    900 # dashes changed to underlines.
    901 cache_file=/dev/null
    902 exec_prefix=NONE
    903 no_create=
    904 no_recursion=
    905 prefix=NONE
    906 program_prefix=NONE
    907 program_suffix=NONE
    908 program_transform_name=s,x,x,
    909 silent=
    910 site=
    911 srcdir=
    912 verbose=
    913 x_includes=NONE
    914 x_libraries=NONE
    915 
    916 # Installation directory options.
    917 # These are left unexpanded so users can "make install exec_prefix=/foo"
    918 # and all the variables that are supposed to be based on exec_prefix
    919 # by default will actually change.
    920 # Use braces instead of parens because sh, perl, etc. also accept them.
    921 # (The list follows the same order as the GNU Coding Standards.)
    922 bindir='${exec_prefix}/bin'
    923 sbindir='${exec_prefix}/sbin'
    924 libexecdir='${exec_prefix}/libexec'
    925 datarootdir='${prefix}/share'
    926 datadir='${datarootdir}'
    927 sysconfdir='${prefix}/etc'
    928 sharedstatedir='${prefix}/com'
    929 localstatedir='${prefix}/var'
    930 includedir='${prefix}/include'
    931 oldincludedir='/usr/include'
    932 docdir='${datarootdir}/doc/${PACKAGE}'
    933 infodir='${datarootdir}/info'
    934 htmldir='${docdir}'
    935 dvidir='${docdir}'
    936 pdfdir='${docdir}'
    937 psdir='${docdir}'
    938 libdir='${exec_prefix}/lib'
    939 localedir='${datarootdir}/locale'
    940 mandir='${datarootdir}/man'
    941 
    942 ac_prev=
    943 ac_dashdash=
    944 for ac_option
    945 do
    946   # If the previous option needs an argument, assign it.
    947   if test -n "$ac_prev"; then
    948     eval $ac_prev=\$ac_option
    949     ac_prev=
    950     continue
    951   fi
    952 
    953   case $ac_option in
    954   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    955   *)	ac_optarg=yes ;;
    956   esac
    957 
    958   # Accept the important Cygnus configure options, so we can diagnose typos.
    959 
    960   case $ac_dashdash$ac_option in
    961   --)
    962     ac_dashdash=yes ;;
    963 
    964   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    965     ac_prev=bindir ;;
    966   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    967     bindir=$ac_optarg ;;
    968 
    969   -build | --build | --buil | --bui | --bu)
    970     ac_prev=build_alias ;;
    971   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    972     build_alias=$ac_optarg ;;
    973 
    974   -cache-file | --cache-file | --cache-fil | --cache-fi \
    975   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    976     ac_prev=cache_file ;;
    977   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    978   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    979     cache_file=$ac_optarg ;;
    980 
    981   --config-cache | -C)
    982     cache_file=config.cache ;;
    983 
    984   -datadir | --datadir | --datadi | --datad)
    985     ac_prev=datadir ;;
    986   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    987     datadir=$ac_optarg ;;
    988 
    989   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    990   | --dataroo | --dataro | --datar)
    991     ac_prev=datarootdir ;;
    992   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    993   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    994     datarootdir=$ac_optarg ;;
    995 
    996   -disable-* | --disable-*)
    997     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    998     # Reject names that are not valid shell variable names.
    999     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1000       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   1001    { (exit 1); exit 1; }; }
   1002     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   1003     eval enable_$ac_feature=no ;;
   1004 
   1005   -docdir | --docdir | --docdi | --doc | --do)
   1006     ac_prev=docdir ;;
   1007   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1008     docdir=$ac_optarg ;;
   1009 
   1010   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1011     ac_prev=dvidir ;;
   1012   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1013     dvidir=$ac_optarg ;;
   1014 
   1015   -enable-* | --enable-*)
   1016     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1017     # Reject names that are not valid shell variable names.
   1018     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1019       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   1020    { (exit 1); exit 1; }; }
   1021     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   1022     eval enable_$ac_feature=\$ac_optarg ;;
   1023 
   1024   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1025   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1026   | --exec | --exe | --ex)
   1027     ac_prev=exec_prefix ;;
   1028   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1029   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1030   | --exec=* | --exe=* | --ex=*)
   1031     exec_prefix=$ac_optarg ;;
   1032 
   1033   -gas | --gas | --ga | --g)
   1034     # Obsolete; use --with-gas.
   1035     with_gas=yes ;;
   1036 
   1037   -help | --help | --hel | --he | -h)
   1038     ac_init_help=long ;;
   1039   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1040     ac_init_help=recursive ;;
   1041   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1042     ac_init_help=short ;;
   1043 
   1044   -host | --host | --hos | --ho)
   1045     ac_prev=host_alias ;;
   1046   -host=* | --host=* | --hos=* | --ho=*)
   1047     host_alias=$ac_optarg ;;
   1048 
   1049   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1050     ac_prev=htmldir ;;
   1051   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1052   | --ht=*)
   1053     htmldir=$ac_optarg ;;
   1054 
   1055   -includedir | --includedir | --includedi | --included | --include \
   1056   | --includ | --inclu | --incl | --inc)
   1057     ac_prev=includedir ;;
   1058   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1059   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1060     includedir=$ac_optarg ;;
   1061 
   1062   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1063     ac_prev=infodir ;;
   1064   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1065     infodir=$ac_optarg ;;
   1066 
   1067   -libdir | --libdir | --libdi | --libd)
   1068     ac_prev=libdir ;;
   1069   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1070     libdir=$ac_optarg ;;
   1071 
   1072   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1073   | --libexe | --libex | --libe)
   1074     ac_prev=libexecdir ;;
   1075   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1076   | --libexe=* | --libex=* | --libe=*)
   1077     libexecdir=$ac_optarg ;;
   1078 
   1079   -localedir | --localedir | --localedi | --localed | --locale)
   1080     ac_prev=localedir ;;
   1081   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1082     localedir=$ac_optarg ;;
   1083 
   1084   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1085   | --localstate | --localstat | --localsta | --localst | --locals)
   1086     ac_prev=localstatedir ;;
   1087   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1088   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1089     localstatedir=$ac_optarg ;;
   1090 
   1091   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1092     ac_prev=mandir ;;
   1093   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1094     mandir=$ac_optarg ;;
   1095 
   1096   -nfp | --nfp | --nf)
   1097     # Obsolete; use --without-fp.
   1098     with_fp=no ;;
   1099 
   1100   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1101   | --no-cr | --no-c | -n)
   1102     no_create=yes ;;
   1103 
   1104   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1105   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1106     no_recursion=yes ;;
   1107 
   1108   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1109   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1110   | --oldin | --oldi | --old | --ol | --o)
   1111     ac_prev=oldincludedir ;;
   1112   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1113   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1114   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1115     oldincludedir=$ac_optarg ;;
   1116 
   1117   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1118     ac_prev=prefix ;;
   1119   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1120     prefix=$ac_optarg ;;
   1121 
   1122   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1123   | --program-pre | --program-pr | --program-p)
   1124     ac_prev=program_prefix ;;
   1125   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1126   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1127     program_prefix=$ac_optarg ;;
   1128 
   1129   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1130   | --program-suf | --program-su | --program-s)
   1131     ac_prev=program_suffix ;;
   1132   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1133   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1134     program_suffix=$ac_optarg ;;
   1135 
   1136   -program-transform-name | --program-transform-name \
   1137   | --program-transform-nam | --program-transform-na \
   1138   | --program-transform-n | --program-transform- \
   1139   | --program-transform | --program-transfor \
   1140   | --program-transfo | --program-transf \
   1141   | --program-trans | --program-tran \
   1142   | --progr-tra | --program-tr | --program-t)
   1143     ac_prev=program_transform_name ;;
   1144   -program-transform-name=* | --program-transform-name=* \
   1145   | --program-transform-nam=* | --program-transform-na=* \
   1146   | --program-transform-n=* | --program-transform-=* \
   1147   | --program-transform=* | --program-transfor=* \
   1148   | --program-transfo=* | --program-transf=* \
   1149   | --program-trans=* | --program-tran=* \
   1150   | --progr-tra=* | --program-tr=* | --program-t=*)
   1151     program_transform_name=$ac_optarg ;;
   1152 
   1153   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1154     ac_prev=pdfdir ;;
   1155   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1156     pdfdir=$ac_optarg ;;
   1157 
   1158   -psdir | --psdir | --psdi | --psd | --ps)
   1159     ac_prev=psdir ;;
   1160   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1161     psdir=$ac_optarg ;;
   1162 
   1163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1164   | -silent | --silent | --silen | --sile | --sil)
   1165     silent=yes ;;
   1166 
   1167   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1168     ac_prev=sbindir ;;
   1169   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1170   | --sbi=* | --sb=*)
   1171     sbindir=$ac_optarg ;;
   1172 
   1173   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1174   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1175   | --sharedst | --shareds | --shared | --share | --shar \
   1176   | --sha | --sh)
   1177     ac_prev=sharedstatedir ;;
   1178   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1179   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1180   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1181   | --sha=* | --sh=*)
   1182     sharedstatedir=$ac_optarg ;;
   1183 
   1184   -site | --site | --sit)
   1185     ac_prev=site ;;
   1186   -site=* | --site=* | --sit=*)
   1187     site=$ac_optarg ;;
   1188 
   1189   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1190     ac_prev=srcdir ;;
   1191   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1192     srcdir=$ac_optarg ;;
   1193 
   1194   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1195   | --syscon | --sysco | --sysc | --sys | --sy)
   1196     ac_prev=sysconfdir ;;
   1197   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1198   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1199     sysconfdir=$ac_optarg ;;
   1200 
   1201   -target | --target | --targe | --targ | --tar | --ta | --t)
   1202     ac_prev=target_alias ;;
   1203   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1204     target_alias=$ac_optarg ;;
   1205 
   1206   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1207     verbose=yes ;;
   1208 
   1209   -version | --version | --versio | --versi | --vers | -V)
   1210     ac_init_version=: ;;
   1211 
   1212   -with-* | --with-*)
   1213     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1214     # Reject names that are not valid shell variable names.
   1215     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1216       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1217    { (exit 1); exit 1; }; }
   1218     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1219     eval with_$ac_package=\$ac_optarg ;;
   1220 
   1221   -without-* | --without-*)
   1222     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1223     # Reject names that are not valid shell variable names.
   1224     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1225       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1226    { (exit 1); exit 1; }; }
   1227     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1228     eval with_$ac_package=no ;;
   1229 
   1230   --x)
   1231     # Obsolete; use --with-x.
   1232     with_x=yes ;;
   1233 
   1234   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1235   | --x-incl | --x-inc | --x-in | --x-i)
   1236     ac_prev=x_includes ;;
   1237   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1238   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1239     x_includes=$ac_optarg ;;
   1240 
   1241   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1242   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1243     ac_prev=x_libraries ;;
   1244   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1245   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1246     x_libraries=$ac_optarg ;;
   1247 
   1248   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1249 Try \`$0 --help' for more information." >&2
   1250    { (exit 1); exit 1; }; }
   1251     ;;
   1252 
   1253   *=*)
   1254     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1255     # Reject names that are not valid shell variable names.
   1256     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1257       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1258    { (exit 1); exit 1; }; }
   1259     eval $ac_envvar=\$ac_optarg
   1260     export $ac_envvar ;;
   1261 
   1262   *)
   1263     # FIXME: should be removed in autoconf 3.0.
   1264     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1265     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1266       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1267     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1268     ;;
   1269 
   1270   esac
   1271 done
   1272 
   1273 if test -n "$ac_prev"; then
   1274   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1275   { echo "$as_me: error: missing argument to $ac_option" >&2
   1276    { (exit 1); exit 1; }; }
   1277 fi
   1278 
   1279 # Be sure to have absolute directory names.
   1280 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1281 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1282 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1283 		libdir localedir mandir
   1284 do
   1285   eval ac_val=\$$ac_var
   1286   case $ac_val in
   1287     [\\/$]* | ?:[\\/]* )  continue;;
   1288     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1289   esac
   1290   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1291    { (exit 1); exit 1; }; }
   1292 done
   1293 
   1294 # There might be people who depend on the old broken behavior: `$host'
   1295 # used to hold the argument of --host etc.
   1296 # FIXME: To remove some day.
   1297 build=$build_alias
   1298 host=$host_alias
   1299 target=$target_alias
   1300 
   1301 # FIXME: To remove some day.
   1302 if test "x$host_alias" != x; then
   1303   if test "x$build_alias" = x; then
   1304     cross_compiling=maybe
   1305     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1306     If a cross compiler is detected then cross compile mode will be used." >&2
   1307   elif test "x$build_alias" != "x$host_alias"; then
   1308     cross_compiling=yes
   1309   fi
   1310 fi
   1311 
   1312 ac_tool_prefix=
   1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1314 
   1315 test "$silent" = yes && exec 6>/dev/null
   1316 
   1317 
   1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1319 ac_ls_di=`ls -di .` &&
   1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1321   { echo "$as_me: error: Working directory cannot be determined" >&2
   1322    { (exit 1); exit 1; }; }
   1323 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1324   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1325    { (exit 1); exit 1; }; }
   1326 
   1327 
   1328 # Find the source files, if location was not specified.
   1329 if test -z "$srcdir"; then
   1330   ac_srcdir_defaulted=yes
   1331   # Try the directory containing this script, then the parent directory.
   1332   ac_confdir=`$as_dirname -- "$0" ||
   1333 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1334 	 X"$0" : 'X\(//\)[^/]' \| \
   1335 	 X"$0" : 'X\(//\)$' \| \
   1336 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1337 echo X"$0" |
   1338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1339 	    s//\1/
   1340 	    q
   1341 	  }
   1342 	  /^X\(\/\/\)[^/].*/{
   1343 	    s//\1/
   1344 	    q
   1345 	  }
   1346 	  /^X\(\/\/\)$/{
   1347 	    s//\1/
   1348 	    q
   1349 	  }
   1350 	  /^X\(\/\).*/{
   1351 	    s//\1/
   1352 	    q
   1353 	  }
   1354 	  s/.*/./; q'`
   1355   srcdir=$ac_confdir
   1356   if test ! -r "$srcdir/$ac_unique_file"; then
   1357     srcdir=..
   1358   fi
   1359 else
   1360   ac_srcdir_defaulted=no
   1361 fi
   1362 if test ! -r "$srcdir/$ac_unique_file"; then
   1363   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1364   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1365    { (exit 1); exit 1; }; }
   1366 fi
   1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1368 ac_abs_confdir=`(
   1369 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1370    { (exit 1); exit 1; }; }
   1371 	pwd)`
   1372 # When building in place, set srcdir=.
   1373 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1374   srcdir=.
   1375 fi
   1376 # Remove unnecessary trailing slashes from srcdir.
   1377 # Double slashes in file names in object file debugging info
   1378 # mess up M-x gdb in Emacs.
   1379 case $srcdir in
   1380 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1381 esac
   1382 for ac_var in $ac_precious_vars; do
   1383   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1384   eval ac_env_${ac_var}_value=\$${ac_var}
   1385   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1386   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1387 done
   1388 
   1389 #
   1390 # Report the --help message.
   1391 #
   1392 if test "$ac_init_help" = "long"; then
   1393   # Omit some internal or obsolete options to make the list less imposing.
   1394   # This message is too long to be a string in the A/UX 3.1 sh.
   1395   cat <<_ACEOF
   1396 \`configure' configures this package to adapt to many kinds of systems.
   1397 
   1398 Usage: $0 [OPTION]... [VAR=VALUE]...
   1399 
   1400 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1401 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1402 
   1403 Defaults for the options are specified in brackets.
   1404 
   1405 Configuration:
   1406   -h, --help              display this help and exit
   1407       --help=short        display options specific to this package
   1408       --help=recursive    display the short help of all the included packages
   1409   -V, --version           display version information and exit
   1410   -q, --quiet, --silent   do not print \`checking...' messages
   1411       --cache-file=FILE   cache test results in FILE [disabled]
   1412   -C, --config-cache      alias for \`--cache-file=config.cache'
   1413   -n, --no-create         do not create output files
   1414       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1415 
   1416 Installation directories:
   1417   --prefix=PREFIX         install architecture-independent files in PREFIX
   1418 			  [$ac_default_prefix]
   1419   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1420 			  [PREFIX]
   1421 
   1422 By default, \`make install' will install all the files in
   1423 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1424 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1425 for instance \`--prefix=\$HOME'.
   1426 
   1427 For better control, use the options below.
   1428 
   1429 Fine tuning of the installation directories:
   1430   --bindir=DIR           user executables [EPREFIX/bin]
   1431   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1432   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1433   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1434   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1435   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1436   --libdir=DIR           object code libraries [EPREFIX/lib]
   1437   --includedir=DIR       C header files [PREFIX/include]
   1438   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1439   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1440   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1441   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1442   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1443   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1444   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
   1445   --htmldir=DIR          html documentation [DOCDIR]
   1446   --dvidir=DIR           dvi documentation [DOCDIR]
   1447   --pdfdir=DIR           pdf documentation [DOCDIR]
   1448   --psdir=DIR            ps documentation [DOCDIR]
   1449 _ACEOF
   1450 
   1451   cat <<\_ACEOF
   1452 
   1453 Program names:
   1454   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1455   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1456   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1457 
   1458 System types:
   1459   --build=BUILD     configure for building on BUILD [guessed]
   1460   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1461 _ACEOF
   1462 fi
   1463 
   1464 if test -n "$ac_init_help"; then
   1465 
   1466   cat <<\_ACEOF
   1467 
   1468 Optional Features:
   1469   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1470   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1471   --enable-maintainer-mode  enable make rules and dependencies not useful
   1472 			  (and sometimes confusing) to the casual installer
   1473   --disable-dependency-tracking  speeds up one-time build
   1474   --enable-dependency-tracking   do not reject slow dependency extractors
   1475   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1476   --enable-static[=PKGS]  build static libraries [default=yes]
   1477   --enable-fast-install[=PKGS]
   1478                           optimize for fast installation [default=yes]
   1479   --disable-libtool-lock  avoid locking (might break parallel builds)
   1480 
   1481 Optional Packages:
   1482   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1483   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1484   --with-pic              try to use only PIC/non-PIC objects [default=use
   1485                           both]
   1486   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1487 
   1488 Some influential environment variables:
   1489   CC          C compiler command
   1490   CFLAGS      C compiler flags
   1491   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1492               nonstandard directory <lib dir>
   1493   LIBS        libraries to pass to the linker, e.g. -l<library>
   1494   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1495               you have headers in a nonstandard directory <include dir>
   1496   CPP         C preprocessor
   1497 
   1498 Use these variables to override the choices made by `configure' or to help
   1499 it to find libraries and programs with nonstandard names/locations.
   1500 
   1501 _ACEOF
   1502 ac_status=$?
   1503 fi
   1504 
   1505 if test "$ac_init_help" = "recursive"; then
   1506   # If there are subdirs, report their specific --help.
   1507   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1508     test -d "$ac_dir" || continue
   1509     ac_builddir=.
   1510 
   1511 case "$ac_dir" in
   1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1513 *)
   1514   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1515   # A ".." for each directory in $ac_dir_suffix.
   1516   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1517   case $ac_top_builddir_sub in
   1518   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1519   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1520   esac ;;
   1521 esac
   1522 ac_abs_top_builddir=$ac_pwd
   1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1524 # for backward compatibility:
   1525 ac_top_builddir=$ac_top_build_prefix
   1526 
   1527 case $srcdir in
   1528   .)  # We are building in place.
   1529     ac_srcdir=.
   1530     ac_top_srcdir=$ac_top_builddir_sub
   1531     ac_abs_top_srcdir=$ac_pwd ;;
   1532   [\\/]* | ?:[\\/]* )  # Absolute name.
   1533     ac_srcdir=$srcdir$ac_dir_suffix;
   1534     ac_top_srcdir=$srcdir
   1535     ac_abs_top_srcdir=$srcdir ;;
   1536   *) # Relative name.
   1537     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1538     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1539     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1540 esac
   1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1542 
   1543     cd "$ac_dir" || { ac_status=$?; continue; }
   1544     # Check for guested configure.
   1545     if test -f "$ac_srcdir/configure.gnu"; then
   1546       echo &&
   1547       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1548     elif test -f "$ac_srcdir/configure"; then
   1549       echo &&
   1550       $SHELL "$ac_srcdir/configure" --help=recursive
   1551     else
   1552       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1553     fi || ac_status=$?
   1554     cd "$ac_pwd" || { ac_status=$?; break; }
   1555   done
   1556 fi
   1557 
   1558 test -n "$ac_init_help" && exit $ac_status
   1559 if $ac_init_version; then
   1560   cat <<\_ACEOF
   1561 configure
   1562 generated by GNU Autoconf 2.61
   1563 
   1564 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1565 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1566 This configure script is free software; the Free Software Foundation
   1567 gives unlimited permission to copy, distribute and modify it.
   1568 _ACEOF
   1569   exit
   1570 fi
   1571 cat >config.log <<_ACEOF
   1572 This file contains any messages produced by compilers while
   1573 running configure, to aid debugging if configure makes a mistake.
   1574 
   1575 It was created by $as_me, which was
   1576 generated by GNU Autoconf 2.61.  Invocation command line was
   1577 
   1578   $ $0 $@
   1579 
   1580 _ACEOF
   1581 exec 5>>config.log
   1582 {
   1583 cat <<_ASUNAME
   1584 ## --------- ##
   1585 ## Platform. ##
   1586 ## --------- ##
   1587 
   1588 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1589 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1590 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1591 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1592 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1593 
   1594 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1595 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1596 
   1597 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1598 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1599 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1600 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1601 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1602 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1603 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1604 
   1605 _ASUNAME
   1606 
   1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1608 for as_dir in $PATH
   1609 do
   1610   IFS=$as_save_IFS
   1611   test -z "$as_dir" && as_dir=.
   1612   echo "PATH: $as_dir"
   1613 done
   1614 IFS=$as_save_IFS
   1615 
   1616 } >&5
   1617 
   1618 cat >&5 <<_ACEOF
   1619 
   1620 
   1621 ## ----------- ##
   1622 ## Core tests. ##
   1623 ## ----------- ##
   1624 
   1625 _ACEOF
   1626 
   1627 
   1628 # Keep a trace of the command line.
   1629 # Strip out --no-create and --no-recursion so they do not pile up.
   1630 # Strip out --silent because we don't want to record it for future runs.
   1631 # Also quote any args containing shell meta-characters.
   1632 # Make two passes to allow for proper duplicate-argument suppression.
   1633 ac_configure_args=
   1634 ac_configure_args0=
   1635 ac_configure_args1=
   1636 ac_must_keep_next=false
   1637 for ac_pass in 1 2
   1638 do
   1639   for ac_arg
   1640   do
   1641     case $ac_arg in
   1642     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1643     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1644     | -silent | --silent | --silen | --sile | --sil)
   1645       continue ;;
   1646     *\'*)
   1647       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1648     esac
   1649     case $ac_pass in
   1650     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1651     2)
   1652       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1653       if test $ac_must_keep_next = true; then
   1654 	ac_must_keep_next=false # Got value, back to normal.
   1655       else
   1656 	case $ac_arg in
   1657 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1658 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1659 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1660 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1661 	    case "$ac_configure_args0 " in
   1662 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1663 	    esac
   1664 	    ;;
   1665 	  -* ) ac_must_keep_next=true ;;
   1666 	esac
   1667       fi
   1668       ac_configure_args="$ac_configure_args '$ac_arg'"
   1669       ;;
   1670     esac
   1671   done
   1672 done
   1673 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1674 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1675 
   1676 # When interrupted or exit'd, cleanup temporary files, and complete
   1677 # config.log.  We remove comments because anyway the quotes in there
   1678 # would cause problems or look ugly.
   1679 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1680 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1681 trap 'exit_status=$?
   1682   # Save into config.log some information that might help in debugging.
   1683   {
   1684     echo
   1685 
   1686     cat <<\_ASBOX
   1687 ## ---------------- ##
   1688 ## Cache variables. ##
   1689 ## ---------------- ##
   1690 _ASBOX
   1691     echo
   1692     # The following way of writing the cache mishandles newlines in values,
   1693 (
   1694   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1695     eval ac_val=\$$ac_var
   1696     case $ac_val in #(
   1697     *${as_nl}*)
   1698       case $ac_var in #(
   1699       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1700 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1701       esac
   1702       case $ac_var in #(
   1703       _ | IFS | as_nl) ;; #(
   1704       *) $as_unset $ac_var ;;
   1705       esac ;;
   1706     esac
   1707   done
   1708   (set) 2>&1 |
   1709     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1710     *${as_nl}ac_space=\ *)
   1711       sed -n \
   1712 	"s/'\''/'\''\\\\'\'''\''/g;
   1713 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1714       ;; #(
   1715     *)
   1716       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1717       ;;
   1718     esac |
   1719     sort
   1720 )
   1721     echo
   1722 
   1723     cat <<\_ASBOX
   1724 ## ----------------- ##
   1725 ## Output variables. ##
   1726 ## ----------------- ##
   1727 _ASBOX
   1728     echo
   1729     for ac_var in $ac_subst_vars
   1730     do
   1731       eval ac_val=\$$ac_var
   1732       case $ac_val in
   1733       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1734       esac
   1735       echo "$ac_var='\''$ac_val'\''"
   1736     done | sort
   1737     echo
   1738 
   1739     if test -n "$ac_subst_files"; then
   1740       cat <<\_ASBOX
   1741 ## ------------------- ##
   1742 ## File substitutions. ##
   1743 ## ------------------- ##
   1744 _ASBOX
   1745       echo
   1746       for ac_var in $ac_subst_files
   1747       do
   1748 	eval ac_val=\$$ac_var
   1749 	case $ac_val in
   1750 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1751 	esac
   1752 	echo "$ac_var='\''$ac_val'\''"
   1753       done | sort
   1754       echo
   1755     fi
   1756 
   1757     if test -s confdefs.h; then
   1758       cat <<\_ASBOX
   1759 ## ----------- ##
   1760 ## confdefs.h. ##
   1761 ## ----------- ##
   1762 _ASBOX
   1763       echo
   1764       cat confdefs.h
   1765       echo
   1766     fi
   1767     test "$ac_signal" != 0 &&
   1768       echo "$as_me: caught signal $ac_signal"
   1769     echo "$as_me: exit $exit_status"
   1770   } >&5
   1771   rm -f core *.core core.conftest.* &&
   1772     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1773     exit $exit_status
   1774 ' 0
   1775 for ac_signal in 1 2 13 15; do
   1776   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1777 done
   1778 ac_signal=0
   1779 
   1780 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1781 rm -f -r conftest* confdefs.h
   1782 
   1783 # Predefined preprocessor variables.
   1784 
   1785 cat >>confdefs.h <<_ACEOF
   1786 #define PACKAGE_NAME "$PACKAGE_NAME"
   1787 _ACEOF
   1788 
   1789 
   1790 cat >>confdefs.h <<_ACEOF
   1791 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1792 _ACEOF
   1793 
   1794 
   1795 cat >>confdefs.h <<_ACEOF
   1796 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1797 _ACEOF
   1798 
   1799 
   1800 cat >>confdefs.h <<_ACEOF
   1801 #define PACKAGE_STRING "$PACKAGE_STRING"
   1802 _ACEOF
   1803 
   1804 
   1805 cat >>confdefs.h <<_ACEOF
   1806 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1807 _ACEOF
   1808 
   1809 
   1810 # Let the site file select an alternate cache file if it wants to.
   1811 # Prefer explicitly selected file to automatically selected ones.
   1812 if test -n "$CONFIG_SITE"; then
   1813   set x "$CONFIG_SITE"
   1814 elif test "x$prefix" != xNONE; then
   1815   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1816 else
   1817   set x "$ac_default_prefix/share/config.site" \
   1818 	"$ac_default_prefix/etc/config.site"
   1819 fi
   1820 shift
   1821 for ac_site_file
   1822 do
   1823   if test -r "$ac_site_file"; then
   1824     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1825 echo "$as_me: loading site script $ac_site_file" >&6;}
   1826     sed 's/^/| /' "$ac_site_file" >&5
   1827     . "$ac_site_file"
   1828   fi
   1829 done
   1830 
   1831 if test -r "$cache_file"; then
   1832   # Some versions of bash will fail to source /dev/null (special
   1833   # files actually), so we avoid doing that.
   1834   if test -f "$cache_file"; then
   1835     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1836 echo "$as_me: loading cache $cache_file" >&6;}
   1837     case $cache_file in
   1838       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1839       *)                      . "./$cache_file";;
   1840     esac
   1841   fi
   1842 else
   1843   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   1844 echo "$as_me: creating cache $cache_file" >&6;}
   1845   >$cache_file
   1846 fi
   1847 
   1848 # Check that the precious variables saved in the cache have kept the same
   1849 # value.
   1850 ac_cache_corrupted=false
   1851 for ac_var in $ac_precious_vars; do
   1852   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   1853   eval ac_new_set=\$ac_env_${ac_var}_set
   1854   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   1855   eval ac_new_val=\$ac_env_${ac_var}_value
   1856   case $ac_old_set,$ac_new_set in
   1857     set,)
   1858       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   1859 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   1860       ac_cache_corrupted=: ;;
   1861     ,set)
   1862       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   1863 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   1864       ac_cache_corrupted=: ;;
   1865     ,);;
   1866     *)
   1867       if test "x$ac_old_val" != "x$ac_new_val"; then
   1868 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   1869 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   1870 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   1871 echo "$as_me:   former value:  $ac_old_val" >&2;}
   1872 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   1873 echo "$as_me:   current value: $ac_new_val" >&2;}
   1874 	ac_cache_corrupted=:
   1875       fi;;
   1876   esac
   1877   # Pass precious variables to config.status.
   1878   if test "$ac_new_set" = set; then
   1879     case $ac_new_val in
   1880     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   1881     *) ac_arg=$ac_var=$ac_new_val ;;
   1882     esac
   1883     case " $ac_configure_args " in
   1884       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   1885       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1886     esac
   1887   fi
   1888 done
   1889 if $ac_cache_corrupted; then
   1890   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   1891 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   1892   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   1893 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   1894    { (exit 1); exit 1; }; }
   1895 fi
   1896 
   1897 
   1898 
   1899 
   1900 
   1901 
   1902 
   1903 
   1904 
   1905 
   1906 
   1907 
   1908 
   1909 
   1910 
   1911 
   1912 
   1913 ac_ext=c
   1914 ac_cpp='$CPP $CPPFLAGS'
   1915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   1916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   1917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   1918 
   1919 
   1920 
   1921 am__api_version="1.9"
   1922 ac_aux_dir=
   1923 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   1924   if test -f "$ac_dir/install-sh"; then
   1925     ac_aux_dir=$ac_dir
   1926     ac_install_sh="$ac_aux_dir/install-sh -c"
   1927     break
   1928   elif test -f "$ac_dir/install.sh"; then
   1929     ac_aux_dir=$ac_dir
   1930     ac_install_sh="$ac_aux_dir/install.sh -c"
   1931     break
   1932   elif test -f "$ac_dir/shtool"; then
   1933     ac_aux_dir=$ac_dir
   1934     ac_install_sh="$ac_aux_dir/shtool install -c"
   1935     break
   1936   fi
   1937 done
   1938 if test -z "$ac_aux_dir"; then
   1939   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
   1940 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   1941    { (exit 1); exit 1; }; }
   1942 fi
   1943 
   1944 # These three variables are undocumented and unsupported,
   1945 # and are intended to be withdrawn in a future Autoconf release.
   1946 # They can cause serious problems if a builder's source tree is in a directory
   1947 # whose full name contains unusual characters.
   1948 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   1949 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   1950 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   1951 
   1952 
   1953 # Find a good install program.  We prefer a C program (faster),
   1954 # so one script is as good as another.  But avoid the broken or
   1955 # incompatible versions:
   1956 # SysV /etc/install, /usr/sbin/install
   1957 # SunOS /usr/etc/install
   1958 # IRIX /sbin/install
   1959 # AIX /bin/install
   1960 # AmigaOS /C/install, which installs bootblocks on floppy discs
   1961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   1962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   1963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   1964 # OS/2's system install, which has a completely different semantic
   1965 # ./install, which can be erroneously created by make from ./install.sh.
   1966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
   1967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
   1968 if test -z "$INSTALL"; then
   1969 if test "${ac_cv_path_install+set}" = set; then
   1970   echo $ECHO_N "(cached) $ECHO_C" >&6
   1971 else
   1972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1973 for as_dir in $PATH
   1974 do
   1975   IFS=$as_save_IFS
   1976   test -z "$as_dir" && as_dir=.
   1977   # Account for people who put trailing slashes in PATH elements.
   1978 case $as_dir/ in
   1979   ./ | .// | /cC/* | \
   1980   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   1981   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
   1982   /usr/ucb/* ) ;;
   1983   *)
   1984     # OSF1 and SCO ODT 3.0 have their own names for install.
   1985     # Don't use installbsd from OSF since it installs stuff as root
   1986     # by default.
   1987     for ac_prog in ginstall scoinst install; do
   1988       for ac_exec_ext in '' $ac_executable_extensions; do
   1989 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   1990 	  if test $ac_prog = install &&
   1991 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   1992 	    # AIX install.  It has an incompatible calling convention.
   1993 	    :
   1994 	  elif test $ac_prog = install &&
   1995 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   1996 	    # program-specific install script used by HP pwplus--don't use.
   1997 	    :
   1998 	  else
   1999 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   2000 	    break 3
   2001 	  fi
   2002 	fi
   2003       done
   2004     done
   2005     ;;
   2006 esac
   2007 done
   2008 IFS=$as_save_IFS
   2009 
   2010 
   2011 fi
   2012   if test "${ac_cv_path_install+set}" = set; then
   2013     INSTALL=$ac_cv_path_install
   2014   else
   2015     # As a last resort, use the slow shell script.  Don't cache a
   2016     # value for INSTALL within a source directory, because that will
   2017     # break other packages using the cache if that directory is
   2018     # removed, or if the value is a relative name.
   2019     INSTALL=$ac_install_sh
   2020   fi
   2021 fi
   2022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
   2023 echo "${ECHO_T}$INSTALL" >&6; }
   2024 
   2025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   2026 # It thinks the first close brace ends the variable substitution.
   2027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   2028 
   2029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   2030 
   2031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   2032 
   2033 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
   2034 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
   2035 # Just in case
   2036 sleep 1
   2037 echo timestamp > conftest.file
   2038 # Do `set' in a subshell so we don't clobber the current shell's
   2039 # arguments.  Must try -L first in case configure is actually a
   2040 # symlink; some systems play weird games with the mod time of symlinks
   2041 # (eg FreeBSD returns the mod time of the symlink's containing
   2042 # directory).
   2043 if (
   2044    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   2045    if test "$*" = "X"; then
   2046       # -L didn't work.
   2047       set X `ls -t $srcdir/configure conftest.file`
   2048    fi
   2049    rm -f conftest.file
   2050    if test "$*" != "X $srcdir/configure conftest.file" \
   2051       && test "$*" != "X conftest.file $srcdir/configure"; then
   2052 
   2053       # If neither matched, then we have a broken ls.  This can happen
   2054       # if, for instance, CONFIG_SHELL is bash and it inherits a
   2055       # broken ls alias from the environment.  This has actually
   2056       # happened.  Such a system could not be considered "sane".
   2057       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
   2058 alias in your environment" >&5
   2059 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
   2060 alias in your environment" >&2;}
   2061    { (exit 1); exit 1; }; }
   2062    fi
   2063 
   2064    test "$2" = conftest.file
   2065    )
   2066 then
   2067    # Ok.
   2068    :
   2069 else
   2070    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
   2071 Check your system clock" >&5
   2072 echo "$as_me: error: newly created file is older than distributed files!
   2073 Check your system clock" >&2;}
   2074    { (exit 1); exit 1; }; }
   2075 fi
   2076 { echo "$as_me:$LINENO: result: yes" >&5
   2077 echo "${ECHO_T}yes" >&6; }
   2078 test "$program_prefix" != NONE &&
   2079   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   2080 # Use a double $ so make ignores it.
   2081 test "$program_suffix" != NONE &&
   2082   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   2083 # Double any \ or $.  echo might interpret backslashes.
   2084 # By default was `s,x,x', remove it if useless.
   2085 cat <<\_ACEOF >conftest.sed
   2086 s/[\\$]/&&/g;s/;s,x,x,$//
   2087 _ACEOF
   2088 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
   2089 rm -f conftest.sed
   2090 
   2091 # expand $ac_aux_dir to an absolute path
   2092 am_aux_dir=`cd $ac_aux_dir && pwd`
   2093 
   2094 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
   2095 # Use eval to expand $SHELL
   2096 if eval "$MISSING --run true"; then
   2097   am_missing_run="$MISSING --run "
   2098 else
   2099   am_missing_run=
   2100   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
   2101 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
   2102 fi
   2103 
   2104 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
   2105   # We used to keeping the `.' as first argument, in order to
   2106   # allow $(mkdir_p) to be used without argument.  As in
   2107   #   $(mkdir_p) $(somedir)
   2108   # where $(somedir) is conditionally defined.  However this is wrong
   2109   # for two reasons:
   2110   #  1. if the package is installed by a user who cannot write `.'
   2111   #     make install will fail,
   2112   #  2. the above comment should most certainly read
   2113   #     $(mkdir_p) $(DESTDIR)$(somedir)
   2114   #     so it does not work when $(somedir) is undefined and
   2115   #     $(DESTDIR) is not.
   2116   #  To support the latter case, we have to write
   2117   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
   2118   #  so the `.' trick is pointless.
   2119   mkdir_p='mkdir -p --'
   2120 else
   2121   # On NextStep and OpenStep, the `mkdir' command does not
   2122   # recognize any option.  It will interpret all options as
   2123   # directories to create, and then abort because `.' already
   2124   # exists.
   2125   for d in ./-p ./--version;
   2126   do
   2127     test -d $d && rmdir $d
   2128   done
   2129   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
   2130   if test -f "$ac_aux_dir/mkinstalldirs"; then
   2131     mkdir_p='$(mkinstalldirs)'
   2132   else
   2133     mkdir_p='$(install_sh) -d'
   2134   fi
   2135 fi
   2136 
   2137 for ac_prog in gawk mawk nawk awk
   2138 do
   2139   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2140 set dummy $ac_prog; ac_word=$2
   2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2143 if test "${ac_cv_prog_AWK+set}" = set; then
   2144   echo $ECHO_N "(cached) $ECHO_C" >&6
   2145 else
   2146   if test -n "$AWK"; then
   2147   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   2148 else
   2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2150 for as_dir in $PATH
   2151 do
   2152   IFS=$as_save_IFS
   2153   test -z "$as_dir" && as_dir=.
   2154   for ac_exec_ext in '' $ac_executable_extensions; do
   2155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2156     ac_cv_prog_AWK="$ac_prog"
   2157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2158     break 2
   2159   fi
   2160 done
   2161 done
   2162 IFS=$as_save_IFS
   2163 
   2164 fi
   2165 fi
   2166 AWK=$ac_cv_prog_AWK
   2167 if test -n "$AWK"; then
   2168   { echo "$as_me:$LINENO: result: $AWK" >&5
   2169 echo "${ECHO_T}$AWK" >&6; }
   2170 else
   2171   { echo "$as_me:$LINENO: result: no" >&5
   2172 echo "${ECHO_T}no" >&6; }
   2173 fi
   2174 
   2175 
   2176   test -n "$AWK" && break
   2177 done
   2178 
   2179 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   2180 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
   2181 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   2182 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
   2183   echo $ECHO_N "(cached) $ECHO_C" >&6
   2184 else
   2185   cat >conftest.make <<\_ACEOF
   2186 SHELL = /bin/sh
   2187 all:
   2188 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   2189 _ACEOF
   2190 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   2191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   2192   *@@@%%%=?*=@@@%%%*)
   2193     eval ac_cv_prog_make_${ac_make}_set=yes;;
   2194   *)
   2195     eval ac_cv_prog_make_${ac_make}_set=no;;
   2196 esac
   2197 rm -f conftest.make
   2198 fi
   2199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   2200   { echo "$as_me:$LINENO: result: yes" >&5
   2201 echo "${ECHO_T}yes" >&6; }
   2202   SET_MAKE=
   2203 else
   2204   { echo "$as_me:$LINENO: result: no" >&5
   2205 echo "${ECHO_T}no" >&6; }
   2206   SET_MAKE="MAKE=${MAKE-make}"
   2207 fi
   2208 
   2209 rm -rf .tst 2>/dev/null
   2210 mkdir .tst 2>/dev/null
   2211 if test -d .tst; then
   2212   am__leading_dot=.
   2213 else
   2214   am__leading_dot=_
   2215 fi
   2216 rmdir .tst 2>/dev/null
   2217 
   2218 # test to see if srcdir already configured
   2219 if test "`cd $srcdir && pwd`" != "`pwd`" &&
   2220    test -f $srcdir/config.status; then
   2221   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
   2222 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
   2223    { (exit 1); exit 1; }; }
   2224 fi
   2225 
   2226 # test whether we have cygpath
   2227 if test -z "$CYGPATH_W"; then
   2228   if (cygpath --version) >/dev/null 2>/dev/null; then
   2229     CYGPATH_W='cygpath -w'
   2230   else
   2231     CYGPATH_W=echo
   2232   fi
   2233 fi
   2234 
   2235 
   2236 # Define the identity of the package.
   2237  PACKAGE=libogg
   2238  VERSION=1.2.0
   2239 
   2240 
   2241 cat >>confdefs.h <<_ACEOF
   2242 #define PACKAGE "$PACKAGE"
   2243 _ACEOF
   2244 
   2245 
   2246 cat >>confdefs.h <<_ACEOF
   2247 #define VERSION "$VERSION"
   2248 _ACEOF
   2249 
   2250 # Some tools Automake needs.
   2251 
   2252 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   2253 
   2254 
   2255 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   2256 
   2257 
   2258 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   2259 
   2260 
   2261 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   2262 
   2263 
   2264 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   2265 
   2266 install_sh=${install_sh-"$am_aux_dir/install-sh"}
   2267 
   2268 # Installed binaries are usually stripped using `strip' when the user
   2269 # run `make install-strip'.  However `strip' might not be the right
   2270 # tool to use in cross-compilation environments, therefore Automake
   2271 # will honor the `STRIP' environment variable to overrule this program.
   2272 if test "$cross_compiling" != no; then
   2273   if test -n "$ac_tool_prefix"; then
   2274   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   2275 set dummy ${ac_tool_prefix}strip; ac_word=$2
   2276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2278 if test "${ac_cv_prog_STRIP+set}" = set; then
   2279   echo $ECHO_N "(cached) $ECHO_C" >&6
   2280 else
   2281   if test -n "$STRIP"; then
   2282   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   2283 else
   2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2285 for as_dir in $PATH
   2286 do
   2287   IFS=$as_save_IFS
   2288   test -z "$as_dir" && as_dir=.
   2289   for ac_exec_ext in '' $ac_executable_extensions; do
   2290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2291     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   2292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2293     break 2
   2294   fi
   2295 done
   2296 done
   2297 IFS=$as_save_IFS
   2298 
   2299 fi
   2300 fi
   2301 STRIP=$ac_cv_prog_STRIP
   2302 if test -n "$STRIP"; then
   2303   { echo "$as_me:$LINENO: result: $STRIP" >&5
   2304 echo "${ECHO_T}$STRIP" >&6; }
   2305 else
   2306   { echo "$as_me:$LINENO: result: no" >&5
   2307 echo "${ECHO_T}no" >&6; }
   2308 fi
   2309 
   2310 
   2311 fi
   2312 if test -z "$ac_cv_prog_STRIP"; then
   2313   ac_ct_STRIP=$STRIP
   2314   # Extract the first word of "strip", so it can be a program name with args.
   2315 set dummy strip; ac_word=$2
   2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
   2319   echo $ECHO_N "(cached) $ECHO_C" >&6
   2320 else
   2321   if test -n "$ac_ct_STRIP"; then
   2322   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   2323 else
   2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2325 for as_dir in $PATH
   2326 do
   2327   IFS=$as_save_IFS
   2328   test -z "$as_dir" && as_dir=.
   2329   for ac_exec_ext in '' $ac_executable_extensions; do
   2330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2331     ac_cv_prog_ac_ct_STRIP="strip"
   2332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2333     break 2
   2334   fi
   2335 done
   2336 done
   2337 IFS=$as_save_IFS
   2338 
   2339 fi
   2340 fi
   2341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   2342 if test -n "$ac_ct_STRIP"; then
   2343   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
   2344 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
   2345 else
   2346   { echo "$as_me:$LINENO: result: no" >&5
   2347 echo "${ECHO_T}no" >&6; }
   2348 fi
   2349 
   2350   if test "x$ac_ct_STRIP" = x; then
   2351     STRIP=":"
   2352   else
   2353     case $cross_compiling:$ac_tool_warned in
   2354 yes:)
   2355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2356 whose name does not start with the host triplet.  If you think this
   2357 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2359 whose name does not start with the host triplet.  If you think this
   2360 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2361 ac_tool_warned=yes ;;
   2362 esac
   2363     STRIP=$ac_ct_STRIP
   2364   fi
   2365 else
   2366   STRIP="$ac_cv_prog_STRIP"
   2367 fi
   2368 
   2369 fi
   2370 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
   2371 
   2372 # We need awk for the "check" target.  The system "awk" is bad on
   2373 # some platforms.
   2374 # Always define AMTAR for backward compatibility.
   2375 
   2376 AMTAR=${AMTAR-"${am_missing_run}tar"}
   2377 
   2378 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
   2379 
   2380 
   2381 
   2382 
   2383 
   2384 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2385 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
   2386     # Check whether --enable-maintainer-mode was given.
   2387 if test "${enable_maintainer_mode+set}" = set; then
   2388   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2389 else
   2390   USE_MAINTAINER_MODE=no
   2391 fi
   2392 
   2393   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
   2394 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
   2395 
   2396 
   2397 if test $USE_MAINTAINER_MODE = yes; then
   2398   MAINTAINER_MODE_TRUE=
   2399   MAINTAINER_MODE_FALSE='#'
   2400 else
   2401   MAINTAINER_MODE_TRUE='#'
   2402   MAINTAINER_MODE_FALSE=
   2403 fi
   2404 
   2405   MAINT=$MAINTAINER_MODE_TRUE
   2406 
   2407 
   2408 
   2409 
   2410 LIB_CURRENT=7
   2411 LIB_REVISION=0
   2412 LIB_AGE=7
   2413 
   2414 
   2415 
   2416 
   2417 ac_ext=c
   2418 ac_cpp='$CPP $CPPFLAGS'
   2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2422 if test -n "$ac_tool_prefix"; then
   2423   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2427 if test "${ac_cv_prog_CC+set}" = set; then
   2428   echo $ECHO_N "(cached) $ECHO_C" >&6
   2429 else
   2430   if test -n "$CC"; then
   2431   ac_cv_prog_CC="$CC" # Let the user override the test.
   2432 else
   2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2434 for as_dir in $PATH
   2435 do
   2436   IFS=$as_save_IFS
   2437   test -z "$as_dir" && as_dir=.
   2438   for ac_exec_ext in '' $ac_executable_extensions; do
   2439   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2440     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2441     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2442     break 2
   2443   fi
   2444 done
   2445 done
   2446 IFS=$as_save_IFS
   2447 
   2448 fi
   2449 fi
   2450 CC=$ac_cv_prog_CC
   2451 if test -n "$CC"; then
   2452   { echo "$as_me:$LINENO: result: $CC" >&5
   2453 echo "${ECHO_T}$CC" >&6; }
   2454 else
   2455   { echo "$as_me:$LINENO: result: no" >&5
   2456 echo "${ECHO_T}no" >&6; }
   2457 fi
   2458 
   2459 
   2460 fi
   2461 if test -z "$ac_cv_prog_CC"; then
   2462   ac_ct_CC=$CC
   2463   # Extract the first word of "gcc", so it can be a program name with args.
   2464 set dummy gcc; ac_word=$2
   2465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2467 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2468   echo $ECHO_N "(cached) $ECHO_C" >&6
   2469 else
   2470   if test -n "$ac_ct_CC"; then
   2471   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2472 else
   2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2474 for as_dir in $PATH
   2475 do
   2476   IFS=$as_save_IFS
   2477   test -z "$as_dir" && as_dir=.
   2478   for ac_exec_ext in '' $ac_executable_extensions; do
   2479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2480     ac_cv_prog_ac_ct_CC="gcc"
   2481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2482     break 2
   2483   fi
   2484 done
   2485 done
   2486 IFS=$as_save_IFS
   2487 
   2488 fi
   2489 fi
   2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2491 if test -n "$ac_ct_CC"; then
   2492   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2493 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2494 else
   2495   { echo "$as_me:$LINENO: result: no" >&5
   2496 echo "${ECHO_T}no" >&6; }
   2497 fi
   2498 
   2499   if test "x$ac_ct_CC" = x; then
   2500     CC=""
   2501   else
   2502     case $cross_compiling:$ac_tool_warned in
   2503 yes:)
   2504 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2505 whose name does not start with the host triplet.  If you think this
   2506 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2507 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2508 whose name does not start with the host triplet.  If you think this
   2509 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2510 ac_tool_warned=yes ;;
   2511 esac
   2512     CC=$ac_ct_CC
   2513   fi
   2514 else
   2515   CC="$ac_cv_prog_CC"
   2516 fi
   2517 
   2518 if test -z "$CC"; then
   2519           if test -n "$ac_tool_prefix"; then
   2520     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2521 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2524 if test "${ac_cv_prog_CC+set}" = set; then
   2525   echo $ECHO_N "(cached) $ECHO_C" >&6
   2526 else
   2527   if test -n "$CC"; then
   2528   ac_cv_prog_CC="$CC" # Let the user override the test.
   2529 else
   2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2531 for as_dir in $PATH
   2532 do
   2533   IFS=$as_save_IFS
   2534   test -z "$as_dir" && as_dir=.
   2535   for ac_exec_ext in '' $ac_executable_extensions; do
   2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2537     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2539     break 2
   2540   fi
   2541 done
   2542 done
   2543 IFS=$as_save_IFS
   2544 
   2545 fi
   2546 fi
   2547 CC=$ac_cv_prog_CC
   2548 if test -n "$CC"; then
   2549   { echo "$as_me:$LINENO: result: $CC" >&5
   2550 echo "${ECHO_T}$CC" >&6; }
   2551 else
   2552   { echo "$as_me:$LINENO: result: no" >&5
   2553 echo "${ECHO_T}no" >&6; }
   2554 fi
   2555 
   2556 
   2557   fi
   2558 fi
   2559 if test -z "$CC"; then
   2560   # Extract the first word of "cc", so it can be a program name with args.
   2561 set dummy cc; ac_word=$2
   2562 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2564 if test "${ac_cv_prog_CC+set}" = set; then
   2565   echo $ECHO_N "(cached) $ECHO_C" >&6
   2566 else
   2567   if test -n "$CC"; then
   2568   ac_cv_prog_CC="$CC" # Let the user override the test.
   2569 else
   2570   ac_prog_rejected=no
   2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2572 for as_dir in $PATH
   2573 do
   2574   IFS=$as_save_IFS
   2575   test -z "$as_dir" && as_dir=.
   2576   for ac_exec_ext in '' $ac_executable_extensions; do
   2577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2578     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2579        ac_prog_rejected=yes
   2580        continue
   2581      fi
   2582     ac_cv_prog_CC="cc"
   2583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2584     break 2
   2585   fi
   2586 done
   2587 done
   2588 IFS=$as_save_IFS
   2589 
   2590 if test $ac_prog_rejected = yes; then
   2591   # We found a bogon in the path, so make sure we never use it.
   2592   set dummy $ac_cv_prog_CC
   2593   shift
   2594   if test $# != 0; then
   2595     # We chose a different compiler from the bogus one.
   2596     # However, it has the same basename, so the bogon will be chosen
   2597     # first if we set CC to just the basename; use the full file name.
   2598     shift
   2599     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2600   fi
   2601 fi
   2602 fi
   2603 fi
   2604 CC=$ac_cv_prog_CC
   2605 if test -n "$CC"; then
   2606   { echo "$as_me:$LINENO: result: $CC" >&5
   2607 echo "${ECHO_T}$CC" >&6; }
   2608 else
   2609   { echo "$as_me:$LINENO: result: no" >&5
   2610 echo "${ECHO_T}no" >&6; }
   2611 fi
   2612 
   2613 
   2614 fi
   2615 if test -z "$CC"; then
   2616   if test -n "$ac_tool_prefix"; then
   2617   for ac_prog in cl.exe
   2618   do
   2619     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2623 if test "${ac_cv_prog_CC+set}" = set; then
   2624   echo $ECHO_N "(cached) $ECHO_C" >&6
   2625 else
   2626   if test -n "$CC"; then
   2627   ac_cv_prog_CC="$CC" # Let the user override the test.
   2628 else
   2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2630 for as_dir in $PATH
   2631 do
   2632   IFS=$as_save_IFS
   2633   test -z "$as_dir" && as_dir=.
   2634   for ac_exec_ext in '' $ac_executable_extensions; do
   2635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2636     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2638     break 2
   2639   fi
   2640 done
   2641 done
   2642 IFS=$as_save_IFS
   2643 
   2644 fi
   2645 fi
   2646 CC=$ac_cv_prog_CC
   2647 if test -n "$CC"; then
   2648   { echo "$as_me:$LINENO: result: $CC" >&5
   2649 echo "${ECHO_T}$CC" >&6; }
   2650 else
   2651   { echo "$as_me:$LINENO: result: no" >&5
   2652 echo "${ECHO_T}no" >&6; }
   2653 fi
   2654 
   2655 
   2656     test -n "$CC" && break
   2657   done
   2658 fi
   2659 if test -z "$CC"; then
   2660   ac_ct_CC=$CC
   2661   for ac_prog in cl.exe
   2662 do
   2663   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2664 set dummy $ac_prog; ac_word=$2
   2665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2667 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2668   echo $ECHO_N "(cached) $ECHO_C" >&6
   2669 else
   2670   if test -n "$ac_ct_CC"; then
   2671   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2672 else
   2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2674 for as_dir in $PATH
   2675 do
   2676   IFS=$as_save_IFS
   2677   test -z "$as_dir" && as_dir=.
   2678   for ac_exec_ext in '' $ac_executable_extensions; do
   2679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2680     ac_cv_prog_ac_ct_CC="$ac_prog"
   2681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2682     break 2
   2683   fi
   2684 done
   2685 done
   2686 IFS=$as_save_IFS
   2687 
   2688 fi
   2689 fi
   2690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2691 if test -n "$ac_ct_CC"; then
   2692   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2693 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2694 else
   2695   { echo "$as_me:$LINENO: result: no" >&5
   2696 echo "${ECHO_T}no" >&6; }
   2697 fi
   2698 
   2699 
   2700   test -n "$ac_ct_CC" && break
   2701 done
   2702 
   2703   if test "x$ac_ct_CC" = x; then
   2704     CC=""
   2705   else
   2706     case $cross_compiling:$ac_tool_warned in
   2707 yes:)
   2708 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2709 whose name does not start with the host triplet.  If you think this
   2710 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2711 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2712 whose name does not start with the host triplet.  If you think this
   2713 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2714 ac_tool_warned=yes ;;
   2715 esac
   2716     CC=$ac_ct_CC
   2717   fi
   2718 fi
   2719 
   2720 fi
   2721 
   2722 
   2723 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2724 See \`config.log' for more details." >&5
   2725 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2726 See \`config.log' for more details." >&2;}
   2727    { (exit 1); exit 1; }; }
   2728 
   2729 # Provide some information about the compiler.
   2730 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2731 ac_compiler=`set X $ac_compile; echo $2`
   2732 { (ac_try="$ac_compiler --version >&5"
   2733 case "(($ac_try" in
   2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2735   *) ac_try_echo=$ac_try;;
   2736 esac
   2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2738   (eval "$ac_compiler --version >&5") 2>&5
   2739   ac_status=$?
   2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2741   (exit $ac_status); }
   2742 { (ac_try="$ac_compiler -v >&5"
   2743 case "(($ac_try" in
   2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2745   *) ac_try_echo=$ac_try;;
   2746 esac
   2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2748   (eval "$ac_compiler -v >&5") 2>&5
   2749   ac_status=$?
   2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2751   (exit $ac_status); }
   2752 { (ac_try="$ac_compiler -V >&5"
   2753 case "(($ac_try" in
   2754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2755   *) ac_try_echo=$ac_try;;
   2756 esac
   2757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2758   (eval "$ac_compiler -V >&5") 2>&5
   2759   ac_status=$?
   2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2761   (exit $ac_status); }
   2762 
   2763 cat >conftest.$ac_ext <<_ACEOF
   2764 /* confdefs.h.  */
   2765 _ACEOF
   2766 cat confdefs.h >>conftest.$ac_ext
   2767 cat >>conftest.$ac_ext <<_ACEOF
   2768 /* end confdefs.h.  */
   2769 
   2770 int
   2771 main ()
   2772 {
   2773 
   2774   ;
   2775   return 0;
   2776 }
   2777 _ACEOF
   2778 ac_clean_files_save=$ac_clean_files
   2779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2780 # Try to create an executable without -o first, disregard a.out.
   2781 # It will help us diagnose broken compilers, and finding out an intuition
   2782 # of exeext.
   2783 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2786 #
   2787 # List of possible output files, starting from the most likely.
   2788 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2789 # only as a last resort.  b.out is created by i960 compilers.
   2790 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2791 #
   2792 # The IRIX 6 linker writes into existing files which may not be
   2793 # executable, retaining their permissions.  Remove them first so a
   2794 # subsequent execution test works.
   2795 ac_rmfiles=
   2796 for ac_file in $ac_files
   2797 do
   2798   case $ac_file in
   2799     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2800     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2801   esac
   2802 done
   2803 rm -f $ac_rmfiles
   2804 
   2805 if { (ac_try="$ac_link_default"
   2806 case "(($ac_try" in
   2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2808   *) ac_try_echo=$ac_try;;
   2809 esac
   2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2811   (eval "$ac_link_default") 2>&5
   2812   ac_status=$?
   2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2814   (exit $ac_status); }; then
   2815   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2816 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2817 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2818 # so that the user can short-circuit this test for compilers unknown to
   2819 # Autoconf.
   2820 for ac_file in $ac_files ''
   2821 do
   2822   test -f "$ac_file" || continue
   2823   case $ac_file in
   2824     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2825 	;;
   2826     [ab].out )
   2827 	# We found the default executable, but exeext='' is most
   2828 	# certainly right.
   2829 	break;;
   2830     *.* )
   2831         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2832 	then :; else
   2833 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2834 	fi
   2835 	# We set ac_cv_exeext here because the later test for it is not
   2836 	# safe: cross compilers may not add the suffix if given an `-o'
   2837 	# argument, so we may need to know it at that point already.
   2838 	# Even if this section looks crufty: it has the advantage of
   2839 	# actually working.
   2840 	break;;
   2841     * )
   2842 	break;;
   2843   esac
   2844 done
   2845 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2846 
   2847 else
   2848   ac_file=''
   2849 fi
   2850 
   2851 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2852 echo "${ECHO_T}$ac_file" >&6; }
   2853 if test -z "$ac_file"; then
   2854   echo "$as_me: failed program was:" >&5
   2855 sed 's/^/| /' conftest.$ac_ext >&5
   2856 
   2857 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2858 See \`config.log' for more details." >&5
   2859 echo "$as_me: error: C compiler cannot create executables
   2860 See \`config.log' for more details." >&2;}
   2861    { (exit 77); exit 77; }; }
   2862 fi
   2863 
   2864 ac_exeext=$ac_cv_exeext
   2865 
   2866 # Check that the compiler produces executables we can run.  If not, either
   2867 # the compiler is broken, or we cross compile.
   2868 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2869 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2870 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2871 # If not cross compiling, check that we can run a simple program.
   2872 if test "$cross_compiling" != yes; then
   2873   if { ac_try='./$ac_file'
   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_try") 2>&5
   2880   ac_status=$?
   2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2882   (exit $ac_status); }; }; then
   2883     cross_compiling=no
   2884   else
   2885     if test "$cross_compiling" = maybe; then
   2886 	cross_compiling=yes
   2887     else
   2888 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2889 If you meant to cross compile, use \`--host'.
   2890 See \`config.log' for more details." >&5
   2891 echo "$as_me: error: cannot run C compiled programs.
   2892 If you meant to cross compile, use \`--host'.
   2893 See \`config.log' for more details." >&2;}
   2894    { (exit 1); exit 1; }; }
   2895     fi
   2896   fi
   2897 fi
   2898 { echo "$as_me:$LINENO: result: yes" >&5
   2899 echo "${ECHO_T}yes" >&6; }
   2900 
   2901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2902 ac_clean_files=$ac_clean_files_save
   2903 # Check that the compiler produces executables we can run.  If not, either
   2904 # the compiler is broken, or we cross compile.
   2905 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2907 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2908 echo "${ECHO_T}$cross_compiling" >&6; }
   2909 
   2910 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2912 if { (ac_try="$ac_link"
   2913 case "(($ac_try" in
   2914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2915   *) ac_try_echo=$ac_try;;
   2916 esac
   2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2918   (eval "$ac_link") 2>&5
   2919   ac_status=$?
   2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2921   (exit $ac_status); }; then
   2922   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2923 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2924 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2925 # `rm'.
   2926 for ac_file in conftest.exe conftest conftest.*; do
   2927   test -f "$ac_file" || continue
   2928   case $ac_file in
   2929     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2930     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2931 	  break;;
   2932     * ) break;;
   2933   esac
   2934 done
   2935 else
   2936   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2937 See \`config.log' for more details." >&5
   2938 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2939 See \`config.log' for more details." >&2;}
   2940    { (exit 1); exit 1; }; }
   2941 fi
   2942 
   2943 rm -f conftest$ac_cv_exeext
   2944 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2945 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2946 
   2947 rm -f conftest.$ac_ext
   2948 EXEEXT=$ac_cv_exeext
   2949 ac_exeext=$EXEEXT
   2950 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2951 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2952 if test "${ac_cv_objext+set}" = set; then
   2953   echo $ECHO_N "(cached) $ECHO_C" >&6
   2954 else
   2955   cat >conftest.$ac_ext <<_ACEOF
   2956 /* confdefs.h.  */
   2957 _ACEOF
   2958 cat confdefs.h >>conftest.$ac_ext
   2959 cat >>conftest.$ac_ext <<_ACEOF
   2960 /* end confdefs.h.  */
   2961 
   2962 int
   2963 main ()
   2964 {
   2965 
   2966   ;
   2967   return 0;
   2968 }
   2969 _ACEOF
   2970 rm -f conftest.o conftest.obj
   2971 if { (ac_try="$ac_compile"
   2972 case "(($ac_try" in
   2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2974   *) ac_try_echo=$ac_try;;
   2975 esac
   2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2977   (eval "$ac_compile") 2>&5
   2978   ac_status=$?
   2979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2980   (exit $ac_status); }; then
   2981   for ac_file in conftest.o conftest.obj conftest.*; do
   2982   test -f "$ac_file" || continue;
   2983   case $ac_file in
   2984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2986        break;;
   2987   esac
   2988 done
   2989 else
   2990   echo "$as_me: failed program was:" >&5
   2991 sed 's/^/| /' conftest.$ac_ext >&5
   2992 
   2993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2994 See \`config.log' for more details." >&5
   2995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2996 See \`config.log' for more details." >&2;}
   2997    { (exit 1); exit 1; }; }
   2998 fi
   2999 
   3000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3001 fi
   3002 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   3003 echo "${ECHO_T}$ac_cv_objext" >&6; }
   3004 OBJEXT=$ac_cv_objext
   3005 ac_objext=$OBJEXT
   3006 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   3007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   3008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   3009   echo $ECHO_N "(cached) $ECHO_C" >&6
   3010 else
   3011   cat >conftest.$ac_ext <<_ACEOF
   3012 /* confdefs.h.  */
   3013 _ACEOF
   3014 cat confdefs.h >>conftest.$ac_ext
   3015 cat >>conftest.$ac_ext <<_ACEOF
   3016 /* end confdefs.h.  */
   3017 
   3018 int
   3019 main ()
   3020 {
   3021 #ifndef __GNUC__
   3022        choke me
   3023 #endif
   3024 
   3025   ;
   3026   return 0;
   3027 }
   3028 _ACEOF
   3029 rm -f conftest.$ac_objext
   3030 if { (ac_try="$ac_compile"
   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_compile") 2>conftest.er1
   3037   ac_status=$?
   3038   grep -v '^ *+' conftest.er1 >conftest.err
   3039   rm -f conftest.er1
   3040   cat conftest.err >&5
   3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3042   (exit $ac_status); } && {
   3043 	 test -z "$ac_c_werror_flag" ||
   3044 	 test ! -s conftest.err
   3045        } && test -s conftest.$ac_objext; then
   3046   ac_compiler_gnu=yes
   3047 else
   3048   echo "$as_me: failed program was:" >&5
   3049 sed 's/^/| /' conftest.$ac_ext >&5
   3050 
   3051 	ac_compiler_gnu=no
   3052 fi
   3053 
   3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3056 
   3057 fi
   3058 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   3059 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   3060 GCC=`test $ac_compiler_gnu = yes && echo yes`
   3061 ac_test_CFLAGS=${CFLAGS+set}
   3062 ac_save_CFLAGS=$CFLAGS
   3063 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   3064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   3065 if test "${ac_cv_prog_cc_g+set}" = set; then
   3066   echo $ECHO_N "(cached) $ECHO_C" >&6
   3067 else
   3068   ac_save_c_werror_flag=$ac_c_werror_flag
   3069    ac_c_werror_flag=yes
   3070    ac_cv_prog_cc_g=no
   3071    CFLAGS="-g"
   3072    cat >conftest.$ac_ext <<_ACEOF
   3073 /* confdefs.h.  */
   3074 _ACEOF
   3075 cat confdefs.h >>conftest.$ac_ext
   3076 cat >>conftest.$ac_ext <<_ACEOF
   3077 /* end confdefs.h.  */
   3078 
   3079 int
   3080 main ()
   3081 {
   3082 
   3083   ;
   3084   return 0;
   3085 }
   3086 _ACEOF
   3087 rm -f conftest.$ac_objext
   3088 if { (ac_try="$ac_compile"
   3089 case "(($ac_try" in
   3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3091   *) ac_try_echo=$ac_try;;
   3092 esac
   3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3094   (eval "$ac_compile") 2>conftest.er1
   3095   ac_status=$?
   3096   grep -v '^ *+' conftest.er1 >conftest.err
   3097   rm -f conftest.er1
   3098   cat conftest.err >&5
   3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3100   (exit $ac_status); } && {
   3101 	 test -z "$ac_c_werror_flag" ||
   3102 	 test ! -s conftest.err
   3103        } && test -s conftest.$ac_objext; then
   3104   ac_cv_prog_cc_g=yes
   3105 else
   3106   echo "$as_me: failed program was:" >&5
   3107 sed 's/^/| /' conftest.$ac_ext >&5
   3108 
   3109 	CFLAGS=""
   3110       cat >conftest.$ac_ext <<_ACEOF
   3111 /* confdefs.h.  */
   3112 _ACEOF
   3113 cat confdefs.h >>conftest.$ac_ext
   3114 cat >>conftest.$ac_ext <<_ACEOF
   3115 /* end confdefs.h.  */
   3116 
   3117 int
   3118 main ()
   3119 {
   3120 
   3121   ;
   3122   return 0;
   3123 }
   3124 _ACEOF
   3125 rm -f conftest.$ac_objext
   3126 if { (ac_try="$ac_compile"
   3127 case "(($ac_try" in
   3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3129   *) ac_try_echo=$ac_try;;
   3130 esac
   3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3132   (eval "$ac_compile") 2>conftest.er1
   3133   ac_status=$?
   3134   grep -v '^ *+' conftest.er1 >conftest.err
   3135   rm -f conftest.er1
   3136   cat conftest.err >&5
   3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3138   (exit $ac_status); } && {
   3139 	 test -z "$ac_c_werror_flag" ||
   3140 	 test ! -s conftest.err
   3141        } && test -s conftest.$ac_objext; then
   3142   :
   3143 else
   3144   echo "$as_me: failed program was:" >&5
   3145 sed 's/^/| /' conftest.$ac_ext >&5
   3146 
   3147 	ac_c_werror_flag=$ac_save_c_werror_flag
   3148 	 CFLAGS="-g"
   3149 	 cat >conftest.$ac_ext <<_ACEOF
   3150 /* confdefs.h.  */
   3151 _ACEOF
   3152 cat confdefs.h >>conftest.$ac_ext
   3153 cat >>conftest.$ac_ext <<_ACEOF
   3154 /* end confdefs.h.  */
   3155 
   3156 int
   3157 main ()
   3158 {
   3159 
   3160   ;
   3161   return 0;
   3162 }
   3163 _ACEOF
   3164 rm -f conftest.$ac_objext
   3165 if { (ac_try="$ac_compile"
   3166 case "(($ac_try" in
   3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3168   *) ac_try_echo=$ac_try;;
   3169 esac
   3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3171   (eval "$ac_compile") 2>conftest.er1
   3172   ac_status=$?
   3173   grep -v '^ *+' conftest.er1 >conftest.err
   3174   rm -f conftest.er1
   3175   cat conftest.err >&5
   3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3177   (exit $ac_status); } && {
   3178 	 test -z "$ac_c_werror_flag" ||
   3179 	 test ! -s conftest.err
   3180        } && test -s conftest.$ac_objext; then
   3181   ac_cv_prog_cc_g=yes
   3182 else
   3183   echo "$as_me: failed program was:" >&5
   3184 sed 's/^/| /' conftest.$ac_ext >&5
   3185 
   3186 
   3187 fi
   3188 
   3189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3190 fi
   3191 
   3192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3193 fi
   3194 
   3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3196    ac_c_werror_flag=$ac_save_c_werror_flag
   3197 fi
   3198 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   3199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   3200 if test "$ac_test_CFLAGS" = set; then
   3201   CFLAGS=$ac_save_CFLAGS
   3202 elif test $ac_cv_prog_cc_g = yes; then
   3203   if test "$GCC" = yes; then
   3204     CFLAGS="-g -O2"
   3205   else
   3206     CFLAGS="-g"
   3207   fi
   3208 else
   3209   if test "$GCC" = yes; then
   3210     CFLAGS="-O2"
   3211   else
   3212     CFLAGS=
   3213   fi
   3214 fi
   3215 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   3216 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   3217 if test "${ac_cv_prog_cc_c89+set}" = set; then
   3218   echo $ECHO_N "(cached) $ECHO_C" >&6
   3219 else
   3220   ac_cv_prog_cc_c89=no
   3221 ac_save_CC=$CC
   3222 cat >conftest.$ac_ext <<_ACEOF
   3223 /* confdefs.h.  */
   3224 _ACEOF
   3225 cat confdefs.h >>conftest.$ac_ext
   3226 cat >>conftest.$ac_ext <<_ACEOF
   3227 /* end confdefs.h.  */
   3228 #include <stdarg.h>
   3229 #include <stdio.h>
   3230 #include <sys/types.h>
   3231 #include <sys/stat.h>
   3232 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3233 struct buf { int x; };
   3234 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3235 static char *e (p, i)
   3236      char **p;
   3237      int i;
   3238 {
   3239   return p[i];
   3240 }
   3241 static char *f (char * (*g) (char **, int), char **p, ...)
   3242 {
   3243   char *s;
   3244   va_list v;
   3245   va_start (v,p);
   3246   s = g (p, va_arg (v,int));
   3247   va_end (v);
   3248   return s;
   3249 }
   3250 
   3251 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3252    function prototypes and stuff, but not '\xHH' hex character constants.
   3253    These don't provoke an error unfortunately, instead are silently treated
   3254    as 'x'.  The following induces an error, until -std is added to get
   3255    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3256    array size at least.  It's necessary to write '\x00'==0 to get something
   3257    that's true only with -std.  */
   3258 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3259 
   3260 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3261    inside strings and character constants.  */
   3262 #define FOO(x) 'x'
   3263 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3264 
   3265 int test (int i, double x);
   3266 struct s1 {int (*f) (int a);};
   3267 struct s2 {int (*f) (double a);};
   3268 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3269 int argc;
   3270 char **argv;
   3271 int
   3272 main ()
   3273 {
   3274 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3275   ;
   3276   return 0;
   3277 }
   3278 _ACEOF
   3279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3280 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3281 do
   3282   CC="$ac_save_CC $ac_arg"
   3283   rm -f conftest.$ac_objext
   3284 if { (ac_try="$ac_compile"
   3285 case "(($ac_try" in
   3286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3287   *) ac_try_echo=$ac_try;;
   3288 esac
   3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3290   (eval "$ac_compile") 2>conftest.er1
   3291   ac_status=$?
   3292   grep -v '^ *+' conftest.er1 >conftest.err
   3293   rm -f conftest.er1
   3294   cat conftest.err >&5
   3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3296   (exit $ac_status); } && {
   3297 	 test -z "$ac_c_werror_flag" ||
   3298 	 test ! -s conftest.err
   3299        } && test -s conftest.$ac_objext; then
   3300   ac_cv_prog_cc_c89=$ac_arg
   3301 else
   3302   echo "$as_me: failed program was:" >&5
   3303 sed 's/^/| /' conftest.$ac_ext >&5
   3304 
   3305 
   3306 fi
   3307 
   3308 rm -f core conftest.err conftest.$ac_objext
   3309   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3310 done
   3311 rm -f conftest.$ac_ext
   3312 CC=$ac_save_CC
   3313 
   3314 fi
   3315 # AC_CACHE_VAL
   3316 case "x$ac_cv_prog_cc_c89" in
   3317   x)
   3318     { echo "$as_me:$LINENO: result: none needed" >&5
   3319 echo "${ECHO_T}none needed" >&6; } ;;
   3320   xno)
   3321     { echo "$as_me:$LINENO: result: unsupported" >&5
   3322 echo "${ECHO_T}unsupported" >&6; } ;;
   3323   *)
   3324     CC="$CC $ac_cv_prog_cc_c89"
   3325     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   3326 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   3327 esac
   3328 
   3329 
   3330 ac_ext=c
   3331 ac_cpp='$CPP $CPPFLAGS'
   3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3335 DEPDIR="${am__leading_dot}deps"
   3336 
   3337 ac_config_commands="$ac_config_commands depfiles"
   3338 
   3339 
   3340 am_make=${MAKE-make}
   3341 cat > confinc << 'END'
   3342 am__doit:
   3343 	@echo done
   3344 .PHONY: am__doit
   3345 END
   3346 # If we don't find an include directive, just comment out the code.
   3347 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
   3348 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
   3349 am__include="#"
   3350 am__quote=
   3351 _am_result=none
   3352 # First try GNU make style include.
   3353 echo "include confinc" > confmf
   3354 # We grep out `Entering directory' and `Leaving directory'
   3355 # messages which can occur if `w' ends up in MAKEFLAGS.
   3356 # In particular we don't look at `^make:' because GNU make might
   3357 # be invoked under some other name (usually "gmake"), in which
   3358 # case it prints its new name instead of `make'.
   3359 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
   3360    am__include=include
   3361    am__quote=
   3362    _am_result=GNU
   3363 fi
   3364 # Now try BSD make style include.
   3365 if test "$am__include" = "#"; then
   3366    echo '.include "confinc"' > confmf
   3367    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
   3368       am__include=.include
   3369       am__quote="\""
   3370       _am_result=BSD
   3371    fi
   3372 fi
   3373 
   3374 
   3375 { echo "$as_me:$LINENO: result: $_am_result" >&5
   3376 echo "${ECHO_T}$_am_result" >&6; }
   3377 rm -f confinc confmf
   3378 
   3379 # Check whether --enable-dependency-tracking was given.
   3380 if test "${enable_dependency_tracking+set}" = set; then
   3381   enableval=$enable_dependency_tracking;
   3382 fi
   3383 
   3384 if test "x$enable_dependency_tracking" != xno; then
   3385   am_depcomp="$ac_aux_dir/depcomp"
   3386   AMDEPBACKSLASH='\'
   3387 fi
   3388 
   3389 
   3390 if test "x$enable_dependency_tracking" != xno; then
   3391   AMDEP_TRUE=
   3392   AMDEP_FALSE='#'
   3393 else
   3394   AMDEP_TRUE='#'
   3395   AMDEP_FALSE=
   3396 fi
   3397 
   3398 
   3399 
   3400 
   3401 depcc="$CC"   am_compiler_list=
   3402 
   3403 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
   3404 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
   3405 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
   3406   echo $ECHO_N "(cached) $ECHO_C" >&6
   3407 else
   3408   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   3409   # We make a subdir and do the tests there.  Otherwise we can end up
   3410   # making bogus files that we don't know about and never remove.  For
   3411   # instance it was reported that on HP-UX the gcc test will end up
   3412   # making a dummy file named `D' -- because `-MD' means `put the output
   3413   # in D'.
   3414   mkdir conftest.dir
   3415   # Copy depcomp to subdir because otherwise we won't find it if we're
   3416   # using a relative directory.
   3417   cp "$am_depcomp" conftest.dir
   3418   cd conftest.dir
   3419   # We will build objects and dependencies in a subdirectory because
   3420   # it helps to detect inapplicable dependency modes.  For instance
   3421   # both Tru64's cc and ICC support -MD to output dependencies as a
   3422   # side effect of compilation, but ICC will put the dependencies in
   3423   # the current directory while Tru64 will put them in the object
   3424   # directory.
   3425   mkdir sub
   3426 
   3427   am_cv_CC_dependencies_compiler_type=none
   3428   if test "$am_compiler_list" = ""; then
   3429      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   3430   fi
   3431   for depmode in $am_compiler_list; do
   3432     # Setup a source with many dependencies, because some compilers
   3433     # like to wrap large dependency lists on column 80 (with \), and
   3434     # we should not choose a depcomp mode which is confused by this.
   3435     #
   3436     # We need to recreate these files for each test, as the compiler may
   3437     # overwrite some of them when testing with obscure command lines.
   3438     # This happens at least with the AIX C compiler.
   3439     : > sub/conftest.c
   3440     for i in 1 2 3 4 5 6; do
   3441       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   3442       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   3443       # Solaris 8's {/usr,}/bin/sh.
   3444       touch sub/conftst$i.h
   3445     done
   3446     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   3447 
   3448     case $depmode in
   3449     nosideeffect)
   3450       # after this tag, mechanisms are not by side-effect, so they'll
   3451       # only be used when explicitly requested
   3452       if test "x$enable_dependency_tracking" = xyes; then
   3453 	continue
   3454       else
   3455 	break
   3456       fi
   3457       ;;
   3458     none) break ;;
   3459     esac
   3460     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   3461     # mode.  It turns out that the SunPro C++ compiler does not properly
   3462     # handle `-M -o', and we need to detect this.
   3463     if depmode=$depmode \
   3464        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   3465        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   3466        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
   3467          >/dev/null 2>conftest.err &&
   3468        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   3469        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
   3470        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   3471       # icc doesn't choke on unknown options, it will just issue warnings
   3472       # or remarks (even with -Werror).  So we grep stderr for any message
   3473       # that says an option was ignored or not supported.
   3474       # When given -MP, icc 7.0 and 7.1 complain thusly:
   3475       #   icc: Command line warning: ignoring option '-M'; no argument required
   3476       # The diagnosis changed in icc 8.0:
   3477       #   icc: Command line remark: option '-MP' not supported
   3478       if (grep 'ignoring option' conftest.err ||
   3479           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   3480         am_cv_CC_dependencies_compiler_type=$depmode
   3481         break
   3482       fi
   3483     fi
   3484   done
   3485 
   3486   cd ..
   3487   rm -rf conftest.dir
   3488 else
   3489   am_cv_CC_dependencies_compiler_type=none
   3490 fi
   3491 
   3492 fi
   3493 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
   3494 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
   3495 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   3496 
   3497 
   3498 
   3499 if
   3500   test "x$enable_dependency_tracking" != xno \
   3501   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   3502   am__fastdepCC_TRUE=
   3503   am__fastdepCC_FALSE='#'
   3504 else
   3505   am__fastdepCC_TRUE='#'
   3506   am__fastdepCC_FALSE=
   3507 fi
   3508 
   3509 
   3510 case `pwd` in
   3511   *\ * | *\	*)
   3512     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
   3513 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
   3514 esac
   3515 
   3516 
   3517 
   3518 macro_version='2.2.6'
   3519 macro_revision='1.3012'
   3520 
   3521 
   3522 
   3523 
   3524 
   3525 
   3526 
   3527 
   3528 
   3529 
   3530 
   3531 
   3532 
   3533 ltmain="$ac_aux_dir/ltmain.sh"
   3534 
   3535 # Make sure we can run config.sub.
   3536 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3537   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   3538 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   3539    { (exit 1); exit 1; }; }
   3540 
   3541 { echo "$as_me:$LINENO: checking build system type" >&5
   3542 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   3543 if test "${ac_cv_build+set}" = set; then
   3544   echo $ECHO_N "(cached) $ECHO_C" >&6
   3545 else
   3546   ac_build_alias=$build_alias
   3547 test "x$ac_build_alias" = x &&
   3548   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3549 test "x$ac_build_alias" = x &&
   3550   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   3551 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   3552    { (exit 1); exit 1; }; }
   3553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3554   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   3555 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   3556    { (exit 1); exit 1; }; }
   3557 
   3558 fi
   3559 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   3560 echo "${ECHO_T}$ac_cv_build" >&6; }
   3561 case $ac_cv_build in
   3562 *-*-*) ;;
   3563 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   3564 echo "$as_me: error: invalid value of canonical build" >&2;}
   3565    { (exit 1); exit 1; }; };;
   3566 esac
   3567 build=$ac_cv_build
   3568 ac_save_IFS=$IFS; IFS='-'
   3569 set x $ac_cv_build
   3570 shift
   3571 build_cpu=$1
   3572 build_vendor=$2
   3573 shift; shift
   3574 # Remember, the first character of IFS is used to create $*,
   3575 # except with old shells:
   3576 build_os=$*
   3577 IFS=$ac_save_IFS
   3578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3579 
   3580 
   3581 { echo "$as_me:$LINENO: checking host system type" >&5
   3582 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   3583 if test "${ac_cv_host+set}" = set; then
   3584   echo $ECHO_N "(cached) $ECHO_C" >&6
   3585 else
   3586   if test "x$host_alias" = x; then
   3587   ac_cv_host=$ac_cv_build
   3588 else
   3589   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   3590     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   3591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   3592    { (exit 1); exit 1; }; }
   3593 fi
   3594 
   3595 fi
   3596 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   3597 echo "${ECHO_T}$ac_cv_host" >&6; }
   3598 case $ac_cv_host in
   3599 *-*-*) ;;
   3600 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   3601 echo "$as_me: error: invalid value of canonical host" >&2;}
   3602    { (exit 1); exit 1; }; };;
   3603 esac
   3604 host=$ac_cv_host
   3605 ac_save_IFS=$IFS; IFS='-'
   3606 set x $ac_cv_host
   3607 shift
   3608 host_cpu=$1
   3609 host_vendor=$2
   3610 shift; shift
   3611 # Remember, the first character of IFS is used to create $*,
   3612 # except with old shells:
   3613 host_os=$*
   3614 IFS=$ac_save_IFS
   3615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   3616 
   3617 
   3618 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
   3619 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
   3620 if test "${ac_cv_path_SED+set}" = set; then
   3621   echo $ECHO_N "(cached) $ECHO_C" >&6
   3622 else
   3623             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   3624      for ac_i in 1 2 3 4 5 6 7; do
   3625        ac_script="$ac_script$as_nl$ac_script"
   3626      done
   3627      echo "$ac_script" | sed 99q >conftest.sed
   3628      $as_unset ac_script || ac_script=
   3629      # Extract the first word of "sed gsed" to use in msg output
   3630 if test -z "$SED"; then
   3631 set dummy sed gsed; ac_prog_name=$2
   3632 if test "${ac_cv_path_SED+set}" = set; then
   3633   echo $ECHO_N "(cached) $ECHO_C" >&6
   3634 else
   3635   ac_path_SED_found=false
   3636 # Loop through the user's path and test for each of PROGNAME-LIST
   3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3638 for as_dir in $PATH
   3639 do
   3640   IFS=$as_save_IFS
   3641   test -z "$as_dir" && as_dir=.
   3642   for ac_prog in sed gsed; do
   3643   for ac_exec_ext in '' $ac_executable_extensions; do
   3644     ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   3645     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
   3646     # Check for GNU ac_path_SED and select it if it is found.
   3647   # Check for GNU $ac_path_SED
   3648 case `"$ac_path_SED" --version 2>&1` in
   3649 *GNU*)
   3650   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   3651 *)
   3652   ac_count=0
   3653   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3654   while :
   3655   do
   3656     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3657     mv "conftest.tmp" "conftest.in"
   3658     cp "conftest.in" "conftest.nl"
   3659     echo '' >> "conftest.nl"
   3660     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3661     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3662     ac_count=`expr $ac_count + 1`
   3663     if test $ac_count -gt ${ac_path_SED_max-0}; then
   3664       # Best one so far, save it but keep looking for a better one
   3665       ac_cv_path_SED="$ac_path_SED"
   3666       ac_path_SED_max=$ac_count
   3667     fi
   3668     # 10*(2^10) chars as input seems more than enough
   3669     test $ac_count -gt 10 && break
   3670   done
   3671   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3672 esac
   3673 
   3674 
   3675     $ac_path_SED_found && break 3
   3676   done
   3677 done
   3678 
   3679 done
   3680 IFS=$as_save_IFS
   3681 
   3682 
   3683 fi
   3684 
   3685 SED="$ac_cv_path_SED"
   3686 if test -z "$SED"; then
   3687   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
   3688 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
   3689    { (exit 1); exit 1; }; }
   3690 fi
   3691 
   3692 else
   3693   ac_cv_path_SED=$SED
   3694 fi
   3695 
   3696 fi
   3697 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
   3698 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
   3699  SED="$ac_cv_path_SED"
   3700   rm -f conftest.sed
   3701 
   3702 test -z "$SED" && SED=sed
   3703 Xsed="$SED -e 1s/^X//"
   3704 
   3705 
   3706 
   3707 
   3708 
   3709 
   3710 
   3711 
   3712 
   3713 
   3714 
   3715 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3716 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3717 if test "${ac_cv_path_GREP+set}" = set; then
   3718   echo $ECHO_N "(cached) $ECHO_C" >&6
   3719 else
   3720   # Extract the first word of "grep ggrep" to use in msg output
   3721 if test -z "$GREP"; then
   3722 set dummy grep ggrep; ac_prog_name=$2
   3723 if test "${ac_cv_path_GREP+set}" = set; then
   3724   echo $ECHO_N "(cached) $ECHO_C" >&6
   3725 else
   3726   ac_path_GREP_found=false
   3727 # Loop through the user's path and test for each of PROGNAME-LIST
   3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3729 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3730 do
   3731   IFS=$as_save_IFS
   3732   test -z "$as_dir" && as_dir=.
   3733   for ac_prog in grep ggrep; do
   3734   for ac_exec_ext in '' $ac_executable_extensions; do
   3735     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3736     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3737     # Check for GNU ac_path_GREP and select it if it is found.
   3738   # Check for GNU $ac_path_GREP
   3739 case `"$ac_path_GREP" --version 2>&1` in
   3740 *GNU*)
   3741   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3742 *)
   3743   ac_count=0
   3744   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3745   while :
   3746   do
   3747     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3748     mv "conftest.tmp" "conftest.in"
   3749     cp "conftest.in" "conftest.nl"
   3750     echo 'GREP' >> "conftest.nl"
   3751     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3752     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3753     ac_count=`expr $ac_count + 1`
   3754     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3755       # Best one so far, save it but keep looking for a better one
   3756       ac_cv_path_GREP="$ac_path_GREP"
   3757       ac_path_GREP_max=$ac_count
   3758     fi
   3759     # 10*(2^10) chars as input seems more than enough
   3760     test $ac_count -gt 10 && break
   3761   done
   3762   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3763 esac
   3764 
   3765 
   3766     $ac_path_GREP_found && break 3
   3767   done
   3768 done
   3769 
   3770 done
   3771 IFS=$as_save_IFS
   3772 
   3773 
   3774 fi
   3775 
   3776 GREP="$ac_cv_path_GREP"
   3777 if test -z "$GREP"; then
   3778   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3779 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3780    { (exit 1); exit 1; }; }
   3781 fi
   3782 
   3783 else
   3784   ac_cv_path_GREP=$GREP
   3785 fi
   3786 
   3787 
   3788 fi
   3789 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3790 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3791  GREP="$ac_cv_path_GREP"
   3792 
   3793 
   3794 { echo "$as_me:$LINENO: checking for egrep" >&5
   3795 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3796 if test "${ac_cv_path_EGREP+set}" = set; then
   3797   echo $ECHO_N "(cached) $ECHO_C" >&6
   3798 else
   3799   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3800    then ac_cv_path_EGREP="$GREP -E"
   3801    else
   3802      # Extract the first word of "egrep" to use in msg output
   3803 if test -z "$EGREP"; then
   3804 set dummy egrep; ac_prog_name=$2
   3805 if test "${ac_cv_path_EGREP+set}" = set; then
   3806   echo $ECHO_N "(cached) $ECHO_C" >&6
   3807 else
   3808   ac_path_EGREP_found=false
   3809 # Loop through the user's path and test for each of PROGNAME-LIST
   3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3812 do
   3813   IFS=$as_save_IFS
   3814   test -z "$as_dir" && as_dir=.
   3815   for ac_prog in egrep; do
   3816   for ac_exec_ext in '' $ac_executable_extensions; do
   3817     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3818     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3819     # Check for GNU ac_path_EGREP and select it if it is found.
   3820   # Check for GNU $ac_path_EGREP
   3821 case `"$ac_path_EGREP" --version 2>&1` in
   3822 *GNU*)
   3823   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3824 *)
   3825   ac_count=0
   3826   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3827   while :
   3828   do
   3829     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3830     mv "conftest.tmp" "conftest.in"
   3831     cp "conftest.in" "conftest.nl"
   3832     echo 'EGREP' >> "conftest.nl"
   3833     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3834     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3835     ac_count=`expr $ac_count + 1`
   3836     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3837       # Best one so far, save it but keep looking for a better one
   3838       ac_cv_path_EGREP="$ac_path_EGREP"
   3839       ac_path_EGREP_max=$ac_count
   3840     fi
   3841     # 10*(2^10) chars as input seems more than enough
   3842     test $ac_count -gt 10 && break
   3843   done
   3844   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3845 esac
   3846 
   3847 
   3848     $ac_path_EGREP_found && break 3
   3849   done
   3850 done
   3851 
   3852 done
   3853 IFS=$as_save_IFS
   3854 
   3855 
   3856 fi
   3857 
   3858 EGREP="$ac_cv_path_EGREP"
   3859 if test -z "$EGREP"; then
   3860   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3861 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3862    { (exit 1); exit 1; }; }
   3863 fi
   3864 
   3865 else
   3866   ac_cv_path_EGREP=$EGREP
   3867 fi
   3868 
   3869 
   3870    fi
   3871 fi
   3872 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   3873 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   3874  EGREP="$ac_cv_path_EGREP"
   3875 
   3876 
   3877 { echo "$as_me:$LINENO: checking for fgrep" >&5
   3878 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
   3879 if test "${ac_cv_path_FGREP+set}" = set; then
   3880   echo $ECHO_N "(cached) $ECHO_C" >&6
   3881 else
   3882   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
   3883    then ac_cv_path_FGREP="$GREP -F"
   3884    else
   3885      # Extract the first word of "fgrep" to use in msg output
   3886 if test -z "$FGREP"; then
   3887 set dummy fgrep; ac_prog_name=$2
   3888 if test "${ac_cv_path_FGREP+set}" = set; then
   3889   echo $ECHO_N "(cached) $ECHO_C" >&6
   3890 else
   3891   ac_path_FGREP_found=false
   3892 # Loop through the user's path and test for each of PROGNAME-LIST
   3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3895 do
   3896   IFS=$as_save_IFS
   3897   test -z "$as_dir" && as_dir=.
   3898   for ac_prog in fgrep; do
   3899   for ac_exec_ext in '' $ac_executable_extensions; do
   3900     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
   3901     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
   3902     # Check for GNU ac_path_FGREP and select it if it is found.
   3903   # Check for GNU $ac_path_FGREP
   3904 case `"$ac_path_FGREP" --version 2>&1` in
   3905 *GNU*)
   3906   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
   3907 *)
   3908   ac_count=0
   3909   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3910   while :
   3911   do
   3912     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3913     mv "conftest.tmp" "conftest.in"
   3914     cp "conftest.in" "conftest.nl"
   3915     echo 'FGREP' >> "conftest.nl"
   3916     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3917     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3918     ac_count=`expr $ac_count + 1`
   3919     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
   3920       # Best one so far, save it but keep looking for a better one
   3921       ac_cv_path_FGREP="$ac_path_FGREP"
   3922       ac_path_FGREP_max=$ac_count
   3923     fi
   3924     # 10*(2^10) chars as input seems more than enough
   3925     test $ac_count -gt 10 && break
   3926   done
   3927   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3928 esac
   3929 
   3930 
   3931     $ac_path_FGREP_found && break 3
   3932   done
   3933 done
   3934 
   3935 done
   3936 IFS=$as_save_IFS
   3937 
   3938 
   3939 fi
   3940 
   3941 FGREP="$ac_cv_path_FGREP"
   3942 if test -z "$FGREP"; then
   3943   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3944 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3945    { (exit 1); exit 1; }; }
   3946 fi
   3947 
   3948 else
   3949   ac_cv_path_FGREP=$FGREP
   3950 fi
   3951 
   3952 
   3953    fi
   3954 fi
   3955 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
   3956 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
   3957  FGREP="$ac_cv_path_FGREP"
   3958 
   3959 
   3960 test -z "$GREP" && GREP=grep
   3961 
   3962 
   3963 
   3964 
   3965 
   3966 
   3967 
   3968 
   3969 
   3970 
   3971 
   3972 
   3973 
   3974 
   3975 
   3976 
   3977 
   3978 
   3979 
   3980 # Check whether --with-gnu-ld was given.
   3981 if test "${with_gnu_ld+set}" = set; then
   3982   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   3983 else
   3984   with_gnu_ld=no
   3985 fi
   3986 
   3987 ac_prog=ld
   3988 if test "$GCC" = yes; then
   3989   # Check if gcc -print-prog-name=ld gives a path.
   3990   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
   3991 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
   3992   case $host in
   3993   *-*-mingw*)
   3994     # gcc leaves a trailing carriage return which upsets mingw
   3995     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   3996   *)
   3997     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   3998   esac
   3999   case $ac_prog in
   4000     # Accept absolute paths.
   4001     [\\/]* | ?:[\\/]*)
   4002       re_direlt='/[^/][^/]*/\.\./'
   4003       # Canonicalize the pathname of ld
   4004       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
   4005       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
   4006 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
   4007       done
   4008       test -z "$LD" && LD="$ac_prog"
   4009       ;;
   4010   "")
   4011     # If it fails, then pretend we aren't using GCC.
   4012     ac_prog=ld
   4013     ;;
   4014   *)
   4015     # If it is relative, then search for the first ld in PATH.
   4016     with_gnu_ld=unknown
   4017     ;;
   4018   esac
   4019 elif test "$with_gnu_ld" = yes; then
   4020   { echo "$as_me:$LINENO: checking for GNU ld" >&5
   4021 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
   4022 else
   4023   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
   4024 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
   4025 fi
   4026 if test "${lt_cv_path_LD+set}" = set; then
   4027   echo $ECHO_N "(cached) $ECHO_C" >&6
   4028 else
   4029   if test -z "$LD"; then
   4030   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   4031   for ac_dir in $PATH; do
   4032     IFS="$lt_save_ifs"
   4033     test -z "$ac_dir" && ac_dir=.
   4034     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4035       lt_cv_path_LD="$ac_dir/$ac_prog"
   4036       # Check to see if the program is GNU ld.  I'd rather use --version,
   4037       # but apparently some variants of GNU ld only accept -v.
   4038       # Break only if it was the GNU/non-GNU ld that we prefer.
   4039       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4040       *GNU* | *'with BFD'*)
   4041 	test "$with_gnu_ld" != no && break
   4042 	;;
   4043       *)
   4044 	test "$with_gnu_ld" != yes && break
   4045 	;;
   4046       esac
   4047     fi
   4048   done
   4049   IFS="$lt_save_ifs"
   4050 else
   4051   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   4052 fi
   4053 fi
   4054 
   4055 LD="$lt_cv_path_LD"
   4056 if test -n "$LD"; then
   4057   { echo "$as_me:$LINENO: result: $LD" >&5
   4058 echo "${ECHO_T}$LD" >&6; }
   4059 else
   4060   { echo "$as_me:$LINENO: result: no" >&5
   4061 echo "${ECHO_T}no" >&6; }
   4062 fi
   4063 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
   4064 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   4065    { (exit 1); exit 1; }; }
   4066 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
   4067 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
   4068 if test "${lt_cv_prog_gnu_ld+set}" = set; then
   4069   echo $ECHO_N "(cached) $ECHO_C" >&6
   4070 else
   4071   # I'd rather use --version here, but apparently some GNU lds only accept -v.
   4072 case `$LD -v 2>&1 </dev/null` in
   4073 *GNU* | *'with BFD'*)
   4074   lt_cv_prog_gnu_ld=yes
   4075   ;;
   4076 *)
   4077   lt_cv_prog_gnu_ld=no
   4078   ;;
   4079 esac
   4080 fi
   4081 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
   4082 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
   4083 with_gnu_ld=$lt_cv_prog_gnu_ld
   4084 
   4085 
   4086 
   4087 
   4088 
   4089 
   4090 
   4091 
   4092 
   4093 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
   4094 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
   4095 if test "${lt_cv_path_NM+set}" = set; then
   4096   echo $ECHO_N "(cached) $ECHO_C" >&6
   4097 else
   4098   if test -n "$NM"; then
   4099   # Let the user override the test.
   4100   lt_cv_path_NM="$NM"
   4101 else
   4102   lt_nm_to_check="${ac_tool_prefix}nm"
   4103   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
   4104     lt_nm_to_check="$lt_nm_to_check nm"
   4105   fi
   4106   for lt_tmp_nm in $lt_nm_to_check; do
   4107     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   4108     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
   4109       IFS="$lt_save_ifs"
   4110       test -z "$ac_dir" && ac_dir=.
   4111       tmp_nm="$ac_dir/$lt_tmp_nm"
   4112       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   4113 	# Check to see if the nm accepts a BSD-compat flag.
   4114 	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
   4115 	#   nm: unknown option "B" ignored
   4116 	# Tru64's nm complains that /dev/null is an invalid object file
   4117 	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   4118 	*/dev/null* | *'Invalid file or object type'*)
   4119 	  lt_cv_path_NM="$tmp_nm -B"
   4120 	  break
   4121 	  ;;
   4122 	*)
   4123 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4124 	  */dev/null*)
   4125 	    lt_cv_path_NM="$tmp_nm -p"
   4126 	    break
   4127 	    ;;
   4128 	  *)
   4129 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4130 	    continue # so that we can try to find one that supports BSD flags
   4131 	    ;;
   4132 	  esac
   4133 	  ;;
   4134 	esac
   4135       fi
   4136     done
   4137     IFS="$lt_save_ifs"
   4138   done
   4139   : ${lt_cv_path_NM=no}
   4140 fi
   4141 fi
   4142 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
   4143 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
   4144 if test "$lt_cv_path_NM" != "no"; then
   4145   NM="$lt_cv_path_NM"
   4146 else
   4147   # Didn't find any BSD compatible name lister, look for dumpbin.
   4148   if test -n "$ac_tool_prefix"; then
   4149   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
   4150   do
   4151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4155 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
   4156   echo $ECHO_N "(cached) $ECHO_C" >&6
   4157 else
   4158   if test -n "$DUMPBIN"; then
   4159   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
   4160 else
   4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4162 for as_dir in $PATH
   4163 do
   4164   IFS=$as_save_IFS
   4165   test -z "$as_dir" && as_dir=.
   4166   for ac_exec_ext in '' $ac_executable_extensions; do
   4167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4168     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
   4169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4170     break 2
   4171   fi
   4172 done
   4173 done
   4174 IFS=$as_save_IFS
   4175 
   4176 fi
   4177 fi
   4178 DUMPBIN=$ac_cv_prog_DUMPBIN
   4179 if test -n "$DUMPBIN"; then
   4180   { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
   4181 echo "${ECHO_T}$DUMPBIN" >&6; }
   4182 else
   4183   { echo "$as_me:$LINENO: result: no" >&5
   4184 echo "${ECHO_T}no" >&6; }
   4185 fi
   4186 
   4187 
   4188     test -n "$DUMPBIN" && break
   4189   done
   4190 fi
   4191 if test -z "$DUMPBIN"; then
   4192   ac_ct_DUMPBIN=$DUMPBIN
   4193   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
   4194 do
   4195   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4196 set dummy $ac_prog; ac_word=$2
   4197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4199 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
   4200   echo $ECHO_N "(cached) $ECHO_C" >&6
   4201 else
   4202   if test -n "$ac_ct_DUMPBIN"; then
   4203   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
   4204 else
   4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4206 for as_dir in $PATH
   4207 do
   4208   IFS=$as_save_IFS
   4209   test -z "$as_dir" && as_dir=.
   4210   for ac_exec_ext in '' $ac_executable_extensions; do
   4211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4212     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
   4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4214     break 2
   4215   fi
   4216 done
   4217 done
   4218 IFS=$as_save_IFS
   4219 
   4220 fi
   4221 fi
   4222 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
   4223 if test -n "$ac_ct_DUMPBIN"; then
   4224   { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
   4225 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
   4226 else
   4227   { echo "$as_me:$LINENO: result: no" >&5
   4228 echo "${ECHO_T}no" >&6; }
   4229 fi
   4230 
   4231 
   4232   test -n "$ac_ct_DUMPBIN" && break
   4233 done
   4234 
   4235   if test "x$ac_ct_DUMPBIN" = x; then
   4236     DUMPBIN=":"
   4237   else
   4238     case $cross_compiling:$ac_tool_warned in
   4239 yes:)
   4240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   4241 whose name does not start with the host triplet.  If you think this
   4242 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   4243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   4244 whose name does not start with the host triplet.  If you think this
   4245 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   4246 ac_tool_warned=yes ;;
   4247 esac
   4248     DUMPBIN=$ac_ct_DUMPBIN
   4249   fi
   4250 fi
   4251 
   4252 
   4253   if test "$DUMPBIN" != ":"; then
   4254     NM="$DUMPBIN"
   4255   fi
   4256 fi
   4257 test -z "$NM" && NM=nm
   4258 
   4259 
   4260 
   4261 
   4262 
   4263 
   4264 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
   4265 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
   4266 if test "${lt_cv_nm_interface+set}" = set; then
   4267   echo $ECHO_N "(cached) $ECHO_C" >&6
   4268 else
   4269   lt_cv_nm_interface="BSD nm"
   4270   echo "int some_variable = 0;" > conftest.$ac_ext
   4271   (eval echo "\"\$as_me:4271: $ac_compile\"" >&5)
   4272   (eval "$ac_compile" 2>conftest.err)
   4273   cat conftest.err >&5
   4274   (eval echo "\"\$as_me:4274: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
   4275   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
   4276   cat conftest.err >&5
   4277   (eval echo "\"\$as_me:4277: output\"" >&5)
   4278   cat conftest.out >&5
   4279   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
   4280     lt_cv_nm_interface="MS dumpbin"
   4281   fi
   4282   rm -f conftest*
   4283 fi
   4284 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
   4285 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
   4286 
   4287 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
   4288 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
   4289 LN_S=$as_ln_s
   4290 if test "$LN_S" = "ln -s"; then
   4291   { echo "$as_me:$LINENO: result: yes" >&5
   4292 echo "${ECHO_T}yes" >&6; }
   4293 else
   4294   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   4295 echo "${ECHO_T}no, using $LN_S" >&6; }
   4296 fi
   4297 
   4298 # find the maximum length of command line arguments
   4299 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
   4300 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
   4301 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
   4302   echo $ECHO_N "(cached) $ECHO_C" >&6
   4303 else
   4304     i=0
   4305   teststring="ABCD"
   4306 
   4307   case $build_os in
   4308   msdosdjgpp*)
   4309     # On DJGPP, this test can blow up pretty badly due to problems in libc
   4310     # (any single argument exceeding 2000 bytes causes a buffer overrun
   4311     # during glob expansion).  Even if it were fixed, the result of this
   4312     # check would be larger than it should be.
   4313     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   4314     ;;
   4315 
   4316   gnu*)
   4317     # Under GNU Hurd, this test is not required because there is
   4318     # no limit to the length of command line arguments.
   4319     # Libtool will interpret -1 as no limit whatsoever
   4320     lt_cv_sys_max_cmd_len=-1;
   4321     ;;
   4322 
   4323   cygwin* | mingw* | cegcc*)
   4324     # On Win9x/ME, this test blows up -- it succeeds, but takes
   4325     # about 5 minutes as the teststring grows exponentially.
   4326     # Worse, since 9x/ME are not pre-emptively multitasking,
   4327     # you end up with a "frozen" computer, even though with patience
   4328     # the test eventually succeeds (with a max line length of 256k).
   4329     # Instead, let's just punt: use the minimum linelength reported by
   4330     # all of the supported platforms: 8192 (on NT/2K/XP).
   4331     lt_cv_sys_max_cmd_len=8192;
   4332     ;;
   4333 
   4334   amigaos*)
   4335     # On AmigaOS with pdksh, this test takes hours, literally.
   4336     # So we just punt and use a minimum line length of 8192.
   4337     lt_cv_sys_max_cmd_len=8192;
   4338     ;;
   4339 
   4340   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
   4341     # This has been around since 386BSD, at least.  Likely further.
   4342     if test -x /sbin/sysctl; then
   4343       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
   4344     elif test -x /usr/sbin/sysctl; then
   4345       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
   4346     else
   4347       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
   4348     fi
   4349     # And add a safety zone
   4350     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4351     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4352     ;;
   4353 
   4354   interix*)
   4355     # We know the value 262144 and hardcode it with a safety zone (like BSD)
   4356     lt_cv_sys_max_cmd_len=196608
   4357     ;;
   4358 
   4359   osf*)
   4360     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   4361     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   4362     # nice to cause kernel panics so lets avoid the loop below.
   4363     # First set a reasonable default.
   4364     lt_cv_sys_max_cmd_len=16384
   4365     #
   4366     if test -x /sbin/sysconfig; then
   4367       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
   4368         *1*) lt_cv_sys_max_cmd_len=-1 ;;
   4369       esac
   4370     fi
   4371     ;;
   4372   sco3.2v5*)
   4373     lt_cv_sys_max_cmd_len=102400
   4374     ;;
   4375   sysv5* | sco5v6* | sysv4.2uw2*)
   4376     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
   4377     if test -n "$kargmax"; then
   4378       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
   4379     else
   4380       lt_cv_sys_max_cmd_len=32768
   4381     fi
   4382     ;;
   4383   *)
   4384     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
   4385     if test -n "$lt_cv_sys_max_cmd_len"; then
   4386       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
   4387       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
   4388     else
   4389       # Make teststring a little bigger before we do anything with it.
   4390       # a 1K string should be a reasonable start.
   4391       for i in 1 2 3 4 5 6 7 8 ; do
   4392         teststring=$teststring$teststring
   4393       done
   4394       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
   4395       # If test is not a shell built-in, we'll probably end up computing a
   4396       # maximum length that is only half of the actual maximum length, but
   4397       # we can't tell.
   4398       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
   4399 	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
   4400 	      test $i != 17 # 1/2 MB should be enough
   4401       do
   4402         i=`expr $i + 1`
   4403         teststring=$teststring$teststring
   4404       done
   4405       # Only check the string length outside the loop.
   4406       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
   4407       teststring=
   4408       # Add a significant safety factor because C++ compilers can tack on
   4409       # massive amounts of additional arguments before passing them to the
   4410       # linker.  It appears as though 1/2 is a usable value.
   4411       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   4412     fi
   4413     ;;
   4414   esac
   4415 
   4416 fi
   4417 
   4418 if test -n $lt_cv_sys_max_cmd_len ; then
   4419   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
   4420 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
   4421 else
   4422   { echo "$as_me:$LINENO: result: none" >&5
   4423 echo "${ECHO_T}none" >&6; }
   4424 fi
   4425 max_cmd_len=$lt_cv_sys_max_cmd_len
   4426 
   4427 
   4428 
   4429 
   4430 
   4431 
   4432 : ${CP="cp -f"}
   4433 : ${MV="mv -f"}
   4434 : ${RM="rm -f"}
   4435 
   4436 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
   4437 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
   4438 # Try some XSI features
   4439 xsi_shell=no
   4440 ( _lt_dummy="a/b/c"
   4441   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
   4442       = c,a/b,, \
   4443     && eval 'test $(( 1 + 1 )) -eq 2 \
   4444     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
   4445   && xsi_shell=yes
   4446 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
   4447 echo "${ECHO_T}$xsi_shell" >&6; }
   4448 
   4449 
   4450 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
   4451 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
   4452 lt_shell_append=no
   4453 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
   4454     >/dev/null 2>&1 \
   4455   && lt_shell_append=yes
   4456 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
   4457 echo "${ECHO_T}$lt_shell_append" >&6; }
   4458 
   4459 
   4460 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   4461   lt_unset=unset
   4462 else
   4463   lt_unset=false
   4464 fi
   4465 
   4466 
   4467 
   4468 
   4469 
   4470 # test EBCDIC or ASCII
   4471 case `echo X|tr X '\101'` in
   4472  A) # ASCII based system
   4473     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
   4474   lt_SP2NL='tr \040 \012'
   4475   lt_NL2SP='tr \015\012 \040\040'
   4476   ;;
   4477  *) # EBCDIC based system
   4478   lt_SP2NL='tr \100 \n'
   4479   lt_NL2SP='tr \r\n \100\100'
   4480   ;;
   4481 esac
   4482 
   4483 
   4484 
   4485 
   4486 
   4487 
   4488 
   4489 
   4490 
   4491 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
   4492 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
   4493 if test "${lt_cv_ld_reload_flag+set}" = set; then
   4494   echo $ECHO_N "(cached) $ECHO_C" >&6
   4495 else
   4496   lt_cv_ld_reload_flag='-r'
   4497 fi
   4498 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
   4499 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
   4500 reload_flag=$lt_cv_ld_reload_flag
   4501 case $reload_flag in
   4502 "" | " "*) ;;
   4503 *) reload_flag=" $reload_flag" ;;
   4504 esac
   4505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4506 case $host_os in
   4507   darwin*)
   4508     if test "$GCC" = yes; then
   4509       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
   4510     else
   4511       reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4512     fi
   4513     ;;
   4514 esac
   4515 
   4516 
   4517 
   4518 
   4519 
   4520 
   4521 
   4522 
   4523 
   4524 if test -n "$ac_tool_prefix"; then
   4525   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
   4526 set dummy ${ac_tool_prefix}objdump; ac_word=$2
   4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4529 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
   4530   echo $ECHO_N "(cached) $ECHO_C" >&6
   4531 else
   4532   if test -n "$OBJDUMP"; then
   4533   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
   4534 else
   4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4536 for as_dir in $PATH
   4537 do
   4538   IFS=$as_save_IFS
   4539   test -z "$as_dir" && as_dir=.
   4540   for ac_exec_ext in '' $ac_executable_extensions; do
   4541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4542     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
   4543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4544     break 2
   4545   fi
   4546 done
   4547 done
   4548 IFS=$as_save_IFS
   4549 
   4550 fi
   4551 fi
   4552 OBJDUMP=$ac_cv_prog_OBJDUMP
   4553 if test -n "$OBJDUMP"; then
   4554   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
   4555 echo "${ECHO_T}$OBJDUMP" >&6; }
   4556 else
   4557   { echo "$as_me:$LINENO: result: no" >&5
   4558 echo "${ECHO_T}no" >&6; }
   4559 fi
   4560 
   4561 
   4562 fi
   4563 if test -z "$ac_cv_prog_OBJDUMP"; then
   4564   ac_ct_OBJDUMP=$OBJDUMP
   4565   # Extract the first word of "objdump", so it can be a program name with args.
   4566 set dummy objdump; ac_word=$2
   4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4569 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
   4570   echo $ECHO_N "(cached) $ECHO_C" >&6
   4571 else
   4572   if test -n "$ac_ct_OBJDUMP"; then
   4573   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
   4574 else
   4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4576 for as_dir in $PATH
   4577 do
   4578   IFS=$as_save_IFS
   4579   test -z "$as_dir" && as_dir=.
   4580   for ac_exec_ext in '' $ac_executable_extensions; do
   4581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4582     ac_cv_prog_ac_ct_OBJDUMP="objdump"
   4583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4584     break 2
   4585   fi
   4586 done
   4587 done
   4588 IFS=$as_save_IFS
   4589 
   4590 fi
   4591 fi
   4592 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
   4593 if test -n "$ac_ct_OBJDUMP"; then
   4594   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
   4595 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
   4596 else
   4597   { echo "$as_me:$LINENO: result: no" >&5
   4598 echo "${ECHO_T}no" >&6; }
   4599 fi
   4600 
   4601   if test "x$ac_ct_OBJDUMP" = x; then
   4602     OBJDUMP="false"
   4603   else
   4604     case $cross_compiling:$ac_tool_warned in
   4605 yes:)
   4606 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   4607 whose name does not start with the host triplet.  If you think this
   4608 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   4609 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   4610 whose name does not start with the host triplet.  If you think this
   4611 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   4612 ac_tool_warned=yes ;;
   4613 esac
   4614     OBJDUMP=$ac_ct_OBJDUMP
   4615   fi
   4616 else
   4617   OBJDUMP="$ac_cv_prog_OBJDUMP"
   4618 fi
   4619 
   4620 test -z "$OBJDUMP" && OBJDUMP=objdump
   4621 
   4622 
   4623 
   4624 
   4625 
   4626 
   4627 
   4628 
   4629 
   4630 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
   4631 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
   4632 if test "${lt_cv_deplibs_check_method+set}" = set; then
   4633   echo $ECHO_N "(cached) $ECHO_C" >&6
   4634 else
   4635   lt_cv_file_magic_cmd='$MAGIC_CMD'
   4636 lt_cv_file_magic_test_file=
   4637 lt_cv_deplibs_check_method='unknown'
   4638 # Need to set the preceding variable on all platforms that support
   4639 # interlibrary dependencies.
   4640 # 'none' -- dependencies not supported.
   4641 # `unknown' -- same as none, but documents that we really don't know.
   4642 # 'pass_all' -- all dependencies passed with no checks.
   4643 # 'test_compile' -- check by making test program.
   4644 # 'file_magic [[regex]]' -- check by looking for files in library path
   4645 # which responds to the $file_magic_cmd with a given extended regex.
   4646 # If you have `file' or equivalent on your system and you're not sure
   4647 # whether `pass_all' will *always* work, you probably want this one.
   4648 
   4649 case $host_os in
   4650 aix[4-9]*)
   4651   lt_cv_deplibs_check_method=pass_all
   4652   ;;
   4653 
   4654 beos*)
   4655   lt_cv_deplibs_check_method=pass_all
   4656   ;;
   4657 
   4658 bsdi[45]*)
   4659   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4660   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4661   lt_cv_file_magic_test_file=/shlib/libc.so
   4662   ;;
   4663 
   4664 cygwin*)
   4665   # func_win32_libid is a shell function defined in ltmain.sh
   4666   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4667   lt_cv_file_magic_cmd='func_win32_libid'
   4668   ;;
   4669 
   4670 mingw* | pw32*)
   4671   # Base MSYS/MinGW do not provide the 'file' command needed by
   4672   # func_win32_libid shell function, so use a weaker test based on 'objdump',
   4673   # unless we find 'file', for example because we are cross-compiling.
   4674   if ( file / ) >/dev/null 2>&1; then
   4675     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4676     lt_cv_file_magic_cmd='func_win32_libid'
   4677   else
   4678     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
   4679     lt_cv_file_magic_cmd='$OBJDUMP -f'
   4680   fi
   4681   ;;
   4682 
   4683 cegcc)
   4684   # use the weaker test based on 'objdump'. See mingw*.
   4685   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
   4686   lt_cv_file_magic_cmd='$OBJDUMP -f'
   4687   ;;
   4688 
   4689 darwin* | rhapsody*)
   4690   lt_cv_deplibs_check_method=pass_all
   4691   ;;
   4692 
   4693 freebsd* | dragonfly*)
   4694   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4695     case $host_cpu in
   4696     i*86 )
   4697       # Not sure whether the presence of OpenBSD here was a mistake.
   4698       # Let's accept both of them until this is cleared up.
   4699       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
   4700       lt_cv_file_magic_cmd=/usr/bin/file
   4701       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4702       ;;
   4703     esac
   4704   else
   4705     lt_cv_deplibs_check_method=pass_all
   4706   fi
   4707   ;;
   4708 
   4709 gnu*)
   4710   lt_cv_deplibs_check_method=pass_all
   4711   ;;
   4712 
   4713 hpux10.20* | hpux11*)
   4714   lt_cv_file_magic_cmd=/usr/bin/file
   4715   case $host_cpu in
   4716   ia64*)
   4717     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   4718     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   4719     ;;
   4720   hppa*64*)
   4721     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]'
   4722     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   4723     ;;
   4724   *)
   4725     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
   4726     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   4727     ;;
   4728   esac
   4729   ;;
   4730 
   4731 interix[3-9]*)
   4732   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
   4733   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
   4734   ;;
   4735 
   4736 irix5* | irix6* | nonstopux*)
   4737   case $LD in
   4738   *-32|*"-32 ") libmagic=32-bit;;
   4739   *-n32|*"-n32 ") libmagic=N32;;
   4740   *-64|*"-64 ") libmagic=64-bit;;
   4741   *) libmagic=never-match;;
   4742   esac
   4743   lt_cv_deplibs_check_method=pass_all
   4744   ;;
   4745 
   4746 # This must be Linux ELF.
   4747 linux* | k*bsd*-gnu)
   4748   lt_cv_deplibs_check_method=pass_all
   4749   ;;
   4750 
   4751 netbsd* | netbsdelf*-gnu)
   4752   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
   4753     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   4754   else
   4755     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   4756   fi
   4757   ;;
   4758 
   4759 newos6*)
   4760   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   4761   lt_cv_file_magic_cmd=/usr/bin/file
   4762   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   4763   ;;
   4764 
   4765 *nto* | *qnx*)
   4766   lt_cv_deplibs_check_method=pass_all
   4767   ;;
   4768 
   4769 openbsd*)
   4770   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   4771     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
   4772   else
   4773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   4774   fi
   4775   ;;
   4776 
   4777 osf3* | osf4* | osf5*)
   4778   lt_cv_deplibs_check_method=pass_all
   4779   ;;
   4780 
   4781 rdos*)
   4782   lt_cv_deplibs_check_method=pass_all
   4783   ;;
   4784 
   4785 solaris*)
   4786   lt_cv_deplibs_check_method=pass_all
   4787   ;;
   4788 
   4789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   4790   lt_cv_deplibs_check_method=pass_all
   4791   ;;
   4792 
   4793 sysv4 | sysv4.3*)
   4794   case $host_vendor in
   4795   motorola)
   4796     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]'
   4797     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   4798     ;;
   4799   ncr)
   4800     lt_cv_deplibs_check_method=pass_all
   4801     ;;
   4802   sequent)
   4803     lt_cv_file_magic_cmd='/bin/file'
   4804     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   4805     ;;
   4806   sni)
   4807     lt_cv_file_magic_cmd='/bin/file'
   4808     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   4809     lt_cv_file_magic_test_file=/lib/libc.so
   4810     ;;
   4811   siemens)
   4812     lt_cv_deplibs_check_method=pass_all
   4813     ;;
   4814   pc)
   4815     lt_cv_deplibs_check_method=pass_all
   4816     ;;
   4817   esac
   4818   ;;
   4819 
   4820 tpf*)
   4821   lt_cv_deplibs_check_method=pass_all
   4822   ;;
   4823 esac
   4824 
   4825 fi
   4826 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
   4827 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
   4828 file_magic_cmd=$lt_cv_file_magic_cmd
   4829 deplibs_check_method=$lt_cv_deplibs_check_method
   4830 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   4831 
   4832 
   4833 
   4834 
   4835 
   4836 
   4837 
   4838 
   4839 
   4840 
   4841 
   4842 
   4843 if test -n "$ac_tool_prefix"; then
   4844   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   4845 set dummy ${ac_tool_prefix}ar; ac_word=$2
   4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4848 if test "${ac_cv_prog_AR+set}" = set; then
   4849   echo $ECHO_N "(cached) $ECHO_C" >&6
   4850 else
   4851   if test -n "$AR"; then
   4852   ac_cv_prog_AR="$AR" # Let the user override the test.
   4853 else
   4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4855 for as_dir in $PATH
   4856 do
   4857   IFS=$as_save_IFS
   4858   test -z "$as_dir" && as_dir=.
   4859   for ac_exec_ext in '' $ac_executable_extensions; do
   4860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4861     ac_cv_prog_AR="${ac_tool_prefix}ar"
   4862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4863     break 2
   4864   fi
   4865 done
   4866 done
   4867 IFS=$as_save_IFS
   4868 
   4869 fi
   4870 fi
   4871 AR=$ac_cv_prog_AR
   4872 if test -n "$AR"; then
   4873   { echo "$as_me:$LINENO: result: $AR" >&5
   4874 echo "${ECHO_T}$AR" >&6; }
   4875 else
   4876   { echo "$as_me:$LINENO: result: no" >&5
   4877 echo "${ECHO_T}no" >&6; }
   4878 fi
   4879 
   4880 
   4881 fi
   4882 if test -z "$ac_cv_prog_AR"; then
   4883   ac_ct_AR=$AR
   4884   # Extract the first word of "ar", so it can be a program name with args.
   4885 set dummy ar; ac_word=$2
   4886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4888 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   4889   echo $ECHO_N "(cached) $ECHO_C" >&6
   4890 else
   4891   if test -n "$ac_ct_AR"; then
   4892   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   4893 else
   4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4895 for as_dir in $PATH
   4896 do
   4897   IFS=$as_save_IFS
   4898   test -z "$as_dir" && as_dir=.
   4899   for ac_exec_ext in '' $ac_executable_extensions; do
   4900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4901     ac_cv_prog_ac_ct_AR="ar"
   4902     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4903     break 2
   4904   fi
   4905 done
   4906 done
   4907 IFS=$as_save_IFS
   4908 
   4909 fi
   4910 fi
   4911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   4912 if test -n "$ac_ct_AR"; then
   4913   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   4914 echo "${ECHO_T}$ac_ct_AR" >&6; }
   4915 else
   4916   { echo "$as_me:$LINENO: result: no" >&5
   4917 echo "${ECHO_T}no" >&6; }
   4918 fi
   4919 
   4920   if test "x$ac_ct_AR" = x; then
   4921     AR="false"
   4922   else
   4923     case $cross_compiling:$ac_tool_warned in
   4924 yes:)
   4925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   4926 whose name does not start with the host triplet.  If you think this
   4927 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   4928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   4929 whose name does not start with the host triplet.  If you think this
   4930 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   4931 ac_tool_warned=yes ;;
   4932 esac
   4933     AR=$ac_ct_AR
   4934   fi
   4935 else
   4936   AR="$ac_cv_prog_AR"
   4937 fi
   4938 
   4939 test -z "$AR" && AR=ar
   4940 test -z "$AR_FLAGS" && AR_FLAGS=cru
   4941 
   4942 
   4943 
   4944 
   4945 
   4946 
   4947 
   4948 
   4949 
   4950 
   4951 
   4952 if test -n "$ac_tool_prefix"; then
   4953   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4954 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4957 if test "${ac_cv_prog_STRIP+set}" = set; then
   4958   echo $ECHO_N "(cached) $ECHO_C" >&6
   4959 else
   4960   if test -n "$STRIP"; then
   4961   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4962 else
   4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4964 for as_dir in $PATH
   4965 do
   4966   IFS=$as_save_IFS
   4967   test -z "$as_dir" && as_dir=.
   4968   for ac_exec_ext in '' $ac_executable_extensions; do
   4969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4970     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   4972     break 2
   4973   fi
   4974 done
   4975 done
   4976 IFS=$as_save_IFS
   4977 
   4978 fi
   4979 fi
   4980 STRIP=$ac_cv_prog_STRIP
   4981 if test -n "$STRIP"; then
   4982   { echo "$as_me:$LINENO: result: $STRIP" >&5
   4983 echo "${ECHO_T}$STRIP" >&6; }
   4984 else
   4985   { echo "$as_me:$LINENO: result: no" >&5
   4986 echo "${ECHO_T}no" >&6; }
   4987 fi
   4988 
   4989 
   4990 fi
   4991 if test -z "$ac_cv_prog_STRIP"; then
   4992   ac_ct_STRIP=$STRIP
   4993   # Extract the first word of "strip", so it can be a program name with args.
   4994 set dummy strip; ac_word=$2
   4995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   4996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   4997 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
   4998   echo $ECHO_N "(cached) $ECHO_C" >&6
   4999 else
   5000   if test -n "$ac_ct_STRIP"; then
   5001   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5002 else
   5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5004 for as_dir in $PATH
   5005 do
   5006   IFS=$as_save_IFS
   5007   test -z "$as_dir" && as_dir=.
   5008   for ac_exec_ext in '' $ac_executable_extensions; do
   5009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5010     ac_cv_prog_ac_ct_STRIP="strip"
   5011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5012     break 2
   5013   fi
   5014 done
   5015 done
   5016 IFS=$as_save_IFS
   5017 
   5018 fi
   5019 fi
   5020 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5021 if test -n "$ac_ct_STRIP"; then
   5022   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
   5023 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
   5024 else
   5025   { echo "$as_me:$LINENO: result: no" >&5
   5026 echo "${ECHO_T}no" >&6; }
   5027 fi
   5028 
   5029   if test "x$ac_ct_STRIP" = x; then
   5030     STRIP=":"
   5031   else
   5032     case $cross_compiling:$ac_tool_warned in
   5033 yes:)
   5034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5035 whose name does not start with the host triplet.  If you think this
   5036 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5038 whose name does not start with the host triplet.  If you think this
   5039 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5040 ac_tool_warned=yes ;;
   5041 esac
   5042     STRIP=$ac_ct_STRIP
   5043   fi
   5044 else
   5045   STRIP="$ac_cv_prog_STRIP"
   5046 fi
   5047 
   5048 test -z "$STRIP" && STRIP=:
   5049 
   5050 
   5051 
   5052 
   5053 
   5054 
   5055 if test -n "$ac_tool_prefix"; then
   5056   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5057 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5060 if test "${ac_cv_prog_RANLIB+set}" = set; then
   5061   echo $ECHO_N "(cached) $ECHO_C" >&6
   5062 else
   5063   if test -n "$RANLIB"; then
   5064   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5065 else
   5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5067 for as_dir in $PATH
   5068 do
   5069   IFS=$as_save_IFS
   5070   test -z "$as_dir" && as_dir=.
   5071   for ac_exec_ext in '' $ac_executable_extensions; do
   5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5073     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5075     break 2
   5076   fi
   5077 done
   5078 done
   5079 IFS=$as_save_IFS
   5080 
   5081 fi
   5082 fi
   5083 RANLIB=$ac_cv_prog_RANLIB
   5084 if test -n "$RANLIB"; then
   5085   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   5086 echo "${ECHO_T}$RANLIB" >&6; }
   5087 else
   5088   { echo "$as_me:$LINENO: result: no" >&5
   5089 echo "${ECHO_T}no" >&6; }
   5090 fi
   5091 
   5092 
   5093 fi
   5094 if test -z "$ac_cv_prog_RANLIB"; then
   5095   ac_ct_RANLIB=$RANLIB
   5096   # Extract the first word of "ranlib", so it can be a program name with args.
   5097 set dummy ranlib; ac_word=$2
   5098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5100 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   5101   echo $ECHO_N "(cached) $ECHO_C" >&6
   5102 else
   5103   if test -n "$ac_ct_RANLIB"; then
   5104   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5105 else
   5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5107 for as_dir in $PATH
   5108 do
   5109   IFS=$as_save_IFS
   5110   test -z "$as_dir" && as_dir=.
   5111   for ac_exec_ext in '' $ac_executable_extensions; do
   5112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5113     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5115     break 2
   5116   fi
   5117 done
   5118 done
   5119 IFS=$as_save_IFS
   5120 
   5121 fi
   5122 fi
   5123 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5124 if test -n "$ac_ct_RANLIB"; then
   5125   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   5126 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   5127 else
   5128   { echo "$as_me:$LINENO: result: no" >&5
   5129 echo "${ECHO_T}no" >&6; }
   5130 fi
   5131 
   5132   if test "x$ac_ct_RANLIB" = x; then
   5133     RANLIB=":"
   5134   else
   5135     case $cross_compiling:$ac_tool_warned in
   5136 yes:)
   5137 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5138 whose name does not start with the host triplet.  If you think this
   5139 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5140 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5141 whose name does not start with the host triplet.  If you think this
   5142 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5143 ac_tool_warned=yes ;;
   5144 esac
   5145     RANLIB=$ac_ct_RANLIB
   5146   fi
   5147 else
   5148   RANLIB="$ac_cv_prog_RANLIB"
   5149 fi
   5150 
   5151 test -z "$RANLIB" && RANLIB=:
   5152 
   5153 
   5154 
   5155 
   5156 
   5157 
   5158 # Determine commands to create old-style static archives.
   5159 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
   5160 old_postinstall_cmds='chmod 644 $oldlib'
   5161 old_postuninstall_cmds=
   5162 
   5163 if test -n "$RANLIB"; then
   5164   case $host_os in
   5165   openbsd*)
   5166     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   5167     ;;
   5168   *)
   5169     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   5170     ;;
   5171   esac
   5172   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   5173 fi
   5174 
   5175 
   5176 
   5177 
   5178 
   5179 
   5180 
   5181 
   5182 
   5183 
   5184 
   5185 
   5186 
   5187 
   5188 
   5189 
   5190 
   5191 
   5192 
   5193 
   5194 
   5195 
   5196 
   5197 
   5198 
   5199 
   5200 
   5201 
   5202 
   5203 
   5204 
   5205 
   5206 
   5207 
   5208 # If no C compiler was specified, use CC.
   5209 LTCC=${LTCC-"$CC"}
   5210 
   5211 # If no C compiler flags were specified, use CFLAGS.
   5212 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   5213 
   5214 # Allow CC to be a program name with arguments.
   5215 compiler=$CC
   5216 
   5217 
   5218 # Check for command to grab the raw symbol name followed by C symbol from nm.
   5219 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
   5220 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
   5221 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
   5222   echo $ECHO_N "(cached) $ECHO_C" >&6
   5223 else
   5224 
   5225 # These are sane defaults that work on at least a few old systems.
   5226 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5227 
   5228 # Character class describing NM global symbol codes.
   5229 symcode='[BCDEGRST]'
   5230 
   5231 # Regexp to match symbols that can be accessed directly from C.
   5232 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5233 
   5234 # Define system-specific variables.
   5235 case $host_os in
   5236 aix*)
   5237   symcode='[BCDT]'
   5238   ;;
   5239 cygwin* | mingw* | pw32* | cegcc*)
   5240   symcode='[ABCDGISTW]'
   5241   ;;
   5242 hpux*)
   5243   if test "$host_cpu" = ia64; then
   5244     symcode='[ABCDEGRST]'
   5245   fi
   5246   ;;
   5247 irix* | nonstopux*)
   5248   symcode='[BCDEGRST]'
   5249   ;;
   5250 osf*)
   5251   symcode='[BCDEGQRST]'
   5252   ;;
   5253 solaris*)
   5254   symcode='[BDRT]'
   5255   ;;
   5256 sco3.2v5*)
   5257   symcode='[DT]'
   5258   ;;
   5259 sysv4.2uw2*)
   5260   symcode='[DT]'
   5261   ;;
   5262 sysv5* | sco5v6* | unixware* | OpenUNIX*)
   5263   symcode='[ABDT]'
   5264   ;;
   5265 sysv4)
   5266   symcode='[DFNSTU]'
   5267   ;;
   5268 esac
   5269 
   5270 # If we're using GNU nm, then use its standard symbol codes.
   5271 case `$NM -V 2>&1` in
   5272 *GNU* | *'with BFD'*)
   5273   symcode='[ABCDGIRSTW]' ;;
   5274 esac
   5275 
   5276 # Transform an extracted symbol line into a proper C declaration.
   5277 # Some systems (esp. on ia64) link data and code symbols differently,
   5278 # so use this general approach.
   5279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   5280 
   5281 # Transform an extracted symbol line into symbol name and symbol address
   5282 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
   5283 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
   5284 
   5285 # Handle CRLF in mingw tool chain
   5286 opt_cr=
   5287 case $build_os in
   5288 mingw*)
   5289   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5290   ;;
   5291 esac
   5292 
   5293 # Try without a prefix underscore, then with it.
   5294 for ac_symprfx in "" "_"; do
   5295 
   5296   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
   5297   symxfrm="\\1 $ac_symprfx\\2 \\2"
   5298 
   5299   # Write the raw and C identifiers.
   5300   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
   5301     # Fake it for dumpbin and say T for any non-static function
   5302     # and D for any global variable.
   5303     # Also find C++ and __fastcall symbols from MSVC++,
   5304     # which start with @ or ?.
   5305     lt_cv_sys_global_symbol_pipe="$AWK '"\
   5306 "     {last_section=section; section=\$ 3};"\
   5307 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
   5308 "     \$ 0!~/External *\|/{next};"\
   5309 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
   5310 "     {if(hide[section]) next};"\
   5311 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
   5312 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
   5313 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
   5314 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
   5315 "     ' prfx=^$ac_symprfx"
   5316   else
   5317     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
   5318   fi
   5319 
   5320   # Check to see that the pipe works correctly.
   5321   pipe_works=no
   5322 
   5323   rm -f conftest*
   5324   cat > conftest.$ac_ext <<_LT_EOF
   5325 #ifdef __cplusplus
   5326 extern "C" {
   5327 #endif
   5328 char nm_test_var;
   5329 void nm_test_func(void);
   5330 void nm_test_func(void){}
   5331 #ifdef __cplusplus
   5332 }
   5333 #endif
   5334 int main(){nm_test_var='a';nm_test_func();return(0);}
   5335 _LT_EOF
   5336 
   5337   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5338   (eval $ac_compile) 2>&5
   5339   ac_status=$?
   5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5341   (exit $ac_status); }; then
   5342     # Now try to grab the symbols.
   5343     nlist=conftest.nm
   5344     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
   5345   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
   5346   ac_status=$?
   5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5348   (exit $ac_status); } && test -s "$nlist"; then
   5349       # Try sorting and uniquifying the output.
   5350       if sort "$nlist" | uniq > "$nlist"T; then
   5351 	mv -f "$nlist"T "$nlist"
   5352       else
   5353 	rm -f "$nlist"T
   5354       fi
   5355 
   5356       # Make sure that we snagged all the symbols we need.
   5357       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
   5358 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
   5359 	  cat <<_LT_EOF > conftest.$ac_ext
   5360 #ifdef __cplusplus
   5361 extern "C" {
   5362 #endif
   5363 
   5364 _LT_EOF
   5365 	  # Now generate the symbol file.
   5366 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
   5367 
   5368 	  cat <<_LT_EOF >> conftest.$ac_ext
   5369 
   5370 /* The mapping between symbol names and symbols.  */
   5371 const struct {
   5372   const char *name;
   5373   void       *address;
   5374 }
   5375 lt__PROGRAM__LTX_preloaded_symbols[] =
   5376 {
   5377   { "@PROGRAM@", (void *) 0 },
   5378 _LT_EOF
   5379 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
   5380 	  cat <<\_LT_EOF >> conftest.$ac_ext
   5381   {0, (void *) 0}
   5382 };
   5383 
   5384 /* This works around a problem in FreeBSD linker */
   5385 #ifdef FREEBSD_WORKAROUND
   5386 static const void *lt_preloaded_setup() {
   5387   return lt__PROGRAM__LTX_preloaded_symbols;
   5388 }
   5389 #endif
   5390 
   5391 #ifdef __cplusplus
   5392 }
   5393 #endif
   5394 _LT_EOF
   5395 	  # Now try linking the two files.
   5396 	  mv conftest.$ac_objext conftstm.$ac_objext
   5397 	  lt_save_LIBS="$LIBS"
   5398 	  lt_save_CFLAGS="$CFLAGS"
   5399 	  LIBS="conftstm.$ac_objext"
   5400 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   5401 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5402   (eval $ac_link) 2>&5
   5403   ac_status=$?
   5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5405   (exit $ac_status); } && test -s conftest${ac_exeext}; then
   5406 	    pipe_works=yes
   5407 	  fi
   5408 	  LIBS="$lt_save_LIBS"
   5409 	  CFLAGS="$lt_save_CFLAGS"
   5410 	else
   5411 	  echo "cannot find nm_test_func in $nlist" >&5
   5412 	fi
   5413       else
   5414 	echo "cannot find nm_test_var in $nlist" >&5
   5415       fi
   5416     else
   5417       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   5418     fi
   5419   else
   5420     echo "$progname: failed program was:" >&5
   5421     cat conftest.$ac_ext >&5
   5422   fi
   5423   rm -rf conftest* conftst*
   5424 
   5425   # Do not use the global_symbol_pipe unless it works.
   5426   if test "$pipe_works" = yes; then
   5427     break
   5428   else
   5429     lt_cv_sys_global_symbol_pipe=
   5430   fi
   5431 done
   5432 
   5433 fi
   5434 
   5435 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   5436   lt_cv_sys_global_symbol_to_cdecl=
   5437 fi
   5438 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   5439   { echo "$as_me:$LINENO: result: failed" >&5
   5440 echo "${ECHO_T}failed" >&6; }
   5441 else
   5442   { echo "$as_me:$LINENO: result: ok" >&5
   5443 echo "${ECHO_T}ok" >&6; }
   5444 fi
   5445 
   5446 
   5447 
   5448 
   5449 
   5450 
   5451 
   5452 
   5453 
   5454 
   5455 
   5456 
   5457 
   5458 
   5459 
   5460 
   5461 
   5462 
   5463 
   5464 
   5465 
   5466 
   5467 
   5468 # Check whether --enable-libtool-lock was given.
   5469 if test "${enable_libtool_lock+set}" = set; then
   5470   enableval=$enable_libtool_lock;
   5471 fi
   5472 
   5473 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   5474 
   5475 # Some flags need to be propagated to the compiler or linker for good
   5476 # libtool support.
   5477 case $host in
   5478 ia64-*-hpux*)
   5479   # Find out which ABI we are using.
   5480   echo 'int i;' > conftest.$ac_ext
   5481   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5482   (eval $ac_compile) 2>&5
   5483   ac_status=$?
   5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5485   (exit $ac_status); }; then
   5486     case `/usr/bin/file conftest.$ac_objext` in
   5487       *ELF-32*)
   5488 	HPUX_IA64_MODE="32"
   5489 	;;
   5490       *ELF-64*)
   5491 	HPUX_IA64_MODE="64"
   5492 	;;
   5493     esac
   5494   fi
   5495   rm -rf conftest*
   5496   ;;
   5497 *-*-irix6*)
   5498   # Find out which ABI we are using.
   5499   echo '#line 5499 "configure"' > conftest.$ac_ext
   5500   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5501   (eval $ac_compile) 2>&5
   5502   ac_status=$?
   5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5504   (exit $ac_status); }; then
   5505     if test "$lt_cv_prog_gnu_ld" = yes; then
   5506       case `/usr/bin/file conftest.$ac_objext` in
   5507 	*32-bit*)
   5508 	  LD="${LD-ld} -melf32bsmip"
   5509 	  ;;
   5510 	*N32*)
   5511 	  LD="${LD-ld} -melf32bmipn32"
   5512 	  ;;
   5513 	*64-bit*)
   5514 	  LD="${LD-ld} -melf64bmip"
   5515 	;;
   5516       esac
   5517     else
   5518       case `/usr/bin/file conftest.$ac_objext` in
   5519 	*32-bit*)
   5520 	  LD="${LD-ld} -32"
   5521 	  ;;
   5522 	*N32*)
   5523 	  LD="${LD-ld} -n32"
   5524 	  ;;
   5525 	*64-bit*)
   5526 	  LD="${LD-ld} -64"
   5527 	  ;;
   5528       esac
   5529     fi
   5530   fi
   5531   rm -rf conftest*
   5532   ;;
   5533 
   5534 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
   5535 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   5536   # Find out which ABI we are using.
   5537   echo 'int i;' > conftest.$ac_ext
   5538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5539   (eval $ac_compile) 2>&5
   5540   ac_status=$?
   5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5542   (exit $ac_status); }; then
   5543     case `/usr/bin/file conftest.o` in
   5544       *32-bit*)
   5545 	case $host in
   5546 	  x86_64-*kfreebsd*-gnu)
   5547 	    LD="${LD-ld} -m elf_i386_fbsd"
   5548 	    ;;
   5549 	  x86_64-*linux*)
   5550 	    LD="${LD-ld} -m elf_i386"
   5551 	    ;;
   5552 	  ppc64-*linux*|powerpc64-*linux*)
   5553 	    LD="${LD-ld} -m elf32ppclinux"
   5554 	    ;;
   5555 	  s390x-*linux*)
   5556 	    LD="${LD-ld} -m elf_s390"
   5557 	    ;;
   5558 	  sparc64-*linux*)
   5559 	    LD="${LD-ld} -m elf32_sparc"
   5560 	    ;;
   5561 	esac
   5562 	;;
   5563       *64-bit*)
   5564 	case $host in
   5565 	  x86_64-*kfreebsd*-gnu)
   5566 	    LD="${LD-ld} -m elf_x86_64_fbsd"
   5567 	    ;;
   5568 	  x86_64-*linux*)
   5569 	    LD="${LD-ld} -m elf_x86_64"
   5570 	    ;;
   5571 	  ppc*-*linux*|powerpc*-*linux*)
   5572 	    LD="${LD-ld} -m elf64ppc"
   5573 	    ;;
   5574 	  s390*-*linux*|s390*-*tpf*)
   5575 	    LD="${LD-ld} -m elf64_s390"
   5576 	    ;;
   5577 	  sparc*-*linux*)
   5578 	    LD="${LD-ld} -m elf64_sparc"
   5579 	    ;;
   5580 	esac
   5581 	;;
   5582     esac
   5583   fi
   5584   rm -rf conftest*
   5585   ;;
   5586 
   5587 *-*-sco3.2v5*)
   5588   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   5589   SAVE_CFLAGS="$CFLAGS"
   5590   CFLAGS="$CFLAGS -belf"
   5591   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
   5592 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
   5593 if test "${lt_cv_cc_needs_belf+set}" = set; then
   5594   echo $ECHO_N "(cached) $ECHO_C" >&6
   5595 else
   5596   ac_ext=c
   5597 ac_cpp='$CPP $CPPFLAGS'
   5598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5601 
   5602      cat >conftest.$ac_ext <<_ACEOF
   5603 /* confdefs.h.  */
   5604 _ACEOF
   5605 cat confdefs.h >>conftest.$ac_ext
   5606 cat >>conftest.$ac_ext <<_ACEOF
   5607 /* end confdefs.h.  */
   5608 
   5609 int
   5610 main ()
   5611 {
   5612 
   5613   ;
   5614   return 0;
   5615 }
   5616 _ACEOF
   5617 rm -f conftest.$ac_objext conftest$ac_exeext
   5618 if { (ac_try="$ac_link"
   5619 case "(($ac_try" in
   5620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5621   *) ac_try_echo=$ac_try;;
   5622 esac
   5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5624   (eval "$ac_link") 2>conftest.er1
   5625   ac_status=$?
   5626   grep -v '^ *+' conftest.er1 >conftest.err
   5627   rm -f conftest.er1
   5628   cat conftest.err >&5
   5629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5630   (exit $ac_status); } && {
   5631 	 test -z "$ac_c_werror_flag" ||
   5632 	 test ! -s conftest.err
   5633        } && test -s conftest$ac_exeext &&
   5634        $as_test_x conftest$ac_exeext; then
   5635   lt_cv_cc_needs_belf=yes
   5636 else
   5637   echo "$as_me: failed program was:" >&5
   5638 sed 's/^/| /' conftest.$ac_ext >&5
   5639 
   5640 	lt_cv_cc_needs_belf=no
   5641 fi
   5642 
   5643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   5644       conftest$ac_exeext conftest.$ac_ext
   5645      ac_ext=c
   5646 ac_cpp='$CPP $CPPFLAGS'
   5647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5650 
   5651 fi
   5652 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
   5653 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
   5654   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   5655     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   5656     CFLAGS="$SAVE_CFLAGS"
   5657   fi
   5658   ;;
   5659 sparc*-*solaris*)
   5660   # Find out which ABI we are using.
   5661   echo 'int i;' > conftest.$ac_ext
   5662   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5663   (eval $ac_compile) 2>&5
   5664   ac_status=$?
   5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5666   (exit $ac_status); }; then
   5667     case `/usr/bin/file conftest.o` in
   5668     *64-bit*)
   5669       case $lt_cv_prog_gnu_ld in
   5670       yes*) LD="${LD-ld} -m elf64_sparc" ;;
   5671       *)
   5672 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   5673 	  LD="${LD-ld} -64"
   5674 	fi
   5675 	;;
   5676       esac
   5677       ;;
   5678     esac
   5679   fi
   5680   rm -rf conftest*
   5681   ;;
   5682 esac
   5683 
   5684 need_locks="$enable_libtool_lock"
   5685 
   5686 
   5687   case $host_os in
   5688     rhapsody* | darwin*)
   5689     if test -n "$ac_tool_prefix"; then
   5690   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
   5691 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
   5692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5694 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
   5695   echo $ECHO_N "(cached) $ECHO_C" >&6
   5696 else
   5697   if test -n "$DSYMUTIL"; then
   5698   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
   5699 else
   5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5701 for as_dir in $PATH
   5702 do
   5703   IFS=$as_save_IFS
   5704   test -z "$as_dir" && as_dir=.
   5705   for ac_exec_ext in '' $ac_executable_extensions; do
   5706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5707     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
   5708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5709     break 2
   5710   fi
   5711 done
   5712 done
   5713 IFS=$as_save_IFS
   5714 
   5715 fi
   5716 fi
   5717 DSYMUTIL=$ac_cv_prog_DSYMUTIL
   5718 if test -n "$DSYMUTIL"; then
   5719   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
   5720 echo "${ECHO_T}$DSYMUTIL" >&6; }
   5721 else
   5722   { echo "$as_me:$LINENO: result: no" >&5
   5723 echo "${ECHO_T}no" >&6; }
   5724 fi
   5725 
   5726 
   5727 fi
   5728 if test -z "$ac_cv_prog_DSYMUTIL"; then
   5729   ac_ct_DSYMUTIL=$DSYMUTIL
   5730   # Extract the first word of "dsymutil", so it can be a program name with args.
   5731 set dummy dsymutil; ac_word=$2
   5732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5734 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
   5735   echo $ECHO_N "(cached) $ECHO_C" >&6
   5736 else
   5737   if test -n "$ac_ct_DSYMUTIL"; then
   5738   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
   5739 else
   5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5741 for as_dir in $PATH
   5742 do
   5743   IFS=$as_save_IFS
   5744   test -z "$as_dir" && as_dir=.
   5745   for ac_exec_ext in '' $ac_executable_extensions; do
   5746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5747     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
   5748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5749     break 2
   5750   fi
   5751 done
   5752 done
   5753 IFS=$as_save_IFS
   5754 
   5755 fi
   5756 fi
   5757 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
   5758 if test -n "$ac_ct_DSYMUTIL"; then
   5759   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
   5760 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
   5761 else
   5762   { echo "$as_me:$LINENO: result: no" >&5
   5763 echo "${ECHO_T}no" >&6; }
   5764 fi
   5765 
   5766   if test "x$ac_ct_DSYMUTIL" = x; then
   5767     DSYMUTIL=":"
   5768   else
   5769     case $cross_compiling:$ac_tool_warned in
   5770 yes:)
   5771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5772 whose name does not start with the host triplet.  If you think this
   5773 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5775 whose name does not start with the host triplet.  If you think this
   5776 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5777 ac_tool_warned=yes ;;
   5778 esac
   5779     DSYMUTIL=$ac_ct_DSYMUTIL
   5780   fi
   5781 else
   5782   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
   5783 fi
   5784 
   5785     if test -n "$ac_tool_prefix"; then
   5786   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
   5787 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
   5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5790 if test "${ac_cv_prog_NMEDIT+set}" = set; then
   5791   echo $ECHO_N "(cached) $ECHO_C" >&6
   5792 else
   5793   if test -n "$NMEDIT"; then
   5794   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
   5795 else
   5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5797 for as_dir in $PATH
   5798 do
   5799   IFS=$as_save_IFS
   5800   test -z "$as_dir" && as_dir=.
   5801   for ac_exec_ext in '' $ac_executable_extensions; do
   5802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5803     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
   5804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5805     break 2
   5806   fi
   5807 done
   5808 done
   5809 IFS=$as_save_IFS
   5810 
   5811 fi
   5812 fi
   5813 NMEDIT=$ac_cv_prog_NMEDIT
   5814 if test -n "$NMEDIT"; then
   5815   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
   5816 echo "${ECHO_T}$NMEDIT" >&6; }
   5817 else
   5818   { echo "$as_me:$LINENO: result: no" >&5
   5819 echo "${ECHO_T}no" >&6; }
   5820 fi
   5821 
   5822 
   5823 fi
   5824 if test -z "$ac_cv_prog_NMEDIT"; then
   5825   ac_ct_NMEDIT=$NMEDIT
   5826   # Extract the first word of "nmedit", so it can be a program name with args.
   5827 set dummy nmedit; ac_word=$2
   5828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5830 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
   5831   echo $ECHO_N "(cached) $ECHO_C" >&6
   5832 else
   5833   if test -n "$ac_ct_NMEDIT"; then
   5834   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
   5835 else
   5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5837 for as_dir in $PATH
   5838 do
   5839   IFS=$as_save_IFS
   5840   test -z "$as_dir" && as_dir=.
   5841   for ac_exec_ext in '' $ac_executable_extensions; do
   5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5843     ac_cv_prog_ac_ct_NMEDIT="nmedit"
   5844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5845     break 2
   5846   fi
   5847 done
   5848 done
   5849 IFS=$as_save_IFS
   5850 
   5851 fi
   5852 fi
   5853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
   5854 if test -n "$ac_ct_NMEDIT"; then
   5855   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
   5856 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
   5857 else
   5858   { echo "$as_me:$LINENO: result: no" >&5
   5859 echo "${ECHO_T}no" >&6; }
   5860 fi
   5861 
   5862   if test "x$ac_ct_NMEDIT" = x; then
   5863     NMEDIT=":"
   5864   else
   5865     case $cross_compiling:$ac_tool_warned in
   5866 yes:)
   5867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5868 whose name does not start with the host triplet.  If you think this
   5869 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5871 whose name does not start with the host triplet.  If you think this
   5872 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5873 ac_tool_warned=yes ;;
   5874 esac
   5875     NMEDIT=$ac_ct_NMEDIT
   5876   fi
   5877 else
   5878   NMEDIT="$ac_cv_prog_NMEDIT"
   5879 fi
   5880 
   5881     if test -n "$ac_tool_prefix"; then
   5882   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
   5883 set dummy ${ac_tool_prefix}lipo; ac_word=$2
   5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5886 if test "${ac_cv_prog_LIPO+set}" = set; then
   5887   echo $ECHO_N "(cached) $ECHO_C" >&6
   5888 else
   5889   if test -n "$LIPO"; then
   5890   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
   5891 else
   5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5893 for as_dir in $PATH
   5894 do
   5895   IFS=$as_save_IFS
   5896   test -z "$as_dir" && as_dir=.
   5897   for ac_exec_ext in '' $ac_executable_extensions; do
   5898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5899     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
   5900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5901     break 2
   5902   fi
   5903 done
   5904 done
   5905 IFS=$as_save_IFS
   5906 
   5907 fi
   5908 fi
   5909 LIPO=$ac_cv_prog_LIPO
   5910 if test -n "$LIPO"; then
   5911   { echo "$as_me:$LINENO: result: $LIPO" >&5
   5912 echo "${ECHO_T}$LIPO" >&6; }
   5913 else
   5914   { echo "$as_me:$LINENO: result: no" >&5
   5915 echo "${ECHO_T}no" >&6; }
   5916 fi
   5917 
   5918 
   5919 fi
   5920 if test -z "$ac_cv_prog_LIPO"; then
   5921   ac_ct_LIPO=$LIPO
   5922   # Extract the first word of "lipo", so it can be a program name with args.
   5923 set dummy lipo; ac_word=$2
   5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5926 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
   5927   echo $ECHO_N "(cached) $ECHO_C" >&6
   5928 else
   5929   if test -n "$ac_ct_LIPO"; then
   5930   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
   5931 else
   5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5933 for as_dir in $PATH
   5934 do
   5935   IFS=$as_save_IFS
   5936   test -z "$as_dir" && as_dir=.
   5937   for ac_exec_ext in '' $ac_executable_extensions; do
   5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5939     ac_cv_prog_ac_ct_LIPO="lipo"
   5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5941     break 2
   5942   fi
   5943 done
   5944 done
   5945 IFS=$as_save_IFS
   5946 
   5947 fi
   5948 fi
   5949 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
   5950 if test -n "$ac_ct_LIPO"; then
   5951   { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
   5952 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
   5953 else
   5954   { echo "$as_me:$LINENO: result: no" >&5
   5955 echo "${ECHO_T}no" >&6; }
   5956 fi
   5957 
   5958   if test "x$ac_ct_LIPO" = x; then
   5959     LIPO=":"
   5960   else
   5961     case $cross_compiling:$ac_tool_warned in
   5962 yes:)
   5963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5964 whose name does not start with the host triplet.  If you think this
   5965 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   5966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5967 whose name does not start with the host triplet.  If you think this
   5968 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   5969 ac_tool_warned=yes ;;
   5970 esac
   5971     LIPO=$ac_ct_LIPO
   5972   fi
   5973 else
   5974   LIPO="$ac_cv_prog_LIPO"
   5975 fi
   5976 
   5977     if test -n "$ac_tool_prefix"; then
   5978   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
   5979 set dummy ${ac_tool_prefix}otool; ac_word=$2
   5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5982 if test "${ac_cv_prog_OTOOL+set}" = set; then
   5983   echo $ECHO_N "(cached) $ECHO_C" >&6
   5984 else
   5985   if test -n "$OTOOL"; then
   5986   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
   5987 else
   5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5989 for as_dir in $PATH
   5990 do
   5991   IFS=$as_save_IFS
   5992   test -z "$as_dir" && as_dir=.
   5993   for ac_exec_ext in '' $ac_executable_extensions; do
   5994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5995     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
   5996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5997     break 2
   5998   fi
   5999 done
   6000 done
   6001 IFS=$as_save_IFS
   6002 
   6003 fi
   6004 fi
   6005 OTOOL=$ac_cv_prog_OTOOL
   6006 if test -n "$OTOOL"; then
   6007   { echo "$as_me:$LINENO: result: $OTOOL" >&5
   6008 echo "${ECHO_T}$OTOOL" >&6; }
   6009 else
   6010   { echo "$as_me:$LINENO: result: no" >&5
   6011 echo "${ECHO_T}no" >&6; }
   6012 fi
   6013 
   6014 
   6015 fi
   6016 if test -z "$ac_cv_prog_OTOOL"; then
   6017   ac_ct_OTOOL=$OTOOL
   6018   # Extract the first word of "otool", so it can be a program name with args.
   6019 set dummy otool; ac_word=$2
   6020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6022 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
   6023   echo $ECHO_N "(cached) $ECHO_C" >&6
   6024 else
   6025   if test -n "$ac_ct_OTOOL"; then
   6026   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
   6027 else
   6028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6029 for as_dir in $PATH
   6030 do
   6031   IFS=$as_save_IFS
   6032   test -z "$as_dir" && as_dir=.
   6033   for ac_exec_ext in '' $ac_executable_extensions; do
   6034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6035     ac_cv_prog_ac_ct_OTOOL="otool"
   6036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6037     break 2
   6038   fi
   6039 done
   6040 done
   6041 IFS=$as_save_IFS
   6042 
   6043 fi
   6044 fi
   6045 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
   6046 if test -n "$ac_ct_OTOOL"; then
   6047   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
   6048 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
   6049 else
   6050   { echo "$as_me:$LINENO: result: no" >&5
   6051 echo "${ECHO_T}no" >&6; }
   6052 fi
   6053 
   6054   if test "x$ac_ct_OTOOL" = x; then
   6055     OTOOL=":"
   6056   else
   6057     case $cross_compiling:$ac_tool_warned in
   6058 yes:)
   6059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6060 whose name does not start with the host triplet.  If you think this
   6061 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6063 whose name does not start with the host triplet.  If you think this
   6064 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6065 ac_tool_warned=yes ;;
   6066 esac
   6067     OTOOL=$ac_ct_OTOOL
   6068   fi
   6069 else
   6070   OTOOL="$ac_cv_prog_OTOOL"
   6071 fi
   6072 
   6073     if test -n "$ac_tool_prefix"; then
   6074   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
   6075 set dummy ${ac_tool_prefix}otool64; ac_word=$2
   6076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6078 if test "${ac_cv_prog_OTOOL64+set}" = set; then
   6079   echo $ECHO_N "(cached) $ECHO_C" >&6
   6080 else
   6081   if test -n "$OTOOL64"; then
   6082   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
   6083 else
   6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6085 for as_dir in $PATH
   6086 do
   6087   IFS=$as_save_IFS
   6088   test -z "$as_dir" && as_dir=.
   6089   for ac_exec_ext in '' $ac_executable_extensions; do
   6090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6091     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
   6092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6093     break 2
   6094   fi
   6095 done
   6096 done
   6097 IFS=$as_save_IFS
   6098 
   6099 fi
   6100 fi
   6101 OTOOL64=$ac_cv_prog_OTOOL64
   6102 if test -n "$OTOOL64"; then
   6103   { echo "$as_me:$LINENO: result: $OTOOL64" >&5
   6104 echo "${ECHO_T}$OTOOL64" >&6; }
   6105 else
   6106   { echo "$as_me:$LINENO: result: no" >&5
   6107 echo "${ECHO_T}no" >&6; }
   6108 fi
   6109 
   6110 
   6111 fi
   6112 if test -z "$ac_cv_prog_OTOOL64"; then
   6113   ac_ct_OTOOL64=$OTOOL64
   6114   # Extract the first word of "otool64", so it can be a program name with args.
   6115 set dummy otool64; ac_word=$2
   6116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6118 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
   6119   echo $ECHO_N "(cached) $ECHO_C" >&6
   6120 else
   6121   if test -n "$ac_ct_OTOOL64"; then
   6122   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
   6123 else
   6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6125 for as_dir in $PATH
   6126 do
   6127   IFS=$as_save_IFS
   6128   test -z "$as_dir" && as_dir=.
   6129   for ac_exec_ext in '' $ac_executable_extensions; do
   6130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6131     ac_cv_prog_ac_ct_OTOOL64="otool64"
   6132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6133     break 2
   6134   fi
   6135 done
   6136 done
   6137 IFS=$as_save_IFS
   6138 
   6139 fi
   6140 fi
   6141 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
   6142 if test -n "$ac_ct_OTOOL64"; then
   6143   { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
   6144 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
   6145 else
   6146   { echo "$as_me:$LINENO: result: no" >&5
   6147 echo "${ECHO_T}no" >&6; }
   6148 fi
   6149 
   6150   if test "x$ac_ct_OTOOL64" = x; then
   6151     OTOOL64=":"
   6152   else
   6153     case $cross_compiling:$ac_tool_warned in
   6154 yes:)
   6155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6156 whose name does not start with the host triplet.  If you think this
   6157 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6159 whose name does not start with the host triplet.  If you think this
   6160 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6161 ac_tool_warned=yes ;;
   6162 esac
   6163     OTOOL64=$ac_ct_OTOOL64
   6164   fi
   6165 else
   6166   OTOOL64="$ac_cv_prog_OTOOL64"
   6167 fi
   6168 
   6169 
   6170 
   6171 
   6172 
   6173 
   6174 
   6175 
   6176 
   6177 
   6178 
   6179 
   6180 
   6181 
   6182 
   6183 
   6184 
   6185 
   6186 
   6187 
   6188 
   6189 
   6190 
   6191 
   6192 
   6193 
   6194 
   6195     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
   6196 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
   6197 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
   6198   echo $ECHO_N "(cached) $ECHO_C" >&6
   6199 else
   6200   lt_cv_apple_cc_single_mod=no
   6201       if test -z "${LT_MULTI_MODULE}"; then
   6202 	# By default we will add the -single_module flag. You can override
   6203 	# by either setting the environment variable LT_MULTI_MODULE
   6204 	# non-empty at configure time, or by adding -multi_module to the
   6205 	# link flags.
   6206 	rm -rf libconftest.dylib*
   6207 	echo "int foo(void){return 1;}" > conftest.c
   6208 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   6209 -dynamiclib -Wl,-single_module conftest.c" >&5
   6210 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   6211 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   6212         _lt_result=$?
   6213 	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   6214 	  lt_cv_apple_cc_single_mod=yes
   6215 	else
   6216 	  cat conftest.err >&5
   6217 	fi
   6218 	rm -rf libconftest.dylib*
   6219 	rm -f conftest.*
   6220       fi
   6221 fi
   6222 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
   6223 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
   6224     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
   6225 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
   6226 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
   6227   echo $ECHO_N "(cached) $ECHO_C" >&6
   6228 else
   6229   lt_cv_ld_exported_symbols_list=no
   6230       save_LDFLAGS=$LDFLAGS
   6231       echo "_main" > conftest.sym
   6232       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
   6233       cat >conftest.$ac_ext <<_ACEOF
   6234 /* confdefs.h.  */
   6235 _ACEOF
   6236 cat confdefs.h >>conftest.$ac_ext
   6237 cat >>conftest.$ac_ext <<_ACEOF
   6238 /* end confdefs.h.  */
   6239 
   6240 int
   6241 main ()
   6242 {
   6243 
   6244   ;
   6245   return 0;
   6246 }
   6247 _ACEOF
   6248 rm -f conftest.$ac_objext conftest$ac_exeext
   6249 if { (ac_try="$ac_link"
   6250 case "(($ac_try" in
   6251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6252   *) ac_try_echo=$ac_try;;
   6253 esac
   6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6255   (eval "$ac_link") 2>conftest.er1
   6256   ac_status=$?
   6257   grep -v '^ *+' conftest.er1 >conftest.err
   6258   rm -f conftest.er1
   6259   cat conftest.err >&5
   6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6261   (exit $ac_status); } && {
   6262 	 test -z "$ac_c_werror_flag" ||
   6263 	 test ! -s conftest.err
   6264        } && test -s conftest$ac_exeext &&
   6265        $as_test_x conftest$ac_exeext; then
   6266   lt_cv_ld_exported_symbols_list=yes
   6267 else
   6268   echo "$as_me: failed program was:" >&5
   6269 sed 's/^/| /' conftest.$ac_ext >&5
   6270 
   6271 	lt_cv_ld_exported_symbols_list=no
   6272 fi
   6273 
   6274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   6275       conftest$ac_exeext conftest.$ac_ext
   6276 	LDFLAGS="$save_LDFLAGS"
   6277 
   6278 fi
   6279 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
   6280 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
   6281     case $host_os in
   6282     rhapsody* | darwin1.[012])
   6283       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   6284     darwin1.*)
   6285       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   6286     darwin*) # darwin 5.x on
   6287       # if running on 10.5 or later, the deployment target defaults
   6288       # to the OS version, if on x86, and 10.4, the deployment
   6289       # target defaults to 10.4. Don't you love it?
   6290       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
   6291 	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
   6292 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   6293 	10.[012]*)
   6294 	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
   6295 	10.*)
   6296 	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
   6297       esac
   6298     ;;
   6299   esac
   6300     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
   6301       _lt_dar_single_mod='$single_module'
   6302     fi
   6303     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
   6304       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
   6305     else
   6306       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   6307     fi
   6308     if test "$DSYMUTIL" != ":"; then
   6309       _lt_dsymutil='~$DSYMUTIL $lib || :'
   6310     else
   6311       _lt_dsymutil=
   6312     fi
   6313     ;;
   6314   esac
   6315 
   6316 ac_ext=c
   6317 ac_cpp='$CPP $CPPFLAGS'
   6318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6321 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   6322 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   6323 # On Suns, sometimes $CPP names a directory.
   6324 if test -n "$CPP" && test -d "$CPP"; then
   6325   CPP=
   6326 fi
   6327 if test -z "$CPP"; then
   6328   if test "${ac_cv_prog_CPP+set}" = set; then
   6329   echo $ECHO_N "(cached) $ECHO_C" >&6
   6330 else
   6331       # Double quotes because CPP needs to be expanded
   6332     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   6333     do
   6334       ac_preproc_ok=false
   6335 for ac_c_preproc_warn_flag in '' yes
   6336 do
   6337   # Use a header file that comes with gcc, so configuring glibc
   6338   # with a fresh cross-compiler works.
   6339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6340   # <limits.h> exists even on freestanding compilers.
   6341   # On the NeXT, cc -E runs the code through the compiler's parser,
   6342   # not just through cpp. "Syntax error" is here to catch this case.
   6343   cat >conftest.$ac_ext <<_ACEOF
   6344 /* confdefs.h.  */
   6345 _ACEOF
   6346 cat confdefs.h >>conftest.$ac_ext
   6347 cat >>conftest.$ac_ext <<_ACEOF
   6348 /* end confdefs.h.  */
   6349 #ifdef __STDC__
   6350 # include <limits.h>
   6351 #else
   6352 # include <assert.h>
   6353 #endif
   6354 		     Syntax error
   6355 _ACEOF
   6356 if { (ac_try="$ac_cpp conftest.$ac_ext"
   6357 case "(($ac_try" in
   6358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6359   *) ac_try_echo=$ac_try;;
   6360 esac
   6361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6362   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   6363   ac_status=$?
   6364   grep -v '^ *+' conftest.er1 >conftest.err
   6365   rm -f conftest.er1
   6366   cat conftest.err >&5
   6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6368   (exit $ac_status); } >/dev/null && {
   6369 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   6370 	 test ! -s conftest.err
   6371        }; then
   6372   :
   6373 else
   6374   echo "$as_me: failed program was:" >&5
   6375 sed 's/^/| /' conftest.$ac_ext >&5
   6376 
   6377   # Broken: fails on valid input.
   6378 continue
   6379 fi
   6380 
   6381 rm -f conftest.err conftest.$ac_ext
   6382 
   6383   # OK, works on sane cases.  Now check whether nonexistent headers
   6384   # can be detected and how.
   6385   cat >conftest.$ac_ext <<_ACEOF
   6386 /* confdefs.h.  */
   6387 _ACEOF
   6388 cat confdefs.h >>conftest.$ac_ext
   6389 cat >>conftest.$ac_ext <<_ACEOF
   6390 /* end confdefs.h.  */
   6391 #include <ac_nonexistent.h>
   6392 _ACEOF
   6393 if { (ac_try="$ac_cpp conftest.$ac_ext"
   6394 case "(($ac_try" in
   6395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6396   *) ac_try_echo=$ac_try;;
   6397 esac
   6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   6400   ac_status=$?
   6401   grep -v '^ *+' conftest.er1 >conftest.err
   6402   rm -f conftest.er1
   6403   cat conftest.err >&5
   6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6405   (exit $ac_status); } >/dev/null && {
   6406 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   6407 	 test ! -s conftest.err
   6408        }; then
   6409   # Broken: success on invalid input.
   6410 continue
   6411 else
   6412   echo "$as_me: failed program was:" >&5
   6413 sed 's/^/| /' conftest.$ac_ext >&5
   6414 
   6415   # Passes both tests.
   6416 ac_preproc_ok=:
   6417 break
   6418 fi
   6419 
   6420 rm -f conftest.err conftest.$ac_ext
   6421 
   6422 done
   6423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6424 rm -f conftest.err conftest.$ac_ext
   6425 if $ac_preproc_ok; then
   6426   break
   6427 fi
   6428 
   6429     done
   6430     ac_cv_prog_CPP=$CPP
   6431 
   6432 fi
   6433   CPP=$ac_cv_prog_CPP
   6434 else
   6435   ac_cv_prog_CPP=$CPP
   6436 fi
   6437 { echo "$as_me:$LINENO: result: $CPP" >&5
   6438 echo "${ECHO_T}$CPP" >&6; }
   6439 ac_preproc_ok=false
   6440 for ac_c_preproc_warn_flag in '' yes
   6441 do
   6442   # Use a header file that comes with gcc, so configuring glibc
   6443   # with a fresh cross-compiler works.
   6444   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   6445   # <limits.h> exists even on freestanding compilers.
   6446   # On the NeXT, cc -E runs the code through the compiler's parser,
   6447   # not just through cpp. "Syntax error" is here to catch this case.
   6448   cat >conftest.$ac_ext <<_ACEOF
   6449 /* confdefs.h.  */
   6450 _ACEOF
   6451 cat confdefs.h >>conftest.$ac_ext
   6452 cat >>conftest.$ac_ext <<_ACEOF
   6453 /* end confdefs.h.  */
   6454 #ifdef __STDC__
   6455 # include <limits.h>
   6456 #else
   6457 # include <assert.h>
   6458 #endif
   6459 		     Syntax error
   6460 _ACEOF
   6461 if { (ac_try="$ac_cpp conftest.$ac_ext"
   6462 case "(($ac_try" in
   6463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6464   *) ac_try_echo=$ac_try;;
   6465 esac
   6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   6468   ac_status=$?
   6469   grep -v '^ *+' conftest.er1 >conftest.err
   6470   rm -f conftest.er1
   6471   cat conftest.err >&5
   6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6473   (exit $ac_status); } >/dev/null && {
   6474 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   6475 	 test ! -s conftest.err
   6476        }; then
   6477   :
   6478 else
   6479   echo "$as_me: failed program was:" >&5
   6480 sed 's/^/| /' conftest.$ac_ext >&5
   6481 
   6482   # Broken: fails on valid input.
   6483 continue
   6484 fi
   6485 
   6486 rm -f conftest.err conftest.$ac_ext
   6487 
   6488   # OK, works on sane cases.  Now check whether nonexistent headers
   6489   # can be detected and how.
   6490   cat >conftest.$ac_ext <<_ACEOF
   6491 /* confdefs.h.  */
   6492 _ACEOF
   6493 cat confdefs.h >>conftest.$ac_ext
   6494 cat >>conftest.$ac_ext <<_ACEOF
   6495 /* end confdefs.h.  */
   6496 #include <ac_nonexistent.h>
   6497 _ACEOF
   6498 if { (ac_try="$ac_cpp conftest.$ac_ext"
   6499 case "(($ac_try" in
   6500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6501   *) ac_try_echo=$ac_try;;
   6502 esac
   6503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   6505   ac_status=$?
   6506   grep -v '^ *+' conftest.er1 >conftest.err
   6507   rm -f conftest.er1
   6508   cat conftest.err >&5
   6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6510   (exit $ac_status); } >/dev/null && {
   6511 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   6512 	 test ! -s conftest.err
   6513        }; then
   6514   # Broken: success on invalid input.
   6515 continue
   6516 else
   6517   echo "$as_me: failed program was:" >&5
   6518 sed 's/^/| /' conftest.$ac_ext >&5
   6519 
   6520   # Passes both tests.
   6521 ac_preproc_ok=:
   6522 break
   6523 fi
   6524 
   6525 rm -f conftest.err conftest.$ac_ext
   6526 
   6527 done
   6528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   6529 rm -f conftest.err conftest.$ac_ext
   6530 if $ac_preproc_ok; then
   6531   :
   6532 else
   6533   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   6534 See \`config.log' for more details." >&5
   6535 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   6536 See \`config.log' for more details." >&2;}
   6537    { (exit 1); exit 1; }; }
   6538 fi
   6539 
   6540 ac_ext=c
   6541 ac_cpp='$CPP $CPPFLAGS'
   6542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6545 
   6546 
   6547 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   6548 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   6549 if test "${ac_cv_header_stdc+set}" = set; then
   6550   echo $ECHO_N "(cached) $ECHO_C" >&6
   6551 else
   6552   cat >conftest.$ac_ext <<_ACEOF
   6553 /* confdefs.h.  */
   6554 _ACEOF
   6555 cat confdefs.h >>conftest.$ac_ext
   6556 cat >>conftest.$ac_ext <<_ACEOF
   6557 /* end confdefs.h.  */
   6558 #include <stdlib.h>
   6559 #include <stdarg.h>
   6560 #include <string.h>
   6561 #include <float.h>
   6562 
   6563 int
   6564 main ()
   6565 {
   6566 
   6567   ;
   6568   return 0;
   6569 }
   6570 _ACEOF
   6571 rm -f conftest.$ac_objext
   6572 if { (ac_try="$ac_compile"
   6573 case "(($ac_try" in
   6574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6575   *) ac_try_echo=$ac_try;;
   6576 esac
   6577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6578   (eval "$ac_compile") 2>conftest.er1
   6579   ac_status=$?
   6580   grep -v '^ *+' conftest.er1 >conftest.err
   6581   rm -f conftest.er1
   6582   cat conftest.err >&5
   6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6584   (exit $ac_status); } && {
   6585 	 test -z "$ac_c_werror_flag" ||
   6586 	 test ! -s conftest.err
   6587        } && test -s conftest.$ac_objext; then
   6588   ac_cv_header_stdc=yes
   6589 else
   6590   echo "$as_me: failed program was:" >&5
   6591 sed 's/^/| /' conftest.$ac_ext >&5
   6592 
   6593 	ac_cv_header_stdc=no
   6594 fi
   6595 
   6596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6597 
   6598 if test $ac_cv_header_stdc = yes; then
   6599   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   6600   cat >conftest.$ac_ext <<_ACEOF
   6601 /* confdefs.h.  */
   6602 _ACEOF
   6603 cat confdefs.h >>conftest.$ac_ext
   6604 cat >>conftest.$ac_ext <<_ACEOF
   6605 /* end confdefs.h.  */
   6606 #include <string.h>
   6607 
   6608 _ACEOF
   6609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6610   $EGREP "memchr" >/dev/null 2>&1; then
   6611   :
   6612 else
   6613   ac_cv_header_stdc=no
   6614 fi
   6615 rm -f conftest*
   6616 
   6617 fi
   6618 
   6619 if test $ac_cv_header_stdc = yes; then
   6620   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   6621   cat >conftest.$ac_ext <<_ACEOF
   6622 /* confdefs.h.  */
   6623 _ACEOF
   6624 cat confdefs.h >>conftest.$ac_ext
   6625 cat >>conftest.$ac_ext <<_ACEOF
   6626 /* end confdefs.h.  */
   6627 #include <stdlib.h>
   6628 
   6629 _ACEOF
   6630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   6631   $EGREP "free" >/dev/null 2>&1; then
   6632   :
   6633 else
   6634   ac_cv_header_stdc=no
   6635 fi
   6636 rm -f conftest*
   6637 
   6638 fi
   6639 
   6640 if test $ac_cv_header_stdc = yes; then
   6641   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   6642   if test "$cross_compiling" = yes; then
   6643   :
   6644 else
   6645   cat >conftest.$ac_ext <<_ACEOF
   6646 /* confdefs.h.  */
   6647 _ACEOF
   6648 cat confdefs.h >>conftest.$ac_ext
   6649 cat >>conftest.$ac_ext <<_ACEOF
   6650 /* end confdefs.h.  */
   6651 #include <ctype.h>
   6652 #include <stdlib.h>
   6653 #if ((' ' & 0x0FF) == 0x020)
   6654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   6655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   6656 #else
   6657 # define ISLOWER(c) \
   6658 		   (('a' <= (c) && (c) <= 'i') \
   6659 		     || ('j' <= (c) && (c) <= 'r') \
   6660 		     || ('s' <= (c) && (c) <= 'z'))
   6661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   6662 #endif
   6663 
   6664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   6665 int
   6666 main ()
   6667 {
   6668   int i;
   6669   for (i = 0; i < 256; i++)
   6670     if (XOR (islower (i), ISLOWER (i))
   6671 	|| toupper (i) != TOUPPER (i))
   6672       return 2;
   6673   return 0;
   6674 }
   6675 _ACEOF
   6676 rm -f conftest$ac_exeext
   6677 if { (ac_try="$ac_link"
   6678 case "(($ac_try" in
   6679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6680   *) ac_try_echo=$ac_try;;
   6681 esac
   6682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6683   (eval "$ac_link") 2>&5
   6684   ac_status=$?
   6685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   6687   { (case "(($ac_try" in
   6688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6689   *) ac_try_echo=$ac_try;;
   6690 esac
   6691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6692   (eval "$ac_try") 2>&5
   6693   ac_status=$?
   6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6695   (exit $ac_status); }; }; then
   6696   :
   6697 else
   6698   echo "$as_me: program exited with status $ac_status" >&5
   6699 echo "$as_me: failed program was:" >&5
   6700 sed 's/^/| /' conftest.$ac_ext >&5
   6701 
   6702 ( exit $ac_status )
   6703 ac_cv_header_stdc=no
   6704 fi
   6705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   6706 fi
   6707 
   6708 
   6709 fi
   6710 fi
   6711 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   6712 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   6713 if test $ac_cv_header_stdc = yes; then
   6714 
   6715 cat >>confdefs.h <<\_ACEOF
   6716 #define STDC_HEADERS 1
   6717 _ACEOF
   6718 
   6719 fi
   6720 
   6721 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   6722 
   6723 
   6724 
   6725 
   6726 
   6727 
   6728 
   6729 
   6730 
   6731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   6732 		  inttypes.h stdint.h unistd.h
   6733 do
   6734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   6736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   6737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   6738   echo $ECHO_N "(cached) $ECHO_C" >&6
   6739 else
   6740   cat >conftest.$ac_ext <<_ACEOF
   6741 /* confdefs.h.  */
   6742 _ACEOF
   6743 cat confdefs.h >>conftest.$ac_ext
   6744 cat >>conftest.$ac_ext <<_ACEOF
   6745 /* end confdefs.h.  */
   6746 $ac_includes_default
   6747 
   6748 #include <$ac_header>
   6749 _ACEOF
   6750 rm -f conftest.$ac_objext
   6751 if { (ac_try="$ac_compile"
   6752 case "(($ac_try" in
   6753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6754   *) ac_try_echo=$ac_try;;
   6755 esac
   6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6757   (eval "$ac_compile") 2>conftest.er1
   6758   ac_status=$?
   6759   grep -v '^ *+' conftest.er1 >conftest.err
   6760   rm -f conftest.er1
   6761   cat conftest.err >&5
   6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6763   (exit $ac_status); } && {
   6764 	 test -z "$ac_c_werror_flag" ||
   6765 	 test ! -s conftest.err
   6766        } && test -s conftest.$ac_objext; then
   6767   eval "$as_ac_Header=yes"
   6768 else
   6769   echo "$as_me: failed program was:" >&5
   6770 sed 's/^/| /' conftest.$ac_ext >&5
   6771 
   6772 	eval "$as_ac_Header=no"
   6773 fi
   6774 
   6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6776 fi
   6777 ac_res=`eval echo '${'$as_ac_Header'}'`
   6778 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   6779 echo "${ECHO_T}$ac_res" >&6; }
   6780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6781   cat >>confdefs.h <<_ACEOF
   6782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6783 _ACEOF
   6784 
   6785 fi
   6786 
   6787 done
   6788 
   6789 
   6790 
   6791 for ac_header in dlfcn.h
   6792 do
   6793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   6794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   6795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   6796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   6797   echo $ECHO_N "(cached) $ECHO_C" >&6
   6798 else
   6799   cat >conftest.$ac_ext <<_ACEOF
   6800 /* confdefs.h.  */
   6801 _ACEOF
   6802 cat confdefs.h >>conftest.$ac_ext
   6803 cat >>conftest.$ac_ext <<_ACEOF
   6804 /* end confdefs.h.  */
   6805 $ac_includes_default
   6806 
   6807 #include <$ac_header>
   6808 _ACEOF
   6809 rm -f conftest.$ac_objext
   6810 if { (ac_try="$ac_compile"
   6811 case "(($ac_try" in
   6812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   6813   *) ac_try_echo=$ac_try;;
   6814 esac
   6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   6816   (eval "$ac_compile") 2>conftest.er1
   6817   ac_status=$?
   6818   grep -v '^ *+' conftest.er1 >conftest.err
   6819   rm -f conftest.er1
   6820   cat conftest.err >&5
   6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   6822   (exit $ac_status); } && {
   6823 	 test -z "$ac_c_werror_flag" ||
   6824 	 test ! -s conftest.err
   6825        } && test -s conftest.$ac_objext; then
   6826   eval "$as_ac_Header=yes"
   6827 else
   6828   echo "$as_me: failed program was:" >&5
   6829 sed 's/^/| /' conftest.$ac_ext >&5
   6830 
   6831 	eval "$as_ac_Header=no"
   6832 fi
   6833 
   6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6835 fi
   6836 ac_res=`eval echo '${'$as_ac_Header'}'`
   6837 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   6838 echo "${ECHO_T}$ac_res" >&6; }
   6839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   6840   cat >>confdefs.h <<_ACEOF
   6841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   6842 _ACEOF
   6843 
   6844 fi
   6845 
   6846 done
   6847 
   6848 
   6849 
   6850 # Set options
   6851 
   6852 
   6853 
   6854         enable_dlopen=no
   6855 
   6856 
   6857   enable_win32_dll=no
   6858 
   6859 
   6860             # Check whether --enable-shared was given.
   6861 if test "${enable_shared+set}" = set; then
   6862   enableval=$enable_shared; p=${PACKAGE-default}
   6863     case $enableval in
   6864     yes) enable_shared=yes ;;
   6865     no) enable_shared=no ;;
   6866     *)
   6867       enable_shared=no
   6868       # Look at the argument we got.  We use all the common list separators.
   6869       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   6870       for pkg in $enableval; do
   6871 	IFS="$lt_save_ifs"
   6872 	if test "X$pkg" = "X$p"; then
   6873 	  enable_shared=yes
   6874 	fi
   6875       done
   6876       IFS="$lt_save_ifs"
   6877       ;;
   6878     esac
   6879 else
   6880   enable_shared=yes
   6881 fi
   6882 
   6883 
   6884 
   6885 
   6886 
   6887 
   6888 
   6889 
   6890 
   6891   # Check whether --enable-static was given.
   6892 if test "${enable_static+set}" = set; then
   6893   enableval=$enable_static; p=${PACKAGE-default}
   6894     case $enableval in
   6895     yes) enable_static=yes ;;
   6896     no) enable_static=no ;;
   6897     *)
   6898      enable_static=no
   6899       # Look at the argument we got.  We use all the common list separators.
   6900       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   6901       for pkg in $enableval; do
   6902 	IFS="$lt_save_ifs"
   6903 	if test "X$pkg" = "X$p"; then
   6904 	  enable_static=yes
   6905 	fi
   6906       done
   6907       IFS="$lt_save_ifs"
   6908       ;;
   6909     esac
   6910 else
   6911   enable_static=yes
   6912 fi
   6913 
   6914 
   6915 
   6916 
   6917 
   6918 
   6919 
   6920 
   6921 
   6922 
   6923 # Check whether --with-pic was given.
   6924 if test "${with_pic+set}" = set; then
   6925   withval=$with_pic; pic_mode="$withval"
   6926 else
   6927   pic_mode=default
   6928 fi
   6929 
   6930 
   6931 test -z "$pic_mode" && pic_mode=default
   6932 
   6933 
   6934 
   6935 
   6936 
   6937 
   6938 
   6939   # Check whether --enable-fast-install was given.
   6940 if test "${enable_fast_install+set}" = set; then
   6941   enableval=$enable_fast_install; p=${PACKAGE-default}
   6942     case $enableval in
   6943     yes) enable_fast_install=yes ;;
   6944     no) enable_fast_install=no ;;
   6945     *)
   6946       enable_fast_install=no
   6947       # Look at the argument we got.  We use all the common list separators.
   6948       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   6949       for pkg in $enableval; do
   6950 	IFS="$lt_save_ifs"
   6951 	if test "X$pkg" = "X$p"; then
   6952 	  enable_fast_install=yes
   6953 	fi
   6954       done
   6955       IFS="$lt_save_ifs"
   6956       ;;
   6957     esac
   6958 else
   6959   enable_fast_install=yes
   6960 fi
   6961 
   6962 
   6963 
   6964 
   6965 
   6966 
   6967 
   6968 
   6969 
   6970 
   6971 
   6972 # This can be used to rebuild libtool when needed
   6973 LIBTOOL_DEPS="$ltmain"
   6974 
   6975 # Always use our own libtool.
   6976 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   6977 
   6978 
   6979 
   6980 
   6981 
   6982 
   6983 
   6984 
   6985 
   6986 
   6987 
   6988 
   6989 
   6990 
   6991 
   6992 
   6993 
   6994 
   6995 
   6996 
   6997 
   6998 
   6999 
   7000 
   7001 
   7002 test -z "$LN_S" && LN_S="ln -s"
   7003 
   7004 
   7005 
   7006 
   7007 
   7008 
   7009 
   7010 
   7011 
   7012 
   7013 
   7014 
   7015 
   7016 
   7017 if test -n "${ZSH_VERSION+set}" ; then
   7018    setopt NO_GLOB_SUBST
   7019 fi
   7020 
   7021 { echo "$as_me:$LINENO: checking for objdir" >&5
   7022 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   7023 if test "${lt_cv_objdir+set}" = set; then
   7024   echo $ECHO_N "(cached) $ECHO_C" >&6
   7025 else
   7026   rm -f .libs 2>/dev/null
   7027 mkdir .libs 2>/dev/null
   7028 if test -d .libs; then
   7029   lt_cv_objdir=.libs
   7030 else
   7031   # MS-DOS does not allow filenames that begin with a dot.
   7032   lt_cv_objdir=_libs
   7033 fi
   7034 rmdir .libs 2>/dev/null
   7035 fi
   7036 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
   7037 echo "${ECHO_T}$lt_cv_objdir" >&6; }
   7038 objdir=$lt_cv_objdir
   7039 
   7040 
   7041 
   7042 
   7043 
   7044 cat >>confdefs.h <<_ACEOF
   7045 #define LT_OBJDIR "$lt_cv_objdir/"
   7046 _ACEOF
   7047 
   7048 
   7049 
   7050 
   7051 
   7052 
   7053 
   7054 
   7055 
   7056 
   7057 
   7058 
   7059 
   7060 
   7061 
   7062 
   7063 
   7064 case $host_os in
   7065 aix3*)
   7066   # AIX sometimes has problems with the GCC collect2 program.  For some
   7067   # reason, if we set the COLLECT_NAMES environment variable, the problems
   7068   # vanish in a puff of smoke.
   7069   if test "X${COLLECT_NAMES+set}" != Xset; then
   7070     COLLECT_NAMES=
   7071     export COLLECT_NAMES
   7072   fi
   7073   ;;
   7074 esac
   7075 
   7076 # Sed substitution that helps us do robust quoting.  It backslashifies
   7077 # metacharacters that are still active within double-quoted strings.
   7078 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
   7079 
   7080 # Same as above, but do not quote variable references.
   7081 double_quote_subst='s/\(["`\\]\)/\\\1/g'
   7082 
   7083 # Sed substitution to delay expansion of an escaped shell variable in a
   7084 # double_quote_subst'ed string.
   7085 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   7086 
   7087 # Sed substitution to delay expansion of an escaped single quote.
   7088 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   7089 
   7090 # Sed substitution to avoid accidental globbing in evaled expressions
   7091 no_glob_subst='s/\*/\\\*/g'
   7092 
   7093 # Global variables:
   7094 ofile=libtool
   7095 can_build_shared=yes
   7096 
   7097 # All known linkers require a `.a' archive for static linking (except MSVC,
   7098 # which needs '.lib').
   7099 libext=a
   7100 
   7101 with_gnu_ld="$lt_cv_prog_gnu_ld"
   7102 
   7103 old_CC="$CC"
   7104 old_CFLAGS="$CFLAGS"
   7105 
   7106 # Set sane defaults for various variables
   7107 test -z "$CC" && CC=cc
   7108 test -z "$LTCC" && LTCC=$CC
   7109 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   7110 test -z "$LD" && LD=ld
   7111 test -z "$ac_objext" && ac_objext=o
   7112 
   7113 for cc_temp in $compiler""; do
   7114   case $cc_temp in
   7115     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   7116     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   7117     \-*) ;;
   7118     *) break;;
   7119   esac
   7120 done
   7121 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
   7122 
   7123 
   7124 # Only perform the check for file, if the check method requires it
   7125 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   7126 case $deplibs_check_method in
   7127 file_magic*)
   7128   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   7129     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
   7130 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
   7131 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
   7132   echo $ECHO_N "(cached) $ECHO_C" >&6
   7133 else
   7134   case $MAGIC_CMD in
   7135 [\\/*] |  ?:[\\/]*)
   7136   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   7137   ;;
   7138 *)
   7139   lt_save_MAGIC_CMD="$MAGIC_CMD"
   7140   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   7141   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7142   for ac_dir in $ac_dummy; do
   7143     IFS="$lt_save_ifs"
   7144     test -z "$ac_dir" && ac_dir=.
   7145     if test -f $ac_dir/${ac_tool_prefix}file; then
   7146       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
   7147       if test -n "$file_magic_test_file"; then
   7148 	case $deplibs_check_method in
   7149 	"file_magic "*)
   7150 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7151 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   7152 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7153 	    $EGREP "$file_magic_regex" > /dev/null; then
   7154 	    :
   7155 	  else
   7156 	    cat <<_LT_EOF 1>&2
   7157 
   7158 *** Warning: the command libtool uses to detect shared libraries,
   7159 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7160 *** The result is that libtool may fail to recognize shared libraries
   7161 *** as such.  This will affect the creation of libtool libraries that
   7162 *** depend on shared libraries, but programs linked with such libtool
   7163 *** libraries will work regardless of this problem.  Nevertheless, you
   7164 *** may want to report the problem to your system manager and/or to
   7165 *** bug-libtool@gnu.org
   7166 
   7167 _LT_EOF
   7168 	  fi ;;
   7169 	esac
   7170       fi
   7171       break
   7172     fi
   7173   done
   7174   IFS="$lt_save_ifs"
   7175   MAGIC_CMD="$lt_save_MAGIC_CMD"
   7176   ;;
   7177 esac
   7178 fi
   7179 
   7180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   7181 if test -n "$MAGIC_CMD"; then
   7182   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
   7183 echo "${ECHO_T}$MAGIC_CMD" >&6; }
   7184 else
   7185   { echo "$as_me:$LINENO: result: no" >&5
   7186 echo "${ECHO_T}no" >&6; }
   7187 fi
   7188 
   7189 
   7190 
   7191 
   7192 
   7193 if test -z "$lt_cv_path_MAGIC_CMD"; then
   7194   if test -n "$ac_tool_prefix"; then
   7195     { echo "$as_me:$LINENO: checking for file" >&5
   7196 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
   7197 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
   7198   echo $ECHO_N "(cached) $ECHO_C" >&6
   7199 else
   7200   case $MAGIC_CMD in
   7201 [\\/*] |  ?:[\\/]*)
   7202   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   7203   ;;
   7204 *)
   7205   lt_save_MAGIC_CMD="$MAGIC_CMD"
   7206   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   7207   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   7208   for ac_dir in $ac_dummy; do
   7209     IFS="$lt_save_ifs"
   7210     test -z "$ac_dir" && ac_dir=.
   7211     if test -f $ac_dir/file; then
   7212       lt_cv_path_MAGIC_CMD="$ac_dir/file"
   7213       if test -n "$file_magic_test_file"; then
   7214 	case $deplibs_check_method in
   7215 	"file_magic "*)
   7216 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
   7217 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   7218 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   7219 	    $EGREP "$file_magic_regex" > /dev/null; then
   7220 	    :
   7221 	  else
   7222 	    cat <<_LT_EOF 1>&2
   7223 
   7224 *** Warning: the command libtool uses to detect shared libraries,
   7225 *** $file_magic_cmd, produces output that libtool cannot recognize.
   7226 *** The result is that libtool may fail to recognize shared libraries
   7227 *** as such.  This will affect the creation of libtool libraries that
   7228 *** depend on shared libraries, but programs linked with such libtool
   7229 *** libraries will work regardless of this problem.  Nevertheless, you
   7230 *** may want to report the problem to your system manager and/or to
   7231 *** bug-libtool@gnu.org
   7232 
   7233 _LT_EOF
   7234 	  fi ;;
   7235 	esac
   7236       fi
   7237       break
   7238     fi
   7239   done
   7240   IFS="$lt_save_ifs"
   7241   MAGIC_CMD="$lt_save_MAGIC_CMD"
   7242   ;;
   7243 esac
   7244 fi
   7245 
   7246 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   7247 if test -n "$MAGIC_CMD"; then
   7248   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
   7249 echo "${ECHO_T}$MAGIC_CMD" >&6; }
   7250 else
   7251   { echo "$as_me:$LINENO: result: no" >&5
   7252 echo "${ECHO_T}no" >&6; }
   7253 fi
   7254 
   7255 
   7256   else
   7257     MAGIC_CMD=:
   7258   fi
   7259 fi
   7260 
   7261   fi
   7262   ;;
   7263 esac
   7264 
   7265 # Use C for the default configuration in the libtool script
   7266 
   7267 lt_save_CC="$CC"
   7268 ac_ext=c
   7269 ac_cpp='$CPP $CPPFLAGS'
   7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   7273 
   7274 
   7275 # Source file extension for C test sources.
   7276 ac_ext=c
   7277 
   7278 # Object file extension for compiled C test sources.
   7279 objext=o
   7280 objext=$objext
   7281 
   7282 # Code to be used in simple compile tests
   7283 lt_simple_compile_test_code="int some_variable = 0;"
   7284 
   7285 # Code to be used in simple link tests
   7286 lt_simple_link_test_code='int main(){return(0);}'
   7287 
   7288 
   7289 
   7290 
   7291 
   7292 
   7293 
   7294 # If no C compiler was specified, use CC.
   7295 LTCC=${LTCC-"$CC"}
   7296 
   7297 # If no C compiler flags were specified, use CFLAGS.
   7298 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   7299 
   7300 # Allow CC to be a program name with arguments.
   7301 compiler=$CC
   7302 
   7303 # Save the default compiler, since it gets overwritten when the other
   7304 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
   7305 compiler_DEFAULT=$CC
   7306 
   7307 # save warnings/boilerplate of simple test code
   7308 ac_outfile=conftest.$ac_objext
   7309 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   7310 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7311 _lt_compiler_boilerplate=`cat conftest.err`
   7312 $RM conftest*
   7313 
   7314 ac_outfile=conftest.$ac_objext
   7315 echo "$lt_simple_link_test_code" >conftest.$ac_ext
   7316 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   7317 _lt_linker_boilerplate=`cat conftest.err`
   7318 $RM -r conftest*
   7319 
   7320 
   7321 if test -n "$compiler"; then
   7322 
   7323 lt_prog_compiler_no_builtin_flag=
   7324 
   7325 if test "$GCC" = yes; then
   7326   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
   7327 
   7328   { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   7329 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
   7330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
   7331   echo $ECHO_N "(cached) $ECHO_C" >&6
   7332 else
   7333   lt_cv_prog_compiler_rtti_exceptions=no
   7334    ac_outfile=conftest.$ac_objext
   7335    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7336    lt_compiler_flag="-fno-rtti -fno-exceptions"
   7337    # Insert the option either (1) after the last *FLAGS variable, or
   7338    # (2) before a word containing "conftest.", or (3) at the end.
   7339    # Note that $ac_compile itself does not contain backslashes and begins
   7340    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7341    # The option is referenced via a variable to avoid confusing sed.
   7342    lt_compile=`echo "$ac_compile" | $SED \
   7343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7345    -e 's:$: $lt_compiler_flag:'`
   7346    (eval echo "\"\$as_me:7346: $lt_compile\"" >&5)
   7347    (eval "$lt_compile" 2>conftest.err)
   7348    ac_status=$?
   7349    cat conftest.err >&5
   7350    echo "$as_me:7350: \$? = $ac_status" >&5
   7351    if (exit $ac_status) && test -s "$ac_outfile"; then
   7352      # The compiler can only warn and ignore the option if not recognized
   7353      # So say no if there are warnings other than the usual output.
   7354      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   7355      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7356      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   7357        lt_cv_prog_compiler_rtti_exceptions=yes
   7358      fi
   7359    fi
   7360    $RM conftest*
   7361 
   7362 fi
   7363 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   7364 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   7365 
   7366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   7367     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   7368 else
   7369     :
   7370 fi
   7371 
   7372 fi
   7373 
   7374 
   7375 
   7376 
   7377 
   7378 
   7379   lt_prog_compiler_wl=
   7380 lt_prog_compiler_pic=
   7381 lt_prog_compiler_static=
   7382 
   7383 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   7384 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   7385 
   7386   if test "$GCC" = yes; then
   7387     lt_prog_compiler_wl='-Wl,'
   7388     lt_prog_compiler_static='-static'
   7389 
   7390     case $host_os in
   7391       aix*)
   7392       # All AIX code is PIC.
   7393       if test "$host_cpu" = ia64; then
   7394 	# AIX 5 now supports IA64 processor
   7395 	lt_prog_compiler_static='-Bstatic'
   7396       fi
   7397       ;;
   7398 
   7399     amigaos*)
   7400       case $host_cpu in
   7401       powerpc)
   7402             # see comment about AmigaOS4 .so support
   7403             lt_prog_compiler_pic='-fPIC'
   7404         ;;
   7405       m68k)
   7406             # FIXME: we need at least 68020 code to build shared libraries, but
   7407             # adding the `-m68020' flag to GCC prevents building anything better,
   7408             # like `-m68040'.
   7409             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   7410         ;;
   7411       esac
   7412       ;;
   7413 
   7414     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   7415       # PIC is the default for these OSes.
   7416       ;;
   7417 
   7418     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7419       # This hack is so that the source file can tell whether it is being
   7420       # built for inclusion in a dll (and should export symbols for example).
   7421       # Although the cygwin gcc ignores -fPIC, still need this for old-style
   7422       # (--disable-auto-import) libraries
   7423       lt_prog_compiler_pic='-DDLL_EXPORT'
   7424       ;;
   7425 
   7426     darwin* | rhapsody*)
   7427       # PIC is the default on this platform
   7428       # Common symbols not allowed in MH_DYLIB files
   7429       lt_prog_compiler_pic='-fno-common'
   7430       ;;
   7431 
   7432     hpux*)
   7433       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
   7434       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
   7435       # sets the default TLS model and affects inlining.
   7436       case $host_cpu in
   7437       hppa*64*)
   7438 	# +Z the default
   7439 	;;
   7440       *)
   7441 	lt_prog_compiler_pic='-fPIC'
   7442 	;;
   7443       esac
   7444       ;;
   7445 
   7446     interix[3-9]*)
   7447       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
   7448       # Instead, we relocate shared libraries at runtime.
   7449       ;;
   7450 
   7451     msdosdjgpp*)
   7452       # Just because we use GCC doesn't mean we suddenly get shared libraries
   7453       # on systems that don't support them.
   7454       lt_prog_compiler_can_build_shared=no
   7455       enable_shared=no
   7456       ;;
   7457 
   7458     *nto* | *qnx*)
   7459       # QNX uses GNU C++, but need to define -shared option too, otherwise
   7460       # it will coredump.
   7461       lt_prog_compiler_pic='-fPIC -shared'
   7462       ;;
   7463 
   7464     sysv4*MP*)
   7465       if test -d /usr/nec; then
   7466 	lt_prog_compiler_pic=-Kconform_pic
   7467       fi
   7468       ;;
   7469 
   7470     *)
   7471       lt_prog_compiler_pic='-fPIC'
   7472       ;;
   7473     esac
   7474   else
   7475     # PORTME Check for flag to pass linker flags through the system compiler.
   7476     case $host_os in
   7477     aix*)
   7478       lt_prog_compiler_wl='-Wl,'
   7479       if test "$host_cpu" = ia64; then
   7480 	# AIX 5 now supports IA64 processor
   7481 	lt_prog_compiler_static='-Bstatic'
   7482       else
   7483 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   7484       fi
   7485       ;;
   7486 
   7487     mingw* | cygwin* | pw32* | os2* | cegcc*)
   7488       # This hack is so that the source file can tell whether it is being
   7489       # built for inclusion in a dll (and should export symbols for example).
   7490       lt_prog_compiler_pic='-DDLL_EXPORT'
   7491       ;;
   7492 
   7493     hpux9* | hpux10* | hpux11*)
   7494       lt_prog_compiler_wl='-Wl,'
   7495       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   7496       # not for PA HP-UX.
   7497       case $host_cpu in
   7498       hppa*64*|ia64*)
   7499 	# +Z the default
   7500 	;;
   7501       *)
   7502 	lt_prog_compiler_pic='+Z'
   7503 	;;
   7504       esac
   7505       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   7506       lt_prog_compiler_static='${wl}-a ${wl}archive'
   7507       ;;
   7508 
   7509     irix5* | irix6* | nonstopux*)
   7510       lt_prog_compiler_wl='-Wl,'
   7511       # PIC (with -KPIC) is the default.
   7512       lt_prog_compiler_static='-non_shared'
   7513       ;;
   7514 
   7515     linux* | k*bsd*-gnu)
   7516       case $cc_basename in
   7517       # old Intel for x86_64 which still supported -KPIC.
   7518       ecc*)
   7519 	lt_prog_compiler_wl='-Wl,'
   7520 	lt_prog_compiler_pic='-KPIC'
   7521 	lt_prog_compiler_static='-static'
   7522         ;;
   7523       # icc used to be incompatible with GCC.
   7524       # ICC 10 doesn't accept -KPIC any more.
   7525       icc* | ifort*)
   7526 	lt_prog_compiler_wl='-Wl,'
   7527 	lt_prog_compiler_pic='-fPIC'
   7528 	lt_prog_compiler_static='-static'
   7529         ;;
   7530       # Lahey Fortran 8.1.
   7531       lf95*)
   7532 	lt_prog_compiler_wl='-Wl,'
   7533 	lt_prog_compiler_pic='--shared'
   7534 	lt_prog_compiler_static='--static'
   7535 	;;
   7536       pgcc* | pgf77* | pgf90* | pgf95*)
   7537         # Portland Group compilers (*not* the Pentium gcc compiler,
   7538 	# which looks to be a dead project)
   7539 	lt_prog_compiler_wl='-Wl,'
   7540 	lt_prog_compiler_pic='-fpic'
   7541 	lt_prog_compiler_static='-Bstatic'
   7542         ;;
   7543       ccc*)
   7544         lt_prog_compiler_wl='-Wl,'
   7545         # All Alpha code is PIC.
   7546         lt_prog_compiler_static='-non_shared'
   7547         ;;
   7548       xl*)
   7549 	# IBM XL C 8.0/Fortran 10.1 on PPC
   7550 	lt_prog_compiler_wl='-Wl,'
   7551 	lt_prog_compiler_pic='-qpic'
   7552 	lt_prog_compiler_static='-qstaticlink'
   7553 	;;
   7554       *)
   7555 	case `$CC -V 2>&1 | sed 5q` in
   7556 	*Sun\ C*)
   7557 	  # Sun C 5.9
   7558 	  lt_prog_compiler_pic='-KPIC'
   7559 	  lt_prog_compiler_static='-Bstatic'
   7560 	  lt_prog_compiler_wl='-Wl,'
   7561 	  ;;
   7562 	*Sun\ F*)
   7563 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
   7564 	  lt_prog_compiler_pic='-KPIC'
   7565 	  lt_prog_compiler_static='-Bstatic'
   7566 	  lt_prog_compiler_wl=''
   7567 	  ;;
   7568 	esac
   7569 	;;
   7570       esac
   7571       ;;
   7572 
   7573     newsos6)
   7574       lt_prog_compiler_pic='-KPIC'
   7575       lt_prog_compiler_static='-Bstatic'
   7576       ;;
   7577 
   7578     *nto* | *qnx*)
   7579       # QNX uses GNU C++, but need to define -shared option too, otherwise
   7580       # it will coredump.
   7581       lt_prog_compiler_pic='-fPIC -shared'
   7582       ;;
   7583 
   7584     osf3* | osf4* | osf5*)
   7585       lt_prog_compiler_wl='-Wl,'
   7586       # All OSF/1 code is PIC.
   7587       lt_prog_compiler_static='-non_shared'
   7588       ;;
   7589 
   7590     rdos*)
   7591       lt_prog_compiler_static='-non_shared'
   7592       ;;
   7593 
   7594     solaris*)
   7595       lt_prog_compiler_pic='-KPIC'
   7596       lt_prog_compiler_static='-Bstatic'
   7597       case $cc_basename in
   7598       f77* | f90* | f95*)
   7599 	lt_prog_compiler_wl='-Qoption ld ';;
   7600       *)
   7601 	lt_prog_compiler_wl='-Wl,';;
   7602       esac
   7603       ;;
   7604 
   7605     sunos4*)
   7606       lt_prog_compiler_wl='-Qoption ld '
   7607       lt_prog_compiler_pic='-PIC'
   7608       lt_prog_compiler_static='-Bstatic'
   7609       ;;
   7610 
   7611     sysv4 | sysv4.2uw2* | sysv4.3*)
   7612       lt_prog_compiler_wl='-Wl,'
   7613       lt_prog_compiler_pic='-KPIC'
   7614       lt_prog_compiler_static='-Bstatic'
   7615       ;;
   7616 
   7617     sysv4*MP*)
   7618       if test -d /usr/nec ;then
   7619 	lt_prog_compiler_pic='-Kconform_pic'
   7620 	lt_prog_compiler_static='-Bstatic'
   7621       fi
   7622       ;;
   7623 
   7624     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
   7625       lt_prog_compiler_wl='-Wl,'
   7626       lt_prog_compiler_pic='-KPIC'
   7627       lt_prog_compiler_static='-Bstatic'
   7628       ;;
   7629 
   7630     unicos*)
   7631       lt_prog_compiler_wl='-Wl,'
   7632       lt_prog_compiler_can_build_shared=no
   7633       ;;
   7634 
   7635     uts4*)
   7636       lt_prog_compiler_pic='-pic'
   7637       lt_prog_compiler_static='-Bstatic'
   7638       ;;
   7639 
   7640     *)
   7641       lt_prog_compiler_can_build_shared=no
   7642       ;;
   7643     esac
   7644   fi
   7645 
   7646 case $host_os in
   7647   # For platforms which do not support PIC, -DPIC is meaningless:
   7648   *djgpp*)
   7649     lt_prog_compiler_pic=
   7650     ;;
   7651   *)
   7652     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   7653     ;;
   7654 esac
   7655 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
   7656 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
   7657 
   7658 
   7659 
   7660 
   7661 
   7662 
   7663 #
   7664 # Check to make sure the PIC flag actually works.
   7665 #
   7666 if test -n "$lt_prog_compiler_pic"; then
   7667   { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   7668 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
   7669 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
   7670   echo $ECHO_N "(cached) $ECHO_C" >&6
   7671 else
   7672   lt_cv_prog_compiler_pic_works=no
   7673    ac_outfile=conftest.$ac_objext
   7674    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7675    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   7676    # Insert the option either (1) after the last *FLAGS variable, or
   7677    # (2) before a word containing "conftest.", or (3) at the end.
   7678    # Note that $ac_compile itself does not contain backslashes and begins
   7679    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7680    # The option is referenced via a variable to avoid confusing sed.
   7681    lt_compile=`echo "$ac_compile" | $SED \
   7682    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7683    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7684    -e 's:$: $lt_compiler_flag:'`
   7685    (eval echo "\"\$as_me:7685: $lt_compile\"" >&5)
   7686    (eval "$lt_compile" 2>conftest.err)
   7687    ac_status=$?
   7688    cat conftest.err >&5
   7689    echo "$as_me:7689: \$? = $ac_status" >&5
   7690    if (exit $ac_status) && test -s "$ac_outfile"; then
   7691      # The compiler can only warn and ignore the option if not recognized
   7692      # So say no if there are warnings other than the usual output.
   7693      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   7694      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7695      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   7696        lt_cv_prog_compiler_pic_works=yes
   7697      fi
   7698    fi
   7699    $RM conftest*
   7700 
   7701 fi
   7702 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
   7703 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
   7704 
   7705 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
   7706     case $lt_prog_compiler_pic in
   7707      "" | " "*) ;;
   7708      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   7709      esac
   7710 else
   7711     lt_prog_compiler_pic=
   7712      lt_prog_compiler_can_build_shared=no
   7713 fi
   7714 
   7715 fi
   7716 
   7717 
   7718 
   7719 
   7720 
   7721 
   7722 #
   7723 # Check to make sure the static flag actually works.
   7724 #
   7725 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
   7726 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
   7727 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
   7728 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
   7729   echo $ECHO_N "(cached) $ECHO_C" >&6
   7730 else
   7731   lt_cv_prog_compiler_static_works=no
   7732    save_LDFLAGS="$LDFLAGS"
   7733    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
   7734    echo "$lt_simple_link_test_code" > conftest.$ac_ext
   7735    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   7736      # The linker can only warn and ignore the option if not recognized
   7737      # So say no if there are warnings
   7738      if test -s conftest.err; then
   7739        # Append any errors to the config.log.
   7740        cat conftest.err 1>&5
   7741        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
   7742        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   7743        if diff conftest.exp conftest.er2 >/dev/null; then
   7744          lt_cv_prog_compiler_static_works=yes
   7745        fi
   7746      else
   7747        lt_cv_prog_compiler_static_works=yes
   7748      fi
   7749    fi
   7750    $RM -r conftest*
   7751    LDFLAGS="$save_LDFLAGS"
   7752 
   7753 fi
   7754 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
   7755 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
   7756 
   7757 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
   7758     :
   7759 else
   7760     lt_prog_compiler_static=
   7761 fi
   7762 
   7763 
   7764 
   7765 
   7766 
   7767 
   7768 
   7769   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   7770 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   7771 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
   7772   echo $ECHO_N "(cached) $ECHO_C" >&6
   7773 else
   7774   lt_cv_prog_compiler_c_o=no
   7775    $RM -r conftest 2>/dev/null
   7776    mkdir conftest
   7777    cd conftest
   7778    mkdir out
   7779    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7780 
   7781    lt_compiler_flag="-o out/conftest2.$ac_objext"
   7782    # Insert the option either (1) after the last *FLAGS variable, or
   7783    # (2) before a word containing "conftest.", or (3) at the end.
   7784    # Note that $ac_compile itself does not contain backslashes and begins
   7785    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7786    lt_compile=`echo "$ac_compile" | $SED \
   7787    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7788    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7789    -e 's:$: $lt_compiler_flag:'`
   7790    (eval echo "\"\$as_me:7790: $lt_compile\"" >&5)
   7791    (eval "$lt_compile" 2>out/conftest.err)
   7792    ac_status=$?
   7793    cat out/conftest.err >&5
   7794    echo "$as_me:7794: \$? = $ac_status" >&5
   7795    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   7796    then
   7797      # The compiler can only warn and ignore the option if not recognized
   7798      # So say no if there are warnings
   7799      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
   7800      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   7801      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   7802        lt_cv_prog_compiler_c_o=yes
   7803      fi
   7804    fi
   7805    chmod u+w . 2>&5
   7806    $RM conftest*
   7807    # SGI C++ compiler will create directory out/ii_files/ for
   7808    # template instantiation
   7809    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   7810    $RM out/* && rmdir out
   7811    cd ..
   7812    $RM -r conftest
   7813    $RM conftest*
   7814 
   7815 fi
   7816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
   7817 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
   7818 
   7819 
   7820 
   7821 
   7822 
   7823 
   7824   { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   7825 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   7826 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
   7827   echo $ECHO_N "(cached) $ECHO_C" >&6
   7828 else
   7829   lt_cv_prog_compiler_c_o=no
   7830    $RM -r conftest 2>/dev/null
   7831    mkdir conftest
   7832    cd conftest
   7833    mkdir out
   7834    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   7835 
   7836    lt_compiler_flag="-o out/conftest2.$ac_objext"
   7837    # Insert the option either (1) after the last *FLAGS variable, or
   7838    # (2) before a word containing "conftest.", or (3) at the end.
   7839    # Note that $ac_compile itself does not contain backslashes and begins
   7840    # with a dollar sign (not a hyphen), so the echo should work correctly.
   7841    lt_compile=`echo "$ac_compile" | $SED \
   7842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   7843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   7844    -e 's:$: $lt_compiler_flag:'`
   7845    (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
   7846    (eval "$lt_compile" 2>out/conftest.err)
   7847    ac_status=$?
   7848    cat out/conftest.err >&5
   7849    echo "$as_me:7849: \$? = $ac_status" >&5
   7850    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   7851    then
   7852      # The compiler can only warn and ignore the option if not recognized
   7853      # So say no if there are warnings
   7854      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
   7855      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
   7856      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
   7857        lt_cv_prog_compiler_c_o=yes
   7858      fi
   7859    fi
   7860    chmod u+w . 2>&5
   7861    $RM conftest*
   7862    # SGI C++ compiler will create directory out/ii_files/ for
   7863    # template instantiation
   7864    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
   7865    $RM out/* && rmdir out
   7866    cd ..
   7867    $RM -r conftest
   7868    $RM conftest*
   7869 
   7870 fi
   7871 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
   7872 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
   7873 
   7874 
   7875 
   7876 
   7877 hard_links="nottested"
   7878 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
   7879   # do not overwrite the value of need_locks provided by the user
   7880   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   7881 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   7882   hard_links=yes
   7883   $RM conftest*
   7884   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   7885   touch conftest.a
   7886   ln conftest.a conftest.b 2>&5 || hard_links=no
   7887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   7888   { echo "$as_me:$LINENO: result: $hard_links" >&5
   7889 echo "${ECHO_T}$hard_links" >&6; }
   7890   if test "$hard_links" = no; then
   7891     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   7892 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   7893     need_locks=warn
   7894   fi
   7895 else
   7896   need_locks=no
   7897 fi
   7898 
   7899 
   7900 
   7901 
   7902 
   7903 
   7904   { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   7905 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   7906 
   7907   runpath_var=
   7908   allow_undefined_flag=
   7909   always_export_symbols=no
   7910   archive_cmds=
   7911   archive_expsym_cmds=
   7912   compiler_needs_object=no
   7913   enable_shared_with_static_runtimes=no
   7914   export_dynamic_flag_spec=
   7915   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   7916   hardcode_automatic=no
   7917   hardcode_direct=no
   7918   hardcode_direct_absolute=no
   7919   hardcode_libdir_flag_spec=
   7920   hardcode_libdir_flag_spec_ld=
   7921   hardcode_libdir_separator=
   7922   hardcode_minus_L=no
   7923   hardcode_shlibpath_var=unsupported
   7924   inherit_rpath=no
   7925   link_all_deplibs=unknown
   7926   module_cmds=
   7927   module_expsym_cmds=
   7928   old_archive_from_new_cmds=
   7929   old_archive_from_expsyms_cmds=
   7930   thread_safe_flag_spec=
   7931   whole_archive_flag_spec=
   7932   # include_expsyms should be a list of space-separated symbols to be *always*
   7933   # included in the symbol list
   7934   include_expsyms=
   7935   # exclude_expsyms can be an extended regexp of symbols to exclude
   7936   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   7937   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   7938   # as well as any symbol that contains `d'.
   7939   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
   7940   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   7941   # platforms (ab)use it in PIC code, but their linkers get confused if
   7942   # the symbol is explicitly referenced.  Since portable code cannot
   7943   # rely on this symbol name, it's probably fine to never include it in
   7944   # preloaded symbol tables.
   7945   # Exclude shared library initialization/finalization symbols.
   7946   extract_expsyms_cmds=
   7947 
   7948   case $host_os in
   7949   cygwin* | mingw* | pw32* | cegcc*)
   7950     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   7951     # When not using gcc, we currently assume that we are using
   7952     # Microsoft Visual C++.
   7953     if test "$GCC" != yes; then
   7954       with_gnu_ld=no
   7955     fi
   7956     ;;
   7957   interix*)
   7958     # we just hope/assume this is gcc and not c89 (= MSVC++)
   7959     with_gnu_ld=yes
   7960     ;;
   7961   openbsd*)
   7962     with_gnu_ld=no
   7963     ;;
   7964   linux* | k*bsd*-gnu)
   7965     link_all_deplibs=no
   7966     ;;
   7967   esac
   7968 
   7969   ld_shlibs=yes
   7970   if test "$with_gnu_ld" = yes; then
   7971     # If archive_cmds runs LD, not CC, wlarc should be empty
   7972     wlarc='${wl}'
   7973 
   7974     # Set some defaults for GNU ld with shared library support. These
   7975     # are reset later if shared libraries are not supported. Putting them
   7976     # here allows them to be overridden if necessary.
   7977     runpath_var=LD_RUN_PATH
   7978     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7979     export_dynamic_flag_spec='${wl}--export-dynamic'
   7980     # ancient GNU ld didn't support --whole-archive et. al.
   7981     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
   7982       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   7983     else
   7984       whole_archive_flag_spec=
   7985     fi
   7986     supports_anon_versioning=no
   7987     case `$LD -v 2>&1` in
   7988       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   7989       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   7990       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   7991       *\ 2.11.*) ;; # other 2.11 versions
   7992       *) supports_anon_versioning=yes ;;
   7993     esac
   7994 
   7995     # See if GNU ld supports shared libraries.
   7996     case $host_os in
   7997     aix[3-9]*)
   7998       # On AIX/PPC, the GNU linker is very broken
   7999       if test "$host_cpu" != ia64; then
   8000 	ld_shlibs=no
   8001 	cat <<_LT_EOF 1>&2
   8002 
   8003 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
   8004 *** to be unable to reliably create shared libraries on AIX.
   8005 *** Therefore, libtool is disabling shared libraries support.  If you
   8006 *** really care for shared libraries, you may want to modify your PATH
   8007 *** so that a non-GNU linker is found, and then restart.
   8008 
   8009 _LT_EOF
   8010       fi
   8011       ;;
   8012 
   8013     amigaos*)
   8014       case $host_cpu in
   8015       powerpc)
   8016             # see comment about AmigaOS4 .so support
   8017             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8018             archive_expsym_cmds=''
   8019         ;;
   8020       m68k)
   8021             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)'
   8022             hardcode_libdir_flag_spec='-L$libdir'
   8023             hardcode_minus_L=yes
   8024         ;;
   8025       esac
   8026       ;;
   8027 
   8028     beos*)
   8029       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8030 	allow_undefined_flag=unsupported
   8031 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   8032 	# support --undefined.  This deserves some investigation.  FIXME
   8033 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8034       else
   8035 	ld_shlibs=no
   8036       fi
   8037       ;;
   8038 
   8039     cygwin* | mingw* | pw32* | cegcc*)
   8040       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   8041       # as there is no search path for DLLs.
   8042       hardcode_libdir_flag_spec='-L$libdir'
   8043       allow_undefined_flag=unsupported
   8044       always_export_symbols=no
   8045       enable_shared_with_static_runtimes=yes
   8046       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
   8047 
   8048       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
   8049         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8050 	# If the export-symbols file already is a .def file (1st line
   8051 	# is EXPORTS), use it as is; otherwise, prepend...
   8052 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   8053 	  cp $export_symbols $output_objdir/$soname.def;
   8054 	else
   8055 	  echo EXPORTS > $output_objdir/$soname.def;
   8056 	  cat $export_symbols >> $output_objdir/$soname.def;
   8057 	fi~
   8058 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
   8059       else
   8060 	ld_shlibs=no
   8061       fi
   8062       ;;
   8063 
   8064     interix[3-9]*)
   8065       hardcode_direct=no
   8066       hardcode_shlibpath_var=no
   8067       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   8068       export_dynamic_flag_spec='${wl}-E'
   8069       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
   8070       # Instead, shared libraries are loaded at an image base (0x10000000 by
   8071       # default) and relocated if they conflict, which is a slow very memory
   8072       # consuming and fragmenting process.  To avoid this, we pick a random,
   8073       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
   8074       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
   8075       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   8076       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
   8077       ;;
   8078 
   8079     gnu* | linux* | tpf* | k*bsd*-gnu)
   8080       tmp_diet=no
   8081       if test "$host_os" = linux-dietlibc; then
   8082 	case $cc_basename in
   8083 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
   8084 	esac
   8085       fi
   8086       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
   8087 	 && test "$tmp_diet" = no
   8088       then
   8089 	tmp_addflag=
   8090 	tmp_sharedflag='-shared'
   8091 	case $cc_basename,$host_cpu in
   8092         pgcc*)				# Portland Group C compiler
   8093 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
   8094 	  tmp_addflag=' $pic_flag'
   8095 	  ;;
   8096 	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
   8097 	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
   8098 	  tmp_addflag=' $pic_flag -Mnomain' ;;
   8099 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
   8100 	  tmp_addflag=' -i_dynamic' ;;
   8101 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
   8102 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
   8103 	ifc* | ifort*)			# Intel Fortran compiler
   8104 	  tmp_addflag=' -nofor_main' ;;
   8105 	lf95*)				# Lahey Fortran 8.1
   8106 	  whole_archive_flag_spec=
   8107 	  tmp_sharedflag='--shared' ;;
   8108 	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
   8109 	  tmp_sharedflag='-qmkshrobj'
   8110 	  tmp_addflag= ;;
   8111 	esac
   8112 	case `$CC -V 2>&1 | sed 5q` in
   8113 	*Sun\ C*)			# Sun C 5.9
   8114 	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
   8115 	  compiler_needs_object=yes
   8116 	  tmp_sharedflag='-G' ;;
   8117 	*Sun\ F*)			# Sun Fortran 8.3
   8118 	  tmp_sharedflag='-G' ;;
   8119 	esac
   8120 	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8121 
   8122         if test "x$supports_anon_versioning" = xyes; then
   8123           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8124 	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8125 	    echo "local: *; };" >> $output_objdir/$libname.ver~
   8126 	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   8127         fi
   8128 
   8129 	case $cc_basename in
   8130 	xlf*)
   8131 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
   8132 	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
   8133 	  hardcode_libdir_flag_spec=
   8134 	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
   8135 	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
   8136 	  if test "x$supports_anon_versioning" = xyes; then
   8137 	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
   8138 	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   8139 	      echo "local: *; };" >> $output_objdir/$libname.ver~
   8140 	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
   8141 	  fi
   8142 	  ;;
   8143 	esac
   8144       else
   8145         ld_shlibs=no
   8146       fi
   8147       ;;
   8148 
   8149     netbsd* | netbsdelf*-gnu)
   8150       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   8151 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   8152 	wlarc=
   8153       else
   8154 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8155 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   8156       fi
   8157       ;;
   8158 
   8159     solaris*)
   8160       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
   8161 	ld_shlibs=no
   8162 	cat <<_LT_EOF 1>&2
   8163 
   8164 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   8165 *** create shared libraries on Solaris systems.  Therefore, libtool
   8166 *** is disabling shared libraries support.  We urge you to upgrade GNU
   8167 *** binutils to release 2.9.1 or newer.  Another option is to modify
   8168 *** your PATH or compiler configuration so that the native linker is
   8169 *** used, and then restart.
   8170 
   8171 _LT_EOF
   8172       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8173 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8174 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   8175       else
   8176 	ld_shlibs=no
   8177       fi
   8178       ;;
   8179 
   8180     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
   8181       case `$LD -v 2>&1` in
   8182         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
   8183 	ld_shlibs=no
   8184 	cat <<_LT_EOF 1>&2
   8185 
   8186 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
   8187 *** reliably create shared libraries on SCO systems.  Therefore, libtool
   8188 *** is disabling shared libraries support.  We urge you to upgrade GNU
   8189 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
   8190 *** your PATH or compiler configuration so that the native linker is
   8191 *** used, and then restart.
   8192 
   8193 _LT_EOF
   8194 	;;
   8195 	*)
   8196 	  # For security reasons, it is highly recommended that you always
   8197 	  # use absolute paths for naming shared libraries, and exclude the
   8198 	  # DT_RUNPATH tag from executables and libraries.  But doing so
   8199 	  # requires that you compile everything twice, which is a pain.
   8200 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8201 	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   8202 	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8203 	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   8204 	  else
   8205 	    ld_shlibs=no
   8206 	  fi
   8207 	;;
   8208       esac
   8209       ;;
   8210 
   8211     sunos4*)
   8212       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8213       wlarc=
   8214       hardcode_direct=yes
   8215       hardcode_shlibpath_var=no
   8216       ;;
   8217 
   8218     *)
   8219       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
   8220 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8221 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   8222       else
   8223 	ld_shlibs=no
   8224       fi
   8225       ;;
   8226     esac
   8227 
   8228     if test "$ld_shlibs" = no; then
   8229       runpath_var=
   8230       hardcode_libdir_flag_spec=
   8231       export_dynamic_flag_spec=
   8232       whole_archive_flag_spec=
   8233     fi
   8234   else
   8235     # PORTME fill in a description of your system's linker (not GNU ld)
   8236     case $host_os in
   8237     aix3*)
   8238       allow_undefined_flag=unsupported
   8239       always_export_symbols=yes
   8240       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'
   8241       # Note: this linker hardcodes the directories in LIBPATH if there
   8242       # are no directories specified by -L.
   8243       hardcode_minus_L=yes
   8244       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
   8245 	# Neither direct hardcoding nor static linking is supported with a
   8246 	# broken collect2.
   8247 	hardcode_direct=unsupported
   8248       fi
   8249       ;;
   8250 
   8251     aix[4-9]*)
   8252       if test "$host_cpu" = ia64; then
   8253 	# On IA64, the linker does run time linking by default, so we don't
   8254 	# have to do anything special.
   8255 	aix_use_runtimelinking=no
   8256 	exp_sym_flag='-Bexport'
   8257 	no_entry_flag=""
   8258       else
   8259 	# If we're using GNU nm, then we don't want the "-C" option.
   8260 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   8261 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
   8262 	  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'
   8263 	else
   8264 	  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'
   8265 	fi
   8266 	aix_use_runtimelinking=no
   8267 
   8268 	# Test if we are trying to use run time linking or normal
   8269 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   8270 	# need to do runtime linking.
   8271 	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
   8272 	  for ld_flag in $LDFLAGS; do
   8273 	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   8274 	    aix_use_runtimelinking=yes
   8275 	    break
   8276 	  fi
   8277 	  done
   8278 	  ;;
   8279 	esac
   8280 
   8281 	exp_sym_flag='-bexport'
   8282 	no_entry_flag='-bnoentry'
   8283       fi
   8284 
   8285       # When large executables or shared objects are built, AIX ld can
   8286       # have problems creating the table of contents.  If linking a library
   8287       # or program results in "error TOC overflow" add -mminimal-toc to
   8288       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   8289       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   8290 
   8291       archive_cmds=''
   8292       hardcode_direct=yes
   8293       hardcode_direct_absolute=yes
   8294       hardcode_libdir_separator=':'
   8295       link_all_deplibs=yes
   8296       file_list_spec='${wl}-f,'
   8297 
   8298       if test "$GCC" = yes; then
   8299 	case $host_os in aix4.[012]|aix4.[012].*)
   8300 	# We only want to do this on AIX 4.2 and lower, the check
   8301 	# below for broken collect2 doesn't work under 4.3+
   8302 	  collect2name=`${CC} -print-prog-name=collect2`
   8303 	  if test -f "$collect2name" &&
   8304 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
   8305 	  then
   8306 	  # We have reworked collect2
   8307 	  :
   8308 	  else
   8309 	  # We have old collect2
   8310 	  hardcode_direct=unsupported
   8311 	  # It fails to find uninstalled libraries when the uninstalled
   8312 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   8313 	  # to unsupported forces relinking
   8314 	  hardcode_minus_L=yes
   8315 	  hardcode_libdir_flag_spec='-L$libdir'
   8316 	  hardcode_libdir_separator=
   8317 	  fi
   8318 	  ;;
   8319 	esac
   8320 	shared_flag='-shared'
   8321 	if test "$aix_use_runtimelinking" = yes; then
   8322 	  shared_flag="$shared_flag "'${wl}-G'
   8323 	fi
   8324 	link_all_deplibs=no
   8325       else
   8326 	# not using gcc
   8327 	if test "$host_cpu" = ia64; then
   8328 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   8329 	# chokes on -Wl,-G. The following line is correct:
   8330 	  shared_flag='-G'
   8331 	else
   8332 	  if test "$aix_use_runtimelinking" = yes; then
   8333 	    shared_flag='${wl}-G'
   8334 	  else
   8335 	    shared_flag='${wl}-bM:SRE'
   8336 	  fi
   8337 	fi
   8338       fi
   8339 
   8340       export_dynamic_flag_spec='${wl}-bexpall'
   8341       # It seems that -bexpall does not export symbols beginning with
   8342       # underscore (_), so it is better to generate a list of symbols to export.
   8343       always_export_symbols=yes
   8344       if test "$aix_use_runtimelinking" = yes; then
   8345 	# Warning - without using the other runtime loading flags (-brtl),
   8346 	# -berok will link without error, but may produce a broken library.
   8347 	allow_undefined_flag='-berok'
   8348         # Determine the default libpath from the value encoded in an
   8349         # empty executable.
   8350         cat >conftest.$ac_ext <<_ACEOF
   8351 /* confdefs.h.  */
   8352 _ACEOF
   8353 cat confdefs.h >>conftest.$ac_ext
   8354 cat >>conftest.$ac_ext <<_ACEOF
   8355 /* end confdefs.h.  */
   8356 
   8357 int
   8358 main ()
   8359 {
   8360 
   8361   ;
   8362   return 0;
   8363 }
   8364 _ACEOF
   8365 rm -f conftest.$ac_objext conftest$ac_exeext
   8366 if { (ac_try="$ac_link"
   8367 case "(($ac_try" in
   8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8369   *) ac_try_echo=$ac_try;;
   8370 esac
   8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8372   (eval "$ac_link") 2>conftest.er1
   8373   ac_status=$?
   8374   grep -v '^ *+' conftest.er1 >conftest.err
   8375   rm -f conftest.er1
   8376   cat conftest.err >&5
   8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8378   (exit $ac_status); } && {
   8379 	 test -z "$ac_c_werror_flag" ||
   8380 	 test ! -s conftest.err
   8381        } && test -s conftest$ac_exeext &&
   8382        $as_test_x conftest$ac_exeext; then
   8383 
   8384 lt_aix_libpath_sed='
   8385     /Import File Strings/,/^$/ {
   8386 	/^0/ {
   8387 	    s/^0  *\(.*\)$/\1/
   8388 	    p
   8389 	}
   8390     }'
   8391 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   8392 # Check for a 64-bit object if we didn't find anything.
   8393 if test -z "$aix_libpath"; then
   8394   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   8395 fi
   8396 else
   8397   echo "$as_me: failed program was:" >&5
   8398 sed 's/^/| /' conftest.$ac_ext >&5
   8399 
   8400 
   8401 fi
   8402 
   8403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8404       conftest$ac_exeext conftest.$ac_ext
   8405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   8406 
   8407         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   8408         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   8409       else
   8410 	if test "$host_cpu" = ia64; then
   8411 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
   8412 	  allow_undefined_flag="-z nodefs"
   8413 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
   8414 	else
   8415 	 # Determine the default libpath from the value encoded in an
   8416 	 # empty executable.
   8417 	 cat >conftest.$ac_ext <<_ACEOF
   8418 /* confdefs.h.  */
   8419 _ACEOF
   8420 cat confdefs.h >>conftest.$ac_ext
   8421 cat >>conftest.$ac_ext <<_ACEOF
   8422 /* end confdefs.h.  */
   8423 
   8424 int
   8425 main ()
   8426 {
   8427 
   8428   ;
   8429   return 0;
   8430 }
   8431 _ACEOF
   8432 rm -f conftest.$ac_objext conftest$ac_exeext
   8433 if { (ac_try="$ac_link"
   8434 case "(($ac_try" in
   8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8436   *) ac_try_echo=$ac_try;;
   8437 esac
   8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8439   (eval "$ac_link") 2>conftest.er1
   8440   ac_status=$?
   8441   grep -v '^ *+' conftest.er1 >conftest.err
   8442   rm -f conftest.er1
   8443   cat conftest.err >&5
   8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8445   (exit $ac_status); } && {
   8446 	 test -z "$ac_c_werror_flag" ||
   8447 	 test ! -s conftest.err
   8448        } && test -s conftest$ac_exeext &&
   8449        $as_test_x conftest$ac_exeext; then
   8450 
   8451 lt_aix_libpath_sed='
   8452     /Import File Strings/,/^$/ {
   8453 	/^0/ {
   8454 	    s/^0  *\(.*\)$/\1/
   8455 	    p
   8456 	}
   8457     }'
   8458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   8459 # Check for a 64-bit object if we didn't find anything.
   8460 if test -z "$aix_libpath"; then
   8461   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   8462 fi
   8463 else
   8464   echo "$as_me: failed program was:" >&5
   8465 sed 's/^/| /' conftest.$ac_ext >&5
   8466 
   8467 
   8468 fi
   8469 
   8470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8471       conftest$ac_exeext conftest.$ac_ext
   8472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   8473 
   8474 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   8475 	  # Warning - without using the other run time loading flags,
   8476 	  # -berok will link without error, but may produce a broken library.
   8477 	  no_undefined_flag=' ${wl}-bernotok'
   8478 	  allow_undefined_flag=' ${wl}-berok'
   8479 	  # Exported symbols can be pulled into shared objects from archives
   8480 	  whole_archive_flag_spec='$convenience'
   8481 	  archive_cmds_need_lc=yes
   8482 	  # This is similar to how AIX traditionally builds its shared libraries.
   8483 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   8484 	fi
   8485       fi
   8486       ;;
   8487 
   8488     amigaos*)
   8489       case $host_cpu in
   8490       powerpc)
   8491             # see comment about AmigaOS4 .so support
   8492             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   8493             archive_expsym_cmds=''
   8494         ;;
   8495       m68k)
   8496             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)'
   8497             hardcode_libdir_flag_spec='-L$libdir'
   8498             hardcode_minus_L=yes
   8499         ;;
   8500       esac
   8501       ;;
   8502 
   8503     bsdi[45]*)
   8504       export_dynamic_flag_spec=-rdynamic
   8505       ;;
   8506 
   8507     cygwin* | mingw* | pw32* | cegcc*)
   8508       # When not using gcc, we currently assume that we are using
   8509       # Microsoft Visual C++.
   8510       # hardcode_libdir_flag_spec is actually meaningless, as there is
   8511       # no search path for DLLs.
   8512       hardcode_libdir_flag_spec=' '
   8513       allow_undefined_flag=unsupported
   8514       # Tell ltmain to make .lib files, not .a files.
   8515       libext=lib
   8516       # Tell ltmain to make .dll files, not .so files.
   8517       shrext_cmds=".dll"
   8518       # FIXME: Setting linknames here is a bad hack.
   8519       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
   8520       # The linker will automatically build a .lib file if we build a DLL.
   8521       old_archive_from_new_cmds='true'
   8522       # FIXME: Should let the user specify the lib program.
   8523       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
   8524       fix_srcfile_path='`cygpath -w "$srcfile"`'
   8525       enable_shared_with_static_runtimes=yes
   8526       ;;
   8527 
   8528     darwin* | rhapsody*)
   8529 
   8530 
   8531   archive_cmds_need_lc=no
   8532   hardcode_direct=no
   8533   hardcode_automatic=yes
   8534   hardcode_shlibpath_var=unsupported
   8535   whole_archive_flag_spec=''
   8536   link_all_deplibs=yes
   8537   allow_undefined_flag="$_lt_dar_allow_undefined"
   8538   case $cc_basename in
   8539      ifort*) _lt_dar_can_shared=yes ;;
   8540      *) _lt_dar_can_shared=$GCC ;;
   8541   esac
   8542   if test "$_lt_dar_can_shared" = "yes"; then
   8543     output_verbose_link_cmd=echo
   8544     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   8545     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   8546     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
   8547     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
   8548 
   8549   else
   8550   ld_shlibs=no
   8551   fi
   8552 
   8553       ;;
   8554 
   8555     dgux*)
   8556       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   8557       hardcode_libdir_flag_spec='-L$libdir'
   8558       hardcode_shlibpath_var=no
   8559       ;;
   8560 
   8561     freebsd1*)
   8562       ld_shlibs=no
   8563       ;;
   8564 
   8565     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   8566     # support.  Future versions do this automatically, but an explicit c++rt0.o
   8567     # does not break anything, and helps significantly (at the cost of a little
   8568     # extra space).
   8569     freebsd2.2*)
   8570       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   8571       hardcode_libdir_flag_spec='-R$libdir'
   8572       hardcode_direct=yes
   8573       hardcode_shlibpath_var=no
   8574       ;;
   8575 
   8576     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   8577     freebsd2*)
   8578       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8579       hardcode_direct=yes
   8580       hardcode_minus_L=yes
   8581       hardcode_shlibpath_var=no
   8582       ;;
   8583 
   8584     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   8585     freebsd* | dragonfly*)
   8586       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   8587       hardcode_libdir_flag_spec='-R$libdir'
   8588       hardcode_direct=yes
   8589       hardcode_shlibpath_var=no
   8590       ;;
   8591 
   8592     hpux9*)
   8593       if test "$GCC" = yes; then
   8594 	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'
   8595       else
   8596 	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'
   8597       fi
   8598       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   8599       hardcode_libdir_separator=:
   8600       hardcode_direct=yes
   8601 
   8602       # hardcode_minus_L: Not really in the search PATH,
   8603       # but as the default location of the library.
   8604       hardcode_minus_L=yes
   8605       export_dynamic_flag_spec='${wl}-E'
   8606       ;;
   8607 
   8608     hpux10*)
   8609       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
   8610 	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   8611       else
   8612 	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   8613       fi
   8614       if test "$with_gnu_ld" = no; then
   8615 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   8616 	hardcode_libdir_flag_spec_ld='+b $libdir'
   8617 	hardcode_libdir_separator=:
   8618 	hardcode_direct=yes
   8619 	hardcode_direct_absolute=yes
   8620 	export_dynamic_flag_spec='${wl}-E'
   8621 	# hardcode_minus_L: Not really in the search PATH,
   8622 	# but as the default location of the library.
   8623 	hardcode_minus_L=yes
   8624       fi
   8625       ;;
   8626 
   8627     hpux11*)
   8628       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
   8629 	case $host_cpu in
   8630 	hppa*64*)
   8631 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   8632 	  ;;
   8633 	ia64*)
   8634 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   8635 	  ;;
   8636 	*)
   8637 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   8638 	  ;;
   8639 	esac
   8640       else
   8641 	case $host_cpu in
   8642 	hppa*64*)
   8643 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   8644 	  ;;
   8645 	ia64*)
   8646 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
   8647 	  ;;
   8648 	*)
   8649 	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   8650 	  ;;
   8651 	esac
   8652       fi
   8653       if test "$with_gnu_ld" = no; then
   8654 	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   8655 	hardcode_libdir_separator=:
   8656 
   8657 	case $host_cpu in
   8658 	hppa*64*|ia64*)
   8659 	  hardcode_direct=no
   8660 	  hardcode_shlibpath_var=no
   8661 	  ;;
   8662 	*)
   8663 	  hardcode_direct=yes
   8664 	  hardcode_direct_absolute=yes
   8665 	  export_dynamic_flag_spec='${wl}-E'
   8666 
   8667 	  # hardcode_minus_L: Not really in the search PATH,
   8668 	  # but as the default location of the library.
   8669 	  hardcode_minus_L=yes
   8670 	  ;;
   8671 	esac
   8672       fi
   8673       ;;
   8674 
   8675     irix5* | irix6* | nonstopux*)
   8676       if test "$GCC" = yes; then
   8677 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   8678 	# Try to use the -exported_symbol ld option, if it does not
   8679 	# work, assume that -exports_file does not work either and
   8680 	# implicitly export all symbols.
   8681         save_LDFLAGS="$LDFLAGS"
   8682         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
   8683         cat >conftest.$ac_ext <<_ACEOF
   8684 int foo(void) {}
   8685 _ACEOF
   8686 rm -f conftest.$ac_objext conftest$ac_exeext
   8687 if { (ac_try="$ac_link"
   8688 case "(($ac_try" in
   8689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8690   *) ac_try_echo=$ac_try;;
   8691 esac
   8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8693   (eval "$ac_link") 2>conftest.er1
   8694   ac_status=$?
   8695   grep -v '^ *+' conftest.er1 >conftest.err
   8696   rm -f conftest.er1
   8697   cat conftest.err >&5
   8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8699   (exit $ac_status); } && {
   8700 	 test -z "$ac_c_werror_flag" ||
   8701 	 test ! -s conftest.err
   8702        } && test -s conftest$ac_exeext &&
   8703        $as_test_x conftest$ac_exeext; then
   8704   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
   8705 
   8706 else
   8707   echo "$as_me: failed program was:" >&5
   8708 sed 's/^/| /' conftest.$ac_ext >&5
   8709 
   8710 
   8711 fi
   8712 
   8713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8714       conftest$ac_exeext conftest.$ac_ext
   8715         LDFLAGS="$save_LDFLAGS"
   8716       else
   8717 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
   8718 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
   8719       fi
   8720       archive_cmds_need_lc='no'
   8721       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   8722       hardcode_libdir_separator=:
   8723       inherit_rpath=yes
   8724       link_all_deplibs=yes
   8725       ;;
   8726 
   8727     netbsd* | netbsdelf*-gnu)
   8728       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   8729 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   8730       else
   8731 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   8732       fi
   8733       hardcode_libdir_flag_spec='-R$libdir'
   8734       hardcode_direct=yes
   8735       hardcode_shlibpath_var=no
   8736       ;;
   8737 
   8738     newsos6)
   8739       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   8740       hardcode_direct=yes
   8741       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   8742       hardcode_libdir_separator=:
   8743       hardcode_shlibpath_var=no
   8744       ;;
   8745 
   8746     *nto* | *qnx*)
   8747       ;;
   8748 
   8749     openbsd*)
   8750       if test -f /usr/libexec/ld.so; then
   8751 	hardcode_direct=yes
   8752 	hardcode_shlibpath_var=no
   8753 	hardcode_direct_absolute=yes
   8754 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   8755 	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   8756 	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
   8757 	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   8758 	  export_dynamic_flag_spec='${wl}-E'
   8759 	else
   8760 	  case $host_os in
   8761 	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   8762 	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   8763 	     hardcode_libdir_flag_spec='-R$libdir'
   8764 	     ;;
   8765 	   *)
   8766 	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   8767 	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   8768 	     ;;
   8769 	  esac
   8770 	fi
   8771       else
   8772 	ld_shlibs=no
   8773       fi
   8774       ;;
   8775 
   8776     os2*)
   8777       hardcode_libdir_flag_spec='-L$libdir'
   8778       hardcode_minus_L=yes
   8779       allow_undefined_flag=unsupported
   8780       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'
   8781       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   8782       ;;
   8783 
   8784     osf3*)
   8785       if test "$GCC" = yes; then
   8786 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   8787 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   8788       else
   8789 	allow_undefined_flag=' -expect_unresolved \*'
   8790 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
   8791       fi
   8792       archive_cmds_need_lc='no'
   8793       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   8794       hardcode_libdir_separator=:
   8795       ;;
   8796 
   8797     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   8798       if test "$GCC" = yes; then
   8799 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   8800 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   8801 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   8802       else
   8803 	allow_undefined_flag=' -expect_unresolved \*'
   8804 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
   8805 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
   8806 	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
   8807 
   8808 	# Both c and cxx compiler support -rpath directly
   8809 	hardcode_libdir_flag_spec='-rpath $libdir'
   8810       fi
   8811       archive_cmds_need_lc='no'
   8812       hardcode_libdir_separator=:
   8813       ;;
   8814 
   8815     solaris*)
   8816       no_undefined_flag=' -z defs'
   8817       if test "$GCC" = yes; then
   8818 	wlarc='${wl}'
   8819 	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   8820 	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   8821 	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   8822       else
   8823 	case `$CC -V 2>&1` in
   8824 	*"Compilers 5.0"*)
   8825 	  wlarc=''
   8826 	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   8827 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   8828 	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
   8829 	  ;;
   8830 	*)
   8831 	  wlarc='${wl}'
   8832 	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
   8833 	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
   8834 	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
   8835 	  ;;
   8836 	esac
   8837       fi
   8838       hardcode_libdir_flag_spec='-R$libdir'
   8839       hardcode_shlibpath_var=no
   8840       case $host_os in
   8841       solaris2.[0-5] | solaris2.[0-5].*) ;;
   8842       *)
   8843 	# The compiler driver will combine and reorder linker options,
   8844 	# but understands `-z linker_flag'.  GCC discards it without `$wl',
   8845 	# but is careful enough not to reorder.
   8846 	# Supported since Solaris 2.6 (maybe 2.5.1?)
   8847 	if test "$GCC" = yes; then
   8848 	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   8849 	else
   8850 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
   8851 	fi
   8852 	;;
   8853       esac
   8854       link_all_deplibs=yes
   8855       ;;
   8856 
   8857     sunos4*)
   8858       if test "x$host_vendor" = xsequent; then
   8859 	# Use $CC to link under sequent, because it throws in some extra .o
   8860 	# files that make .init and .fini sections work.
   8861 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   8862       else
   8863 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   8864       fi
   8865       hardcode_libdir_flag_spec='-L$libdir'
   8866       hardcode_direct=yes
   8867       hardcode_minus_L=yes
   8868       hardcode_shlibpath_var=no
   8869       ;;
   8870 
   8871     sysv4)
   8872       case $host_vendor in
   8873 	sni)
   8874 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   8875 	  hardcode_direct=yes # is this really true???
   8876 	;;
   8877 	siemens)
   8878 	  ## LD is ld it makes a PLAMLIB
   8879 	  ## CC just makes a GrossModule.
   8880 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   8881 	  reload_cmds='$CC -r -o $output$reload_objs'
   8882 	  hardcode_direct=no
   8883         ;;
   8884 	motorola)
   8885 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   8886 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   8887 	;;
   8888       esac
   8889       runpath_var='LD_RUN_PATH'
   8890       hardcode_shlibpath_var=no
   8891       ;;
   8892 
   8893     sysv4.3*)
   8894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   8895       hardcode_shlibpath_var=no
   8896       export_dynamic_flag_spec='-Bexport'
   8897       ;;
   8898 
   8899     sysv4*MP*)
   8900       if test -d /usr/nec; then
   8901 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   8902 	hardcode_shlibpath_var=no
   8903 	runpath_var=LD_RUN_PATH
   8904 	hardcode_runpath_var=yes
   8905 	ld_shlibs=yes
   8906       fi
   8907       ;;
   8908 
   8909     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
   8910       no_undefined_flag='${wl}-z,text'
   8911       archive_cmds_need_lc=no
   8912       hardcode_shlibpath_var=no
   8913       runpath_var='LD_RUN_PATH'
   8914 
   8915       if test "$GCC" = yes; then
   8916 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   8917 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   8918       else
   8919 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   8920 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   8921       fi
   8922       ;;
   8923 
   8924     sysv5* | sco3.2v5* | sco5v6*)
   8925       # Note: We can NOT use -z defs as we might desire, because we do not
   8926       # link with -lc, and that would cause any symbols used from libc to
   8927       # always be unresolved, which means just about no library would
   8928       # ever link correctly.  If we're not using GNU ld we use -z text
   8929       # though, which does catch some bad symbols but isn't as heavy-handed
   8930       # as -z defs.
   8931       no_undefined_flag='${wl}-z,text'
   8932       allow_undefined_flag='${wl}-z,nodefs'
   8933       archive_cmds_need_lc=no
   8934       hardcode_shlibpath_var=no
   8935       hardcode_libdir_flag_spec='${wl}-R,$libdir'
   8936       hardcode_libdir_separator=':'
   8937       link_all_deplibs=yes
   8938       export_dynamic_flag_spec='${wl}-Bexport'
   8939       runpath_var='LD_RUN_PATH'
   8940 
   8941       if test "$GCC" = yes; then
   8942 	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   8943 	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   8944       else
   8945 	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   8946 	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
   8947       fi
   8948       ;;
   8949 
   8950     uts4*)
   8951       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   8952       hardcode_libdir_flag_spec='-L$libdir'
   8953       hardcode_shlibpath_var=no
   8954       ;;
   8955 
   8956     *)
   8957       ld_shlibs=no
   8958       ;;
   8959     esac
   8960 
   8961     if test x$host_vendor = xsni; then
   8962       case $host in
   8963       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   8964 	export_dynamic_flag_spec='${wl}-Blargedynsym'
   8965 	;;
   8966       esac
   8967     fi
   8968   fi
   8969 
   8970 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
   8971 echo "${ECHO_T}$ld_shlibs" >&6; }
   8972 test "$ld_shlibs" = no && can_build_shared=no
   8973 
   8974 with_gnu_ld=$with_gnu_ld
   8975 
   8976 
   8977 
   8978 
   8979 
   8980 
   8981 
   8982 
   8983 
   8984 
   8985 
   8986 
   8987 
   8988 
   8989 
   8990 #
   8991 # Do we need to explicitly link libc?
   8992 #
   8993 case "x$archive_cmds_need_lc" in
   8994 x|xyes)
   8995   # Assume -lc should be added
   8996   archive_cmds_need_lc=yes
   8997 
   8998   if test "$enable_shared" = yes && test "$GCC" = yes; then
   8999     case $archive_cmds in
   9000     *'~'*)
   9001       # FIXME: we may have to deal with multi-command sequences.
   9002       ;;
   9003     '$CC '*)
   9004       # Test whether the compiler implicitly links with -lc since on some
   9005       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   9006       # to ld, don't add -lc before -lgcc.
   9007       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   9008 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   9009       $RM conftest*
   9010       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
   9011 
   9012       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   9013   (eval $ac_compile) 2>&5
   9014   ac_status=$?
   9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9016   (exit $ac_status); } 2>conftest.err; then
   9017         soname=conftest
   9018         lib=conftest
   9019         libobjs=conftest.$ac_objext
   9020         deplibs=
   9021         wl=$lt_prog_compiler_wl
   9022 	pic_flag=$lt_prog_compiler_pic
   9023         compiler_flags=-v
   9024         linker_flags=-v
   9025         verstring=
   9026         output_objdir=.
   9027         libname=conftest
   9028         lt_save_allow_undefined_flag=$allow_undefined_flag
   9029         allow_undefined_flag=
   9030         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
   9031   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   9032   ac_status=$?
   9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9034   (exit $ac_status); }
   9035         then
   9036 	  archive_cmds_need_lc=no
   9037         else
   9038 	  archive_cmds_need_lc=yes
   9039         fi
   9040         allow_undefined_flag=$lt_save_allow_undefined_flag
   9041       else
   9042         cat conftest.err 1>&5
   9043       fi
   9044       $RM conftest*
   9045       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
   9046 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
   9047       ;;
   9048     esac
   9049   fi
   9050   ;;
   9051 esac
   9052 
   9053 
   9054 
   9055 
   9056 
   9057 
   9058 
   9059 
   9060 
   9061 
   9062 
   9063 
   9064 
   9065 
   9066 
   9067 
   9068 
   9069 
   9070 
   9071 
   9072 
   9073 
   9074 
   9075 
   9076 
   9077 
   9078 
   9079 
   9080 
   9081 
   9082 
   9083 
   9084 
   9085 
   9086 
   9087 
   9088 
   9089 
   9090 
   9091 
   9092 
   9093 
   9094 
   9095 
   9096 
   9097 
   9098 
   9099 
   9100 
   9101 
   9102 
   9103 
   9104 
   9105 
   9106 
   9107 
   9108 
   9109 
   9110 
   9111 
   9112 
   9113 
   9114 
   9115 
   9116 
   9117 
   9118 
   9119 
   9120 
   9121 
   9122 
   9123 
   9124 
   9125 
   9126 
   9127 
   9128 
   9129 
   9130 
   9131 
   9132 
   9133 
   9134 
   9135 
   9136 
   9137 
   9138 
   9139 
   9140 
   9141 
   9142 
   9143 
   9144 
   9145 
   9146 
   9147 
   9148 
   9149 
   9150 
   9151 
   9152 
   9153 
   9154 
   9155 
   9156 
   9157 
   9158 
   9159 
   9160 
   9161 
   9162 
   9163 
   9164 
   9165 
   9166 
   9167 
   9168 
   9169 
   9170 
   9171 
   9172 
   9173 
   9174 
   9175 
   9176 
   9177 
   9178 
   9179 
   9180 
   9181 
   9182 
   9183 
   9184 
   9185 
   9186 
   9187 
   9188 
   9189 
   9190 
   9191 
   9192 
   9193 
   9194 
   9195 
   9196 
   9197 
   9198 
   9199 
   9200 
   9201 
   9202 
   9203 
   9204 
   9205 
   9206 
   9207 
   9208 
   9209   { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   9210 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   9211 
   9212 if test "$GCC" = yes; then
   9213   case $host_os in
   9214     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
   9215     *) lt_awk_arg="/^libraries:/" ;;
   9216   esac
   9217   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   9218   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
   9219     # if the path contains ";" then we assume it to be the separator
   9220     # otherwise default to the standard path separator (i.e. ":") - it is
   9221     # assumed that no part of a normal pathname contains ";" but that should
   9222     # okay in the real world where ";" in dirpaths is itself problematic.
   9223     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
   9224   else
   9225     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   9226   fi
   9227   # Ok, now we have the path, separated by spaces, we can step through it
   9228   # and add multilib dir if necessary.
   9229   lt_tmp_lt_search_path_spec=
   9230   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
   9231   for lt_sys_path in $lt_search_path_spec; do
   9232     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
   9233       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
   9234     else
   9235       test -d "$lt_sys_path" && \
   9236 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
   9237     fi
   9238   done
   9239   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
   9240 BEGIN {RS=" "; FS="/|\n";} {
   9241   lt_foo="";
   9242   lt_count=0;
   9243   for (lt_i = NF; lt_i > 0; lt_i--) {
   9244     if ($lt_i != "" && $lt_i != ".") {
   9245       if ($lt_i == "..") {
   9246         lt_count++;
   9247       } else {
   9248         if (lt_count == 0) {
   9249           lt_foo="/" $lt_i lt_foo;
   9250         } else {
   9251           lt_count--;
   9252         }
   9253       }
   9254     }
   9255   }
   9256   if (lt_foo != "") { lt_freq[lt_foo]++; }
   9257   if (lt_freq[lt_foo] == 1) { print lt_foo; }
   9258 }'`
   9259   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
   9260 else
   9261   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   9262 fi
   9263 library_names_spec=
   9264 libname_spec='lib$name'
   9265 soname_spec=
   9266 shrext_cmds=".so"
   9267 postinstall_cmds=
   9268 postuninstall_cmds=
   9269 finish_cmds=
   9270 finish_eval=
   9271 shlibpath_var=
   9272 shlibpath_overrides_runpath=unknown
   9273 version_type=none
   9274 dynamic_linker="$host_os ld.so"
   9275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   9276 need_lib_prefix=unknown
   9277 hardcode_into_libs=no
   9278 
   9279 # when you set need_version to no, make sure it does not cause -set_version
   9280 # flags to be left without arguments
   9281 need_version=unknown
   9282 
   9283 case $host_os in
   9284 aix3*)
   9285   version_type=linux
   9286   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   9287   shlibpath_var=LIBPATH
   9288 
   9289   # AIX 3 has no versioning support, so we append a major version to the name.
   9290   soname_spec='${libname}${release}${shared_ext}$major'
   9291   ;;
   9292 
   9293 aix[4-9]*)
   9294   version_type=linux
   9295   need_lib_prefix=no
   9296   need_version=no
   9297   hardcode_into_libs=yes
   9298   if test "$host_cpu" = ia64; then
   9299     # AIX 5 supports IA64
   9300     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   9301     shlibpath_var=LD_LIBRARY_PATH
   9302   else
   9303     # With GCC up to 2.95.x, collect2 would create an import file
   9304     # for dependence libraries.  The import file would start with
   9305     # the line `#! .'.  This would cause the generated library to
   9306     # depend on `.', always an invalid library.  This was fixed in
   9307     # development snapshots of GCC prior to 3.0.
   9308     case $host_os in
   9309       aix4 | aix4.[01] | aix4.[01].*)
   9310       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   9311 	   echo ' yes '
   9312 	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
   9313 	:
   9314       else
   9315 	can_build_shared=no
   9316       fi
   9317       ;;
   9318     esac
   9319     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   9320     # soname into executable. Probably we can add versioning support to
   9321     # collect2, so additional links can be useful in future.
   9322     if test "$aix_use_runtimelinking" = yes; then
   9323       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   9324       # instead of lib<name>.a to let people know that these are not
   9325       # typical AIX shared libraries.
   9326       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9327     else
   9328       # We preserve .a as extension for shared libraries through AIX4.2
   9329       # and later when we are not doing run time linking.
   9330       library_names_spec='${libname}${release}.a $libname.a'
   9331       soname_spec='${libname}${release}${shared_ext}$major'
   9332     fi
   9333     shlibpath_var=LIBPATH
   9334   fi
   9335   ;;
   9336 
   9337 amigaos*)
   9338   case $host_cpu in
   9339   powerpc)
   9340     # Since July 2007 AmigaOS4 officially supports .so libraries.
   9341     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
   9342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9343     ;;
   9344   m68k)
   9345     library_names_spec='$libname.ixlibrary $libname.a'
   9346     # Create ${libname}_ixlibrary.a entries in /sys/libs.
   9347     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'
   9348     ;;
   9349   esac
   9350   ;;
   9351 
   9352 beos*)
   9353   library_names_spec='${libname}${shared_ext}'
   9354   dynamic_linker="$host_os ld.so"
   9355   shlibpath_var=LIBRARY_PATH
   9356   ;;
   9357 
   9358 bsdi[45]*)
   9359   version_type=linux
   9360   need_version=no
   9361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9362   soname_spec='${libname}${release}${shared_ext}$major'
   9363   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   9364   shlibpath_var=LD_LIBRARY_PATH
   9365   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   9366   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   9367   # the default ld.so.conf also contains /usr/contrib/lib and
   9368   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   9369   # libtool to hard-code these into programs
   9370   ;;
   9371 
   9372 cygwin* | mingw* | pw32* | cegcc*)
   9373   version_type=windows
   9374   shrext_cmds=".dll"
   9375   need_version=no
   9376   need_lib_prefix=no
   9377 
   9378   case $GCC,$host_os in
   9379   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
   9380     library_names_spec='$libname.dll.a'
   9381     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   9382     postinstall_cmds='base_file=`basename \${file}`~
   9383       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
   9384       dldir=$destdir/`dirname \$dlpath`~
   9385       test -d \$dldir || mkdir -p \$dldir~
   9386       $install_prog $dir/$dlname \$dldir/$dlname~
   9387       chmod a+x \$dldir/$dlname~
   9388       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
   9389         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
   9390       fi'
   9391     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   9392       dlpath=$dir/\$dldll~
   9393        $RM \$dlpath'
   9394     shlibpath_overrides_runpath=yes
   9395 
   9396     case $host_os in
   9397     cygwin*)
   9398       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   9399       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   9400       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   9401       ;;
   9402     mingw* | cegcc*)
   9403       # MinGW DLLs use traditional 'lib' prefix
   9404       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   9405       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   9406       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
   9407         # It is most probably a Windows format PATH printed by
   9408         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   9409         # path with ; separators, and with drive letters. We can handle the
   9410         # drive letters (cygwin fileutils understands them), so leave them,
   9411         # especially as we might pass files found there to a mingw objdump,
   9412         # which wouldn't understand a cygwinified path. Ahh.
   9413         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   9414       else
   9415         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   9416       fi
   9417       ;;
   9418     pw32*)
   9419       # pw32 DLLs use 'pw' prefix rather than 'lib'
   9420       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   9421       ;;
   9422     esac
   9423     ;;
   9424 
   9425   *)
   9426     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   9427     ;;
   9428   esac
   9429   dynamic_linker='Win32 ld.exe'
   9430   # FIXME: first we should search . and the directory the executable is in
   9431   shlibpath_var=PATH
   9432   ;;
   9433 
   9434 darwin* | rhapsody*)
   9435   dynamic_linker="$host_os dyld"
   9436   version_type=darwin
   9437   need_lib_prefix=no
   9438   need_version=no
   9439   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   9440   soname_spec='${libname}${release}${major}$shared_ext'
   9441   shlibpath_overrides_runpath=yes
   9442   shlibpath_var=DYLD_LIBRARY_PATH
   9443   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
   9444 
   9445   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
   9446   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   9447   ;;
   9448 
   9449 dgux*)
   9450   version_type=linux
   9451   need_lib_prefix=no
   9452   need_version=no
   9453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   9454   soname_spec='${libname}${release}${shared_ext}$major'
   9455   shlibpath_var=LD_LIBRARY_PATH
   9456   ;;
   9457 
   9458 freebsd1*)
   9459   dynamic_linker=no
   9460   ;;
   9461 
   9462 freebsd* | dragonfly*)
   9463   # DragonFly does not have aout.  When/if they implement a new
   9464   # versioning mechanism, adjust this.
   9465   if test -x /usr/bin/objformat; then
   9466     objformat=`/usr/bin/objformat`
   9467   else
   9468     case $host_os in
   9469     freebsd[123]*) objformat=aout ;;
   9470     *) objformat=elf ;;
   9471     esac
   9472   fi
   9473   version_type=freebsd-$objformat
   9474   case $version_type in
   9475     freebsd-elf*)
   9476       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   9477       need_version=no
   9478       need_lib_prefix=no
   9479       ;;
   9480     freebsd-*)
   9481       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   9482       need_version=yes
   9483       ;;
   9484   esac
   9485   shlibpath_var=LD_LIBRARY_PATH
   9486   case $host_os in
   9487   freebsd2*)
   9488     shlibpath_overrides_runpath=yes
   9489     ;;
   9490   freebsd3.[01]* | freebsdelf3.[01]*)
   9491     shlibpath_overrides_runpath=yes
   9492     hardcode_into_libs=yes
   9493     ;;
   9494   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
   9495   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
   9496     shlibpath_overrides_runpath=no
   9497     hardcode_into_libs=yes
   9498     ;;
   9499   *) # from 4.6 on, and DragonFly
   9500     shlibpath_overrides_runpath=yes
   9501     hardcode_into_libs=yes
   9502     ;;
   9503   esac
   9504   ;;
   9505 
   9506 gnu*)
   9507   version_type=linux
   9508   need_lib_prefix=no
   9509   need_version=no
   9510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   9511   soname_spec='${libname}${release}${shared_ext}$major'
   9512   shlibpath_var=LD_LIBRARY_PATH
   9513   hardcode_into_libs=yes
   9514   ;;
   9515 
   9516 hpux9* | hpux10* | hpux11*)
   9517   # Give a soname corresponding to the major version so that dld.sl refuses to
   9518   # link against other versions.
   9519   version_type=sunos
   9520   need_lib_prefix=no
   9521   need_version=no
   9522   case $host_cpu in
   9523   ia64*)
   9524     shrext_cmds='.so'
   9525     hardcode_into_libs=yes
   9526     dynamic_linker="$host_os dld.so"
   9527     shlibpath_var=LD_LIBRARY_PATH
   9528     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   9529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9530     soname_spec='${libname}${release}${shared_ext}$major'
   9531     if test "X$HPUX_IA64_MODE" = X32; then
   9532       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   9533     else
   9534       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   9535     fi
   9536     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   9537     ;;
   9538   hppa*64*)
   9539     shrext_cmds='.sl'
   9540     hardcode_into_libs=yes
   9541     dynamic_linker="$host_os dld.sl"
   9542     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   9543     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   9544     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9545     soname_spec='${libname}${release}${shared_ext}$major'
   9546     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   9547     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   9548     ;;
   9549   *)
   9550     shrext_cmds='.sl'
   9551     dynamic_linker="$host_os dld.sl"
   9552     shlibpath_var=SHLIB_PATH
   9553     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   9554     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9555     soname_spec='${libname}${release}${shared_ext}$major'
   9556     ;;
   9557   esac
   9558   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   9559   postinstall_cmds='chmod 555 $lib'
   9560   ;;
   9561 
   9562 interix[3-9]*)
   9563   version_type=linux
   9564   need_lib_prefix=no
   9565   need_version=no
   9566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   9567   soname_spec='${libname}${release}${shared_ext}$major'
   9568   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
   9569   shlibpath_var=LD_LIBRARY_PATH
   9570   shlibpath_overrides_runpath=no
   9571   hardcode_into_libs=yes
   9572   ;;
   9573 
   9574 irix5* | irix6* | nonstopux*)
   9575   case $host_os in
   9576     nonstopux*) version_type=nonstopux ;;
   9577     *)
   9578 	if test "$lt_cv_prog_gnu_ld" = yes; then
   9579 		version_type=linux
   9580 	else
   9581 		version_type=irix
   9582 	fi ;;
   9583   esac
   9584   need_lib_prefix=no
   9585   need_version=no
   9586   soname_spec='${libname}${release}${shared_ext}$major'
   9587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   9588   case $host_os in
   9589   irix5* | nonstopux*)
   9590     libsuff= shlibsuff=
   9591     ;;
   9592   *)
   9593     case $LD in # libtool.m4 will add one of these switches to LD
   9594     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   9595       libsuff= shlibsuff= libmagic=32-bit;;
   9596     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   9597       libsuff=32 shlibsuff=N32 libmagic=N32;;
   9598     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   9599       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   9600     *) libsuff= shlibsuff= libmagic=never-match;;
   9601     esac
   9602     ;;
   9603   esac
   9604   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   9605   shlibpath_overrides_runpath=no
   9606   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   9607   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   9608   hardcode_into_libs=yes
   9609   ;;
   9610 
   9611 # No shared lib support for Linux oldld, aout, or coff.
   9612 linux*oldld* | linux*aout* | linux*coff*)
   9613   dynamic_linker=no
   9614   ;;
   9615 
   9616 # This must be Linux ELF.
   9617 linux* | k*bsd*-gnu)
   9618   version_type=linux
   9619   need_lib_prefix=no
   9620   need_version=no
   9621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9622   soname_spec='${libname}${release}${shared_ext}$major'
   9623   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   9624   shlibpath_var=LD_LIBRARY_PATH
   9625   shlibpath_overrides_runpath=no
   9626   # Some binutils ld are patched to set DT_RUNPATH
   9627   save_LDFLAGS=$LDFLAGS
   9628   save_libdir=$libdir
   9629   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
   9630        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
   9631   cat >conftest.$ac_ext <<_ACEOF
   9632 /* confdefs.h.  */
   9633 _ACEOF
   9634 cat confdefs.h >>conftest.$ac_ext
   9635 cat >>conftest.$ac_ext <<_ACEOF
   9636 /* end confdefs.h.  */
   9637 
   9638 int
   9639 main ()
   9640 {
   9641 
   9642   ;
   9643   return 0;
   9644 }
   9645 _ACEOF
   9646 rm -f conftest.$ac_objext conftest$ac_exeext
   9647 if { (ac_try="$ac_link"
   9648 case "(($ac_try" in
   9649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   9650   *) ac_try_echo=$ac_try;;
   9651 esac
   9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   9653   (eval "$ac_link") 2>conftest.er1
   9654   ac_status=$?
   9655   grep -v '^ *+' conftest.er1 >conftest.err
   9656   rm -f conftest.er1
   9657   cat conftest.err >&5
   9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9659   (exit $ac_status); } && {
   9660 	 test -z "$ac_c_werror_flag" ||
   9661 	 test ! -s conftest.err
   9662        } && test -s conftest$ac_exeext &&
   9663        $as_test_x conftest$ac_exeext; then
   9664   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
   9665   shlibpath_overrides_runpath=yes
   9666 fi
   9667 
   9668 else
   9669   echo "$as_me: failed program was:" >&5
   9670 sed 's/^/| /' conftest.$ac_ext >&5
   9671 
   9672 
   9673 fi
   9674 
   9675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   9676       conftest$ac_exeext conftest.$ac_ext
   9677   LDFLAGS=$save_LDFLAGS
   9678   libdir=$save_libdir
   9679 
   9680   # This implies no fast_install, which is unacceptable.
   9681   # Some rework will be needed to allow for fast_install
   9682   # before this can be enabled.
   9683   hardcode_into_libs=yes
   9684 
   9685   # Append ld.so.conf contents to the search path
   9686   if test -f /etc/ld.so.conf; then
   9687     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
   9688     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
   9689   fi
   9690 
   9691   # We used to test for /lib/ld.so.1 and disable shared libraries on
   9692   # powerpc, because MkLinux only supported shared libraries with the
   9693   # GNU dynamic linker.  Since this was broken with cross compilers,
   9694   # most powerpc-linux boxes support dynamic linking these days and
   9695   # people can always --disable-shared, the test was removed, and we
   9696   # assume the GNU/Linux dynamic linker is in use.
   9697   dynamic_linker='GNU/Linux ld.so'
   9698   ;;
   9699 
   9700 netbsdelf*-gnu)
   9701   version_type=linux
   9702   need_lib_prefix=no
   9703   need_version=no
   9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   9705   soname_spec='${libname}${release}${shared_ext}$major'
   9706   shlibpath_var=LD_LIBRARY_PATH
   9707   shlibpath_overrides_runpath=no
   9708   hardcode_into_libs=yes
   9709   dynamic_linker='NetBSD ld.elf_so'
   9710   ;;
   9711 
   9712 netbsd*)
   9713   version_type=sunos
   9714   need_lib_prefix=no
   9715   need_version=no
   9716   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
   9717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9718     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   9719     dynamic_linker='NetBSD (a.out) ld.so'
   9720   else
   9721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   9722     soname_spec='${libname}${release}${shared_ext}$major'
   9723     dynamic_linker='NetBSD ld.elf_so'
   9724   fi
   9725   shlibpath_var=LD_LIBRARY_PATH
   9726   shlibpath_overrides_runpath=yes
   9727   hardcode_into_libs=yes
   9728   ;;
   9729 
   9730 newsos6)
   9731   version_type=linux
   9732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9733   shlibpath_var=LD_LIBRARY_PATH
   9734   shlibpath_overrides_runpath=yes
   9735   ;;
   9736 
   9737 *nto* | *qnx*)
   9738   version_type=qnx
   9739   need_lib_prefix=no
   9740   need_version=no
   9741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9742   soname_spec='${libname}${release}${shared_ext}$major'
   9743   shlibpath_var=LD_LIBRARY_PATH
   9744   shlibpath_overrides_runpath=no
   9745   hardcode_into_libs=yes
   9746   dynamic_linker='ldqnx.so'
   9747   ;;
   9748 
   9749 openbsd*)
   9750   version_type=sunos
   9751   sys_lib_dlsearch_path_spec="/usr/lib"
   9752   need_lib_prefix=no
   9753   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
   9754   case $host_os in
   9755     openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
   9756     *)				need_version=no  ;;
   9757   esac
   9758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9759   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   9760   shlibpath_var=LD_LIBRARY_PATH
   9761   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   9762     case $host_os in
   9763       openbsd2.[89] | openbsd2.[89].*)
   9764 	shlibpath_overrides_runpath=no
   9765 	;;
   9766       *)
   9767 	shlibpath_overrides_runpath=yes
   9768 	;;
   9769       esac
   9770   else
   9771     shlibpath_overrides_runpath=yes
   9772   fi
   9773   ;;
   9774 
   9775 os2*)
   9776   libname_spec='$name'
   9777   shrext_cmds=".dll"
   9778   need_lib_prefix=no
   9779   library_names_spec='$libname${shared_ext} $libname.a'
   9780   dynamic_linker='OS/2 ld.exe'
   9781   shlibpath_var=LIBPATH
   9782   ;;
   9783 
   9784 osf3* | osf4* | osf5*)
   9785   version_type=osf
   9786   need_lib_prefix=no
   9787   need_version=no
   9788   soname_spec='${libname}${release}${shared_ext}$major'
   9789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9790   shlibpath_var=LD_LIBRARY_PATH
   9791   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   9792   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   9793   ;;
   9794 
   9795 rdos*)
   9796   dynamic_linker=no
   9797   ;;
   9798 
   9799 solaris*)
   9800   version_type=linux
   9801   need_lib_prefix=no
   9802   need_version=no
   9803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9804   soname_spec='${libname}${release}${shared_ext}$major'
   9805   shlibpath_var=LD_LIBRARY_PATH
   9806   shlibpath_overrides_runpath=yes
   9807   hardcode_into_libs=yes
   9808   # ldd complains unless libraries are executable
   9809   postinstall_cmds='chmod +x $lib'
   9810   ;;
   9811 
   9812 sunos4*)
   9813   version_type=sunos
   9814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   9815   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   9816   shlibpath_var=LD_LIBRARY_PATH
   9817   shlibpath_overrides_runpath=yes
   9818   if test "$with_gnu_ld" = yes; then
   9819     need_lib_prefix=no
   9820   fi
   9821   need_version=yes
   9822   ;;
   9823 
   9824 sysv4 | sysv4.3*)
   9825   version_type=linux
   9826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9827   soname_spec='${libname}${release}${shared_ext}$major'
   9828   shlibpath_var=LD_LIBRARY_PATH
   9829   case $host_vendor in
   9830     sni)
   9831       shlibpath_overrides_runpath=no
   9832       need_lib_prefix=no
   9833       runpath_var=LD_RUN_PATH
   9834       ;;
   9835     siemens)
   9836       need_lib_prefix=no
   9837       ;;
   9838     motorola)
   9839       need_lib_prefix=no
   9840       need_version=no
   9841       shlibpath_overrides_runpath=no
   9842       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   9843       ;;
   9844   esac
   9845   ;;
   9846 
   9847 sysv4*MP*)
   9848   if test -d /usr/nec ;then
   9849     version_type=linux
   9850     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   9851     soname_spec='$libname${shared_ext}.$major'
   9852     shlibpath_var=LD_LIBRARY_PATH
   9853   fi
   9854   ;;
   9855 
   9856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
   9857   version_type=freebsd-elf
   9858   need_lib_prefix=no
   9859   need_version=no
   9860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   9861   soname_spec='${libname}${release}${shared_ext}$major'
   9862   shlibpath_var=LD_LIBRARY_PATH
   9863   shlibpath_overrides_runpath=yes
   9864   hardcode_into_libs=yes
   9865   if test "$with_gnu_ld" = yes; then
   9866     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
   9867   else
   9868     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
   9869     case $host_os in
   9870       sco3.2v5*)
   9871         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
   9872 	;;
   9873     esac
   9874   fi
   9875   sys_lib_dlsearch_path_spec='/usr/lib'
   9876   ;;
   9877 
   9878 tpf*)
   9879   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
   9880   version_type=linux
   9881   need_lib_prefix=no
   9882   need_version=no
   9883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9884   shlibpath_var=LD_LIBRARY_PATH
   9885   shlibpath_overrides_runpath=no
   9886   hardcode_into_libs=yes
   9887   ;;
   9888 
   9889 uts4*)
   9890   version_type=linux
   9891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   9892   soname_spec='${libname}${release}${shared_ext}$major'
   9893   shlibpath_var=LD_LIBRARY_PATH
   9894   ;;
   9895 
   9896 *)
   9897   dynamic_linker=no
   9898   ;;
   9899 esac
   9900 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   9901 echo "${ECHO_T}$dynamic_linker" >&6; }
   9902 test "$dynamic_linker" = no && can_build_shared=no
   9903 
   9904 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   9905 if test "$GCC" = yes; then
   9906   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   9907 fi
   9908 
   9909 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
   9910   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
   9911 fi
   9912 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
   9913   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
   9914 fi
   9915 
   9916 
   9917 
   9918 
   9919 
   9920 
   9921 
   9922 
   9923 
   9924 
   9925 
   9926 
   9927 
   9928 
   9929 
   9930 
   9931 
   9932 
   9933 
   9934 
   9935 
   9936 
   9937 
   9938 
   9939 
   9940 
   9941 
   9942 
   9943 
   9944 
   9945 
   9946 
   9947 
   9948 
   9949 
   9950 
   9951 
   9952 
   9953 
   9954 
   9955 
   9956 
   9957 
   9958 
   9959 
   9960 
   9961 
   9962 
   9963 
   9964 
   9965 
   9966 
   9967 
   9968 
   9969 
   9970 
   9971 
   9972 
   9973 
   9974 
   9975 
   9976 
   9977 
   9978 
   9979 
   9980 
   9981 
   9982 
   9983 
   9984 
   9985 
   9986 
   9987 
   9988 
   9989 
   9990 
   9991 
   9992 
   9993 
   9994 
   9995 
   9996 
   9997 
   9998 
   9999 
   10000 
   10001 
   10002   { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   10003 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   10004 hardcode_action=
   10005 if test -n "$hardcode_libdir_flag_spec" ||
   10006    test -n "$runpath_var" ||
   10007    test "X$hardcode_automatic" = "Xyes" ; then
   10008 
   10009   # We can hardcode non-existent directories.
   10010   if test "$hardcode_direct" != no &&
   10011      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   10012      # have to relink, otherwise we might link with an installed library
   10013      # when we should be linking with a yet-to-be-installed one
   10014      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
   10015      test "$hardcode_minus_L" != no; then
   10016     # Linking always hardcodes the temporary library directory.
   10017     hardcode_action=relink
   10018   else
   10019     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   10020     hardcode_action=immediate
   10021   fi
   10022 else
   10023   # We cannot hardcode anything, or else we can only hardcode existing
   10024   # directories.
   10025   hardcode_action=unsupported
   10026 fi
   10027 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
   10028 echo "${ECHO_T}$hardcode_action" >&6; }
   10029 
   10030 if test "$hardcode_action" = relink ||
   10031    test "$inherit_rpath" = yes; then
   10032   # Fast installation is not supported
   10033   enable_fast_install=no
   10034 elif test "$shlibpath_overrides_runpath" = yes ||
   10035      test "$enable_shared" = no; then
   10036   # Fast installation is not necessary
   10037   enable_fast_install=needless
   10038 fi
   10039 
   10040 
   10041 
   10042 
   10043 
   10044 
   10045   if test "x$enable_dlopen" != xyes; then
   10046   enable_dlopen=unknown
   10047   enable_dlopen_self=unknown
   10048   enable_dlopen_self_static=unknown
   10049 else
   10050   lt_cv_dlopen=no
   10051   lt_cv_dlopen_libs=
   10052 
   10053   case $host_os in
   10054   beos*)
   10055     lt_cv_dlopen="load_add_on"
   10056     lt_cv_dlopen_libs=
   10057     lt_cv_dlopen_self=yes
   10058     ;;
   10059 
   10060   mingw* | pw32* | cegcc*)
   10061     lt_cv_dlopen="LoadLibrary"
   10062     lt_cv_dlopen_libs=
   10063     ;;
   10064 
   10065   cygwin*)
   10066     lt_cv_dlopen="dlopen"
   10067     lt_cv_dlopen_libs=
   10068     ;;
   10069 
   10070   darwin*)
   10071   # if libdl is installed we need to link against it
   10072     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   10073 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   10074 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   10075   echo $ECHO_N "(cached) $ECHO_C" >&6
   10076 else
   10077   ac_check_lib_save_LIBS=$LIBS
   10078 LIBS="-ldl  $LIBS"
   10079 cat >conftest.$ac_ext <<_ACEOF
   10080 /* confdefs.h.  */
   10081 _ACEOF
   10082 cat confdefs.h >>conftest.$ac_ext
   10083 cat >>conftest.$ac_ext <<_ACEOF
   10084 /* end confdefs.h.  */
   10085 
   10086 /* Override any GCC internal prototype to avoid an error.
   10087    Use char because int might match the return type of a GCC
   10088    builtin and then its argument prototype would still apply.  */
   10089 #ifdef __cplusplus
   10090 extern "C"
   10091 #endif
   10092 char dlopen ();
   10093 int
   10094 main ()
   10095 {
   10096 return dlopen ();
   10097   ;
   10098   return 0;
   10099 }
   10100 _ACEOF
   10101 rm -f conftest.$ac_objext conftest$ac_exeext
   10102 if { (ac_try="$ac_link"
   10103 case "(($ac_try" in
   10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10105   *) ac_try_echo=$ac_try;;
   10106 esac
   10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10108   (eval "$ac_link") 2>conftest.er1
   10109   ac_status=$?
   10110   grep -v '^ *+' conftest.er1 >conftest.err
   10111   rm -f conftest.er1
   10112   cat conftest.err >&5
   10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10114   (exit $ac_status); } && {
   10115 	 test -z "$ac_c_werror_flag" ||
   10116 	 test ! -s conftest.err
   10117        } && test -s conftest$ac_exeext &&
   10118        $as_test_x conftest$ac_exeext; then
   10119   ac_cv_lib_dl_dlopen=yes
   10120 else
   10121   echo "$as_me: failed program was:" >&5
   10122 sed 's/^/| /' conftest.$ac_ext >&5
   10123 
   10124 	ac_cv_lib_dl_dlopen=no
   10125 fi
   10126 
   10127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10128       conftest$ac_exeext conftest.$ac_ext
   10129 LIBS=$ac_check_lib_save_LIBS
   10130 fi
   10131 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   10132 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   10133 if test $ac_cv_lib_dl_dlopen = yes; then
   10134   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   10135 else
   10136 
   10137     lt_cv_dlopen="dyld"
   10138     lt_cv_dlopen_libs=
   10139     lt_cv_dlopen_self=yes
   10140 
   10141 fi
   10142 
   10143     ;;
   10144 
   10145   *)
   10146     { echo "$as_me:$LINENO: checking for shl_load" >&5
   10147 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   10148 if test "${ac_cv_func_shl_load+set}" = set; then
   10149   echo $ECHO_N "(cached) $ECHO_C" >&6
   10150 else
   10151   cat >conftest.$ac_ext <<_ACEOF
   10152 /* confdefs.h.  */
   10153 _ACEOF
   10154 cat confdefs.h >>conftest.$ac_ext
   10155 cat >>conftest.$ac_ext <<_ACEOF
   10156 /* end confdefs.h.  */
   10157 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   10158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10159 #define shl_load innocuous_shl_load
   10160 
   10161 /* System header to define __stub macros and hopefully few prototypes,
   10162     which can conflict with char shl_load (); below.
   10163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10164     <limits.h> exists even on freestanding compilers.  */
   10165 
   10166 #ifdef __STDC__
   10167 # include <limits.h>
   10168 #else
   10169 # include <assert.h>
   10170 #endif
   10171 
   10172 #undef shl_load
   10173 
   10174 /* Override any GCC internal prototype to avoid an error.
   10175    Use char because int might match the return type of a GCC
   10176    builtin and then its argument prototype would still apply.  */
   10177 #ifdef __cplusplus
   10178 extern "C"
   10179 #endif
   10180 char shl_load ();
   10181 /* The GNU C library defines this for functions which it implements
   10182     to always fail with ENOSYS.  Some functions are actually named
   10183     something starting with __ and the normal name is an alias.  */
   10184 #if defined __stub_shl_load || defined __stub___shl_load
   10185 choke me
   10186 #endif
   10187 
   10188 int
   10189 main ()
   10190 {
   10191 return shl_load ();
   10192   ;
   10193   return 0;
   10194 }
   10195 _ACEOF
   10196 rm -f conftest.$ac_objext conftest$ac_exeext
   10197 if { (ac_try="$ac_link"
   10198 case "(($ac_try" in
   10199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10200   *) ac_try_echo=$ac_try;;
   10201 esac
   10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10203   (eval "$ac_link") 2>conftest.er1
   10204   ac_status=$?
   10205   grep -v '^ *+' conftest.er1 >conftest.err
   10206   rm -f conftest.er1
   10207   cat conftest.err >&5
   10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10209   (exit $ac_status); } && {
   10210 	 test -z "$ac_c_werror_flag" ||
   10211 	 test ! -s conftest.err
   10212        } && test -s conftest$ac_exeext &&
   10213        $as_test_x conftest$ac_exeext; then
   10214   ac_cv_func_shl_load=yes
   10215 else
   10216   echo "$as_me: failed program was:" >&5
   10217 sed 's/^/| /' conftest.$ac_ext >&5
   10218 
   10219 	ac_cv_func_shl_load=no
   10220 fi
   10221 
   10222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10223       conftest$ac_exeext conftest.$ac_ext
   10224 fi
   10225 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   10226 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   10227 if test $ac_cv_func_shl_load = yes; then
   10228   lt_cv_dlopen="shl_load"
   10229 else
   10230   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   10231 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   10232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   10233   echo $ECHO_N "(cached) $ECHO_C" >&6
   10234 else
   10235   ac_check_lib_save_LIBS=$LIBS
   10236 LIBS="-ldld  $LIBS"
   10237 cat >conftest.$ac_ext <<_ACEOF
   10238 /* confdefs.h.  */
   10239 _ACEOF
   10240 cat confdefs.h >>conftest.$ac_ext
   10241 cat >>conftest.$ac_ext <<_ACEOF
   10242 /* end confdefs.h.  */
   10243 
   10244 /* Override any GCC internal prototype to avoid an error.
   10245    Use char because int might match the return type of a GCC
   10246    builtin and then its argument prototype would still apply.  */
   10247 #ifdef __cplusplus
   10248 extern "C"
   10249 #endif
   10250 char shl_load ();
   10251 int
   10252 main ()
   10253 {
   10254 return shl_load ();
   10255   ;
   10256   return 0;
   10257 }
   10258 _ACEOF
   10259 rm -f conftest.$ac_objext conftest$ac_exeext
   10260 if { (ac_try="$ac_link"
   10261 case "(($ac_try" in
   10262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10263   *) ac_try_echo=$ac_try;;
   10264 esac
   10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10266   (eval "$ac_link") 2>conftest.er1
   10267   ac_status=$?
   10268   grep -v '^ *+' conftest.er1 >conftest.err
   10269   rm -f conftest.er1
   10270   cat conftest.err >&5
   10271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10272   (exit $ac_status); } && {
   10273 	 test -z "$ac_c_werror_flag" ||
   10274 	 test ! -s conftest.err
   10275        } && test -s conftest$ac_exeext &&
   10276        $as_test_x conftest$ac_exeext; then
   10277   ac_cv_lib_dld_shl_load=yes
   10278 else
   10279   echo "$as_me: failed program was:" >&5
   10280 sed 's/^/| /' conftest.$ac_ext >&5
   10281 
   10282 	ac_cv_lib_dld_shl_load=no
   10283 fi
   10284 
   10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10286       conftest$ac_exeext conftest.$ac_ext
   10287 LIBS=$ac_check_lib_save_LIBS
   10288 fi
   10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   10290 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   10291 if test $ac_cv_lib_dld_shl_load = yes; then
   10292   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
   10293 else
   10294   { echo "$as_me:$LINENO: checking for dlopen" >&5
   10295 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
   10296 if test "${ac_cv_func_dlopen+set}" = set; then
   10297   echo $ECHO_N "(cached) $ECHO_C" >&6
   10298 else
   10299   cat >conftest.$ac_ext <<_ACEOF
   10300 /* confdefs.h.  */
   10301 _ACEOF
   10302 cat confdefs.h >>conftest.$ac_ext
   10303 cat >>conftest.$ac_ext <<_ACEOF
   10304 /* end confdefs.h.  */
   10305 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   10306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   10307 #define dlopen innocuous_dlopen
   10308 
   10309 /* System header to define __stub macros and hopefully few prototypes,
   10310     which can conflict with char dlopen (); below.
   10311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   10312     <limits.h> exists even on freestanding compilers.  */
   10313 
   10314 #ifdef __STDC__
   10315 # include <limits.h>
   10316 #else
   10317 # include <assert.h>
   10318 #endif
   10319 
   10320 #undef dlopen
   10321 
   10322 /* Override any GCC internal prototype to avoid an error.
   10323    Use char because int might match the return type of a GCC
   10324    builtin and then its argument prototype would still apply.  */
   10325 #ifdef __cplusplus
   10326 extern "C"
   10327 #endif
   10328 char dlopen ();
   10329 /* The GNU C library defines this for functions which it implements
   10330     to always fail with ENOSYS.  Some functions are actually named
   10331     something starting with __ and the normal name is an alias.  */
   10332 #if defined __stub_dlopen || defined __stub___dlopen
   10333 choke me
   10334 #endif
   10335 
   10336 int
   10337 main ()
   10338 {
   10339 return dlopen ();
   10340   ;
   10341   return 0;
   10342 }
   10343 _ACEOF
   10344 rm -f conftest.$ac_objext conftest$ac_exeext
   10345 if { (ac_try="$ac_link"
   10346 case "(($ac_try" in
   10347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10348   *) ac_try_echo=$ac_try;;
   10349 esac
   10350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10351   (eval "$ac_link") 2>conftest.er1
   10352   ac_status=$?
   10353   grep -v '^ *+' conftest.er1 >conftest.err
   10354   rm -f conftest.er1
   10355   cat conftest.err >&5
   10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10357   (exit $ac_status); } && {
   10358 	 test -z "$ac_c_werror_flag" ||
   10359 	 test ! -s conftest.err
   10360        } && test -s conftest$ac_exeext &&
   10361        $as_test_x conftest$ac_exeext; then
   10362   ac_cv_func_dlopen=yes
   10363 else
   10364   echo "$as_me: failed program was:" >&5
   10365 sed 's/^/| /' conftest.$ac_ext >&5
   10366 
   10367 	ac_cv_func_dlopen=no
   10368 fi
   10369 
   10370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10371       conftest$ac_exeext conftest.$ac_ext
   10372 fi
   10373 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
   10374 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
   10375 if test $ac_cv_func_dlopen = yes; then
   10376   lt_cv_dlopen="dlopen"
   10377 else
   10378   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   10379 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   10380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   10381   echo $ECHO_N "(cached) $ECHO_C" >&6
   10382 else
   10383   ac_check_lib_save_LIBS=$LIBS
   10384 LIBS="-ldl  $LIBS"
   10385 cat >conftest.$ac_ext <<_ACEOF
   10386 /* confdefs.h.  */
   10387 _ACEOF
   10388 cat confdefs.h >>conftest.$ac_ext
   10389 cat >>conftest.$ac_ext <<_ACEOF
   10390 /* end confdefs.h.  */
   10391 
   10392 /* Override any GCC internal prototype to avoid an error.
   10393    Use char because int might match the return type of a GCC
   10394    builtin and then its argument prototype would still apply.  */
   10395 #ifdef __cplusplus
   10396 extern "C"
   10397 #endif
   10398 char dlopen ();
   10399 int
   10400 main ()
   10401 {
   10402 return dlopen ();
   10403   ;
   10404   return 0;
   10405 }
   10406 _ACEOF
   10407 rm -f conftest.$ac_objext conftest$ac_exeext
   10408 if { (ac_try="$ac_link"
   10409 case "(($ac_try" in
   10410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10411   *) ac_try_echo=$ac_try;;
   10412 esac
   10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10414   (eval "$ac_link") 2>conftest.er1
   10415   ac_status=$?
   10416   grep -v '^ *+' conftest.er1 >conftest.err
   10417   rm -f conftest.er1
   10418   cat conftest.err >&5
   10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10420   (exit $ac_status); } && {
   10421 	 test -z "$ac_c_werror_flag" ||
   10422 	 test ! -s conftest.err
   10423        } && test -s conftest$ac_exeext &&
   10424        $as_test_x conftest$ac_exeext; then
   10425   ac_cv_lib_dl_dlopen=yes
   10426 else
   10427   echo "$as_me: failed program was:" >&5
   10428 sed 's/^/| /' conftest.$ac_ext >&5
   10429 
   10430 	ac_cv_lib_dl_dlopen=no
   10431 fi
   10432 
   10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10434       conftest$ac_exeext conftest.$ac_ext
   10435 LIBS=$ac_check_lib_save_LIBS
   10436 fi
   10437 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   10438 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   10439 if test $ac_cv_lib_dl_dlopen = yes; then
   10440   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   10441 else
   10442   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   10443 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   10444 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   10445   echo $ECHO_N "(cached) $ECHO_C" >&6
   10446 else
   10447   ac_check_lib_save_LIBS=$LIBS
   10448 LIBS="-lsvld  $LIBS"
   10449 cat >conftest.$ac_ext <<_ACEOF
   10450 /* confdefs.h.  */
   10451 _ACEOF
   10452 cat confdefs.h >>conftest.$ac_ext
   10453 cat >>conftest.$ac_ext <<_ACEOF
   10454 /* end confdefs.h.  */
   10455 
   10456 /* Override any GCC internal prototype to avoid an error.
   10457    Use char because int might match the return type of a GCC
   10458    builtin and then its argument prototype would still apply.  */
   10459 #ifdef __cplusplus
   10460 extern "C"
   10461 #endif
   10462 char dlopen ();
   10463 int
   10464 main ()
   10465 {
   10466 return dlopen ();
   10467   ;
   10468   return 0;
   10469 }
   10470 _ACEOF
   10471 rm -f conftest.$ac_objext conftest$ac_exeext
   10472 if { (ac_try="$ac_link"
   10473 case "(($ac_try" in
   10474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10475   *) ac_try_echo=$ac_try;;
   10476 esac
   10477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10478   (eval "$ac_link") 2>conftest.er1
   10479   ac_status=$?
   10480   grep -v '^ *+' conftest.er1 >conftest.err
   10481   rm -f conftest.er1
   10482   cat conftest.err >&5
   10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10484   (exit $ac_status); } && {
   10485 	 test -z "$ac_c_werror_flag" ||
   10486 	 test ! -s conftest.err
   10487        } && test -s conftest$ac_exeext &&
   10488        $as_test_x conftest$ac_exeext; then
   10489   ac_cv_lib_svld_dlopen=yes
   10490 else
   10491   echo "$as_me: failed program was:" >&5
   10492 sed 's/^/| /' conftest.$ac_ext >&5
   10493 
   10494 	ac_cv_lib_svld_dlopen=no
   10495 fi
   10496 
   10497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10498       conftest$ac_exeext conftest.$ac_ext
   10499 LIBS=$ac_check_lib_save_LIBS
   10500 fi
   10501 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_