Home | History | Annotate | Download | only in bochs
      1 #! /bin/sh
      2 # From configure.in Id: configure.in,v 1.388 2009/02/02 13:02:47 vruppert Exp .
      3 # Guess values for system-dependent variables and create Makefiles.
      4 # Generated by GNU Autoconf 2.61.
      5 #
      6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
      8 # This configure script is free software; the Free Software Foundation
      9 # gives unlimited permission to copy, distribute and modify it.
     10 ## --------------------- ##
     11 ## M4sh Initialization.  ##
     12 ## --------------------- ##
     13 
     14 # Be more Bourne compatible
     15 DUALCASE=1; export DUALCASE # for MKS sh
     16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
     17   emulate sh
     18   NULLCMD=:
     19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
     20   # is contrary to our usage.  Disable this feature.
     21   alias -g '${1+"$@"}'='"$@"'
     22   setopt NO_GLOB_SUBST
     23 else
     24   case `(set -o) 2>/dev/null` in
     25   *posix*) set -o posix ;;
     26 esac
     27 
     28 fi
     29 
     30 
     31 
     32 
     33 # PATH needs CR
     34 # Avoid depending upon Character Ranges.
     35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
     36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
     37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
     38 as_cr_digits='0123456789'
     39 as_cr_alnum=$as_cr_Letters$as_cr_digits
     40 
     41 # The user is always right.
     42 if test "${PATH_SEPARATOR+set}" != set; then
     43   echo "#! /bin/sh" >conf$$.sh
     44   echo  "exit 0"   >>conf$$.sh
     45   chmod +x conf$$.sh
     46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
     47     PATH_SEPARATOR=';'
     48   else
     49     PATH_SEPARATOR=:
     50   fi
     51   rm -f conf$$.sh
     52 fi
     53 
     54 # Support unset when possible.
     55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
     56   as_unset=unset
     57 else
     58   as_unset=false
     59 fi
     60 
     61 
     62 # IFS
     63 # We need space, tab and new line, in precisely that order.  Quoting is
     64 # there to prevent editors from complaining about space-tab.
     65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     66 # splitting by setting IFS to empty value.)
     67 as_nl='
     68 '
     69 IFS=" ""	$as_nl"
     70 
     71 # Find who we are.  Look in the path if we contain no directory separator.
     72 case $0 in
     73   *[\\/]* ) as_myself=$0 ;;
     74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     75 for as_dir in $PATH
     76 do
     77   IFS=$as_save_IFS
     78   test -z "$as_dir" && as_dir=.
     79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     80 done
     81 IFS=$as_save_IFS
     82 
     83      ;;
     84 esac
     85 # We did not find ourselves, most probably we were run as `sh COMMAND'
     86 # in which case we are not to be found in the path.
     87 if test "x$as_myself" = x; then
     88   as_myself=$0
     89 fi
     90 if test ! -f "$as_myself"; then
     91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
     92   { (exit 1); exit 1; }
     93 fi
     94 
     95 # Work around bugs in pre-3.0 UWIN ksh.
     96 for as_var in ENV MAIL MAILPATH
     97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
     98 done
     99 PS1='$ '
    100 PS2='> '
    101 PS4='+ '
    102 
    103 # NLS nuisances.
    104 for as_var in \
    105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
    106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
    107   LC_TELEPHONE LC_TIME
    108 do
    109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
    110     eval $as_var=C; export $as_var
    111   else
    112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    113   fi
    114 done
    115 
    116 # Required to use basename.
    117 if expr a : '\(a\)' >/dev/null 2>&1 &&
    118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    119   as_expr=expr
    120 else
    121   as_expr=false
    122 fi
    123 
    124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    125   as_basename=basename
    126 else
    127   as_basename=false
    128 fi
    129 
    130 
    131 # Name of the executable.
    132 as_me=`$as_basename -- "$0" ||
    133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    134 	 X"$0" : 'X\(//\)$' \| \
    135 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    136 echo X/"$0" |
    137     sed '/^.*\/\([^/][^/]*\)\/*$/{
    138 	    s//\1/
    139 	    q
    140 	  }
    141 	  /^X\/\(\/\/\)$/{
    142 	    s//\1/
    143 	    q
    144 	  }
    145 	  /^X\/\(\/\).*/{
    146 	    s//\1/
    147 	    q
    148 	  }
    149 	  s/.*/./; q'`
    150 
    151 # CDPATH.
    152 $as_unset CDPATH
    153 
    154 
    155 if test "x$CONFIG_SHELL" = x; then
    156   if (eval ":") 2>/dev/null; then
    157   as_have_required=yes
    158 else
    159   as_have_required=no
    160 fi
    161 
    162   if test $as_have_required = yes && 	 (eval ":
    163 (as_func_return () {
    164   (exit \$1)
    165 }
    166 as_func_success () {
    167   as_func_return 0
    168 }
    169 as_func_failure () {
    170   as_func_return 1
    171 }
    172 as_func_ret_success () {
    173   return 0
    174 }
    175 as_func_ret_failure () {
    176   return 1
    177 }
    178 
    179 exitcode=0
    180 if as_func_success; then
    181   :
    182 else
    183   exitcode=1
    184   echo as_func_success failed.
    185 fi
    186 
    187 if as_func_failure; then
    188   exitcode=1
    189   echo as_func_failure succeeded.
    190 fi
    191 
    192 if as_func_ret_success; then
    193   :
    194 else
    195   exitcode=1
    196   echo as_func_ret_success failed.
    197 fi
    198 
    199 if as_func_ret_failure; then
    200   exitcode=1
    201   echo as_func_ret_failure succeeded.
    202 fi
    203 
    204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    205   :
    206 else
    207   exitcode=1
    208   echo positional parameters were not saved.
    209 fi
    210 
    211 test \$exitcode = 0) || { (exit 1); exit 1; }
    212 
    213 (
    214   as_lineno_1=\$LINENO
    215   as_lineno_2=\$LINENO
    216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
    217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
    218 ") 2> /dev/null; then
    219   :
    220 else
    221   as_candidate_shells=
    222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    224 do
    225   IFS=$as_save_IFS
    226   test -z "$as_dir" && as_dir=.
    227   case $as_dir in
    228 	 /*)
    229 	   for as_base in sh bash ksh sh5; do
    230 	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
    231 	   done;;
    232        esac
    233 done
    234 IFS=$as_save_IFS
    235 
    236 
    237       for as_shell in $as_candidate_shells $SHELL; do
    238 	 # Try only shells that exist, to save several forks.
    239 	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    240 		{ ("$as_shell") 2> /dev/null <<\_ASEOF
    241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    242   emulate sh
    243   NULLCMD=:
    244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    245   # is contrary to our usage.  Disable this feature.
    246   alias -g '${1+"$@"}'='"$@"'
    247   setopt NO_GLOB_SUBST
    248 else
    249   case `(set -o) 2>/dev/null` in
    250   *posix*) set -o posix ;;
    251 esac
    252 
    253 fi
    254 
    255 
    256 :
    257 _ASEOF
    258 }; then
    259   CONFIG_SHELL=$as_shell
    260 	       as_have_required=yes
    261 	       if { "$as_shell" 2> /dev/null <<\_ASEOF
    262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
    263   emulate sh
    264   NULLCMD=:
    265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
    266   # is contrary to our usage.  Disable this feature.
    267   alias -g '${1+"$@"}'='"$@"'
    268   setopt NO_GLOB_SUBST
    269 else
    270   case `(set -o) 2>/dev/null` in
    271   *posix*) set -o posix ;;
    272 esac
    273 
    274 fi
    275 
    276 
    277 :
    278 (as_func_return () {
    279   (exit $1)
    280 }
    281 as_func_success () {
    282   as_func_return 0
    283 }
    284 as_func_failure () {
    285   as_func_return 1
    286 }
    287 as_func_ret_success () {
    288   return 0
    289 }
    290 as_func_ret_failure () {
    291   return 1
    292 }
    293 
    294 exitcode=0
    295 if as_func_success; then
    296   :
    297 else
    298   exitcode=1
    299   echo as_func_success failed.
    300 fi
    301 
    302 if as_func_failure; then
    303   exitcode=1
    304   echo as_func_failure succeeded.
    305 fi
    306 
    307 if as_func_ret_success; then
    308   :
    309 else
    310   exitcode=1
    311   echo as_func_ret_success failed.
    312 fi
    313 
    314 if as_func_ret_failure; then
    315   exitcode=1
    316   echo as_func_ret_failure succeeded.
    317 fi
    318 
    319 if ( set x; as_func_ret_success y && test x = "$1" ); then
    320   :
    321 else
    322   exitcode=1
    323   echo positional parameters were not saved.
    324 fi
    325 
    326 test $exitcode = 0) || { (exit 1); exit 1; }
    327 
    328 (
    329   as_lineno_1=$LINENO
    330   as_lineno_2=$LINENO
    331   test "x$as_lineno_1" != "x$as_lineno_2" &&
    332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
    333 
    334 _ASEOF
    335 }; then
    336   break
    337 fi
    338 
    339 fi
    340 
    341       done
    342 
    343       if test "x$CONFIG_SHELL" != x; then
    344   for as_var in BASH_ENV ENV
    345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
    346         done
    347         export CONFIG_SHELL
    348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    349 fi
    350 
    351 
    352     if test $as_have_required = no; then
    353   echo This script requires a shell more modern than all the
    354       echo shells that I found on your system.  Please install a
    355       echo modern shell, or manually run the script under such a
    356       echo shell if you do have one.
    357       { (exit 1); exit 1; }
    358 fi
    359 
    360 
    361 fi
    362 
    363 fi
    364 
    365 
    366 
    367 (eval "as_func_return () {
    368   (exit \$1)
    369 }
    370 as_func_success () {
    371   as_func_return 0
    372 }
    373 as_func_failure () {
    374   as_func_return 1
    375 }
    376 as_func_ret_success () {
    377   return 0
    378 }
    379 as_func_ret_failure () {
    380   return 1
    381 }
    382 
    383 exitcode=0
    384 if as_func_success; then
    385   :
    386 else
    387   exitcode=1
    388   echo as_func_success failed.
    389 fi
    390 
    391 if as_func_failure; then
    392   exitcode=1
    393   echo as_func_failure succeeded.
    394 fi
    395 
    396 if as_func_ret_success; then
    397   :
    398 else
    399   exitcode=1
    400   echo as_func_ret_success failed.
    401 fi
    402 
    403 if as_func_ret_failure; then
    404   exitcode=1
    405   echo as_func_ret_failure succeeded.
    406 fi
    407 
    408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
    409   :
    410 else
    411   exitcode=1
    412   echo positional parameters were not saved.
    413 fi
    414 
    415 test \$exitcode = 0") || {
    416   echo No shell found that supports shell functions.
    417   echo Please tell autoconf@gnu.org about your system,
    418   echo including any error possibly output before this
    419   echo message
    420 }
    421 
    422 
    423 
    424   as_lineno_1=$LINENO
    425   as_lineno_2=$LINENO
    426   test "x$as_lineno_1" != "x$as_lineno_2" &&
    427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
    428 
    429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
    430   # uniformly replaced by the line number.  The first 'sed' inserts a
    431   # line-number line after each line using $LINENO; the second 'sed'
    432   # does the real work.  The second script uses 'N' to pair each
    433   # line-number line with the line containing $LINENO, and appends
    434   # trailing '-' during substitution so that $LINENO is not a special
    435   # case at line end.
    436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
    437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
    438   # E. McMahon (1931-1989) for sed's syntax.  :-)
    439   sed -n '
    440     p
    441     /[$]LINENO/=
    442   ' <$as_myself |
    443     sed '
    444       s/[$]LINENO.*/&-/
    445       t lineno
    446       b
    447       :lineno
    448       N
    449       :loop
    450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    451       t loop
    452       s/-\n.*//
    453     ' >$as_me.lineno &&
    454   chmod +x "$as_me.lineno" ||
    455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
    456    { (exit 1); exit 1; }; }
    457 
    458   # Don't try to exec as it changes $[0], causing all sort of problems
    459   # (the dirname of $[0] is not the place where we might find the
    460   # original and so on.  Autoconf is especially sensitive to this).
    461   . "./$as_me.lineno"
    462   # Exit status is that of the last command.
    463   exit
    464 }
    465 
    466 
    467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    468   as_dirname=dirname
    469 else
    470   as_dirname=false
    471 fi
    472 
    473 ECHO_C= ECHO_N= ECHO_T=
    474 case `echo -n x` in
    475 -n*)
    476   case `echo 'x\c'` in
    477   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    478   *)   ECHO_C='\c';;
    479   esac;;
    480 *)
    481   ECHO_N='-n';;
    482 esac
    483 
    484 if expr a : '\(a\)' >/dev/null 2>&1 &&
    485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    486   as_expr=expr
    487 else
    488   as_expr=false
    489 fi
    490 
    491 rm -f conf$$ conf$$.exe conf$$.file
    492 if test -d conf$$.dir; then
    493   rm -f conf$$.dir/conf$$.file
    494 else
    495   rm -f conf$$.dir
    496   mkdir conf$$.dir
    497 fi
    498 echo >conf$$.file
    499 if ln -s conf$$.file conf$$ 2>/dev/null; then
    500   as_ln_s='ln -s'
    501   # ... but there are two gotchas:
    502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    504   # In both cases, we have to default to `cp -p'.
    505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    506     as_ln_s='cp -p'
    507 elif ln conf$$.file conf$$ 2>/dev/null; then
    508   as_ln_s=ln
    509 else
    510   as_ln_s='cp -p'
    511 fi
    512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    513 rmdir conf$$.dir 2>/dev/null
    514 
    515 if mkdir -p . 2>/dev/null; then
    516   as_mkdir_p=:
    517 else
    518   test -d ./-p && rmdir ./-p
    519   as_mkdir_p=false
    520 fi
    521 
    522 if test -x / >/dev/null 2>&1; then
    523   as_test_x='test -x'
    524 else
    525   if ls -dL / >/dev/null 2>&1; then
    526     as_ls_L_option=L
    527   else
    528     as_ls_L_option=
    529   fi
    530   as_test_x='
    531     eval sh -c '\''
    532       if test -d "$1"; then
    533         test -d "$1/.";
    534       else
    535 	case $1 in
    536         -*)set "./$1";;
    537 	esac;
    538 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
    539 	???[sx]*):;;*)false;;esac;fi
    540     '\'' sh
    541   '
    542 fi
    543 as_executable_p=$as_test_x
    544 
    545 # Sed expression to map a string onto a valid CPP name.
    546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    547 
    548 # Sed expression to map a string onto a valid variable name.
    549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    550 
    551 
    552 
    553 
    554 # Check that we are running under the correct shell.
    555 SHELL=${CONFIG_SHELL-/bin/sh}
    556 
    557 case X$ECHO in
    558 X*--fallback-echo)
    559   # Remove one level of quotation (which was required for Make).
    560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
    561   ;;
    562 esac
    563 
    564 echo=${ECHO-echo}
    565 if test "X$1" = X--no-reexec; then
    566   # Discard the --no-reexec flag, and continue.
    567   shift
    568 elif test "X$1" = X--fallback-echo; then
    569   # Avoid inline document here, it may be left over
    570   :
    571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
    572   # Yippee, $echo works!
    573   :
    574 else
    575   # Restart under the correct shell.
    576   exec $SHELL "$0" --no-reexec ${1+"$@"}
    577 fi
    578 
    579 if test "X$1" = X--fallback-echo; then
    580   # used as fallback echo
    581   shift
    582   cat <<EOF
    583 $*
    584 EOF
    585   exit 0
    586 fi
    587 
    588 # The HP-UX ksh and POSIX shell print the target directory to stdout
    589 # if CDPATH is set.
    590 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
    591 
    592 if test -z "$ECHO"; then
    593 if test "X${echo_test_string+set}" != Xset; then
    594 # find a string as large as possible, as long as the shell can cope with it
    595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    597     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
    598        echo_test_string="`eval $cmd`" &&
    599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    600     then
    601       break
    602     fi
    603   done
    604 fi
    605 
    606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
    607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
    608    test "X$echo_testing_string" = "X$echo_test_string"; then
    609   :
    610 else
    611   # The Solaris, AIX, and Digital Unix default echo programs unquote
    612   # backslashes.  This makes it impossible to quote backslashes using
    613   #   echo "$something" | sed 's/\\/\\\\/g'
    614   #
    615   # So, first we look for a working echo in the user's PATH.
    616 
    617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    618   for dir in $PATH /usr/ucb; do
    619     IFS="$lt_save_ifs"
    620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
    623        test "X$echo_testing_string" = "X$echo_test_string"; then
    624       echo="$dir/echo"
    625       break
    626     fi
    627   done
    628   IFS="$lt_save_ifs"
    629 
    630   if test "X$echo" = Xecho; then
    631     # We didn't find a better echo, so look for alternatives.
    632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
    633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
    634        test "X$echo_testing_string" = "X$echo_test_string"; then
    635       # This shell has a builtin print -r that does the trick.
    636       echo='print -r'
    637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
    638 	 test "X$CONFIG_SHELL" != X/bin/ksh; then
    639       # If we have ksh, try running configure again with it.
    640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    641       export ORIGINAL_CONFIG_SHELL
    642       CONFIG_SHELL=/bin/ksh
    643       export CONFIG_SHELL
    644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
    645     else
    646       # Try using printf.
    647       echo='printf %s\n'
    648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
    649 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
    650 	 test "X$echo_testing_string" = "X$echo_test_string"; then
    651 	# Cool, printf works
    652 	:
    653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    654 	   test "X$echo_testing_string" = 'X\t' &&
    655 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    656 	   test "X$echo_testing_string" = "X$echo_test_string"; then
    657 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
    658 	export CONFIG_SHELL
    659 	SHELL="$CONFIG_SHELL"
    660 	export SHELL
    661 	echo="$CONFIG_SHELL $0 --fallback-echo"
    662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
    663 	   test "X$echo_testing_string" = 'X\t' &&
    664 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
    665 	   test "X$echo_testing_string" = "X$echo_test_string"; then
    666 	echo="$CONFIG_SHELL $0 --fallback-echo"
    667       else
    668 	# maybe with a smaller string...
    669 	prev=:
    670 
    671 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
    672 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
    673 	  then
    674 	    break
    675 	  fi
    676 	  prev="$cmd"
    677 	done
    678 
    679 	if test "$prev" != 'sed 50q "$0"'; then
    680 	  echo_test_string=`eval $prev`
    681 	  export echo_test_string
    682 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
    683 	else
    684 	  # Oops.  We lost completely, so just stick with echo.
    685 	  echo=echo
    686 	fi
    687       fi
    688     fi
    689   fi
    690 fi
    691 fi
    692 
    693 # Copy echo and quote the copy suitably for passing to libtool from
    694 # the Makefile, instead of quoting the original, which is used later.
    695 ECHO=$echo
    696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
    697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
    698 fi
    699 
    700 
    701 
    702 
    703 tagnames=${tagnames+${tagnames},}CXX
    704 
    705 tagnames=${tagnames+${tagnames},}F77
    706 
    707 exec 7<&0 </dev/null 6>&1
    708 
    709 # Name of the host.
    710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    711 # so uname gets run too.
    712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    713 
    714 #
    715 # Initializations.
    716 #
    717 ac_default_prefix=/usr/local
    718 ac_clean_files=
    719 ac_config_libobj_dir=.
    720 LIBOBJS=
    721 cross_compiling=no
    722 subdirs=
    723 MFLAGS=
    724 MAKEFLAGS=
    725 SHELL=${CONFIG_SHELL-/bin/sh}
    726 
    727 # Identity of this package.
    728 PACKAGE_NAME=
    729 PACKAGE_TARNAME=
    730 PACKAGE_VERSION=
    731 PACKAGE_STRING=
    732 PACKAGE_BUGREPORT=
    733 
    734 ac_unique_file="bochs.h"
    735 # Factoring default headers for most tests.
    736 ac_includes_default="\
    737 #include <stdio.h>
    738 #ifdef HAVE_SYS_TYPES_H
    739 # include <sys/types.h>
    740 #endif
    741 #ifdef HAVE_SYS_STAT_H
    742 # include <sys/stat.h>
    743 #endif
    744 #ifdef STDC_HEADERS
    745 # include <stdlib.h>
    746 # include <stddef.h>
    747 #else
    748 # ifdef HAVE_STDLIB_H
    749 #  include <stdlib.h>
    750 # endif
    751 #endif
    752 #ifdef HAVE_STRING_H
    753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    754 #  include <memory.h>
    755 # endif
    756 # include <string.h>
    757 #endif
    758 #ifdef HAVE_STRINGS_H
    759 # include <strings.h>
    760 #endif
    761 #ifdef HAVE_INTTYPES_H
    762 # include <inttypes.h>
    763 #endif
    764 #ifdef HAVE_STDINT_H
    765 # include <stdint.h>
    766 #endif
    767 #ifdef HAVE_UNISTD_H
    768 # include <unistd.h>
    769 #endif"
    770 
    771 ac_subst_vars='SHELL
    772 PATH_SEPARATOR
    773 PACKAGE_NAME
    774 PACKAGE_TARNAME
    775 PACKAGE_VERSION
    776 PACKAGE_STRING
    777 PACKAGE_BUGREPORT
    778 exec_prefix
    779 prefix
    780 program_transform_name
    781 bindir
    782 sbindir
    783 libexecdir
    784 datarootdir
    785 datadir
    786 sysconfdir
    787 sharedstatedir
    788 localstatedir
    789 includedir
    790 oldincludedir
    791 docdir
    792 infodir
    793 htmldir
    794 dvidir
    795 pdfdir
    796 psdir
    797 libdir
    798 localedir
    799 mandir
    800 DEFS
    801 ECHO_C
    802 ECHO_N
    803 ECHO_T
    804 LIBS
    805 build_alias
    806 host_alias
    807 target_alias
    808 build
    809 build_cpu
    810 build_vendor
    811 build_os
    812 host
    813 host_cpu
    814 host_vendor
    815 host_os
    816 target
    817 target_cpu
    818 target_vendor
    819 target_os
    820 CC
    821 CFLAGS
    822 LDFLAGS
    823 CPPFLAGS
    824 ac_ct_CC
    825 EXEEXT
    826 OBJEXT
    827 CXX
    828 CXXFLAGS
    829 ac_ct_CXX
    830 SET_MAKE
    831 GREP
    832 EGREP
    833 LN_S
    834 ECHO
    835 AR
    836 RANLIB
    837 STRIP
    838 CPP
    839 CXXCPP
    840 F77
    841 FFLAGS
    842 ac_ct_F77
    843 LIBTOOL
    844 LIBADD_DL
    845 XMKMF
    846 X_CFLAGS
    847 X_PRE_LIBS
    848 X_LIBS
    849 X_EXTRA_LIBS
    850 BX_USE_IDLE_HACK
    851 DEFINE_PLUGIN_PATH
    852 NONPLUGIN_GUI_LINK_OPTS
    853 OBJS64
    854 IOAPIC_OBJS
    855 BX_COMPRESSED_HD_SUPPORT
    856 NE2K_OBJS
    857 BX_SUPPORT_ACPI
    858 PCI_OBJ
    859 KERNELDIR
    860 LSMOD
    861 INSMOD
    862 RMMOD
    863 DEPMOD
    864 PCIDEV_MODULE_MAKE_ALL
    865 KERNEL_MODULE_SUFFIX
    866 USBDEV_OBJS
    867 SCSI_OBJS
    868 NETLOW_OBJS
    869 SUFFIX_LINE
    870 CPP_SUFFIX
    871 DEBUGGER_VAR
    872 DISASM_VAR
    873 READLINE_LIB
    874 INSTRUMENT_DIR
    875 INSTRUMENT_VAR
    876 FPU_VAR
    877 CDROM_OBJS
    878 SB16_OBJS
    879 SOUNDLOW_OBJS
    880 SOUND_LINK_OPTS
    881 GAME_OBJS
    882 GDBSTUB_VAR
    883 IODEBUG_OBJS
    884 DOCBOOK2HTML
    885 BUILD_DOCBOOK_VAR
    886 INSTALL_DOCBOOK_VAR
    887 IODEV_LIB_VAR
    888 EXTRA_BX_OBJS
    889 NONINLINE_VAR
    890 INLINE_VAR
    891 EXTERNAL_DEPENDENCY
    892 RC_CMD
    893 WX_CONFIG
    894 XPM_LIB
    895 GUI_CFLAGS
    896 GUI_CXXFLAGS
    897 WX_CFLAGS
    898 WX_CXXFLAGS
    899 TOOLKIT_CXXFLAGS
    900 WGET
    901 ENH_DBG_OBJS
    902 DIALOG_OBJS
    903 EXPORT_DYNAMIC
    904 PTHREAD_CC
    905 PTHREAD_LIBS
    906 PTHREAD_CFLAGS
    907 INSTALL_TARGET
    908 INSTALL_LIST_FOR_PLATFORM
    909 RFB_LIBS
    910 GUI_OBJS
    911 DEVICE_LINK_OPTS
    912 GUI_LINK_OPTS
    913 GUI_LINK_OPTS_TERM
    914 GUI_LINK_OPTS_WX
    915 BXIMAGE_LINK_OPTS
    916 DASH
    917 SLASH
    918 CXXFP
    919 CFP
    920 OFP
    921 MAKELIB
    922 RMCOMMAND
    923 LINK
    924 LINK_CONSOLE
    925 EXE
    926 PRIMARY_TARGET
    927 PLUGIN_LIBNAME_TRANSFORMATION
    928 COMMAND_SEPARATOR
    929 CD_UP_ONE
    930 CD_UP_TWO
    931 CD_UP_THREE
    932 VERSION
    933 VER_STRING
    934 WIN_VER_STRING
    935 REL_STRING
    936 EXTRA_LINK_OPTS
    937 GUI_NON_PLUGIN_OBJS
    938 GUI_PLUGIN_OBJS
    939 IODEV_NON_PLUGIN_OBJS
    940 IODEV_PLUGIN_OBJS
    941 PLUGIN_VAR
    942 PLUGIN_TARGET
    943 INSTALL_PLUGINS_VAR
    944 GZIP
    945 TAR
    946 LIBOBJS
    947 LTLIBOBJS'
    948 ac_subst_files=''
    949       ac_precious_vars='build_alias
    950 host_alias
    951 target_alias
    952 CC
    953 CFLAGS
    954 LDFLAGS
    955 LIBS
    956 CPPFLAGS
    957 CXX
    958 CXXFLAGS
    959 CCC
    960 CPP
    961 CXXCPP
    962 F77
    963 FFLAGS
    964 XMKMF'
    965 
    966 
    967 # Initialize some variables set by options.
    968 ac_init_help=
    969 ac_init_version=false
    970 # The variables have the same names as the options, with
    971 # dashes changed to underlines.
    972 cache_file=/dev/null
    973 exec_prefix=NONE
    974 no_create=
    975 no_recursion=
    976 prefix=NONE
    977 program_prefix=NONE
    978 program_suffix=NONE
    979 program_transform_name=s,x,x,
    980 silent=
    981 site=
    982 srcdir=
    983 verbose=
    984 x_includes=NONE
    985 x_libraries=NONE
    986 
    987 # Installation directory options.
    988 # These are left unexpanded so users can "make install exec_prefix=/foo"
    989 # and all the variables that are supposed to be based on exec_prefix
    990 # by default will actually change.
    991 # Use braces instead of parens because sh, perl, etc. also accept them.
    992 # (The list follows the same order as the GNU Coding Standards.)
    993 bindir='${exec_prefix}/bin'
    994 sbindir='${exec_prefix}/sbin'
    995 libexecdir='${exec_prefix}/libexec'
    996 datarootdir='${prefix}/share'
    997 datadir='${datarootdir}'
    998 sysconfdir='${prefix}/etc'
    999 sharedstatedir='${prefix}/com'
   1000 localstatedir='${prefix}/var'
   1001 includedir='${prefix}/include'
   1002 oldincludedir='/usr/include'
   1003 docdir='${datarootdir}/doc/${PACKAGE}'
   1004 infodir='${datarootdir}/info'
   1005 htmldir='${docdir}'
   1006 dvidir='${docdir}'
   1007 pdfdir='${docdir}'
   1008 psdir='${docdir}'
   1009 libdir='${exec_prefix}/lib'
   1010 localedir='${datarootdir}/locale'
   1011 mandir='${datarootdir}/man'
   1012 
   1013 ac_prev=
   1014 ac_dashdash=
   1015 for ac_option
   1016 do
   1017   # If the previous option needs an argument, assign it.
   1018   if test -n "$ac_prev"; then
   1019     eval $ac_prev=\$ac_option
   1020     ac_prev=
   1021     continue
   1022   fi
   1023 
   1024   case $ac_option in
   1025   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1026   *)	ac_optarg=yes ;;
   1027   esac
   1028 
   1029   # Accept the important Cygnus configure options, so we can diagnose typos.
   1030 
   1031   case $ac_dashdash$ac_option in
   1032   --)
   1033     ac_dashdash=yes ;;
   1034 
   1035   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1036     ac_prev=bindir ;;
   1037   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1038     bindir=$ac_optarg ;;
   1039 
   1040   -build | --build | --buil | --bui | --bu)
   1041     ac_prev=build_alias ;;
   1042   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1043     build_alias=$ac_optarg ;;
   1044 
   1045   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1046   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1047     ac_prev=cache_file ;;
   1048   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1049   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1050     cache_file=$ac_optarg ;;
   1051 
   1052   --config-cache | -C)
   1053     cache_file=config.cache ;;
   1054 
   1055   -datadir | --datadir | --datadi | --datad)
   1056     ac_prev=datadir ;;
   1057   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1058     datadir=$ac_optarg ;;
   1059 
   1060   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1061   | --dataroo | --dataro | --datar)
   1062     ac_prev=datarootdir ;;
   1063   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1064   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1065     datarootdir=$ac_optarg ;;
   1066 
   1067   -disable-* | --disable-*)
   1068     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1069     # Reject names that are not valid shell variable names.
   1070     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1071       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   1072    { (exit 1); exit 1; }; }
   1073     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   1074     eval enable_$ac_feature=no ;;
   1075 
   1076   -docdir | --docdir | --docdi | --doc | --do)
   1077     ac_prev=docdir ;;
   1078   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1079     docdir=$ac_optarg ;;
   1080 
   1081   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1082     ac_prev=dvidir ;;
   1083   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1084     dvidir=$ac_optarg ;;
   1085 
   1086   -enable-* | --enable-*)
   1087     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1088     # Reject names that are not valid shell variable names.
   1089     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1090       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
   1091    { (exit 1); exit 1; }; }
   1092     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
   1093     eval enable_$ac_feature=\$ac_optarg ;;
   1094 
   1095   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1096   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1097   | --exec | --exe | --ex)
   1098     ac_prev=exec_prefix ;;
   1099   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1100   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1101   | --exec=* | --exe=* | --ex=*)
   1102     exec_prefix=$ac_optarg ;;
   1103 
   1104   -gas | --gas | --ga | --g)
   1105     # Obsolete; use --with-gas.
   1106     with_gas=yes ;;
   1107 
   1108   -help | --help | --hel | --he | -h)
   1109     ac_init_help=long ;;
   1110   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1111     ac_init_help=recursive ;;
   1112   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1113     ac_init_help=short ;;
   1114 
   1115   -host | --host | --hos | --ho)
   1116     ac_prev=host_alias ;;
   1117   -host=* | --host=* | --hos=* | --ho=*)
   1118     host_alias=$ac_optarg ;;
   1119 
   1120   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1121     ac_prev=htmldir ;;
   1122   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1123   | --ht=*)
   1124     htmldir=$ac_optarg ;;
   1125 
   1126   -includedir | --includedir | --includedi | --included | --include \
   1127   | --includ | --inclu | --incl | --inc)
   1128     ac_prev=includedir ;;
   1129   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1130   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1131     includedir=$ac_optarg ;;
   1132 
   1133   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1134     ac_prev=infodir ;;
   1135   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1136     infodir=$ac_optarg ;;
   1137 
   1138   -libdir | --libdir | --libdi | --libd)
   1139     ac_prev=libdir ;;
   1140   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1141     libdir=$ac_optarg ;;
   1142 
   1143   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1144   | --libexe | --libex | --libe)
   1145     ac_prev=libexecdir ;;
   1146   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1147   | --libexe=* | --libex=* | --libe=*)
   1148     libexecdir=$ac_optarg ;;
   1149 
   1150   -localedir | --localedir | --localedi | --localed | --locale)
   1151     ac_prev=localedir ;;
   1152   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1153     localedir=$ac_optarg ;;
   1154 
   1155   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1156   | --localstate | --localstat | --localsta | --localst | --locals)
   1157     ac_prev=localstatedir ;;
   1158   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1159   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1160     localstatedir=$ac_optarg ;;
   1161 
   1162   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1163     ac_prev=mandir ;;
   1164   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1165     mandir=$ac_optarg ;;
   1166 
   1167   -nfp | --nfp | --nf)
   1168     # Obsolete; use --without-fp.
   1169     with_fp=no ;;
   1170 
   1171   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1172   | --no-cr | --no-c | -n)
   1173     no_create=yes ;;
   1174 
   1175   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1176   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1177     no_recursion=yes ;;
   1178 
   1179   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1180   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1181   | --oldin | --oldi | --old | --ol | --o)
   1182     ac_prev=oldincludedir ;;
   1183   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1184   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1185   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1186     oldincludedir=$ac_optarg ;;
   1187 
   1188   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1189     ac_prev=prefix ;;
   1190   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1191     prefix=$ac_optarg ;;
   1192 
   1193   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1194   | --program-pre | --program-pr | --program-p)
   1195     ac_prev=program_prefix ;;
   1196   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1197   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1198     program_prefix=$ac_optarg ;;
   1199 
   1200   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1201   | --program-suf | --program-su | --program-s)
   1202     ac_prev=program_suffix ;;
   1203   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1204   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1205     program_suffix=$ac_optarg ;;
   1206 
   1207   -program-transform-name | --program-transform-name \
   1208   | --program-transform-nam | --program-transform-na \
   1209   | --program-transform-n | --program-transform- \
   1210   | --program-transform | --program-transfor \
   1211   | --program-transfo | --program-transf \
   1212   | --program-trans | --program-tran \
   1213   | --progr-tra | --program-tr | --program-t)
   1214     ac_prev=program_transform_name ;;
   1215   -program-transform-name=* | --program-transform-name=* \
   1216   | --program-transform-nam=* | --program-transform-na=* \
   1217   | --program-transform-n=* | --program-transform-=* \
   1218   | --program-transform=* | --program-transfor=* \
   1219   | --program-transfo=* | --program-transf=* \
   1220   | --program-trans=* | --program-tran=* \
   1221   | --progr-tra=* | --program-tr=* | --program-t=*)
   1222     program_transform_name=$ac_optarg ;;
   1223 
   1224   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1225     ac_prev=pdfdir ;;
   1226   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1227     pdfdir=$ac_optarg ;;
   1228 
   1229   -psdir | --psdir | --psdi | --psd | --ps)
   1230     ac_prev=psdir ;;
   1231   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1232     psdir=$ac_optarg ;;
   1233 
   1234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1235   | -silent | --silent | --silen | --sile | --sil)
   1236     silent=yes ;;
   1237 
   1238   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1239     ac_prev=sbindir ;;
   1240   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1241   | --sbi=* | --sb=*)
   1242     sbindir=$ac_optarg ;;
   1243 
   1244   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1245   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1246   | --sharedst | --shareds | --shared | --share | --shar \
   1247   | --sha | --sh)
   1248     ac_prev=sharedstatedir ;;
   1249   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1250   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1251   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1252   | --sha=* | --sh=*)
   1253     sharedstatedir=$ac_optarg ;;
   1254 
   1255   -site | --site | --sit)
   1256     ac_prev=site ;;
   1257   -site=* | --site=* | --sit=*)
   1258     site=$ac_optarg ;;
   1259 
   1260   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1261     ac_prev=srcdir ;;
   1262   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1263     srcdir=$ac_optarg ;;
   1264 
   1265   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1266   | --syscon | --sysco | --sysc | --sys | --sy)
   1267     ac_prev=sysconfdir ;;
   1268   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1269   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1270     sysconfdir=$ac_optarg ;;
   1271 
   1272   -target | --target | --targe | --targ | --tar | --ta | --t)
   1273     ac_prev=target_alias ;;
   1274   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1275     target_alias=$ac_optarg ;;
   1276 
   1277   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1278     verbose=yes ;;
   1279 
   1280   -version | --version | --versio | --versi | --vers | -V)
   1281     ac_init_version=: ;;
   1282 
   1283   -with-* | --with-*)
   1284     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1285     # Reject names that are not valid shell variable names.
   1286     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1287       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1288    { (exit 1); exit 1; }; }
   1289     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1290     eval with_$ac_package=\$ac_optarg ;;
   1291 
   1292   -without-* | --without-*)
   1293     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1294     # Reject names that are not valid shell variable names.
   1295     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1296       { echo "$as_me: error: invalid package name: $ac_package" >&2
   1297    { (exit 1); exit 1; }; }
   1298     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
   1299     eval with_$ac_package=no ;;
   1300 
   1301   --x)
   1302     # Obsolete; use --with-x.
   1303     with_x=yes ;;
   1304 
   1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1306   | --x-incl | --x-inc | --x-in | --x-i)
   1307     ac_prev=x_includes ;;
   1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1310     x_includes=$ac_optarg ;;
   1311 
   1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1314     ac_prev=x_libraries ;;
   1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1317     x_libraries=$ac_optarg ;;
   1318 
   1319   -*) { echo "$as_me: error: unrecognized option: $ac_option
   1320 Try \`$0 --help' for more information." >&2
   1321    { (exit 1); exit 1; }; }
   1322     ;;
   1323 
   1324   *=*)
   1325     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1326     # Reject names that are not valid shell variable names.
   1327     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
   1328       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
   1329    { (exit 1); exit 1; }; }
   1330     eval $ac_envvar=\$ac_optarg
   1331     export $ac_envvar ;;
   1332 
   1333   *)
   1334     # FIXME: should be removed in autoconf 3.0.
   1335     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1337       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1339     ;;
   1340 
   1341   esac
   1342 done
   1343 
   1344 if test -n "$ac_prev"; then
   1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1346   { echo "$as_me: error: missing argument to $ac_option" >&2
   1347    { (exit 1); exit 1; }; }
   1348 fi
   1349 
   1350 # Be sure to have absolute directory names.
   1351 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1352 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1353 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1354 		libdir localedir mandir
   1355 do
   1356   eval ac_val=\$$ac_var
   1357   case $ac_val in
   1358     [\\/$]* | ?:[\\/]* )  continue;;
   1359     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1360   esac
   1361   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
   1362    { (exit 1); exit 1; }; }
   1363 done
   1364 
   1365 # There might be people who depend on the old broken behavior: `$host'
   1366 # used to hold the argument of --host etc.
   1367 # FIXME: To remove some day.
   1368 build=$build_alias
   1369 host=$host_alias
   1370 target=$target_alias
   1371 
   1372 # FIXME: To remove some day.
   1373 if test "x$host_alias" != x; then
   1374   if test "x$build_alias" = x; then
   1375     cross_compiling=maybe
   1376     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1377     If a cross compiler is detected then cross compile mode will be used." >&2
   1378   elif test "x$build_alias" != "x$host_alias"; then
   1379     cross_compiling=yes
   1380   fi
   1381 fi
   1382 
   1383 ac_tool_prefix=
   1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1385 
   1386 test "$silent" = yes && exec 6>/dev/null
   1387 
   1388 
   1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1390 ac_ls_di=`ls -di .` &&
   1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1392   { echo "$as_me: error: Working directory cannot be determined" >&2
   1393    { (exit 1); exit 1; }; }
   1394 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1395   { echo "$as_me: error: pwd does not report name of working directory" >&2
   1396    { (exit 1); exit 1; }; }
   1397 
   1398 
   1399 # Find the source files, if location was not specified.
   1400 if test -z "$srcdir"; then
   1401   ac_srcdir_defaulted=yes
   1402   # Try the directory containing this script, then the parent directory.
   1403   ac_confdir=`$as_dirname -- "$0" ||
   1404 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1405 	 X"$0" : 'X\(//\)[^/]' \| \
   1406 	 X"$0" : 'X\(//\)$' \| \
   1407 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   1408 echo X"$0" |
   1409     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1410 	    s//\1/
   1411 	    q
   1412 	  }
   1413 	  /^X\(\/\/\)[^/].*/{
   1414 	    s//\1/
   1415 	    q
   1416 	  }
   1417 	  /^X\(\/\/\)$/{
   1418 	    s//\1/
   1419 	    q
   1420 	  }
   1421 	  /^X\(\/\).*/{
   1422 	    s//\1/
   1423 	    q
   1424 	  }
   1425 	  s/.*/./; q'`
   1426   srcdir=$ac_confdir
   1427   if test ! -r "$srcdir/$ac_unique_file"; then
   1428     srcdir=..
   1429   fi
   1430 else
   1431   ac_srcdir_defaulted=no
   1432 fi
   1433 if test ! -r "$srcdir/$ac_unique_file"; then
   1434   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1435   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
   1436    { (exit 1); exit 1; }; }
   1437 fi
   1438 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1439 ac_abs_confdir=`(
   1440 	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
   1441    { (exit 1); exit 1; }; }
   1442 	pwd)`
   1443 # When building in place, set srcdir=.
   1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1445   srcdir=.
   1446 fi
   1447 # Remove unnecessary trailing slashes from srcdir.
   1448 # Double slashes in file names in object file debugging info
   1449 # mess up M-x gdb in Emacs.
   1450 case $srcdir in
   1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1452 esac
   1453 for ac_var in $ac_precious_vars; do
   1454   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1455   eval ac_env_${ac_var}_value=\$${ac_var}
   1456   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1457   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1458 done
   1459 
   1460 #
   1461 # Report the --help message.
   1462 #
   1463 if test "$ac_init_help" = "long"; then
   1464   # Omit some internal or obsolete options to make the list less imposing.
   1465   # This message is too long to be a string in the A/UX 3.1 sh.
   1466   cat <<_ACEOF
   1467 \`configure' configures this package to adapt to many kinds of systems.
   1468 
   1469 Usage: $0 [OPTION]... [VAR=VALUE]...
   1470 
   1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1472 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1473 
   1474 Defaults for the options are specified in brackets.
   1475 
   1476 Configuration:
   1477   -h, --help              display this help and exit
   1478       --help=short        display options specific to this package
   1479       --help=recursive    display the short help of all the included packages
   1480   -V, --version           display version information and exit
   1481   -q, --quiet, --silent   do not print \`checking...' messages
   1482       --cache-file=FILE   cache test results in FILE [disabled]
   1483   -C, --config-cache      alias for \`--cache-file=config.cache'
   1484   -n, --no-create         do not create output files
   1485       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1486 
   1487 Installation directories:
   1488   --prefix=PREFIX         install architecture-independent files in PREFIX
   1489 			  [$ac_default_prefix]
   1490   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1491 			  [PREFIX]
   1492 
   1493 By default, \`make install' will install all the files in
   1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1496 for instance \`--prefix=\$HOME'.
   1497 
   1498 For better control, use the options below.
   1499 
   1500 Fine tuning of the installation directories:
   1501   --bindir=DIR           user executables [EPREFIX/bin]
   1502   --sbindir=DIR          system admin executables [EPREFIX/sbin]
   1503   --libexecdir=DIR       program executables [EPREFIX/libexec]
   1504   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
   1505   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
   1506   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
   1507   --libdir=DIR           object code libraries [EPREFIX/lib]
   1508   --includedir=DIR       C header files [PREFIX/include]
   1509   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
   1510   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
   1511   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
   1512   --infodir=DIR          info documentation [DATAROOTDIR/info]
   1513   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
   1514   --mandir=DIR           man documentation [DATAROOTDIR/man]
   1515   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
   1516   --htmldir=DIR          html documentation [DOCDIR]
   1517   --dvidir=DIR           dvi documentation [DOCDIR]
   1518   --pdfdir=DIR           pdf documentation [DOCDIR]
   1519   --psdir=DIR            ps documentation [DOCDIR]
   1520 _ACEOF
   1521 
   1522   cat <<\_ACEOF
   1523 
   1524 X features:
   1525   --x-includes=DIR    X include files are in DIR
   1526   --x-libraries=DIR   X library files are in DIR
   1527 
   1528 System types:
   1529   --build=BUILD     configure for building on BUILD [guessed]
   1530   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1531   --target=TARGET   configure for building compilers for TARGET [HOST]
   1532 _ACEOF
   1533 fi
   1534 
   1535 if test -n "$ac_init_help"; then
   1536 
   1537   cat <<\_ACEOF
   1538 
   1539 Optional Features:
   1540   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1541   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1542   --enable-static[=PKGS]  build static libraries [default=no]
   1543   --enable-shared[=PKGS]  build shared libraries [default=yes]
   1544   --enable-fast-install[=PKGS]
   1545                           optimize for fast installation [default=yes]
   1546   --disable-libtool-lock  avoid locking (might break parallel builds)
   1547   --enable-ltdl-install   install libltdl
   1548   --disable-largefile     omit support for large files
   1549   --enable-idle-hack                use Roland Mainz's idle hack
   1550   --enable-plugins                  enable plugins
   1551   --enable-x86-64                   compile in support for x86-64 instructions
   1552   --enable-smp                      compile in support for SMP configurations
   1553   --enable-cpu-level                select cpu level (3,4,5,6)
   1554   --enable-apic                     enable APIC support
   1555   --enable-compressed-hd            allows compressed (zlib) hard disk image (not implemented yet)
   1556   --enable-ne2000                   enable limited ne2000 support
   1557   --enable-acpi                     enable ACPI support
   1558   --enable-pci                      enable limited i440FX PCI support
   1559   --enable-pcidev                   enable PCI host device mapping support (linux host only)
   1560   --enable-usb                      enable limited USB UHCI support
   1561   --enable-usb-ohci                 enable limited USB OHCI support
   1562   --enable-pnic                     enable PCI pseudo NIC support
   1563   --enable-large-pages               support for large pages (2M/4M pages)
   1564   --enable-pae                      support Physical Address Extensions
   1565   --enable-global-pages             support for global pages in PDE/PTE
   1566   --enable-1g-pages                 support for 1G pages in long mode
   1567   --enable-mtrr                     support for MTRRs
   1568   --enable-repeat-speedups          support repeated IO and mem copy speedups
   1569   --enable-trace-cache              support instruction trace cache
   1570   --enable-icache                   support instruction cache
   1571   --enable-fast-function-calls      support for fast function calls (gcc on x86 only)
   1572   --enable-host-specific-asms       support for host specific inline assembly
   1573   --enable-configurable-msrs        support for configurable MSR registers
   1574   --enable-ignore-bad-msr           ignore bad MSR references
   1575   --enable-port-e9-hack             writes to port e9 go to console
   1576   --enable-show-ips                 show IPS in Bochs log file
   1577   --enable-cpp                      use .cpp as C++ suffix
   1578   --enable-debugger                 compile in support for Bochs internal debugger
   1579   --enable-disasm                   compile in support for disassembler
   1580   --enable-debugger-gui             compile in support for Bochs internal debugger GUI
   1581   --enable-all-optimizations        compile in all possible optimizations
   1582   --enable-readline                 use readline library, if available
   1583   --enable-instrumentation          compile in support for instrumentation
   1584   --enable-logging                  enable logging
   1585   --enable-assert-checks            enable BX_ASSERT checks
   1586   --enable-raw-serial               use raw serial port access
   1587   --enable-vbe                      use VESA BIOS extensions
   1588   --enable-clgd54xx                 enable CLGD54XX emulation
   1589   --enable-fpu                      compile in FPU emulation
   1590   --enable-vme                      virtual 8086 mode extensions
   1591   --enable-vmx                      virtualization extensions
   1592   --enable-mmx                      MMX support
   1593   --enable-3dnow                    3DNow! support (incomplete)
   1594   --enable-sse                      SSE support (--enable-sse=no|1|2|3|4)
   1595   --enable-sse-extension            support for SSE extensions
   1596   --enable-daz                      denormals-are-zeroes support
   1597   --enable-xsave                    support for XSAVE/XRSTOR extensions
   1598   --enable-aes                      support for AES instructions
   1599   --enable-alignment-check          alignment check (#AC) support
   1600   --enable-misaligned-sse           misaligned SSE support
   1601   --enable-sep                      SYSENTER/SYSEXIT support
   1602   --enable-popcnt                   support for POPCNT instruction
   1603   --enable-movbe                    support for MOVBE Intel Atom(R) instruction
   1604   --enable-monitor-mwait            support for MONITOR/MWAIT instructions (experimental)
   1605   --enable-x86-debugger             x86 debugger support
   1606   --enable-cdrom                    CDROM support
   1607   --enable-sb16=xxx                 Sound Blaster 16 Support (xxx=dummy|win|linux|freebsd|osx)
   1608   --enable-gameport                 enable standard PC gameport support
   1609   --enable-gdb-stub                 enable gdb stub support
   1610   --enable-iodebug                  enable I/O interface to debugger
   1611   --enable-docbook                  build the Docbook documentation
   1612   --enable-xpm                      enable the check for XPM support
   1613   --enable-guest2host-tlb          enables guest to host addr TLB for speed (deprecated)
   1614   --enable-external-debugger       enables external debugger interface (deprecated)
   1615   --enable-magic-breakpoints        enables magic breakpoints (deprecated)
   1616   --enable-save-restore             enables save/restore (deprecated)
   1617 
   1618 Optional Packages:
   1619   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1620   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1621   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
   1622   --with-pic              try to use only PIC/non-PIC objects [default=use
   1623                           both]
   1624   --with-tags[=TAGS]      include additional configurations [automatic]
   1625   --with-x                use the X Window System
   1626   --with-x11                        use X11 GUI
   1627   --with-beos                       use BeOS GUI
   1628   --with-win32                      use Win32 GUI
   1629   --with-macos                      use Macintosh/CodeWarrior environment
   1630   --with-carbon                     compile for MacOS X with Carbon GUI
   1631   --with-nogui                      no native GUI, just use blank stubs
   1632   --with-term                       textmode terminal environment
   1633   --with-rfb                        use RFB protocol, works with VNC viewer
   1634   --with-amigaos                    use AmigaOS (or MorphOS) GUI
   1635   --with-sdl                        use SDL libraries
   1636   --with-svga                       use SVGALib libraries
   1637   --with-wx                         use wxWidgets libraries
   1638   --with-all-libs                   compile all guis that Bochs supports
   1639 
   1640 Some influential environment variables:
   1641   CC          C compiler command
   1642   CFLAGS      C compiler flags
   1643   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1644               nonstandard directory <lib dir>
   1645   LIBS        libraries to pass to the linker, e.g. -l<library>
   1646   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1647               you have headers in a nonstandard directory <include dir>
   1648   CXX         C++ compiler command
   1649   CXXFLAGS    C++ compiler flags
   1650   CPP         C preprocessor
   1651   CXXCPP      C++ preprocessor
   1652   F77         Fortran 77 compiler command
   1653   FFLAGS      Fortran 77 compiler flags
   1654   XMKMF       Path to xmkmf, Makefile generator for X Window System
   1655 
   1656 Use these variables to override the choices made by `configure' or to help
   1657 it to find libraries and programs with nonstandard names/locations.
   1658 
   1659 _ACEOF
   1660 ac_status=$?
   1661 fi
   1662 
   1663 if test "$ac_init_help" = "recursive"; then
   1664   # If there are subdirs, report their specific --help.
   1665   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1666     test -d "$ac_dir" || continue
   1667     ac_builddir=.
   1668 
   1669 case "$ac_dir" in
   1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1671 *)
   1672   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
   1673   # A ".." for each directory in $ac_dir_suffix.
   1674   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
   1675   case $ac_top_builddir_sub in
   1676   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1677   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1678   esac ;;
   1679 esac
   1680 ac_abs_top_builddir=$ac_pwd
   1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1682 # for backward compatibility:
   1683 ac_top_builddir=$ac_top_build_prefix
   1684 
   1685 case $srcdir in
   1686   .)  # We are building in place.
   1687     ac_srcdir=.
   1688     ac_top_srcdir=$ac_top_builddir_sub
   1689     ac_abs_top_srcdir=$ac_pwd ;;
   1690   [\\/]* | ?:[\\/]* )  # Absolute name.
   1691     ac_srcdir=$srcdir$ac_dir_suffix;
   1692     ac_top_srcdir=$srcdir
   1693     ac_abs_top_srcdir=$srcdir ;;
   1694   *) # Relative name.
   1695     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1696     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1697     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1698 esac
   1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1700 
   1701     cd "$ac_dir" || { ac_status=$?; continue; }
   1702     # Check for guested configure.
   1703     if test -f "$ac_srcdir/configure.gnu"; then
   1704       echo &&
   1705       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1706     elif test -f "$ac_srcdir/configure"; then
   1707       echo &&
   1708       $SHELL "$ac_srcdir/configure" --help=recursive
   1709     else
   1710       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1711     fi || ac_status=$?
   1712     cd "$ac_pwd" || { ac_status=$?; break; }
   1713   done
   1714 fi
   1715 
   1716 test -n "$ac_init_help" && exit $ac_status
   1717 if $ac_init_version; then
   1718   cat <<\_ACEOF
   1719 configure
   1720 generated by GNU Autoconf 2.61
   1721 
   1722 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
   1723 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
   1724 This configure script is free software; the Free Software Foundation
   1725 gives unlimited permission to copy, distribute and modify it.
   1726 _ACEOF
   1727   exit
   1728 fi
   1729 cat >config.log <<_ACEOF
   1730 This file contains any messages produced by compilers while
   1731 running configure, to aid debugging if configure makes a mistake.
   1732 
   1733 It was created by $as_me, which was
   1734 generated by GNU Autoconf 2.61.  Invocation command line was
   1735 
   1736   $ $0 $@
   1737 
   1738 _ACEOF
   1739 exec 5>>config.log
   1740 {
   1741 cat <<_ASUNAME
   1742 ## --------- ##
   1743 ## Platform. ##
   1744 ## --------- ##
   1745 
   1746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   1747 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   1748 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   1749 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   1750 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   1751 
   1752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   1753 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   1754 
   1755 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   1756 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   1757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   1758 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   1759 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   1760 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   1761 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   1762 
   1763 _ASUNAME
   1764 
   1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   1766 for as_dir in $PATH
   1767 do
   1768   IFS=$as_save_IFS
   1769   test -z "$as_dir" && as_dir=.
   1770   echo "PATH: $as_dir"
   1771 done
   1772 IFS=$as_save_IFS
   1773 
   1774 } >&5
   1775 
   1776 cat >&5 <<_ACEOF
   1777 
   1778 
   1779 ## ----------- ##
   1780 ## Core tests. ##
   1781 ## ----------- ##
   1782 
   1783 _ACEOF
   1784 
   1785 
   1786 # Keep a trace of the command line.
   1787 # Strip out --no-create and --no-recursion so they do not pile up.
   1788 # Strip out --silent because we don't want to record it for future runs.
   1789 # Also quote any args containing shell meta-characters.
   1790 # Make two passes to allow for proper duplicate-argument suppression.
   1791 ac_configure_args=
   1792 ac_configure_args0=
   1793 ac_configure_args1=
   1794 ac_must_keep_next=false
   1795 for ac_pass in 1 2
   1796 do
   1797   for ac_arg
   1798   do
   1799     case $ac_arg in
   1800     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   1801     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1802     | -silent | --silent | --silen | --sile | --sil)
   1803       continue ;;
   1804     *\'*)
   1805       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   1806     esac
   1807     case $ac_pass in
   1808     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
   1809     2)
   1810       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
   1811       if test $ac_must_keep_next = true; then
   1812 	ac_must_keep_next=false # Got value, back to normal.
   1813       else
   1814 	case $ac_arg in
   1815 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   1816 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   1817 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   1818 	  | -with-* | --with-* | -without-* | --without-* | --x)
   1819 	    case "$ac_configure_args0 " in
   1820 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   1821 	    esac
   1822 	    ;;
   1823 	  -* ) ac_must_keep_next=true ;;
   1824 	esac
   1825       fi
   1826       ac_configure_args="$ac_configure_args '$ac_arg'"
   1827       ;;
   1828     esac
   1829   done
   1830 done
   1831 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
   1832 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
   1833 
   1834 # When interrupted or exit'd, cleanup temporary files, and complete
   1835 # config.log.  We remove comments because anyway the quotes in there
   1836 # would cause problems or look ugly.
   1837 # WARNING: Use '\'' to represent an apostrophe within the trap.
   1838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   1839 trap 'exit_status=$?
   1840   # Save into config.log some information that might help in debugging.
   1841   {
   1842     echo
   1843 
   1844     cat <<\_ASBOX
   1845 ## ---------------- ##
   1846 ## Cache variables. ##
   1847 ## ---------------- ##
   1848 _ASBOX
   1849     echo
   1850     # The following way of writing the cache mishandles newlines in values,
   1851 (
   1852   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   1853     eval ac_val=\$$ac_var
   1854     case $ac_val in #(
   1855     *${as_nl}*)
   1856       case $ac_var in #(
   1857       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
   1858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
   1859       esac
   1860       case $ac_var in #(
   1861       _ | IFS | as_nl) ;; #(
   1862       *) $as_unset $ac_var ;;
   1863       esac ;;
   1864     esac
   1865   done
   1866   (set) 2>&1 |
   1867     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   1868     *${as_nl}ac_space=\ *)
   1869       sed -n \
   1870 	"s/'\''/'\''\\\\'\'''\''/g;
   1871 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   1872       ;; #(
   1873     *)
   1874       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   1875       ;;
   1876     esac |
   1877     sort
   1878 )
   1879     echo
   1880 
   1881     cat <<\_ASBOX
   1882 ## ----------------- ##
   1883 ## Output variables. ##
   1884 ## ----------------- ##
   1885 _ASBOX
   1886     echo
   1887     for ac_var in $ac_subst_vars
   1888     do
   1889       eval ac_val=\$$ac_var
   1890       case $ac_val in
   1891       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1892       esac
   1893       echo "$ac_var='\''$ac_val'\''"
   1894     done | sort
   1895     echo
   1896 
   1897     if test -n "$ac_subst_files"; then
   1898       cat <<\_ASBOX
   1899 ## ------------------- ##
   1900 ## File substitutions. ##
   1901 ## ------------------- ##
   1902 _ASBOX
   1903       echo
   1904       for ac_var in $ac_subst_files
   1905       do
   1906 	eval ac_val=\$$ac_var
   1907 	case $ac_val in
   1908 	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   1909 	esac
   1910 	echo "$ac_var='\''$ac_val'\''"
   1911       done | sort
   1912       echo
   1913     fi
   1914 
   1915     if test -s confdefs.h; then
   1916       cat <<\_ASBOX
   1917 ## ----------- ##
   1918 ## confdefs.h. ##
   1919 ## ----------- ##
   1920 _ASBOX
   1921       echo
   1922       cat confdefs.h
   1923       echo
   1924     fi
   1925     test "$ac_signal" != 0 &&
   1926       echo "$as_me: caught signal $ac_signal"
   1927     echo "$as_me: exit $exit_status"
   1928   } >&5
   1929   rm -f core *.core core.conftest.* &&
   1930     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   1931     exit $exit_status
   1932 ' 0
   1933 for ac_signal in 1 2 13 15; do
   1934   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
   1935 done
   1936 ac_signal=0
   1937 
   1938 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   1939 rm -f -r conftest* confdefs.h
   1940 
   1941 # Predefined preprocessor variables.
   1942 
   1943 cat >>confdefs.h <<_ACEOF
   1944 #define PACKAGE_NAME "$PACKAGE_NAME"
   1945 _ACEOF
   1946 
   1947 
   1948 cat >>confdefs.h <<_ACEOF
   1949 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   1950 _ACEOF
   1951 
   1952 
   1953 cat >>confdefs.h <<_ACEOF
   1954 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   1955 _ACEOF
   1956 
   1957 
   1958 cat >>confdefs.h <<_ACEOF
   1959 #define PACKAGE_STRING "$PACKAGE_STRING"
   1960 _ACEOF
   1961 
   1962 
   1963 cat >>confdefs.h <<_ACEOF
   1964 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   1965 _ACEOF
   1966 
   1967 
   1968 # Let the site file select an alternate cache file if it wants to.
   1969 # Prefer explicitly selected file to automatically selected ones.
   1970 if test -n "$CONFIG_SITE"; then
   1971   set x "$CONFIG_SITE"
   1972 elif test "x$prefix" != xNONE; then
   1973   set x "$prefix/share/config.site" "$prefix/etc/config.site"
   1974 else
   1975   set x "$ac_default_prefix/share/config.site" \
   1976 	"$ac_default_prefix/etc/config.site"
   1977 fi
   1978 shift
   1979 for ac_site_file
   1980 do
   1981   if test -r "$ac_site_file"; then
   1982     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
   1983 echo "$as_me: loading site script $ac_site_file" >&6;}
   1984     sed 's/^/| /' "$ac_site_file" >&5
   1985     . "$ac_site_file"
   1986   fi
   1987 done
   1988 
   1989 if test -r "$cache_file"; then
   1990   # Some versions of bash will fail to source /dev/null (special
   1991   # files actually), so we avoid doing that.
   1992   if test -f "$cache_file"; then
   1993     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
   1994 echo "$as_me: loading cache $cache_file" >&6;}
   1995     case $cache_file in
   1996       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   1997       *)                      . "./$cache_file";;
   1998     esac
   1999   fi
   2000 else
   2001   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
   2002 echo "$as_me: creating cache $cache_file" >&6;}
   2003   >$cache_file
   2004 fi
   2005 
   2006 # Check that the precious variables saved in the cache have kept the same
   2007 # value.
   2008 ac_cache_corrupted=false
   2009 for ac_var in $ac_precious_vars; do
   2010   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2011   eval ac_new_set=\$ac_env_${ac_var}_set
   2012   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2013   eval ac_new_val=\$ac_env_${ac_var}_value
   2014   case $ac_old_set,$ac_new_set in
   2015     set,)
   2016       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2017 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2018       ac_cache_corrupted=: ;;
   2019     ,set)
   2020       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
   2021 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2022       ac_cache_corrupted=: ;;
   2023     ,);;
   2024     *)
   2025       if test "x$ac_old_val" != "x$ac_new_val"; then
   2026 	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
   2027 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2028 	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
   2029 echo "$as_me:   former value:  $ac_old_val" >&2;}
   2030 	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
   2031 echo "$as_me:   current value: $ac_new_val" >&2;}
   2032 	ac_cache_corrupted=:
   2033       fi;;
   2034   esac
   2035   # Pass precious variables to config.status.
   2036   if test "$ac_new_set" = set; then
   2037     case $ac_new_val in
   2038     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2039     *) ac_arg=$ac_var=$ac_new_val ;;
   2040     esac
   2041     case " $ac_configure_args " in
   2042       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2043       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   2044     esac
   2045   fi
   2046 done
   2047 if $ac_cache_corrupted; then
   2048   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
   2049 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2050   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
   2051 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
   2052    { (exit 1); exit 1; }; }
   2053 fi
   2054 
   2055 
   2056 
   2057 
   2058 
   2059 
   2060 
   2061 
   2062 
   2063 
   2064 
   2065 
   2066 
   2067 
   2068 
   2069 
   2070 
   2071 ac_ext=c
   2072 ac_cpp='$CPP $CPPFLAGS'
   2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2076 
   2077 
   2078 
   2079 ac_config_headers="$ac_config_headers config.h"
   2080 
   2081 ac_config_headers="$ac_config_headers ltdlconf.h"
   2082 
   2083 
   2084 VERSION="2.3.7.cvs"
   2085 VER_STRING="2.3.7.cvs"
   2086 WIN_VER_STRING="2, 3, 7, 1"
   2087 REL_STRING="Build from CVS snapshot, after release 2.3.7"
   2088 
   2089 
   2090 
   2091 
   2092 ac_aux_dir=
   2093 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2094   if test -f "$ac_dir/install-sh"; then
   2095     ac_aux_dir=$ac_dir
   2096     ac_install_sh="$ac_aux_dir/install-sh -c"
   2097     break
   2098   elif test -f "$ac_dir/install.sh"; then
   2099     ac_aux_dir=$ac_dir
   2100     ac_install_sh="$ac_aux_dir/install.sh -c"
   2101     break
   2102   elif test -f "$ac_dir/shtool"; then
   2103     ac_aux_dir=$ac_dir
   2104     ac_install_sh="$ac_aux_dir/shtool install -c"
   2105     break
   2106   fi
   2107 done
   2108 if test -z "$ac_aux_dir"; then
   2109   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
   2110 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
   2111    { (exit 1); exit 1; }; }
   2112 fi
   2113 
   2114 # These three variables are undocumented and unsupported,
   2115 # and are intended to be withdrawn in a future Autoconf release.
   2116 # They can cause serious problems if a builder's source tree is in a directory
   2117 # whose full name contains unusual characters.
   2118 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2119 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2120 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2121 
   2122 
   2123 # Make sure we can run config.sub.
   2124 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2125   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
   2126 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
   2127    { (exit 1); exit 1; }; }
   2128 
   2129 { echo "$as_me:$LINENO: checking build system type" >&5
   2130 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
   2131 if test "${ac_cv_build+set}" = set; then
   2132   echo $ECHO_N "(cached) $ECHO_C" >&6
   2133 else
   2134   ac_build_alias=$build_alias
   2135 test "x$ac_build_alias" = x &&
   2136   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2137 test "x$ac_build_alias" = x &&
   2138   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
   2139 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
   2140    { (exit 1); exit 1; }; }
   2141 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2142   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
   2143 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
   2144    { (exit 1); exit 1; }; }
   2145 
   2146 fi
   2147 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
   2148 echo "${ECHO_T}$ac_cv_build" >&6; }
   2149 case $ac_cv_build in
   2150 *-*-*) ;;
   2151 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
   2152 echo "$as_me: error: invalid value of canonical build" >&2;}
   2153    { (exit 1); exit 1; }; };;
   2154 esac
   2155 build=$ac_cv_build
   2156 ac_save_IFS=$IFS; IFS='-'
   2157 set x $ac_cv_build
   2158 shift
   2159 build_cpu=$1
   2160 build_vendor=$2
   2161 shift; shift
   2162 # Remember, the first character of IFS is used to create $*,
   2163 # except with old shells:
   2164 build_os=$*
   2165 IFS=$ac_save_IFS
   2166 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2167 
   2168 
   2169 { echo "$as_me:$LINENO: checking host system type" >&5
   2170 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
   2171 if test "${ac_cv_host+set}" = set; then
   2172   echo $ECHO_N "(cached) $ECHO_C" >&6
   2173 else
   2174   if test "x$host_alias" = x; then
   2175   ac_cv_host=$ac_cv_build
   2176 else
   2177   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2178     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
   2179 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
   2180    { (exit 1); exit 1; }; }
   2181 fi
   2182 
   2183 fi
   2184 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
   2185 echo "${ECHO_T}$ac_cv_host" >&6; }
   2186 case $ac_cv_host in
   2187 *-*-*) ;;
   2188 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
   2189 echo "$as_me: error: invalid value of canonical host" >&2;}
   2190    { (exit 1); exit 1; }; };;
   2191 esac
   2192 host=$ac_cv_host
   2193 ac_save_IFS=$IFS; IFS='-'
   2194 set x $ac_cv_host
   2195 shift
   2196 host_cpu=$1
   2197 host_vendor=$2
   2198 shift; shift
   2199 # Remember, the first character of IFS is used to create $*,
   2200 # except with old shells:
   2201 host_os=$*
   2202 IFS=$ac_save_IFS
   2203 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2204 
   2205 
   2206 { echo "$as_me:$LINENO: checking target system type" >&5
   2207 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
   2208 if test "${ac_cv_target+set}" = set; then
   2209   echo $ECHO_N "(cached) $ECHO_C" >&6
   2210 else
   2211   if test "x$target_alias" = x; then
   2212   ac_cv_target=$ac_cv_host
   2213 else
   2214   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   2215     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
   2216 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
   2217    { (exit 1); exit 1; }; }
   2218 fi
   2219 
   2220 fi
   2221 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
   2222 echo "${ECHO_T}$ac_cv_target" >&6; }
   2223 case $ac_cv_target in
   2224 *-*-*) ;;
   2225 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
   2226 echo "$as_me: error: invalid value of canonical target" >&2;}
   2227    { (exit 1); exit 1; }; };;
   2228 esac
   2229 target=$ac_cv_target
   2230 ac_save_IFS=$IFS; IFS='-'
   2231 set x $ac_cv_target
   2232 shift
   2233 target_cpu=$1
   2234 target_vendor=$2
   2235 shift; shift
   2236 # Remember, the first character of IFS is used to create $*,
   2237 # except with old shells:
   2238 target_os=$*
   2239 IFS=$ac_save_IFS
   2240 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   2241 
   2242 
   2243 # The aliases save the names the user supplied, while $host etc.
   2244 # will get canonicalized.
   2245 test -n "$target_alias" &&
   2246   test "$program_prefix$program_suffix$program_transform_name" = \
   2247     NONENONEs,x,x, &&
   2248   program_prefix=${target_alias}-
   2249 
   2250 { echo "$as_me:$LINENO: checking if you are configuring for another platform" >&5
   2251 echo $ECHO_N "checking if you are configuring for another platform... $ECHO_C" >&6; }
   2252 if test "$cross_compiling" = yes -o "$target_os" = "windows"; then
   2253   { echo "$as_me:$LINENO: result: yes" >&5
   2254 echo "${ECHO_T}yes" >&6; }
   2255   cross_configure=1
   2256 else
   2257   { echo "$as_me:$LINENO: result: no" >&5
   2258 echo "${ECHO_T}no" >&6; }
   2259   cross_configure=0
   2260 fi
   2261 
   2262 # this case statement defines the compile flags which are needed to
   2263 # compile bochs on a platform.  Don't put things like optimization settings
   2264 # into the configure.in file, since people will want to be able to change
   2265 # those settings by defining CFLAGS and CXXFLAGS before running configure.
   2266 NO_LT=0
   2267 need_dlcompat_for_plugins=0
   2268 case "$target" in
   2269   *-pc-windows* | *-pc-winnt*)
   2270     DEFAULT_GUI=win32                 # default to win32 gui
   2271     ;;
   2272   *-pc-cygwin* | *-pc-mingw32*)
   2273     NO_LT=1   # do not use libtool at all on cygwin
   2274     if test "$with_term" = yes; then
   2275       # ncurses won't compile with -mno-cygwin or -DWIN32
   2276       # also, I can't get it to link without this -DBROKEN_LINKER=1 hack.
   2277       # see /usr/include/curses.h for details.
   2278       ADD_FLAGS="-DBROKEN_LINKER=1"
   2279     else
   2280       # default case
   2281       ADD_FLAGS="-mno-cygwin -DWIN32"   # required for cygwin compile+win32 gui
   2282       DEFAULT_GUI=win32                 # default to win32 gui
   2283     fi
   2284     ;;
   2285   *-macosx* | *-darwin*)
   2286     ADD_FLAGS="-fpascal-strings -fno-common -Wno-four-char-constants -Wno-unknown-pragmas -Dmacintosh"      # required for macosx compile
   2287     DEFAULT_GUI=carbon                # default to carbon
   2288     need_dlcompat_for_plugins=1
   2289     ;;
   2290   *-macos*)
   2291     DEFAULT_GUI=macos                 # macos defaults to macos
   2292     ;;
   2293   *-beos*)
   2294     ADD_FLAGS="-Wno-multichar"
   2295     DEFAULT_GUI=beos                  # beos defaults to beos
   2296     ;;
   2297   *-amigaos* | *-morphos*)
   2298     DEFAULT_GUI=amigaos               # amigaos or morphos defaults to amigaos gui
   2299     ;;
   2300   *-solaris*)
   2301     ADD_FLAGS="-D_XOPEN_SOURCE_EXTENDED=1 -D__EXTENSIONS__"      # required for correct function prototypes
   2302     LIBS="$LIBS -lsocket -lnsl"
   2303     DEFAULT_GUI=x11
   2304     ;;
   2305   *)
   2306     DEFAULT_GUI=x11
   2307     ;;
   2308 esac
   2309 if test "${ADD_FLAGS:+set}" = set; then
   2310       CFLAGS="$CFLAGS $ADD_FLAGS"
   2311       CXXFLAGS="$CXXFLAGS $ADD_FLAGS"
   2312       CPPFLAGS="$CPPFLAGS $ADD_FLAGS"
   2313 fi
   2314 
   2315 { echo "$as_me:$LINENO: checking for standard CFLAGS on this platform" >&5
   2316 echo $ECHO_N "checking for standard CFLAGS on this platform... $ECHO_C" >&6; }
   2317 { echo "$as_me:$LINENO: result: $ADD_FLAGS" >&5
   2318 echo "${ECHO_T}$ADD_FLAGS" >&6; }
   2319 
   2320 if (test "$with_sdl" != yes) && \
   2321    (test "$with_svga" != yes) && \
   2322    (test "$with_x11" != yes) && \
   2323    (test "$with_beos" != yes) && \
   2324    (test "$with_win32" != yes) && \
   2325    (test "$with_nogui" != yes) && \
   2326    (test "$with_term" != yes) && \
   2327    (test "$with_rfb" != yes) && \
   2328    (test "$with_amigaos" != yes) && \
   2329    (test "$with_carbon" != yes) && \
   2330    (test "$with_wx" != yes) && \
   2331    (test "$with_macos" != yes); then
   2332   # use DEFAULT_GUI.  Set the appropriate variable.
   2333   # DEFAULT_GUI must be set to one of the names above.  Otherwise, no
   2334   # valid $with_* variable will be set and who knows what will happen?
   2335   eval "with_${DEFAULT_GUI}=yes"
   2336 fi
   2337 
   2338 ac_ext=c
   2339 ac_cpp='$CPP $CPPFLAGS'
   2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2343 if test -n "$ac_tool_prefix"; then
   2344   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2348 if test "${ac_cv_prog_CC+set}" = set; then
   2349   echo $ECHO_N "(cached) $ECHO_C" >&6
   2350 else
   2351   if test -n "$CC"; then
   2352   ac_cv_prog_CC="$CC" # Let the user override the test.
   2353 else
   2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2355 for as_dir in $PATH
   2356 do
   2357   IFS=$as_save_IFS
   2358   test -z "$as_dir" && as_dir=.
   2359   for ac_exec_ext in '' $ac_executable_extensions; do
   2360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2361     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2363     break 2
   2364   fi
   2365 done
   2366 done
   2367 IFS=$as_save_IFS
   2368 
   2369 fi
   2370 fi
   2371 CC=$ac_cv_prog_CC
   2372 if test -n "$CC"; then
   2373   { echo "$as_me:$LINENO: result: $CC" >&5
   2374 echo "${ECHO_T}$CC" >&6; }
   2375 else
   2376   { echo "$as_me:$LINENO: result: no" >&5
   2377 echo "${ECHO_T}no" >&6; }
   2378 fi
   2379 
   2380 
   2381 fi
   2382 if test -z "$ac_cv_prog_CC"; then
   2383   ac_ct_CC=$CC
   2384   # Extract the first word of "gcc", so it can be a program name with args.
   2385 set dummy gcc; ac_word=$2
   2386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2389   echo $ECHO_N "(cached) $ECHO_C" >&6
   2390 else
   2391   if test -n "$ac_ct_CC"; then
   2392   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2393 else
   2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2395 for as_dir in $PATH
   2396 do
   2397   IFS=$as_save_IFS
   2398   test -z "$as_dir" && as_dir=.
   2399   for ac_exec_ext in '' $ac_executable_extensions; do
   2400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2401     ac_cv_prog_ac_ct_CC="gcc"
   2402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2403     break 2
   2404   fi
   2405 done
   2406 done
   2407 IFS=$as_save_IFS
   2408 
   2409 fi
   2410 fi
   2411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2412 if test -n "$ac_ct_CC"; then
   2413   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2414 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2415 else
   2416   { echo "$as_me:$LINENO: result: no" >&5
   2417 echo "${ECHO_T}no" >&6; }
   2418 fi
   2419 
   2420   if test "x$ac_ct_CC" = x; then
   2421     CC=""
   2422   else
   2423     case $cross_compiling:$ac_tool_warned in
   2424 yes:)
   2425 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2426 whose name does not start with the host triplet.  If you think this
   2427 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2428 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2429 whose name does not start with the host triplet.  If you think this
   2430 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2431 ac_tool_warned=yes ;;
   2432 esac
   2433     CC=$ac_ct_CC
   2434   fi
   2435 else
   2436   CC="$ac_cv_prog_CC"
   2437 fi
   2438 
   2439 if test -z "$CC"; then
   2440           if test -n "$ac_tool_prefix"; then
   2441     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2442 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2445 if test "${ac_cv_prog_CC+set}" = set; then
   2446   echo $ECHO_N "(cached) $ECHO_C" >&6
   2447 else
   2448   if test -n "$CC"; then
   2449   ac_cv_prog_CC="$CC" # Let the user override the test.
   2450 else
   2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2452 for as_dir in $PATH
   2453 do
   2454   IFS=$as_save_IFS
   2455   test -z "$as_dir" && as_dir=.
   2456   for ac_exec_ext in '' $ac_executable_extensions; do
   2457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2458     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2460     break 2
   2461   fi
   2462 done
   2463 done
   2464 IFS=$as_save_IFS
   2465 
   2466 fi
   2467 fi
   2468 CC=$ac_cv_prog_CC
   2469 if test -n "$CC"; then
   2470   { echo "$as_me:$LINENO: result: $CC" >&5
   2471 echo "${ECHO_T}$CC" >&6; }
   2472 else
   2473   { echo "$as_me:$LINENO: result: no" >&5
   2474 echo "${ECHO_T}no" >&6; }
   2475 fi
   2476 
   2477 
   2478   fi
   2479 fi
   2480 if test -z "$CC"; then
   2481   # Extract the first word of "cc", so it can be a program name with args.
   2482 set dummy cc; ac_word=$2
   2483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2485 if test "${ac_cv_prog_CC+set}" = set; then
   2486   echo $ECHO_N "(cached) $ECHO_C" >&6
   2487 else
   2488   if test -n "$CC"; then
   2489   ac_cv_prog_CC="$CC" # Let the user override the test.
   2490 else
   2491   ac_prog_rejected=no
   2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2493 for as_dir in $PATH
   2494 do
   2495   IFS=$as_save_IFS
   2496   test -z "$as_dir" && as_dir=.
   2497   for ac_exec_ext in '' $ac_executable_extensions; do
   2498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2499     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2500        ac_prog_rejected=yes
   2501        continue
   2502      fi
   2503     ac_cv_prog_CC="cc"
   2504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2505     break 2
   2506   fi
   2507 done
   2508 done
   2509 IFS=$as_save_IFS
   2510 
   2511 if test $ac_prog_rejected = yes; then
   2512   # We found a bogon in the path, so make sure we never use it.
   2513   set dummy $ac_cv_prog_CC
   2514   shift
   2515   if test $# != 0; then
   2516     # We chose a different compiler from the bogus one.
   2517     # However, it has the same basename, so the bogon will be chosen
   2518     # first if we set CC to just the basename; use the full file name.
   2519     shift
   2520     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2521   fi
   2522 fi
   2523 fi
   2524 fi
   2525 CC=$ac_cv_prog_CC
   2526 if test -n "$CC"; then
   2527   { echo "$as_me:$LINENO: result: $CC" >&5
   2528 echo "${ECHO_T}$CC" >&6; }
   2529 else
   2530   { echo "$as_me:$LINENO: result: no" >&5
   2531 echo "${ECHO_T}no" >&6; }
   2532 fi
   2533 
   2534 
   2535 fi
   2536 if test -z "$CC"; then
   2537   if test -n "$ac_tool_prefix"; then
   2538   for ac_prog in cl.exe
   2539   do
   2540     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2541 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2544 if test "${ac_cv_prog_CC+set}" = set; then
   2545   echo $ECHO_N "(cached) $ECHO_C" >&6
   2546 else
   2547   if test -n "$CC"; then
   2548   ac_cv_prog_CC="$CC" # Let the user override the test.
   2549 else
   2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2551 for as_dir in $PATH
   2552 do
   2553   IFS=$as_save_IFS
   2554   test -z "$as_dir" && as_dir=.
   2555   for ac_exec_ext in '' $ac_executable_extensions; do
   2556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2557     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2559     break 2
   2560   fi
   2561 done
   2562 done
   2563 IFS=$as_save_IFS
   2564 
   2565 fi
   2566 fi
   2567 CC=$ac_cv_prog_CC
   2568 if test -n "$CC"; then
   2569   { echo "$as_me:$LINENO: result: $CC" >&5
   2570 echo "${ECHO_T}$CC" >&6; }
   2571 else
   2572   { echo "$as_me:$LINENO: result: no" >&5
   2573 echo "${ECHO_T}no" >&6; }
   2574 fi
   2575 
   2576 
   2577     test -n "$CC" && break
   2578   done
   2579 fi
   2580 if test -z "$CC"; then
   2581   ac_ct_CC=$CC
   2582   for ac_prog in cl.exe
   2583 do
   2584   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2585 set dummy $ac_prog; ac_word=$2
   2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   2588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
   2589   echo $ECHO_N "(cached) $ECHO_C" >&6
   2590 else
   2591   if test -n "$ac_ct_CC"; then
   2592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2593 else
   2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2595 for as_dir in $PATH
   2596 do
   2597   IFS=$as_save_IFS
   2598   test -z "$as_dir" && as_dir=.
   2599   for ac_exec_ext in '' $ac_executable_extensions; do
   2600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2601     ac_cv_prog_ac_ct_CC="$ac_prog"
   2602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   2603     break 2
   2604   fi
   2605 done
   2606 done
   2607 IFS=$as_save_IFS
   2608 
   2609 fi
   2610 fi
   2611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2612 if test -n "$ac_ct_CC"; then
   2613   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
   2614 echo "${ECHO_T}$ac_ct_CC" >&6; }
   2615 else
   2616   { echo "$as_me:$LINENO: result: no" >&5
   2617 echo "${ECHO_T}no" >&6; }
   2618 fi
   2619 
   2620 
   2621   test -n "$ac_ct_CC" && break
   2622 done
   2623 
   2624   if test "x$ac_ct_CC" = x; then
   2625     CC=""
   2626   else
   2627     case $cross_compiling:$ac_tool_warned in
   2628 yes:)
   2629 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   2630 whose name does not start with the host triplet.  If you think this
   2631 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   2632 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   2633 whose name does not start with the host triplet.  If you think this
   2634 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   2635 ac_tool_warned=yes ;;
   2636 esac
   2637     CC=$ac_ct_CC
   2638   fi
   2639 fi
   2640 
   2641 fi
   2642 
   2643 
   2644 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
   2645 See \`config.log' for more details." >&5
   2646 echo "$as_me: error: no acceptable C compiler found in \$PATH
   2647 See \`config.log' for more details." >&2;}
   2648    { (exit 1); exit 1; }; }
   2649 
   2650 # Provide some information about the compiler.
   2651 echo "$as_me:$LINENO: checking for C compiler version" >&5
   2652 ac_compiler=`set X $ac_compile; echo $2`
   2653 { (ac_try="$ac_compiler --version >&5"
   2654 case "(($ac_try" in
   2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2656   *) ac_try_echo=$ac_try;;
   2657 esac
   2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2659   (eval "$ac_compiler --version >&5") 2>&5
   2660   ac_status=$?
   2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2662   (exit $ac_status); }
   2663 { (ac_try="$ac_compiler -v >&5"
   2664 case "(($ac_try" in
   2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2666   *) ac_try_echo=$ac_try;;
   2667 esac
   2668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2669   (eval "$ac_compiler -v >&5") 2>&5
   2670   ac_status=$?
   2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2672   (exit $ac_status); }
   2673 { (ac_try="$ac_compiler -V >&5"
   2674 case "(($ac_try" in
   2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2676   *) ac_try_echo=$ac_try;;
   2677 esac
   2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2679   (eval "$ac_compiler -V >&5") 2>&5
   2680   ac_status=$?
   2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2682   (exit $ac_status); }
   2683 
   2684 cat >conftest.$ac_ext <<_ACEOF
   2685 /* confdefs.h.  */
   2686 _ACEOF
   2687 cat confdefs.h >>conftest.$ac_ext
   2688 cat >>conftest.$ac_ext <<_ACEOF
   2689 /* end confdefs.h.  */
   2690 
   2691 int
   2692 main ()
   2693 {
   2694 
   2695   ;
   2696   return 0;
   2697 }
   2698 _ACEOF
   2699 ac_clean_files_save=$ac_clean_files
   2700 ac_clean_files="$ac_clean_files a.out a.exe b.out"
   2701 # Try to create an executable without -o first, disregard a.out.
   2702 # It will help us diagnose broken compilers, and finding out an intuition
   2703 # of exeext.
   2704 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
   2705 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
   2706 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   2707 #
   2708 # List of possible output files, starting from the most likely.
   2709 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
   2710 # only as a last resort.  b.out is created by i960 compilers.
   2711 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
   2712 #
   2713 # The IRIX 6 linker writes into existing files which may not be
   2714 # executable, retaining their permissions.  Remove them first so a
   2715 # subsequent execution test works.
   2716 ac_rmfiles=
   2717 for ac_file in $ac_files
   2718 do
   2719   case $ac_file in
   2720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2721     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   2722   esac
   2723 done
   2724 rm -f $ac_rmfiles
   2725 
   2726 if { (ac_try="$ac_link_default"
   2727 case "(($ac_try" in
   2728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2729   *) ac_try_echo=$ac_try;;
   2730 esac
   2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2732   (eval "$ac_link_default") 2>&5
   2733   ac_status=$?
   2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2735   (exit $ac_status); }; then
   2736   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   2737 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   2738 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   2739 # so that the user can short-circuit this test for compilers unknown to
   2740 # Autoconf.
   2741 for ac_file in $ac_files ''
   2742 do
   2743   test -f "$ac_file" || continue
   2744   case $ac_file in
   2745     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
   2746 	;;
   2747     [ab].out )
   2748 	# We found the default executable, but exeext='' is most
   2749 	# certainly right.
   2750 	break;;
   2751     *.* )
   2752         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   2753 	then :; else
   2754 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2755 	fi
   2756 	# We set ac_cv_exeext here because the later test for it is not
   2757 	# safe: cross compilers may not add the suffix if given an `-o'
   2758 	# argument, so we may need to know it at that point already.
   2759 	# Even if this section looks crufty: it has the advantage of
   2760 	# actually working.
   2761 	break;;
   2762     * )
   2763 	break;;
   2764   esac
   2765 done
   2766 test "$ac_cv_exeext" = no && ac_cv_exeext=
   2767 
   2768 else
   2769   ac_file=''
   2770 fi
   2771 
   2772 { echo "$as_me:$LINENO: result: $ac_file" >&5
   2773 echo "${ECHO_T}$ac_file" >&6; }
   2774 if test -z "$ac_file"; then
   2775   echo "$as_me: failed program was:" >&5
   2776 sed 's/^/| /' conftest.$ac_ext >&5
   2777 
   2778 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
   2779 See \`config.log' for more details." >&5
   2780 echo "$as_me: error: C compiler cannot create executables
   2781 See \`config.log' for more details." >&2;}
   2782    { (exit 77); exit 77; }; }
   2783 fi
   2784 
   2785 ac_exeext=$ac_cv_exeext
   2786 
   2787 # Check that the compiler produces executables we can run.  If not, either
   2788 # the compiler is broken, or we cross compile.
   2789 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
   2790 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
   2791 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
   2792 # If not cross compiling, check that we can run a simple program.
   2793 if test "$cross_compiling" != yes; then
   2794   if { ac_try='./$ac_file'
   2795   { (case "(($ac_try" in
   2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2797   *) ac_try_echo=$ac_try;;
   2798 esac
   2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2800   (eval "$ac_try") 2>&5
   2801   ac_status=$?
   2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2803   (exit $ac_status); }; }; then
   2804     cross_compiling=no
   2805   else
   2806     if test "$cross_compiling" = maybe; then
   2807 	cross_compiling=yes
   2808     else
   2809 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
   2810 If you meant to cross compile, use \`--host'.
   2811 See \`config.log' for more details." >&5
   2812 echo "$as_me: error: cannot run C compiled programs.
   2813 If you meant to cross compile, use \`--host'.
   2814 See \`config.log' for more details." >&2;}
   2815    { (exit 1); exit 1; }; }
   2816     fi
   2817   fi
   2818 fi
   2819 { echo "$as_me:$LINENO: result: yes" >&5
   2820 echo "${ECHO_T}yes" >&6; }
   2821 
   2822 rm -f a.out a.exe conftest$ac_cv_exeext b.out
   2823 ac_clean_files=$ac_clean_files_save
   2824 # Check that the compiler produces executables we can run.  If not, either
   2825 # the compiler is broken, or we cross compile.
   2826 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
   2827 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
   2828 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
   2829 echo "${ECHO_T}$cross_compiling" >&6; }
   2830 
   2831 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
   2832 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
   2833 if { (ac_try="$ac_link"
   2834 case "(($ac_try" in
   2835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2836   *) ac_try_echo=$ac_try;;
   2837 esac
   2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2839   (eval "$ac_link") 2>&5
   2840   ac_status=$?
   2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2842   (exit $ac_status); }; then
   2843   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   2844 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   2845 # work properly (i.e., refer to `conftest.exe'), while it won't with
   2846 # `rm'.
   2847 for ac_file in conftest.exe conftest conftest.*; do
   2848   test -f "$ac_file" || continue
   2849   case $ac_file in
   2850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
   2851     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   2852 	  break;;
   2853     * ) break;;
   2854   esac
   2855 done
   2856 else
   2857   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
   2858 See \`config.log' for more details." >&5
   2859 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
   2860 See \`config.log' for more details." >&2;}
   2861    { (exit 1); exit 1; }; }
   2862 fi
   2863 
   2864 rm -f conftest$ac_cv_exeext
   2865 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
   2866 echo "${ECHO_T}$ac_cv_exeext" >&6; }
   2867 
   2868 rm -f conftest.$ac_ext
   2869 EXEEXT=$ac_cv_exeext
   2870 ac_exeext=$EXEEXT
   2871 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
   2872 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
   2873 if test "${ac_cv_objext+set}" = set; then
   2874   echo $ECHO_N "(cached) $ECHO_C" >&6
   2875 else
   2876   cat >conftest.$ac_ext <<_ACEOF
   2877 /* confdefs.h.  */
   2878 _ACEOF
   2879 cat confdefs.h >>conftest.$ac_ext
   2880 cat >>conftest.$ac_ext <<_ACEOF
   2881 /* end confdefs.h.  */
   2882 
   2883 int
   2884 main ()
   2885 {
   2886 
   2887   ;
   2888   return 0;
   2889 }
   2890 _ACEOF
   2891 rm -f conftest.o conftest.obj
   2892 if { (ac_try="$ac_compile"
   2893 case "(($ac_try" in
   2894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2895   *) ac_try_echo=$ac_try;;
   2896 esac
   2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2898   (eval "$ac_compile") 2>&5
   2899   ac_status=$?
   2900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2901   (exit $ac_status); }; then
   2902   for ac_file in conftest.o conftest.obj conftest.*; do
   2903   test -f "$ac_file" || continue;
   2904   case $ac_file in
   2905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
   2906     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   2907        break;;
   2908   esac
   2909 done
   2910 else
   2911   echo "$as_me: failed program was:" >&5
   2912 sed 's/^/| /' conftest.$ac_ext >&5
   2913 
   2914 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
   2915 See \`config.log' for more details." >&5
   2916 echo "$as_me: error: cannot compute suffix of object files: cannot compile
   2917 See \`config.log' for more details." >&2;}
   2918    { (exit 1); exit 1; }; }
   2919 fi
   2920 
   2921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   2922 fi
   2923 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
   2924 echo "${ECHO_T}$ac_cv_objext" >&6; }
   2925 OBJEXT=$ac_cv_objext
   2926 ac_objext=$OBJEXT
   2927 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
   2928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
   2929 if test "${ac_cv_c_compiler_gnu+set}" = set; then
   2930   echo $ECHO_N "(cached) $ECHO_C" >&6
   2931 else
   2932   cat >conftest.$ac_ext <<_ACEOF
   2933 /* confdefs.h.  */
   2934 _ACEOF
   2935 cat confdefs.h >>conftest.$ac_ext
   2936 cat >>conftest.$ac_ext <<_ACEOF
   2937 /* end confdefs.h.  */
   2938 
   2939 int
   2940 main ()
   2941 {
   2942 #ifndef __GNUC__
   2943        choke me
   2944 #endif
   2945 
   2946   ;
   2947   return 0;
   2948 }
   2949 _ACEOF
   2950 rm -f conftest.$ac_objext
   2951 if { (ac_try="$ac_compile"
   2952 case "(($ac_try" in
   2953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2954   *) ac_try_echo=$ac_try;;
   2955 esac
   2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   2957   (eval "$ac_compile") 2>conftest.er1
   2958   ac_status=$?
   2959   grep -v '^ *+' conftest.er1 >conftest.err
   2960   rm -f conftest.er1
   2961   cat conftest.err >&5
   2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   2963   (exit $ac_status); } && {
   2964 	 test -z "$ac_c_werror_flag" ||
   2965 	 test ! -s conftest.err
   2966        } && test -s conftest.$ac_objext; then
   2967   ac_compiler_gnu=yes
   2968 else
   2969   echo "$as_me: failed program was:" >&5
   2970 sed 's/^/| /' conftest.$ac_ext >&5
   2971 
   2972 	ac_compiler_gnu=no
   2973 fi
   2974 
   2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   2977 
   2978 fi
   2979 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
   2980 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
   2981 GCC=`test $ac_compiler_gnu = yes && echo yes`
   2982 ac_test_CFLAGS=${CFLAGS+set}
   2983 ac_save_CFLAGS=$CFLAGS
   2984 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
   2985 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
   2986 if test "${ac_cv_prog_cc_g+set}" = set; then
   2987   echo $ECHO_N "(cached) $ECHO_C" >&6
   2988 else
   2989   ac_save_c_werror_flag=$ac_c_werror_flag
   2990    ac_c_werror_flag=yes
   2991    ac_cv_prog_cc_g=no
   2992    CFLAGS="-g"
   2993    cat >conftest.$ac_ext <<_ACEOF
   2994 /* confdefs.h.  */
   2995 _ACEOF
   2996 cat confdefs.h >>conftest.$ac_ext
   2997 cat >>conftest.$ac_ext <<_ACEOF
   2998 /* end confdefs.h.  */
   2999 
   3000 int
   3001 main ()
   3002 {
   3003 
   3004   ;
   3005   return 0;
   3006 }
   3007 _ACEOF
   3008 rm -f conftest.$ac_objext
   3009 if { (ac_try="$ac_compile"
   3010 case "(($ac_try" in
   3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3012   *) ac_try_echo=$ac_try;;
   3013 esac
   3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3015   (eval "$ac_compile") 2>conftest.er1
   3016   ac_status=$?
   3017   grep -v '^ *+' conftest.er1 >conftest.err
   3018   rm -f conftest.er1
   3019   cat conftest.err >&5
   3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3021   (exit $ac_status); } && {
   3022 	 test -z "$ac_c_werror_flag" ||
   3023 	 test ! -s conftest.err
   3024        } && test -s conftest.$ac_objext; then
   3025   ac_cv_prog_cc_g=yes
   3026 else
   3027   echo "$as_me: failed program was:" >&5
   3028 sed 's/^/| /' conftest.$ac_ext >&5
   3029 
   3030 	CFLAGS=""
   3031       cat >conftest.$ac_ext <<_ACEOF
   3032 /* confdefs.h.  */
   3033 _ACEOF
   3034 cat confdefs.h >>conftest.$ac_ext
   3035 cat >>conftest.$ac_ext <<_ACEOF
   3036 /* end confdefs.h.  */
   3037 
   3038 int
   3039 main ()
   3040 {
   3041 
   3042   ;
   3043   return 0;
   3044 }
   3045 _ACEOF
   3046 rm -f conftest.$ac_objext
   3047 if { (ac_try="$ac_compile"
   3048 case "(($ac_try" in
   3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3050   *) ac_try_echo=$ac_try;;
   3051 esac
   3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3053   (eval "$ac_compile") 2>conftest.er1
   3054   ac_status=$?
   3055   grep -v '^ *+' conftest.er1 >conftest.err
   3056   rm -f conftest.er1
   3057   cat conftest.err >&5
   3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3059   (exit $ac_status); } && {
   3060 	 test -z "$ac_c_werror_flag" ||
   3061 	 test ! -s conftest.err
   3062        } && test -s conftest.$ac_objext; then
   3063   :
   3064 else
   3065   echo "$as_me: failed program was:" >&5
   3066 sed 's/^/| /' conftest.$ac_ext >&5
   3067 
   3068 	ac_c_werror_flag=$ac_save_c_werror_flag
   3069 	 CFLAGS="-g"
   3070 	 cat >conftest.$ac_ext <<_ACEOF
   3071 /* confdefs.h.  */
   3072 _ACEOF
   3073 cat confdefs.h >>conftest.$ac_ext
   3074 cat >>conftest.$ac_ext <<_ACEOF
   3075 /* end confdefs.h.  */
   3076 
   3077 int
   3078 main ()
   3079 {
   3080 
   3081   ;
   3082   return 0;
   3083 }
   3084 _ACEOF
   3085 rm -f conftest.$ac_objext
   3086 if { (ac_try="$ac_compile"
   3087 case "(($ac_try" in
   3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3089   *) ac_try_echo=$ac_try;;
   3090 esac
   3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3092   (eval "$ac_compile") 2>conftest.er1
   3093   ac_status=$?
   3094   grep -v '^ *+' conftest.er1 >conftest.err
   3095   rm -f conftest.er1
   3096   cat conftest.err >&5
   3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3098   (exit $ac_status); } && {
   3099 	 test -z "$ac_c_werror_flag" ||
   3100 	 test ! -s conftest.err
   3101        } && test -s conftest.$ac_objext; then
   3102   ac_cv_prog_cc_g=yes
   3103 else
   3104   echo "$as_me: failed program was:" >&5
   3105 sed 's/^/| /' conftest.$ac_ext >&5
   3106 
   3107 
   3108 fi
   3109 
   3110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3111 fi
   3112 
   3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3114 fi
   3115 
   3116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3117    ac_c_werror_flag=$ac_save_c_werror_flag
   3118 fi
   3119 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
   3120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
   3121 if test "$ac_test_CFLAGS" = set; then
   3122   CFLAGS=$ac_save_CFLAGS
   3123 elif test $ac_cv_prog_cc_g = yes; then
   3124   if test "$GCC" = yes; then
   3125     CFLAGS="-g -O2"
   3126   else
   3127     CFLAGS="-g"
   3128   fi
   3129 else
   3130   if test "$GCC" = yes; then
   3131     CFLAGS="-O2"
   3132   else
   3133     CFLAGS=
   3134   fi
   3135 fi
   3136 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
   3137 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
   3138 if test "${ac_cv_prog_cc_c89+set}" = set; then
   3139   echo $ECHO_N "(cached) $ECHO_C" >&6
   3140 else
   3141   ac_cv_prog_cc_c89=no
   3142 ac_save_CC=$CC
   3143 cat >conftest.$ac_ext <<_ACEOF
   3144 /* confdefs.h.  */
   3145 _ACEOF
   3146 cat confdefs.h >>conftest.$ac_ext
   3147 cat >>conftest.$ac_ext <<_ACEOF
   3148 /* end confdefs.h.  */
   3149 #include <stdarg.h>
   3150 #include <stdio.h>
   3151 #include <sys/types.h>
   3152 #include <sys/stat.h>
   3153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3154 struct buf { int x; };
   3155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3156 static char *e (p, i)
   3157      char **p;
   3158      int i;
   3159 {
   3160   return p[i];
   3161 }
   3162 static char *f (char * (*g) (char **, int), char **p, ...)
   3163 {
   3164   char *s;
   3165   va_list v;
   3166   va_start (v,p);
   3167   s = g (p, va_arg (v,int));
   3168   va_end (v);
   3169   return s;
   3170 }
   3171 
   3172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3173    function prototypes and stuff, but not '\xHH' hex character constants.
   3174    These don't provoke an error unfortunately, instead are silently treated
   3175    as 'x'.  The following induces an error, until -std is added to get
   3176    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3177    array size at least.  It's necessary to write '\x00'==0 to get something
   3178    that's true only with -std.  */
   3179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3180 
   3181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3182    inside strings and character constants.  */
   3183 #define FOO(x) 'x'
   3184 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3185 
   3186 int test (int i, double x);
   3187 struct s1 {int (*f) (int a);};
   3188 struct s2 {int (*f) (double a);};
   3189 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3190 int argc;
   3191 char **argv;
   3192 int
   3193 main ()
   3194 {
   3195 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3196   ;
   3197   return 0;
   3198 }
   3199 _ACEOF
   3200 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3201 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3202 do
   3203   CC="$ac_save_CC $ac_arg"
   3204   rm -f conftest.$ac_objext
   3205 if { (ac_try="$ac_compile"
   3206 case "(($ac_try" in
   3207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3208   *) ac_try_echo=$ac_try;;
   3209 esac
   3210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3211   (eval "$ac_compile") 2>conftest.er1
   3212   ac_status=$?
   3213   grep -v '^ *+' conftest.er1 >conftest.err
   3214   rm -f conftest.er1
   3215   cat conftest.err >&5
   3216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3217   (exit $ac_status); } && {
   3218 	 test -z "$ac_c_werror_flag" ||
   3219 	 test ! -s conftest.err
   3220        } && test -s conftest.$ac_objext; then
   3221   ac_cv_prog_cc_c89=$ac_arg
   3222 else
   3223   echo "$as_me: failed program was:" >&5
   3224 sed 's/^/| /' conftest.$ac_ext >&5
   3225 
   3226 
   3227 fi
   3228 
   3229 rm -f core conftest.err conftest.$ac_objext
   3230   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3231 done
   3232 rm -f conftest.$ac_ext
   3233 CC=$ac_save_CC
   3234 
   3235 fi
   3236 # AC_CACHE_VAL
   3237 case "x$ac_cv_prog_cc_c89" in
   3238   x)
   3239     { echo "$as_me:$LINENO: result: none needed" >&5
   3240 echo "${ECHO_T}none needed" >&6; } ;;
   3241   xno)
   3242     { echo "$as_me:$LINENO: result: unsupported" >&5
   3243 echo "${ECHO_T}unsupported" >&6; } ;;
   3244   *)
   3245     CC="$CC $ac_cv_prog_cc_c89"
   3246     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
   3247 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
   3248 esac
   3249 
   3250 
   3251 ac_ext=c
   3252 ac_cpp='$CPP $CPPFLAGS'
   3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3256 
   3257 ac_ext=cpp
   3258 ac_cpp='$CXXCPP $CPPFLAGS'
   3259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3262 if test -z "$CXX"; then
   3263   if test -n "$CCC"; then
   3264     CXX=$CCC
   3265   else
   3266     if test -n "$ac_tool_prefix"; then
   3267   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3268   do
   3269     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3270 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   3272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   3273 if test "${ac_cv_prog_CXX+set}" = set; then
   3274   echo $ECHO_N "(cached) $ECHO_C" >&6
   3275 else
   3276   if test -n "$CXX"; then
   3277   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   3278 else
   3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3280 for as_dir in $PATH
   3281 do
   3282   IFS=$as_save_IFS
   3283   test -z "$as_dir" && as_dir=.
   3284   for ac_exec_ext in '' $ac_executable_extensions; do
   3285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3286     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   3287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3288     break 2
   3289   fi
   3290 done
   3291 done
   3292 IFS=$as_save_IFS
   3293 
   3294 fi
   3295 fi
   3296 CXX=$ac_cv_prog_CXX
   3297 if test -n "$CXX"; then
   3298   { echo "$as_me:$LINENO: result: $CXX" >&5
   3299 echo "${ECHO_T}$CXX" >&6; }
   3300 else
   3301   { echo "$as_me:$LINENO: result: no" >&5
   3302 echo "${ECHO_T}no" >&6; }
   3303 fi
   3304 
   3305 
   3306     test -n "$CXX" && break
   3307   done
   3308 fi
   3309 if test -z "$CXX"; then
   3310   ac_ct_CXX=$CXX
   3311   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3312 do
   3313   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3314 set dummy $ac_prog; ac_word=$2
   3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   3317 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
   3318   echo $ECHO_N "(cached) $ECHO_C" >&6
   3319 else
   3320   if test -n "$ac_ct_CXX"; then
   3321   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   3322 else
   3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3324 for as_dir in $PATH
   3325 do
   3326   IFS=$as_save_IFS
   3327   test -z "$as_dir" && as_dir=.
   3328   for ac_exec_ext in '' $ac_executable_extensions; do
   3329   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3330     ac_cv_prog_ac_ct_CXX="$ac_prog"
   3331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   3332     break 2
   3333   fi
   3334 done
   3335 done
   3336 IFS=$as_save_IFS
   3337 
   3338 fi
   3339 fi
   3340 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   3341 if test -n "$ac_ct_CXX"; then
   3342   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
   3343 echo "${ECHO_T}$ac_ct_CXX" >&6; }
   3344 else
   3345   { echo "$as_me:$LINENO: result: no" >&5
   3346 echo "${ECHO_T}no" >&6; }
   3347 fi
   3348 
   3349 
   3350   test -n "$ac_ct_CXX" && break
   3351 done
   3352 
   3353   if test "x$ac_ct_CXX" = x; then
   3354     CXX="g++"
   3355   else
   3356     case $cross_compiling:$ac_tool_warned in
   3357 yes:)
   3358 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   3359 whose name does not start with the host triplet.  If you think this
   3360 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   3361 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   3362 whose name does not start with the host triplet.  If you think this
   3363 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   3364 ac_tool_warned=yes ;;
   3365 esac
   3366     CXX=$ac_ct_CXX
   3367   fi
   3368 fi
   3369 
   3370   fi
   3371 fi
   3372 # Provide some information about the compiler.
   3373 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
   3374 ac_compiler=`set X $ac_compile; echo $2`
   3375 { (ac_try="$ac_compiler --version >&5"
   3376 case "(($ac_try" in
   3377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3378   *) ac_try_echo=$ac_try;;
   3379 esac
   3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3381   (eval "$ac_compiler --version >&5") 2>&5
   3382   ac_status=$?
   3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3384   (exit $ac_status); }
   3385 { (ac_try="$ac_compiler -v >&5"
   3386 case "(($ac_try" in
   3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3388   *) ac_try_echo=$ac_try;;
   3389 esac
   3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3391   (eval "$ac_compiler -v >&5") 2>&5
   3392   ac_status=$?
   3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3394   (exit $ac_status); }
   3395 { (ac_try="$ac_compiler -V >&5"
   3396 case "(($ac_try" in
   3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3398   *) ac_try_echo=$ac_try;;
   3399 esac
   3400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3401   (eval "$ac_compiler -V >&5") 2>&5
   3402   ac_status=$?
   3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3404   (exit $ac_status); }
   3405 
   3406 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
   3407 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
   3408 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
   3409   echo $ECHO_N "(cached) $ECHO_C" >&6
   3410 else
   3411   cat >conftest.$ac_ext <<_ACEOF
   3412 /* confdefs.h.  */
   3413 _ACEOF
   3414 cat confdefs.h >>conftest.$ac_ext
   3415 cat >>conftest.$ac_ext <<_ACEOF
   3416 /* end confdefs.h.  */
   3417 
   3418 int
   3419 main ()
   3420 {
   3421 #ifndef __GNUC__
   3422        choke me
   3423 #endif
   3424 
   3425   ;
   3426   return 0;
   3427 }
   3428 _ACEOF
   3429 rm -f conftest.$ac_objext
   3430 if { (ac_try="$ac_compile"
   3431 case "(($ac_try" in
   3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3433   *) ac_try_echo=$ac_try;;
   3434 esac
   3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3436   (eval "$ac_compile") 2>conftest.er1
   3437   ac_status=$?
   3438   grep -v '^ *+' conftest.er1 >conftest.err
   3439   rm -f conftest.er1
   3440   cat conftest.err >&5
   3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3442   (exit $ac_status); } && {
   3443 	 test -z "$ac_cxx_werror_flag" ||
   3444 	 test ! -s conftest.err
   3445        } && test -s conftest.$ac_objext; then
   3446   ac_compiler_gnu=yes
   3447 else
   3448   echo "$as_me: failed program was:" >&5
   3449 sed 's/^/| /' conftest.$ac_ext >&5
   3450 
   3451 	ac_compiler_gnu=no
   3452 fi
   3453 
   3454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3455 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   3456 
   3457 fi
   3458 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
   3459 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
   3460 GXX=`test $ac_compiler_gnu = yes && echo yes`
   3461 ac_test_CXXFLAGS=${CXXFLAGS+set}
   3462 ac_save_CXXFLAGS=$CXXFLAGS
   3463 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
   3464 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
   3465 if test "${ac_cv_prog_cxx_g+set}" = set; then
   3466   echo $ECHO_N "(cached) $ECHO_C" >&6
   3467 else
   3468   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3469    ac_cxx_werror_flag=yes
   3470    ac_cv_prog_cxx_g=no
   3471    CXXFLAGS="-g"
   3472    cat >conftest.$ac_ext <<_ACEOF
   3473 /* confdefs.h.  */
   3474 _ACEOF
   3475 cat confdefs.h >>conftest.$ac_ext
   3476 cat >>conftest.$ac_ext <<_ACEOF
   3477 /* end confdefs.h.  */
   3478 
   3479 int
   3480 main ()
   3481 {
   3482 
   3483   ;
   3484   return 0;
   3485 }
   3486 _ACEOF
   3487 rm -f conftest.$ac_objext
   3488 if { (ac_try="$ac_compile"
   3489 case "(($ac_try" in
   3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3491   *) ac_try_echo=$ac_try;;
   3492 esac
   3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3494   (eval "$ac_compile") 2>conftest.er1
   3495   ac_status=$?
   3496   grep -v '^ *+' conftest.er1 >conftest.err
   3497   rm -f conftest.er1
   3498   cat conftest.err >&5
   3499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3500   (exit $ac_status); } && {
   3501 	 test -z "$ac_cxx_werror_flag" ||
   3502 	 test ! -s conftest.err
   3503        } && test -s conftest.$ac_objext; then
   3504   ac_cv_prog_cxx_g=yes
   3505 else
   3506   echo "$as_me: failed program was:" >&5
   3507 sed 's/^/| /' conftest.$ac_ext >&5
   3508 
   3509 	CXXFLAGS=""
   3510       cat >conftest.$ac_ext <<_ACEOF
   3511 /* confdefs.h.  */
   3512 _ACEOF
   3513 cat confdefs.h >>conftest.$ac_ext
   3514 cat >>conftest.$ac_ext <<_ACEOF
   3515 /* end confdefs.h.  */
   3516 
   3517 int
   3518 main ()
   3519 {
   3520 
   3521   ;
   3522   return 0;
   3523 }
   3524 _ACEOF
   3525 rm -f conftest.$ac_objext
   3526 if { (ac_try="$ac_compile"
   3527 case "(($ac_try" in
   3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3529   *) ac_try_echo=$ac_try;;
   3530 esac
   3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3532   (eval "$ac_compile") 2>conftest.er1
   3533   ac_status=$?
   3534   grep -v '^ *+' conftest.er1 >conftest.err
   3535   rm -f conftest.er1
   3536   cat conftest.err >&5
   3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3538   (exit $ac_status); } && {
   3539 	 test -z "$ac_cxx_werror_flag" ||
   3540 	 test ! -s conftest.err
   3541        } && test -s conftest.$ac_objext; then
   3542   :
   3543 else
   3544   echo "$as_me: failed program was:" >&5
   3545 sed 's/^/| /' conftest.$ac_ext >&5
   3546 
   3547 	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3548 	 CXXFLAGS="-g"
   3549 	 cat >conftest.$ac_ext <<_ACEOF
   3550 /* confdefs.h.  */
   3551 _ACEOF
   3552 cat confdefs.h >>conftest.$ac_ext
   3553 cat >>conftest.$ac_ext <<_ACEOF
   3554 /* end confdefs.h.  */
   3555 
   3556 int
   3557 main ()
   3558 {
   3559 
   3560   ;
   3561   return 0;
   3562 }
   3563 _ACEOF
   3564 rm -f conftest.$ac_objext
   3565 if { (ac_try="$ac_compile"
   3566 case "(($ac_try" in
   3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3568   *) ac_try_echo=$ac_try;;
   3569 esac
   3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   3571   (eval "$ac_compile") 2>conftest.er1
   3572   ac_status=$?
   3573   grep -v '^ *+' conftest.er1 >conftest.err
   3574   rm -f conftest.er1
   3575   cat conftest.err >&5
   3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   3577   (exit $ac_status); } && {
   3578 	 test -z "$ac_cxx_werror_flag" ||
   3579 	 test ! -s conftest.err
   3580        } && test -s conftest.$ac_objext; then
   3581   ac_cv_prog_cxx_g=yes
   3582 else
   3583   echo "$as_me: failed program was:" >&5
   3584 sed 's/^/| /' conftest.$ac_ext >&5
   3585 
   3586 
   3587 fi
   3588 
   3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3590 fi
   3591 
   3592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3593 fi
   3594 
   3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3596    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3597 fi
   3598 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
   3599 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
   3600 if test "$ac_test_CXXFLAGS" = set; then
   3601   CXXFLAGS=$ac_save_CXXFLAGS
   3602 elif test $ac_cv_prog_cxx_g = yes; then
   3603   if test "$GXX" = yes; then
   3604     CXXFLAGS="-g -O2"
   3605   else
   3606     CXXFLAGS="-g"
   3607   fi
   3608 else
   3609   if test "$GXX" = yes; then
   3610     CXXFLAGS="-O2"
   3611   else
   3612     CXXFLAGS=
   3613   fi
   3614 fi
   3615 ac_ext=c
   3616 ac_cpp='$CPP $CPPFLAGS'
   3617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3620 
   3621 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3622 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
   3623 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3624 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
   3625   echo $ECHO_N "(cached) $ECHO_C" >&6
   3626 else
   3627   cat >conftest.make <<\_ACEOF
   3628 SHELL = /bin/sh
   3629 all:
   3630 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3631 _ACEOF
   3632 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   3633 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3634   *@@@%%%=?*=@@@%%%*)
   3635     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3636   *)
   3637     eval ac_cv_prog_make_${ac_make}_set=no;;
   3638 esac
   3639 rm -f conftest.make
   3640 fi
   3641 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3642   { echo "$as_me:$LINENO: result: yes" >&5
   3643 echo "${ECHO_T}yes" >&6; }
   3644   SET_MAKE=
   3645 else
   3646   { echo "$as_me:$LINENO: result: no" >&5
   3647 echo "${ECHO_T}no" >&6; }
   3648   SET_MAKE="MAKE=${MAKE-make}"
   3649 fi
   3650 
   3651 
   3652 # Check whether --enable-static was given.
   3653 if test "${enable_static+set}" = set; then
   3654   enableval=$enable_static; p=${PACKAGE-default}
   3655     case $enableval in
   3656     yes) enable_static=yes ;;
   3657     no) enable_static=no ;;
   3658     *)
   3659      enable_static=no
   3660       # Look at the argument we got.  We use all the common list separators.
   3661       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   3662       for pkg in $enableval; do
   3663 	IFS="$lt_save_ifs"
   3664 	if test "X$pkg" = "X$p"; then
   3665 	  enable_static=yes
   3666 	fi
   3667       done
   3668       IFS="$lt_save_ifs"
   3669       ;;
   3670     esac
   3671 else
   3672   enable_static=no
   3673 fi
   3674 
   3675 
   3676 
   3677 
   3678 
   3679 # Check whether --enable-shared was given.
   3680 if test "${enable_shared+set}" = set; then
   3681   enableval=$enable_shared; p=${PACKAGE-default}
   3682     case $enableval in
   3683     yes) enable_shared=yes ;;
   3684     no) enable_shared=no ;;
   3685     *)
   3686       enable_shared=no
   3687       # Look at the argument we got.  We use all the common list separators.
   3688       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   3689       for pkg in $enableval; do
   3690 	IFS="$lt_save_ifs"
   3691 	if test "X$pkg" = "X$p"; then
   3692 	  enable_shared=yes
   3693 	fi
   3694       done
   3695       IFS="$lt_save_ifs"
   3696       ;;
   3697     esac
   3698 else
   3699   enable_shared=yes
   3700 fi
   3701 
   3702 
   3703 # Check whether --enable-fast-install was given.
   3704 if test "${enable_fast_install+set}" = set; then
   3705   enableval=$enable_fast_install; p=${PACKAGE-default}
   3706     case $enableval in
   3707     yes) enable_fast_install=yes ;;
   3708     no) enable_fast_install=no ;;
   3709     *)
   3710       enable_fast_install=no
   3711       # Look at the argument we got.  We use all the common list separators.
   3712       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   3713       for pkg in $enableval; do
   3714 	IFS="$lt_save_ifs"
   3715 	if test "X$pkg" = "X$p"; then
   3716 	  enable_fast_install=yes
   3717 	fi
   3718       done
   3719       IFS="$lt_save_ifs"
   3720       ;;
   3721     esac
   3722 else
   3723   enable_fast_install=yes
   3724 fi
   3725 
   3726 
   3727 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
   3728 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
   3729 if test "${lt_cv_path_SED+set}" = set; then
   3730   echo $ECHO_N "(cached) $ECHO_C" >&6
   3731 else
   3732   # Loop through the user's path and test for sed and gsed.
   3733 # Then use that list of sed's as ones to test for truncation.
   3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3735 for as_dir in $PATH
   3736 do
   3737   IFS=$as_save_IFS
   3738   test -z "$as_dir" && as_dir=.
   3739   for lt_ac_prog in sed gsed; do
   3740     for ac_exec_ext in '' $ac_executable_extensions; do
   3741       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
   3742         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
   3743       fi
   3744     done
   3745   done
   3746 done
   3747 lt_ac_max=0
   3748 lt_ac_count=0
   3749 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
   3750 # along with /bin/sed that truncates output.
   3751 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
   3752   test ! -f $lt_ac_sed && break
   3753   cat /dev/null > conftest.in
   3754   lt_ac_count=0
   3755   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
   3756   # Check for GNU sed and select it if it is found.
   3757   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
   3758     lt_cv_path_SED=$lt_ac_sed
   3759     break
   3760   fi
   3761   while true; do
   3762     cat conftest.in conftest.in >conftest.tmp
   3763     mv conftest.tmp conftest.in
   3764     cp conftest.in conftest.nl
   3765     echo >>conftest.nl
   3766     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
   3767     cmp -s conftest.out conftest.nl || break
   3768     # 10000 chars as input seems more than enough
   3769     test $lt_ac_count -gt 10 && break
   3770     lt_ac_count=`expr $lt_ac_count + 1`
   3771     if test $lt_ac_count -gt $lt_ac_max; then
   3772       lt_ac_max=$lt_ac_count
   3773       lt_cv_path_SED=$lt_ac_sed
   3774     fi
   3775   done
   3776 done
   3777 SED=$lt_cv_path_SED
   3778 
   3779 fi
   3780 
   3781 { echo "$as_me:$LINENO: result: $SED" >&5
   3782 echo "${ECHO_T}$SED" >&6; }
   3783 
   3784 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
   3785 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
   3786 if test "${ac_cv_path_GREP+set}" = set; then
   3787   echo $ECHO_N "(cached) $ECHO_C" >&6
   3788 else
   3789   # Extract the first word of "grep ggrep" to use in msg output
   3790 if test -z "$GREP"; then
   3791 set dummy grep ggrep; ac_prog_name=$2
   3792 if test "${ac_cv_path_GREP+set}" = set; then
   3793   echo $ECHO_N "(cached) $ECHO_C" >&6
   3794 else
   3795   ac_path_GREP_found=false
   3796 # Loop through the user's path and test for each of PROGNAME-LIST
   3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3799 do
   3800   IFS=$as_save_IFS
   3801   test -z "$as_dir" && as_dir=.
   3802   for ac_prog in grep ggrep; do
   3803   for ac_exec_ext in '' $ac_executable_extensions; do
   3804     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3805     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3806     # Check for GNU ac_path_GREP and select it if it is found.
   3807   # Check for GNU $ac_path_GREP
   3808 case `"$ac_path_GREP" --version 2>&1` in
   3809 *GNU*)
   3810   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3811 *)
   3812   ac_count=0
   3813   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3814   while :
   3815   do
   3816     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3817     mv "conftest.tmp" "conftest.in"
   3818     cp "conftest.in" "conftest.nl"
   3819     echo 'GREP' >> "conftest.nl"
   3820     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3821     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3822     ac_count=`expr $ac_count + 1`
   3823     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3824       # Best one so far, save it but keep looking for a better one
   3825       ac_cv_path_GREP="$ac_path_GREP"
   3826       ac_path_GREP_max=$ac_count
   3827     fi
   3828     # 10*(2^10) chars as input seems more than enough
   3829     test $ac_count -gt 10 && break
   3830   done
   3831   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3832 esac
   3833 
   3834 
   3835     $ac_path_GREP_found && break 3
   3836   done
   3837 done
   3838 
   3839 done
   3840 IFS=$as_save_IFS
   3841 
   3842 
   3843 fi
   3844 
   3845 GREP="$ac_cv_path_GREP"
   3846 if test -z "$GREP"; then
   3847   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3848 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3849    { (exit 1); exit 1; }; }
   3850 fi
   3851 
   3852 else
   3853   ac_cv_path_GREP=$GREP
   3854 fi
   3855 
   3856 
   3857 fi
   3858 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
   3859 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
   3860  GREP="$ac_cv_path_GREP"
   3861 
   3862 
   3863 { echo "$as_me:$LINENO: checking for egrep" >&5
   3864 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
   3865 if test "${ac_cv_path_EGREP+set}" = set; then
   3866   echo $ECHO_N "(cached) $ECHO_C" >&6
   3867 else
   3868   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3869    then ac_cv_path_EGREP="$GREP -E"
   3870    else
   3871      # Extract the first word of "egrep" to use in msg output
   3872 if test -z "$EGREP"; then
   3873 set dummy egrep; ac_prog_name=$2
   3874 if test "${ac_cv_path_EGREP+set}" = set; then
   3875   echo $ECHO_N "(cached) $ECHO_C" >&6
   3876 else
   3877   ac_path_EGREP_found=false
   3878 # Loop through the user's path and test for each of PROGNAME-LIST
   3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3880 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3881 do
   3882   IFS=$as_save_IFS
   3883   test -z "$as_dir" && as_dir=.
   3884   for ac_prog in egrep; do
   3885   for ac_exec_ext in '' $ac_executable_extensions; do
   3886     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3887     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3888     # Check for GNU ac_path_EGREP and select it if it is found.
   3889   # Check for GNU $ac_path_EGREP
   3890 case `"$ac_path_EGREP" --version 2>&1` in
   3891 *GNU*)
   3892   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3893 *)
   3894   ac_count=0
   3895   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
   3896   while :
   3897   do
   3898     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3899     mv "conftest.tmp" "conftest.in"
   3900     cp "conftest.in" "conftest.nl"
   3901     echo 'EGREP' >> "conftest.nl"
   3902     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3903     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3904     ac_count=`expr $ac_count + 1`
   3905     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3906       # Best one so far, save it but keep looking for a better one
   3907       ac_cv_path_EGREP="$ac_path_EGREP"
   3908       ac_path_EGREP_max=$ac_count
   3909     fi
   3910     # 10*(2^10) chars as input seems more than enough
   3911     test $ac_count -gt 10 && break
   3912   done
   3913   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3914 esac
   3915 
   3916 
   3917     $ac_path_EGREP_found && break 3
   3918   done
   3919 done
   3920 
   3921 done
   3922 IFS=$as_save_IFS
   3923 
   3924 
   3925 fi
   3926 
   3927 EGREP="$ac_cv_path_EGREP"
   3928 if test -z "$EGREP"; then
   3929   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
   3930 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
   3931    { (exit 1); exit 1; }; }
   3932 fi
   3933 
   3934 else
   3935   ac_cv_path_EGREP=$EGREP
   3936 fi
   3937 
   3938 
   3939    fi
   3940 fi
   3941 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
   3942 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
   3943  EGREP="$ac_cv_path_EGREP"
   3944 
   3945 
   3946 
   3947 # Check whether --with-gnu-ld was given.
   3948 if test "${with_gnu_ld+set}" = set; then
   3949   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   3950 else
   3951   with_gnu_ld=no
   3952 fi
   3953 
   3954 ac_prog=ld
   3955 if test "$GCC" = yes; then
   3956   # Check if gcc -print-prog-name=ld gives a path.
   3957   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
   3958 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
   3959   case $host in
   3960   *-*-mingw*)
   3961     # gcc leaves a trailing carriage return which upsets mingw
   3962     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   3963   *)
   3964     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   3965   esac
   3966   case $ac_prog in
   3967     # Accept absolute paths.
   3968     [\\/]* | ?:[\\/]*)
   3969       re_direlt='/[^/][^/]*/\.\./'
   3970       # Canonicalize the pathname of ld
   3971       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
   3972       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   3973 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
   3974       done
   3975       test -z "$LD" && LD="$ac_prog"
   3976       ;;
   3977   "")
   3978     # If it fails, then pretend we aren't using GCC.
   3979     ac_prog=ld
   3980     ;;
   3981   *)
   3982     # If it is relative, then search for the first ld in PATH.
   3983     with_gnu_ld=unknown
   3984     ;;
   3985   esac
   3986 elif test "$with_gnu_ld" = yes; then
   3987   { echo "$as_me:$LINENO: checking for GNU ld" >&5
   3988 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
   3989 else
   3990   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
   3991 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
   3992 fi
   3993 if test "${lt_cv_path_LD+set}" = set; then
   3994   echo $ECHO_N "(cached) $ECHO_C" >&6
   3995 else
   3996   if test -z "$LD"; then
   3997   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   3998   for ac_dir in $PATH; do
   3999     IFS="$lt_save_ifs"
   4000     test -z "$ac_dir" && ac_dir=.
   4001     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   4002       lt_cv_path_LD="$ac_dir/$ac_prog"
   4003       # Check to see if the program is GNU ld.  I'd rather use --version,
   4004       # but apparently some GNU ld's only accept -v.
   4005       # Break only if it was the GNU/non-GNU ld that we prefer.
   4006       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   4007       *GNU* | *'with BFD'*)
   4008 	test "$with_gnu_ld" != no && break
   4009 	;;
   4010       *)
   4011 	test "$with_gnu_ld" != yes && break
   4012 	;;
   4013       esac
   4014     fi
   4015   done
   4016   IFS="$lt_save_ifs"
   4017 else
   4018   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   4019 fi
   4020 fi
   4021 
   4022 LD="$lt_cv_path_LD"
   4023 if test -n "$LD"; then
   4024   { echo "$as_me:$LINENO: result: $LD" >&5
   4025 echo "${ECHO_T}$LD" >&6; }
   4026 else
   4027   { echo "$as_me:$LINENO: result: no" >&5
   4028 echo "${ECHO_T}no" >&6; }
   4029 fi
   4030 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
   4031 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   4032    { (exit 1); exit 1; }; }
   4033 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
   4034 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
   4035 if test "${lt_cv_prog_gnu_ld+set}" = set; then
   4036   echo $ECHO_N "(cached) $ECHO_C" >&6
   4037 else
   4038   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   4039 case `$LD -v 2>&1 </dev/null` in
   4040 *GNU* | *'with BFD'*)
   4041   lt_cv_prog_gnu_ld=yes
   4042   ;;
   4043 *)
   4044   lt_cv_prog_gnu_ld=no
   4045   ;;
   4046 esac
   4047 fi
   4048 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
   4049 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
   4050 with_gnu_ld=$lt_cv_prog_gnu_ld
   4051 
   4052 
   4053 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
   4054 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
   4055 if test "${lt_cv_ld_reload_flag+set}" = set; then
   4056   echo $ECHO_N "(cached) $ECHO_C" >&6
   4057 else
   4058   lt_cv_ld_reload_flag='-r'
   4059 fi
   4060 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
   4061 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
   4062 reload_flag=$lt_cv_ld_reload_flag
   4063 case $reload_flag in
   4064 "" | " "*) ;;
   4065 *) reload_flag=" $reload_flag" ;;
   4066 esac
   4067 reload_cmds='$LD$reload_flag -o $output$reload_objs'
   4068 
   4069 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
   4070 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
   4071 if test "${lt_cv_path_NM+set}" = set; then
   4072   echo $ECHO_N "(cached) $ECHO_C" >&6
   4073 else
   4074   if test -n "$NM"; then
   4075   # Let the user override the test.
   4076   lt_cv_path_NM="$NM"
   4077 else
   4078   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   4079   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
   4080     IFS="$lt_save_ifs"
   4081     test -z "$ac_dir" && ac_dir=.
   4082     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
   4083     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
   4084       # Check to see if the nm accepts a BSD-compat flag.
   4085       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
   4086       #   nm: unknown option "B" ignored
   4087       # Tru64's nm complains that /dev/null is an invalid object file
   4088       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
   4089       */dev/null* | *'Invalid file or object type'*)
   4090 	lt_cv_path_NM="$tmp_nm -B"
   4091 	break
   4092         ;;
   4093       *)
   4094 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
   4095 	*/dev/null*)
   4096 	  lt_cv_path_NM="$tmp_nm -p"
   4097 	  break
   4098 	  ;;
   4099 	*)
   4100 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
   4101 	  continue # so that we can try to find one that supports BSD flags
   4102 	  ;;
   4103 	esac
   4104       esac
   4105     fi
   4106   done
   4107   IFS="$lt_save_ifs"
   4108   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
   4109 fi
   4110 fi
   4111 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
   4112 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
   4113 NM="$lt_cv_path_NM"
   4114 
   4115 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
   4116 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
   4117 LN_S=$as_ln_s
   4118 if test "$LN_S" = "ln -s"; then
   4119   { echo "$as_me:$LINENO: result: yes" >&5
   4120 echo "${ECHO_T}yes" >&6; }
   4121 else
   4122   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
   4123 echo "${ECHO_T}no, using $LN_S" >&6; }
   4124 fi
   4125 
   4126 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
   4127 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
   4128 if test "${lt_cv_deplibs_check_method+set}" = set; then
   4129   echo $ECHO_N "(cached) $ECHO_C" >&6
   4130 else
   4131   lt_cv_file_magic_cmd='$MAGIC_CMD'
   4132 lt_cv_file_magic_test_file=
   4133 lt_cv_deplibs_check_method='unknown'
   4134 # Need to set the preceding variable on all platforms that support
   4135 # interlibrary dependencies.
   4136 # 'none' -- dependencies not supported.
   4137 # `unknown' -- same as none, but documents that we really don't know.
   4138 # 'pass_all' -- all dependencies passed with no checks.
   4139 # 'test_compile' -- check by making test program.
   4140 # 'file_magic [[regex]]' -- check by looking for files in library path
   4141 # which responds to the $file_magic_cmd with a given extended regex.
   4142 # If you have `file' or equivalent on your system and you're not sure
   4143 # whether `pass_all' will *always* work, you probably want this one.
   4144 
   4145 case $host_os in
   4146 aix4* | aix5*)
   4147   lt_cv_deplibs_check_method=pass_all
   4148   ;;
   4149 
   4150 beos*)
   4151   lt_cv_deplibs_check_method=pass_all
   4152   ;;
   4153 
   4154 bsdi4*)
   4155   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
   4156   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4157   lt_cv_file_magic_test_file=/shlib/libc.so
   4158   ;;
   4159 
   4160 cygwin* | mingw* | pw32*)
   4161   # win32_libid is a shell function defined in ltmain.sh
   4162   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
   4163   lt_cv_file_magic_cmd='win32_libid'
   4164   ;;
   4165 
   4166 darwin* | rhapsody*)
   4167   # this will be overwritten by pass_all, but leave it in just in case
   4168   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
   4169   lt_cv_file_magic_cmd='/usr/bin/file -L'
   4170   case "$host_os" in
   4171   rhapsody* | darwin1.[012])
   4172     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
   4173     ;;
   4174   *) # Darwin 1.3 on
   4175     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
   4176     ;;
   4177   esac
   4178   lt_cv_deplibs_check_method=pass_all
   4179   ;;
   4180 
   4181 freebsd* | kfreebsd*-gnu)
   4182   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   4183     case $host_cpu in
   4184     i*86 )
   4185       # Not sure whether the presence of OpenBSD here was a mistake.
   4186       # Let's accept both of them until this is cleared up.
   4187       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
   4188       lt_cv_file_magic_cmd=/usr/bin/file
   4189       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4190       ;;
   4191     esac
   4192   else
   4193     lt_cv_deplibs_check_method=pass_all
   4194   fi
   4195   ;;
   4196 
   4197 gnu*)
   4198   lt_cv_deplibs_check_method=pass_all
   4199   ;;
   4200 
   4201 hpux10.20* | hpux11*)
   4202   lt_cv_file_magic_cmd=/usr/bin/file
   4203   case "$host_cpu" in
   4204   ia64*)
   4205     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
   4206     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
   4207     ;;
   4208   hppa*64*)
   4209     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]'
   4210     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
   4211     ;;
   4212   *)
   4213     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
   4214     lt_cv_file_magic_test_file=/usr/lib/libc.sl
   4215     ;;
   4216   esac
   4217   ;;
   4218 
   4219 irix5* | irix6* | nonstopux*)
   4220   case $host_os in
   4221   irix5* | nonstopux*)
   4222     # this will be overridden with pass_all, but let us keep it just in case
   4223     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
   4224     ;;
   4225   *)
   4226     case $LD in
   4227     *-32|*"-32 ") libmagic=32-bit;;
   4228     *-n32|*"-n32 ") libmagic=N32;;
   4229     *-64|*"-64 ") libmagic=64-bit;;
   4230     *) libmagic=never-match;;
   4231     esac
   4232     # this will be overridden with pass_all, but let us keep it just in case
   4233     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
   4234     ;;
   4235   esac
   4236   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
   4237   lt_cv_deplibs_check_method=pass_all
   4238   ;;
   4239 
   4240 # This must be Linux ELF.
   4241 linux*)
   4242   case $host_cpu in
   4243   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh*)
   4244     lt_cv_deplibs_check_method=pass_all ;;
   4245   *)
   4246     # glibc up to 2.1.1 does not perform some relocations on ARM
   4247     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
   4248   esac
   4249   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
   4250   ;;
   4251 
   4252 netbsd*)
   4253   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   4254     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
   4255   else
   4256     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
   4257   fi
   4258   ;;
   4259 
   4260 newos6*)
   4261   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
   4262   lt_cv_file_magic_cmd=/usr/bin/file
   4263   lt_cv_file_magic_test_file=/usr/lib/libnls.so
   4264   ;;
   4265 
   4266 nto-qnx*)
   4267   lt_cv_deplibs_check_method=unknown
   4268   ;;
   4269 
   4270 openbsd*)
   4271   lt_cv_file_magic_cmd=/usr/bin/file
   4272   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
   4273   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   4274     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
   4275   else
   4276     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
   4277   fi
   4278   ;;
   4279 
   4280 osf3* | osf4* | osf5*)
   4281   # this will be overridden with pass_all, but let us keep it just in case
   4282   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
   4283   lt_cv_file_magic_test_file=/shlib/libc.so
   4284   lt_cv_deplibs_check_method=pass_all
   4285   ;;
   4286 
   4287 sco3.2v5*)
   4288   lt_cv_deplibs_check_method=pass_all
   4289   ;;
   4290 
   4291 solaris*)
   4292   lt_cv_deplibs_check_method=pass_all
   4293   lt_cv_file_magic_test_file=/lib/libc.so
   4294   ;;
   4295 
   4296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   4297   case $host_vendor in
   4298   motorola)
   4299     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]'
   4300     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
   4301     ;;
   4302   ncr)
   4303     lt_cv_deplibs_check_method=pass_all
   4304     ;;
   4305   sequent)
   4306     lt_cv_file_magic_cmd='/bin/file'
   4307     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
   4308     ;;
   4309   sni)
   4310     lt_cv_file_magic_cmd='/bin/file'
   4311     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
   4312     lt_cv_file_magic_test_file=/lib/libc.so
   4313     ;;
   4314   siemens)
   4315     lt_cv_deplibs_check_method=pass_all
   4316     ;;
   4317   esac
   4318   ;;
   4319 
   4320 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
   4321   lt_cv_deplibs_check_method=pass_all
   4322   ;;
   4323 esac
   4324 
   4325 fi
   4326 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
   4327 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
   4328 file_magic_cmd=$lt_cv_file_magic_cmd
   4329 deplibs_check_method=$lt_cv_deplibs_check_method
   4330 test -z "$deplibs_check_method" && deplibs_check_method=unknown
   4331 
   4332 
   4333 
   4334 
   4335 # If no C compiler was specified, use CC.
   4336 LTCC=${LTCC-"$CC"}
   4337 
   4338 # Allow CC to be a program name with arguments.
   4339 compiler=$CC
   4340 
   4341 
   4342 # Check whether --enable-libtool-lock was given.
   4343 if test "${enable_libtool_lock+set}" = set; then
   4344   enableval=$enable_libtool_lock;
   4345 fi
   4346 
   4347 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   4348 
   4349 # Some flags need to be propagated to the compiler or linker for good
   4350 # libtool support.
   4351 case $host in
   4352 ia64-*-hpux*)
   4353   # Find out which ABI we are using.
   4354   echo 'int i;' > conftest.$ac_ext
   4355   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4356   (eval $ac_compile) 2>&5
   4357   ac_status=$?
   4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4359   (exit $ac_status); }; then
   4360     case `/usr/bin/file conftest.$ac_objext` in
   4361     *ELF-32*)
   4362       HPUX_IA64_MODE="32"
   4363       ;;
   4364     *ELF-64*)
   4365       HPUX_IA64_MODE="64"
   4366       ;;
   4367     esac
   4368   fi
   4369   rm -rf conftest*
   4370   ;;
   4371 *-*-irix6*)
   4372   # Find out which ABI we are using.
   4373   echo '#line 4373 "configure"' > conftest.$ac_ext
   4374   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4375   (eval $ac_compile) 2>&5
   4376   ac_status=$?
   4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4378   (exit $ac_status); }; then
   4379    if test "$lt_cv_prog_gnu_ld" = yes; then
   4380     case `/usr/bin/file conftest.$ac_objext` in
   4381     *32-bit*)
   4382       LD="${LD-ld} -melf32bsmip"
   4383       ;;
   4384     *N32*)
   4385       LD="${LD-ld} -melf32bmipn32"
   4386       ;;
   4387     *64-bit*)
   4388       LD="${LD-ld} -melf64bmip"
   4389       ;;
   4390     esac
   4391    else
   4392     case `/usr/bin/file conftest.$ac_objext` in
   4393     *32-bit*)
   4394       LD="${LD-ld} -32"
   4395       ;;
   4396     *N32*)
   4397       LD="${LD-ld} -n32"
   4398       ;;
   4399     *64-bit*)
   4400       LD="${LD-ld} -64"
   4401       ;;
   4402     esac
   4403    fi
   4404   fi
   4405   rm -rf conftest*
   4406   ;;
   4407 
   4408 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   4409   # Find out which ABI we are using.
   4410   echo 'int i;' > conftest.$ac_ext
   4411   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   4412   (eval $ac_compile) 2>&5
   4413   ac_status=$?
   4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4415   (exit $ac_status); }; then
   4416     case "`/usr/bin/file conftest.o`" in
   4417     *32-bit*)
   4418       case $host in
   4419         x86_64-*linux*)
   4420           LD="${LD-ld} -m elf_i386"
   4421           ;;
   4422         ppc64-*linux*|powerpc64-*linux*)
   4423           LD="${LD-ld} -m elf32ppclinux"
   4424           ;;
   4425         s390x-*linux*)
   4426           LD="${LD-ld} -m elf_s390"
   4427           ;;
   4428         sparc64-*linux*)
   4429           LD="${LD-ld} -m elf32_sparc"
   4430           ;;
   4431       esac
   4432       ;;
   4433     *64-bit*)
   4434       case $host in
   4435         x86_64-*linux*)
   4436           LD="${LD-ld} -m elf_x86_64"
   4437           ;;
   4438         ppc*-*linux*|powerpc*-*linux*)
   4439           LD="${LD-ld} -m elf64ppc"
   4440           ;;
   4441         s390*-*linux*)
   4442           LD="${LD-ld} -m elf64_s390"
   4443           ;;
   4444         sparc*-*linux*)
   4445           LD="${LD-ld} -m elf64_sparc"
   4446           ;;
   4447       esac
   4448       ;;
   4449     esac
   4450   fi
   4451   rm -rf conftest*
   4452   ;;
   4453 
   4454 *-*-sco3.2v5*)
   4455   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   4456   SAVE_CFLAGS="$CFLAGS"
   4457   CFLAGS="$CFLAGS -belf"
   4458   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
   4459 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
   4460 if test "${lt_cv_cc_needs_belf+set}" = set; then
   4461   echo $ECHO_N "(cached) $ECHO_C" >&6
   4462 else
   4463   ac_ext=c
   4464 ac_cpp='$CPP $CPPFLAGS'
   4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4468 
   4469      cat >conftest.$ac_ext <<_ACEOF
   4470 /* confdefs.h.  */
   4471 _ACEOF
   4472 cat confdefs.h >>conftest.$ac_ext
   4473 cat >>conftest.$ac_ext <<_ACEOF
   4474 /* end confdefs.h.  */
   4475 
   4476 int
   4477 main ()
   4478 {
   4479 
   4480   ;
   4481   return 0;
   4482 }
   4483 _ACEOF
   4484 rm -f conftest.$ac_objext conftest$ac_exeext
   4485 if { (ac_try="$ac_link"
   4486 case "(($ac_try" in
   4487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4488   *) ac_try_echo=$ac_try;;
   4489 esac
   4490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4491   (eval "$ac_link") 2>conftest.er1
   4492   ac_status=$?
   4493   grep -v '^ *+' conftest.er1 >conftest.err
   4494   rm -f conftest.er1
   4495   cat conftest.err >&5
   4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4497   (exit $ac_status); } && {
   4498 	 test -z "$ac_c_werror_flag" ||
   4499 	 test ! -s conftest.err
   4500        } && test -s conftest$ac_exeext &&
   4501        $as_test_x conftest$ac_exeext; then
   4502   lt_cv_cc_needs_belf=yes
   4503 else
   4504   echo "$as_me: failed program was:" >&5
   4505 sed 's/^/| /' conftest.$ac_ext >&5
   4506 
   4507 	lt_cv_cc_needs_belf=no
   4508 fi
   4509 
   4510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   4511       conftest$ac_exeext conftest.$ac_ext
   4512      ac_ext=c
   4513 ac_cpp='$CPP $CPPFLAGS'
   4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4517 
   4518 fi
   4519 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
   4520 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
   4521   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   4522     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   4523     CFLAGS="$SAVE_CFLAGS"
   4524   fi
   4525   ;;
   4526 
   4527 esac
   4528 
   4529 need_locks="$enable_libtool_lock"
   4530 
   4531 
   4532 ac_ext=c
   4533 ac_cpp='$CPP $CPPFLAGS'
   4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4537 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
   4538 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
   4539 # On Suns, sometimes $CPP names a directory.
   4540 if test -n "$CPP" && test -d "$CPP"; then
   4541   CPP=
   4542 fi
   4543 if test -z "$CPP"; then
   4544   if test "${ac_cv_prog_CPP+set}" = set; then
   4545   echo $ECHO_N "(cached) $ECHO_C" >&6
   4546 else
   4547       # Double quotes because CPP needs to be expanded
   4548     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4549     do
   4550       ac_preproc_ok=false
   4551 for ac_c_preproc_warn_flag in '' yes
   4552 do
   4553   # Use a header file that comes with gcc, so configuring glibc
   4554   # with a fresh cross-compiler works.
   4555   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4556   # <limits.h> exists even on freestanding compilers.
   4557   # On the NeXT, cc -E runs the code through the compiler's parser,
   4558   # not just through cpp. "Syntax error" is here to catch this case.
   4559   cat >conftest.$ac_ext <<_ACEOF
   4560 /* confdefs.h.  */
   4561 _ACEOF
   4562 cat confdefs.h >>conftest.$ac_ext
   4563 cat >>conftest.$ac_ext <<_ACEOF
   4564 /* end confdefs.h.  */
   4565 #ifdef __STDC__
   4566 # include <limits.h>
   4567 #else
   4568 # include <assert.h>
   4569 #endif
   4570 		     Syntax error
   4571 _ACEOF
   4572 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4573 case "(($ac_try" in
   4574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4575   *) ac_try_echo=$ac_try;;
   4576 esac
   4577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4579   ac_status=$?
   4580   grep -v '^ *+' conftest.er1 >conftest.err
   4581   rm -f conftest.er1
   4582   cat conftest.err >&5
   4583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4584   (exit $ac_status); } >/dev/null && {
   4585 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4586 	 test ! -s conftest.err
   4587        }; then
   4588   :
   4589 else
   4590   echo "$as_me: failed program was:" >&5
   4591 sed 's/^/| /' conftest.$ac_ext >&5
   4592 
   4593   # Broken: fails on valid input.
   4594 continue
   4595 fi
   4596 
   4597 rm -f conftest.err conftest.$ac_ext
   4598 
   4599   # OK, works on sane cases.  Now check whether nonexistent headers
   4600   # can be detected and how.
   4601   cat >conftest.$ac_ext <<_ACEOF
   4602 /* confdefs.h.  */
   4603 _ACEOF
   4604 cat confdefs.h >>conftest.$ac_ext
   4605 cat >>conftest.$ac_ext <<_ACEOF
   4606 /* end confdefs.h.  */
   4607 #include <ac_nonexistent.h>
   4608 _ACEOF
   4609 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4610 case "(($ac_try" in
   4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4612   *) ac_try_echo=$ac_try;;
   4613 esac
   4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4616   ac_status=$?
   4617   grep -v '^ *+' conftest.er1 >conftest.err
   4618   rm -f conftest.er1
   4619   cat conftest.err >&5
   4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4621   (exit $ac_status); } >/dev/null && {
   4622 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4623 	 test ! -s conftest.err
   4624        }; then
   4625   # Broken: success on invalid input.
   4626 continue
   4627 else
   4628   echo "$as_me: failed program was:" >&5
   4629 sed 's/^/| /' conftest.$ac_ext >&5
   4630 
   4631   # Passes both tests.
   4632 ac_preproc_ok=:
   4633 break
   4634 fi
   4635 
   4636 rm -f conftest.err conftest.$ac_ext
   4637 
   4638 done
   4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4640 rm -f conftest.err conftest.$ac_ext
   4641 if $ac_preproc_ok; then
   4642   break
   4643 fi
   4644 
   4645     done
   4646     ac_cv_prog_CPP=$CPP
   4647 
   4648 fi
   4649   CPP=$ac_cv_prog_CPP
   4650 else
   4651   ac_cv_prog_CPP=$CPP
   4652 fi
   4653 { echo "$as_me:$LINENO: result: $CPP" >&5
   4654 echo "${ECHO_T}$CPP" >&6; }
   4655 ac_preproc_ok=false
   4656 for ac_c_preproc_warn_flag in '' yes
   4657 do
   4658   # Use a header file that comes with gcc, so configuring glibc
   4659   # with a fresh cross-compiler works.
   4660   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4661   # <limits.h> exists even on freestanding compilers.
   4662   # On the NeXT, cc -E runs the code through the compiler's parser,
   4663   # not just through cpp. "Syntax error" is here to catch this case.
   4664   cat >conftest.$ac_ext <<_ACEOF
   4665 /* confdefs.h.  */
   4666 _ACEOF
   4667 cat confdefs.h >>conftest.$ac_ext
   4668 cat >>conftest.$ac_ext <<_ACEOF
   4669 /* end confdefs.h.  */
   4670 #ifdef __STDC__
   4671 # include <limits.h>
   4672 #else
   4673 # include <assert.h>
   4674 #endif
   4675 		     Syntax error
   4676 _ACEOF
   4677 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4678 case "(($ac_try" in
   4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4680   *) ac_try_echo=$ac_try;;
   4681 esac
   4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4684   ac_status=$?
   4685   grep -v '^ *+' conftest.er1 >conftest.err
   4686   rm -f conftest.er1
   4687   cat conftest.err >&5
   4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4689   (exit $ac_status); } >/dev/null && {
   4690 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4691 	 test ! -s conftest.err
   4692        }; then
   4693   :
   4694 else
   4695   echo "$as_me: failed program was:" >&5
   4696 sed 's/^/| /' conftest.$ac_ext >&5
   4697 
   4698   # Broken: fails on valid input.
   4699 continue
   4700 fi
   4701 
   4702 rm -f conftest.err conftest.$ac_ext
   4703 
   4704   # OK, works on sane cases.  Now check whether nonexistent headers
   4705   # can be detected and how.
   4706   cat >conftest.$ac_ext <<_ACEOF
   4707 /* confdefs.h.  */
   4708 _ACEOF
   4709 cat confdefs.h >>conftest.$ac_ext
   4710 cat >>conftest.$ac_ext <<_ACEOF
   4711 /* end confdefs.h.  */
   4712 #include <ac_nonexistent.h>
   4713 _ACEOF
   4714 if { (ac_try="$ac_cpp conftest.$ac_ext"
   4715 case "(($ac_try" in
   4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4717   *) ac_try_echo=$ac_try;;
   4718 esac
   4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   4721   ac_status=$?
   4722   grep -v '^ *+' conftest.er1 >conftest.err
   4723   rm -f conftest.er1
   4724   cat conftest.err >&5
   4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4726   (exit $ac_status); } >/dev/null && {
   4727 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   4728 	 test ! -s conftest.err
   4729        }; then
   4730   # Broken: success on invalid input.
   4731 continue
   4732 else
   4733   echo "$as_me: failed program was:" >&5
   4734 sed 's/^/| /' conftest.$ac_ext >&5
   4735 
   4736   # Passes both tests.
   4737 ac_preproc_ok=:
   4738 break
   4739 fi
   4740 
   4741 rm -f conftest.err conftest.$ac_ext
   4742 
   4743 done
   4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4745 rm -f conftest.err conftest.$ac_ext
   4746 if $ac_preproc_ok; then
   4747   :
   4748 else
   4749   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
   4750 See \`config.log' for more details." >&5
   4751 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
   4752 See \`config.log' for more details." >&2;}
   4753    { (exit 1); exit 1; }; }
   4754 fi
   4755 
   4756 ac_ext=c
   4757 ac_cpp='$CPP $CPPFLAGS'
   4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4761 
   4762 
   4763 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
   4764 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
   4765 if test "${ac_cv_header_stdc+set}" = set; then
   4766   echo $ECHO_N "(cached) $ECHO_C" >&6
   4767 else
   4768   cat >conftest.$ac_ext <<_ACEOF
   4769 /* confdefs.h.  */
   4770 _ACEOF
   4771 cat confdefs.h >>conftest.$ac_ext
   4772 cat >>conftest.$ac_ext <<_ACEOF
   4773 /* end confdefs.h.  */
   4774 #include <stdlib.h>
   4775 #include <stdarg.h>
   4776 #include <string.h>
   4777 #include <float.h>
   4778 
   4779 int
   4780 main ()
   4781 {
   4782 
   4783   ;
   4784   return 0;
   4785 }
   4786 _ACEOF
   4787 rm -f conftest.$ac_objext
   4788 if { (ac_try="$ac_compile"
   4789 case "(($ac_try" in
   4790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4791   *) ac_try_echo=$ac_try;;
   4792 esac
   4793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4794   (eval "$ac_compile") 2>conftest.er1
   4795   ac_status=$?
   4796   grep -v '^ *+' conftest.er1 >conftest.err
   4797   rm -f conftest.er1
   4798   cat conftest.err >&5
   4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4800   (exit $ac_status); } && {
   4801 	 test -z "$ac_c_werror_flag" ||
   4802 	 test ! -s conftest.err
   4803        } && test -s conftest.$ac_objext; then
   4804   ac_cv_header_stdc=yes
   4805 else
   4806   echo "$as_me: failed program was:" >&5
   4807 sed 's/^/| /' conftest.$ac_ext >&5
   4808 
   4809 	ac_cv_header_stdc=no
   4810 fi
   4811 
   4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4813 
   4814 if test $ac_cv_header_stdc = yes; then
   4815   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4816   cat >conftest.$ac_ext <<_ACEOF
   4817 /* confdefs.h.  */
   4818 _ACEOF
   4819 cat confdefs.h >>conftest.$ac_ext
   4820 cat >>conftest.$ac_ext <<_ACEOF
   4821 /* end confdefs.h.  */
   4822 #include <string.h>
   4823 
   4824 _ACEOF
   4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4826   $EGREP "memchr" >/dev/null 2>&1; then
   4827   :
   4828 else
   4829   ac_cv_header_stdc=no
   4830 fi
   4831 rm -f conftest*
   4832 
   4833 fi
   4834 
   4835 if test $ac_cv_header_stdc = yes; then
   4836   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4837   cat >conftest.$ac_ext <<_ACEOF
   4838 /* confdefs.h.  */
   4839 _ACEOF
   4840 cat confdefs.h >>conftest.$ac_ext
   4841 cat >>conftest.$ac_ext <<_ACEOF
   4842 /* end confdefs.h.  */
   4843 #include <stdlib.h>
   4844 
   4845 _ACEOF
   4846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4847   $EGREP "free" >/dev/null 2>&1; then
   4848   :
   4849 else
   4850   ac_cv_header_stdc=no
   4851 fi
   4852 rm -f conftest*
   4853 
   4854 fi
   4855 
   4856 if test $ac_cv_header_stdc = yes; then
   4857   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4858   if test "$cross_compiling" = yes; then
   4859   :
   4860 else
   4861   cat >conftest.$ac_ext <<_ACEOF
   4862 /* confdefs.h.  */
   4863 _ACEOF
   4864 cat confdefs.h >>conftest.$ac_ext
   4865 cat >>conftest.$ac_ext <<_ACEOF
   4866 /* end confdefs.h.  */
   4867 #include <ctype.h>
   4868 #include <stdlib.h>
   4869 #if ((' ' & 0x0FF) == 0x020)
   4870 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4871 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4872 #else
   4873 # define ISLOWER(c) \
   4874 		   (('a' <= (c) && (c) <= 'i') \
   4875 		     || ('j' <= (c) && (c) <= 'r') \
   4876 		     || ('s' <= (c) && (c) <= 'z'))
   4877 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4878 #endif
   4879 
   4880 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4881 int
   4882 main ()
   4883 {
   4884   int i;
   4885   for (i = 0; i < 256; i++)
   4886     if (XOR (islower (i), ISLOWER (i))
   4887 	|| toupper (i) != TOUPPER (i))
   4888       return 2;
   4889   return 0;
   4890 }
   4891 _ACEOF
   4892 rm -f conftest$ac_exeext
   4893 if { (ac_try="$ac_link"
   4894 case "(($ac_try" in
   4895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4896   *) ac_try_echo=$ac_try;;
   4897 esac
   4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4899   (eval "$ac_link") 2>&5
   4900   ac_status=$?
   4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   4903   { (case "(($ac_try" in
   4904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4905   *) ac_try_echo=$ac_try;;
   4906 esac
   4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4908   (eval "$ac_try") 2>&5
   4909   ac_status=$?
   4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4911   (exit $ac_status); }; }; then
   4912   :
   4913 else
   4914   echo "$as_me: program exited with status $ac_status" >&5
   4915 echo "$as_me: failed program was:" >&5
   4916 sed 's/^/| /' conftest.$ac_ext >&5
   4917 
   4918 ( exit $ac_status )
   4919 ac_cv_header_stdc=no
   4920 fi
   4921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   4922 fi
   4923 
   4924 
   4925 fi
   4926 fi
   4927 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
   4928 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
   4929 if test $ac_cv_header_stdc = yes; then
   4930 
   4931 cat >>confdefs.h <<\_ACEOF
   4932 #define STDC_HEADERS 1
   4933 _ACEOF
   4934 
   4935 fi
   4936 
   4937 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4938 
   4939 
   4940 
   4941 
   4942 
   4943 
   4944 
   4945 
   4946 
   4947 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4948 		  inttypes.h stdint.h unistd.h
   4949 do
   4950 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   4952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   4953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   4954   echo $ECHO_N "(cached) $ECHO_C" >&6
   4955 else
   4956   cat >conftest.$ac_ext <<_ACEOF
   4957 /* confdefs.h.  */
   4958 _ACEOF
   4959 cat confdefs.h >>conftest.$ac_ext
   4960 cat >>conftest.$ac_ext <<_ACEOF
   4961 /* end confdefs.h.  */
   4962 $ac_includes_default
   4963 
   4964 #include <$ac_header>
   4965 _ACEOF
   4966 rm -f conftest.$ac_objext
   4967 if { (ac_try="$ac_compile"
   4968 case "(($ac_try" in
   4969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4970   *) ac_try_echo=$ac_try;;
   4971 esac
   4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   4973   (eval "$ac_compile") 2>conftest.er1
   4974   ac_status=$?
   4975   grep -v '^ *+' conftest.er1 >conftest.err
   4976   rm -f conftest.er1
   4977   cat conftest.err >&5
   4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4979   (exit $ac_status); } && {
   4980 	 test -z "$ac_c_werror_flag" ||
   4981 	 test ! -s conftest.err
   4982        } && test -s conftest.$ac_objext; then
   4983   eval "$as_ac_Header=yes"
   4984 else
   4985   echo "$as_me: failed program was:" >&5
   4986 sed 's/^/| /' conftest.$ac_ext >&5
   4987 
   4988 	eval "$as_ac_Header=no"
   4989 fi
   4990 
   4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4992 fi
   4993 ac_res=`eval echo '${'$as_ac_Header'}'`
   4994 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   4995 echo "${ECHO_T}$ac_res" >&6; }
   4996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   4997   cat >>confdefs.h <<_ACEOF
   4998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4999 _ACEOF
   5000 
   5001 fi
   5002 
   5003 done
   5004 
   5005 
   5006 
   5007 for ac_header in dlfcn.h
   5008 do
   5009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   5011   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   5012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   5013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   5014   echo $ECHO_N "(cached) $ECHO_C" >&6
   5015 fi
   5016 ac_res=`eval echo '${'$as_ac_Header'}'`
   5017 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   5018 echo "${ECHO_T}$ac_res" >&6; }
   5019 else
   5020   # Is the header compilable?
   5021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   5022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   5023 cat >conftest.$ac_ext <<_ACEOF
   5024 /* confdefs.h.  */
   5025 _ACEOF
   5026 cat confdefs.h >>conftest.$ac_ext
   5027 cat >>conftest.$ac_ext <<_ACEOF
   5028 /* end confdefs.h.  */
   5029 $ac_includes_default
   5030 #include <$ac_header>
   5031 _ACEOF
   5032 rm -f conftest.$ac_objext
   5033 if { (ac_try="$ac_compile"
   5034 case "(($ac_try" in
   5035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5036   *) ac_try_echo=$ac_try;;
   5037 esac
   5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5039   (eval "$ac_compile") 2>conftest.er1
   5040   ac_status=$?
   5041   grep -v '^ *+' conftest.er1 >conftest.err
   5042   rm -f conftest.er1
   5043   cat conftest.err >&5
   5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5045   (exit $ac_status); } && {
   5046 	 test -z "$ac_c_werror_flag" ||
   5047 	 test ! -s conftest.err
   5048        } && test -s conftest.$ac_objext; then
   5049   ac_header_compiler=yes
   5050 else
   5051   echo "$as_me: failed program was:" >&5
   5052 sed 's/^/| /' conftest.$ac_ext >&5
   5053 
   5054 	ac_header_compiler=no
   5055 fi
   5056 
   5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   5059 echo "${ECHO_T}$ac_header_compiler" >&6; }
   5060 
   5061 # Is the header present?
   5062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   5063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   5064 cat >conftest.$ac_ext <<_ACEOF
   5065 /* confdefs.h.  */
   5066 _ACEOF
   5067 cat confdefs.h >>conftest.$ac_ext
   5068 cat >>conftest.$ac_ext <<_ACEOF
   5069 /* end confdefs.h.  */
   5070 #include <$ac_header>
   5071 _ACEOF
   5072 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5073 case "(($ac_try" in
   5074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5075   *) ac_try_echo=$ac_try;;
   5076 esac
   5077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5079   ac_status=$?
   5080   grep -v '^ *+' conftest.er1 >conftest.err
   5081   rm -f conftest.er1
   5082   cat conftest.err >&5
   5083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5084   (exit $ac_status); } >/dev/null && {
   5085 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   5086 	 test ! -s conftest.err
   5087        }; then
   5088   ac_header_preproc=yes
   5089 else
   5090   echo "$as_me: failed program was:" >&5
   5091 sed 's/^/| /' conftest.$ac_ext >&5
   5092 
   5093   ac_header_preproc=no
   5094 fi
   5095 
   5096 rm -f conftest.err conftest.$ac_ext
   5097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   5098 echo "${ECHO_T}$ac_header_preproc" >&6; }
   5099 
   5100 # So?  What about this header?
   5101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   5102   yes:no: )
   5103     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   5104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   5105     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   5106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   5107     ac_header_preproc=yes
   5108     ;;
   5109   no:yes:* )
   5110     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   5111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   5112     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   5113 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   5114     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   5115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   5116     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   5117 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   5118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   5119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   5120     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   5121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   5122 
   5123     ;;
   5124 esac
   5125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   5127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   5128   echo $ECHO_N "(cached) $ECHO_C" >&6
   5129 else
   5130   eval "$as_ac_Header=\$ac_header_preproc"
   5131 fi
   5132 ac_res=`eval echo '${'$as_ac_Header'}'`
   5133 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   5134 echo "${ECHO_T}$ac_res" >&6; }
   5135 
   5136 fi
   5137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   5138   cat >>confdefs.h <<_ACEOF
   5139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5140 _ACEOF
   5141 
   5142 fi
   5143 
   5144 done
   5145 
   5146 ac_ext=cpp
   5147 ac_cpp='$CXXCPP $CPPFLAGS'
   5148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5151 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
   5152 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
   5153 if test -z "$CXXCPP"; then
   5154   if test "${ac_cv_prog_CXXCPP+set}" = set; then
   5155   echo $ECHO_N "(cached) $ECHO_C" >&6
   5156 else
   5157       # Double quotes because CXXCPP needs to be expanded
   5158     for CXXCPP in "$CXX -E" "/lib/cpp"
   5159     do
   5160       ac_preproc_ok=false
   5161 for ac_cxx_preproc_warn_flag in '' yes
   5162 do
   5163   # Use a header file that comes with gcc, so configuring glibc
   5164   # with a fresh cross-compiler works.
   5165   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5166   # <limits.h> exists even on freestanding compilers.
   5167   # On the NeXT, cc -E runs the code through the compiler's parser,
   5168   # not just through cpp. "Syntax error" is here to catch this case.
   5169   cat >conftest.$ac_ext <<_ACEOF
   5170 /* confdefs.h.  */
   5171 _ACEOF
   5172 cat confdefs.h >>conftest.$ac_ext
   5173 cat >>conftest.$ac_ext <<_ACEOF
   5174 /* end confdefs.h.  */
   5175 #ifdef __STDC__
   5176 # include <limits.h>
   5177 #else
   5178 # include <assert.h>
   5179 #endif
   5180 		     Syntax error
   5181 _ACEOF
   5182 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5183 case "(($ac_try" in
   5184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5185   *) ac_try_echo=$ac_try;;
   5186 esac
   5187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5189   ac_status=$?
   5190   grep -v '^ *+' conftest.er1 >conftest.err
   5191   rm -f conftest.er1
   5192   cat conftest.err >&5
   5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5194   (exit $ac_status); } >/dev/null && {
   5195 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   5196 	 test ! -s conftest.err
   5197        }; then
   5198   :
   5199 else
   5200   echo "$as_me: failed program was:" >&5
   5201 sed 's/^/| /' conftest.$ac_ext >&5
   5202 
   5203   # Broken: fails on valid input.
   5204 continue
   5205 fi
   5206 
   5207 rm -f conftest.err conftest.$ac_ext
   5208 
   5209   # OK, works on sane cases.  Now check whether nonexistent headers
   5210   # can be detected and how.
   5211   cat >conftest.$ac_ext <<_ACEOF
   5212 /* confdefs.h.  */
   5213 _ACEOF
   5214 cat confdefs.h >>conftest.$ac_ext
   5215 cat >>conftest.$ac_ext <<_ACEOF
   5216 /* end confdefs.h.  */
   5217 #include <ac_nonexistent.h>
   5218 _ACEOF
   5219 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5220 case "(($ac_try" in
   5221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5222   *) ac_try_echo=$ac_try;;
   5223 esac
   5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5226   ac_status=$?
   5227   grep -v '^ *+' conftest.er1 >conftest.err
   5228   rm -f conftest.er1
   5229   cat conftest.err >&5
   5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5231   (exit $ac_status); } >/dev/null && {
   5232 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   5233 	 test ! -s conftest.err
   5234        }; then
   5235   # Broken: success on invalid input.
   5236 continue
   5237 else
   5238   echo "$as_me: failed program was:" >&5
   5239 sed 's/^/| /' conftest.$ac_ext >&5
   5240 
   5241   # Passes both tests.
   5242 ac_preproc_ok=:
   5243 break
   5244 fi
   5245 
   5246 rm -f conftest.err conftest.$ac_ext
   5247 
   5248 done
   5249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5250 rm -f conftest.err conftest.$ac_ext
   5251 if $ac_preproc_ok; then
   5252   break
   5253 fi
   5254 
   5255     done
   5256     ac_cv_prog_CXXCPP=$CXXCPP
   5257 
   5258 fi
   5259   CXXCPP=$ac_cv_prog_CXXCPP
   5260 else
   5261   ac_cv_prog_CXXCPP=$CXXCPP
   5262 fi
   5263 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
   5264 echo "${ECHO_T}$CXXCPP" >&6; }
   5265 ac_preproc_ok=false
   5266 for ac_cxx_preproc_warn_flag in '' yes
   5267 do
   5268   # Use a header file that comes with gcc, so configuring glibc
   5269   # with a fresh cross-compiler works.
   5270   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5271   # <limits.h> exists even on freestanding compilers.
   5272   # On the NeXT, cc -E runs the code through the compiler's parser,
   5273   # not just through cpp. "Syntax error" is here to catch this case.
   5274   cat >conftest.$ac_ext <<_ACEOF
   5275 /* confdefs.h.  */
   5276 _ACEOF
   5277 cat confdefs.h >>conftest.$ac_ext
   5278 cat >>conftest.$ac_ext <<_ACEOF
   5279 /* end confdefs.h.  */
   5280 #ifdef __STDC__
   5281 # include <limits.h>
   5282 #else
   5283 # include <assert.h>
   5284 #endif
   5285 		     Syntax error
   5286 _ACEOF
   5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5288 case "(($ac_try" in
   5289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5290   *) ac_try_echo=$ac_try;;
   5291 esac
   5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5293   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5294   ac_status=$?
   5295   grep -v '^ *+' conftest.er1 >conftest.err
   5296   rm -f conftest.er1
   5297   cat conftest.err >&5
   5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5299   (exit $ac_status); } >/dev/null && {
   5300 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   5301 	 test ! -s conftest.err
   5302        }; then
   5303   :
   5304 else
   5305   echo "$as_me: failed program was:" >&5
   5306 sed 's/^/| /' conftest.$ac_ext >&5
   5307 
   5308   # Broken: fails on valid input.
   5309 continue
   5310 fi
   5311 
   5312 rm -f conftest.err conftest.$ac_ext
   5313 
   5314   # OK, works on sane cases.  Now check whether nonexistent headers
   5315   # can be detected and how.
   5316   cat >conftest.$ac_ext <<_ACEOF
   5317 /* confdefs.h.  */
   5318 _ACEOF
   5319 cat confdefs.h >>conftest.$ac_ext
   5320 cat >>conftest.$ac_ext <<_ACEOF
   5321 /* end confdefs.h.  */
   5322 #include <ac_nonexistent.h>
   5323 _ACEOF
   5324 if { (ac_try="$ac_cpp conftest.$ac_ext"
   5325 case "(($ac_try" in
   5326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5327   *) ac_try_echo=$ac_try;;
   5328 esac
   5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   5331   ac_status=$?
   5332   grep -v '^ *+' conftest.er1 >conftest.err
   5333   rm -f conftest.er1
   5334   cat conftest.err >&5
   5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5336   (exit $ac_status); } >/dev/null && {
   5337 	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
   5338 	 test ! -s conftest.err
   5339        }; then
   5340   # Broken: success on invalid input.
   5341 continue
   5342 else
   5343   echo "$as_me: failed program was:" >&5
   5344 sed 's/^/| /' conftest.$ac_ext >&5
   5345 
   5346   # Passes both tests.
   5347 ac_preproc_ok=:
   5348 break
   5349 fi
   5350 
   5351 rm -f conftest.err conftest.$ac_ext
   5352 
   5353 done
   5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5355 rm -f conftest.err conftest.$ac_ext
   5356 if $ac_preproc_ok; then
   5357   :
   5358 else
   5359   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
   5360 See \`config.log' for more details." >&5
   5361 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
   5362 See \`config.log' for more details." >&2;}
   5363    { (exit 1); exit 1; }; }
   5364 fi
   5365 
   5366 ac_ext=cpp
   5367 ac_cpp='$CXXCPP $CPPFLAGS'
   5368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5371 
   5372 
   5373 ac_ext=f
   5374 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
   5375 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5376 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
   5377 if test -n "$ac_tool_prefix"; then
   5378   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
   5379   do
   5380     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   5381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   5382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5384 if test "${ac_cv_prog_F77+set}" = set; then
   5385   echo $ECHO_N "(cached) $ECHO_C" >&6
   5386 else
   5387   if test -n "$F77"; then
   5388   ac_cv_prog_F77="$F77" # Let the user override the test.
   5389 else
   5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5391 for as_dir in $PATH
   5392 do
   5393   IFS=$as_save_IFS
   5394   test -z "$as_dir" && as_dir=.
   5395   for ac_exec_ext in '' $ac_executable_extensions; do
   5396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5397     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
   5398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5399     break 2
   5400   fi
   5401 done
   5402 done
   5403 IFS=$as_save_IFS
   5404 
   5405 fi
   5406 fi
   5407 F77=$ac_cv_prog_F77
   5408 if test -n "$F77"; then
   5409   { echo "$as_me:$LINENO: result: $F77" >&5
   5410 echo "${ECHO_T}$F77" >&6; }
   5411 else
   5412   { echo "$as_me:$LINENO: result: no" >&5
   5413 echo "${ECHO_T}no" >&6; }
   5414 fi
   5415 
   5416 
   5417     test -n "$F77" && break
   5418   done
   5419 fi
   5420 if test -z "$F77"; then
   5421   ac_ct_F77=$F77
   5422   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
   5423 do
   5424   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5425 set dummy $ac_prog; ac_word=$2
   5426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5428 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
   5429   echo $ECHO_N "(cached) $ECHO_C" >&6
   5430 else
   5431   if test -n "$ac_ct_F77"; then
   5432   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
   5433 else
   5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5435 for as_dir in $PATH
   5436 do
   5437   IFS=$as_save_IFS
   5438   test -z "$as_dir" && as_dir=.
   5439   for ac_exec_ext in '' $ac_executable_extensions; do
   5440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5441     ac_cv_prog_ac_ct_F77="$ac_prog"
   5442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5443     break 2
   5444   fi
   5445 done
   5446 done
   5447 IFS=$as_save_IFS
   5448 
   5449 fi
   5450 fi
   5451 ac_ct_F77=$ac_cv_prog_ac_ct_F77
   5452 if test -n "$ac_ct_F77"; then
   5453   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
   5454 echo "${ECHO_T}$ac_ct_F77" >&6; }
   5455 else
   5456   { echo "$as_me:$LINENO: result: no" >&5
   5457 echo "${ECHO_T}no" >&6; }
   5458 fi
   5459 
   5460 
   5461   test -n "$ac_ct_F77" && break
   5462 done
   5463 
   5464   if test "x$ac_ct_F77" = x; then
   5465     F77=""
   5466   else
   5467     case $cross_compiling:$ac_tool_warned in
   5468 yes:)
   5469 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   5470 whose name does not start with the host triplet.  If you think this
   5471 configuration is useful to you, please write to autoconf@gnu.org." >&5
   5472 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   5473 whose name does not start with the host triplet.  If you think this
   5474 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
   5475 ac_tool_warned=yes ;;
   5476 esac
   5477     F77=$ac_ct_F77
   5478   fi
   5479 fi
   5480 
   5481 
   5482 # Provide some information about the compiler.
   5483 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
   5484 ac_compiler=`set X $ac_compile; echo $2`
   5485 { (ac_try="$ac_compiler --version >&5"
   5486 case "(($ac_try" in
   5487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5488   *) ac_try_echo=$ac_try;;
   5489 esac
   5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5491   (eval "$ac_compiler --version >&5") 2>&5
   5492   ac_status=$?
   5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5494   (exit $ac_status); }
   5495 { (ac_try="$ac_compiler -v >&5"
   5496 case "(($ac_try" in
   5497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5498   *) ac_try_echo=$ac_try;;
   5499 esac
   5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5501   (eval "$ac_compiler -v >&5") 2>&5
   5502   ac_status=$?
   5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5504   (exit $ac_status); }
   5505 { (ac_try="$ac_compiler -V >&5"
   5506 case "(($ac_try" in
   5507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5508   *) ac_try_echo=$ac_try;;
   5509 esac
   5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5511   (eval "$ac_compiler -V >&5") 2>&5
   5512   ac_status=$?
   5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5514   (exit $ac_status); }
   5515 rm -f a.out
   5516 
   5517 # If we don't use `.F' as extension, the preprocessor is not run on the
   5518 # input file.  (Note that this only needs to work for GNU compilers.)
   5519 ac_save_ext=$ac_ext
   5520 ac_ext=F
   5521 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
   5522 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
   5523 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
   5524   echo $ECHO_N "(cached) $ECHO_C" >&6
   5525 else
   5526   cat >conftest.$ac_ext <<_ACEOF
   5527       program main
   5528 #ifndef __GNUC__
   5529        choke me
   5530 #endif
   5531 
   5532       end
   5533 _ACEOF
   5534 rm -f conftest.$ac_objext
   5535 if { (ac_try="$ac_compile"
   5536 case "(($ac_try" in
   5537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5538   *) ac_try_echo=$ac_try;;
   5539 esac
   5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5541   (eval "$ac_compile") 2>conftest.er1
   5542   ac_status=$?
   5543   grep -v '^ *+' conftest.er1 >conftest.err
   5544   rm -f conftest.er1
   5545   cat conftest.err >&5
   5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5547   (exit $ac_status); } && {
   5548 	 test -z "$ac_f77_werror_flag" ||
   5549 	 test ! -s conftest.err
   5550        } && test -s conftest.$ac_objext; then
   5551   ac_compiler_gnu=yes
   5552 else
   5553   echo "$as_me: failed program was:" >&5
   5554 sed 's/^/| /' conftest.$ac_ext >&5
   5555 
   5556 	ac_compiler_gnu=no
   5557 fi
   5558 
   5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5560 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
   5561 
   5562 fi
   5563 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
   5564 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
   5565 ac_ext=$ac_save_ext
   5566 ac_test_FFLAGS=${FFLAGS+set}
   5567 ac_save_FFLAGS=$FFLAGS
   5568 FFLAGS=
   5569 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
   5570 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
   5571 if test "${ac_cv_prog_f77_g+set}" = set; then
   5572   echo $ECHO_N "(cached) $ECHO_C" >&6
   5573 else
   5574   FFLAGS=-g
   5575 cat >conftest.$ac_ext <<_ACEOF
   5576       program main
   5577 
   5578       end
   5579 _ACEOF
   5580 rm -f conftest.$ac_objext
   5581 if { (ac_try="$ac_compile"
   5582 case "(($ac_try" in
   5583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   5584   *) ac_try_echo=$ac_try;;
   5585 esac
   5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   5587   (eval "$ac_compile") 2>conftest.er1
   5588   ac_status=$?
   5589   grep -v '^ *+' conftest.er1 >conftest.err
   5590   rm -f conftest.er1
   5591   cat conftest.err >&5
   5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5593   (exit $ac_status); } && {
   5594 	 test -z "$ac_f77_werror_flag" ||
   5595 	 test ! -s conftest.err
   5596        } && test -s conftest.$ac_objext; then
   5597   ac_cv_prog_f77_g=yes
   5598 else
   5599   echo "$as_me: failed program was:" >&5
   5600 sed 's/^/| /' conftest.$ac_ext >&5
   5601 
   5602 	ac_cv_prog_f77_g=no
   5603 fi
   5604 
   5605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5606 
   5607 fi
   5608 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
   5609 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
   5610 if test "$ac_test_FFLAGS" = set; then
   5611   FFLAGS=$ac_save_FFLAGS
   5612 elif test $ac_cv_prog_f77_g = yes; then
   5613   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
   5614     FFLAGS="-g -O2"
   5615   else
   5616     FFLAGS="-g"
   5617   fi
   5618 else
   5619   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
   5620     FFLAGS="-O2"
   5621   else
   5622     FFLAGS=
   5623   fi
   5624 fi
   5625 
   5626 G77=`test $ac_compiler_gnu = yes && echo yes`
   5627 ac_ext=c
   5628 ac_cpp='$CPP $CPPFLAGS'
   5629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5632 
   5633 
   5634 
   5635 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
   5636 
   5637 # find the maximum length of command line arguments
   5638 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
   5639 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
   5640 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
   5641   echo $ECHO_N "(cached) $ECHO_C" >&6
   5642 else
   5643     i=0
   5644   testring="ABCD"
   5645 
   5646   case $build_os in
   5647   msdosdjgpp*)
   5648     # On DJGPP, this test can blow up pretty badly due to problems in libc
   5649     # (any single argument exceeding 2000 bytes causes a buffer overrun
   5650     # during glob expansion).  Even if it were fixed, the result of this
   5651     # check would be larger than it should be.
   5652     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
   5653     ;;
   5654 
   5655   gnu*)
   5656     # Under GNU Hurd, this test is not required because there is
   5657     # no limit to the length of command line arguments.
   5658     # Libtool will interpret -1 as no limit whatsoever
   5659     lt_cv_sys_max_cmd_len=-1;
   5660     ;;
   5661 
   5662   cygwin* | mingw*)
   5663     # On Win9x/ME, this test blows up -- it succeeds, but takes
   5664     # about 5 minutes as the teststring grows exponentially.
   5665     # Worse, since 9x/ME are not pre-emptively multitasking,
   5666     # you end up with a "frozen" computer, even though with patience
   5667     # the test eventually succeeds (with a max line length of 256k).
   5668     # Instead, let's just punt: use the minimum linelength reported by
   5669     # all of the supported platforms: 8192 (on NT/2K/XP).
   5670     lt_cv_sys_max_cmd_len=8192;
   5671     ;;
   5672 
   5673   amigaos* | morphos*)
   5674     # On AmigaOS with pdksh, this test takes hours, literally.
   5675     # So we just punt and use a minimum line length of 8192.
   5676     lt_cv_sys_max_cmd_len=8192;
   5677     ;;
   5678 
   5679  *)
   5680     # If test is not a shell built-in, we'll probably end up computing a
   5681     # maximum length that is only half of the actual maximum length, but
   5682     # we can't tell.
   5683     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
   5684 	       = "XX$testring") >/dev/null 2>&1 &&
   5685 	    new_result=`expr "X$testring" : ".*" 2>&1` &&
   5686 	    lt_cv_sys_max_cmd_len=$new_result &&
   5687 	    test $i != 17 # 1/2 MB should be enough
   5688     do
   5689       i=`expr $i + 1`
   5690       testring=$testring$testring
   5691     done
   5692     testring=
   5693     # Add a significant safety factor because C++ compilers can tack on massive
   5694     # amounts of additional arguments before passing them to the linker.
   5695     # It appears as though 1/2 is a usable value.
   5696     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
   5697     ;;
   5698   esac
   5699 
   5700 fi
   5701 
   5702 if test -n $lt_cv_sys_max_cmd_len ; then
   5703   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
   5704 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
   5705 else
   5706   { echo "$as_me:$LINENO: result: none" >&5
   5707 echo "${ECHO_T}none" >&6; }
   5708 fi
   5709 
   5710 
   5711 
   5712 
   5713 # Check for command to grab the raw symbol name followed by C symbol from nm.
   5714 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
   5715 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
   5716 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
   5717   echo $ECHO_N "(cached) $ECHO_C" >&6
   5718 else
   5719 
   5720 # These are sane defaults that work on at least a few old systems.
   5721 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
   5722 
   5723 # Character class describing NM global symbol codes.
   5724 symcode='[BCDEGRST]'
   5725 
   5726 # Regexp to match symbols that can be accessed directly from C.
   5727 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
   5728 
   5729 # Transform the above into a raw symbol and a C symbol.
   5730 symxfrm='\1 \2\3 \3'
   5731 
   5732 # Transform an extracted symbol line into a proper C declaration
   5733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
   5734 
   5735 # Transform an extracted symbol line into symbol name and symbol address
   5736 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   5737 
   5738 # Define system-specific variables.
   5739 case $host_os in
   5740 aix*)
   5741   symcode='[BCDT]'
   5742   ;;
   5743 cygwin* | mingw* | pw32*)
   5744   symcode='[ABCDGISTW]'
   5745   ;;
   5746 hpux*) # Its linker distinguishes data from code symbols
   5747   if test "$host_cpu" = ia64; then
   5748     symcode='[ABCDEGRST]'
   5749   fi
   5750   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
   5751   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
   5752   ;;
   5753 irix* | nonstopux*)
   5754   symcode='[BCDEGRST]'
   5755   ;;
   5756 osf*)
   5757   symcode='[BCDEGQRST]'
   5758   ;;
   5759 solaris* | sysv5*)
   5760   symcode='[BDRT]'
   5761   ;;
   5762 sysv4)
   5763   symcode='[DFNSTU]'
   5764   ;;
   5765 esac
   5766 
   5767 # Handle CRLF in mingw tool chain
   5768 opt_cr=
   5769 case $build_os in
   5770 mingw*)
   5771   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
   5772   ;;
   5773 esac
   5774 
   5775 # If we're using GNU nm, then use its standard symbol codes.
   5776 case `$NM -V 2>&1` in
   5777 *GNU* | *'with BFD'*)
   5778   symcode='[ABCDGIRSTW]' ;;
   5779 esac
   5780 
   5781 # Try without a prefix undercore, then with it.
   5782 for ac_symprfx in "" "_"; do
   5783 
   5784   # Write the raw and C identifiers.
   5785   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
   5786 
   5787   # Check to see that the pipe works correctly.
   5788   pipe_works=no
   5789 
   5790   rm -f conftest*
   5791   cat > conftest.$ac_ext <<EOF
   5792 #ifdef __cplusplus
   5793 extern "C" {
   5794 #endif
   5795 char nm_test_var;
   5796 void nm_test_func(){}
   5797 #ifdef __cplusplus
   5798 }
   5799 #endif
   5800 int main(){nm_test_var='a';nm_test_func();return(0);}
   5801 EOF
   5802 
   5803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   5804   (eval $ac_compile) 2>&5
   5805   ac_status=$?
   5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5807   (exit $ac_status); }; then
   5808     # Now try to grab the symbols.
   5809     nlist=conftest.nm
   5810     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
   5811   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
   5812   ac_status=$?
   5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5814   (exit $ac_status); } && test -s "$nlist"; then
   5815       # Try sorting and uniquifying the output.
   5816       if sort "$nlist" | uniq > "$nlist"T; then
   5817 	mv -f "$nlist"T "$nlist"
   5818       else
   5819 	rm -f "$nlist"T
   5820       fi
   5821 
   5822       # Make sure that we snagged all the symbols we need.
   5823       if grep ' nm_test_var$' "$nlist" >/dev/null; then
   5824 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
   5825 	  cat <<EOF > conftest.$ac_ext
   5826 #ifdef __cplusplus
   5827 extern "C" {
   5828 #endif
   5829 
   5830 EOF
   5831 	  # Now generate the symbol file.
   5832 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
   5833 
   5834 	  cat <<EOF >> conftest.$ac_ext
   5835 #if defined (__STDC__) && __STDC__
   5836 # define lt_ptr_t void *
   5837 #else
   5838 # define lt_ptr_t char *
   5839 # define const
   5840 #endif
   5841 
   5842 /* The mapping between symbol names and symbols. */
   5843 const struct {
   5844   const char *name;
   5845   lt_ptr_t address;
   5846 }
   5847 lt_preloaded_symbols[] =
   5848 {
   5849 EOF
   5850 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
   5851 	  cat <<\EOF >> conftest.$ac_ext
   5852   {0, (lt_ptr_t) 0}
   5853 };
   5854 
   5855 #ifdef __cplusplus
   5856 }
   5857 #endif
   5858 EOF
   5859 	  # Now try linking the two files.
   5860 	  mv conftest.$ac_objext conftstm.$ac_objext
   5861 	  lt_save_LIBS="$LIBS"
   5862 	  lt_save_CFLAGS="$CFLAGS"
   5863 	  LIBS="conftstm.$ac_objext"
   5864 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
   5865 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   5866   (eval $ac_link) 2>&5
   5867   ac_status=$?
   5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   5869   (exit $ac_status); } && test -s conftest${ac_exeext}; then
   5870 	    pipe_works=yes
   5871 	  fi
   5872 	  LIBS="$lt_save_LIBS"
   5873 	  CFLAGS="$lt_save_CFLAGS"
   5874 	else
   5875 	  echo "cannot find nm_test_func in $nlist" >&5
   5876 	fi
   5877       else
   5878 	echo "cannot find nm_test_var in $nlist" >&5
   5879       fi
   5880     else
   5881       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
   5882     fi
   5883   else
   5884     echo "$progname: failed program was:" >&5
   5885     cat conftest.$ac_ext >&5
   5886   fi
   5887   rm -f conftest* conftst*
   5888 
   5889   # Do not use the global_symbol_pipe unless it works.
   5890   if test "$pipe_works" = yes; then
   5891     break
   5892   else
   5893     lt_cv_sys_global_symbol_pipe=
   5894   fi
   5895 done
   5896 
   5897 fi
   5898 
   5899 if test -z "$lt_cv_sys_global_symbol_pipe"; then
   5900   lt_cv_sys_global_symbol_to_cdecl=
   5901 fi
   5902 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
   5903   { echo "$as_me:$LINENO: result: failed" >&5
   5904 echo "${ECHO_T}failed" >&6; }
   5905 else
   5906   { echo "$as_me:$LINENO: result: ok" >&5
   5907 echo "${ECHO_T}ok" >&6; }
   5908 fi
   5909 
   5910 { echo "$as_me:$LINENO: checking for objdir" >&5
   5911 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   5912 if test "${lt_cv_objdir+set}" = set; then
   5913   echo $ECHO_N "(cached) $ECHO_C" >&6
   5914 else
   5915   rm -f .libs 2>/dev/null
   5916 mkdir .libs 2>/dev/null
   5917 if test -d .libs; then
   5918   lt_cv_objdir=.libs
   5919 else
   5920   # MS-DOS does not allow filenames that begin with a dot.
   5921   lt_cv_objdir=_libs
   5922 fi
   5923 rmdir .libs 2>/dev/null
   5924 fi
   5925 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
   5926 echo "${ECHO_T}$lt_cv_objdir" >&6; }
   5927 objdir=$lt_cv_objdir
   5928 
   5929 
   5930 
   5931 
   5932 
   5933 case $host_os in
   5934 aix3*)
   5935   # AIX sometimes has problems with the GCC collect2 program.  For some
   5936   # reason, if we set the COLLECT_NAMES environment variable, the problems
   5937   # vanish in a puff of smoke.
   5938   if test "X${COLLECT_NAMES+set}" != Xset; then
   5939     COLLECT_NAMES=
   5940     export COLLECT_NAMES
   5941   fi
   5942   ;;
   5943 esac
   5944 
   5945 # Sed substitution that helps us do robust quoting.  It backslashifies
   5946 # metacharacters that are still active within double-quoted strings.
   5947 Xsed='sed -e s/^X//'
   5948 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
   5949 
   5950 # Same as above, but do not quote variable references.
   5951 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
   5952 
   5953 # Sed substitution to delay expansion of an escaped shell variable in a
   5954 # double_quote_subst'ed string.
   5955 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   5956 
   5957 # Sed substitution to avoid accidental globbing in evaled expressions
   5958 no_glob_subst='s/\*/\\\*/g'
   5959 
   5960 # Constants:
   5961 rm="rm -f"
   5962 
   5963 # Global variables:
   5964 default_ofile=libtool
   5965 can_build_shared=yes
   5966 
   5967 # All known linkers require a `.a' archive for static linking (except M$VC,
   5968 # which needs '.lib').
   5969 libext=a
   5970 ltmain="$ac_aux_dir/ltmain.sh"
   5971 ofile="$default_ofile"
   5972 with_gnu_ld="$lt_cv_prog_gnu_ld"
   5973 
   5974 if test -n "$ac_tool_prefix"; then
   5975   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   5976 set dummy ${ac_tool_prefix}ar; ac_word=$2
   5977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   5978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   5979 if test "${ac_cv_prog_AR+set}" = set; then
   5980   echo $ECHO_N "(cached) $ECHO_C" >&6
   5981 else
   5982   if test -n "$AR"; then
   5983   ac_cv_prog_AR="$AR" # Let the user override the test.
   5984 else
   5985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5986 for as_dir in $PATH
   5987 do
   5988   IFS=$as_save_IFS
   5989   test -z "$as_dir" && as_dir=.
   5990   for ac_exec_ext in '' $ac_executable_extensions; do
   5991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5992     ac_cv_prog_AR="${ac_tool_prefix}ar"
   5993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   5994     break 2
   5995   fi
   5996 done
   5997 done
   5998 IFS=$as_save_IFS
   5999 
   6000 fi
   6001 fi
   6002 AR=$ac_cv_prog_AR
   6003 if test -n "$AR"; then
   6004   { echo "$as_me:$LINENO: result: $AR" >&5
   6005 echo "${ECHO_T}$AR" >&6; }
   6006 else
   6007   { echo "$as_me:$LINENO: result: no" >&5
   6008 echo "${ECHO_T}no" >&6; }
   6009 fi
   6010 
   6011 
   6012 fi
   6013 if test -z "$ac_cv_prog_AR"; then
   6014   ac_ct_AR=$AR
   6015   # Extract the first word of "ar", so it can be a program name with args.
   6016 set dummy ar; ac_word=$2
   6017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6019 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
   6020   echo $ECHO_N "(cached) $ECHO_C" >&6
   6021 else
   6022   if test -n "$ac_ct_AR"; then
   6023   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6024 else
   6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6026 for as_dir in $PATH
   6027 do
   6028   IFS=$as_save_IFS
   6029   test -z "$as_dir" && as_dir=.
   6030   for ac_exec_ext in '' $ac_executable_extensions; do
   6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6032     ac_cv_prog_ac_ct_AR="ar"
   6033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6034     break 2
   6035   fi
   6036 done
   6037 done
   6038 IFS=$as_save_IFS
   6039 
   6040 fi
   6041 fi
   6042 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6043 if test -n "$ac_ct_AR"; then
   6044   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
   6045 echo "${ECHO_T}$ac_ct_AR" >&6; }
   6046 else
   6047   { echo "$as_me:$LINENO: result: no" >&5
   6048 echo "${ECHO_T}no" >&6; }
   6049 fi
   6050 
   6051   if test "x$ac_ct_AR" = x; then
   6052     AR="false"
   6053   else
   6054     case $cross_compiling:$ac_tool_warned in
   6055 yes:)
   6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6057 whose name does not start with the host triplet.  If you think this
   6058 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6059 echo "$as_me: 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." >&2;}
   6062 ac_tool_warned=yes ;;
   6063 esac
   6064     AR=$ac_ct_AR
   6065   fi
   6066 else
   6067   AR="$ac_cv_prog_AR"
   6068 fi
   6069 
   6070 if test -n "$ac_tool_prefix"; then
   6071   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6075 if test "${ac_cv_prog_RANLIB+set}" = set; then
   6076   echo $ECHO_N "(cached) $ECHO_C" >&6
   6077 else
   6078   if test -n "$RANLIB"; then
   6079   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6080 else
   6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6082 for as_dir in $PATH
   6083 do
   6084   IFS=$as_save_IFS
   6085   test -z "$as_dir" && as_dir=.
   6086   for ac_exec_ext in '' $ac_executable_extensions; do
   6087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6088     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6090     break 2
   6091   fi
   6092 done
   6093 done
   6094 IFS=$as_save_IFS
   6095 
   6096 fi
   6097 fi
   6098 RANLIB=$ac_cv_prog_RANLIB
   6099 if test -n "$RANLIB"; then
   6100   { echo "$as_me:$LINENO: result: $RANLIB" >&5
   6101 echo "${ECHO_T}$RANLIB" >&6; }
   6102 else
   6103   { echo "$as_me:$LINENO: result: no" >&5
   6104 echo "${ECHO_T}no" >&6; }
   6105 fi
   6106 
   6107 
   6108 fi
   6109 if test -z "$ac_cv_prog_RANLIB"; then
   6110   ac_ct_RANLIB=$RANLIB
   6111   # Extract the first word of "ranlib", so it can be a program name with args.
   6112 set dummy ranlib; ac_word=$2
   6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6115 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
   6116   echo $ECHO_N "(cached) $ECHO_C" >&6
   6117 else
   6118   if test -n "$ac_ct_RANLIB"; then
   6119   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6120 else
   6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6122 for as_dir in $PATH
   6123 do
   6124   IFS=$as_save_IFS
   6125   test -z "$as_dir" && as_dir=.
   6126   for ac_exec_ext in '' $ac_executable_extensions; do
   6127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6128     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6130     break 2
   6131   fi
   6132 done
   6133 done
   6134 IFS=$as_save_IFS
   6135 
   6136 fi
   6137 fi
   6138 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6139 if test -n "$ac_ct_RANLIB"; then
   6140   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
   6141 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
   6142 else
   6143   { echo "$as_me:$LINENO: result: no" >&5
   6144 echo "${ECHO_T}no" >&6; }
   6145 fi
   6146 
   6147   if test "x$ac_ct_RANLIB" = x; then
   6148     RANLIB=":"
   6149   else
   6150     case $cross_compiling:$ac_tool_warned in
   6151 yes:)
   6152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6153 whose name does not start with the host triplet.  If you think this
   6154 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6155 echo "$as_me: 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." >&2;}
   6158 ac_tool_warned=yes ;;
   6159 esac
   6160     RANLIB=$ac_ct_RANLIB
   6161   fi
   6162 else
   6163   RANLIB="$ac_cv_prog_RANLIB"
   6164 fi
   6165 
   6166 if test -n "$ac_tool_prefix"; then
   6167   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   6168 set dummy ${ac_tool_prefix}strip; ac_word=$2
   6169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6171 if test "${ac_cv_prog_STRIP+set}" = set; then
   6172   echo $ECHO_N "(cached) $ECHO_C" >&6
   6173 else
   6174   if test -n "$STRIP"; then
   6175   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   6176 else
   6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6178 for as_dir in $PATH
   6179 do
   6180   IFS=$as_save_IFS
   6181   test -z "$as_dir" && as_dir=.
   6182   for ac_exec_ext in '' $ac_executable_extensions; do
   6183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6184     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   6185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6186     break 2
   6187   fi
   6188 done
   6189 done
   6190 IFS=$as_save_IFS
   6191 
   6192 fi
   6193 fi
   6194 STRIP=$ac_cv_prog_STRIP
   6195 if test -n "$STRIP"; then
   6196   { echo "$as_me:$LINENO: result: $STRIP" >&5
   6197 echo "${ECHO_T}$STRIP" >&6; }
   6198 else
   6199   { echo "$as_me:$LINENO: result: no" >&5
   6200 echo "${ECHO_T}no" >&6; }
   6201 fi
   6202 
   6203 
   6204 fi
   6205 if test -z "$ac_cv_prog_STRIP"; then
   6206   ac_ct_STRIP=$STRIP
   6207   # Extract the first word of "strip", so it can be a program name with args.
   6208 set dummy strip; ac_word=$2
   6209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
   6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
   6211 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
   6212   echo $ECHO_N "(cached) $ECHO_C" >&6
   6213 else
   6214   if test -n "$ac_ct_STRIP"; then
   6215   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   6216 else
   6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6218 for as_dir in $PATH
   6219 do
   6220   IFS=$as_save_IFS
   6221   test -z "$as_dir" && as_dir=.
   6222   for ac_exec_ext in '' $ac_executable_extensions; do
   6223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6224     ac_cv_prog_ac_ct_STRIP="strip"
   6225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
   6226     break 2
   6227   fi
   6228 done
   6229 done
   6230 IFS=$as_save_IFS
   6231 
   6232 fi
   6233 fi
   6234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   6235 if test -n "$ac_ct_STRIP"; then
   6236   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
   6237 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
   6238 else
   6239   { echo "$as_me:$LINENO: result: no" >&5
   6240 echo "${ECHO_T}no" >&6; }
   6241 fi
   6242 
   6243   if test "x$ac_ct_STRIP" = x; then
   6244     STRIP=":"
   6245   else
   6246     case $cross_compiling:$ac_tool_warned in
   6247 yes:)
   6248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
   6249 whose name does not start with the host triplet.  If you think this
   6250 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
   6251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
   6252 whose name does not start with the host triplet.  If you think this
   6253 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
   6254 ac_tool_warned=yes ;;
   6255 esac
   6256     STRIP=$ac_ct_STRIP
   6257   fi
   6258 else
   6259   STRIP="$ac_cv_prog_STRIP"
   6260 fi
   6261 
   6262 
   6263 old_CC="$CC"
   6264 old_CFLAGS="$CFLAGS"
   6265 
   6266 # Set sane defaults for various variables
   6267 test -z "$AR" && AR=ar
   6268 test -z "$AR_FLAGS" && AR_FLAGS=cru
   6269 test -z "$AS" && AS=as
   6270 test -z "$CC" && CC=cc
   6271 test -z "$LTCC" && LTCC=$CC
   6272 test -z "$DLLTOOL" && DLLTOOL=dlltool
   6273 test -z "$LD" && LD=ld
   6274 test -z "$LN_S" && LN_S="ln -s"
   6275 test -z "$MAGIC_CMD" && MAGIC_CMD=file
   6276 test -z "$NM" && NM=nm
   6277 test -z "$SED" && SED=sed
   6278 test -z "$OBJDUMP" && OBJDUMP=objdump
   6279 test -z "$RANLIB" && RANLIB=:
   6280 test -z "$STRIP" && STRIP=:
   6281 test -z "$ac_objext" && ac_objext=o
   6282 
   6283 # Determine commands to create old-style static archives.
   6284 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
   6285 old_postinstall_cmds='chmod 644 $oldlib'
   6286 old_postuninstall_cmds=
   6287 
   6288 if test -n "$RANLIB"; then
   6289   case $host_os in
   6290   openbsd*)
   6291     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
   6292     ;;
   6293   *)
   6294     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
   6295     ;;
   6296   esac
   6297   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   6298 fi
   6299 
   6300 # Only perform the check for file, if the check method requires it
   6301 case $deplibs_check_method in
   6302 file_magic*)
   6303   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   6304     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
   6305 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
   6306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
   6307   echo $ECHO_N "(cached) $ECHO_C" >&6
   6308 else
   6309   case $MAGIC_CMD in
   6310 [\\/*] |  ?:[\\/]*)
   6311   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   6312   ;;
   6313 *)
   6314   lt_save_MAGIC_CMD="$MAGIC_CMD"
   6315   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   6316   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   6317   for ac_dir in $ac_dummy; do
   6318     IFS="$lt_save_ifs"
   6319     test -z "$ac_dir" && ac_dir=.
   6320     if test -f $ac_dir/${ac_tool_prefix}file; then
   6321       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
   6322       if test -n "$file_magic_test_file"; then
   6323 	case $deplibs_check_method in
   6324 	"file_magic "*)
   6325 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
   6326 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   6327 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   6328 	    $EGREP "$file_magic_regex" > /dev/null; then
   6329 	    :
   6330 	  else
   6331 	    cat <<EOF 1>&2
   6332 
   6333 *** Warning: the command libtool uses to detect shared libraries,
   6334 *** $file_magic_cmd, produces output that libtool cannot recognize.
   6335 *** The result is that libtool may fail to recognize shared libraries
   6336 *** as such.  This will affect the creation of libtool libraries that
   6337 *** depend on shared libraries, but programs linked with such libtool
   6338 *** libraries will work regardless of this problem.  Nevertheless, you
   6339 *** may want to report the problem to your system manager and/or to
   6340 *** bug-libtool (at] gnu.org
   6341 
   6342 EOF
   6343 	  fi ;;
   6344 	esac
   6345       fi
   6346       break
   6347     fi
   6348   done
   6349   IFS="$lt_save_ifs"
   6350   MAGIC_CMD="$lt_save_MAGIC_CMD"
   6351   ;;
   6352 esac
   6353 fi
   6354 
   6355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   6356 if test -n "$MAGIC_CMD"; then
   6357   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
   6358 echo "${ECHO_T}$MAGIC_CMD" >&6; }
   6359 else
   6360   { echo "$as_me:$LINENO: result: no" >&5
   6361 echo "${ECHO_T}no" >&6; }
   6362 fi
   6363 
   6364 if test -z "$lt_cv_path_MAGIC_CMD"; then
   6365   if test -n "$ac_tool_prefix"; then
   6366     { echo "$as_me:$LINENO: checking for file" >&5
   6367 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
   6368 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
   6369   echo $ECHO_N "(cached) $ECHO_C" >&6
   6370 else
   6371   case $MAGIC_CMD in
   6372 [\\/*] |  ?:[\\/]*)
   6373   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
   6374   ;;
   6375 *)
   6376   lt_save_MAGIC_CMD="$MAGIC_CMD"
   6377   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   6378   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
   6379   for ac_dir in $ac_dummy; do
   6380     IFS="$lt_save_ifs"
   6381     test -z "$ac_dir" && ac_dir=.
   6382     if test -f $ac_dir/file; then
   6383       lt_cv_path_MAGIC_CMD="$ac_dir/file"
   6384       if test -n "$file_magic_test_file"; then
   6385 	case $deplibs_check_method in
   6386 	"file_magic "*)
   6387 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
   6388 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   6389 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
   6390 	    $EGREP "$file_magic_regex" > /dev/null; then
   6391 	    :
   6392 	  else
   6393 	    cat <<EOF 1>&2
   6394 
   6395 *** Warning: the command libtool uses to detect shared libraries,
   6396 *** $file_magic_cmd, produces output that libtool cannot recognize.
   6397 *** The result is that libtool may fail to recognize shared libraries
   6398 *** as such.  This will affect the creation of libtool libraries that
   6399 *** depend on shared libraries, but programs linked with such libtool
   6400 *** libraries will work regardless of this problem.  Nevertheless, you
   6401 *** may want to report the problem to your system manager and/or to
   6402 *** bug-libtool (at] gnu.org
   6403 
   6404 EOF
   6405 	  fi ;;
   6406 	esac
   6407       fi
   6408       break
   6409     fi
   6410   done
   6411   IFS="$lt_save_ifs"
   6412   MAGIC_CMD="$lt_save_MAGIC_CMD"
   6413   ;;
   6414 esac
   6415 fi
   6416 
   6417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
   6418 if test -n "$MAGIC_CMD"; then
   6419   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
   6420 echo "${ECHO_T}$MAGIC_CMD" >&6; }
   6421 else
   6422   { echo "$as_me:$LINENO: result: no" >&5
   6423 echo "${ECHO_T}no" >&6; }
   6424 fi
   6425 
   6426   else
   6427     MAGIC_CMD=:
   6428   fi
   6429 fi
   6430 
   6431   fi
   6432   ;;
   6433 esac
   6434 
   6435 enable_dlopen=yes
   6436 enable_win32_dll=no
   6437 
   6438 # Check whether --enable-libtool-lock was given.
   6439 if test "${enable_libtool_lock+set}" = set; then
   6440   enableval=$enable_libtool_lock;
   6441 fi
   6442 
   6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
   6444 
   6445 
   6446 # Check whether --with-pic was given.
   6447 if test "${with_pic+set}" = set; then
   6448   withval=$with_pic; pic_mode="$withval"
   6449 else
   6450   pic_mode=default
   6451 fi
   6452 
   6453 test -z "$pic_mode" && pic_mode=default
   6454 
   6455 # Use C for the default configuration in the libtool script
   6456 tagname=
   6457 lt_save_CC="$CC"
   6458 ac_ext=c
   6459 ac_cpp='$CPP $CPPFLAGS'
   6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6463 
   6464 
   6465 # Source file extension for C test sources.
   6466 ac_ext=c
   6467 
   6468 # Object file extension for compiled C test sources.
   6469 objext=o
   6470 objext=$objext
   6471 
   6472 # Code to be used in simple compile tests
   6473 lt_simple_compile_test_code="int some_variable = 0;\n"
   6474 
   6475 # Code to be used in simple link tests
   6476 lt_simple_link_test_code='int main(){return(0);}\n'
   6477 
   6478 
   6479 # If no C compiler was specified, use CC.
   6480 LTCC=${LTCC-"$CC"}
   6481 
   6482 # Allow CC to be a program name with arguments.
   6483 compiler=$CC
   6484 
   6485 
   6486 #
   6487 # Check for any special shared library compilation flags.
   6488 #
   6489 lt_prog_cc_shlib=
   6490 if test "$GCC" = no; then
   6491   case $host_os in
   6492   sco3.2v5*)
   6493     lt_prog_cc_shlib='-belf'
   6494     ;;
   6495   esac
   6496 fi
   6497 if test -n "$lt_prog_cc_shlib"; then
   6498   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
   6499 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
   6500   if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
   6501   else
   6502     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
   6503 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
   6504     lt_cv_prog_cc_can_build_shared=no
   6505   fi
   6506 fi
   6507 
   6508 
   6509 #
   6510 # Check to make sure the static flag actually works.
   6511 #
   6512 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
   6513 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
   6514 if test "${lt_prog_compiler_static_works+set}" = set; then
   6515   echo $ECHO_N "(cached) $ECHO_C" >&6
   6516 else
   6517   lt_prog_compiler_static_works=no
   6518    save_LDFLAGS="$LDFLAGS"
   6519    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
   6520    printf "$lt_simple_link_test_code" > conftest.$ac_ext
   6521    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
   6522      # The compiler can only warn and ignore the option if not recognized
   6523      # So say no if there are warnings
   6524      if test -s conftest.err; then
   6525        # Append any errors to the config.log.
   6526        cat conftest.err 1>&5
   6527      else
   6528        lt_prog_compiler_static_works=yes
   6529      fi
   6530    fi
   6531    $rm conftest*
   6532    LDFLAGS="$save_LDFLAGS"
   6533 
   6534 fi
   6535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
   6536 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
   6537 
   6538 if test x"$lt_prog_compiler_static_works" = xyes; then
   6539     :
   6540 else
   6541     lt_prog_compiler_static=
   6542 fi
   6543 
   6544 
   6545 
   6546 ## CAVEAT EMPTOR:
   6547 ## There is no encapsulation within the following macros, do not change
   6548 ## the running order or otherwise move them around unless you know exactly
   6549 ## what you are doing...
   6550 
   6551 lt_prog_compiler_no_builtin_flag=
   6552 
   6553 if test "$GCC" = yes; then
   6554   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
   6555 
   6556 
   6557 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   6558 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
   6559 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
   6560   echo $ECHO_N "(cached) $ECHO_C" >&6
   6561 else
   6562   lt_cv_prog_compiler_rtti_exceptions=no
   6563   ac_outfile=conftest.$ac_objext
   6564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   6565    lt_compiler_flag="-fno-rtti -fno-exceptions"
   6566    # Insert the option either (1) after the last *FLAGS variable, or
   6567    # (2) before a word containing "conftest.", or (3) at the end.
   6568    # Note that $ac_compile itself does not contain backslashes and begins
   6569    # with a dollar sign (not a hyphen), so the echo should work correctly.
   6570    # The option is referenced via a variable to avoid confusing sed.
   6571    lt_compile=`echo "$ac_compile" | $SED \
   6572    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   6573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   6574    -e 's:$: $lt_compiler_flag:'`
   6575    (eval echo "\"\$as_me:6575: $lt_compile\"" >&5)
   6576    (eval "$lt_compile" 2>conftest.err)
   6577    ac_status=$?
   6578    cat conftest.err >&5
   6579    echo "$as_me:6579: \$? = $ac_status" >&5
   6580    if (exit $ac_status) && test -s "$ac_outfile"; then
   6581      # The compiler can only warn and ignore the option if not recognized
   6582      # So say no if there are warnings
   6583      if test ! -s conftest.err; then
   6584        lt_cv_prog_compiler_rtti_exceptions=yes
   6585      fi
   6586    fi
   6587    $rm conftest*
   6588 
   6589 fi
   6590 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   6591 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   6592 
   6593 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   6594     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
   6595 else
   6596     :
   6597 fi
   6598 
   6599 fi
   6600 
   6601 lt_prog_compiler_wl=
   6602 lt_prog_compiler_pic=
   6603 lt_prog_compiler_static=
   6604 
   6605 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   6606 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   6607 
   6608   if test "$GCC" = yes; then
   6609     lt_prog_compiler_wl='-Wl,'
   6610     lt_prog_compiler_static='-static'
   6611 
   6612     case $host_os in
   6613       aix*)
   6614       # All AIX code is PIC.
   6615       if test "$host_cpu" = ia64; then
   6616 	# AIX 5 now supports IA64 processor
   6617 	lt_prog_compiler_static='-Bstatic'
   6618       fi
   6619       ;;
   6620 
   6621     amigaos*)
   6622       # FIXME: we need at least 68020 code to build shared libraries, but
   6623       # adding the `-m68020' flag to GCC prevents building anything better,
   6624       # like `-m68040'.
   6625       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
   6626       ;;
   6627 
   6628     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   6629       # PIC is the default for these OSes.
   6630       ;;
   6631 
   6632     mingw* | pw32* | os2*)
   6633       # This hack is so that the source file can tell whether it is being
   6634       # built for inclusion in a dll (and should export symbols for example).
   6635       lt_prog_compiler_pic='-DDLL_EXPORT'
   6636       ;;
   6637 
   6638     darwin* | rhapsody*)
   6639       # PIC is the default on this platform
   6640       # Common symbols not allowed in MH_DYLIB files
   6641       lt_prog_compiler_pic='-fno-common'
   6642       ;;
   6643 
   6644     msdosdjgpp*)
   6645       # Just because we use GCC doesn't mean we suddenly get shared libraries
   6646       # on systems that don't support them.
   6647       lt_prog_compiler_can_build_shared=no
   6648       enable_shared=no
   6649       ;;
   6650 
   6651     sysv4*MP*)
   6652       if test -d /usr/nec; then
   6653 	lt_prog_compiler_pic=-Kconform_pic
   6654       fi
   6655       ;;
   6656 
   6657     hpux*)
   6658       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   6659       # not for PA HP-UX.
   6660       case "$host_cpu" in
   6661       hppa*64*|ia64*)
   6662 	# +Z the default
   6663 	;;
   6664       *)
   6665 	lt_prog_compiler_pic='-fPIC'
   6666 	;;
   6667       esac
   6668       ;;
   6669 
   6670     *)
   6671       lt_prog_compiler_pic='-fPIC'
   6672       ;;
   6673     esac
   6674   else
   6675     # PORTME Check for flag to pass linker flags through the system compiler.
   6676     case $host_os in
   6677     aix*)
   6678       lt_prog_compiler_wl='-Wl,'
   6679       if test "$host_cpu" = ia64; then
   6680 	# AIX 5 now supports IA64 processor
   6681 	lt_prog_compiler_static='-Bstatic'
   6682       else
   6683 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
   6684       fi
   6685       ;;
   6686 
   6687     mingw* | pw32* | os2*)
   6688       # This hack is so that the source file can tell whether it is being
   6689       # built for inclusion in a dll (and should export symbols for example).
   6690       lt_prog_compiler_pic='-DDLL_EXPORT'
   6691       ;;
   6692 
   6693     hpux9* | hpux10* | hpux11*)
   6694       lt_prog_compiler_wl='-Wl,'
   6695       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   6696       # not for PA HP-UX.
   6697       case "$host_cpu" in
   6698       hppa*64*|ia64*)
   6699 	# +Z the default
   6700 	;;
   6701       *)
   6702 	lt_prog_compiler_pic='+Z'
   6703 	;;
   6704       esac
   6705       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   6706       lt_prog_compiler_static='${wl}-a ${wl}archive'
   6707       ;;
   6708 
   6709     irix5* | irix6* | nonstopux*)
   6710       lt_prog_compiler_wl='-Wl,'
   6711       # PIC (with -KPIC) is the default.
   6712       lt_prog_compiler_static='-non_shared'
   6713       ;;
   6714 
   6715     newsos6)
   6716       lt_prog_compiler_pic='-KPIC'
   6717       lt_prog_compiler_static='-Bstatic'
   6718       ;;
   6719 
   6720     linux*)
   6721       case $CC in
   6722       icc* | ecc*)
   6723 	lt_prog_compiler_wl='-Wl,'
   6724 	lt_prog_compiler_pic='-KPIC'
   6725 	lt_prog_compiler_static='-static'
   6726         ;;
   6727       ccc*)
   6728         lt_prog_compiler_wl='-Wl,'
   6729         # All Alpha code is PIC.
   6730         lt_prog_compiler_static='-non_shared'
   6731         ;;
   6732       esac
   6733       ;;
   6734 
   6735     osf3* | osf4* | osf5*)
   6736       lt_prog_compiler_wl='-Wl,'
   6737       # All OSF/1 code is PIC.
   6738       lt_prog_compiler_static='-non_shared'
   6739       ;;
   6740 
   6741     sco3.2v5*)
   6742       lt_prog_compiler_pic='-Kpic'
   6743       lt_prog_compiler_static='-dn'
   6744       ;;
   6745 
   6746     solaris*)
   6747       lt_prog_compiler_wl='-Wl,'
   6748       lt_prog_compiler_pic='-KPIC'
   6749       lt_prog_compiler_static='-Bstatic'
   6750       ;;
   6751 
   6752     sunos4*)
   6753       lt_prog_compiler_wl='-Qoption ld '
   6754       lt_prog_compiler_pic='-PIC'
   6755       lt_prog_compiler_static='-Bstatic'
   6756       ;;
   6757 
   6758     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   6759       lt_prog_compiler_wl='-Wl,'
   6760       lt_prog_compiler_pic='-KPIC'
   6761       lt_prog_compiler_static='-Bstatic'
   6762       ;;
   6763 
   6764     sysv4*MP*)
   6765       if test -d /usr/nec ;then
   6766 	lt_prog_compiler_pic='-Kconform_pic'
   6767 	lt_prog_compiler_static='-Bstatic'
   6768       fi
   6769       ;;
   6770 
   6771     uts4*)
   6772       lt_prog_compiler_pic='-pic'
   6773       lt_prog_compiler_static='-Bstatic'
   6774       ;;
   6775 
   6776     *)
   6777       lt_prog_compiler_can_build_shared=no
   6778       ;;
   6779     esac
   6780   fi
   6781 
   6782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
   6783 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
   6784 
   6785 #
   6786 # Check to make sure the PIC flag actually works.
   6787 #
   6788 if test -n "$lt_prog_compiler_pic"; then
   6789 
   6790 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
   6791 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
   6792 if test "${lt_prog_compiler_pic_works+set}" = set; then
   6793   echo $ECHO_N "(cached) $ECHO_C" >&6
   6794 else
   6795   lt_prog_compiler_pic_works=no
   6796   ac_outfile=conftest.$ac_objext
   6797    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   6798    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
   6799    # Insert the option either (1) after the last *FLAGS variable, or
   6800    # (2) before a word containing "conftest.", or (3) at the end.
   6801    # Note that $ac_compile itself does not contain backslashes and begins
   6802    # with a dollar sign (not a hyphen), so the echo should work correctly.
   6803    # The option is referenced via a variable to avoid confusing sed.
   6804    lt_compile=`echo "$ac_compile" | $SED \
   6805    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   6806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   6807    -e 's:$: $lt_compiler_flag:'`
   6808    (eval echo "\"\$as_me:6808: $lt_compile\"" >&5)
   6809    (eval "$lt_compile" 2>conftest.err)
   6810    ac_status=$?
   6811    cat conftest.err >&5
   6812    echo "$as_me:6812: \$? = $ac_status" >&5
   6813    if (exit $ac_status) && test -s "$ac_outfile"; then
   6814      # The compiler can only warn and ignore the option if not recognized
   6815      # So say no if there are warnings
   6816      if test ! -s conftest.err; then
   6817        lt_prog_compiler_pic_works=yes
   6818      fi
   6819    fi
   6820    $rm conftest*
   6821 
   6822 fi
   6823 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
   6824 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
   6825 
   6826 if test x"$lt_prog_compiler_pic_works" = xyes; then
   6827     case $lt_prog_compiler_pic in
   6828      "" | " "*) ;;
   6829      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
   6830      esac
   6831 else
   6832     lt_prog_compiler_pic=
   6833      lt_prog_compiler_can_build_shared=no
   6834 fi
   6835 
   6836 fi
   6837 case "$host_os" in
   6838   # For platforms which do not support PIC, -DPIC is meaningless:
   6839   *djgpp*)
   6840     lt_prog_compiler_pic=
   6841     ;;
   6842   *)
   6843     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
   6844     ;;
   6845 esac
   6846 
   6847 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   6848 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   6849 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
   6850   echo $ECHO_N "(cached) $ECHO_C" >&6
   6851 else
   6852   lt_cv_prog_compiler_c_o=no
   6853    $rm -r conftest 2>/dev/null
   6854    mkdir conftest
   6855    cd conftest
   6856    mkdir out
   6857    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   6858 
   6859    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   6860    # that will create temporary files in the current directory regardless of
   6861    # the output directory.  Thus, making CWD read-only will cause this test
   6862    # to fail, enabling locking or at least warning the user not to do parallel
   6863    # builds.
   6864    chmod -w .
   6865 
   6866    lt_compiler_flag="-o out/conftest2.$ac_objext"
   6867    # Insert the option either (1) after the last *FLAGS variable, or
   6868    # (2) before a word containing "conftest.", or (3) at the end.
   6869    # Note that $ac_compile itself does not contain backslashes and begins
   6870    # with a dollar sign (not a hyphen), so the echo should work correctly.
   6871    lt_compile=`echo "$ac_compile" | $SED \
   6872    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   6873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   6874    -e 's:$: $lt_compiler_flag:'`
   6875    (eval echo "\"\$as_me:6875: $lt_compile\"" >&5)
   6876    (eval "$lt_compile" 2>out/conftest.err)
   6877    ac_status=$?
   6878    cat out/conftest.err >&5
   6879    echo "$as_me:6879: \$? = $ac_status" >&5
   6880    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   6881    then
   6882      # The compiler can only warn and ignore the option if not recognized
   6883      # So say no if there are warnings
   6884      if test ! -s out/conftest.err; then
   6885        lt_cv_prog_compiler_c_o=yes
   6886      fi
   6887    fi
   6888    chmod u+w .
   6889    $rm conftest*
   6890    # SGI C++ compiler will create directory out/ii_files/ for
   6891    # template instantiation
   6892    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   6893    $rm out/* && rmdir out
   6894    cd ..
   6895    rmdir conftest
   6896    $rm conftest*
   6897 
   6898 fi
   6899 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
   6900 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
   6901 
   6902 
   6903 hard_links="nottested"
   6904 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
   6905   # do not overwrite the value of need_locks provided by the user
   6906   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   6907 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   6908   hard_links=yes
   6909   $rm conftest*
   6910   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   6911   touch conftest.a
   6912   ln conftest.a conftest.b 2>&5 || hard_links=no
   6913   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   6914   { echo "$as_me:$LINENO: result: $hard_links" >&5
   6915 echo "${ECHO_T}$hard_links" >&6; }
   6916   if test "$hard_links" = no; then
   6917     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   6918 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   6919     need_locks=warn
   6920   fi
   6921 else
   6922   need_locks=no
   6923 fi
   6924 
   6925 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   6926 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   6927 
   6928   runpath_var=
   6929   allow_undefined_flag=
   6930   enable_shared_with_static_runtimes=no
   6931   archive_cmds=
   6932   archive_expsym_cmds=
   6933   old_archive_From_new_cmds=
   6934   old_archive_from_expsyms_cmds=
   6935   export_dynamic_flag_spec=
   6936   whole_archive_flag_spec=
   6937   thread_safe_flag_spec=
   6938   hardcode_libdir_flag_spec=
   6939   hardcode_libdir_flag_spec_ld=
   6940   hardcode_libdir_separator=
   6941   hardcode_direct=no
   6942   hardcode_minus_L=no
   6943   hardcode_shlibpath_var=unsupported
   6944   link_all_deplibs=unknown
   6945   hardcode_automatic=no
   6946   module_cmds=
   6947   module_expsym_cmds=
   6948   always_export_symbols=no
   6949   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   6950   # include_expsyms should be a list of space-separated symbols to be *always*
   6951   # included in the symbol list
   6952   include_expsyms=
   6953   # exclude_expsyms can be an extended regexp of symbols to exclude
   6954   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   6955   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   6956   # as well as any symbol that contains `d'.
   6957   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
   6958   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   6959   # platforms (ab)use it in PIC code, but their linkers get confused if
   6960   # the symbol is explicitly referenced.  Since portable code cannot
   6961   # rely on this symbol name, it's probably fine to never include it in
   6962   # preloaded symbol tables.
   6963   extract_expsyms_cmds=
   6964 
   6965   case $host_os in
   6966   cygwin* | mingw* | pw32*)
   6967     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   6968     # When not using gcc, we currently assume that we are using
   6969     # Microsoft Visual C++.
   6970     if test "$GCC" != yes; then
   6971       with_gnu_ld=no
   6972     fi
   6973     ;;
   6974   openbsd*)
   6975     with_gnu_ld=no
   6976     ;;
   6977   esac
   6978 
   6979   ld_shlibs=yes
   6980   if test "$with_gnu_ld" = yes; then
   6981     # If archive_cmds runs LD, not CC, wlarc should be empty
   6982     wlarc='${wl}'
   6983 
   6984     # See if GNU ld supports shared libraries.
   6985     case $host_os in
   6986     aix3* | aix4* | aix5*)
   6987       # On AIX/PPC, the GNU linker is very broken
   6988       if test "$host_cpu" != ia64; then
   6989 	ld_shlibs=no
   6990 	cat <<EOF 1>&2
   6991 
   6992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
   6993 *** to be unable to reliably create shared libraries on AIX.
   6994 *** Therefore, libtool is disabling shared libraries support.  If you
   6995 *** really care for shared libraries, you may want to modify your PATH
   6996 *** so that a non-GNU linker is found, and then restart.
   6997 
   6998 EOF
   6999       fi
   7000       ;;
   7001 
   7002     amigaos*)
   7003       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)'
   7004       hardcode_libdir_flag_spec='-L$libdir'
   7005       hardcode_minus_L=yes
   7006 
   7007       # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
   7008       # that the semantics of dynamic libraries on AmigaOS, at least up
   7009       # to version 4, is to share data among multiple programs linked
   7010       # with the same dynamic library.  Since this doesn't match the
   7011       # behavior of shared libraries on other platforms, we can't use
   7012       # them.
   7013       ld_shlibs=no
   7014       ;;
   7015 
   7016     beos*)
   7017       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   7018 	allow_undefined_flag=unsupported
   7019 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   7020 	# support --undefined.  This deserves some investigation.  FIXME
   7021 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7022       else
   7023 	ld_shlibs=no
   7024       fi
   7025       ;;
   7026 
   7027     cygwin* | mingw* | pw32*)
   7028       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
   7029       # as there is no search path for DLLs.
   7030       hardcode_libdir_flag_spec='-L$libdir'
   7031       allow_undefined_flag=unsupported
   7032       always_export_symbols=no
   7033       enable_shared_with_static_runtimes=yes
   7034       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
   7035 
   7036       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   7037         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   7038 	# If the export-symbols file already is a .def file (1st line
   7039 	# is EXPORTS), use it as is; otherwise, prepend...
   7040 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   7041 	  cp $export_symbols $output_objdir/$soname.def;
   7042 	else
   7043 	  echo EXPORTS > $output_objdir/$soname.def;
   7044 	  cat $export_symbols >> $output_objdir/$soname.def;
   7045 	fi~
   7046 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
   7047       else
   7048 	ld_shlibs=no
   7049       fi
   7050       ;;
   7051 
   7052     netbsd*)
   7053       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   7054 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   7055 	wlarc=
   7056       else
   7057 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7058 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   7059       fi
   7060       ;;
   7061 
   7062     solaris* | sysv5*)
   7063       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
   7064 	ld_shlibs=no
   7065 	cat <<EOF 1>&2
   7066 
   7067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   7068 *** create shared libraries on Solaris systems.  Therefore, libtool
   7069 *** is disabling shared libraries support.  We urge you to upgrade GNU
   7070 *** binutils to release 2.9.1 or newer.  Another option is to modify
   7071 *** your PATH or compiler configuration so that the native linker is
   7072 *** used, and then restart.
   7073 
   7074 EOF
   7075       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   7076 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7077 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   7078       else
   7079 	ld_shlibs=no
   7080       fi
   7081       ;;
   7082 
   7083     sunos4*)
   7084       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   7085       wlarc=
   7086       hardcode_direct=yes
   7087       hardcode_shlibpath_var=no
   7088       ;;
   7089 
   7090   linux*)
   7091     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
   7092         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7093 	archive_cmds="$tmp_archive_cmds"
   7094       supports_anon_versioning=no
   7095       case `$LD -v 2>/dev/null` in
   7096         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   7097         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   7098         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   7099         *\ 2.11.*) ;; # other 2.11 versions
   7100         *) supports_anon_versioning=yes ;;
   7101       esac
   7102       if test $supports_anon_versioning = yes; then
   7103         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
   7104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   7105 $echo "local: *; };" >> $output_objdir/$libname.ver~
   7106         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   7107       else
   7108         archive_expsym_cmds="$tmp_archive_cmds"
   7109       fi
   7110     else
   7111       ld_shlibs=no
   7112     fi
   7113     ;;
   7114 
   7115     *)
   7116       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   7117 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   7118 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   7119       else
   7120 	ld_shlibs=no
   7121       fi
   7122       ;;
   7123     esac
   7124 
   7125     if test "$ld_shlibs" = yes; then
   7126       runpath_var=LD_RUN_PATH
   7127       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
   7128       export_dynamic_flag_spec='${wl}--export-dynamic'
   7129       # ancient GNU ld didn't support --whole-archive et. al.
   7130       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
   7131  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   7132       else
   7133   	whole_archive_flag_spec=
   7134       fi
   7135     fi
   7136   else
   7137     # PORTME fill in a description of your system's linker (not GNU ld)
   7138     case $host_os in
   7139     aix3*)
   7140       allow_undefined_flag=unsupported
   7141       always_export_symbols=yes
   7142       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'
   7143       # Note: this linker hardcodes the directories in LIBPATH if there
   7144       # are no directories specified by -L.
   7145       hardcode_minus_L=yes
   7146       if test "$GCC" = yes && test -z "$link_static_flag"; then
   7147 	# Neither direct hardcoding nor static linking is supported with a
   7148 	# broken collect2.
   7149 	hardcode_direct=unsupported
   7150       fi
   7151       ;;
   7152 
   7153     aix4* | aix5*)
   7154       if test "$host_cpu" = ia64; then
   7155 	# On IA64, the linker does run time linking by default, so we don't
   7156 	# have to do anything special.
   7157 	aix_use_runtimelinking=no
   7158 	exp_sym_flag='-Bexport'
   7159 	no_entry_flag=""
   7160       else
   7161 	# If we're using GNU nm, then we don't want the "-C" option.
   7162 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   7163 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
   7164 	  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'
   7165 	else
   7166 	  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'
   7167 	fi
   7168 	aix_use_runtimelinking=no
   7169 
   7170 	# Test if we are trying to use run time linking or normal
   7171 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   7172 	# need to do runtime linking.
   7173 	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
   7174 	  for ld_flag in $LDFLAGS; do
   7175   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   7176   	    aix_use_runtimelinking=yes
   7177   	    break
   7178   	  fi
   7179 	  done
   7180 	esac
   7181 
   7182 	exp_sym_flag='-bexport'
   7183 	no_entry_flag='-bnoentry'
   7184       fi
   7185 
   7186       # When large executables or shared objects are built, AIX ld can
   7187       # have problems creating the table of contents.  If linking a library
   7188       # or program results in "error TOC overflow" add -mminimal-toc to
   7189       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   7190       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   7191 
   7192       archive_cmds=''
   7193       hardcode_direct=yes
   7194       hardcode_libdir_separator=':'
   7195       link_all_deplibs=yes
   7196 
   7197       if test "$GCC" = yes; then
   7198 	case $host_os in aix4.012|aix4.012.*)
   7199 	# We only want to do this on AIX 4.2 and lower, the check
   7200 	# below for broken collect2 doesn't work under 4.3+
   7201 	  collect2name=`${CC} -print-prog-name=collect2`
   7202 	  if test -f "$collect2name" && \
   7203   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
   7204 	  then
   7205   	  # We have reworked collect2
   7206   	  hardcode_direct=yes
   7207 	  else
   7208   	  # We have old collect2
   7209   	  hardcode_direct=unsupported
   7210   	  # It fails to find uninstalled libraries when the uninstalled
   7211   	  # path is not listed in the libpath.  Setting hardcode_minus_L
   7212   	  # to unsupported forces relinking
   7213   	  hardcode_minus_L=yes
   7214   	  hardcode_libdir_flag_spec='-L$libdir'
   7215   	  hardcode_libdir_separator=
   7216 	  fi
   7217 	esac
   7218 	shared_flag='-shared'
   7219       else
   7220 	# not using gcc
   7221 	if test "$host_cpu" = ia64; then
   7222   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   7223   	# chokes on -Wl,-G. The following line is correct:
   7224 	  shared_flag='-G'
   7225 	else
   7226   	if test "$aix_use_runtimelinking" = yes; then
   7227 	    shared_flag='${wl}-G'
   7228 	  else
   7229 	    shared_flag='${wl}-bM:SRE'
   7230   	fi
   7231 	fi
   7232       fi
   7233 
   7234       # It seems that -bexpall does not export symbols beginning with
   7235       # underscore (_), so it is better to generate a list of symbols to export.
   7236       always_export_symbols=yes
   7237       if test "$aix_use_runtimelinking" = yes; then
   7238 	# Warning - without using the other runtime loading flags (-brtl),
   7239 	# -berok will link without error, but may produce a broken library.
   7240 	allow_undefined_flag='-berok'
   7241        # Determine the default libpath from the value encoded in an empty executable.
   7242        cat >conftest.$ac_ext <<_ACEOF
   7243 /* confdefs.h.  */
   7244 _ACEOF
   7245 cat confdefs.h >>conftest.$ac_ext
   7246 cat >>conftest.$ac_ext <<_ACEOF
   7247 /* end confdefs.h.  */
   7248 
   7249 int
   7250 main ()
   7251 {
   7252 
   7253   ;
   7254   return 0;
   7255 }
   7256 _ACEOF
   7257 rm -f conftest.$ac_objext conftest$ac_exeext
   7258 if { (ac_try="$ac_link"
   7259 case "(($ac_try" in
   7260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7261   *) ac_try_echo=$ac_try;;
   7262 esac
   7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7264   (eval "$ac_link") 2>conftest.er1
   7265   ac_status=$?
   7266   grep -v '^ *+' conftest.er1 >conftest.err
   7267   rm -f conftest.er1
   7268   cat conftest.err >&5
   7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7270   (exit $ac_status); } && {
   7271 	 test -z "$ac_c_werror_flag" ||
   7272 	 test ! -s conftest.err
   7273        } && test -s conftest$ac_exeext &&
   7274        $as_test_x conftest$ac_exeext; then
   7275 
   7276 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   7277 }'`
   7278 # Check for a 64-bit object if we didn't find anything.
   7279 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   7280 }'`; fi
   7281 else
   7282   echo "$as_me: failed program was:" >&5
   7283 sed 's/^/| /' conftest.$ac_ext >&5
   7284 
   7285 
   7286 fi
   7287 
   7288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7289       conftest$ac_exeext conftest.$ac_ext
   7290 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   7291 
   7292        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   7293 	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   7294        else
   7295 	if test "$host_cpu" = ia64; then
   7296 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
   7297 	  allow_undefined_flag="-z nodefs"
   7298 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
   7299 	else
   7300 	 # Determine the default libpath from the value encoded in an empty executable.
   7301 	 cat >conftest.$ac_ext <<_ACEOF
   7302 /* confdefs.h.  */
   7303 _ACEOF
   7304 cat confdefs.h >>conftest.$ac_ext
   7305 cat >>conftest.$ac_ext <<_ACEOF
   7306 /* end confdefs.h.  */
   7307 
   7308 int
   7309 main ()
   7310 {
   7311 
   7312   ;
   7313   return 0;
   7314 }
   7315 _ACEOF
   7316 rm -f conftest.$ac_objext conftest$ac_exeext
   7317 if { (ac_try="$ac_link"
   7318 case "(($ac_try" in
   7319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   7320   *) ac_try_echo=$ac_try;;
   7321 esac
   7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   7323   (eval "$ac_link") 2>conftest.er1
   7324   ac_status=$?
   7325   grep -v '^ *+' conftest.er1 >conftest.err
   7326   rm -f conftest.er1
   7327   cat conftest.err >&5
   7328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7329   (exit $ac_status); } && {
   7330 	 test -z "$ac_c_werror_flag" ||
   7331 	 test ! -s conftest.err
   7332        } && test -s conftest$ac_exeext &&
   7333        $as_test_x conftest$ac_exeext; then
   7334 
   7335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   7336 }'`
   7337 # Check for a 64-bit object if we didn't find anything.
   7338 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   7339 }'`; fi
   7340 else
   7341   echo "$as_me: failed program was:" >&5
   7342 sed 's/^/| /' conftest.$ac_ext >&5
   7343 
   7344 
   7345 fi
   7346 
   7347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   7348       conftest$ac_exeext conftest.$ac_ext
   7349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   7350 
   7351 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
   7352 	  # Warning - without using the other run time loading flags,
   7353 	  # -berok will link without error, but may produce a broken library.
   7354 	  no_undefined_flag=' ${wl}-bernotok'
   7355 	  allow_undefined_flag=' ${wl}-berok'
   7356 	  # -bexpall does not export symbols beginning with underscore (_)
   7357 	  always_export_symbols=yes
   7358 	  # Exported symbols can be pulled into shared objects from archives
   7359 	  whole_archive_flag_spec=' '
   7360 	  archive_cmds_need_lc=yes
   7361 	  # This is similar to how AIX traditionally builds it's shared libraries.
   7362 	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   7363 	fi
   7364       fi
   7365       ;;
   7366 
   7367     amigaos*)
   7368       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)'
   7369       hardcode_libdir_flag_spec='-L$libdir'
   7370       hardcode_minus_L=yes
   7371       # see comment about different semantics on the GNU ld section
   7372       ld_shlibs=no
   7373       ;;
   7374 
   7375     bsdi4*)
   7376       export_dynamic_flag_spec=-rdynamic
   7377       ;;
   7378 
   7379     cygwin* | mingw* | pw32*)
   7380       # When not using gcc, we currently assume that we are using
   7381       # Microsoft Visual C++.
   7382       # hardcode_libdir_flag_spec is actually meaningless, as there is
   7383       # no search path for DLLs.
   7384       hardcode_libdir_flag_spec=' '
   7385       allow_undefined_flag=unsupported
   7386       # Tell ltmain to make .lib files, not .a files.
   7387       libext=lib
   7388       # Tell ltmain to make .dll files, not .so files.
   7389       shrext=".dll"
   7390       # FIXME: Setting linknames here is a bad hack.
   7391       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
   7392       # The linker will automatically build a .lib file if we build a DLL.
   7393       old_archive_From_new_cmds='true'
   7394       # FIXME: Should let the user specify the lib program.
   7395       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
   7396       fix_srcfile_path='`cygpath -w "$srcfile"`'
   7397       enable_shared_with_static_runtimes=yes
   7398       ;;
   7399 
   7400     darwin* | rhapsody*)
   7401     if test "$GXX" = yes ; then
   7402       archive_cmds_need_lc=no
   7403       case "$host_os" in
   7404       rhapsody* | darwin1.[012])
   7405 	allow_undefined_flag='-undefined suppress'
   7406 	;;
   7407       *) # Darwin 1.3 on
   7408       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   7409       	allow_undefined_flag='-flat_namespace -undefined suppress'
   7410       else
   7411         case ${MACOSX_DEPLOYMENT_TARGET} in
   7412           10.[012])
   7413             allow_undefined_flag='-flat_namespace -undefined suppress'
   7414             ;;
   7415           10.*)
   7416             allow_undefined_flag='-undefined dynamic_lookup'
   7417             ;;
   7418         esac
   7419       fi
   7420 	;;
   7421       esac
   7422     	lt_int_apple_cc_single_mod=no
   7423     	output_verbose_link_cmd='echo'
   7424     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   7425     	  lt_int_apple_cc_single_mod=yes
   7426     	fi
   7427     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   7428     	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   7429     	else
   7430         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   7431       fi
   7432       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   7433       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   7434         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   7435           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   7436         else
   7437           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   7438         fi
   7439           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   7440       hardcode_direct=no
   7441       hardcode_automatic=yes
   7442       hardcode_shlibpath_var=unsupported
   7443       whole_archive_flag_spec='-all_load $convenience'
   7444       link_all_deplibs=yes
   7445     else
   7446       ld_shlibs=no
   7447     fi
   7448       ;;
   7449 
   7450     dgux*)
   7451       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7452       hardcode_libdir_flag_spec='-L$libdir'
   7453       hardcode_shlibpath_var=no
   7454       ;;
   7455 
   7456     freebsd1*)
   7457       ld_shlibs=no
   7458       ;;
   7459 
   7460     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   7461     # support.  Future versions do this automatically, but an explicit c++rt0.o
   7462     # does not break anything, and helps significantly (at the cost of a little
   7463     # extra space).
   7464     freebsd2.2*)
   7465       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   7466       hardcode_libdir_flag_spec='-R$libdir'
   7467       hardcode_direct=yes
   7468       hardcode_shlibpath_var=no
   7469       ;;
   7470 
   7471     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   7472     freebsd2*)
   7473       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   7474       hardcode_direct=yes
   7475       hardcode_minus_L=yes
   7476       hardcode_shlibpath_var=no
   7477       ;;
   7478 
   7479     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   7480     freebsd* | kfreebsd*-gnu)
   7481       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   7482       hardcode_libdir_flag_spec='-R$libdir'
   7483       hardcode_direct=yes
   7484       hardcode_shlibpath_var=no
   7485       ;;
   7486 
   7487     hpux9*)
   7488       if test "$GCC" = yes; then
   7489 	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'
   7490       else
   7491 	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'
   7492       fi
   7493       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   7494       hardcode_libdir_separator=:
   7495       hardcode_direct=yes
   7496 
   7497       # hardcode_minus_L: Not really in the search PATH,
   7498       # but as the default location of the library.
   7499       hardcode_minus_L=yes
   7500       export_dynamic_flag_spec='${wl}-E'
   7501       ;;
   7502 
   7503     hpux10* | hpux11*)
   7504       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
   7505 	case "$host_cpu" in
   7506 	hppa*64*|ia64*)
   7507 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   7508 	  ;;
   7509 	*)
   7510 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   7511 	  ;;
   7512 	esac
   7513       else
   7514 	case "$host_cpu" in
   7515 	hppa*64*|ia64*)
   7516 	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
   7517 	  ;;
   7518 	*)
   7519 	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   7520 	  ;;
   7521 	esac
   7522       fi
   7523       if test "$with_gnu_ld" = no; then
   7524 	case "$host_cpu" in
   7525 	hppa*64*)
   7526 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   7527 	  hardcode_libdir_flag_spec_ld='+b $libdir'
   7528 	  hardcode_libdir_separator=:
   7529 	  hardcode_direct=no
   7530 	  hardcode_shlibpath_var=no
   7531 	  ;;
   7532 	ia64*)
   7533 	  hardcode_libdir_flag_spec='-L$libdir'
   7534 	  hardcode_direct=no
   7535 	  hardcode_shlibpath_var=no
   7536 
   7537 	  # hardcode_minus_L: Not really in the search PATH,
   7538 	  # but as the default location of the library.
   7539 	  hardcode_minus_L=yes
   7540 	  ;;
   7541 	*)
   7542 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
   7543 	  hardcode_libdir_separator=:
   7544 	  hardcode_direct=yes
   7545 	  export_dynamic_flag_spec='${wl}-E'
   7546 
   7547 	  # hardcode_minus_L: Not really in the search PATH,
   7548 	  # but as the default location of the library.
   7549 	  hardcode_minus_L=yes
   7550 	  ;;
   7551 	esac
   7552       fi
   7553       ;;
   7554 
   7555     irix5* | irix6* | nonstopux*)
   7556       if test "$GCC" = yes; then
   7557 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   7558       else
   7559 	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   7560 	hardcode_libdir_flag_spec_ld='-rpath $libdir'
   7561       fi
   7562       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7563       hardcode_libdir_separator=:
   7564       link_all_deplibs=yes
   7565       ;;
   7566 
   7567     netbsd*)
   7568       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   7569 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   7570       else
   7571 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   7572       fi
   7573       hardcode_libdir_flag_spec='-R$libdir'
   7574       hardcode_direct=yes
   7575       hardcode_shlibpath_var=no
   7576       ;;
   7577 
   7578     newsos6)
   7579       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7580       hardcode_direct=yes
   7581       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7582       hardcode_libdir_separator=:
   7583       hardcode_shlibpath_var=no
   7584       ;;
   7585 
   7586     openbsd*)
   7587       hardcode_direct=yes
   7588       hardcode_shlibpath_var=no
   7589       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   7590 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   7591 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   7592 	export_dynamic_flag_spec='${wl}-E'
   7593       else
   7594        case $host_os in
   7595 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   7596 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   7597 	   hardcode_libdir_flag_spec='-R$libdir'
   7598 	   ;;
   7599 	 *)
   7600 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   7601 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
   7602 	   ;;
   7603        esac
   7604       fi
   7605       ;;
   7606 
   7607     os2*)
   7608       hardcode_libdir_flag_spec='-L$libdir'
   7609       hardcode_minus_L=yes
   7610       allow_undefined_flag=unsupported
   7611       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'
   7612       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   7613       ;;
   7614 
   7615     osf3*)
   7616       if test "$GCC" = yes; then
   7617 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   7618 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   7619       else
   7620 	allow_undefined_flag=' -expect_unresolved \*'
   7621 	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   7622       fi
   7623       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7624       hardcode_libdir_separator=:
   7625       ;;
   7626 
   7627     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   7628       if test "$GCC" = yes; then
   7629 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
   7630 	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   7631 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
   7632       else
   7633 	allow_undefined_flag=' -expect_unresolved \*'
   7634 	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   7635 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
   7636 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
   7637 
   7638 	# Both c and cxx compiler support -rpath directly
   7639 	hardcode_libdir_flag_spec='-rpath $libdir'
   7640       fi
   7641       hardcode_libdir_separator=:
   7642       ;;
   7643 
   7644     sco3.2v5*)
   7645       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7646       hardcode_shlibpath_var=no
   7647       export_dynamic_flag_spec='${wl}-Bexport'
   7648       runpath_var=LD_RUN_PATH
   7649       hardcode_runpath_var=yes
   7650       ;;
   7651 
   7652     solaris*)
   7653       no_undefined_flag=' -z text'
   7654       if test "$GCC" = yes; then
   7655 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   7656 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   7657 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
   7658       else
   7659 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7660 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   7661   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   7662       fi
   7663       hardcode_libdir_flag_spec='-R$libdir'
   7664       hardcode_shlibpath_var=no
   7665       case $host_os in
   7666       solaris2.[0-5] | solaris2.[0-5].*) ;;
   7667       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
   7668 	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
   7669       esac
   7670       link_all_deplibs=yes
   7671       ;;
   7672 
   7673     sunos4*)
   7674       if test "x$host_vendor" = xsequent; then
   7675 	# Use $CC to link under sequent, because it throws in some extra .o
   7676 	# files that make .init and .fini sections work.
   7677 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   7678       else
   7679 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   7680       fi
   7681       hardcode_libdir_flag_spec='-L$libdir'
   7682       hardcode_direct=yes
   7683       hardcode_minus_L=yes
   7684       hardcode_shlibpath_var=no
   7685       ;;
   7686 
   7687     sysv4)
   7688       case $host_vendor in
   7689 	sni)
   7690 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7691 	  hardcode_direct=yes # is this really true???
   7692 	;;
   7693 	siemens)
   7694 	  ## LD is ld it makes a PLAMLIB
   7695 	  ## CC just makes a GrossModule.
   7696 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   7697 	  reload_cmds='$CC -r -o $output$reload_objs'
   7698 	  hardcode_direct=no
   7699         ;;
   7700 	motorola)
   7701 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7702 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
   7703 	;;
   7704       esac
   7705       runpath_var='LD_RUN_PATH'
   7706       hardcode_shlibpath_var=no
   7707       ;;
   7708 
   7709     sysv4.3*)
   7710       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7711       hardcode_shlibpath_var=no
   7712       export_dynamic_flag_spec='-Bexport'
   7713       ;;
   7714 
   7715     sysv4*MP*)
   7716       if test -d /usr/nec; then
   7717 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7718 	hardcode_shlibpath_var=no
   7719 	runpath_var=LD_RUN_PATH
   7720 	hardcode_runpath_var=yes
   7721 	ld_shlibs=yes
   7722       fi
   7723       ;;
   7724 
   7725     sysv4.2uw2*)
   7726       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   7727       hardcode_direct=yes
   7728       hardcode_minus_L=no
   7729       hardcode_shlibpath_var=no
   7730       hardcode_runpath_var=yes
   7731       runpath_var=LD_RUN_PATH
   7732       ;;
   7733 
   7734    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
   7735       no_undefined_flag='${wl}-z ${wl}text'
   7736       if test "$GCC" = yes; then
   7737 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   7738       else
   7739 	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   7740       fi
   7741       runpath_var='LD_RUN_PATH'
   7742       hardcode_shlibpath_var=no
   7743       ;;
   7744 
   7745     sysv5*)
   7746       no_undefined_flag=' -z text'
   7747       # $CC -shared without GNU ld will not create a library from C++
   7748       # object files and a static libstdc++, better avoid it by now
   7749       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7750       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   7751   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   7752       hardcode_libdir_flag_spec=
   7753       hardcode_shlibpath_var=no
   7754       runpath_var='LD_RUN_PATH'
   7755       ;;
   7756 
   7757     uts4*)
   7758       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   7759       hardcode_libdir_flag_spec='-L$libdir'
   7760       hardcode_shlibpath_var=no
   7761       ;;
   7762 
   7763     *)
   7764       ld_shlibs=no
   7765       ;;
   7766     esac
   7767   fi
   7768 
   7769 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
   7770 echo "${ECHO_T}$ld_shlibs" >&6; }
   7771 test "$ld_shlibs" = no && can_build_shared=no
   7772 
   7773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   7774 if test "$GCC" = yes; then
   7775   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   7776 fi
   7777 
   7778 #
   7779 # Do we need to explicitly link libc?
   7780 #
   7781 case "x$archive_cmds_need_lc" in
   7782 x|xyes)
   7783   # Assume -lc should be added
   7784   archive_cmds_need_lc=yes
   7785 
   7786   if test "$enable_shared" = yes && test "$GCC" = yes; then
   7787     case $archive_cmds in
   7788     *'~'*)
   7789       # FIXME: we may have to deal with multi-command sequences.
   7790       ;;
   7791     '$CC '*)
   7792       # Test whether the compiler implicitly links with -lc since on some
   7793       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   7794       # to ld, don't add -lc before -lgcc.
   7795       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   7796 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   7797       $rm conftest*
   7798       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   7799 
   7800       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   7801   (eval $ac_compile) 2>&5
   7802   ac_status=$?
   7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7804   (exit $ac_status); } 2>conftest.err; then
   7805         soname=conftest
   7806         lib=conftest
   7807         libobjs=conftest.$ac_objext
   7808         deplibs=
   7809         wl=$lt_prog_compiler_wl
   7810         compiler_flags=-v
   7811         linker_flags=-v
   7812         verstring=
   7813         output_objdir=.
   7814         libname=conftest
   7815         lt_save_allow_undefined_flag=$allow_undefined_flag
   7816         allow_undefined_flag=
   7817         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
   7818   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
   7819   ac_status=$?
   7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   7821   (exit $ac_status); }
   7822         then
   7823 	  archive_cmds_need_lc=no
   7824         else
   7825 	  archive_cmds_need_lc=yes
   7826         fi
   7827         allow_undefined_flag=$lt_save_allow_undefined_flag
   7828       else
   7829         cat conftest.err 1>&5
   7830       fi
   7831       $rm conftest*
   7832       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
   7833 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
   7834       ;;
   7835     esac
   7836   fi
   7837   ;;
   7838 esac
   7839 
   7840 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   7841 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   7842 library_names_spec=
   7843 libname_spec='lib$name'
   7844 soname_spec=
   7845 shrext=".so"
   7846 postinstall_cmds=
   7847 postuninstall_cmds=
   7848 finish_cmds=
   7849 finish_eval=
   7850 shlibpath_var=
   7851 shlibpath_overrides_runpath=unknown
   7852 version_type=none
   7853 dynamic_linker="$host_os ld.so"
   7854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   7855 if test "$GCC" = yes; then
   7856   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   7857   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   7858     # if the path contains ";" then we assume it to be the separator
   7859     # otherwise default to the standard path separator (i.e. ":") - it is
   7860     # assumed that no part of a normal pathname contains ";" but that should
   7861     # okay in the real world where ";" in dirpaths is itself problematic.
   7862     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   7863   else
   7864     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   7865   fi
   7866 else
   7867   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   7868 fi
   7869 need_lib_prefix=unknown
   7870 hardcode_into_libs=no
   7871 
   7872 # when you set need_version to no, make sure it does not cause -set_version
   7873 # flags to be left without arguments
   7874 need_version=unknown
   7875 
   7876 case $host_os in
   7877 aix3*)
   7878   version_type=linux
   7879   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   7880   shlibpath_var=LIBPATH
   7881 
   7882   # AIX 3 has no versioning support, so we append a major version to the name.
   7883   soname_spec='${libname}${release}${shared_ext}$major'
   7884   ;;
   7885 
   7886 aix4* | aix5*)
   7887   version_type=linux
   7888   need_lib_prefix=no
   7889   need_version=no
   7890   hardcode_into_libs=yes
   7891   if test "$host_cpu" = ia64; then
   7892     # AIX 5 supports IA64
   7893     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   7894     shlibpath_var=LD_LIBRARY_PATH
   7895   else
   7896     # With GCC up to 2.95.x, collect2 would create an import file
   7897     # for dependence libraries.  The import file would start with
   7898     # the line `#! .'.  This would cause the generated library to
   7899     # depend on `.', always an invalid library.  This was fixed in
   7900     # development snapshots of GCC prior to 3.0.
   7901     case $host_os in
   7902       aix4 | aix4.[01] | aix4.[01].*)
   7903       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   7904 	   echo ' yes '
   7905 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   7906 	:
   7907       else
   7908 	can_build_shared=no
   7909       fi
   7910       ;;
   7911     esac
   7912     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   7913     # soname into executable. Probably we can add versioning support to
   7914     # collect2, so additional links can be useful in future.
   7915     if test "$aix_use_runtimelinking" = yes; then
   7916       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   7917       # instead of lib<name>.a to let people know that these are not
   7918       # typical AIX shared libraries.
   7919       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   7920     else
   7921       # We preserve .a as extension for shared libraries through AIX4.2
   7922       # and later when we are not doing run time linking.
   7923       library_names_spec='${libname}${release}.a $libname.a'
   7924       soname_spec='${libname}${release}${shared_ext}$major'
   7925     fi
   7926     shlibpath_var=LIBPATH
   7927   fi
   7928   ;;
   7929 
   7930 amigaos*)
   7931   library_names_spec='$libname.ixlibrary $libname.a'
   7932   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   7933   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'
   7934   ;;
   7935 
   7936 beos*)
   7937   library_names_spec='${libname}${shared_ext}'
   7938   dynamic_linker="$host_os ld.so"
   7939   shlibpath_var=LIBRARY_PATH
   7940   ;;
   7941 
   7942 bsdi4*)
   7943   version_type=linux
   7944   need_version=no
   7945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   7946   soname_spec='${libname}${release}${shared_ext}$major'
   7947   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   7948   shlibpath_var=LD_LIBRARY_PATH
   7949   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   7950   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   7951   # the default ld.so.conf also contains /usr/contrib/lib and
   7952   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   7953   # libtool to hard-code these into programs
   7954   ;;
   7955 
   7956 cygwin* | mingw* | pw32*)
   7957   version_type=windows
   7958   shrext=".dll"
   7959   need_version=no
   7960   need_lib_prefix=no
   7961 
   7962   case $GCC,$host_os in
   7963   yes,cygwin* | yes,mingw* | yes,pw32*)
   7964     library_names_spec='$libname.dll.a'
   7965     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   7966     postinstall_cmds='base_file=`basename \${file}`~
   7967       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   7968       dldir=$destdir/`dirname \$dlpath`~
   7969       test -d \$dldir || mkdir -p \$dldir~
   7970       $install_prog $dir/$dlname \$dldir/$dlname'
   7971     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   7972       dlpath=$dir/\$dldll~
   7973        $rm \$dlpath'
   7974     shlibpath_overrides_runpath=yes
   7975 
   7976     case $host_os in
   7977     cygwin*)
   7978       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   7979       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   7980       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   7981       ;;
   7982     mingw*)
   7983       # MinGW DLLs use traditional 'lib' prefix
   7984       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   7985       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   7986       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   7987         # It is most probably a Windows format PATH printed by
   7988         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   7989         # path with ; separators, and with drive letters. We can handle the
   7990         # drive letters (cygwin fileutils understands them), so leave them,
   7991         # especially as we might pass files found there to a mingw objdump,
   7992         # which wouldn't understand a cygwinified path. Ahh.
   7993         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   7994       else
   7995         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   7996       fi
   7997       ;;
   7998     pw32*)
   7999       # pw32 DLLs use 'pw' prefix rather than 'lib'
   8000       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
   8001       ;;
   8002     esac
   8003     ;;
   8004 
   8005   *)
   8006     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   8007     ;;
   8008   esac
   8009   dynamic_linker='Win32 ld.exe'
   8010   # FIXME: first we should search . and the directory the executable is in
   8011   shlibpath_var=PATH
   8012   ;;
   8013 
   8014 darwin* | rhapsody*)
   8015   dynamic_linker="$host_os dyld"
   8016   version_type=darwin
   8017   need_lib_prefix=no
   8018   need_version=no
   8019   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   8020   soname_spec='${libname}${release}${major}$shared_ext'
   8021   shlibpath_overrides_runpath=yes
   8022   shlibpath_var=DYLD_LIBRARY_PATH
   8023   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   8024   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   8025   if test "$GCC" = yes; then
   8026     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   8027   else
   8028     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   8029   fi
   8030   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   8031   ;;
   8032 
   8033 dgux*)
   8034   version_type=linux
   8035   need_lib_prefix=no
   8036   need_version=no
   8037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   8038   soname_spec='${libname}${release}${shared_ext}$major'
   8039   shlibpath_var=LD_LIBRARY_PATH
   8040   ;;
   8041 
   8042 freebsd1*)
   8043   dynamic_linker=no
   8044   ;;
   8045 
   8046 kfreebsd*-gnu)
   8047   version_type=linux
   8048   need_lib_prefix=no
   8049   need_version=no
   8050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   8051   soname_spec='${libname}${release}${shared_ext}$major'
   8052   shlibpath_var=LD_LIBRARY_PATH
   8053   shlibpath_overrides_runpath=no
   8054   hardcode_into_libs=yes
   8055   dynamic_linker='GNU ld.so'
   8056   ;;
   8057 
   8058 freebsd*)
   8059   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   8060   version_type=freebsd-$objformat
   8061   case $version_type in
   8062     freebsd-elf*)
   8063       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   8064       need_version=no
   8065       need_lib_prefix=no
   8066       ;;
   8067     freebsd-*)
   8068       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   8069       need_version=yes
   8070       ;;
   8071   esac
   8072   shlibpath_var=LD_LIBRARY_PATH
   8073   case $host_os in
   8074   freebsd2*)
   8075     shlibpath_overrides_runpath=yes
   8076     ;;
   8077   freebsd3.01* | freebsdelf3.01*)
   8078     shlibpath_overrides_runpath=yes
   8079     hardcode_into_libs=yes
   8080     ;;
   8081   *) # from 3.2 on
   8082     shlibpath_overrides_runpath=no
   8083     hardcode_into_libs=yes
   8084     ;;
   8085   esac
   8086   ;;
   8087 
   8088 gnu*)
   8089   version_type=linux
   8090   need_lib_prefix=no
   8091   need_version=no
   8092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   8093   soname_spec='${libname}${release}${shared_ext}$major'
   8094   shlibpath_var=LD_LIBRARY_PATH
   8095   hardcode_into_libs=yes
   8096   ;;
   8097 
   8098 hpux9* | hpux10* | hpux11*)
   8099   # Give a soname corresponding to the major version so that dld.sl refuses to
   8100   # link against other versions.
   8101   version_type=sunos
   8102   need_lib_prefix=no
   8103   need_version=no
   8104   case "$host_cpu" in
   8105   ia64*)
   8106     shrext='.so'
   8107     hardcode_into_libs=yes
   8108     dynamic_linker="$host_os dld.so"
   8109     shlibpath_var=LD_LIBRARY_PATH
   8110     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8112     soname_spec='${libname}${release}${shared_ext}$major'
   8113     if test "X$HPUX_IA64_MODE" = X32; then
   8114       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   8115     else
   8116       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   8117     fi
   8118     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8119     ;;
   8120    hppa*64*)
   8121      shrext='.sl'
   8122      hardcode_into_libs=yes
   8123      dynamic_linker="$host_os dld.sl"
   8124      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   8125      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   8126      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8127      soname_spec='${libname}${release}${shared_ext}$major'
   8128      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   8129      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   8130      ;;
   8131    *)
   8132     shrext='.sl'
   8133     dynamic_linker="$host_os dld.sl"
   8134     shlibpath_var=SHLIB_PATH
   8135     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   8136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8137     soname_spec='${libname}${release}${shared_ext}$major'
   8138     ;;
   8139   esac
   8140   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   8141   postinstall_cmds='chmod 555 $lib'
   8142   ;;
   8143 
   8144 irix5* | irix6* | nonstopux*)
   8145   case $host_os in
   8146     nonstopux*) version_type=nonstopux ;;
   8147     *)
   8148 	if test "$lt_cv_prog_gnu_ld" = yes; then
   8149 		version_type=linux
   8150 	else
   8151 		version_type=irix
   8152 	fi ;;
   8153   esac
   8154   need_lib_prefix=no
   8155   need_version=no
   8156   soname_spec='${libname}${release}${shared_ext}$major'
   8157   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   8158   case $host_os in
   8159   irix5* | nonstopux*)
   8160     libsuff= shlibsuff=
   8161     ;;
   8162   *)
   8163     case $LD in # libtool.m4 will add one of these switches to LD
   8164     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   8165       libsuff= shlibsuff= libmagic=32-bit;;
   8166     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   8167       libsuff=32 shlibsuff=N32 libmagic=N32;;
   8168     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   8169       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   8170     *) libsuff= shlibsuff= libmagic=never-match;;
   8171     esac
   8172     ;;
   8173   esac
   8174   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   8175   shlibpath_overrides_runpath=no
   8176   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   8177   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   8178   hardcode_into_libs=yes
   8179   ;;
   8180 
   8181 # No shared lib support for Linux oldld, aout, or coff.
   8182 linux*oldld* | linux*aout* | linux*coff*)
   8183   dynamic_linker=no
   8184   ;;
   8185 
   8186 # This must be Linux ELF.
   8187 linux*)
   8188   version_type=linux
   8189   need_lib_prefix=no
   8190   need_version=no
   8191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8192   soname_spec='${libname}${release}${shared_ext}$major'
   8193   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   8194   shlibpath_var=LD_LIBRARY_PATH
   8195   shlibpath_overrides_runpath=no
   8196   # This implies no fast_install, which is unacceptable.
   8197   # Some rework will be needed to allow for fast_install
   8198   # before this can be enabled.
   8199   hardcode_into_libs=yes
   8200 
   8201   # We used to test for /lib/ld.so.1 and disable shared libraries on
   8202   # powerpc, because MkLinux only supported shared libraries with the
   8203   # GNU dynamic linker.  Since this was broken with cross compilers,
   8204   # most powerpc-linux boxes support dynamic linking these days and
   8205   # people can always --disable-shared, the test was removed, and we
   8206   # assume the GNU/Linux dynamic linker is in use.
   8207   dynamic_linker='GNU/Linux ld.so'
   8208   ;;
   8209 
   8210 netbsd*)
   8211   version_type=sunos
   8212   need_lib_prefix=no
   8213   need_version=no
   8214   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   8215     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8216     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8217     dynamic_linker='NetBSD (a.out) ld.so'
   8218   else
   8219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   8220     soname_spec='${libname}${release}${shared_ext}$major'
   8221     dynamic_linker='NetBSD ld.elf_so'
   8222   fi
   8223   shlibpath_var=LD_LIBRARY_PATH
   8224   shlibpath_overrides_runpath=yes
   8225   hardcode_into_libs=yes
   8226   ;;
   8227 
   8228 newsos6)
   8229   version_type=linux
   8230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8231   shlibpath_var=LD_LIBRARY_PATH
   8232   shlibpath_overrides_runpath=yes
   8233   ;;
   8234 
   8235 nto-qnx*)
   8236   version_type=linux
   8237   need_lib_prefix=no
   8238   need_version=no
   8239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8240   soname_spec='${libname}${release}${shared_ext}$major'
   8241   shlibpath_var=LD_LIBRARY_PATH
   8242   shlibpath_overrides_runpath=yes
   8243   ;;
   8244 
   8245 openbsd*)
   8246   version_type=sunos
   8247   need_lib_prefix=no
   8248   need_version=no
   8249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   8251   shlibpath_var=LD_LIBRARY_PATH
   8252   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   8253     case $host_os in
   8254       openbsd2.[89] | openbsd2.[89].*)
   8255 	shlibpath_overrides_runpath=no
   8256 	;;
   8257       *)
   8258 	shlibpath_overrides_runpath=yes
   8259 	;;
   8260       esac
   8261   else
   8262     shlibpath_overrides_runpath=yes
   8263   fi
   8264   ;;
   8265 
   8266 os2*)
   8267   libname_spec='$name'
   8268   shrext=".dll"
   8269   need_lib_prefix=no
   8270   library_names_spec='$libname${shared_ext} $libname.a'
   8271   dynamic_linker='OS/2 ld.exe'
   8272   shlibpath_var=LIBPATH
   8273   ;;
   8274 
   8275 osf3* | osf4* | osf5*)
   8276   version_type=osf
   8277   need_lib_prefix=no
   8278   need_version=no
   8279   soname_spec='${libname}${release}${shared_ext}$major'
   8280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8281   shlibpath_var=LD_LIBRARY_PATH
   8282   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   8283   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   8284   ;;
   8285 
   8286 sco3.2v5*)
   8287   version_type=osf
   8288   soname_spec='${libname}${release}${shared_ext}$major'
   8289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8290   shlibpath_var=LD_LIBRARY_PATH
   8291   ;;
   8292 
   8293 solaris*)
   8294   version_type=linux
   8295   need_lib_prefix=no
   8296   need_version=no
   8297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8298   soname_spec='${libname}${release}${shared_ext}$major'
   8299   shlibpath_var=LD_LIBRARY_PATH
   8300   shlibpath_overrides_runpath=yes
   8301   hardcode_into_libs=yes
   8302   # ldd complains unless libraries are executable
   8303   postinstall_cmds='chmod +x $lib'
   8304   ;;
   8305 
   8306 sunos4*)
   8307   version_type=sunos
   8308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   8309   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   8310   shlibpath_var=LD_LIBRARY_PATH
   8311   shlibpath_overrides_runpath=yes
   8312   if test "$with_gnu_ld" = yes; then
   8313     need_lib_prefix=no
   8314   fi
   8315   need_version=yes
   8316   ;;
   8317 
   8318 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   8319   version_type=linux
   8320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8321   soname_spec='${libname}${release}${shared_ext}$major'
   8322   shlibpath_var=LD_LIBRARY_PATH
   8323   case $host_vendor in
   8324     sni)
   8325       shlibpath_overrides_runpath=no
   8326       need_lib_prefix=no
   8327       export_dynamic_flag_spec='${wl}-Blargedynsym'
   8328       runpath_var=LD_RUN_PATH
   8329       ;;
   8330     siemens)
   8331       need_lib_prefix=no
   8332       ;;
   8333     motorola)
   8334       need_lib_prefix=no
   8335       need_version=no
   8336       shlibpath_overrides_runpath=no
   8337       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   8338       ;;
   8339   esac
   8340   ;;
   8341 
   8342 sysv4*MP*)
   8343   if test -d /usr/nec ;then
   8344     version_type=linux
   8345     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   8346     soname_spec='$libname${shared_ext}.$major'
   8347     shlibpath_var=LD_LIBRARY_PATH
   8348   fi
   8349   ;;
   8350 
   8351 uts4*)
   8352   version_type=linux
   8353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   8354   soname_spec='${libname}${release}${shared_ext}$major'
   8355   shlibpath_var=LD_LIBRARY_PATH
   8356   ;;
   8357 
   8358 *)
   8359   dynamic_linker=no
   8360   ;;
   8361 esac
   8362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   8363 echo "${ECHO_T}$dynamic_linker" >&6; }
   8364 test "$dynamic_linker" = no && can_build_shared=no
   8365 
   8366 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   8367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   8368 hardcode_action=
   8369 if test -n "$hardcode_libdir_flag_spec" || \
   8370    test -n "$runpath_var " || \
   8371    test "X$hardcode_automatic"="Xyes" ; then
   8372 
   8373   # We can hardcode non-existant directories.
   8374   if test "$hardcode_direct" != no &&
   8375      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   8376      # have to relink, otherwise we might link with an installed library
   8377      # when we should be linking with a yet-to-be-installed one
   8378      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
   8379      test "$hardcode_minus_L" != no; then
   8380     # Linking always hardcodes the temporary library directory.
   8381     hardcode_action=relink
   8382   else
   8383     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   8384     hardcode_action=immediate
   8385   fi
   8386 else
   8387   # We cannot hardcode anything, or else we can only hardcode existing
   8388   # directories.
   8389   hardcode_action=unsupported
   8390 fi
   8391 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
   8392 echo "${ECHO_T}$hardcode_action" >&6; }
   8393 
   8394 if test "$hardcode_action" = relink; then
   8395   # Fast installation is not supported
   8396   enable_fast_install=no
   8397 elif test "$shlibpath_overrides_runpath" = yes ||
   8398      test "$enable_shared" = no; then
   8399   # Fast installation is not necessary
   8400   enable_fast_install=needless
   8401 fi
   8402 
   8403 striplib=
   8404 old_striplib=
   8405 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
   8406 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
   8407 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   8408   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   8409   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   8410   { echo "$as_me:$LINENO: result: yes" >&5
   8411 echo "${ECHO_T}yes" >&6; }
   8412 else
   8413 # FIXME - insert some real tests, host_os isn't really good enough
   8414   case $host_os in
   8415    darwin*)
   8416        if test -n "$STRIP" ; then
   8417          striplib="$STRIP -x"
   8418          { echo "$as_me:$LINENO: result: yes" >&5
   8419 echo "${ECHO_T}yes" >&6; }
   8420        else
   8421   { echo "$as_me:$LINENO: result: no" >&5
   8422 echo "${ECHO_T}no" >&6; }
   8423 fi
   8424        ;;
   8425    *)
   8426   { echo "$as_me:$LINENO: result: no" >&5
   8427 echo "${ECHO_T}no" >&6; }
   8428     ;;
   8429   esac
   8430 fi
   8431 
   8432 if test "x$enable_dlopen" != xyes; then
   8433   enable_dlopen=unknown
   8434   enable_dlopen_self=unknown
   8435   enable_dlopen_self_static=unknown
   8436 else
   8437   lt_cv_dlopen=no
   8438   lt_cv_dlopen_libs=
   8439 
   8440   case $host_os in
   8441   beos*)
   8442     lt_cv_dlopen="load_add_on"
   8443     lt_cv_dlopen_libs=
   8444     lt_cv_dlopen_self=yes
   8445     ;;
   8446 
   8447   mingw* | pw32*)
   8448     lt_cv_dlopen="LoadLibrary"
   8449     lt_cv_dlopen_libs=
   8450    ;;
   8451 
   8452   cygwin*)
   8453     lt_cv_dlopen="dlopen"
   8454     lt_cv_dlopen_libs=
   8455    ;;
   8456 
   8457   darwin*)
   8458   # if libdl is installed we need to link against it
   8459     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   8460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   8461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   8462   echo $ECHO_N "(cached) $ECHO_C" >&6
   8463 else
   8464   ac_check_lib_save_LIBS=$LIBS
   8465 LIBS="-ldl  $LIBS"
   8466 cat >conftest.$ac_ext <<_ACEOF
   8467 /* confdefs.h.  */
   8468 _ACEOF
   8469 cat confdefs.h >>conftest.$ac_ext
   8470 cat >>conftest.$ac_ext <<_ACEOF
   8471 /* end confdefs.h.  */
   8472 
   8473 /* Override any GCC internal prototype to avoid an error.
   8474    Use char because int might match the return type of a GCC
   8475    builtin and then its argument prototype would still apply.  */
   8476 #ifdef __cplusplus
   8477 extern "C"
   8478 #endif
   8479 char dlopen ();
   8480 int
   8481 main ()
   8482 {
   8483 return dlopen ();
   8484   ;
   8485   return 0;
   8486 }
   8487 _ACEOF
   8488 rm -f conftest.$ac_objext conftest$ac_exeext
   8489 if { (ac_try="$ac_link"
   8490 case "(($ac_try" in
   8491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8492   *) ac_try_echo=$ac_try;;
   8493 esac
   8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8495   (eval "$ac_link") 2>conftest.er1
   8496   ac_status=$?
   8497   grep -v '^ *+' conftest.er1 >conftest.err
   8498   rm -f conftest.er1
   8499   cat conftest.err >&5
   8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8501   (exit $ac_status); } && {
   8502 	 test -z "$ac_c_werror_flag" ||
   8503 	 test ! -s conftest.err
   8504        } && test -s conftest$ac_exeext &&
   8505        $as_test_x conftest$ac_exeext; then
   8506   ac_cv_lib_dl_dlopen=yes
   8507 else
   8508   echo "$as_me: failed program was:" >&5
   8509 sed 's/^/| /' conftest.$ac_ext >&5
   8510 
   8511 	ac_cv_lib_dl_dlopen=no
   8512 fi
   8513 
   8514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8515       conftest$ac_exeext conftest.$ac_ext
   8516 LIBS=$ac_check_lib_save_LIBS
   8517 fi
   8518 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   8519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   8520 if test $ac_cv_lib_dl_dlopen = yes; then
   8521   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   8522 else
   8523 
   8524     lt_cv_dlopen="dyld"
   8525     lt_cv_dlopen_libs=
   8526     lt_cv_dlopen_self=yes
   8527 
   8528 fi
   8529 
   8530    ;;
   8531 
   8532   *)
   8533     { echo "$as_me:$LINENO: checking for shl_load" >&5
   8534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   8535 if test "${ac_cv_func_shl_load+set}" = set; then
   8536   echo $ECHO_N "(cached) $ECHO_C" >&6
   8537 else
   8538   cat >conftest.$ac_ext <<_ACEOF
   8539 /* confdefs.h.  */
   8540 _ACEOF
   8541 cat confdefs.h >>conftest.$ac_ext
   8542 cat >>conftest.$ac_ext <<_ACEOF
   8543 /* end confdefs.h.  */
   8544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   8545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8546 #define shl_load innocuous_shl_load
   8547 
   8548 /* System header to define __stub macros and hopefully few prototypes,
   8549     which can conflict with char shl_load (); below.
   8550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8551     <limits.h> exists even on freestanding compilers.  */
   8552 
   8553 #ifdef __STDC__
   8554 # include <limits.h>
   8555 #else
   8556 # include <assert.h>
   8557 #endif
   8558 
   8559 #undef shl_load
   8560 
   8561 /* Override any GCC internal prototype to avoid an error.
   8562    Use char because int might match the return type of a GCC
   8563    builtin and then its argument prototype would still apply.  */
   8564 #ifdef __cplusplus
   8565 extern "C"
   8566 #endif
   8567 char shl_load ();
   8568 /* The GNU C library defines this for functions which it implements
   8569     to always fail with ENOSYS.  Some functions are actually named
   8570     something starting with __ and the normal name is an alias.  */
   8571 #if defined __stub_shl_load || defined __stub___shl_load
   8572 choke me
   8573 #endif
   8574 
   8575 int
   8576 main ()
   8577 {
   8578 return shl_load ();
   8579   ;
   8580   return 0;
   8581 }
   8582 _ACEOF
   8583 rm -f conftest.$ac_objext conftest$ac_exeext
   8584 if { (ac_try="$ac_link"
   8585 case "(($ac_try" in
   8586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8587   *) ac_try_echo=$ac_try;;
   8588 esac
   8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8590   (eval "$ac_link") 2>conftest.er1
   8591   ac_status=$?
   8592   grep -v '^ *+' conftest.er1 >conftest.err
   8593   rm -f conftest.er1
   8594   cat conftest.err >&5
   8595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8596   (exit $ac_status); } && {
   8597 	 test -z "$ac_c_werror_flag" ||
   8598 	 test ! -s conftest.err
   8599        } && test -s conftest$ac_exeext &&
   8600        $as_test_x conftest$ac_exeext; then
   8601   ac_cv_func_shl_load=yes
   8602 else
   8603   echo "$as_me: failed program was:" >&5
   8604 sed 's/^/| /' conftest.$ac_ext >&5
   8605 
   8606 	ac_cv_func_shl_load=no
   8607 fi
   8608 
   8609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8610       conftest$ac_exeext conftest.$ac_ext
   8611 fi
   8612 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   8613 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   8614 if test $ac_cv_func_shl_load = yes; then
   8615   lt_cv_dlopen="shl_load"
   8616 else
   8617   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   8618 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   8619 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   8620   echo $ECHO_N "(cached) $ECHO_C" >&6
   8621 else
   8622   ac_check_lib_save_LIBS=$LIBS
   8623 LIBS="-ldld  $LIBS"
   8624 cat >conftest.$ac_ext <<_ACEOF
   8625 /* confdefs.h.  */
   8626 _ACEOF
   8627 cat confdefs.h >>conftest.$ac_ext
   8628 cat >>conftest.$ac_ext <<_ACEOF
   8629 /* end confdefs.h.  */
   8630 
   8631 /* Override any GCC internal prototype to avoid an error.
   8632    Use char because int might match the return type of a GCC
   8633    builtin and then its argument prototype would still apply.  */
   8634 #ifdef __cplusplus
   8635 extern "C"
   8636 #endif
   8637 char shl_load ();
   8638 int
   8639 main ()
   8640 {
   8641 return shl_load ();
   8642   ;
   8643   return 0;
   8644 }
   8645 _ACEOF
   8646 rm -f conftest.$ac_objext conftest$ac_exeext
   8647 if { (ac_try="$ac_link"
   8648 case "(($ac_try" in
   8649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8650   *) ac_try_echo=$ac_try;;
   8651 esac
   8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8653   (eval "$ac_link") 2>conftest.er1
   8654   ac_status=$?
   8655   grep -v '^ *+' conftest.er1 >conftest.err
   8656   rm -f conftest.er1
   8657   cat conftest.err >&5
   8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8659   (exit $ac_status); } && {
   8660 	 test -z "$ac_c_werror_flag" ||
   8661 	 test ! -s conftest.err
   8662        } && test -s conftest$ac_exeext &&
   8663        $as_test_x conftest$ac_exeext; then
   8664   ac_cv_lib_dld_shl_load=yes
   8665 else
   8666   echo "$as_me: failed program was:" >&5
   8667 sed 's/^/| /' conftest.$ac_ext >&5
   8668 
   8669 	ac_cv_lib_dld_shl_load=no
   8670 fi
   8671 
   8672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8673       conftest$ac_exeext conftest.$ac_ext
   8674 LIBS=$ac_check_lib_save_LIBS
   8675 fi
   8676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   8677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   8678 if test $ac_cv_lib_dld_shl_load = yes; then
   8679   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
   8680 else
   8681   { echo "$as_me:$LINENO: checking for dlopen" >&5
   8682 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
   8683 if test "${ac_cv_func_dlopen+set}" = set; then
   8684   echo $ECHO_N "(cached) $ECHO_C" >&6
   8685 else
   8686   cat >conftest.$ac_ext <<_ACEOF
   8687 /* confdefs.h.  */
   8688 _ACEOF
   8689 cat confdefs.h >>conftest.$ac_ext
   8690 cat >>conftest.$ac_ext <<_ACEOF
   8691 /* end confdefs.h.  */
   8692 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   8693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   8694 #define dlopen innocuous_dlopen
   8695 
   8696 /* System header to define __stub macros and hopefully few prototypes,
   8697     which can conflict with char dlopen (); below.
   8698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   8699     <limits.h> exists even on freestanding compilers.  */
   8700 
   8701 #ifdef __STDC__
   8702 # include <limits.h>
   8703 #else
   8704 # include <assert.h>
   8705 #endif
   8706 
   8707 #undef dlopen
   8708 
   8709 /* Override any GCC internal prototype to avoid an error.
   8710    Use char because int might match the return type of a GCC
   8711    builtin and then its argument prototype would still apply.  */
   8712 #ifdef __cplusplus
   8713 extern "C"
   8714 #endif
   8715 char dlopen ();
   8716 /* The GNU C library defines this for functions which it implements
   8717     to always fail with ENOSYS.  Some functions are actually named
   8718     something starting with __ and the normal name is an alias.  */
   8719 #if defined __stub_dlopen || defined __stub___dlopen
   8720 choke me
   8721 #endif
   8722 
   8723 int
   8724 main ()
   8725 {
   8726 return dlopen ();
   8727   ;
   8728   return 0;
   8729 }
   8730 _ACEOF
   8731 rm -f conftest.$ac_objext conftest$ac_exeext
   8732 if { (ac_try="$ac_link"
   8733 case "(($ac_try" in
   8734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8735   *) ac_try_echo=$ac_try;;
   8736 esac
   8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8738   (eval "$ac_link") 2>conftest.er1
   8739   ac_status=$?
   8740   grep -v '^ *+' conftest.er1 >conftest.err
   8741   rm -f conftest.er1
   8742   cat conftest.err >&5
   8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8744   (exit $ac_status); } && {
   8745 	 test -z "$ac_c_werror_flag" ||
   8746 	 test ! -s conftest.err
   8747        } && test -s conftest$ac_exeext &&
   8748        $as_test_x conftest$ac_exeext; then
   8749   ac_cv_func_dlopen=yes
   8750 else
   8751   echo "$as_me: failed program was:" >&5
   8752 sed 's/^/| /' conftest.$ac_ext >&5
   8753 
   8754 	ac_cv_func_dlopen=no
   8755 fi
   8756 
   8757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8758       conftest$ac_exeext conftest.$ac_ext
   8759 fi
   8760 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
   8761 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
   8762 if test $ac_cv_func_dlopen = yes; then
   8763   lt_cv_dlopen="dlopen"
   8764 else
   8765   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   8766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   8767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   8768   echo $ECHO_N "(cached) $ECHO_C" >&6
   8769 else
   8770   ac_check_lib_save_LIBS=$LIBS
   8771 LIBS="-ldl  $LIBS"
   8772 cat >conftest.$ac_ext <<_ACEOF
   8773 /* confdefs.h.  */
   8774 _ACEOF
   8775 cat confdefs.h >>conftest.$ac_ext
   8776 cat >>conftest.$ac_ext <<_ACEOF
   8777 /* end confdefs.h.  */
   8778 
   8779 /* Override any GCC internal prototype to avoid an error.
   8780    Use char because int might match the return type of a GCC
   8781    builtin and then its argument prototype would still apply.  */
   8782 #ifdef __cplusplus
   8783 extern "C"
   8784 #endif
   8785 char dlopen ();
   8786 int
   8787 main ()
   8788 {
   8789 return dlopen ();
   8790   ;
   8791   return 0;
   8792 }
   8793 _ACEOF
   8794 rm -f conftest.$ac_objext conftest$ac_exeext
   8795 if { (ac_try="$ac_link"
   8796 case "(($ac_try" in
   8797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8798   *) ac_try_echo=$ac_try;;
   8799 esac
   8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8801   (eval "$ac_link") 2>conftest.er1
   8802   ac_status=$?
   8803   grep -v '^ *+' conftest.er1 >conftest.err
   8804   rm -f conftest.er1
   8805   cat conftest.err >&5
   8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8807   (exit $ac_status); } && {
   8808 	 test -z "$ac_c_werror_flag" ||
   8809 	 test ! -s conftest.err
   8810        } && test -s conftest$ac_exeext &&
   8811        $as_test_x conftest$ac_exeext; then
   8812   ac_cv_lib_dl_dlopen=yes
   8813 else
   8814   echo "$as_me: failed program was:" >&5
   8815 sed 's/^/| /' conftest.$ac_ext >&5
   8816 
   8817 	ac_cv_lib_dl_dlopen=no
   8818 fi
   8819 
   8820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8821       conftest$ac_exeext conftest.$ac_ext
   8822 LIBS=$ac_check_lib_save_LIBS
   8823 fi
   8824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   8825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   8826 if test $ac_cv_lib_dl_dlopen = yes; then
   8827   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   8828 else
   8829   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   8830 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   8831 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   8832   echo $ECHO_N "(cached) $ECHO_C" >&6
   8833 else
   8834   ac_check_lib_save_LIBS=$LIBS
   8835 LIBS="-lsvld  $LIBS"
   8836 cat >conftest.$ac_ext <<_ACEOF
   8837 /* confdefs.h.  */
   8838 _ACEOF
   8839 cat confdefs.h >>conftest.$ac_ext
   8840 cat >>conftest.$ac_ext <<_ACEOF
   8841 /* end confdefs.h.  */
   8842 
   8843 /* Override any GCC internal prototype to avoid an error.
   8844    Use char because int might match the return type of a GCC
   8845    builtin and then its argument prototype would still apply.  */
   8846 #ifdef __cplusplus
   8847 extern "C"
   8848 #endif
   8849 char dlopen ();
   8850 int
   8851 main ()
   8852 {
   8853 return dlopen ();
   8854   ;
   8855   return 0;
   8856 }
   8857 _ACEOF
   8858 rm -f conftest.$ac_objext conftest$ac_exeext
   8859 if { (ac_try="$ac_link"
   8860 case "(($ac_try" in
   8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8862   *) ac_try_echo=$ac_try;;
   8863 esac
   8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8865   (eval "$ac_link") 2>conftest.er1
   8866   ac_status=$?
   8867   grep -v '^ *+' conftest.er1 >conftest.err
   8868   rm -f conftest.er1
   8869   cat conftest.err >&5
   8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8871   (exit $ac_status); } && {
   8872 	 test -z "$ac_c_werror_flag" ||
   8873 	 test ! -s conftest.err
   8874        } && test -s conftest$ac_exeext &&
   8875        $as_test_x conftest$ac_exeext; then
   8876   ac_cv_lib_svld_dlopen=yes
   8877 else
   8878   echo "$as_me: failed program was:" >&5
   8879 sed 's/^/| /' conftest.$ac_ext >&5
   8880 
   8881 	ac_cv_lib_svld_dlopen=no
   8882 fi
   8883 
   8884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8885       conftest$ac_exeext conftest.$ac_ext
   8886 LIBS=$ac_check_lib_save_LIBS
   8887 fi
   8888 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   8889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   8890 if test $ac_cv_lib_svld_dlopen = yes; then
   8891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   8892 else
   8893   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   8894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   8895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   8896   echo $ECHO_N "(cached) $ECHO_C" >&6
   8897 else
   8898   ac_check_lib_save_LIBS=$LIBS
   8899 LIBS="-ldld  $LIBS"
   8900 cat >conftest.$ac_ext <<_ACEOF
   8901 /* confdefs.h.  */
   8902 _ACEOF
   8903 cat confdefs.h >>conftest.$ac_ext
   8904 cat >>conftest.$ac_ext <<_ACEOF
   8905 /* end confdefs.h.  */
   8906 
   8907 /* Override any GCC internal prototype to avoid an error.
   8908    Use char because int might match the return type of a GCC
   8909    builtin and then its argument prototype would still apply.  */
   8910 #ifdef __cplusplus
   8911 extern "C"
   8912 #endif
   8913 char dld_link ();
   8914 int
   8915 main ()
   8916 {
   8917 return dld_link ();
   8918   ;
   8919   return 0;
   8920 }
   8921 _ACEOF
   8922 rm -f conftest.$ac_objext conftest$ac_exeext
   8923 if { (ac_try="$ac_link"
   8924 case "(($ac_try" in
   8925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   8926   *) ac_try_echo=$ac_try;;
   8927 esac
   8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   8929   (eval "$ac_link") 2>conftest.er1
   8930   ac_status=$?
   8931   grep -v '^ *+' conftest.er1 >conftest.err
   8932   rm -f conftest.er1
   8933   cat conftest.err >&5
   8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   8935   (exit $ac_status); } && {
   8936 	 test -z "$ac_c_werror_flag" ||
   8937 	 test ! -s conftest.err
   8938        } && test -s conftest$ac_exeext &&
   8939        $as_test_x conftest$ac_exeext; then
   8940   ac_cv_lib_dld_dld_link=yes
   8941 else
   8942   echo "$as_me: failed program was:" >&5
   8943 sed 's/^/| /' conftest.$ac_ext >&5
   8944 
   8945 	ac_cv_lib_dld_dld_link=no
   8946 fi
   8947 
   8948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   8949       conftest$ac_exeext conftest.$ac_ext
   8950 LIBS=$ac_check_lib_save_LIBS
   8951 fi
   8952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   8953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   8954 if test $ac_cv_lib_dld_dld_link = yes; then
   8955   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
   8956 fi
   8957 
   8958 
   8959 fi
   8960 
   8961 
   8962 fi
   8963 
   8964 
   8965 fi
   8966 
   8967 
   8968 fi
   8969 
   8970 
   8971 fi
   8972 
   8973     ;;
   8974   esac
   8975 
   8976   if test "x$lt_cv_dlopen" != xno; then
   8977     enable_dlopen=yes
   8978   else
   8979     enable_dlopen=no
   8980   fi
   8981 
   8982   case $lt_cv_dlopen in
   8983   dlopen)
   8984     save_CPPFLAGS="$CPPFLAGS"
   8985     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   8986 
   8987     save_LDFLAGS="$LDFLAGS"
   8988     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   8989 
   8990     save_LIBS="$LIBS"
   8991     LIBS="$lt_cv_dlopen_libs $LIBS"
   8992 
   8993     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
   8994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
   8995 if test "${lt_cv_dlopen_self+set}" = set; then
   8996   echo $ECHO_N "(cached) $ECHO_C" >&6
   8997 else
   8998   	  if test "$cross_compiling" = yes; then :
   8999   lt_cv_dlopen_self=cross
   9000 else
   9001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   9002   lt_status=$lt_dlunknown
   9003   cat > conftest.$ac_ext <<EOF
   9004 #line 9004 "configure"
   9005 #include "confdefs.h"
   9006 
   9007 #if HAVE_DLFCN_H
   9008 #include <dlfcn.h>
   9009 #endif
   9010 
   9011 #include <stdio.h>
   9012 
   9013 #ifdef RTLD_GLOBAL
   9014 #  define LT_DLGLOBAL		RTLD_GLOBAL
   9015 #else
   9016 #  ifdef DL_GLOBAL
   9017 #    define LT_DLGLOBAL		DL_GLOBAL
   9018 #  else
   9019 #    define LT_DLGLOBAL		0
   9020 #  endif
   9021 #endif
   9022 
   9023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   9024    find out it does not work in some platform. */
   9025 #ifndef LT_DLLAZY_OR_NOW
   9026 #  ifdef RTLD_LAZY
   9027 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   9028 #  else
   9029 #    ifdef DL_LAZY
   9030 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   9031 #    else
   9032 #      ifdef RTLD_NOW
   9033 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   9034 #      else
   9035 #        ifdef DL_NOW
   9036 #          define LT_DLLAZY_OR_NOW	DL_NOW
   9037 #        else
   9038 #          define LT_DLLAZY_OR_NOW	0
   9039 #        endif
   9040 #      endif
   9041 #    endif
   9042 #  endif
   9043 #endif
   9044 
   9045 #ifdef __cplusplus
   9046 extern "C" void exit (int);
   9047 #endif
   9048 
   9049 void fnord() { int i=42;}
   9050 int main ()
   9051 {
   9052   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   9053   int status = $lt_dlunknown;
   9054 
   9055   if (self)
   9056     {
   9057       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   9058       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   9059       /* dlclose (self); */
   9060     }
   9061 
   9062     exit (status);
   9063 }
   9064 EOF
   9065   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9066   (eval $ac_link) 2>&5
   9067   ac_status=$?
   9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9069   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   9070     (./conftest; exit; ) 2>/dev/null
   9071     lt_status=$?
   9072     case x$lt_status in
   9073       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   9074       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   9075       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
   9076     esac
   9077   else :
   9078     # compilation failed
   9079     lt_cv_dlopen_self=no
   9080   fi
   9081 fi
   9082 rm -fr conftest*
   9083 
   9084 
   9085 fi
   9086 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
   9087 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
   9088 
   9089     if test "x$lt_cv_dlopen_self" = xyes; then
   9090       LDFLAGS="$LDFLAGS $link_static_flag"
   9091       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
   9092 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
   9093 if test "${lt_cv_dlopen_self_static+set}" = set; then
   9094   echo $ECHO_N "(cached) $ECHO_C" >&6
   9095 else
   9096   	  if test "$cross_compiling" = yes; then :
   9097   lt_cv_dlopen_self_static=cross
   9098 else
   9099   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   9100   lt_status=$lt_dlunknown
   9101   cat > conftest.$ac_ext <<EOF
   9102 #line 9102 "configure"
   9103 #include "confdefs.h"
   9104 
   9105 #if HAVE_DLFCN_H
   9106 #include <dlfcn.h>
   9107 #endif
   9108 
   9109 #include <stdio.h>
   9110 
   9111 #ifdef RTLD_GLOBAL
   9112 #  define LT_DLGLOBAL		RTLD_GLOBAL
   9113 #else
   9114 #  ifdef DL_GLOBAL
   9115 #    define LT_DLGLOBAL		DL_GLOBAL
   9116 #  else
   9117 #    define LT_DLGLOBAL		0
   9118 #  endif
   9119 #endif
   9120 
   9121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   9122    find out it does not work in some platform. */
   9123 #ifndef LT_DLLAZY_OR_NOW
   9124 #  ifdef RTLD_LAZY
   9125 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   9126 #  else
   9127 #    ifdef DL_LAZY
   9128 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   9129 #    else
   9130 #      ifdef RTLD_NOW
   9131 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   9132 #      else
   9133 #        ifdef DL_NOW
   9134 #          define LT_DLLAZY_OR_NOW	DL_NOW
   9135 #        else
   9136 #          define LT_DLLAZY_OR_NOW	0
   9137 #        endif
   9138 #      endif
   9139 #    endif
   9140 #  endif
   9141 #endif
   9142 
   9143 #ifdef __cplusplus
   9144 extern "C" void exit (int);
   9145 #endif
   9146 
   9147 void fnord() { int i=42;}
   9148 int main ()
   9149 {
   9150   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   9151   int status = $lt_dlunknown;
   9152 
   9153   if (self)
   9154     {
   9155       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   9156       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   9157       /* dlclose (self); */
   9158     }
   9159 
   9160     exit (status);
   9161 }
   9162 EOF
   9163   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   9164   (eval $ac_link) 2>&5
   9165   ac_status=$?
   9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   9167   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   9168     (./conftest; exit; ) 2>/dev/null
   9169     lt_status=$?
   9170     case x$lt_status in
   9171       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   9172       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   9173       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
   9174     esac
   9175   else :
   9176     # compilation failed
   9177     lt_cv_dlopen_self_static=no
   9178   fi
   9179 fi
   9180 rm -fr conftest*
   9181 
   9182 
   9183 fi
   9184 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
   9185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
   9186     fi
   9187 
   9188     CPPFLAGS="$save_CPPFLAGS"
   9189     LDFLAGS="$save_LDFLAGS"
   9190     LIBS="$save_LIBS"
   9191     ;;
   9192   esac
   9193 
   9194   case $lt_cv_dlopen_self in
   9195   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   9196   *) enable_dlopen_self=unknown ;;
   9197   esac
   9198 
   9199   case $lt_cv_dlopen_self_static in
   9200   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   9201   *) enable_dlopen_self_static=unknown ;;
   9202   esac
   9203 fi
   9204 
   9205 
   9206 # Report which librarie types wil actually be built
   9207 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
   9208 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
   9209 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
   9210 echo "${ECHO_T}$can_build_shared" >&6; }
   9211 
   9212 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
   9213 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
   9214 test "$can_build_shared" = "no" && enable_shared=no
   9215 
   9216 # On AIX, shared libraries and static libraries use the same namespace, and
   9217 # are all built from PIC.
   9218 case "$host_os" in
   9219 aix3*)
   9220   test "$enable_shared" = yes && enable_static=no
   9221   if test -n "$RANLIB"; then
   9222     archive_cmds="$archive_cmds~\$RANLIB \$lib"
   9223     postinstall_cmds='$RANLIB $lib'
   9224   fi
   9225   ;;
   9226 
   9227 aix4*)
   9228   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
   9229     test "$enable_shared" = yes && enable_static=no
   9230   fi
   9231   ;;
   9232   darwin* | rhapsody*)
   9233   if test "$GCC" = yes; then
   9234     archive_cmds_need_lc=no
   9235     case "$host_os" in
   9236     rhapsody* | darwin1.[012])
   9237       allow_undefined_flag='-undefined suppress'
   9238       ;;
   9239     *) # Darwin 1.3 on
   9240       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   9241       	allow_undefined_flag='-flat_namespace -undefined suppress'
   9242       else
   9243         case ${MACOSX_DEPLOYMENT_TARGET} in
   9244           10.[012])
   9245             allow_undefined_flag='-flat_namespace -undefined suppress'
   9246             ;;
   9247           10.*)
   9248             allow_undefined_flag='-undefined dynamic_lookup'
   9249             ;;
   9250         esac
   9251       fi
   9252       ;;
   9253     esac
   9254     output_verbose_link_cmd='echo'
   9255     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
   9256     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   9257     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   9258     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   9259     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   9260     hardcode_direct=no
   9261     hardcode_automatic=yes
   9262     hardcode_shlibpath_var=unsupported
   9263     whole_archive_flag_spec='-all_load $convenience'
   9264     link_all_deplibs=yes
   9265   else
   9266     ld_shlibs=no
   9267   fi
   9268     ;;
   9269 esac
   9270 { echo "$as_me:$LINENO: result: $enable_shared" >&5
   9271 echo "${ECHO_T}$enable_shared" >&6; }
   9272 
   9273 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
   9274 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
   9275 # Make sure either enable_shared or enable_static is yes.
   9276 test "$enable_shared" = yes || enable_static=yes
   9277 { echo "$as_me:$LINENO: result: $enable_static" >&5
   9278 echo "${ECHO_T}$enable_static" >&6; }
   9279 
   9280 # The else clause should only fire when bootstrapping the
   9281 # libtool distribution, otherwise you forgot to ship ltmain.sh
   9282 # with your package, and you will get complaints that there are
   9283 # no rules to generate ltmain.sh.
   9284 if test -f "$ltmain"; then
   9285   # See if we are running on zsh, and set the options which allow our commands through
   9286   # without removal of \ escapes.
   9287   if test -n "${ZSH_VERSION+set}" ; then
   9288     setopt NO_GLOB_SUBST
   9289   fi
   9290   # Now quote all the things that may contain metacharacters while being
   9291   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   9292   # variables and quote the copies for generation of the libtool script.
   9293   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   9294     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   9295     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   9296     deplibs_check_method reload_flag reload_cmds need_locks \
   9297     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   9298     lt_cv_sys_global_symbol_to_c_name_address \
   9299     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   9300     old_postinstall_cmds old_postuninstall_cmds \
   9301     compiler \
   9302     CC \
   9303     LD \
   9304     lt_prog_compiler_wl \
   9305     lt_prog_compiler_pic \
   9306     lt_prog_compiler_static \
   9307     lt_prog_compiler_no_builtin_flag \
   9308     export_dynamic_flag_spec \
   9309     thread_safe_flag_spec \
   9310     whole_archive_flag_spec \
   9311     enable_shared_with_static_runtimes \
   9312     old_archive_cmds \
   9313     old_archive_from_new_cmds \
   9314     predep_objects \
   9315     postdep_objects \
   9316     predeps \
   9317     postdeps \
   9318     compiler_lib_search_path \
   9319     archive_cmds \
   9320     archive_expsym_cmds \
   9321     postinstall_cmds \
   9322     postuninstall_cmds \
   9323     old_archive_from_expsyms_cmds \
   9324     allow_undefined_flag \
   9325     no_undefined_flag \
   9326     export_symbols_cmds \
   9327     hardcode_libdir_flag_spec \
   9328     hardcode_libdir_flag_spec_ld \
   9329     hardcode_libdir_separator \
   9330     hardcode_automatic \
   9331     module_cmds \
   9332     module_expsym_cmds \
   9333     lt_cv_prog_compiler_c_o \
   9334     exclude_expsyms \
   9335     include_expsyms; do
   9336 
   9337     case $var in
   9338     old_archive_cmds | \
   9339     old_archive_from_new_cmds | \
   9340     archive_cmds | \
   9341     archive_expsym_cmds | \
   9342     module_cmds | \
   9343     module_expsym_cmds | \
   9344     old_archive_from_expsyms_cmds | \
   9345     export_symbols_cmds | \
   9346     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   9347     postinstall_cmds | postuninstall_cmds | \
   9348     old_postinstall_cmds | old_postuninstall_cmds | \
   9349     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   9350       # Double-quote double-evaled strings.
   9351       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   9352       ;;
   9353     *)
   9354       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   9355       ;;
   9356     esac
   9357   done
   9358 
   9359   case $lt_echo in
   9360   *'\$0 --fallback-echo"')
   9361     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   9362     ;;
   9363   esac
   9364 
   9365 cfgfile="${ofile}T"
   9366   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
   9367   $rm -f "$cfgfile"
   9368   { echo "$as_me:$LINENO: creating $ofile" >&5
   9369 echo "$as_me: creating $ofile" >&6;}
   9370 
   9371   cat <<__EOF__ >> "$cfgfile"
   9372 #! $SHELL
   9373 
   9374 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
   9375 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
   9376 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
   9377 #
   9378 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
   9379 # Free Software Foundation, Inc.
   9380 #
   9381 # This file is part of GNU Libtool:
   9382 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
   9383 #
   9384 # This program is free software; you can redistribute it and/or modify
   9385 # it under the terms of the GNU General Public License as published by
   9386 # the Free Software Foundation; either version 2 of the License, or
   9387 # (at your option) any later version.
   9388 #
   9389 # This program is distributed in the hope that it will be useful, but
   9390 # WITHOUT ANY WARRANTY; without even the implied warranty of
   9391 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   9392 # General Public License for more details.
   9393 #
   9394 # You should have received a copy of the GNU General Public License
   9395 # along with this program; if not, write to the Free Software
   9396 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA.
   9397 #
   9398 # As a special exception to the GNU General Public License, if you
   9399 # distribute this file as part of a program that contains a
   9400 # configuration script generated by Autoconf, you may include it under
   9401 # the same distribution terms that you use for the rest of that program.
   9402 
   9403 # A sed program that does not truncate output.
   9404 SED=$lt_SED
   9405 
   9406 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
   9407 Xsed="$SED -e s/^X//"
   9408 
   9409 # The HP-UX ksh and POSIX shell print the target directory to stdout
   9410 # if CDPATH is set.
   9411 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   9412 
   9413 # The names of the tagged configurations supported by this script.
   9414 available_tags=
   9415 
   9416 # ### BEGIN LIBTOOL CONFIG
   9417 
   9418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   9419 
   9420 # Shell to use when invoking shell scripts.
   9421 SHELL=$lt_SHELL
   9422 
   9423 # Whether or not to build shared libraries.
   9424 build_libtool_libs=$enable_shared
   9425 
   9426 # Whether or not to build static libraries.
   9427 build_old_libs=$enable_static
   9428 
   9429 # Whether or not to add -lc for building shared libraries.
   9430 build_libtool_need_lc=$archive_cmds_need_lc
   9431 
   9432 # Whether or not to disallow shared libs when runtime libs are static
   9433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
   9434 
   9435 # Whether or not to optimize for fast installation.
   9436 fast_install=$enable_fast_install
   9437 
   9438 # The host system.
   9439 host_alias=$host_alias
   9440 host=$host
   9441 
   9442 # An echo program that does not interpret backslashes.
   9443 echo=$lt_echo
   9444 
   9445 # The archiver.
   9446 AR=$lt_AR
   9447 AR_FLAGS=$lt_AR_FLAGS
   9448 
   9449 # A C compiler.
   9450 LTCC=$lt_LTCC
   9451 
   9452 # A language-specific compiler.
   9453 CC=$lt_compiler
   9454 
   9455 # Is the compiler the GNU C compiler?
   9456 with_gcc=$GCC
   9457 
   9458 # An ERE matcher.
   9459 EGREP=$lt_EGREP
   9460 
   9461 # The linker used to build libraries.
   9462 LD=$lt_LD
   9463 
   9464 # Whether we need hard or soft links.
   9465 LN_S=$lt_LN_S
   9466 
   9467 # A BSD-compatible nm program.
   9468 NM=$lt_NM
   9469 
   9470 # A symbol stripping program
   9471 STRIP="$STRIP"
   9472 
   9473 # Used to examine libraries when file_magic_cmd begins "file"
   9474 MAGIC_CMD=$MAGIC_CMD
   9475 
   9476 # Used on cygwin: DLL creation program.
   9477 DLLTOOL="$DLLTOOL"
   9478 
   9479 # Used on cygwin: object dumper.
   9480 OBJDUMP="$OBJDUMP"
   9481 
   9482 # Used on cygwin: assembler.
   9483 AS="$AS"
   9484 
   9485 # The name of the directory that contains temporary libtool files.
   9486 objdir=$objdir
   9487 
   9488 # How to create reloadable object files.
   9489 reload_flag=$lt_reload_flag
   9490 reload_cmds=$lt_reload_cmds
   9491 
   9492 # How to pass a linker flag through the compiler.
   9493 wl=$lt_lt_prog_compiler_wl
   9494 
   9495 # Object file suffix (normally "o").
   9496 objext="$ac_objext"
   9497 
   9498 # Old archive suffix (normally "a").
   9499 libext="$libext"
   9500 
   9501 # Shared library suffix (normally ".so").
   9502 shrext='$shrext'
   9503 
   9504 # Executable file suffix (normally "").
   9505 exeext="$exeext"
   9506 
   9507 # Additional compiler flags for building library objects.
   9508 pic_flag=$lt_lt_prog_compiler_pic
   9509 pic_mode=$pic_mode
   9510 
   9511 # What is the maximum length of a command?
   9512 max_cmd_len=$lt_cv_sys_max_cmd_len
   9513 
   9514 # Does compiler simultaneously support -c and -o options?
   9515 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
   9516 
   9517 # Must we lock files when doing compilation ?
   9518 need_locks=$lt_need_locks
   9519 
   9520 # Do we need the lib prefix for modules?
   9521 need_lib_prefix=$need_lib_prefix
   9522 
   9523 # Do we need a version for libraries?
   9524 need_version=$need_version
   9525 
   9526 # Whether dlopen is supported.
   9527 dlopen_support=$enable_dlopen
   9528 
   9529 # Whether dlopen of programs is supported.
   9530 dlopen_self=$enable_dlopen_self
   9531 
   9532 # Whether dlopen of statically linked programs is supported.
   9533 dlopen_self_static=$enable_dlopen_self_static
   9534 
   9535 # Compiler flag to prevent dynamic linking.
   9536 link_static_flag=$lt_lt_prog_compiler_static
   9537 
   9538 # Compiler flag to turn off builtin functions.
   9539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
   9540 
   9541 # Compiler flag to allow reflexive dlopens.
   9542 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
   9543 
   9544 # Compiler flag to generate shared objects directly from archives.
   9545 whole_archive_flag_spec=$lt_whole_archive_flag_spec
   9546 
   9547 # Compiler flag to generate thread-safe objects.
   9548 thread_safe_flag_spec=$lt_thread_safe_flag_spec
   9549 
   9550 # Library versioning type.
   9551 version_type=$version_type
   9552 
   9553 # Format of library name prefix.
   9554 libname_spec=$lt_libname_spec
   9555 
   9556 # List of archive names.  First name is the real one, the rest are links.
   9557 # The last name is the one that the linker finds with -lNAME.
   9558 library_names_spec=$lt_library_names_spec
   9559 
   9560 # The coded name of the library, if different from the real name.
   9561 soname_spec=$lt_soname_spec
   9562 
   9563 # Commands used to build and install an old-style archive.
   9564 RANLIB=$lt_RANLIB
   9565 old_archive_cmds=$lt_old_archive_cmds
   9566 old_postinstall_cmds=$lt_old_postinstall_cmds
   9567 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   9568 
   9569 # Create an old-style archive from a shared archive.
   9570 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
   9571 
   9572 # Create a temporary old-style archive to link instead of a shared archive.
   9573 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
   9574 
   9575 # Commands used to build and install a shared archive.
   9576 archive_cmds=$lt_archive_cmds
   9577 archive_expsym_cmds=$lt_archive_expsym_cmds
   9578 postinstall_cmds=$lt_postinstall_cmds
   9579 postuninstall_cmds=$lt_postuninstall_cmds
   9580 
   9581 # Commands used to build a loadable module (assumed same as above if empty)
   9582 module_cmds=$lt_module_cmds
   9583 module_expsym_cmds=$lt_module_expsym_cmds
   9584 
   9585 # Commands to strip libraries.
   9586 old_striplib=$lt_old_striplib
   9587 striplib=$lt_striplib
   9588 
   9589 # Dependencies to place before the objects being linked to create a
   9590 # shared library.
   9591 predep_objects=$lt_predep_objects
   9592 
   9593 # Dependencies to place after the objects being linked to create a
   9594 # shared library.
   9595 postdep_objects=$lt_postdep_objects
   9596 
   9597 # Dependencies to place before the objects being linked to create a
   9598 # shared library.
   9599 predeps=$lt_predeps
   9600 
   9601 # Dependencies to place after the objects being linked to create a
   9602 # shared library.
   9603 postdeps=$lt_postdeps
   9604 
   9605 # The library search path used internally by the compiler when linking
   9606 # a shared library.
   9607 compiler_lib_search_path=$lt_compiler_lib_search_path
   9608 
   9609 # Method to check whether dependent libraries are shared objects.
   9610 deplibs_check_method=$lt_deplibs_check_method
   9611 
   9612 # Command to use when deplibs_check_method == file_magic.
   9613 file_magic_cmd=$lt_file_magic_cmd
   9614 
   9615 # Flag that allows shared libraries with undefined symbols to be built.
   9616 allow_undefined_flag=$lt_allow_undefined_flag
   9617 
   9618 # Flag that forces no undefined symbols.
   9619 no_undefined_flag=$lt_no_undefined_flag
   9620 
   9621 # Commands used to finish a libtool library installation in a directory.
   9622 finish_cmds=$lt_finish_cmds
   9623 
   9624 # Same as above, but a single script fragment to be evaled but not shown.
   9625 finish_eval=$lt_finish_eval
   9626 
   9627 # Take the output of nm and produce a listing of raw symbols and C names.
   9628 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   9629 
   9630 # Transform the output of nm in a proper C declaration
   9631 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   9632 
   9633 # Transform the output of nm in a C name address pair
   9634 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   9635 
   9636 # This is the shared library runtime path variable.
   9637 runpath_var=$runpath_var
   9638 
   9639 # This is the shared library path variable.
   9640 shlibpath_var=$shlibpath_var
   9641 
   9642 # Is shlibpath searched before the hard-coded library search path?
   9643 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   9644 
   9645 # How to hardcode a shared library path into an executable.
   9646 hardcode_action=$hardcode_action
   9647 
   9648 # Whether we should hardcode library paths into libraries.
   9649 hardcode_into_libs=$hardcode_into_libs
   9650 
   9651 # Flag to hardcode \$libdir into a binary during linking.
   9652 # This must work even if \$libdir does not exist.
   9653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
   9654 
   9655 # If ld is used when linking, flag to hardcode \$libdir into
   9656 # a binary during linking. This must work even if \$libdir does
   9657 # not exist.
   9658 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
   9659 
   9660 # Whether we need a single -rpath flag with a separated argument.
   9661 hardcode_libdir_separator=$lt_hardcode_libdir_separator
   9662 
   9663 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   9664 # resulting binary.
   9665 hardcode_direct=$hardcode_direct
   9666 
   9667 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   9668 # resulting binary.
   9669 hardcode_minus_L=$hardcode_minus_L
   9670 
   9671 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   9672 # the resulting binary.
   9673 hardcode_shlibpath_var=$hardcode_shlibpath_var
   9674 
   9675 # Set to yes if building a shared library automatically hardcodes DIR into the library
   9676 # and all subsequent libraries and executables linked against it.
   9677 hardcode_automatic=$hardcode_automatic
   9678 
   9679 # Variables whose values should be saved in libtool wrapper scripts and
   9680 # restored at relink time.
   9681 variables_saved_for_relink="$variables_saved_for_relink"
   9682 
   9683 # Whether libtool must link a program against all its dependency libraries.
   9684 link_all_deplibs=$link_all_deplibs
   9685 
   9686 # Compile-time system search path for libraries
   9687 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   9688 
   9689 # Run-time system search path for libraries
   9690 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   9691 
   9692 # Fix the shell variable \$srcfile for the compiler.
   9693 fix_srcfile_path="$fix_srcfile_path"
   9694 
   9695 # Set to yes if exported symbols are required.
   9696 always_export_symbols=$always_export_symbols
   9697 
   9698 # The commands to list exported symbols.
   9699 export_symbols_cmds=$lt_export_symbols_cmds
   9700 
   9701 # The commands to extract the exported symbol list from a shared archive.
   9702 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   9703 
   9704 # Symbols that should not be listed in the preloaded symbols.
   9705 exclude_expsyms=$lt_exclude_expsyms
   9706 
   9707 # Symbols that must always be exported.
   9708 include_expsyms=$lt_include_expsyms
   9709 
   9710 # ### END LIBTOOL CONFIG
   9711 
   9712 __EOF__
   9713 
   9714 
   9715   case $host_os in
   9716   aix3*)
   9717     cat <<\EOF >> "$cfgfile"
   9718 
   9719 # AIX sometimes has problems with the GCC collect2 program.  For some
   9720 # reason, if we set the COLLECT_NAMES environment variable, the problems
   9721 # vanish in a puff of smoke.
   9722 if test "X${COLLECT_NAMES+set}" != Xset; then
   9723   COLLECT_NAMES=
   9724   export COLLECT_NAMES
   9725 fi
   9726 EOF
   9727     ;;
   9728   esac
   9729 
   9730   # We use sed instead of cat because bash on DJGPP gets confused if
   9731   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   9732   # text mode, it properly converts lines to CR/LF.  This bash problem
   9733   # is reportedly fixed, but why not run on old versions too?
   9734   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
   9735 
   9736   mv -f "$cfgfile" "$ofile" || \
   9737     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   9738   chmod +x "$ofile"
   9739 
   9740 else
   9741   # If there is no Makefile yet, we rely on a make rule to execute
   9742   # `config.status --recheck' to rerun these tests and create the
   9743   # libtool script then.
   9744   test -f Makefile && make "$ltmain"
   9745 fi
   9746 
   9747 
   9748 ac_ext=c
   9749 ac_cpp='$CPP $CPPFLAGS'
   9750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   9753 
   9754 CC="$lt_save_CC"
   9755 
   9756 
   9757 # Check whether --with-tags was given.
   9758 if test "${with_tags+set}" = set; then
   9759   withval=$with_tags; tagnames="$withval"
   9760 fi
   9761 
   9762 
   9763 if test -f "$ltmain" && test -n "$tagnames"; then
   9764   if test ! -f "${ofile}"; then
   9765     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
   9766 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
   9767   fi
   9768 
   9769   if test -z "$LTCC"; then
   9770     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
   9771     if test -z "$LTCC"; then
   9772       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
   9773 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
   9774     else
   9775       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
   9776 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
   9777     fi
   9778   fi
   9779 
   9780   # Extract list of available tagged configurations in $ofile.
   9781   # Note that this assumes the entire list is on one line.
   9782   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
   9783 
   9784   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
   9785   for tagname in $tagnames; do
   9786     IFS="$lt_save_ifs"
   9787     # Check whether tagname contains only valid characters
   9788     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
   9789     "") ;;
   9790     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
   9791 echo "$as_me: error: invalid tag name: $tagname" >&2;}
   9792    { (exit 1); exit 1; }; }
   9793 	;;
   9794     esac
   9795 
   9796     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
   9797     then
   9798       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
   9799 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
   9800    { (exit 1); exit 1; }; }
   9801     fi
   9802 
   9803     # Update the list of available tags.
   9804     if test -n "$tagname"; then
   9805       echo appending configuration tag \"$tagname\" to $ofile
   9806 
   9807       case $tagname in
   9808       CXX)
   9809 	if test -n "$CXX" && test "X$CXX" != "Xno"; then
   9810 	  ac_ext=cpp
   9811 ac_cpp='$CXXCPP $CPPFLAGS'
   9812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   9813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   9814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   9815 
   9816 
   9817 
   9818 
   9819 archive_cmds_need_lc_CXX=no
   9820 allow_undefined_flag_CXX=
   9821 always_export_symbols_CXX=no
   9822 archive_expsym_cmds_CXX=
   9823 export_dynamic_flag_spec_CXX=
   9824 hardcode_direct_CXX=no
   9825 hardcode_libdir_flag_spec_CXX=
   9826 hardcode_libdir_flag_spec_ld_CXX=
   9827 hardcode_libdir_separator_CXX=
   9828 hardcode_minus_L_CXX=no
   9829 hardcode_automatic_CXX=no
   9830 module_cmds_CXX=
   9831 module_expsym_cmds_CXX=
   9832 link_all_deplibs_CXX=unknown
   9833 old_archive_cmds_CXX=$old_archive_cmds
   9834 no_undefined_flag_CXX=
   9835 whole_archive_flag_spec_CXX=
   9836 enable_shared_with_static_runtimes_CXX=no
   9837 
   9838 # Dependencies to place before and after the object being linked:
   9839 predep_objects_CXX=
   9840 postdep_objects_CXX=
   9841 predeps_CXX=
   9842 postdeps_CXX=
   9843 compiler_lib_search_path_CXX=
   9844 
   9845 # Source file extension for C++ test sources.
   9846 ac_ext=cc
   9847 
   9848 # Object file extension for compiled C++ test sources.
   9849 objext=o
   9850 objext_CXX=$objext
   9851 
   9852 # Code to be used in simple compile tests
   9853 lt_simple_compile_test_code="int some_variable = 0;\n"
   9854 
   9855 # Code to be used in simple link tests
   9856 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
   9857 
   9858 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   9859 
   9860 # If no C compiler was specified, use CC.
   9861 LTCC=${LTCC-"$CC"}
   9862 
   9863 # Allow CC to be a program name with arguments.
   9864 compiler=$CC
   9865 
   9866 
   9867 # Allow CC to be a program name with arguments.
   9868 lt_save_CC=$CC
   9869 lt_save_LD=$LD
   9870 lt_save_GCC=$GCC
   9871 GCC=$GXX
   9872 lt_save_with_gnu_ld=$with_gnu_ld
   9873 lt_save_path_LD=$lt_cv_path_LD
   9874 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
   9875   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
   9876 else
   9877   unset lt_cv_prog_gnu_ld
   9878 fi
   9879 if test -n "${lt_cv_path_LDCXX+set}"; then
   9880   lt_cv_path_LD=$lt_cv_path_LDCXX
   9881 else
   9882   unset lt_cv_path_LD
   9883 fi
   9884 test -z "${LDCXX+set}" || LD=$LDCXX
   9885 CC=${CXX-"c++"}
   9886 compiler=$CC
   9887 compiler_CXX=$CC
   9888 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
   9889 
   9890 # We don't want -fno-exception wen compiling C++ code, so set the
   9891 # no_builtin_flag separately
   9892 if test "$GXX" = yes; then
   9893   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
   9894 else
   9895   lt_prog_compiler_no_builtin_flag_CXX=
   9896 fi
   9897 
   9898 if test "$GXX" = yes; then
   9899   # Set up default GNU C++ configuration
   9900 
   9901 
   9902 # Check whether --with-gnu-ld was given.
   9903 if test "${with_gnu_ld+set}" = set; then
   9904   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   9905 else
   9906   with_gnu_ld=no
   9907 fi
   9908 
   9909 ac_prog=ld
   9910 if test "$GCC" = yes; then
   9911   # Check if gcc -print-prog-name=ld gives a path.
   9912   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
   9913 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
   9914   case $host in
   9915   *-*-mingw*)
   9916     # gcc leaves a trailing carriage return which upsets mingw
   9917     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   9918   *)
   9919     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   9920   esac
   9921   case $ac_prog in
   9922     # Accept absolute paths.
   9923     [\\/]* | ?:[\\/]*)
   9924       re_direlt='/[^/][^/]*/\.\./'
   9925       # Canonicalize the pathname of ld
   9926       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
   9927       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   9928 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
   9929       done
   9930       test -z "$LD" && LD="$ac_prog"
   9931       ;;
   9932   "")
   9933     # If it fails, then pretend we aren't using GCC.
   9934     ac_prog=ld
   9935     ;;
   9936   *)
   9937     # If it is relative, then search for the first ld in PATH.
   9938     with_gnu_ld=unknown
   9939     ;;
   9940   esac
   9941 elif test "$with_gnu_ld" = yes; then
   9942   { echo "$as_me:$LINENO: checking for GNU ld" >&5
   9943 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
   9944 else
   9945   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
   9946 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
   9947 fi
   9948 if test "${lt_cv_path_LD+set}" = set; then
   9949   echo $ECHO_N "(cached) $ECHO_C" >&6
   9950 else
   9951   if test -z "$LD"; then
   9952   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   9953   for ac_dir in $PATH; do
   9954     IFS="$lt_save_ifs"
   9955     test -z "$ac_dir" && ac_dir=.
   9956     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   9957       lt_cv_path_LD="$ac_dir/$ac_prog"
   9958       # Check to see if the program is GNU ld.  I'd rather use --version,
   9959       # but apparently some GNU ld's only accept -v.
   9960       # Break only if it was the GNU/non-GNU ld that we prefer.
   9961       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
   9962       *GNU* | *'with BFD'*)
   9963 	test "$with_gnu_ld" != no && break
   9964 	;;
   9965       *)
   9966 	test "$with_gnu_ld" != yes && break
   9967 	;;
   9968       esac
   9969     fi
   9970   done
   9971   IFS="$lt_save_ifs"
   9972 else
   9973   lt_cv_path_LD="$LD" # Let the user override the test with a path.
   9974 fi
   9975 fi
   9976 
   9977 LD="$lt_cv_path_LD"
   9978 if test -n "$LD"; then
   9979   { echo "$as_me:$LINENO: result: $LD" >&5
   9980 echo "${ECHO_T}$LD" >&6; }
   9981 else
   9982   { echo "$as_me:$LINENO: result: no" >&5
   9983 echo "${ECHO_T}no" >&6; }
   9984 fi
   9985 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
   9986 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
   9987    { (exit 1); exit 1; }; }
   9988 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
   9989 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
   9990 if test "${lt_cv_prog_gnu_ld+set}" = set; then
   9991   echo $ECHO_N "(cached) $ECHO_C" >&6
   9992 else
   9993   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   9994 case `$LD -v 2>&1 </dev/null` in
   9995 *GNU* | *'with BFD'*)
   9996   lt_cv_prog_gnu_ld=yes
   9997   ;;
   9998 *)
   9999   lt_cv_prog_gnu_ld=no
   10000   ;;
   10001 esac
   10002 fi
   10003 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
   10004 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
   10005 with_gnu_ld=$lt_cv_prog_gnu_ld
   10006 
   10007 
   10008 
   10009   # Check if GNU C++ uses GNU ld as the underlying linker, since the
   10010   # archiving commands below assume that GNU ld is being used.
   10011   if test "$with_gnu_ld" = yes; then
   10012     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10013     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   10014 
   10015     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
   10016     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   10017 
   10018     # If archive_cmds runs LD, not CC, wlarc should be empty
   10019     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
   10020     #     investigate it a little bit more. (MM)
   10021     wlarc='${wl}'
   10022 
   10023     # ancient GNU ld didn't support --whole-archive et. al.
   10024     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
   10025 	grep 'no-whole-archive' > /dev/null; then
   10026       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   10027     else
   10028       whole_archive_flag_spec_CXX=
   10029     fi
   10030   else
   10031     with_gnu_ld=no
   10032     wlarc=
   10033 
   10034     # A generic and very simple default shared library creation
   10035     # command for GNU C++ for the case where it uses the native
   10036     # linker, instead of GNU ld.  If possible, this setting should
   10037     # overridden to take advantage of the native linker features on
   10038     # the platform it is being used on.
   10039     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
   10040   fi
   10041 
   10042   # Commands to make compiler produce verbose output that lists
   10043   # what "hidden" libraries, object files and flags are used when
   10044   # linking a shared library.
   10045   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
   10046 
   10047 else
   10048   GXX=no
   10049   with_gnu_ld=no
   10050   wlarc=
   10051 fi
   10052 
   10053 # PORTME: fill in a description of your system's C++ link characteristics
   10054 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   10055 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   10056 ld_shlibs_CXX=yes
   10057 case $host_os in
   10058   aix3*)
   10059     # FIXME: insert proper C++ library support
   10060     ld_shlibs_CXX=no
   10061     ;;
   10062   aix4* | aix5*)
   10063     if test "$host_cpu" = ia64; then
   10064       # On IA64, the linker does run time linking by default, so we don't
   10065       # have to do anything special.
   10066       aix_use_runtimelinking=no
   10067       exp_sym_flag='-Bexport'
   10068       no_entry_flag=""
   10069     else
   10070       aix_use_runtimelinking=no
   10071 
   10072       # Test if we are trying to use run time linking or normal
   10073       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
   10074       # need to do runtime linking.
   10075       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
   10076 	for ld_flag in $LDFLAGS; do
   10077 	  case $ld_flag in
   10078 	  *-brtl*)
   10079 	    aix_use_runtimelinking=yes
   10080 	    break
   10081 	    ;;
   10082 	  esac
   10083 	done
   10084       esac
   10085 
   10086       exp_sym_flag='-bexport'
   10087       no_entry_flag='-bnoentry'
   10088     fi
   10089 
   10090     # When large executables or shared objects are built, AIX ld can
   10091     # have problems creating the table of contents.  If linking a library
   10092     # or program results in "error TOC overflow" add -mminimal-toc to
   10093     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   10094     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   10095 
   10096     archive_cmds_CXX=''
   10097     hardcode_direct_CXX=yes
   10098     hardcode_libdir_separator_CXX=':'
   10099     link_all_deplibs_CXX=yes
   10100 
   10101     if test "$GXX" = yes; then
   10102       case $host_os in aix4.012|aix4.012.*)
   10103       # We only want to do this on AIX 4.2 and lower, the check
   10104       # below for broken collect2 doesn't work under 4.3+
   10105 	collect2name=`${CC} -print-prog-name=collect2`
   10106 	if test -f "$collect2name" && \
   10107 	   strings "$collect2name" | grep resolve_lib_name >/dev/null
   10108 	then
   10109 	  # We have reworked collect2
   10110 	  hardcode_direct_CXX=yes
   10111 	else
   10112 	  # We have old collect2
   10113 	  hardcode_direct_CXX=unsupported
   10114 	  # It fails to find uninstalled libraries when the uninstalled
   10115 	  # path is not listed in the libpath.  Setting hardcode_minus_L
   10116 	  # to unsupported forces relinking
   10117 	  hardcode_minus_L_CXX=yes
   10118 	  hardcode_libdir_flag_spec_CXX='-L$libdir'
   10119 	  hardcode_libdir_separator_CXX=
   10120 	fi
   10121       esac
   10122       shared_flag='-shared'
   10123     else
   10124       # not using gcc
   10125       if test "$host_cpu" = ia64; then
   10126 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   10127 	# chokes on -Wl,-G. The following line is correct:
   10128 	shared_flag='-G'
   10129       else
   10130 	if test "$aix_use_runtimelinking" = yes; then
   10131 	  shared_flag='${wl}-G'
   10132 	else
   10133 	  shared_flag='${wl}-bM:SRE'
   10134 	fi
   10135       fi
   10136     fi
   10137 
   10138     # It seems that -bexpall does not export symbols beginning with
   10139     # underscore (_), so it is better to generate a list of symbols to export.
   10140     always_export_symbols_CXX=yes
   10141     if test "$aix_use_runtimelinking" = yes; then
   10142       # Warning - without using the other runtime loading flags (-brtl),
   10143       # -berok will link without error, but may produce a broken library.
   10144       allow_undefined_flag_CXX='-berok'
   10145       # Determine the default libpath from the value encoded in an empty executable.
   10146       cat >conftest.$ac_ext <<_ACEOF
   10147 /* confdefs.h.  */
   10148 _ACEOF
   10149 cat confdefs.h >>conftest.$ac_ext
   10150 cat >>conftest.$ac_ext <<_ACEOF
   10151 /* end confdefs.h.  */
   10152 
   10153 int
   10154 main ()
   10155 {
   10156 
   10157   ;
   10158   return 0;
   10159 }
   10160 _ACEOF
   10161 rm -f conftest.$ac_objext conftest$ac_exeext
   10162 if { (ac_try="$ac_link"
   10163 case "(($ac_try" in
   10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10165   *) ac_try_echo=$ac_try;;
   10166 esac
   10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10168   (eval "$ac_link") 2>conftest.er1
   10169   ac_status=$?
   10170   grep -v '^ *+' conftest.er1 >conftest.err
   10171   rm -f conftest.er1
   10172   cat conftest.err >&5
   10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10174   (exit $ac_status); } && {
   10175 	 test -z "$ac_cxx_werror_flag" ||
   10176 	 test ! -s conftest.err
   10177        } && test -s conftest$ac_exeext &&
   10178        $as_test_x conftest$ac_exeext; then
   10179 
   10180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   10181 }'`
   10182 # Check for a 64-bit object if we didn't find anything.
   10183 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   10184 }'`; fi
   10185 else
   10186   echo "$as_me: failed program was:" >&5
   10187 sed 's/^/| /' conftest.$ac_ext >&5
   10188 
   10189 
   10190 fi
   10191 
   10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10193       conftest$ac_exeext conftest.$ac_ext
   10194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   10195 
   10196       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
   10197 
   10198       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   10199      else
   10200       if test "$host_cpu" = ia64; then
   10201 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
   10202 	allow_undefined_flag_CXX="-z nodefs"
   10203 	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
   10204       else
   10205 	# Determine the default libpath from the value encoded in an empty executable.
   10206 	cat >conftest.$ac_ext <<_ACEOF
   10207 /* confdefs.h.  */
   10208 _ACEOF
   10209 cat confdefs.h >>conftest.$ac_ext
   10210 cat >>conftest.$ac_ext <<_ACEOF
   10211 /* end confdefs.h.  */
   10212 
   10213 int
   10214 main ()
   10215 {
   10216 
   10217   ;
   10218   return 0;
   10219 }
   10220 _ACEOF
   10221 rm -f conftest.$ac_objext conftest$ac_exeext
   10222 if { (ac_try="$ac_link"
   10223 case "(($ac_try" in
   10224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   10225   *) ac_try_echo=$ac_try;;
   10226 esac
   10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   10228   (eval "$ac_link") 2>conftest.er1
   10229   ac_status=$?
   10230   grep -v '^ *+' conftest.er1 >conftest.err
   10231   rm -f conftest.er1
   10232   cat conftest.err >&5
   10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10234   (exit $ac_status); } && {
   10235 	 test -z "$ac_cxx_werror_flag" ||
   10236 	 test ! -s conftest.err
   10237        } && test -s conftest$ac_exeext &&
   10238        $as_test_x conftest$ac_exeext; then
   10239 
   10240 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   10241 }'`
   10242 # Check for a 64-bit object if we didn't find anything.
   10243 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   10244 }'`; fi
   10245 else
   10246   echo "$as_me: failed program was:" >&5
   10247 sed 's/^/| /' conftest.$ac_ext >&5
   10248 
   10249 
   10250 fi
   10251 
   10252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   10253       conftest$ac_exeext conftest.$ac_ext
   10254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   10255 
   10256 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
   10257 	# Warning - without using the other run time loading flags,
   10258 	# -berok will link without error, but may produce a broken library.
   10259 	no_undefined_flag_CXX=' ${wl}-bernotok'
   10260 	allow_undefined_flag_CXX=' ${wl}-berok'
   10261 	# -bexpall does not export symbols beginning with underscore (_)
   10262 	always_export_symbols_CXX=yes
   10263 	# Exported symbols can be pulled into shared objects from archives
   10264 	whole_archive_flag_spec_CXX=' '
   10265 	archive_cmds_need_lc_CXX=yes
   10266 	# This is similar to how AIX traditionally builds it's shared libraries.
   10267 	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   10268       fi
   10269     fi
   10270     ;;
   10271   chorus*)
   10272     case $cc_basename in
   10273       *)
   10274 	# FIXME: insert proper C++ library support
   10275 	ld_shlibs_CXX=no
   10276 	;;
   10277     esac
   10278     ;;
   10279 
   10280   cygwin* | mingw* | pw32*)
   10281     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
   10282     # as there is no search path for DLLs.
   10283     hardcode_libdir_flag_spec_CXX='-L$libdir'
   10284     allow_undefined_flag_CXX=unsupported
   10285     always_export_symbols_CXX=no
   10286     enable_shared_with_static_runtimes_CXX=yes
   10287 
   10288     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   10289       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   10290       # If the export-symbols file already is a .def file (1st line
   10291       # is EXPORTS), use it as is; otherwise, prepend...
   10292       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   10293 	cp $export_symbols $output_objdir/$soname.def;
   10294       else
   10295 	echo EXPORTS > $output_objdir/$soname.def;
   10296 	cat $export_symbols >> $output_objdir/$soname.def;
   10297       fi~
   10298       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   10299     else
   10300       ld_shlibs_CXX=no
   10301     fi
   10302   ;;
   10303 
   10304   darwin* | rhapsody*)
   10305   if test "$GXX" = yes; then
   10306     archive_cmds_need_lc_CXX=no
   10307     case "$host_os" in
   10308     rhapsody* | darwin1.[012])
   10309       allow_undefined_flag_CXX='-undefined suppress'
   10310       ;;
   10311     *) # Darwin 1.3 on
   10312       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   10313       	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
   10314       else
   10315         case ${MACOSX_DEPLOYMENT_TARGET} in
   10316           10.[012])
   10317             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
   10318             ;;
   10319           10.*)
   10320             allow_undefined_flag_CXX='-undefined dynamic_lookup'
   10321             ;;
   10322         esac
   10323       fi
   10324       ;;
   10325     esac
   10326     lt_int_apple_cc_single_mod=no
   10327     output_verbose_link_cmd='echo'
   10328     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   10329       lt_int_apple_cc_single_mod=yes
   10330     fi
   10331     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   10332       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   10333     else
   10334       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   10335     fi
   10336     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   10337 
   10338     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   10339     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   10340       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   10341     else
   10342       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   10343     fi
   10344     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   10345     hardcode_direct_CXX=no
   10346     hardcode_automatic_CXX=yes
   10347     hardcode_shlibpath_var_CXX=unsupported
   10348     whole_archive_flag_spec_CXX='-all_load $convenience'
   10349     link_all_deplibs_CXX=yes
   10350   else
   10351     ld_shlibs_CXX=no
   10352   fi
   10353     ;;
   10354 
   10355   dgux*)
   10356     case $cc_basename in
   10357       ec++)
   10358 	# FIXME: insert proper C++ library support
   10359 	ld_shlibs_CXX=no
   10360 	;;
   10361       ghcx)
   10362 	# Green Hills C++ Compiler
   10363 	# FIXME: insert proper C++ library support
   10364 	ld_shlibs_CXX=no
   10365 	;;
   10366       *)
   10367 	# FIXME: insert proper C++ library support
   10368 	ld_shlibs_CXX=no
   10369 	;;
   10370     esac
   10371     ;;
   10372   freebsd12*)
   10373     # C++ shared libraries reported to be fairly broken before switch to ELF
   10374     ld_shlibs_CXX=no
   10375     ;;
   10376   freebsd-elf*)
   10377     archive_cmds_need_lc_CXX=no
   10378     ;;
   10379   freebsd* | kfreebsd*-gnu)
   10380     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
   10381     # conventions
   10382     ld_shlibs_CXX=yes
   10383     ;;
   10384   gnu*)
   10385     ;;
   10386   hpux9*)
   10387     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   10388     hardcode_libdir_separator_CXX=:
   10389     export_dynamic_flag_spec_CXX='${wl}-E'
   10390     hardcode_direct_CXX=yes
   10391     hardcode_minus_L_CXX=yes # Not in the search PATH,
   10392 				# but as the default
   10393 				# location of the library.
   10394 
   10395     case $cc_basename in
   10396     CC)
   10397       # FIXME: insert proper C++ library support
   10398       ld_shlibs_CXX=no
   10399       ;;
   10400     aCC)
   10401       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   10402       # Commands to make compiler produce verbose output that lists
   10403       # what "hidden" libraries, object files and flags are used when
   10404       # linking a shared library.
   10405       #
   10406       # There doesn't appear to be a way to prevent this compiler from
   10407       # explicitly linking system object files so we need to strip them
   10408       # from the output so that they don't get included in the library
   10409       # dependencies.
   10410       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10411       ;;
   10412     *)
   10413       if test "$GXX" = yes; then
   10414         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   10415       else
   10416         # FIXME: insert proper C++ library support
   10417         ld_shlibs_CXX=no
   10418       fi
   10419       ;;
   10420     esac
   10421     ;;
   10422   hpux10*|hpux11*)
   10423     if test $with_gnu_ld = no; then
   10424       case "$host_cpu" in
   10425       hppa*64*)
   10426 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   10427 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
   10428 	hardcode_libdir_separator_CXX=:
   10429         ;;
   10430       ia64*)
   10431 	hardcode_libdir_flag_spec_CXX='-L$libdir'
   10432         ;;
   10433       *)
   10434 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
   10435 	hardcode_libdir_separator_CXX=:
   10436 	export_dynamic_flag_spec_CXX='${wl}-E'
   10437         ;;
   10438       esac
   10439     fi
   10440     case "$host_cpu" in
   10441     hppa*64*)
   10442       hardcode_direct_CXX=no
   10443       hardcode_shlibpath_var_CXX=no
   10444       ;;
   10445     ia64*)
   10446       hardcode_direct_CXX=no
   10447       hardcode_shlibpath_var_CXX=no
   10448       hardcode_minus_L_CXX=yes # Not in the search PATH,
   10449 					      # but as the default
   10450 					      # location of the library.
   10451       ;;
   10452     *)
   10453       hardcode_direct_CXX=yes
   10454       hardcode_minus_L_CXX=yes # Not in the search PATH,
   10455 					      # but as the default
   10456 					      # location of the library.
   10457       ;;
   10458     esac
   10459 
   10460     case $cc_basename in
   10461       CC)
   10462 	# FIXME: insert proper C++ library support
   10463 	ld_shlibs_CXX=no
   10464 	;;
   10465       aCC)
   10466 	case "$host_cpu" in
   10467 	hppa*64*|ia64*)
   10468 	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
   10469 	  ;;
   10470 	*)
   10471 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   10472 	  ;;
   10473 	esac
   10474 	# Commands to make compiler produce verbose output that lists
   10475 	# what "hidden" libraries, object files and flags are used when
   10476 	# linking a shared library.
   10477 	#
   10478 	# There doesn't appear to be a way to prevent this compiler from
   10479 	# explicitly linking system object files so we need to strip them
   10480 	# from the output so that they don't get included in the library
   10481 	# dependencies.
   10482 	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10483 	;;
   10484       *)
   10485 	if test "$GXX" = yes; then
   10486 	  if test $with_gnu_ld = no; then
   10487 	    case "$host_cpu" in
   10488 	    ia64*|hppa*64*)
   10489 	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
   10490 	      ;;
   10491 	    *)
   10492 	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   10493 	      ;;
   10494 	    esac
   10495 	  fi
   10496 	else
   10497 	  # FIXME: insert proper C++ library support
   10498 	  ld_shlibs_CXX=no
   10499 	fi
   10500 	;;
   10501     esac
   10502     ;;
   10503   irix5* | irix6*)
   10504     case $cc_basename in
   10505       CC)
   10506 	# SGI C++
   10507 	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
   10508 
   10509 	# Archives containing C++ object files must be created using
   10510 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
   10511 	# necessary to make sure instantiated templates are included
   10512 	# in the archive.
   10513 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
   10514 	;;
   10515       *)
   10516 	if test "$GXX" = yes; then
   10517 	  if test "$with_gnu_ld" = no; then
   10518 	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
   10519 	  else
   10520 	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
   10521 	  fi
   10522 	fi
   10523 	link_all_deplibs_CXX=yes
   10524 	;;
   10525     esac
   10526     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   10527     hardcode_libdir_separator_CXX=:
   10528     ;;
   10529   linux*)
   10530     case $cc_basename in
   10531       KCC)
   10532 	# Kuck and Associates, Inc. (KAI) C++ Compiler
   10533 
   10534 	# KCC will only create a shared library if the output file
   10535 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
   10536 	# to its proper name (with version) after linking.
   10537 	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
   10538 	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
   10539 	# Commands to make compiler produce verbose output that lists
   10540 	# what "hidden" libraries, object files and flags are used when
   10541 	# linking a shared library.
   10542 	#
   10543 	# There doesn't appear to be a way to prevent this compiler from
   10544 	# explicitly linking system object files so we need to strip them
   10545 	# from the output so that they don't get included in the library
   10546 	# dependencies.
   10547 	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10548 
   10549 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
   10550 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   10551 
   10552 	# Archives containing C++ object files must be created using
   10553 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
   10554 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
   10555 	;;
   10556       icpc)
   10557 	# Intel C++
   10558 	with_gnu_ld=yes
   10559 	archive_cmds_need_lc_CXX=no
   10560 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10561 	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   10562 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   10563 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
   10564 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
   10565 	;;
   10566       cxx)
   10567 	# Compaq C++
   10568 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
   10569 	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
   10570 
   10571 	runpath_var=LD_RUN_PATH
   10572 	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
   10573 	hardcode_libdir_separator_CXX=:
   10574 
   10575 	# Commands to make compiler produce verbose output that lists
   10576 	# what "hidden" libraries, object files and flags are used when
   10577 	# linking a shared library.
   10578 	#
   10579 	# There doesn't appear to be a way to prevent this compiler from
   10580 	# explicitly linking system object files so we need to strip them
   10581 	# from the output so that they don't get included in the library
   10582 	# dependencies.
   10583 	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10584 	;;
   10585     esac
   10586     ;;
   10587   lynxos*)
   10588     # FIXME: insert proper C++ library support
   10589     ld_shlibs_CXX=no
   10590     ;;
   10591   m88k*)
   10592     # FIXME: insert proper C++ library support
   10593     ld_shlibs_CXX=no
   10594     ;;
   10595   mvs*)
   10596     case $cc_basename in
   10597       cxx)
   10598 	# FIXME: insert proper C++ library support
   10599 	ld_shlibs_CXX=no
   10600 	;;
   10601       *)
   10602 	# FIXME: insert proper C++ library support
   10603 	ld_shlibs_CXX=no
   10604 	;;
   10605     esac
   10606     ;;
   10607   netbsd*)
   10608     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   10609       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
   10610       wlarc=
   10611       hardcode_libdir_flag_spec_CXX='-R$libdir'
   10612       hardcode_direct_CXX=yes
   10613       hardcode_shlibpath_var_CXX=no
   10614     fi
   10615     # Workaround some broken pre-1.5 toolchains
   10616     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
   10617     ;;
   10618   osf3*)
   10619     case $cc_basename in
   10620       KCC)
   10621 	# Kuck and Associates, Inc. (KAI) C++ Compiler
   10622 
   10623 	# KCC will only create a shared library if the output file
   10624 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
   10625 	# to its proper name (with version) after linking.
   10626 	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
   10627 
   10628 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   10629 	hardcode_libdir_separator_CXX=:
   10630 
   10631 	# Archives containing C++ object files must be created using
   10632 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
   10633 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
   10634 
   10635 	;;
   10636       RCC)
   10637 	# Rational C++ 2.4.1
   10638 	# FIXME: insert proper C++ library support
   10639 	ld_shlibs_CXX=no
   10640 	;;
   10641       cxx)
   10642 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   10643 	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
   10644 
   10645 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   10646 	hardcode_libdir_separator_CXX=:
   10647 
   10648 	# Commands to make compiler produce verbose output that lists
   10649 	# what "hidden" libraries, object files and flags are used when
   10650 	# linking a shared library.
   10651 	#
   10652 	# There doesn't appear to be a way to prevent this compiler from
   10653 	# explicitly linking system object files so we need to strip them
   10654 	# from the output so that they don't get included in the library
   10655 	# dependencies.
   10656 	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10657 	;;
   10658       *)
   10659 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   10660 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   10661 	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
   10662 
   10663 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   10664 	  hardcode_libdir_separator_CXX=:
   10665 
   10666 	  # Commands to make compiler produce verbose output that lists
   10667 	  # what "hidden" libraries, object files and flags are used when
   10668 	  # linking a shared library.
   10669 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
   10670 
   10671 	else
   10672 	  # FIXME: insert proper C++ library support
   10673 	  ld_shlibs_CXX=no
   10674 	fi
   10675 	;;
   10676     esac
   10677     ;;
   10678   osf4* | osf5*)
   10679     case $cc_basename in
   10680       KCC)
   10681 	# Kuck and Associates, Inc. (KAI) C++ Compiler
   10682 
   10683 	# KCC will only create a shared library if the output file
   10684 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
   10685 	# to its proper name (with version) after linking.
   10686 	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
   10687 
   10688 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
   10689 	hardcode_libdir_separator_CXX=:
   10690 
   10691 	# Archives containing C++ object files must be created using
   10692 	# the KAI C++ compiler.
   10693 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
   10694 	;;
   10695       RCC)
   10696 	# Rational C++ 2.4.1
   10697 	# FIXME: insert proper C++ library support
   10698 	ld_shlibs_CXX=no
   10699 	;;
   10700       cxx)
   10701 	allow_undefined_flag_CXX=' -expect_unresolved \*'
   10702 	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
   10703 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
   10704 	  echo "-hidden">> $lib.exp~
   10705 	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
   10706 	  $rm $lib.exp'
   10707 
   10708 	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
   10709 	hardcode_libdir_separator_CXX=:
   10710 
   10711 	# Commands to make compiler produce verbose output that lists
   10712 	# what "hidden" libraries, object files and flags are used when
   10713 	# linking a shared library.
   10714 	#
   10715 	# There doesn't appear to be a way to prevent this compiler from
   10716 	# explicitly linking system object files so we need to strip them
   10717 	# from the output so that they don't get included in the library
   10718 	# dependencies.
   10719 	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10720 	;;
   10721       *)
   10722 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   10723 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
   10724 	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
   10725 
   10726 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
   10727 	  hardcode_libdir_separator_CXX=:
   10728 
   10729 	  # Commands to make compiler produce verbose output that lists
   10730 	  # what "hidden" libraries, object files and flags are used when
   10731 	  # linking a shared library.
   10732 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
   10733 
   10734 	else
   10735 	  # FIXME: insert proper C++ library support
   10736 	  ld_shlibs_CXX=no
   10737 	fi
   10738 	;;
   10739     esac
   10740     ;;
   10741   psos*)
   10742     # FIXME: insert proper C++ library support
   10743     ld_shlibs_CXX=no
   10744     ;;
   10745   sco*)
   10746     archive_cmds_need_lc_CXX=no
   10747     case $cc_basename in
   10748       CC)
   10749 	# FIXME: insert proper C++ library support
   10750 	ld_shlibs_CXX=no
   10751 	;;
   10752       *)
   10753 	# FIXME: insert proper C++ library support
   10754 	ld_shlibs_CXX=no
   10755 	;;
   10756     esac
   10757     ;;
   10758   sunos4*)
   10759     case $cc_basename in
   10760       CC)
   10761 	# Sun C++ 4.x
   10762 	# FIXME: insert proper C++ library support
   10763 	ld_shlibs_CXX=no
   10764 	;;
   10765       lcc)
   10766 	# Lucid
   10767 	# FIXME: insert proper C++ library support
   10768 	ld_shlibs_CXX=no
   10769 	;;
   10770       *)
   10771 	# FIXME: insert proper C++ library support
   10772 	ld_shlibs_CXX=no
   10773 	;;
   10774     esac
   10775     ;;
   10776   solaris*)
   10777     case $cc_basename in
   10778       CC)
   10779 	# Sun C++ 4.2, 5.x and Centerline C++
   10780 	no_undefined_flag_CXX=' -zdefs'
   10781 	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
   10782 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   10783 	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
   10784 
   10785 	hardcode_libdir_flag_spec_CXX='-R$libdir'
   10786 	hardcode_shlibpath_var_CXX=no
   10787 	case $host_os in
   10788 	  solaris2.0-5 | solaris2.0-5.*) ;;
   10789 	  *)
   10790 	    # The C++ compiler is used as linker so we must use $wl
   10791 	    # flag to pass the commands to the underlying system
   10792 	    # linker.
   10793 	    # Supported since Solaris 2.6 (maybe 2.5.1?)
   10794 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
   10795 	    ;;
   10796 	esac
   10797 	link_all_deplibs_CXX=yes
   10798 
   10799 	# Commands to make compiler produce verbose output that lists
   10800 	# what "hidden" libraries, object files and flags are used when
   10801 	# linking a shared library.
   10802 	#
   10803 	# There doesn't appear to be a way to prevent this compiler from
   10804 	# explicitly linking system object files so we need to strip them
   10805 	# from the output so that they don't get included in the library
   10806 	# dependencies.
   10807 	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
   10808 
   10809 	# Archives containing C++ object files must be created using
   10810 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
   10811 	# necessary to make sure instantiated templates are included
   10812 	# in the archive.
   10813 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
   10814 	;;
   10815       gcx)
   10816 	# Green Hills C++ Compiler
   10817 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   10818 
   10819 	# The C++ compiler must be used to create the archive.
   10820 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
   10821 	;;
   10822       *)
   10823 	# GNU C++ compiler with Solaris linker
   10824 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
   10825 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
   10826 	  if $CC --version | grep -v '^2\.7' > /dev/null; then
   10827 	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   10828 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   10829 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
   10830 
   10831 	    # Commands to make compiler produce verbose output that lists
   10832 	    # what "hidden" libraries, object files and flags are used when
   10833 	    # linking a shared library.
   10834 	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
   10835 	  else
   10836 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
   10837 	    # platform.
   10838 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
   10839 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   10840 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
   10841 
   10842 	    # Commands to make compiler produce verbose output that lists
   10843 	    # what "hidden" libraries, object files and flags are used when
   10844 	    # linking a shared library.
   10845 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
   10846 	  fi
   10847 
   10848 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
   10849 	fi
   10850 	;;
   10851     esac
   10852     ;;
   10853   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
   10854     archive_cmds_need_lc_CXX=no
   10855     ;;
   10856   tandem*)
   10857     case $cc_basename in
   10858       NCC)
   10859 	# NonStop-UX NCC 3.20
   10860 	# FIXME: insert proper C++ library support
   10861 	ld_shlibs_CXX=no
   10862 	;;
   10863       *)
   10864 	# FIXME: insert proper C++ library support
   10865 	ld_shlibs_CXX=no
   10866 	;;
   10867     esac
   10868     ;;
   10869   vxworks*)
   10870     # FIXME: insert proper C++ library support
   10871     ld_shlibs_CXX=no
   10872     ;;
   10873   *)
   10874     # FIXME: insert proper C++ library support
   10875     ld_shlibs_CXX=no
   10876     ;;
   10877 esac
   10878 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
   10879 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
   10880 test "$ld_shlibs_CXX" = no && can_build_shared=no
   10881 
   10882 GCC_CXX="$GXX"
   10883 LD_CXX="$LD"
   10884 
   10885 ## CAVEAT EMPTOR:
   10886 ## There is no encapsulation within the following macros, do not change
   10887 ## the running order or otherwise move them around unless you know exactly
   10888 ## what you are doing...
   10889 
   10890 cat > conftest.$ac_ext <<EOF
   10891 class Foo
   10892 {
   10893 public:
   10894   Foo (void) { a = 0; }
   10895 private:
   10896   int a;
   10897 };
   10898 EOF
   10899 
   10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   10901   (eval $ac_compile) 2>&5
   10902   ac_status=$?
   10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   10904   (exit $ac_status); }; then
   10905   # Parse the compiler output and extract the necessary
   10906   # objects, libraries and library flags.
   10907 
   10908   # Sentinel used to keep track of whether or not we are before
   10909   # the conftest object file.
   10910   pre_test_object_deps_done=no
   10911 
   10912   # The `*' in the case matches for architectures that use `case' in
   10913   # $output_verbose_cmd can trigger glob expansion during the loop
   10914   # eval without this substitution.
   10915   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
   10916 
   10917   for p in `eval $output_verbose_link_cmd`; do
   10918     case $p in
   10919 
   10920     -L* | -R* | -l*)
   10921        # Some compilers place space between "-{L,R}" and the path.
   10922        # Remove the space.
   10923        if test $p = "-L" \
   10924 	  || test $p = "-R"; then
   10925 	 prev=$p
   10926 	 continue
   10927        else
   10928 	 prev=
   10929        fi
   10930 
   10931        if test "$pre_test_object_deps_done" = no; then
   10932 	 case $p in
   10933 	 -L* | -R*)
   10934 	   # Internal compiler library paths should come after those
   10935 	   # provided the user.  The postdeps already come after the
   10936 	   # user supplied libs so there is no need to process them.
   10937 	   if test -z "$compiler_lib_search_path_CXX"; then
   10938 	     compiler_lib_search_path_CXX="${prev}${p}"
   10939 	   else
   10940 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
   10941 	   fi
   10942 	   ;;
   10943 	 # The "-l" case would never come before the object being
   10944 	 # linked, so don't bother handling this case.
   10945 	 esac
   10946        else
   10947 	 if test -z "$postdeps_CXX"; then
   10948 	   postdeps_CXX="${prev}${p}"
   10949 	 else
   10950 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
   10951 	 fi
   10952        fi
   10953        ;;
   10954 
   10955     *.$objext)
   10956        # This assumes that the test object file only shows up
   10957        # once in the compiler output.
   10958        if test "$p" = "conftest.$objext"; then
   10959 	 pre_test_object_deps_done=yes
   10960 	 continue
   10961        fi
   10962 
   10963        if test "$pre_test_object_deps_done" = no; then
   10964 	 if test -z "$predep_objects_CXX"; then
   10965 	   predep_objects_CXX="$p"
   10966 	 else
   10967 	   predep_objects_CXX="$predep_objects_CXX $p"
   10968 	 fi
   10969        else
   10970 	 if test -z "$postdep_objects_CXX"; then
   10971 	   postdep_objects_CXX="$p"
   10972 	 else
   10973 	   postdep_objects_CXX="$postdep_objects_CXX $p"
   10974 	 fi
   10975        fi
   10976        ;;
   10977 
   10978     *) ;; # Ignore the rest.
   10979 
   10980     esac
   10981   done
   10982 
   10983   # Clean up.
   10984   rm -f a.out a.exe
   10985 else
   10986   echo "libtool.m4: error: problem compiling CXX test program"
   10987 fi
   10988 
   10989 $rm -f confest.$objext
   10990 
   10991 case " $postdeps_CXX " in
   10992 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
   10993 esac
   10994 
   10995 lt_prog_compiler_wl_CXX=
   10996 lt_prog_compiler_pic_CXX=
   10997 lt_prog_compiler_static_CXX=
   10998 
   10999 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   11000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   11001 
   11002   # C++ specific cases for pic, static, wl, etc.
   11003   if test "$GXX" = yes; then
   11004     lt_prog_compiler_wl_CXX='-Wl,'
   11005     lt_prog_compiler_static_CXX='-static'
   11006 
   11007     case $host_os in
   11008     aix*)
   11009       # All AIX code is PIC.
   11010       if test "$host_cpu" = ia64; then
   11011 	# AIX 5 now supports IA64 processor
   11012 	lt_prog_compiler_static_CXX='-Bstatic'
   11013       fi
   11014       ;;
   11015     amigaos*)
   11016       # FIXME: we need at least 68020 code to build shared libraries, but
   11017       # adding the `-m68020' flag to GCC prevents building anything better,
   11018       # like `-m68040'.
   11019       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
   11020       ;;
   11021     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   11022       # PIC is the default for these OSes.
   11023       ;;
   11024     mingw* | os2* | pw32*)
   11025       # This hack is so that the source file can tell whether it is being
   11026       # built for inclusion in a dll (and should export symbols for example).
   11027       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
   11028       ;;
   11029     darwin* | rhapsody*)
   11030       # PIC is the default on this platform
   11031       # Common symbols not allowed in MH_DYLIB files
   11032       lt_prog_compiler_pic_CXX='-fno-common'
   11033       ;;
   11034     *djgpp*)
   11035       # DJGPP does not support shared libraries at all
   11036       lt_prog_compiler_pic_CXX=
   11037       ;;
   11038     sysv4*MP*)
   11039       if test -d /usr/nec; then
   11040 	lt_prog_compiler_pic_CXX=-Kconform_pic
   11041       fi
   11042       ;;
   11043     hpux*)
   11044       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   11045       # not for PA HP-UX.
   11046       case "$host_cpu" in
   11047       hppa*64*|ia64*)
   11048 	;;
   11049       *)
   11050 	lt_prog_compiler_pic_CXX='-fPIC'
   11051 	;;
   11052       esac
   11053       ;;
   11054     *)
   11055       lt_prog_compiler_pic_CXX='-fPIC'
   11056       ;;
   11057     esac
   11058   else
   11059     case $host_os in
   11060       aix4* | aix5*)
   11061 	# All AIX code is PIC.
   11062 	if test "$host_cpu" = ia64; then
   11063 	  # AIX 5 now supports IA64 processor
   11064 	  lt_prog_compiler_static_CXX='-Bstatic'
   11065 	else
   11066 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
   11067 	fi
   11068 	;;
   11069       chorus*)
   11070 	case $cc_basename in
   11071 	cxch68)
   11072 	  # Green Hills C++ Compiler
   11073 	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
   11074 	  ;;
   11075 	esac
   11076 	;;
   11077       dgux*)
   11078 	case $cc_basename in
   11079 	  ec++)
   11080 	    lt_prog_compiler_pic_CXX='-KPIC'
   11081 	    ;;
   11082 	  ghcx)
   11083 	    # Green Hills C++ Compiler
   11084 	    lt_prog_compiler_pic_CXX='-pic'
   11085 	    ;;
   11086 	  *)
   11087 	    ;;
   11088 	esac
   11089 	;;
   11090       freebsd* | kfreebsd*-gnu)
   11091 	# FreeBSD uses GNU C++
   11092 	;;
   11093       hpux9* | hpux10* | hpux11*)
   11094 	case $cc_basename in
   11095 	  CC)
   11096 	    lt_prog_compiler_wl_CXX='-Wl,'
   11097 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
   11098 	    if test "$host_cpu" != ia64; then
   11099 	      lt_prog_compiler_pic_CXX='+Z'
   11100 	    fi
   11101 	    ;;
   11102 	  aCC)
   11103 	    lt_prog_compiler_wl_CXX='-Wl,'
   11104 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
   11105 	    case "$host_cpu" in
   11106 	    hppa*64*|ia64*)
   11107 	      # +Z the default
   11108 	      ;;
   11109 	    *)
   11110 	      lt_prog_compiler_pic_CXX='+Z'
   11111 	      ;;
   11112 	    esac
   11113 	    ;;
   11114 	  *)
   11115 	    ;;
   11116 	esac
   11117 	;;
   11118       irix5* | irix6* | nonstopux*)
   11119 	case $cc_basename in
   11120 	  CC)
   11121 	    lt_prog_compiler_wl_CXX='-Wl,'
   11122 	    lt_prog_compiler_static_CXX='-non_shared'
   11123 	    # CC pic flag -KPIC is the default.
   11124 	    ;;
   11125 	  *)
   11126 	    ;;
   11127 	esac
   11128 	;;
   11129       linux*)
   11130 	case $cc_basename in
   11131 	  KCC)
   11132 	    # KAI C++ Compiler
   11133 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
   11134 	    lt_prog_compiler_pic_CXX='-fPIC'
   11135 	    ;;
   11136 	  icpc)
   11137 	    # Intel C++
   11138 	    lt_prog_compiler_wl_CXX='-Wl,'
   11139 	    lt_prog_compiler_pic_CXX='-KPIC'
   11140 	    lt_prog_compiler_static_CXX='-static'
   11141 	    ;;
   11142 	  cxx)
   11143 	    # Compaq C++
   11144 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   11145 	    # Linux and Compaq Tru64 Unix objects are PIC.
   11146 	    lt_prog_compiler_pic_CXX=
   11147 	    lt_prog_compiler_static_CXX='-non_shared'
   11148 	    ;;
   11149 	  *)
   11150 	    ;;
   11151 	esac
   11152 	;;
   11153       lynxos*)
   11154 	;;
   11155       m88k*)
   11156 	;;
   11157       mvs*)
   11158 	case $cc_basename in
   11159 	  cxx)
   11160 	    lt_prog_compiler_pic_CXX='-W c,exportall'
   11161 	    ;;
   11162 	  *)
   11163 	    ;;
   11164 	esac
   11165 	;;
   11166       netbsd*)
   11167 	;;
   11168       osf3* | osf4* | osf5*)
   11169 	case $cc_basename in
   11170 	  KCC)
   11171 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
   11172 	    ;;
   11173 	  RCC)
   11174 	    # Rational C++ 2.4.1
   11175 	    lt_prog_compiler_pic_CXX='-pic'
   11176 	    ;;
   11177 	  cxx)
   11178 	    # Digital/Compaq C++
   11179 	    lt_prog_compiler_wl_CXX='-Wl,'
   11180 	    # Make sure the PIC flag is empty.  It appears that all Alpha
   11181 	    # Linux and Compaq Tru64 Unix objects are PIC.
   11182 	    lt_prog_compiler_pic_CXX=
   11183 	    lt_prog_compiler_static_CXX='-non_shared'
   11184 	    ;;
   11185 	  *)
   11186 	    ;;
   11187 	esac
   11188 	;;
   11189       psos*)
   11190 	;;
   11191       sco*)
   11192 	case $cc_basename in
   11193 	  CC)
   11194 	    lt_prog_compiler_pic_CXX='-fPIC'
   11195 	    ;;
   11196 	  *)
   11197 	    ;;
   11198 	esac
   11199 	;;
   11200       solaris*)
   11201 	case $cc_basename in
   11202 	  CC)
   11203 	    # Sun C++ 4.2, 5.x and Centerline C++
   11204 	    lt_prog_compiler_pic_CXX='-KPIC'
   11205 	    lt_prog_compiler_static_CXX='-Bstatic'
   11206 	    lt_prog_compiler_wl_CXX='-Qoption ld '
   11207 	    ;;
   11208 	  gcx)
   11209 	    # Green Hills C++ Compiler
   11210 	    lt_prog_compiler_pic_CXX='-PIC'
   11211 	    ;;
   11212 	  *)
   11213 	    ;;
   11214 	esac
   11215 	;;
   11216       sunos4*)
   11217 	case $cc_basename in
   11218 	  CC)
   11219 	    # Sun C++ 4.x
   11220 	    lt_prog_compiler_pic_CXX='-pic'
   11221 	    lt_prog_compiler_static_CXX='-Bstatic'
   11222 	    ;;
   11223 	  lcc)
   11224 	    # Lucid
   11225 	    lt_prog_compiler_pic_CXX='-pic'
   11226 	    ;;
   11227 	  *)
   11228 	    ;;
   11229 	esac
   11230 	;;
   11231       tandem*)
   11232 	case $cc_basename in
   11233 	  NCC)
   11234 	    # NonStop-UX NCC 3.20
   11235 	    lt_prog_compiler_pic_CXX='-KPIC'
   11236 	    ;;
   11237 	  *)
   11238 	    ;;
   11239 	esac
   11240 	;;
   11241       unixware*)
   11242 	;;
   11243       vxworks*)
   11244 	;;
   11245       *)
   11246 	lt_prog_compiler_can_build_shared_CXX=no
   11247 	;;
   11248     esac
   11249   fi
   11250 
   11251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
   11252 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
   11253 
   11254 #
   11255 # Check to make sure the PIC flag actually works.
   11256 #
   11257 if test -n "$lt_prog_compiler_pic_CXX"; then
   11258 
   11259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
   11260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
   11261 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
   11262   echo $ECHO_N "(cached) $ECHO_C" >&6
   11263 else
   11264   lt_prog_compiler_pic_works_CXX=no
   11265   ac_outfile=conftest.$ac_objext
   11266    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   11267    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
   11268    # Insert the option either (1) after the last *FLAGS variable, or
   11269    # (2) before a word containing "conftest.", or (3) at the end.
   11270    # Note that $ac_compile itself does not contain backslashes and begins
   11271    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11272    # The option is referenced via a variable to avoid confusing sed.
   11273    lt_compile=`echo "$ac_compile" | $SED \
   11274    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   11275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11276    -e 's:$: $lt_compiler_flag:'`
   11277    (eval echo "\"\$as_me:11277: $lt_compile\"" >&5)
   11278    (eval "$lt_compile" 2>conftest.err)
   11279    ac_status=$?
   11280    cat conftest.err >&5
   11281    echo "$as_me:11281: \$? = $ac_status" >&5
   11282    if (exit $ac_status) && test -s "$ac_outfile"; then
   11283      # The compiler can only warn and ignore the option if not recognized
   11284      # So say no if there are warnings
   11285      if test ! -s conftest.err; then
   11286        lt_prog_compiler_pic_works_CXX=yes
   11287      fi
   11288    fi
   11289    $rm conftest*
   11290 
   11291 fi
   11292 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
   11293 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
   11294 
   11295 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
   11296     case $lt_prog_compiler_pic_CXX in
   11297      "" | " "*) ;;
   11298      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
   11299      esac
   11300 else
   11301     lt_prog_compiler_pic_CXX=
   11302      lt_prog_compiler_can_build_shared_CXX=no
   11303 fi
   11304 
   11305 fi
   11306 case "$host_os" in
   11307   # For platforms which do not support PIC, -DPIC is meaningless:
   11308   *djgpp*)
   11309     lt_prog_compiler_pic_CXX=
   11310     ;;
   11311   *)
   11312     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
   11313     ;;
   11314 esac
   11315 
   11316 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   11317 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   11318 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
   11319   echo $ECHO_N "(cached) $ECHO_C" >&6
   11320 else
   11321   lt_cv_prog_compiler_c_o_CXX=no
   11322    $rm -r conftest 2>/dev/null
   11323    mkdir conftest
   11324    cd conftest
   11325    mkdir out
   11326    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   11327 
   11328    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   11329    # that will create temporary files in the current directory regardless of
   11330    # the output directory.  Thus, making CWD read-only will cause this test
   11331    # to fail, enabling locking or at least warning the user not to do parallel
   11332    # builds.
   11333    chmod -w .
   11334 
   11335    lt_compiler_flag="-o out/conftest2.$ac_objext"
   11336    # Insert the option either (1) after the last *FLAGS variable, or
   11337    # (2) before a word containing "conftest.", or (3) at the end.
   11338    # Note that $ac_compile itself does not contain backslashes and begins
   11339    # with a dollar sign (not a hyphen), so the echo should work correctly.
   11340    lt_compile=`echo "$ac_compile" | $SED \
   11341    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   11342    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   11343    -e 's:$: $lt_compiler_flag:'`
   11344    (eval echo "\"\$as_me:11344: $lt_compile\"" >&5)
   11345    (eval "$lt_compile" 2>out/conftest.err)
   11346    ac_status=$?
   11347    cat out/conftest.err >&5
   11348    echo "$as_me:11348: \$? = $ac_status" >&5
   11349    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   11350    then
   11351      # The compiler can only warn and ignore the option if not recognized
   11352      # So say no if there are warnings
   11353      if test ! -s out/conftest.err; then
   11354        lt_cv_prog_compiler_c_o_CXX=yes
   11355      fi
   11356    fi
   11357    chmod u+w .
   11358    $rm conftest*
   11359    # SGI C++ compiler will create directory out/ii_files/ for
   11360    # template instantiation
   11361    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   11362    $rm out/* && rmdir out
   11363    cd ..
   11364    rmdir conftest
   11365    $rm conftest*
   11366 
   11367 fi
   11368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
   11369 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
   11370 
   11371 
   11372 hard_links="nottested"
   11373 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
   11374   # do not overwrite the value of need_locks provided by the user
   11375   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   11376 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   11377   hard_links=yes
   11378   $rm conftest*
   11379   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11380   touch conftest.a
   11381   ln conftest.a conftest.b 2>&5 || hard_links=no
   11382   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   11383   { echo "$as_me:$LINENO: result: $hard_links" >&5
   11384 echo "${ECHO_T}$hard_links" >&6; }
   11385   if test "$hard_links" = no; then
   11386     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   11387 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   11388     need_locks=warn
   11389   fi
   11390 else
   11391   need_locks=no
   11392 fi
   11393 
   11394 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   11395 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   11396 
   11397   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   11398   case $host_os in
   11399   aix4* | aix5*)
   11400     # If we're using GNU nm, then we don't want the "-C" option.
   11401     # -C means demangle to AIX nm, but means don't demangle with GNU nm
   11402     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
   11403       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   11404     else
   11405       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   11406     fi
   11407     ;;
   11408   pw32*)
   11409     export_symbols_cmds_CXX="$ltdll_cmds"
   11410   ;;
   11411   cygwin* | mingw*)
   11412     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
   11413   ;;
   11414   *)
   11415     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   11416   ;;
   11417   esac
   11418 
   11419 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
   11420 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
   11421 test "$ld_shlibs_CXX" = no && can_build_shared=no
   11422 
   11423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   11424 if test "$GCC" = yes; then
   11425   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   11426 fi
   11427 
   11428 #
   11429 # Do we need to explicitly link libc?
   11430 #
   11431 case "x$archive_cmds_need_lc_CXX" in
   11432 x|xyes)
   11433   # Assume -lc should be added
   11434   archive_cmds_need_lc_CXX=yes
   11435 
   11436   if test "$enable_shared" = yes && test "$GCC" = yes; then
   11437     case $archive_cmds_CXX in
   11438     *'~'*)
   11439       # FIXME: we may have to deal with multi-command sequences.
   11440       ;;
   11441     '$CC '*)
   11442       # Test whether the compiler implicitly links with -lc since on some
   11443       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   11444       # to ld, don't add -lc before -lgcc.
   11445       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   11446 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   11447       $rm conftest*
   11448       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   11449 
   11450       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   11451   (eval $ac_compile) 2>&5
   11452   ac_status=$?
   11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11454   (exit $ac_status); } 2>conftest.err; then
   11455         soname=conftest
   11456         lib=conftest
   11457         libobjs=conftest.$ac_objext
   11458         deplibs=
   11459         wl=$lt_prog_compiler_wl_CXX
   11460         compiler_flags=-v
   11461         linker_flags=-v
   11462         verstring=
   11463         output_objdir=.
   11464         libname=conftest
   11465         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
   11466         allow_undefined_flag_CXX=
   11467         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
   11468   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
   11469   ac_status=$?
   11470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   11471   (exit $ac_status); }
   11472         then
   11473 	  archive_cmds_need_lc_CXX=no
   11474         else
   11475 	  archive_cmds_need_lc_CXX=yes
   11476         fi
   11477         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
   11478       else
   11479         cat conftest.err 1>&5
   11480       fi
   11481       $rm conftest*
   11482       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
   11483 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
   11484       ;;
   11485     esac
   11486   fi
   11487   ;;
   11488 esac
   11489 
   11490 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   11491 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   11492 library_names_spec=
   11493 libname_spec='lib$name'
   11494 soname_spec=
   11495 shrext=".so"
   11496 postinstall_cmds=
   11497 postuninstall_cmds=
   11498 finish_cmds=
   11499 finish_eval=
   11500 shlibpath_var=
   11501 shlibpath_overrides_runpath=unknown
   11502 version_type=none
   11503 dynamic_linker="$host_os ld.so"
   11504 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   11505 if test "$GCC" = yes; then
   11506   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   11507   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   11508     # if the path contains ";" then we assume it to be the separator
   11509     # otherwise default to the standard path separator (i.e. ":") - it is
   11510     # assumed that no part of a normal pathname contains ";" but that should
   11511     # okay in the real world where ";" in dirpaths is itself problematic.
   11512     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   11513   else
   11514     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   11515   fi
   11516 else
   11517   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   11518 fi
   11519 need_lib_prefix=unknown
   11520 hardcode_into_libs=no
   11521 
   11522 # when you set need_version to no, make sure it does not cause -set_version
   11523 # flags to be left without arguments
   11524 need_version=unknown
   11525 
   11526 case $host_os in
   11527 aix3*)
   11528   version_type=linux
   11529   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   11530   shlibpath_var=LIBPATH
   11531 
   11532   # AIX 3 has no versioning support, so we append a major version to the name.
   11533   soname_spec='${libname}${release}${shared_ext}$major'
   11534   ;;
   11535 
   11536 aix4* | aix5*)
   11537   version_type=linux
   11538   need_lib_prefix=no
   11539   need_version=no
   11540   hardcode_into_libs=yes
   11541   if test "$host_cpu" = ia64; then
   11542     # AIX 5 supports IA64
   11543     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   11544     shlibpath_var=LD_LIBRARY_PATH
   11545   else
   11546     # With GCC up to 2.95.x, collect2 would create an import file
   11547     # for dependence libraries.  The import file would start with
   11548     # the line `#! .'.  This would cause the generated library to
   11549     # depend on `.', always an invalid library.  This was fixed in
   11550     # development snapshots of GCC prior to 3.0.
   11551     case $host_os in
   11552       aix4 | aix4.[01] | aix4.[01].*)
   11553       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   11554 	   echo ' yes '
   11555 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   11556 	:
   11557       else
   11558 	can_build_shared=no
   11559       fi
   11560       ;;
   11561     esac
   11562     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   11563     # soname into executable. Probably we can add versioning support to
   11564     # collect2, so additional links can be useful in future.
   11565     if test "$aix_use_runtimelinking" = yes; then
   11566       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   11567       # instead of lib<name>.a to let people know that these are not
   11568       # typical AIX shared libraries.
   11569       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11570     else
   11571       # We preserve .a as extension for shared libraries through AIX4.2
   11572       # and later when we are not doing run time linking.
   11573       library_names_spec='${libname}${release}.a $libname.a'
   11574       soname_spec='${libname}${release}${shared_ext}$major'
   11575     fi
   11576     shlibpath_var=LIBPATH
   11577   fi
   11578   ;;
   11579 
   11580 amigaos*)
   11581   library_names_spec='$libname.ixlibrary $libname.a'
   11582   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   11583   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'
   11584   ;;
   11585 
   11586 beos*)
   11587   library_names_spec='${libname}${shared_ext}'
   11588   dynamic_linker="$host_os ld.so"
   11589   shlibpath_var=LIBRARY_PATH
   11590   ;;
   11591 
   11592 bsdi4*)
   11593   version_type=linux
   11594   need_version=no
   11595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11596   soname_spec='${libname}${release}${shared_ext}$major'
   11597   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   11598   shlibpath_var=LD_LIBRARY_PATH
   11599   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   11600   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   11601   # the default ld.so.conf also contains /usr/contrib/lib and
   11602   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   11603   # libtool to hard-code these into programs
   11604   ;;
   11605 
   11606 cygwin* | mingw* | pw32*)
   11607   version_type=windows
   11608   shrext=".dll"
   11609   need_version=no
   11610   need_lib_prefix=no
   11611 
   11612   case $GCC,$host_os in
   11613   yes,cygwin* | yes,mingw* | yes,pw32*)
   11614     library_names_spec='$libname.dll.a'
   11615     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   11616     postinstall_cmds='base_file=`basename \${file}`~
   11617       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   11618       dldir=$destdir/`dirname \$dlpath`~
   11619       test -d \$dldir || mkdir -p \$dldir~
   11620       $install_prog $dir/$dlname \$dldir/$dlname'
   11621     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   11622       dlpath=$dir/\$dldll~
   11623        $rm \$dlpath'
   11624     shlibpath_overrides_runpath=yes
   11625 
   11626     case $host_os in
   11627     cygwin*)
   11628       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   11629       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   11630       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   11631       ;;
   11632     mingw*)
   11633       # MinGW DLLs use traditional 'lib' prefix
   11634       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   11635       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   11636       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   11637         # It is most probably a Windows format PATH printed by
   11638         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   11639         # path with ; separators, and with drive letters. We can handle the
   11640         # drive letters (cygwin fileutils understands them), so leave them,
   11641         # especially as we might pass files found there to a mingw objdump,
   11642         # which wouldn't understand a cygwinified path. Ahh.
   11643         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   11644       else
   11645         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   11646       fi
   11647       ;;
   11648     pw32*)
   11649       # pw32 DLLs use 'pw' prefix rather than 'lib'
   11650       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
   11651       ;;
   11652     esac
   11653     ;;
   11654 
   11655   *)
   11656     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   11657     ;;
   11658   esac
   11659   dynamic_linker='Win32 ld.exe'
   11660   # FIXME: first we should search . and the directory the executable is in
   11661   shlibpath_var=PATH
   11662   ;;
   11663 
   11664 darwin* | rhapsody*)
   11665   dynamic_linker="$host_os dyld"
   11666   version_type=darwin
   11667   need_lib_prefix=no
   11668   need_version=no
   11669   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   11670   soname_spec='${libname}${release}${major}$shared_ext'
   11671   shlibpath_overrides_runpath=yes
   11672   shlibpath_var=DYLD_LIBRARY_PATH
   11673   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   11674   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   11675   if test "$GCC" = yes; then
   11676     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   11677   else
   11678     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   11679   fi
   11680   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   11681   ;;
   11682 
   11683 dgux*)
   11684   version_type=linux
   11685   need_lib_prefix=no
   11686   need_version=no
   11687   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   11688   soname_spec='${libname}${release}${shared_ext}$major'
   11689   shlibpath_var=LD_LIBRARY_PATH
   11690   ;;
   11691 
   11692 freebsd1*)
   11693   dynamic_linker=no
   11694   ;;
   11695 
   11696 kfreebsd*-gnu)
   11697   version_type=linux
   11698   need_lib_prefix=no
   11699   need_version=no
   11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   11701   soname_spec='${libname}${release}${shared_ext}$major'
   11702   shlibpath_var=LD_LIBRARY_PATH
   11703   shlibpath_overrides_runpath=no
   11704   hardcode_into_libs=yes
   11705   dynamic_linker='GNU ld.so'
   11706   ;;
   11707 
   11708 freebsd*)
   11709   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   11710   version_type=freebsd-$objformat
   11711   case $version_type in
   11712     freebsd-elf*)
   11713       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   11714       need_version=no
   11715       need_lib_prefix=no
   11716       ;;
   11717     freebsd-*)
   11718       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   11719       need_version=yes
   11720       ;;
   11721   esac
   11722   shlibpath_var=LD_LIBRARY_PATH
   11723   case $host_os in
   11724   freebsd2*)
   11725     shlibpath_overrides_runpath=yes
   11726     ;;
   11727   freebsd3.01* | freebsdelf3.01*)
   11728     shlibpath_overrides_runpath=yes
   11729     hardcode_into_libs=yes
   11730     ;;
   11731   *) # from 3.2 on
   11732     shlibpath_overrides_runpath=no
   11733     hardcode_into_libs=yes
   11734     ;;
   11735   esac
   11736   ;;
   11737 
   11738 gnu*)
   11739   version_type=linux
   11740   need_lib_prefix=no
   11741   need_version=no
   11742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   11743   soname_spec='${libname}${release}${shared_ext}$major'
   11744   shlibpath_var=LD_LIBRARY_PATH
   11745   hardcode_into_libs=yes
   11746   ;;
   11747 
   11748 hpux9* | hpux10* | hpux11*)
   11749   # Give a soname corresponding to the major version so that dld.sl refuses to
   11750   # link against other versions.
   11751   version_type=sunos
   11752   need_lib_prefix=no
   11753   need_version=no
   11754   case "$host_cpu" in
   11755   ia64*)
   11756     shrext='.so'
   11757     hardcode_into_libs=yes
   11758     dynamic_linker="$host_os dld.so"
   11759     shlibpath_var=LD_LIBRARY_PATH
   11760     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   11761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11762     soname_spec='${libname}${release}${shared_ext}$major'
   11763     if test "X$HPUX_IA64_MODE" = X32; then
   11764       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   11765     else
   11766       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   11767     fi
   11768     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11769     ;;
   11770    hppa*64*)
   11771      shrext='.sl'
   11772      hardcode_into_libs=yes
   11773      dynamic_linker="$host_os dld.sl"
   11774      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   11775      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   11776      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11777      soname_spec='${libname}${release}${shared_ext}$major'
   11778      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   11779      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   11780      ;;
   11781    *)
   11782     shrext='.sl'
   11783     dynamic_linker="$host_os dld.sl"
   11784     shlibpath_var=SHLIB_PATH
   11785     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   11786     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11787     soname_spec='${libname}${release}${shared_ext}$major'
   11788     ;;
   11789   esac
   11790   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   11791   postinstall_cmds='chmod 555 $lib'
   11792   ;;
   11793 
   11794 irix5* | irix6* | nonstopux*)
   11795   case $host_os in
   11796     nonstopux*) version_type=nonstopux ;;
   11797     *)
   11798 	if test "$lt_cv_prog_gnu_ld" = yes; then
   11799 		version_type=linux
   11800 	else
   11801 		version_type=irix
   11802 	fi ;;
   11803   esac
   11804   need_lib_prefix=no
   11805   need_version=no
   11806   soname_spec='${libname}${release}${shared_ext}$major'
   11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   11808   case $host_os in
   11809   irix5* | nonstopux*)
   11810     libsuff= shlibsuff=
   11811     ;;
   11812   *)
   11813     case $LD in # libtool.m4 will add one of these switches to LD
   11814     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   11815       libsuff= shlibsuff= libmagic=32-bit;;
   11816     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   11817       libsuff=32 shlibsuff=N32 libmagic=N32;;
   11818     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   11819       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   11820     *) libsuff= shlibsuff= libmagic=never-match;;
   11821     esac
   11822     ;;
   11823   esac
   11824   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   11825   shlibpath_overrides_runpath=no
   11826   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   11827   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   11828   hardcode_into_libs=yes
   11829   ;;
   11830 
   11831 # No shared lib support for Linux oldld, aout, or coff.
   11832 linux*oldld* | linux*aout* | linux*coff*)
   11833   dynamic_linker=no
   11834   ;;
   11835 
   11836 # This must be Linux ELF.
   11837 linux*)
   11838   version_type=linux
   11839   need_lib_prefix=no
   11840   need_version=no
   11841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11842   soname_spec='${libname}${release}${shared_ext}$major'
   11843   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   11844   shlibpath_var=LD_LIBRARY_PATH
   11845   shlibpath_overrides_runpath=no
   11846   # This implies no fast_install, which is unacceptable.
   11847   # Some rework will be needed to allow for fast_install
   11848   # before this can be enabled.
   11849   hardcode_into_libs=yes
   11850 
   11851   # We used to test for /lib/ld.so.1 and disable shared libraries on
   11852   # powerpc, because MkLinux only supported shared libraries with the
   11853   # GNU dynamic linker.  Since this was broken with cross compilers,
   11854   # most powerpc-linux boxes support dynamic linking these days and
   11855   # people can always --disable-shared, the test was removed, and we
   11856   # assume the GNU/Linux dynamic linker is in use.
   11857   dynamic_linker='GNU/Linux ld.so'
   11858   ;;
   11859 
   11860 netbsd*)
   11861   version_type=sunos
   11862   need_lib_prefix=no
   11863   need_version=no
   11864   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   11865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11866     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11867     dynamic_linker='NetBSD (a.out) ld.so'
   11868   else
   11869     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   11870     soname_spec='${libname}${release}${shared_ext}$major'
   11871     dynamic_linker='NetBSD ld.elf_so'
   11872   fi
   11873   shlibpath_var=LD_LIBRARY_PATH
   11874   shlibpath_overrides_runpath=yes
   11875   hardcode_into_libs=yes
   11876   ;;
   11877 
   11878 newsos6)
   11879   version_type=linux
   11880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11881   shlibpath_var=LD_LIBRARY_PATH
   11882   shlibpath_overrides_runpath=yes
   11883   ;;
   11884 
   11885 nto-qnx*)
   11886   version_type=linux
   11887   need_lib_prefix=no
   11888   need_version=no
   11889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11890   soname_spec='${libname}${release}${shared_ext}$major'
   11891   shlibpath_var=LD_LIBRARY_PATH
   11892   shlibpath_overrides_runpath=yes
   11893   ;;
   11894 
   11895 openbsd*)
   11896   version_type=sunos
   11897   need_lib_prefix=no
   11898   need_version=no
   11899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11900   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   11901   shlibpath_var=LD_LIBRARY_PATH
   11902   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   11903     case $host_os in
   11904       openbsd2.[89] | openbsd2.[89].*)
   11905 	shlibpath_overrides_runpath=no
   11906 	;;
   11907       *)
   11908 	shlibpath_overrides_runpath=yes
   11909 	;;
   11910       esac
   11911   else
   11912     shlibpath_overrides_runpath=yes
   11913   fi
   11914   ;;
   11915 
   11916 os2*)
   11917   libname_spec='$name'
   11918   shrext=".dll"
   11919   need_lib_prefix=no
   11920   library_names_spec='$libname${shared_ext} $libname.a'
   11921   dynamic_linker='OS/2 ld.exe'
   11922   shlibpath_var=LIBPATH
   11923   ;;
   11924 
   11925 osf3* | osf4* | osf5*)
   11926   version_type=osf
   11927   need_lib_prefix=no
   11928   need_version=no
   11929   soname_spec='${libname}${release}${shared_ext}$major'
   11930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11931   shlibpath_var=LD_LIBRARY_PATH
   11932   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   11933   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   11934   ;;
   11935 
   11936 sco3.2v5*)
   11937   version_type=osf
   11938   soname_spec='${libname}${release}${shared_ext}$major'
   11939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11940   shlibpath_var=LD_LIBRARY_PATH
   11941   ;;
   11942 
   11943 solaris*)
   11944   version_type=linux
   11945   need_lib_prefix=no
   11946   need_version=no
   11947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11948   soname_spec='${libname}${release}${shared_ext}$major'
   11949   shlibpath_var=LD_LIBRARY_PATH
   11950   shlibpath_overrides_runpath=yes
   11951   hardcode_into_libs=yes
   11952   # ldd complains unless libraries are executable
   11953   postinstall_cmds='chmod +x $lib'
   11954   ;;
   11955 
   11956 sunos4*)
   11957   version_type=sunos
   11958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   11959   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   11960   shlibpath_var=LD_LIBRARY_PATH
   11961   shlibpath_overrides_runpath=yes
   11962   if test "$with_gnu_ld" = yes; then
   11963     need_lib_prefix=no
   11964   fi
   11965   need_version=yes
   11966   ;;
   11967 
   11968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   11969   version_type=linux
   11970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   11971   soname_spec='${libname}${release}${shared_ext}$major'
   11972   shlibpath_var=LD_LIBRARY_PATH
   11973   case $host_vendor in
   11974     sni)
   11975       shlibpath_overrides_runpath=no
   11976       need_lib_prefix=no
   11977       export_dynamic_flag_spec='${wl}-Blargedynsym'
   11978       runpath_var=LD_RUN_PATH
   11979       ;;
   11980     siemens)
   11981       need_lib_prefix=no
   11982       ;;
   11983     motorola)
   11984       need_lib_prefix=no
   11985       need_version=no
   11986       shlibpath_overrides_runpath=no
   11987       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   11988       ;;
   11989   esac
   11990   ;;
   11991 
   11992 sysv4*MP*)
   11993   if test -d /usr/nec ;then
   11994     version_type=linux
   11995     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   11996     soname_spec='$libname${shared_ext}.$major'
   11997     shlibpath_var=LD_LIBRARY_PATH
   11998   fi
   11999   ;;
   12000 
   12001 uts4*)
   12002   version_type=linux
   12003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   12004   soname_spec='${libname}${release}${shared_ext}$major'
   12005   shlibpath_var=LD_LIBRARY_PATH
   12006   ;;
   12007 
   12008 *)
   12009   dynamic_linker=no
   12010   ;;
   12011 esac
   12012 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   12013 echo "${ECHO_T}$dynamic_linker" >&6; }
   12014 test "$dynamic_linker" = no && can_build_shared=no
   12015 
   12016 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   12017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   12018 hardcode_action_CXX=
   12019 if test -n "$hardcode_libdir_flag_spec_CXX" || \
   12020    test -n "$runpath_var CXX" || \
   12021    test "X$hardcode_automatic_CXX"="Xyes" ; then
   12022 
   12023   # We can hardcode non-existant directories.
   12024   if test "$hardcode_direct_CXX" != no &&
   12025      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   12026      # have to relink, otherwise we might link with an installed library
   12027      # when we should be linking with a yet-to-be-installed one
   12028      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
   12029      test "$hardcode_minus_L_CXX" != no; then
   12030     # Linking always hardcodes the temporary library directory.
   12031     hardcode_action_CXX=relink
   12032   else
   12033     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   12034     hardcode_action_CXX=immediate
   12035   fi
   12036 else
   12037   # We cannot hardcode anything, or else we can only hardcode existing
   12038   # directories.
   12039   hardcode_action_CXX=unsupported
   12040 fi
   12041 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
   12042 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
   12043 
   12044 if test "$hardcode_action_CXX" = relink; then
   12045   # Fast installation is not supported
   12046   enable_fast_install=no
   12047 elif test "$shlibpath_overrides_runpath" = yes ||
   12048      test "$enable_shared" = no; then
   12049   # Fast installation is not necessary
   12050   enable_fast_install=needless
   12051 fi
   12052 
   12053 striplib=
   12054 old_striplib=
   12055 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
   12056 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
   12057 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   12058   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   12059   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   12060   { echo "$as_me:$LINENO: result: yes" >&5
   12061 echo "${ECHO_T}yes" >&6; }
   12062 else
   12063 # FIXME - insert some real tests, host_os isn't really good enough
   12064   case $host_os in
   12065    darwin*)
   12066        if test -n "$STRIP" ; then
   12067          striplib="$STRIP -x"
   12068          { echo "$as_me:$LINENO: result: yes" >&5
   12069 echo "${ECHO_T}yes" >&6; }
   12070        else
   12071   { echo "$as_me:$LINENO: result: no" >&5
   12072 echo "${ECHO_T}no" >&6; }
   12073 fi
   12074        ;;
   12075    *)
   12076   { echo "$as_me:$LINENO: result: no" >&5
   12077 echo "${ECHO_T}no" >&6; }
   12078     ;;
   12079   esac
   12080 fi
   12081 
   12082 if test "x$enable_dlopen" != xyes; then
   12083   enable_dlopen=unknown
   12084   enable_dlopen_self=unknown
   12085   enable_dlopen_self_static=unknown
   12086 else
   12087   lt_cv_dlopen=no
   12088   lt_cv_dlopen_libs=
   12089 
   12090   case $host_os in
   12091   beos*)
   12092     lt_cv_dlopen="load_add_on"
   12093     lt_cv_dlopen_libs=
   12094     lt_cv_dlopen_self=yes
   12095     ;;
   12096 
   12097   mingw* | pw32*)
   12098     lt_cv_dlopen="LoadLibrary"
   12099     lt_cv_dlopen_libs=
   12100    ;;
   12101 
   12102   cygwin*)
   12103     lt_cv_dlopen="dlopen"
   12104     lt_cv_dlopen_libs=
   12105    ;;
   12106 
   12107   darwin*)
   12108   # if libdl is installed we need to link against it
   12109     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   12110 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   12111 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   12112   echo $ECHO_N "(cached) $ECHO_C" >&6
   12113 else
   12114   ac_check_lib_save_LIBS=$LIBS
   12115 LIBS="-ldl  $LIBS"
   12116 cat >conftest.$ac_ext <<_ACEOF
   12117 /* confdefs.h.  */
   12118 _ACEOF
   12119 cat confdefs.h >>conftest.$ac_ext
   12120 cat >>conftest.$ac_ext <<_ACEOF
   12121 /* end confdefs.h.  */
   12122 
   12123 /* Override any GCC internal prototype to avoid an error.
   12124    Use char because int might match the return type of a GCC
   12125    builtin and then its argument prototype would still apply.  */
   12126 #ifdef __cplusplus
   12127 extern "C"
   12128 #endif
   12129 char dlopen ();
   12130 int
   12131 main ()
   12132 {
   12133 return dlopen ();
   12134   ;
   12135   return 0;
   12136 }
   12137 _ACEOF
   12138 rm -f conftest.$ac_objext conftest$ac_exeext
   12139 if { (ac_try="$ac_link"
   12140 case "(($ac_try" in
   12141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12142   *) ac_try_echo=$ac_try;;
   12143 esac
   12144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12145   (eval "$ac_link") 2>conftest.er1
   12146   ac_status=$?
   12147   grep -v '^ *+' conftest.er1 >conftest.err
   12148   rm -f conftest.er1
   12149   cat conftest.err >&5
   12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12151   (exit $ac_status); } && {
   12152 	 test -z "$ac_cxx_werror_flag" ||
   12153 	 test ! -s conftest.err
   12154        } && test -s conftest$ac_exeext &&
   12155        $as_test_x conftest$ac_exeext; then
   12156   ac_cv_lib_dl_dlopen=yes
   12157 else
   12158   echo "$as_me: failed program was:" >&5
   12159 sed 's/^/| /' conftest.$ac_ext >&5
   12160 
   12161 	ac_cv_lib_dl_dlopen=no
   12162 fi
   12163 
   12164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12165       conftest$ac_exeext conftest.$ac_ext
   12166 LIBS=$ac_check_lib_save_LIBS
   12167 fi
   12168 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   12169 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   12170 if test $ac_cv_lib_dl_dlopen = yes; then
   12171   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   12172 else
   12173 
   12174     lt_cv_dlopen="dyld"
   12175     lt_cv_dlopen_libs=
   12176     lt_cv_dlopen_self=yes
   12177 
   12178 fi
   12179 
   12180    ;;
   12181 
   12182   *)
   12183     { echo "$as_me:$LINENO: checking for shl_load" >&5
   12184 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   12185 if test "${ac_cv_func_shl_load+set}" = set; then
   12186   echo $ECHO_N "(cached) $ECHO_C" >&6
   12187 else
   12188   cat >conftest.$ac_ext <<_ACEOF
   12189 /* confdefs.h.  */
   12190 _ACEOF
   12191 cat confdefs.h >>conftest.$ac_ext
   12192 cat >>conftest.$ac_ext <<_ACEOF
   12193 /* end confdefs.h.  */
   12194 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   12195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   12196 #define shl_load innocuous_shl_load
   12197 
   12198 /* System header to define __stub macros and hopefully few prototypes,
   12199     which can conflict with char shl_load (); below.
   12200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   12201     <limits.h> exists even on freestanding compilers.  */
   12202 
   12203 #ifdef __STDC__
   12204 # include <limits.h>
   12205 #else
   12206 # include <assert.h>
   12207 #endif
   12208 
   12209 #undef shl_load
   12210 
   12211 /* Override any GCC internal prototype to avoid an error.
   12212    Use char because int might match the return type of a GCC
   12213    builtin and then its argument prototype would still apply.  */
   12214 #ifdef __cplusplus
   12215 extern "C"
   12216 #endif
   12217 char shl_load ();
   12218 /* The GNU C library defines this for functions which it implements
   12219     to always fail with ENOSYS.  Some functions are actually named
   12220     something starting with __ and the normal name is an alias.  */
   12221 #if defined __stub_shl_load || defined __stub___shl_load
   12222 choke me
   12223 #endif
   12224 
   12225 int
   12226 main ()
   12227 {
   12228 return shl_load ();
   12229   ;
   12230   return 0;
   12231 }
   12232 _ACEOF
   12233 rm -f conftest.$ac_objext conftest$ac_exeext
   12234 if { (ac_try="$ac_link"
   12235 case "(($ac_try" in
   12236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12237   *) ac_try_echo=$ac_try;;
   12238 esac
   12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12240   (eval "$ac_link") 2>conftest.er1
   12241   ac_status=$?
   12242   grep -v '^ *+' conftest.er1 >conftest.err
   12243   rm -f conftest.er1
   12244   cat conftest.err >&5
   12245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12246   (exit $ac_status); } && {
   12247 	 test -z "$ac_cxx_werror_flag" ||
   12248 	 test ! -s conftest.err
   12249        } && test -s conftest$ac_exeext &&
   12250        $as_test_x conftest$ac_exeext; then
   12251   ac_cv_func_shl_load=yes
   12252 else
   12253   echo "$as_me: failed program was:" >&5
   12254 sed 's/^/| /' conftest.$ac_ext >&5
   12255 
   12256 	ac_cv_func_shl_load=no
   12257 fi
   12258 
   12259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12260       conftest$ac_exeext conftest.$ac_ext
   12261 fi
   12262 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   12263 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   12264 if test $ac_cv_func_shl_load = yes; then
   12265   lt_cv_dlopen="shl_load"
   12266 else
   12267   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   12268 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   12269 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   12270   echo $ECHO_N "(cached) $ECHO_C" >&6
   12271 else
   12272   ac_check_lib_save_LIBS=$LIBS
   12273 LIBS="-ldld  $LIBS"
   12274 cat >conftest.$ac_ext <<_ACEOF
   12275 /* confdefs.h.  */
   12276 _ACEOF
   12277 cat confdefs.h >>conftest.$ac_ext
   12278 cat >>conftest.$ac_ext <<_ACEOF
   12279 /* end confdefs.h.  */
   12280 
   12281 /* Override any GCC internal prototype to avoid an error.
   12282    Use char because int might match the return type of a GCC
   12283    builtin and then its argument prototype would still apply.  */
   12284 #ifdef __cplusplus
   12285 extern "C"
   12286 #endif
   12287 char shl_load ();
   12288 int
   12289 main ()
   12290 {
   12291 return shl_load ();
   12292   ;
   12293   return 0;
   12294 }
   12295 _ACEOF
   12296 rm -f conftest.$ac_objext conftest$ac_exeext
   12297 if { (ac_try="$ac_link"
   12298 case "(($ac_try" in
   12299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12300   *) ac_try_echo=$ac_try;;
   12301 esac
   12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12303   (eval "$ac_link") 2>conftest.er1
   12304   ac_status=$?
   12305   grep -v '^ *+' conftest.er1 >conftest.err
   12306   rm -f conftest.er1
   12307   cat conftest.err >&5
   12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12309   (exit $ac_status); } && {
   12310 	 test -z "$ac_cxx_werror_flag" ||
   12311 	 test ! -s conftest.err
   12312        } && test -s conftest$ac_exeext &&
   12313        $as_test_x conftest$ac_exeext; then
   12314   ac_cv_lib_dld_shl_load=yes
   12315 else
   12316   echo "$as_me: failed program was:" >&5
   12317 sed 's/^/| /' conftest.$ac_ext >&5
   12318 
   12319 	ac_cv_lib_dld_shl_load=no
   12320 fi
   12321 
   12322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12323       conftest$ac_exeext conftest.$ac_ext
   12324 LIBS=$ac_check_lib_save_LIBS
   12325 fi
   12326 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   12327 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   12328 if test $ac_cv_lib_dld_shl_load = yes; then
   12329   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
   12330 else
   12331   { echo "$as_me:$LINENO: checking for dlopen" >&5
   12332 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
   12333 if test "${ac_cv_func_dlopen+set}" = set; then
   12334   echo $ECHO_N "(cached) $ECHO_C" >&6
   12335 else
   12336   cat >conftest.$ac_ext <<_ACEOF
   12337 /* confdefs.h.  */
   12338 _ACEOF
   12339 cat confdefs.h >>conftest.$ac_ext
   12340 cat >>conftest.$ac_ext <<_ACEOF
   12341 /* end confdefs.h.  */
   12342 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   12343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   12344 #define dlopen innocuous_dlopen
   12345 
   12346 /* System header to define __stub macros and hopefully few prototypes,
   12347     which can conflict with char dlopen (); below.
   12348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   12349     <limits.h> exists even on freestanding compilers.  */
   12350 
   12351 #ifdef __STDC__
   12352 # include <limits.h>
   12353 #else
   12354 # include <assert.h>
   12355 #endif
   12356 
   12357 #undef dlopen
   12358 
   12359 /* Override any GCC internal prototype to avoid an error.
   12360    Use char because int might match the return type of a GCC
   12361    builtin and then its argument prototype would still apply.  */
   12362 #ifdef __cplusplus
   12363 extern "C"
   12364 #endif
   12365 char dlopen ();
   12366 /* The GNU C library defines this for functions which it implements
   12367     to always fail with ENOSYS.  Some functions are actually named
   12368     something starting with __ and the normal name is an alias.  */
   12369 #if defined __stub_dlopen || defined __stub___dlopen
   12370 choke me
   12371 #endif
   12372 
   12373 int
   12374 main ()
   12375 {
   12376 return dlopen ();
   12377   ;
   12378   return 0;
   12379 }
   12380 _ACEOF
   12381 rm -f conftest.$ac_objext conftest$ac_exeext
   12382 if { (ac_try="$ac_link"
   12383 case "(($ac_try" in
   12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12385   *) ac_try_echo=$ac_try;;
   12386 esac
   12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12388   (eval "$ac_link") 2>conftest.er1
   12389   ac_status=$?
   12390   grep -v '^ *+' conftest.er1 >conftest.err
   12391   rm -f conftest.er1
   12392   cat conftest.err >&5
   12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12394   (exit $ac_status); } && {
   12395 	 test -z "$ac_cxx_werror_flag" ||
   12396 	 test ! -s conftest.err
   12397        } && test -s conftest$ac_exeext &&
   12398        $as_test_x conftest$ac_exeext; then
   12399   ac_cv_func_dlopen=yes
   12400 else
   12401   echo "$as_me: failed program was:" >&5
   12402 sed 's/^/| /' conftest.$ac_ext >&5
   12403 
   12404 	ac_cv_func_dlopen=no
   12405 fi
   12406 
   12407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12408       conftest$ac_exeext conftest.$ac_ext
   12409 fi
   12410 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
   12411 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
   12412 if test $ac_cv_func_dlopen = yes; then
   12413   lt_cv_dlopen="dlopen"
   12414 else
   12415   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   12416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   12417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   12418   echo $ECHO_N "(cached) $ECHO_C" >&6
   12419 else
   12420   ac_check_lib_save_LIBS=$LIBS
   12421 LIBS="-ldl  $LIBS"
   12422 cat >conftest.$ac_ext <<_ACEOF
   12423 /* confdefs.h.  */
   12424 _ACEOF
   12425 cat confdefs.h >>conftest.$ac_ext
   12426 cat >>conftest.$ac_ext <<_ACEOF
   12427 /* end confdefs.h.  */
   12428 
   12429 /* Override any GCC internal prototype to avoid an error.
   12430    Use char because int might match the return type of a GCC
   12431    builtin and then its argument prototype would still apply.  */
   12432 #ifdef __cplusplus
   12433 extern "C"
   12434 #endif
   12435 char dlopen ();
   12436 int
   12437 main ()
   12438 {
   12439 return dlopen ();
   12440   ;
   12441   return 0;
   12442 }
   12443 _ACEOF
   12444 rm -f conftest.$ac_objext conftest$ac_exeext
   12445 if { (ac_try="$ac_link"
   12446 case "(($ac_try" in
   12447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12448   *) ac_try_echo=$ac_try;;
   12449 esac
   12450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12451   (eval "$ac_link") 2>conftest.er1
   12452   ac_status=$?
   12453   grep -v '^ *+' conftest.er1 >conftest.err
   12454   rm -f conftest.er1
   12455   cat conftest.err >&5
   12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12457   (exit $ac_status); } && {
   12458 	 test -z "$ac_cxx_werror_flag" ||
   12459 	 test ! -s conftest.err
   12460        } && test -s conftest$ac_exeext &&
   12461        $as_test_x conftest$ac_exeext; then
   12462   ac_cv_lib_dl_dlopen=yes
   12463 else
   12464   echo "$as_me: failed program was:" >&5
   12465 sed 's/^/| /' conftest.$ac_ext >&5
   12466 
   12467 	ac_cv_lib_dl_dlopen=no
   12468 fi
   12469 
   12470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12471       conftest$ac_exeext conftest.$ac_ext
   12472 LIBS=$ac_check_lib_save_LIBS
   12473 fi
   12474 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   12475 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   12476 if test $ac_cv_lib_dl_dlopen = yes; then
   12477   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   12478 else
   12479   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   12480 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   12481 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   12482   echo $ECHO_N "(cached) $ECHO_C" >&6
   12483 else
   12484   ac_check_lib_save_LIBS=$LIBS
   12485 LIBS="-lsvld  $LIBS"
   12486 cat >conftest.$ac_ext <<_ACEOF
   12487 /* confdefs.h.  */
   12488 _ACEOF
   12489 cat confdefs.h >>conftest.$ac_ext
   12490 cat >>conftest.$ac_ext <<_ACEOF
   12491 /* end confdefs.h.  */
   12492 
   12493 /* Override any GCC internal prototype to avoid an error.
   12494    Use char because int might match the return type of a GCC
   12495    builtin and then its argument prototype would still apply.  */
   12496 #ifdef __cplusplus
   12497 extern "C"
   12498 #endif
   12499 char dlopen ();
   12500 int
   12501 main ()
   12502 {
   12503 return dlopen ();
   12504   ;
   12505   return 0;
   12506 }
   12507 _ACEOF
   12508 rm -f conftest.$ac_objext conftest$ac_exeext
   12509 if { (ac_try="$ac_link"
   12510 case "(($ac_try" in
   12511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12512   *) ac_try_echo=$ac_try;;
   12513 esac
   12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12515   (eval "$ac_link") 2>conftest.er1
   12516   ac_status=$?
   12517   grep -v '^ *+' conftest.er1 >conftest.err
   12518   rm -f conftest.er1
   12519   cat conftest.err >&5
   12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12521   (exit $ac_status); } && {
   12522 	 test -z "$ac_cxx_werror_flag" ||
   12523 	 test ! -s conftest.err
   12524        } && test -s conftest$ac_exeext &&
   12525        $as_test_x conftest$ac_exeext; then
   12526   ac_cv_lib_svld_dlopen=yes
   12527 else
   12528   echo "$as_me: failed program was:" >&5
   12529 sed 's/^/| /' conftest.$ac_ext >&5
   12530 
   12531 	ac_cv_lib_svld_dlopen=no
   12532 fi
   12533 
   12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12535       conftest$ac_exeext conftest.$ac_ext
   12536 LIBS=$ac_check_lib_save_LIBS
   12537 fi
   12538 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   12539 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   12540 if test $ac_cv_lib_svld_dlopen = yes; then
   12541   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   12542 else
   12543   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   12544 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   12545 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   12546   echo $ECHO_N "(cached) $ECHO_C" >&6
   12547 else
   12548   ac_check_lib_save_LIBS=$LIBS
   12549 LIBS="-ldld  $LIBS"
   12550 cat >conftest.$ac_ext <<_ACEOF
   12551 /* confdefs.h.  */
   12552 _ACEOF
   12553 cat confdefs.h >>conftest.$ac_ext
   12554 cat >>conftest.$ac_ext <<_ACEOF
   12555 /* end confdefs.h.  */
   12556 
   12557 /* Override any GCC internal prototype to avoid an error.
   12558    Use char because int might match the return type of a GCC
   12559    builtin and then its argument prototype would still apply.  */
   12560 #ifdef __cplusplus
   12561 extern "C"
   12562 #endif
   12563 char dld_link ();
   12564 int
   12565 main ()
   12566 {
   12567 return dld_link ();
   12568   ;
   12569   return 0;
   12570 }
   12571 _ACEOF
   12572 rm -f conftest.$ac_objext conftest$ac_exeext
   12573 if { (ac_try="$ac_link"
   12574 case "(($ac_try" in
   12575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   12576   *) ac_try_echo=$ac_try;;
   12577 esac
   12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   12579   (eval "$ac_link") 2>conftest.er1
   12580   ac_status=$?
   12581   grep -v '^ *+' conftest.er1 >conftest.err
   12582   rm -f conftest.er1
   12583   cat conftest.err >&5
   12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12585   (exit $ac_status); } && {
   12586 	 test -z "$ac_cxx_werror_flag" ||
   12587 	 test ! -s conftest.err
   12588        } && test -s conftest$ac_exeext &&
   12589        $as_test_x conftest$ac_exeext; then
   12590   ac_cv_lib_dld_dld_link=yes
   12591 else
   12592   echo "$as_me: failed program was:" >&5
   12593 sed 's/^/| /' conftest.$ac_ext >&5
   12594 
   12595 	ac_cv_lib_dld_dld_link=no
   12596 fi
   12597 
   12598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   12599       conftest$ac_exeext conftest.$ac_ext
   12600 LIBS=$ac_check_lib_save_LIBS
   12601 fi
   12602 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   12603 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   12604 if test $ac_cv_lib_dld_dld_link = yes; then
   12605   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
   12606 fi
   12607 
   12608 
   12609 fi
   12610 
   12611 
   12612 fi
   12613 
   12614 
   12615 fi
   12616 
   12617 
   12618 fi
   12619 
   12620 
   12621 fi
   12622 
   12623     ;;
   12624   esac
   12625 
   12626   if test "x$lt_cv_dlopen" != xno; then
   12627     enable_dlopen=yes
   12628   else
   12629     enable_dlopen=no
   12630   fi
   12631 
   12632   case $lt_cv_dlopen in
   12633   dlopen)
   12634     save_CPPFLAGS="$CPPFLAGS"
   12635     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   12636 
   12637     save_LDFLAGS="$LDFLAGS"
   12638     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   12639 
   12640     save_LIBS="$LIBS"
   12641     LIBS="$lt_cv_dlopen_libs $LIBS"
   12642 
   12643     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
   12644 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
   12645 if test "${lt_cv_dlopen_self+set}" = set; then
   12646   echo $ECHO_N "(cached) $ECHO_C" >&6
   12647 else
   12648   	  if test "$cross_compiling" = yes; then :
   12649   lt_cv_dlopen_self=cross
   12650 else
   12651   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   12652   lt_status=$lt_dlunknown
   12653   cat > conftest.$ac_ext <<EOF
   12654 #line 12654 "configure"
   12655 #include "confdefs.h"
   12656 
   12657 #if HAVE_DLFCN_H
   12658 #include <dlfcn.h>
   12659 #endif
   12660 
   12661 #include <stdio.h>
   12662 
   12663 #ifdef RTLD_GLOBAL
   12664 #  define LT_DLGLOBAL		RTLD_GLOBAL
   12665 #else
   12666 #  ifdef DL_GLOBAL
   12667 #    define LT_DLGLOBAL		DL_GLOBAL
   12668 #  else
   12669 #    define LT_DLGLOBAL		0
   12670 #  endif
   12671 #endif
   12672 
   12673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   12674    find out it does not work in some platform. */
   12675 #ifndef LT_DLLAZY_OR_NOW
   12676 #  ifdef RTLD_LAZY
   12677 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   12678 #  else
   12679 #    ifdef DL_LAZY
   12680 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   12681 #    else
   12682 #      ifdef RTLD_NOW
   12683 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   12684 #      else
   12685 #        ifdef DL_NOW
   12686 #          define LT_DLLAZY_OR_NOW	DL_NOW
   12687 #        else
   12688 #          define LT_DLLAZY_OR_NOW	0
   12689 #        endif
   12690 #      endif
   12691 #    endif
   12692 #  endif
   12693 #endif
   12694 
   12695 #ifdef __cplusplus
   12696 extern "C" void exit (int);
   12697 #endif
   12698 
   12699 void fnord() { int i=42;}
   12700 int main ()
   12701 {
   12702   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   12703   int status = $lt_dlunknown;
   12704 
   12705   if (self)
   12706     {
   12707       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   12708       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   12709       /* dlclose (self); */
   12710     }
   12711 
   12712     exit (status);
   12713 }
   12714 EOF
   12715   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12716   (eval $ac_link) 2>&5
   12717   ac_status=$?
   12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12719   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   12720     (./conftest; exit; ) 2>/dev/null
   12721     lt_status=$?
   12722     case x$lt_status in
   12723       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   12724       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   12725       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
   12726     esac
   12727   else :
   12728     # compilation failed
   12729     lt_cv_dlopen_self=no
   12730   fi
   12731 fi
   12732 rm -fr conftest*
   12733 
   12734 
   12735 fi
   12736 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
   12737 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
   12738 
   12739     if test "x$lt_cv_dlopen_self" = xyes; then
   12740       LDFLAGS="$LDFLAGS $link_static_flag"
   12741       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
   12742 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
   12743 if test "${lt_cv_dlopen_self_static+set}" = set; then
   12744   echo $ECHO_N "(cached) $ECHO_C" >&6
   12745 else
   12746   	  if test "$cross_compiling" = yes; then :
   12747   lt_cv_dlopen_self_static=cross
   12748 else
   12749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   12750   lt_status=$lt_dlunknown
   12751   cat > conftest.$ac_ext <<EOF
   12752 #line 12752 "configure"
   12753 #include "confdefs.h"
   12754 
   12755 #if HAVE_DLFCN_H
   12756 #include <dlfcn.h>
   12757 #endif
   12758 
   12759 #include <stdio.h>
   12760 
   12761 #ifdef RTLD_GLOBAL
   12762 #  define LT_DLGLOBAL		RTLD_GLOBAL
   12763 #else
   12764 #  ifdef DL_GLOBAL
   12765 #    define LT_DLGLOBAL		DL_GLOBAL
   12766 #  else
   12767 #    define LT_DLGLOBAL		0
   12768 #  endif
   12769 #endif
   12770 
   12771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   12772    find out it does not work in some platform. */
   12773 #ifndef LT_DLLAZY_OR_NOW
   12774 #  ifdef RTLD_LAZY
   12775 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   12776 #  else
   12777 #    ifdef DL_LAZY
   12778 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   12779 #    else
   12780 #      ifdef RTLD_NOW
   12781 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   12782 #      else
   12783 #        ifdef DL_NOW
   12784 #          define LT_DLLAZY_OR_NOW	DL_NOW
   12785 #        else
   12786 #          define LT_DLLAZY_OR_NOW	0
   12787 #        endif
   12788 #      endif
   12789 #    endif
   12790 #  endif
   12791 #endif
   12792 
   12793 #ifdef __cplusplus
   12794 extern "C" void exit (int);
   12795 #endif
   12796 
   12797 void fnord() { int i=42;}
   12798 int main ()
   12799 {
   12800   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   12801   int status = $lt_dlunknown;
   12802 
   12803   if (self)
   12804     {
   12805       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   12806       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   12807       /* dlclose (self); */
   12808     }
   12809 
   12810     exit (status);
   12811 }
   12812 EOF
   12813   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   12814   (eval $ac_link) 2>&5
   12815   ac_status=$?
   12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   12817   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   12818     (./conftest; exit; ) 2>/dev/null
   12819     lt_status=$?
   12820     case x$lt_status in
   12821       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   12822       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   12823       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
   12824     esac
   12825   else :
   12826     # compilation failed
   12827     lt_cv_dlopen_self_static=no
   12828   fi
   12829 fi
   12830 rm -fr conftest*
   12831 
   12832 
   12833 fi
   12834 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
   12835 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
   12836     fi
   12837 
   12838     CPPFLAGS="$save_CPPFLAGS"
   12839     LDFLAGS="$save_LDFLAGS"
   12840     LIBS="$save_LIBS"
   12841     ;;
   12842   esac
   12843 
   12844   case $lt_cv_dlopen_self in
   12845   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   12846   *) enable_dlopen_self=unknown ;;
   12847   esac
   12848 
   12849   case $lt_cv_dlopen_self_static in
   12850   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   12851   *) enable_dlopen_self_static=unknown ;;
   12852   esac
   12853 fi
   12854 
   12855 
   12856 # The else clause should only fire when bootstrapping the
   12857 # libtool distribution, otherwise you forgot to ship ltmain.sh
   12858 # with your package, and you will get complaints that there are
   12859 # no rules to generate ltmain.sh.
   12860 if test -f "$ltmain"; then
   12861   # See if we are running on zsh, and set the options which allow our commands through
   12862   # without removal of \ escapes.
   12863   if test -n "${ZSH_VERSION+set}" ; then
   12864     setopt NO_GLOB_SUBST
   12865   fi
   12866   # Now quote all the things that may contain metacharacters while being
   12867   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   12868   # variables and quote the copies for generation of the libtool script.
   12869   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   12870     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   12871     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   12872     deplibs_check_method reload_flag reload_cmds need_locks \
   12873     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   12874     lt_cv_sys_global_symbol_to_c_name_address \
   12875     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   12876     old_postinstall_cmds old_postuninstall_cmds \
   12877     compiler_CXX \
   12878     CC_CXX \
   12879     LD_CXX \
   12880     lt_prog_compiler_wl_CXX \
   12881     lt_prog_compiler_pic_CXX \
   12882     lt_prog_compiler_static_CXX \
   12883     lt_prog_compiler_no_builtin_flag_CXX \
   12884     export_dynamic_flag_spec_CXX \
   12885     thread_safe_flag_spec_CXX \
   12886     whole_archive_flag_spec_CXX \
   12887     enable_shared_with_static_runtimes_CXX \
   12888     old_archive_cmds_CXX \
   12889     old_archive_from_new_cmds_CXX \
   12890     predep_objects_CXX \
   12891     postdep_objects_CXX \
   12892     predeps_CXX \
   12893     postdeps_CXX \
   12894     compiler_lib_search_path_CXX \
   12895     archive_cmds_CXX \
   12896     archive_expsym_cmds_CXX \
   12897     postinstall_cmds_CXX \
   12898     postuninstall_cmds_CXX \
   12899     old_archive_from_expsyms_cmds_CXX \
   12900     allow_undefined_flag_CXX \
   12901     no_undefined_flag_CXX \
   12902     export_symbols_cmds_CXX \
   12903     hardcode_libdir_flag_spec_CXX \
   12904     hardcode_libdir_flag_spec_ld_CXX \
   12905     hardcode_libdir_separator_CXX \
   12906     hardcode_automatic_CXX \
   12907     module_cmds_CXX \
   12908     module_expsym_cmds_CXX \
   12909     lt_cv_prog_compiler_c_o_CXX \
   12910     exclude_expsyms_CXX \
   12911     include_expsyms_CXX; do
   12912 
   12913     case $var in
   12914     old_archive_cmds_CXX | \
   12915     old_archive_from_new_cmds_CXX | \
   12916     archive_cmds_CXX | \
   12917     archive_expsym_cmds_CXX | \
   12918     module_cmds_CXX | \
   12919     module_expsym_cmds_CXX | \
   12920     old_archive_from_expsyms_cmds_CXX | \
   12921     export_symbols_cmds_CXX | \
   12922     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   12923     postinstall_cmds | postuninstall_cmds | \
   12924     old_postinstall_cmds | old_postuninstall_cmds | \
   12925     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   12926       # Double-quote double-evaled strings.
   12927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   12928       ;;
   12929     *)
   12930       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   12931       ;;
   12932     esac
   12933   done
   12934 
   12935   case $lt_echo in
   12936   *'\$0 --fallback-echo"')
   12937     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   12938     ;;
   12939   esac
   12940 
   12941 cfgfile="$ofile"
   12942 
   12943   cat <<__EOF__ >> "$cfgfile"
   12944 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
   12945 
   12946 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   12947 
   12948 # Shell to use when invoking shell scripts.
   12949 SHELL=$lt_SHELL
   12950 
   12951 # Whether or not to build shared libraries.
   12952 build_libtool_libs=$enable_shared
   12953 
   12954 # Whether or not to build static libraries.
   12955 build_old_libs=$enable_static
   12956 
   12957 # Whether or not to add -lc for building shared libraries.
   12958 build_libtool_need_lc=$archive_cmds_need_lc_CXX
   12959 
   12960 # Whether or not to disallow shared libs when runtime libs are static
   12961 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
   12962 
   12963 # Whether or not to optimize for fast installation.
   12964 fast_install=$enable_fast_install
   12965 
   12966 # The host system.
   12967 host_alias=$host_alias
   12968 host=$host
   12969 
   12970 # An echo program that does not interpret backslashes.
   12971 echo=$lt_echo
   12972 
   12973 # The archiver.
   12974 AR=$lt_AR
   12975 AR_FLAGS=$lt_AR_FLAGS
   12976 
   12977 # A C compiler.
   12978 LTCC=$lt_LTCC
   12979 
   12980 # A language-specific compiler.
   12981 CC=$lt_compiler_CXX
   12982 
   12983 # Is the compiler the GNU C compiler?
   12984 with_gcc=$GCC_CXX
   12985 
   12986 # An ERE matcher.
   12987 EGREP=$lt_EGREP
   12988 
   12989 # The linker used to build libraries.
   12990 LD=$lt_LD_CXX
   12991 
   12992 # Whether we need hard or soft links.
   12993 LN_S=$lt_LN_S
   12994 
   12995 # A BSD-compatible nm program.
   12996 NM=$lt_NM
   12997 
   12998 # A symbol stripping program
   12999 STRIP="$STRIP"
   13000 
   13001 # Used to examine libraries when file_magic_cmd begins "file"
   13002 MAGIC_CMD=$MAGIC_CMD
   13003 
   13004 # Used on cygwin: DLL creation program.
   13005 DLLTOOL="$DLLTOOL"
   13006 
   13007 # Used on cygwin: object dumper.
   13008 OBJDUMP="$OBJDUMP"
   13009 
   13010 # Used on cygwin: assembler.
   13011 AS="$AS"
   13012 
   13013 # The name of the directory that contains temporary libtool files.
   13014 objdir=$objdir
   13015 
   13016 # How to create reloadable object files.
   13017 reload_flag=$lt_reload_flag
   13018 reload_cmds=$lt_reload_cmds
   13019 
   13020 # How to pass a linker flag through the compiler.
   13021 wl=$lt_lt_prog_compiler_wl_CXX
   13022 
   13023 # Object file suffix (normally "o").
   13024 objext="$ac_objext"
   13025 
   13026 # Old archive suffix (normally "a").
   13027 libext="$libext"
   13028 
   13029 # Shared library suffix (normally ".so").
   13030 shrext='$shrext'
   13031 
   13032 # Executable file suffix (normally "").
   13033 exeext="$exeext"
   13034 
   13035 # Additional compiler flags for building library objects.
   13036 pic_flag=$lt_lt_prog_compiler_pic_CXX
   13037 pic_mode=$pic_mode
   13038 
   13039 # What is the maximum length of a command?
   13040 max_cmd_len=$lt_cv_sys_max_cmd_len
   13041 
   13042 # Does compiler simultaneously support -c and -o options?
   13043 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
   13044 
   13045 # Must we lock files when doing compilation ?
   13046 need_locks=$lt_need_locks
   13047 
   13048 # Do we need the lib prefix for modules?
   13049 need_lib_prefix=$need_lib_prefix
   13050 
   13051 # Do we need a version for libraries?
   13052 need_version=$need_version
   13053 
   13054 # Whether dlopen is supported.
   13055 dlopen_support=$enable_dlopen
   13056 
   13057 # Whether dlopen of programs is supported.
   13058 dlopen_self=$enable_dlopen_self
   13059 
   13060 # Whether dlopen of statically linked programs is supported.
   13061 dlopen_self_static=$enable_dlopen_self_static
   13062 
   13063 # Compiler flag to prevent dynamic linking.
   13064 link_static_flag=$lt_lt_prog_compiler_static_CXX
   13065 
   13066 # Compiler flag to turn off builtin functions.
   13067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
   13068 
   13069 # Compiler flag to allow reflexive dlopens.
   13070 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
   13071 
   13072 # Compiler flag to generate shared objects directly from archives.
   13073 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
   13074 
   13075 # Compiler flag to generate thread-safe objects.
   13076 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
   13077 
   13078 # Library versioning type.
   13079 version_type=$version_type
   13080 
   13081 # Format of library name prefix.
   13082 libname_spec=$lt_libname_spec
   13083 
   13084 # List of archive names.  First name is the real one, the rest are links.
   13085 # The last name is the one that the linker finds with -lNAME.
   13086 library_names_spec=$lt_library_names_spec
   13087 
   13088 # The coded name of the library, if different from the real name.
   13089 soname_spec=$lt_soname_spec
   13090 
   13091 # Commands used to build and install an old-style archive.
   13092 RANLIB=$lt_RANLIB
   13093 old_archive_cmds=$lt_old_archive_cmds_CXX
   13094 old_postinstall_cmds=$lt_old_postinstall_cmds
   13095 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   13096 
   13097 # Create an old-style archive from a shared archive.
   13098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
   13099 
   13100 # Create a temporary old-style archive to link instead of a shared archive.
   13101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
   13102 
   13103 # Commands used to build and install a shared archive.
   13104 archive_cmds=$lt_archive_cmds_CXX
   13105 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
   13106 postinstall_cmds=$lt_postinstall_cmds
   13107 postuninstall_cmds=$lt_postuninstall_cmds
   13108 
   13109 # Commands used to build a loadable module (assumed same as above if empty)
   13110 module_cmds=$lt_module_cmds_CXX
   13111 module_expsym_cmds=$lt_module_expsym_cmds_CXX
   13112 
   13113 # Commands to strip libraries.
   13114 old_striplib=$lt_old_striplib
   13115 striplib=$lt_striplib
   13116 
   13117 # Dependencies to place before the objects being linked to create a
   13118 # shared library.
   13119 predep_objects=$lt_predep_objects_CXX
   13120 
   13121 # Dependencies to place after the objects being linked to create a
   13122 # shared library.
   13123 postdep_objects=$lt_postdep_objects_CXX
   13124 
   13125 # Dependencies to place before the objects being linked to create a
   13126 # shared library.
   13127 predeps=$lt_predeps_CXX
   13128 
   13129 # Dependencies to place after the objects being linked to create a
   13130 # shared library.
   13131 postdeps=$lt_postdeps_CXX
   13132 
   13133 # The library search path used internally by the compiler when linking
   13134 # a shared library.
   13135 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
   13136 
   13137 # Method to check whether dependent libraries are shared objects.
   13138 deplibs_check_method=$lt_deplibs_check_method
   13139 
   13140 # Command to use when deplibs_check_method == file_magic.
   13141 file_magic_cmd=$lt_file_magic_cmd
   13142 
   13143 # Flag that allows shared libraries with undefined symbols to be built.
   13144 allow_undefined_flag=$lt_allow_undefined_flag_CXX
   13145 
   13146 # Flag that forces no undefined symbols.
   13147 no_undefined_flag=$lt_no_undefined_flag_CXX
   13148 
   13149 # Commands used to finish a libtool library installation in a directory.
   13150 finish_cmds=$lt_finish_cmds
   13151 
   13152 # Same as above, but a single script fragment to be evaled but not shown.
   13153 finish_eval=$lt_finish_eval
   13154 
   13155 # Take the output of nm and produce a listing of raw symbols and C names.
   13156 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   13157 
   13158 # Transform the output of nm in a proper C declaration
   13159 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   13160 
   13161 # Transform the output of nm in a C name address pair
   13162 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   13163 
   13164 # This is the shared library runtime path variable.
   13165 runpath_var=$runpath_var
   13166 
   13167 # This is the shared library path variable.
   13168 shlibpath_var=$shlibpath_var
   13169 
   13170 # Is shlibpath searched before the hard-coded library search path?
   13171 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   13172 
   13173 # How to hardcode a shared library path into an executable.
   13174 hardcode_action=$hardcode_action_CXX
   13175 
   13176 # Whether we should hardcode library paths into libraries.
   13177 hardcode_into_libs=$hardcode_into_libs
   13178 
   13179 # Flag to hardcode \$libdir into a binary during linking.
   13180 # This must work even if \$libdir does not exist.
   13181 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
   13182 
   13183 # If ld is used when linking, flag to hardcode \$libdir into
   13184 # a binary during linking. This must work even if \$libdir does
   13185 # not exist.
   13186 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
   13187 
   13188 # Whether we need a single -rpath flag with a separated argument.
   13189 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
   13190 
   13191 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   13192 # resulting binary.
   13193 hardcode_direct=$hardcode_direct_CXX
   13194 
   13195 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   13196 # resulting binary.
   13197 hardcode_minus_L=$hardcode_minus_L_CXX
   13198 
   13199 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   13200 # the resulting binary.
   13201 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
   13202 
   13203 # Set to yes if building a shared library automatically hardcodes DIR into the library
   13204 # and all subsequent libraries and executables linked against it.
   13205 hardcode_automatic=$hardcode_automatic_CXX
   13206 
   13207 # Variables whose values should be saved in libtool wrapper scripts and
   13208 # restored at relink time.
   13209 variables_saved_for_relink="$variables_saved_for_relink"
   13210 
   13211 # Whether libtool must link a program against all its dependency libraries.
   13212 link_all_deplibs=$link_all_deplibs_CXX
   13213 
   13214 # Compile-time system search path for libraries
   13215 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   13216 
   13217 # Run-time system search path for libraries
   13218 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   13219 
   13220 # Fix the shell variable \$srcfile for the compiler.
   13221 fix_srcfile_path="$fix_srcfile_path_CXX"
   13222 
   13223 # Set to yes if exported symbols are required.
   13224 always_export_symbols=$always_export_symbols_CXX
   13225 
   13226 # The commands to list exported symbols.
   13227 export_symbols_cmds=$lt_export_symbols_cmds_CXX
   13228 
   13229 # The commands to extract the exported symbol list from a shared archive.
   13230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   13231 
   13232 # Symbols that should not be listed in the preloaded symbols.
   13233 exclude_expsyms=$lt_exclude_expsyms_CXX
   13234 
   13235 # Symbols that must always be exported.
   13236 include_expsyms=$lt_include_expsyms_CXX
   13237 
   13238 # ### END LIBTOOL TAG CONFIG: $tagname
   13239 
   13240 __EOF__
   13241 
   13242 
   13243 else
   13244   # If there is no Makefile yet, we rely on a make rule to execute
   13245   # `config.status --recheck' to rerun these tests and create the
   13246   # libtool script then.
   13247   test -f Makefile && make "$ltmain"
   13248 fi
   13249 
   13250 
   13251 ac_ext=c
   13252 ac_cpp='$CPP $CPPFLAGS'
   13253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13256 
   13257 CC=$lt_save_CC
   13258 LDCXX=$LD
   13259 LD=$lt_save_LD
   13260 GCC=$lt_save_GCC
   13261 with_gnu_ldcxx=$with_gnu_ld
   13262 with_gnu_ld=$lt_save_with_gnu_ld
   13263 lt_cv_path_LDCXX=$lt_cv_path_LD
   13264 lt_cv_path_LD=$lt_save_path_LD
   13265 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
   13266 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
   13267 
   13268 	else
   13269 	  tagname=""
   13270 	fi
   13271 	;;
   13272 
   13273       F77)
   13274 	if test -n "$F77" && test "X$F77" != "Xno"; then
   13275 
   13276 ac_ext=f
   13277 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
   13278 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13279 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
   13280 
   13281 
   13282 archive_cmds_need_lc_F77=no
   13283 allow_undefined_flag_F77=
   13284 always_export_symbols_F77=no
   13285 archive_expsym_cmds_F77=
   13286 export_dynamic_flag_spec_F77=
   13287 hardcode_direct_F77=no
   13288 hardcode_libdir_flag_spec_F77=
   13289 hardcode_libdir_flag_spec_ld_F77=
   13290 hardcode_libdir_separator_F77=
   13291 hardcode_minus_L_F77=no
   13292 hardcode_automatic_F77=no
   13293 module_cmds_F77=
   13294 module_expsym_cmds_F77=
   13295 link_all_deplibs_F77=unknown
   13296 old_archive_cmds_F77=$old_archive_cmds
   13297 no_undefined_flag_F77=
   13298 whole_archive_flag_spec_F77=
   13299 enable_shared_with_static_runtimes_F77=no
   13300 
   13301 # Source file extension for f77 test sources.
   13302 ac_ext=f
   13303 
   13304 # Object file extension for compiled f77 test sources.
   13305 objext=o
   13306 objext_F77=$objext
   13307 
   13308 # Code to be used in simple compile tests
   13309 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
   13310 
   13311 # Code to be used in simple link tests
   13312 lt_simple_link_test_code="      program t\n      end\n"
   13313 
   13314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   13315 
   13316 # If no C compiler was specified, use CC.
   13317 LTCC=${LTCC-"$CC"}
   13318 
   13319 # Allow CC to be a program name with arguments.
   13320 compiler=$CC
   13321 
   13322 
   13323 # Allow CC to be a program name with arguments.
   13324 lt_save_CC="$CC"
   13325 CC=${F77-"f77"}
   13326 compiler=$CC
   13327 compiler_F77=$CC
   13328 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
   13329 
   13330 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
   13331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
   13332 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
   13333 echo "${ECHO_T}$can_build_shared" >&6; }
   13334 
   13335 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
   13336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
   13337 test "$can_build_shared" = "no" && enable_shared=no
   13338 
   13339 # On AIX, shared libraries and static libraries use the same namespace, and
   13340 # are all built from PIC.
   13341 case "$host_os" in
   13342 aix3*)
   13343   test "$enable_shared" = yes && enable_static=no
   13344   if test -n "$RANLIB"; then
   13345     archive_cmds="$archive_cmds~\$RANLIB \$lib"
   13346     postinstall_cmds='$RANLIB $lib'
   13347   fi
   13348   ;;
   13349 aix4*)
   13350   test "$enable_shared" = yes && enable_static=no
   13351   ;;
   13352 esac
   13353 { echo "$as_me:$LINENO: result: $enable_shared" >&5
   13354 echo "${ECHO_T}$enable_shared" >&6; }
   13355 
   13356 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
   13357 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
   13358 # Make sure either enable_shared or enable_static is yes.
   13359 test "$enable_shared" = yes || enable_static=yes
   13360 { echo "$as_me:$LINENO: result: $enable_static" >&5
   13361 echo "${ECHO_T}$enable_static" >&6; }
   13362 
   13363 test "$ld_shlibs_F77" = no && can_build_shared=no
   13364 
   13365 GCC_F77="$G77"
   13366 LD_F77="$LD"
   13367 
   13368 lt_prog_compiler_wl_F77=
   13369 lt_prog_compiler_pic_F77=
   13370 lt_prog_compiler_static_F77=
   13371 
   13372 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   13373 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   13374 
   13375   if test "$GCC" = yes; then
   13376     lt_prog_compiler_wl_F77='-Wl,'
   13377     lt_prog_compiler_static_F77='-static'
   13378 
   13379     case $host_os in
   13380       aix*)
   13381       # All AIX code is PIC.
   13382       if test "$host_cpu" = ia64; then
   13383 	# AIX 5 now supports IA64 processor
   13384 	lt_prog_compiler_static_F77='-Bstatic'
   13385       fi
   13386       ;;
   13387 
   13388     amigaos*)
   13389       # FIXME: we need at least 68020 code to build shared libraries, but
   13390       # adding the `-m68020' flag to GCC prevents building anything better,
   13391       # like `-m68040'.
   13392       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
   13393       ;;
   13394 
   13395     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   13396       # PIC is the default for these OSes.
   13397       ;;
   13398 
   13399     mingw* | pw32* | os2*)
   13400       # This hack is so that the source file can tell whether it is being
   13401       # built for inclusion in a dll (and should export symbols for example).
   13402       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
   13403       ;;
   13404 
   13405     darwin* | rhapsody*)
   13406       # PIC is the default on this platform
   13407       # Common symbols not allowed in MH_DYLIB files
   13408       lt_prog_compiler_pic_F77='-fno-common'
   13409       ;;
   13410 
   13411     msdosdjgpp*)
   13412       # Just because we use GCC doesn't mean we suddenly get shared libraries
   13413       # on systems that don't support them.
   13414       lt_prog_compiler_can_build_shared_F77=no
   13415       enable_shared=no
   13416       ;;
   13417 
   13418     sysv4*MP*)
   13419       if test -d /usr/nec; then
   13420 	lt_prog_compiler_pic_F77=-Kconform_pic
   13421       fi
   13422       ;;
   13423 
   13424     hpux*)
   13425       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   13426       # not for PA HP-UX.
   13427       case "$host_cpu" in
   13428       hppa*64*|ia64*)
   13429 	# +Z the default
   13430 	;;
   13431       *)
   13432 	lt_prog_compiler_pic_F77='-fPIC'
   13433 	;;
   13434       esac
   13435       ;;
   13436 
   13437     *)
   13438       lt_prog_compiler_pic_F77='-fPIC'
   13439       ;;
   13440     esac
   13441   else
   13442     # PORTME Check for flag to pass linker flags through the system compiler.
   13443     case $host_os in
   13444     aix*)
   13445       lt_prog_compiler_wl_F77='-Wl,'
   13446       if test "$host_cpu" = ia64; then
   13447 	# AIX 5 now supports IA64 processor
   13448 	lt_prog_compiler_static_F77='-Bstatic'
   13449       else
   13450 	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
   13451       fi
   13452       ;;
   13453 
   13454     mingw* | pw32* | os2*)
   13455       # This hack is so that the source file can tell whether it is being
   13456       # built for inclusion in a dll (and should export symbols for example).
   13457       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
   13458       ;;
   13459 
   13460     hpux9* | hpux10* | hpux11*)
   13461       lt_prog_compiler_wl_F77='-Wl,'
   13462       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   13463       # not for PA HP-UX.
   13464       case "$host_cpu" in
   13465       hppa*64*|ia64*)
   13466 	# +Z the default
   13467 	;;
   13468       *)
   13469 	lt_prog_compiler_pic_F77='+Z'
   13470 	;;
   13471       esac
   13472       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   13473       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
   13474       ;;
   13475 
   13476     irix5* | irix6* | nonstopux*)
   13477       lt_prog_compiler_wl_F77='-Wl,'
   13478       # PIC (with -KPIC) is the default.
   13479       lt_prog_compiler_static_F77='-non_shared'
   13480       ;;
   13481 
   13482     newsos6)
   13483       lt_prog_compiler_pic_F77='-KPIC'
   13484       lt_prog_compiler_static_F77='-Bstatic'
   13485       ;;
   13486 
   13487     linux*)
   13488       case $CC in
   13489       icc* | ecc*)
   13490 	lt_prog_compiler_wl_F77='-Wl,'
   13491 	lt_prog_compiler_pic_F77='-KPIC'
   13492 	lt_prog_compiler_static_F77='-static'
   13493         ;;
   13494       ccc*)
   13495         lt_prog_compiler_wl_F77='-Wl,'
   13496         # All Alpha code is PIC.
   13497         lt_prog_compiler_static_F77='-non_shared'
   13498         ;;
   13499       esac
   13500       ;;
   13501 
   13502     osf3* | osf4* | osf5*)
   13503       lt_prog_compiler_wl_F77='-Wl,'
   13504       # All OSF/1 code is PIC.
   13505       lt_prog_compiler_static_F77='-non_shared'
   13506       ;;
   13507 
   13508     sco3.2v5*)
   13509       lt_prog_compiler_pic_F77='-Kpic'
   13510       lt_prog_compiler_static_F77='-dn'
   13511       ;;
   13512 
   13513     solaris*)
   13514       lt_prog_compiler_wl_F77='-Wl,'
   13515       lt_prog_compiler_pic_F77='-KPIC'
   13516       lt_prog_compiler_static_F77='-Bstatic'
   13517       ;;
   13518 
   13519     sunos4*)
   13520       lt_prog_compiler_wl_F77='-Qoption ld '
   13521       lt_prog_compiler_pic_F77='-PIC'
   13522       lt_prog_compiler_static_F77='-Bstatic'
   13523       ;;
   13524 
   13525     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   13526       lt_prog_compiler_wl_F77='-Wl,'
   13527       lt_prog_compiler_pic_F77='-KPIC'
   13528       lt_prog_compiler_static_F77='-Bstatic'
   13529       ;;
   13530 
   13531     sysv4*MP*)
   13532       if test -d /usr/nec ;then
   13533 	lt_prog_compiler_pic_F77='-Kconform_pic'
   13534 	lt_prog_compiler_static_F77='-Bstatic'
   13535       fi
   13536       ;;
   13537 
   13538     uts4*)
   13539       lt_prog_compiler_pic_F77='-pic'
   13540       lt_prog_compiler_static_F77='-Bstatic'
   13541       ;;
   13542 
   13543     *)
   13544       lt_prog_compiler_can_build_shared_F77=no
   13545       ;;
   13546     esac
   13547   fi
   13548 
   13549 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
   13550 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
   13551 
   13552 #
   13553 # Check to make sure the PIC flag actually works.
   13554 #
   13555 if test -n "$lt_prog_compiler_pic_F77"; then
   13556 
   13557 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
   13558 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
   13559 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
   13560   echo $ECHO_N "(cached) $ECHO_C" >&6
   13561 else
   13562   lt_prog_compiler_pic_works_F77=no
   13563   ac_outfile=conftest.$ac_objext
   13564    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   13565    lt_compiler_flag="$lt_prog_compiler_pic_F77"
   13566    # Insert the option either (1) after the last *FLAGS variable, or
   13567    # (2) before a word containing "conftest.", or (3) at the end.
   13568    # Note that $ac_compile itself does not contain backslashes and begins
   13569    # with a dollar sign (not a hyphen), so the echo should work correctly.
   13570    # The option is referenced via a variable to avoid confusing sed.
   13571    lt_compile=`echo "$ac_compile" | $SED \
   13572    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   13573    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   13574    -e 's:$: $lt_compiler_flag:'`
   13575    (eval echo "\"\$as_me:13575: $lt_compile\"" >&5)
   13576    (eval "$lt_compile" 2>conftest.err)
   13577    ac_status=$?
   13578    cat conftest.err >&5
   13579    echo "$as_me:13579: \$? = $ac_status" >&5
   13580    if (exit $ac_status) && test -s "$ac_outfile"; then
   13581      # The compiler can only warn and ignore the option if not recognized
   13582      # So say no if there are warnings
   13583      if test ! -s conftest.err; then
   13584        lt_prog_compiler_pic_works_F77=yes
   13585      fi
   13586    fi
   13587    $rm conftest*
   13588 
   13589 fi
   13590 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
   13591 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
   13592 
   13593 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
   13594     case $lt_prog_compiler_pic_F77 in
   13595      "" | " "*) ;;
   13596      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
   13597      esac
   13598 else
   13599     lt_prog_compiler_pic_F77=
   13600      lt_prog_compiler_can_build_shared_F77=no
   13601 fi
   13602 
   13603 fi
   13604 case "$host_os" in
   13605   # For platforms which do not support PIC, -DPIC is meaningless:
   13606   *djgpp*)
   13607     lt_prog_compiler_pic_F77=
   13608     ;;
   13609   *)
   13610     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
   13611     ;;
   13612 esac
   13613 
   13614 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   13615 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   13616 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
   13617   echo $ECHO_N "(cached) $ECHO_C" >&6
   13618 else
   13619   lt_cv_prog_compiler_c_o_F77=no
   13620    $rm -r conftest 2>/dev/null
   13621    mkdir conftest
   13622    cd conftest
   13623    mkdir out
   13624    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   13625 
   13626    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   13627    # that will create temporary files in the current directory regardless of
   13628    # the output directory.  Thus, making CWD read-only will cause this test
   13629    # to fail, enabling locking or at least warning the user not to do parallel
   13630    # builds.
   13631    chmod -w .
   13632 
   13633    lt_compiler_flag="-o out/conftest2.$ac_objext"
   13634    # Insert the option either (1) after the last *FLAGS variable, or
   13635    # (2) before a word containing "conftest.", or (3) at the end.
   13636    # Note that $ac_compile itself does not contain backslashes and begins
   13637    # with a dollar sign (not a hyphen), so the echo should work correctly.
   13638    lt_compile=`echo "$ac_compile" | $SED \
   13639    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   13640    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   13641    -e 's:$: $lt_compiler_flag:'`
   13642    (eval echo "\"\$as_me:13642: $lt_compile\"" >&5)
   13643    (eval "$lt_compile" 2>out/conftest.err)
   13644    ac_status=$?
   13645    cat out/conftest.err >&5
   13646    echo "$as_me:13646: \$? = $ac_status" >&5
   13647    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   13648    then
   13649      # The compiler can only warn and ignore the option if not recognized
   13650      # So say no if there are warnings
   13651      if test ! -s out/conftest.err; then
   13652        lt_cv_prog_compiler_c_o_F77=yes
   13653      fi
   13654    fi
   13655    chmod u+w .
   13656    $rm conftest*
   13657    # SGI C++ compiler will create directory out/ii_files/ for
   13658    # template instantiation
   13659    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   13660    $rm out/* && rmdir out
   13661    cd ..
   13662    rmdir conftest
   13663    $rm conftest*
   13664 
   13665 fi
   13666 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
   13667 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
   13668 
   13669 
   13670 hard_links="nottested"
   13671 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
   13672   # do not overwrite the value of need_locks provided by the user
   13673   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   13674 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   13675   hard_links=yes
   13676   $rm conftest*
   13677   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   13678   touch conftest.a
   13679   ln conftest.a conftest.b 2>&5 || hard_links=no
   13680   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   13681   { echo "$as_me:$LINENO: result: $hard_links" >&5
   13682 echo "${ECHO_T}$hard_links" >&6; }
   13683   if test "$hard_links" = no; then
   13684     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   13685 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   13686     need_locks=warn
   13687   fi
   13688 else
   13689   need_locks=no
   13690 fi
   13691 
   13692 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   13693 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   13694 
   13695   runpath_var=
   13696   allow_undefined_flag_F77=
   13697   enable_shared_with_static_runtimes_F77=no
   13698   archive_cmds_F77=
   13699   archive_expsym_cmds_F77=
   13700   old_archive_From_new_cmds_F77=
   13701   old_archive_from_expsyms_cmds_F77=
   13702   export_dynamic_flag_spec_F77=
   13703   whole_archive_flag_spec_F77=
   13704   thread_safe_flag_spec_F77=
   13705   hardcode_libdir_flag_spec_F77=
   13706   hardcode_libdir_flag_spec_ld_F77=
   13707   hardcode_libdir_separator_F77=
   13708   hardcode_direct_F77=no
   13709   hardcode_minus_L_F77=no
   13710   hardcode_shlibpath_var_F77=unsupported
   13711   link_all_deplibs_F77=unknown
   13712   hardcode_automatic_F77=no
   13713   module_cmds_F77=
   13714   module_expsym_cmds_F77=
   13715   always_export_symbols_F77=no
   13716   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   13717   # include_expsyms should be a list of space-separated symbols to be *always*
   13718   # included in the symbol list
   13719   include_expsyms_F77=
   13720   # exclude_expsyms can be an extended regexp of symbols to exclude
   13721   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   13722   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   13723   # as well as any symbol that contains `d'.
   13724   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
   13725   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   13726   # platforms (ab)use it in PIC code, but their linkers get confused if
   13727   # the symbol is explicitly referenced.  Since portable code cannot
   13728   # rely on this symbol name, it's probably fine to never include it in
   13729   # preloaded symbol tables.
   13730   extract_expsyms_cmds=
   13731 
   13732   case $host_os in
   13733   cygwin* | mingw* | pw32*)
   13734     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   13735     # When not using gcc, we currently assume that we are using
   13736     # Microsoft Visual C++.
   13737     if test "$GCC" != yes; then
   13738       with_gnu_ld=no
   13739     fi
   13740     ;;
   13741   openbsd*)
   13742     with_gnu_ld=no
   13743     ;;
   13744   esac
   13745 
   13746   ld_shlibs_F77=yes
   13747   if test "$with_gnu_ld" = yes; then
   13748     # If archive_cmds runs LD, not CC, wlarc should be empty
   13749     wlarc='${wl}'
   13750 
   13751     # See if GNU ld supports shared libraries.
   13752     case $host_os in
   13753     aix3* | aix4* | aix5*)
   13754       # On AIX/PPC, the GNU linker is very broken
   13755       if test "$host_cpu" != ia64; then
   13756 	ld_shlibs_F77=no
   13757 	cat <<EOF 1>&2
   13758 
   13759 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
   13760 *** to be unable to reliably create shared libraries on AIX.
   13761 *** Therefore, libtool is disabling shared libraries support.  If you
   13762 *** really care for shared libraries, you may want to modify your PATH
   13763 *** so that a non-GNU linker is found, and then restart.
   13764 
   13765 EOF
   13766       fi
   13767       ;;
   13768 
   13769     amigaos*)
   13770       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   13771       hardcode_libdir_flag_spec_F77='-L$libdir'
   13772       hardcode_minus_L_F77=yes
   13773 
   13774       # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
   13775       # that the semantics of dynamic libraries on AmigaOS, at least up
   13776       # to version 4, is to share data among multiple programs linked
   13777       # with the same dynamic library.  Since this doesn't match the
   13778       # behavior of shared libraries on other platforms, we can't use
   13779       # them.
   13780       ld_shlibs_F77=no
   13781       ;;
   13782 
   13783     beos*)
   13784       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   13785 	allow_undefined_flag_F77=unsupported
   13786 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   13787 	# support --undefined.  This deserves some investigation.  FIXME
   13788 	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13789       else
   13790 	ld_shlibs_F77=no
   13791       fi
   13792       ;;
   13793 
   13794     cygwin* | mingw* | pw32*)
   13795       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
   13796       # as there is no search path for DLLs.
   13797       hardcode_libdir_flag_spec_F77='-L$libdir'
   13798       allow_undefined_flag_F77=unsupported
   13799       always_export_symbols_F77=no
   13800       enable_shared_with_static_runtimes_F77=yes
   13801       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
   13802 
   13803       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   13804         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   13805 	# If the export-symbols file already is a .def file (1st line
   13806 	# is EXPORTS), use it as is; otherwise, prepend...
   13807 	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   13808 	  cp $export_symbols $output_objdir/$soname.def;
   13809 	else
   13810 	  echo EXPORTS > $output_objdir/$soname.def;
   13811 	  cat $export_symbols >> $output_objdir/$soname.def;
   13812 	fi~
   13813 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
   13814       else
   13815 	ld_shlibs=no
   13816       fi
   13817       ;;
   13818 
   13819     netbsd*)
   13820       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   13821 	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   13822 	wlarc=
   13823       else
   13824 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13825 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   13826       fi
   13827       ;;
   13828 
   13829     solaris* | sysv5*)
   13830       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
   13831 	ld_shlibs_F77=no
   13832 	cat <<EOF 1>&2
   13833 
   13834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   13835 *** create shared libraries on Solaris systems.  Therefore, libtool
   13836 *** is disabling shared libraries support.  We urge you to upgrade GNU
   13837 *** binutils to release 2.9.1 or newer.  Another option is to modify
   13838 *** your PATH or compiler configuration so that the native linker is
   13839 *** used, and then restart.
   13840 
   13841 EOF
   13842       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   13843 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13844 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   13845       else
   13846 	ld_shlibs_F77=no
   13847       fi
   13848       ;;
   13849 
   13850     sunos4*)
   13851       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   13852       wlarc=
   13853       hardcode_direct_F77=yes
   13854       hardcode_shlibpath_var_F77=no
   13855       ;;
   13856 
   13857   linux*)
   13858     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
   13859         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13860 	archive_cmds_F77="$tmp_archive_cmds"
   13861       supports_anon_versioning=no
   13862       case `$LD -v 2>/dev/null` in
   13863         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   13864         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   13865         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   13866         *\ 2.11.*) ;; # other 2.11 versions
   13867         *) supports_anon_versioning=yes ;;
   13868       esac
   13869       if test $supports_anon_versioning = yes; then
   13870         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
   13871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   13872 $echo "local: *; };" >> $output_objdir/$libname.ver~
   13873         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   13874       else
   13875         archive_expsym_cmds_F77="$tmp_archive_cmds"
   13876       fi
   13877     else
   13878       ld_shlibs_F77=no
   13879     fi
   13880     ;;
   13881 
   13882     *)
   13883       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   13884 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   13885 	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   13886       else
   13887 	ld_shlibs_F77=no
   13888       fi
   13889       ;;
   13890     esac
   13891 
   13892     if test "$ld_shlibs_F77" = yes; then
   13893       runpath_var=LD_RUN_PATH
   13894       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
   13895       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
   13896       # ancient GNU ld didn't support --whole-archive et. al.
   13897       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
   13898  	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   13899       else
   13900   	whole_archive_flag_spec_F77=
   13901       fi
   13902     fi
   13903   else
   13904     # PORTME fill in a description of your system's linker (not GNU ld)
   13905     case $host_os in
   13906     aix3*)
   13907       allow_undefined_flag_F77=unsupported
   13908       always_export_symbols_F77=yes
   13909       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   13910       # Note: this linker hardcodes the directories in LIBPATH if there
   13911       # are no directories specified by -L.
   13912       hardcode_minus_L_F77=yes
   13913       if test "$GCC" = yes && test -z "$link_static_flag"; then
   13914 	# Neither direct hardcoding nor static linking is supported with a
   13915 	# broken collect2.
   13916 	hardcode_direct_F77=unsupported
   13917       fi
   13918       ;;
   13919 
   13920     aix4* | aix5*)
   13921       if test "$host_cpu" = ia64; then
   13922 	# On IA64, the linker does run time linking by default, so we don't
   13923 	# have to do anything special.
   13924 	aix_use_runtimelinking=no
   13925 	exp_sym_flag='-Bexport'
   13926 	no_entry_flag=""
   13927       else
   13928 	# If we're using GNU nm, then we don't want the "-C" option.
   13929 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   13930 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
   13931 	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   13932 	else
   13933 	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   13934 	fi
   13935 	aix_use_runtimelinking=no
   13936 
   13937 	# Test if we are trying to use run time linking or normal
   13938 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   13939 	# need to do runtime linking.
   13940 	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
   13941 	  for ld_flag in $LDFLAGS; do
   13942   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   13943   	    aix_use_runtimelinking=yes
   13944   	    break
   13945   	  fi
   13946 	  done
   13947 	esac
   13948 
   13949 	exp_sym_flag='-bexport'
   13950 	no_entry_flag='-bnoentry'
   13951       fi
   13952 
   13953       # When large executables or shared objects are built, AIX ld can
   13954       # have problems creating the table of contents.  If linking a library
   13955       # or program results in "error TOC overflow" add -mminimal-toc to
   13956       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   13957       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   13958 
   13959       archive_cmds_F77=''
   13960       hardcode_direct_F77=yes
   13961       hardcode_libdir_separator_F77=':'
   13962       link_all_deplibs_F77=yes
   13963 
   13964       if test "$GCC" = yes; then
   13965 	case $host_os in aix4.012|aix4.012.*)
   13966 	# We only want to do this on AIX 4.2 and lower, the check
   13967 	# below for broken collect2 doesn't work under 4.3+
   13968 	  collect2name=`${CC} -print-prog-name=collect2`
   13969 	  if test -f "$collect2name" && \
   13970   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
   13971 	  then
   13972   	  # We have reworked collect2
   13973   	  hardcode_direct_F77=yes
   13974 	  else
   13975   	  # We have old collect2
   13976   	  hardcode_direct_F77=unsupported
   13977   	  # It fails to find uninstalled libraries when the uninstalled
   13978   	  # path is not listed in the libpath.  Setting hardcode_minus_L
   13979   	  # to unsupported forces relinking
   13980   	  hardcode_minus_L_F77=yes
   13981   	  hardcode_libdir_flag_spec_F77='-L$libdir'
   13982   	  hardcode_libdir_separator_F77=
   13983 	  fi
   13984 	esac
   13985 	shared_flag='-shared'
   13986       else
   13987 	# not using gcc
   13988 	if test "$host_cpu" = ia64; then
   13989   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   13990   	# chokes on -Wl,-G. The following line is correct:
   13991 	  shared_flag='-G'
   13992 	else
   13993   	if test "$aix_use_runtimelinking" = yes; then
   13994 	    shared_flag='${wl}-G'
   13995 	  else
   13996 	    shared_flag='${wl}-bM:SRE'
   13997   	fi
   13998 	fi
   13999       fi
   14000 
   14001       # It seems that -bexpall does not export symbols beginning with
   14002       # underscore (_), so it is better to generate a list of symbols to export.
   14003       always_export_symbols_F77=yes
   14004       if test "$aix_use_runtimelinking" = yes; then
   14005 	# Warning - without using the other runtime loading flags (-brtl),
   14006 	# -berok will link without error, but may produce a broken library.
   14007 	allow_undefined_flag_F77='-berok'
   14008        # Determine the default libpath from the value encoded in an empty executable.
   14009        cat >conftest.$ac_ext <<_ACEOF
   14010       program main
   14011 
   14012       end
   14013 _ACEOF
   14014 rm -f conftest.$ac_objext conftest$ac_exeext
   14015 if { (ac_try="$ac_link"
   14016 case "(($ac_try" in
   14017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14018   *) ac_try_echo=$ac_try;;
   14019 esac
   14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14021   (eval "$ac_link") 2>conftest.er1
   14022   ac_status=$?
   14023   grep -v '^ *+' conftest.er1 >conftest.err
   14024   rm -f conftest.er1
   14025   cat conftest.err >&5
   14026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14027   (exit $ac_status); } && {
   14028 	 test -z "$ac_f77_werror_flag" ||
   14029 	 test ! -s conftest.err
   14030        } && test -s conftest$ac_exeext &&
   14031        $as_test_x conftest$ac_exeext; then
   14032 
   14033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   14034 }'`
   14035 # Check for a 64-bit object if we didn't find anything.
   14036 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   14037 }'`; fi
   14038 else
   14039   echo "$as_me: failed program was:" >&5
   14040 sed 's/^/| /' conftest.$ac_ext >&5
   14041 
   14042 
   14043 fi
   14044 
   14045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14046       conftest$ac_exeext conftest.$ac_ext
   14047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   14048 
   14049        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
   14050 	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   14051        else
   14052 	if test "$host_cpu" = ia64; then
   14053 	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
   14054 	  allow_undefined_flag_F77="-z nodefs"
   14055 	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
   14056 	else
   14057 	 # Determine the default libpath from the value encoded in an empty executable.
   14058 	 cat >conftest.$ac_ext <<_ACEOF
   14059       program main
   14060 
   14061       end
   14062 _ACEOF
   14063 rm -f conftest.$ac_objext conftest$ac_exeext
   14064 if { (ac_try="$ac_link"
   14065 case "(($ac_try" in
   14066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   14067   *) ac_try_echo=$ac_try;;
   14068 esac
   14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   14070   (eval "$ac_link") 2>conftest.er1
   14071   ac_status=$?
   14072   grep -v '^ *+' conftest.er1 >conftest.err
   14073   rm -f conftest.er1
   14074   cat conftest.err >&5
   14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14076   (exit $ac_status); } && {
   14077 	 test -z "$ac_f77_werror_flag" ||
   14078 	 test ! -s conftest.err
   14079        } && test -s conftest$ac_exeext &&
   14080        $as_test_x conftest$ac_exeext; then
   14081 
   14082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   14083 }'`
   14084 # Check for a 64-bit object if we didn't find anything.
   14085 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   14086 }'`; fi
   14087 else
   14088   echo "$as_me: failed program was:" >&5
   14089 sed 's/^/| /' conftest.$ac_ext >&5
   14090 
   14091 
   14092 fi
   14093 
   14094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   14095       conftest$ac_exeext conftest.$ac_ext
   14096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   14097 
   14098 	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
   14099 	  # Warning - without using the other run time loading flags,
   14100 	  # -berok will link without error, but may produce a broken library.
   14101 	  no_undefined_flag_F77=' ${wl}-bernotok'
   14102 	  allow_undefined_flag_F77=' ${wl}-berok'
   14103 	  # -bexpall does not export symbols beginning with underscore (_)
   14104 	  always_export_symbols_F77=yes
   14105 	  # Exported symbols can be pulled into shared objects from archives
   14106 	  whole_archive_flag_spec_F77=' '
   14107 	  archive_cmds_need_lc_F77=yes
   14108 	  # This is similar to how AIX traditionally builds it's shared libraries.
   14109 	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   14110 	fi
   14111       fi
   14112       ;;
   14113 
   14114     amigaos*)
   14115       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   14116       hardcode_libdir_flag_spec_F77='-L$libdir'
   14117       hardcode_minus_L_F77=yes
   14118       # see comment about different semantics on the GNU ld section
   14119       ld_shlibs_F77=no
   14120       ;;
   14121 
   14122     bsdi4*)
   14123       export_dynamic_flag_spec_F77=-rdynamic
   14124       ;;
   14125 
   14126     cygwin* | mingw* | pw32*)
   14127       # When not using gcc, we currently assume that we are using
   14128       # Microsoft Visual C++.
   14129       # hardcode_libdir_flag_spec is actually meaningless, as there is
   14130       # no search path for DLLs.
   14131       hardcode_libdir_flag_spec_F77=' '
   14132       allow_undefined_flag_F77=unsupported
   14133       # Tell ltmain to make .lib files, not .a files.
   14134       libext=lib
   14135       # Tell ltmain to make .dll files, not .so files.
   14136       shrext=".dll"
   14137       # FIXME: Setting linknames here is a bad hack.
   14138       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
   14139       # The linker will automatically build a .lib file if we build a DLL.
   14140       old_archive_From_new_cmds_F77='true'
   14141       # FIXME: Should let the user specify the lib program.
   14142       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
   14143       fix_srcfile_path='`cygpath -w "$srcfile"`'
   14144       enable_shared_with_static_runtimes_F77=yes
   14145       ;;
   14146 
   14147     darwin* | rhapsody*)
   14148     if test "$GXX" = yes ; then
   14149       archive_cmds_need_lc_F77=no
   14150       case "$host_os" in
   14151       rhapsody* | darwin1.[012])
   14152 	allow_undefined_flag_F77='-undefined suppress'
   14153 	;;
   14154       *) # Darwin 1.3 on
   14155       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   14156       	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
   14157       else
   14158         case ${MACOSX_DEPLOYMENT_TARGET} in
   14159           10.[012])
   14160             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
   14161             ;;
   14162           10.*)
   14163             allow_undefined_flag_F77='-undefined dynamic_lookup'
   14164             ;;
   14165         esac
   14166       fi
   14167 	;;
   14168       esac
   14169     	lt_int_apple_cc_single_mod=no
   14170     	output_verbose_link_cmd='echo'
   14171     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   14172     	  lt_int_apple_cc_single_mod=yes
   14173     	fi
   14174     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   14175     	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   14176     	else
   14177         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   14178       fi
   14179       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   14180       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   14181         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   14182           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   14183         else
   14184           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   14185         fi
   14186           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   14187       hardcode_direct_F77=no
   14188       hardcode_automatic_F77=yes
   14189       hardcode_shlibpath_var_F77=unsupported
   14190       whole_archive_flag_spec_F77='-all_load $convenience'
   14191       link_all_deplibs_F77=yes
   14192     else
   14193       ld_shlibs_F77=no
   14194     fi
   14195       ;;
   14196 
   14197     dgux*)
   14198       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14199       hardcode_libdir_flag_spec_F77='-L$libdir'
   14200       hardcode_shlibpath_var_F77=no
   14201       ;;
   14202 
   14203     freebsd1*)
   14204       ld_shlibs_F77=no
   14205       ;;
   14206 
   14207     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   14208     # support.  Future versions do this automatically, but an explicit c++rt0.o
   14209     # does not break anything, and helps significantly (at the cost of a little
   14210     # extra space).
   14211     freebsd2.2*)
   14212       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   14213       hardcode_libdir_flag_spec_F77='-R$libdir'
   14214       hardcode_direct_F77=yes
   14215       hardcode_shlibpath_var_F77=no
   14216       ;;
   14217 
   14218     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   14219     freebsd2*)
   14220       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   14221       hardcode_direct_F77=yes
   14222       hardcode_minus_L_F77=yes
   14223       hardcode_shlibpath_var_F77=no
   14224       ;;
   14225 
   14226     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   14227     freebsd* | kfreebsd*-gnu)
   14228       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   14229       hardcode_libdir_flag_spec_F77='-R$libdir'
   14230       hardcode_direct_F77=yes
   14231       hardcode_shlibpath_var_F77=no
   14232       ;;
   14233 
   14234     hpux9*)
   14235       if test "$GCC" = yes; then
   14236 	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   14237       else
   14238 	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   14239       fi
   14240       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
   14241       hardcode_libdir_separator_F77=:
   14242       hardcode_direct_F77=yes
   14243 
   14244       # hardcode_minus_L: Not really in the search PATH,
   14245       # but as the default location of the library.
   14246       hardcode_minus_L_F77=yes
   14247       export_dynamic_flag_spec_F77='${wl}-E'
   14248       ;;
   14249 
   14250     hpux10* | hpux11*)
   14251       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
   14252 	case "$host_cpu" in
   14253 	hppa*64*|ia64*)
   14254 	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   14255 	  ;;
   14256 	*)
   14257 	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   14258 	  ;;
   14259 	esac
   14260       else
   14261 	case "$host_cpu" in
   14262 	hppa*64*|ia64*)
   14263 	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
   14264 	  ;;
   14265 	*)
   14266 	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   14267 	  ;;
   14268 	esac
   14269       fi
   14270       if test "$with_gnu_ld" = no; then
   14271 	case "$host_cpu" in
   14272 	hppa*64*)
   14273 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
   14274 	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
   14275 	  hardcode_libdir_separator_F77=:
   14276 	  hardcode_direct_F77=no
   14277 	  hardcode_shlibpath_var_F77=no
   14278 	  ;;
   14279 	ia64*)
   14280 	  hardcode_libdir_flag_spec_F77='-L$libdir'
   14281 	  hardcode_direct_F77=no
   14282 	  hardcode_shlibpath_var_F77=no
   14283 
   14284 	  # hardcode_minus_L: Not really in the search PATH,
   14285 	  # but as the default location of the library.
   14286 	  hardcode_minus_L_F77=yes
   14287 	  ;;
   14288 	*)
   14289 	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
   14290 	  hardcode_libdir_separator_F77=:
   14291 	  hardcode_direct_F77=yes
   14292 	  export_dynamic_flag_spec_F77='${wl}-E'
   14293 
   14294 	  # hardcode_minus_L: Not really in the search PATH,
   14295 	  # but as the default location of the library.
   14296 	  hardcode_minus_L_F77=yes
   14297 	  ;;
   14298 	esac
   14299       fi
   14300       ;;
   14301 
   14302     irix5* | irix6* | nonstopux*)
   14303       if test "$GCC" = yes; then
   14304 	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   14305       else
   14306 	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   14307 	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
   14308       fi
   14309       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
   14310       hardcode_libdir_separator_F77=:
   14311       link_all_deplibs_F77=yes
   14312       ;;
   14313 
   14314     netbsd*)
   14315       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   14316 	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   14317       else
   14318 	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   14319       fi
   14320       hardcode_libdir_flag_spec_F77='-R$libdir'
   14321       hardcode_direct_F77=yes
   14322       hardcode_shlibpath_var_F77=no
   14323       ;;
   14324 
   14325     newsos6)
   14326       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14327       hardcode_direct_F77=yes
   14328       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
   14329       hardcode_libdir_separator_F77=:
   14330       hardcode_shlibpath_var_F77=no
   14331       ;;
   14332 
   14333     openbsd*)
   14334       hardcode_direct_F77=yes
   14335       hardcode_shlibpath_var_F77=no
   14336       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   14337 	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   14338 	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
   14339 	export_dynamic_flag_spec_F77='${wl}-E'
   14340       else
   14341        case $host_os in
   14342 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   14343 	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   14344 	   hardcode_libdir_flag_spec_F77='-R$libdir'
   14345 	   ;;
   14346 	 *)
   14347 	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   14348 	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
   14349 	   ;;
   14350        esac
   14351       fi
   14352       ;;
   14353 
   14354     os2*)
   14355       hardcode_libdir_flag_spec_F77='-L$libdir'
   14356       hardcode_minus_L_F77=yes
   14357       allow_undefined_flag_F77=unsupported
   14358       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
   14359       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   14360       ;;
   14361 
   14362     osf3*)
   14363       if test "$GCC" = yes; then
   14364 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
   14365 	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   14366       else
   14367 	allow_undefined_flag_F77=' -expect_unresolved \*'
   14368 	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   14369       fi
   14370       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
   14371       hardcode_libdir_separator_F77=:
   14372       ;;
   14373 
   14374     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   14375       if test "$GCC" = yes; then
   14376 	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
   14377 	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   14378 	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
   14379       else
   14380 	allow_undefined_flag_F77=' -expect_unresolved \*'
   14381 	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   14382 	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
   14383 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
   14384 
   14385 	# Both c and cxx compiler support -rpath directly
   14386 	hardcode_libdir_flag_spec_F77='-rpath $libdir'
   14387       fi
   14388       hardcode_libdir_separator_F77=:
   14389       ;;
   14390 
   14391     sco3.2v5*)
   14392       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14393       hardcode_shlibpath_var_F77=no
   14394       export_dynamic_flag_spec_F77='${wl}-Bexport'
   14395       runpath_var=LD_RUN_PATH
   14396       hardcode_runpath_var=yes
   14397       ;;
   14398 
   14399     solaris*)
   14400       no_undefined_flag_F77=' -z text'
   14401       if test "$GCC" = yes; then
   14402 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   14403 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   14404 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
   14405       else
   14406 	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14407 	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   14408   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   14409       fi
   14410       hardcode_libdir_flag_spec_F77='-R$libdir'
   14411       hardcode_shlibpath_var_F77=no
   14412       case $host_os in
   14413       solaris2.[0-5] | solaris2.[0-5].*) ;;
   14414       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
   14415 	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
   14416       esac
   14417       link_all_deplibs_F77=yes
   14418       ;;
   14419 
   14420     sunos4*)
   14421       if test "x$host_vendor" = xsequent; then
   14422 	# Use $CC to link under sequent, because it throws in some extra .o
   14423 	# files that make .init and .fini sections work.
   14424 	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   14425       else
   14426 	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   14427       fi
   14428       hardcode_libdir_flag_spec_F77='-L$libdir'
   14429       hardcode_direct_F77=yes
   14430       hardcode_minus_L_F77=yes
   14431       hardcode_shlibpath_var_F77=no
   14432       ;;
   14433 
   14434     sysv4)
   14435       case $host_vendor in
   14436 	sni)
   14437 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14438 	  hardcode_direct_F77=yes # is this really true???
   14439 	;;
   14440 	siemens)
   14441 	  ## LD is ld it makes a PLAMLIB
   14442 	  ## CC just makes a GrossModule.
   14443 	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   14444 	  reload_cmds_F77='$CC -r -o $output$reload_objs'
   14445 	  hardcode_direct_F77=no
   14446         ;;
   14447 	motorola)
   14448 	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14449 	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
   14450 	;;
   14451       esac
   14452       runpath_var='LD_RUN_PATH'
   14453       hardcode_shlibpath_var_F77=no
   14454       ;;
   14455 
   14456     sysv4.3*)
   14457       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14458       hardcode_shlibpath_var_F77=no
   14459       export_dynamic_flag_spec_F77='-Bexport'
   14460       ;;
   14461 
   14462     sysv4*MP*)
   14463       if test -d /usr/nec; then
   14464 	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14465 	hardcode_shlibpath_var_F77=no
   14466 	runpath_var=LD_RUN_PATH
   14467 	hardcode_runpath_var=yes
   14468 	ld_shlibs_F77=yes
   14469       fi
   14470       ;;
   14471 
   14472     sysv4.2uw2*)
   14473       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   14474       hardcode_direct_F77=yes
   14475       hardcode_minus_L_F77=no
   14476       hardcode_shlibpath_var_F77=no
   14477       hardcode_runpath_var=yes
   14478       runpath_var=LD_RUN_PATH
   14479       ;;
   14480 
   14481    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
   14482       no_undefined_flag_F77='${wl}-z ${wl}text'
   14483       if test "$GCC" = yes; then
   14484 	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   14485       else
   14486 	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   14487       fi
   14488       runpath_var='LD_RUN_PATH'
   14489       hardcode_shlibpath_var_F77=no
   14490       ;;
   14491 
   14492     sysv5*)
   14493       no_undefined_flag_F77=' -z text'
   14494       # $CC -shared without GNU ld will not create a library from C++
   14495       # object files and a static libstdc++, better avoid it by now
   14496       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14497       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   14498   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   14499       hardcode_libdir_flag_spec_F77=
   14500       hardcode_shlibpath_var_F77=no
   14501       runpath_var='LD_RUN_PATH'
   14502       ;;
   14503 
   14504     uts4*)
   14505       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   14506       hardcode_libdir_flag_spec_F77='-L$libdir'
   14507       hardcode_shlibpath_var_F77=no
   14508       ;;
   14509 
   14510     *)
   14511       ld_shlibs_F77=no
   14512       ;;
   14513     esac
   14514   fi
   14515 
   14516 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
   14517 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
   14518 test "$ld_shlibs_F77" = no && can_build_shared=no
   14519 
   14520 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   14521 if test "$GCC" = yes; then
   14522   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   14523 fi
   14524 
   14525 #
   14526 # Do we need to explicitly link libc?
   14527 #
   14528 case "x$archive_cmds_need_lc_F77" in
   14529 x|xyes)
   14530   # Assume -lc should be added
   14531   archive_cmds_need_lc_F77=yes
   14532 
   14533   if test "$enable_shared" = yes && test "$GCC" = yes; then
   14534     case $archive_cmds_F77 in
   14535     *'~'*)
   14536       # FIXME: we may have to deal with multi-command sequences.
   14537       ;;
   14538     '$CC '*)
   14539       # Test whether the compiler implicitly links with -lc since on some
   14540       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   14541       # to ld, don't add -lc before -lgcc.
   14542       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   14543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   14544       $rm conftest*
   14545       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   14546 
   14547       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   14548   (eval $ac_compile) 2>&5
   14549   ac_status=$?
   14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14551   (exit $ac_status); } 2>conftest.err; then
   14552         soname=conftest
   14553         lib=conftest
   14554         libobjs=conftest.$ac_objext
   14555         deplibs=
   14556         wl=$lt_prog_compiler_wl_F77
   14557         compiler_flags=-v
   14558         linker_flags=-v
   14559         verstring=
   14560         output_objdir=.
   14561         libname=conftest
   14562         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
   14563         allow_undefined_flag_F77=
   14564         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
   14565   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
   14566   ac_status=$?
   14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   14568   (exit $ac_status); }
   14569         then
   14570 	  archive_cmds_need_lc_F77=no
   14571         else
   14572 	  archive_cmds_need_lc_F77=yes
   14573         fi
   14574         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
   14575       else
   14576         cat conftest.err 1>&5
   14577       fi
   14578       $rm conftest*
   14579       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
   14580 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
   14581       ;;
   14582     esac
   14583   fi
   14584   ;;
   14585 esac
   14586 
   14587 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   14588 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   14589 library_names_spec=
   14590 libname_spec='lib$name'
   14591 soname_spec=
   14592 shrext=".so"
   14593 postinstall_cmds=
   14594 postuninstall_cmds=
   14595 finish_cmds=
   14596 finish_eval=
   14597 shlibpath_var=
   14598 shlibpath_overrides_runpath=unknown
   14599 version_type=none
   14600 dynamic_linker="$host_os ld.so"
   14601 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   14602 if test "$GCC" = yes; then
   14603   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   14604   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   14605     # if the path contains ";" then we assume it to be the separator
   14606     # otherwise default to the standard path separator (i.e. ":") - it is
   14607     # assumed that no part of a normal pathname contains ";" but that should
   14608     # okay in the real world where ";" in dirpaths is itself problematic.
   14609     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   14610   else
   14611     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   14612   fi
   14613 else
   14614   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   14615 fi
   14616 need_lib_prefix=unknown
   14617 hardcode_into_libs=no
   14618 
   14619 # when you set need_version to no, make sure it does not cause -set_version
   14620 # flags to be left without arguments
   14621 need_version=unknown
   14622 
   14623 case $host_os in
   14624 aix3*)
   14625   version_type=linux
   14626   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   14627   shlibpath_var=LIBPATH
   14628 
   14629   # AIX 3 has no versioning support, so we append a major version to the name.
   14630   soname_spec='${libname}${release}${shared_ext}$major'
   14631   ;;
   14632 
   14633 aix4* | aix5*)
   14634   version_type=linux
   14635   need_lib_prefix=no
   14636   need_version=no
   14637   hardcode_into_libs=yes
   14638   if test "$host_cpu" = ia64; then
   14639     # AIX 5 supports IA64
   14640     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   14641     shlibpath_var=LD_LIBRARY_PATH
   14642   else
   14643     # With GCC up to 2.95.x, collect2 would create an import file
   14644     # for dependence libraries.  The import file would start with
   14645     # the line `#! .'.  This would cause the generated library to
   14646     # depend on `.', always an invalid library.  This was fixed in
   14647     # development snapshots of GCC prior to 3.0.
   14648     case $host_os in
   14649       aix4 | aix4.[01] | aix4.[01].*)
   14650       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   14651 	   echo ' yes '
   14652 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   14653 	:
   14654       else
   14655 	can_build_shared=no
   14656       fi
   14657       ;;
   14658     esac
   14659     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   14660     # soname into executable. Probably we can add versioning support to
   14661     # collect2, so additional links can be useful in future.
   14662     if test "$aix_use_runtimelinking" = yes; then
   14663       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   14664       # instead of lib<name>.a to let people know that these are not
   14665       # typical AIX shared libraries.
   14666       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14667     else
   14668       # We preserve .a as extension for shared libraries through AIX4.2
   14669       # and later when we are not doing run time linking.
   14670       library_names_spec='${libname}${release}.a $libname.a'
   14671       soname_spec='${libname}${release}${shared_ext}$major'
   14672     fi
   14673     shlibpath_var=LIBPATH
   14674   fi
   14675   ;;
   14676 
   14677 amigaos*)
   14678   library_names_spec='$libname.ixlibrary $libname.a'
   14679   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   14680   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'
   14681   ;;
   14682 
   14683 beos*)
   14684   library_names_spec='${libname}${shared_ext}'
   14685   dynamic_linker="$host_os ld.so"
   14686   shlibpath_var=LIBRARY_PATH
   14687   ;;
   14688 
   14689 bsdi4*)
   14690   version_type=linux
   14691   need_version=no
   14692   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14693   soname_spec='${libname}${release}${shared_ext}$major'
   14694   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   14695   shlibpath_var=LD_LIBRARY_PATH
   14696   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   14697   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   14698   # the default ld.so.conf also contains /usr/contrib/lib and
   14699   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   14700   # libtool to hard-code these into programs
   14701   ;;
   14702 
   14703 cygwin* | mingw* | pw32*)
   14704   version_type=windows
   14705   shrext=".dll"
   14706   need_version=no
   14707   need_lib_prefix=no
   14708 
   14709   case $GCC,$host_os in
   14710   yes,cygwin* | yes,mingw* | yes,pw32*)
   14711     library_names_spec='$libname.dll.a'
   14712     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   14713     postinstall_cmds='base_file=`basename \${file}`~
   14714       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   14715       dldir=$destdir/`dirname \$dlpath`~
   14716       test -d \$dldir || mkdir -p \$dldir~
   14717       $install_prog $dir/$dlname \$dldir/$dlname'
   14718     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   14719       dlpath=$dir/\$dldll~
   14720        $rm \$dlpath'
   14721     shlibpath_overrides_runpath=yes
   14722 
   14723     case $host_os in
   14724     cygwin*)
   14725       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   14726       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   14727       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   14728       ;;
   14729     mingw*)
   14730       # MinGW DLLs use traditional 'lib' prefix
   14731       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   14732       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   14733       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   14734         # It is most probably a Windows format PATH printed by
   14735         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   14736         # path with ; separators, and with drive letters. We can handle the
   14737         # drive letters (cygwin fileutils understands them), so leave them,
   14738         # especially as we might pass files found there to a mingw objdump,
   14739         # which wouldn't understand a cygwinified path. Ahh.
   14740         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   14741       else
   14742         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   14743       fi
   14744       ;;
   14745     pw32*)
   14746       # pw32 DLLs use 'pw' prefix rather than 'lib'
   14747       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
   14748       ;;
   14749     esac
   14750     ;;
   14751 
   14752   *)
   14753     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   14754     ;;
   14755   esac
   14756   dynamic_linker='Win32 ld.exe'
   14757   # FIXME: first we should search . and the directory the executable is in
   14758   shlibpath_var=PATH
   14759   ;;
   14760 
   14761 darwin* | rhapsody*)
   14762   dynamic_linker="$host_os dyld"
   14763   version_type=darwin
   14764   need_lib_prefix=no
   14765   need_version=no
   14766   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   14767   soname_spec='${libname}${release}${major}$shared_ext'
   14768   shlibpath_overrides_runpath=yes
   14769   shlibpath_var=DYLD_LIBRARY_PATH
   14770   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   14771   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   14772   if test "$GCC" = yes; then
   14773     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   14774   else
   14775     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   14776   fi
   14777   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   14778   ;;
   14779 
   14780 dgux*)
   14781   version_type=linux
   14782   need_lib_prefix=no
   14783   need_version=no
   14784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   14785   soname_spec='${libname}${release}${shared_ext}$major'
   14786   shlibpath_var=LD_LIBRARY_PATH
   14787   ;;
   14788 
   14789 freebsd1*)
   14790   dynamic_linker=no
   14791   ;;
   14792 
   14793 kfreebsd*-gnu)
   14794   version_type=linux
   14795   need_lib_prefix=no
   14796   need_version=no
   14797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   14798   soname_spec='${libname}${release}${shared_ext}$major'
   14799   shlibpath_var=LD_LIBRARY_PATH
   14800   shlibpath_overrides_runpath=no
   14801   hardcode_into_libs=yes
   14802   dynamic_linker='GNU ld.so'
   14803   ;;
   14804 
   14805 freebsd*)
   14806   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   14807   version_type=freebsd-$objformat
   14808   case $version_type in
   14809     freebsd-elf*)
   14810       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   14811       need_version=no
   14812       need_lib_prefix=no
   14813       ;;
   14814     freebsd-*)
   14815       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   14816       need_version=yes
   14817       ;;
   14818   esac
   14819   shlibpath_var=LD_LIBRARY_PATH
   14820   case $host_os in
   14821   freebsd2*)
   14822     shlibpath_overrides_runpath=yes
   14823     ;;
   14824   freebsd3.01* | freebsdelf3.01*)
   14825     shlibpath_overrides_runpath=yes
   14826     hardcode_into_libs=yes
   14827     ;;
   14828   *) # from 3.2 on
   14829     shlibpath_overrides_runpath=no
   14830     hardcode_into_libs=yes
   14831     ;;
   14832   esac
   14833   ;;
   14834 
   14835 gnu*)
   14836   version_type=linux
   14837   need_lib_prefix=no
   14838   need_version=no
   14839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   14840   soname_spec='${libname}${release}${shared_ext}$major'
   14841   shlibpath_var=LD_LIBRARY_PATH
   14842   hardcode_into_libs=yes
   14843   ;;
   14844 
   14845 hpux9* | hpux10* | hpux11*)
   14846   # Give a soname corresponding to the major version so that dld.sl refuses to
   14847   # link against other versions.
   14848   version_type=sunos
   14849   need_lib_prefix=no
   14850   need_version=no
   14851   case "$host_cpu" in
   14852   ia64*)
   14853     shrext='.so'
   14854     hardcode_into_libs=yes
   14855     dynamic_linker="$host_os dld.so"
   14856     shlibpath_var=LD_LIBRARY_PATH
   14857     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   14858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14859     soname_spec='${libname}${release}${shared_ext}$major'
   14860     if test "X$HPUX_IA64_MODE" = X32; then
   14861       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   14862     else
   14863       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   14864     fi
   14865     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   14866     ;;
   14867    hppa*64*)
   14868      shrext='.sl'
   14869      hardcode_into_libs=yes
   14870      dynamic_linker="$host_os dld.sl"
   14871      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   14872      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   14873      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14874      soname_spec='${libname}${release}${shared_ext}$major'
   14875      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   14876      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   14877      ;;
   14878    *)
   14879     shrext='.sl'
   14880     dynamic_linker="$host_os dld.sl"
   14881     shlibpath_var=SHLIB_PATH
   14882     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   14883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14884     soname_spec='${libname}${release}${shared_ext}$major'
   14885     ;;
   14886   esac
   14887   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   14888   postinstall_cmds='chmod 555 $lib'
   14889   ;;
   14890 
   14891 irix5* | irix6* | nonstopux*)
   14892   case $host_os in
   14893     nonstopux*) version_type=nonstopux ;;
   14894     *)
   14895 	if test "$lt_cv_prog_gnu_ld" = yes; then
   14896 		version_type=linux
   14897 	else
   14898 		version_type=irix
   14899 	fi ;;
   14900   esac
   14901   need_lib_prefix=no
   14902   need_version=no
   14903   soname_spec='${libname}${release}${shared_ext}$major'
   14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   14905   case $host_os in
   14906   irix5* | nonstopux*)
   14907     libsuff= shlibsuff=
   14908     ;;
   14909   *)
   14910     case $LD in # libtool.m4 will add one of these switches to LD
   14911     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   14912       libsuff= shlibsuff= libmagic=32-bit;;
   14913     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   14914       libsuff=32 shlibsuff=N32 libmagic=N32;;
   14915     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   14916       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   14917     *) libsuff= shlibsuff= libmagic=never-match;;
   14918     esac
   14919     ;;
   14920   esac
   14921   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   14922   shlibpath_overrides_runpath=no
   14923   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   14924   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   14925   hardcode_into_libs=yes
   14926   ;;
   14927 
   14928 # No shared lib support for Linux oldld, aout, or coff.
   14929 linux*oldld* | linux*aout* | linux*coff*)
   14930   dynamic_linker=no
   14931   ;;
   14932 
   14933 # This must be Linux ELF.
   14934 linux*)
   14935   version_type=linux
   14936   need_lib_prefix=no
   14937   need_version=no
   14938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14939   soname_spec='${libname}${release}${shared_ext}$major'
   14940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   14941   shlibpath_var=LD_LIBRARY_PATH
   14942   shlibpath_overrides_runpath=no
   14943   # This implies no fast_install, which is unacceptable.
   14944   # Some rework will be needed to allow for fast_install
   14945   # before this can be enabled.
   14946   hardcode_into_libs=yes
   14947 
   14948   # We used to test for /lib/ld.so.1 and disable shared libraries on
   14949   # powerpc, because MkLinux only supported shared libraries with the
   14950   # GNU dynamic linker.  Since this was broken with cross compilers,
   14951   # most powerpc-linux boxes support dynamic linking these days and
   14952   # people can always --disable-shared, the test was removed, and we
   14953   # assume the GNU/Linux dynamic linker is in use.
   14954   dynamic_linker='GNU/Linux ld.so'
   14955   ;;
   14956 
   14957 netbsd*)
   14958   version_type=sunos
   14959   need_lib_prefix=no
   14960   need_version=no
   14961   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   14962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   14963     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   14964     dynamic_linker='NetBSD (a.out) ld.so'
   14965   else
   14966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   14967     soname_spec='${libname}${release}${shared_ext}$major'
   14968     dynamic_linker='NetBSD ld.elf_so'
   14969   fi
   14970   shlibpath_var=LD_LIBRARY_PATH
   14971   shlibpath_overrides_runpath=yes
   14972   hardcode_into_libs=yes
   14973   ;;
   14974 
   14975 newsos6)
   14976   version_type=linux
   14977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14978   shlibpath_var=LD_LIBRARY_PATH
   14979   shlibpath_overrides_runpath=yes
   14980   ;;
   14981 
   14982 nto-qnx*)
   14983   version_type=linux
   14984   need_lib_prefix=no
   14985   need_version=no
   14986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   14987   soname_spec='${libname}${release}${shared_ext}$major'
   14988   shlibpath_var=LD_LIBRARY_PATH
   14989   shlibpath_overrides_runpath=yes
   14990   ;;
   14991 
   14992 openbsd*)
   14993   version_type=sunos
   14994   need_lib_prefix=no
   14995   need_version=no
   14996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   14997   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   14998   shlibpath_var=LD_LIBRARY_PATH
   14999   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   15000     case $host_os in
   15001       openbsd2.[89] | openbsd2.[89].*)
   15002 	shlibpath_overrides_runpath=no
   15003 	;;
   15004       *)
   15005 	shlibpath_overrides_runpath=yes
   15006 	;;
   15007       esac
   15008   else
   15009     shlibpath_overrides_runpath=yes
   15010   fi
   15011   ;;
   15012 
   15013 os2*)
   15014   libname_spec='$name'
   15015   shrext=".dll"
   15016   need_lib_prefix=no
   15017   library_names_spec='$libname${shared_ext} $libname.a'
   15018   dynamic_linker='OS/2 ld.exe'
   15019   shlibpath_var=LIBPATH
   15020   ;;
   15021 
   15022 osf3* | osf4* | osf5*)
   15023   version_type=osf
   15024   need_lib_prefix=no
   15025   need_version=no
   15026   soname_spec='${libname}${release}${shared_ext}$major'
   15027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15028   shlibpath_var=LD_LIBRARY_PATH
   15029   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   15030   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   15031   ;;
   15032 
   15033 sco3.2v5*)
   15034   version_type=osf
   15035   soname_spec='${libname}${release}${shared_ext}$major'
   15036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15037   shlibpath_var=LD_LIBRARY_PATH
   15038   ;;
   15039 
   15040 solaris*)
   15041   version_type=linux
   15042   need_lib_prefix=no
   15043   need_version=no
   15044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15045   soname_spec='${libname}${release}${shared_ext}$major'
   15046   shlibpath_var=LD_LIBRARY_PATH
   15047   shlibpath_overrides_runpath=yes
   15048   hardcode_into_libs=yes
   15049   # ldd complains unless libraries are executable
   15050   postinstall_cmds='chmod +x $lib'
   15051   ;;
   15052 
   15053 sunos4*)
   15054   version_type=sunos
   15055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   15056   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   15057   shlibpath_var=LD_LIBRARY_PATH
   15058   shlibpath_overrides_runpath=yes
   15059   if test "$with_gnu_ld" = yes; then
   15060     need_lib_prefix=no
   15061   fi
   15062   need_version=yes
   15063   ;;
   15064 
   15065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   15066   version_type=linux
   15067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15068   soname_spec='${libname}${release}${shared_ext}$major'
   15069   shlibpath_var=LD_LIBRARY_PATH
   15070   case $host_vendor in
   15071     sni)
   15072       shlibpath_overrides_runpath=no
   15073       need_lib_prefix=no
   15074       export_dynamic_flag_spec='${wl}-Blargedynsym'
   15075       runpath_var=LD_RUN_PATH
   15076       ;;
   15077     siemens)
   15078       need_lib_prefix=no
   15079       ;;
   15080     motorola)
   15081       need_lib_prefix=no
   15082       need_version=no
   15083       shlibpath_overrides_runpath=no
   15084       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   15085       ;;
   15086   esac
   15087   ;;
   15088 
   15089 sysv4*MP*)
   15090   if test -d /usr/nec ;then
   15091     version_type=linux
   15092     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   15093     soname_spec='$libname${shared_ext}.$major'
   15094     shlibpath_var=LD_LIBRARY_PATH
   15095   fi
   15096   ;;
   15097 
   15098 uts4*)
   15099   version_type=linux
   15100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   15101   soname_spec='${libname}${release}${shared_ext}$major'
   15102   shlibpath_var=LD_LIBRARY_PATH
   15103   ;;
   15104 
   15105 *)
   15106   dynamic_linker=no
   15107   ;;
   15108 esac
   15109 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   15110 echo "${ECHO_T}$dynamic_linker" >&6; }
   15111 test "$dynamic_linker" = no && can_build_shared=no
   15112 
   15113 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   15114 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   15115 hardcode_action_F77=
   15116 if test -n "$hardcode_libdir_flag_spec_F77" || \
   15117    test -n "$runpath_var F77" || \
   15118    test "X$hardcode_automatic_F77"="Xyes" ; then
   15119 
   15120   # We can hardcode non-existant directories.
   15121   if test "$hardcode_direct_F77" != no &&
   15122      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   15123      # have to relink, otherwise we might link with an installed library
   15124      # when we should be linking with a yet-to-be-installed one
   15125      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
   15126      test "$hardcode_minus_L_F77" != no; then
   15127     # Linking always hardcodes the temporary library directory.
   15128     hardcode_action_F77=relink
   15129   else
   15130     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   15131     hardcode_action_F77=immediate
   15132   fi
   15133 else
   15134   # We cannot hardcode anything, or else we can only hardcode existing
   15135   # directories.
   15136   hardcode_action_F77=unsupported
   15137 fi
   15138 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
   15139 echo "${ECHO_T}$hardcode_action_F77" >&6; }
   15140 
   15141 if test "$hardcode_action_F77" = relink; then
   15142   # Fast installation is not supported
   15143   enable_fast_install=no
   15144 elif test "$shlibpath_overrides_runpath" = yes ||
   15145      test "$enable_shared" = no; then
   15146   # Fast installation is not necessary
   15147   enable_fast_install=needless
   15148 fi
   15149 
   15150 striplib=
   15151 old_striplib=
   15152 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
   15153 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
   15154 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   15155   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   15156   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   15157   { echo "$as_me:$LINENO: result: yes" >&5
   15158 echo "${ECHO_T}yes" >&6; }
   15159 else
   15160 # FIXME - insert some real tests, host_os isn't really good enough
   15161   case $host_os in
   15162    darwin*)
   15163        if test -n "$STRIP" ; then
   15164          striplib="$STRIP -x"
   15165          { echo "$as_me:$LINENO: result: yes" >&5
   15166 echo "${ECHO_T}yes" >&6; }
   15167        else
   15168   { echo "$as_me:$LINENO: result: no" >&5
   15169 echo "${ECHO_T}no" >&6; }
   15170 fi
   15171        ;;
   15172    *)
   15173   { echo "$as_me:$LINENO: result: no" >&5
   15174 echo "${ECHO_T}no" >&6; }
   15175     ;;
   15176   esac
   15177 fi
   15178 
   15179 
   15180 
   15181 # The else clause should only fire when bootstrapping the
   15182 # libtool distribution, otherwise you forgot to ship ltmain.sh
   15183 # with your package, and you will get complaints that there are
   15184 # no rules to generate ltmain.sh.
   15185 if test -f "$ltmain"; then
   15186   # See if we are running on zsh, and set the options which allow our commands through
   15187   # without removal of \ escapes.
   15188   if test -n "${ZSH_VERSION+set}" ; then
   15189     setopt NO_GLOB_SUBST
   15190   fi
   15191   # Now quote all the things that may contain metacharacters while being
   15192   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   15193   # variables and quote the copies for generation of the libtool script.
   15194   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   15195     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   15196     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   15197     deplibs_check_method reload_flag reload_cmds need_locks \
   15198     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   15199     lt_cv_sys_global_symbol_to_c_name_address \
   15200     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   15201     old_postinstall_cmds old_postuninstall_cmds \
   15202     compiler_F77 \
   15203     CC_F77 \
   15204     LD_F77 \
   15205     lt_prog_compiler_wl_F77 \
   15206     lt_prog_compiler_pic_F77 \
   15207     lt_prog_compiler_static_F77 \
   15208     lt_prog_compiler_no_builtin_flag_F77 \
   15209     export_dynamic_flag_spec_F77 \
   15210     thread_safe_flag_spec_F77 \
   15211     whole_archive_flag_spec_F77 \
   15212     enable_shared_with_static_runtimes_F77 \
   15213     old_archive_cmds_F77 \
   15214     old_archive_from_new_cmds_F77 \
   15215     predep_objects_F77 \
   15216     postdep_objects_F77 \
   15217     predeps_F77 \
   15218     postdeps_F77 \
   15219     compiler_lib_search_path_F77 \
   15220     archive_cmds_F77 \
   15221     archive_expsym_cmds_F77 \
   15222     postinstall_cmds_F77 \
   15223     postuninstall_cmds_F77 \
   15224     old_archive_from_expsyms_cmds_F77 \
   15225     allow_undefined_flag_F77 \
   15226     no_undefined_flag_F77 \
   15227     export_symbols_cmds_F77 \
   15228     hardcode_libdir_flag_spec_F77 \
   15229     hardcode_libdir_flag_spec_ld_F77 \
   15230     hardcode_libdir_separator_F77 \
   15231     hardcode_automatic_F77 \
   15232     module_cmds_F77 \
   15233     module_expsym_cmds_F77 \
   15234     lt_cv_prog_compiler_c_o_F77 \
   15235     exclude_expsyms_F77 \
   15236     include_expsyms_F77; do
   15237 
   15238     case $var in
   15239     old_archive_cmds_F77 | \
   15240     old_archive_from_new_cmds_F77 | \
   15241     archive_cmds_F77 | \
   15242     archive_expsym_cmds_F77 | \
   15243     module_cmds_F77 | \
   15244     module_expsym_cmds_F77 | \
   15245     old_archive_from_expsyms_cmds_F77 | \
   15246     export_symbols_cmds_F77 | \
   15247     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   15248     postinstall_cmds | postuninstall_cmds | \
   15249     old_postinstall_cmds | old_postuninstall_cmds | \
   15250     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   15251       # Double-quote double-evaled strings.
   15252       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   15253       ;;
   15254     *)
   15255       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   15256       ;;
   15257     esac
   15258   done
   15259 
   15260   case $lt_echo in
   15261   *'\$0 --fallback-echo"')
   15262     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   15263     ;;
   15264   esac
   15265 
   15266 cfgfile="$ofile"
   15267 
   15268   cat <<__EOF__ >> "$cfgfile"
   15269 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
   15270 
   15271 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   15272 
   15273 # Shell to use when invoking shell scripts.
   15274 SHELL=$lt_SHELL
   15275 
   15276 # Whether or not to build shared libraries.
   15277 build_libtool_libs=$enable_shared
   15278 
   15279 # Whether or not to build static libraries.
   15280 build_old_libs=$enable_static
   15281 
   15282 # Whether or not to add -lc for building shared libraries.
   15283 build_libtool_need_lc=$archive_cmds_need_lc_F77
   15284 
   15285 # Whether or not to disallow shared libs when runtime libs are static
   15286 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
   15287 
   15288 # Whether or not to optimize for fast installation.
   15289 fast_install=$enable_fast_install
   15290 
   15291 # The host system.
   15292 host_alias=$host_alias
   15293 host=$host
   15294 
   15295 # An echo program that does not interpret backslashes.
   15296 echo=$lt_echo
   15297 
   15298 # The archiver.
   15299 AR=$lt_AR
   15300 AR_FLAGS=$lt_AR_FLAGS
   15301 
   15302 # A C compiler.
   15303 LTCC=$lt_LTCC
   15304 
   15305 # A language-specific compiler.
   15306 CC=$lt_compiler_F77
   15307 
   15308 # Is the compiler the GNU C compiler?
   15309 with_gcc=$GCC_F77
   15310 
   15311 # An ERE matcher.
   15312 EGREP=$lt_EGREP
   15313 
   15314 # The linker used to build libraries.
   15315 LD=$lt_LD_F77
   15316 
   15317 # Whether we need hard or soft links.
   15318 LN_S=$lt_LN_S
   15319 
   15320 # A BSD-compatible nm program.
   15321 NM=$lt_NM
   15322 
   15323 # A symbol stripping program
   15324 STRIP="$STRIP"
   15325 
   15326 # Used to examine libraries when file_magic_cmd begins "file"
   15327 MAGIC_CMD=$MAGIC_CMD
   15328 
   15329 # Used on cygwin: DLL creation program.
   15330 DLLTOOL="$DLLTOOL"
   15331 
   15332 # Used on cygwin: object dumper.
   15333 OBJDUMP="$OBJDUMP"
   15334 
   15335 # Used on cygwin: assembler.
   15336 AS="$AS"
   15337 
   15338 # The name of the directory that contains temporary libtool files.
   15339 objdir=$objdir
   15340 
   15341 # How to create reloadable object files.
   15342 reload_flag=$lt_reload_flag
   15343 reload_cmds=$lt_reload_cmds
   15344 
   15345 # How to pass a linker flag through the compiler.
   15346 wl=$lt_lt_prog_compiler_wl_F77
   15347 
   15348 # Object file suffix (normally "o").
   15349 objext="$ac_objext"
   15350 
   15351 # Old archive suffix (normally "a").
   15352 libext="$libext"
   15353 
   15354 # Shared library suffix (normally ".so").
   15355 shrext='$shrext'
   15356 
   15357 # Executable file suffix (normally "").
   15358 exeext="$exeext"
   15359 
   15360 # Additional compiler flags for building library objects.
   15361 pic_flag=$lt_lt_prog_compiler_pic_F77
   15362 pic_mode=$pic_mode
   15363 
   15364 # What is the maximum length of a command?
   15365 max_cmd_len=$lt_cv_sys_max_cmd_len
   15366 
   15367 # Does compiler simultaneously support -c and -o options?
   15368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
   15369 
   15370 # Must we lock files when doing compilation ?
   15371 need_locks=$lt_need_locks
   15372 
   15373 # Do we need the lib prefix for modules?
   15374 need_lib_prefix=$need_lib_prefix
   15375 
   15376 # Do we need a version for libraries?
   15377 need_version=$need_version
   15378 
   15379 # Whether dlopen is supported.
   15380 dlopen_support=$enable_dlopen
   15381 
   15382 # Whether dlopen of programs is supported.
   15383 dlopen_self=$enable_dlopen_self
   15384 
   15385 # Whether dlopen of statically linked programs is supported.
   15386 dlopen_self_static=$enable_dlopen_self_static
   15387 
   15388 # Compiler flag to prevent dynamic linking.
   15389 link_static_flag=$lt_lt_prog_compiler_static_F77
   15390 
   15391 # Compiler flag to turn off builtin functions.
   15392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
   15393 
   15394 # Compiler flag to allow reflexive dlopens.
   15395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
   15396 
   15397 # Compiler flag to generate shared objects directly from archives.
   15398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
   15399 
   15400 # Compiler flag to generate thread-safe objects.
   15401 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
   15402 
   15403 # Library versioning type.
   15404 version_type=$version_type
   15405 
   15406 # Format of library name prefix.
   15407 libname_spec=$lt_libname_spec
   15408 
   15409 # List of archive names.  First name is the real one, the rest are links.
   15410 # The last name is the one that the linker finds with -lNAME.
   15411 library_names_spec=$lt_library_names_spec
   15412 
   15413 # The coded name of the library, if different from the real name.
   15414 soname_spec=$lt_soname_spec
   15415 
   15416 # Commands used to build and install an old-style archive.
   15417 RANLIB=$lt_RANLIB
   15418 old_archive_cmds=$lt_old_archive_cmds_F77
   15419 old_postinstall_cmds=$lt_old_postinstall_cmds
   15420 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   15421 
   15422 # Create an old-style archive from a shared archive.
   15423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
   15424 
   15425 # Create a temporary old-style archive to link instead of a shared archive.
   15426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
   15427 
   15428 # Commands used to build and install a shared archive.
   15429 archive_cmds=$lt_archive_cmds_F77
   15430 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
   15431 postinstall_cmds=$lt_postinstall_cmds
   15432 postuninstall_cmds=$lt_postuninstall_cmds
   15433 
   15434 # Commands used to build a loadable module (assumed same as above if empty)
   15435 module_cmds=$lt_module_cmds_F77
   15436 module_expsym_cmds=$lt_module_expsym_cmds_F77
   15437 
   15438 # Commands to strip libraries.
   15439 old_striplib=$lt_old_striplib
   15440 striplib=$lt_striplib
   15441 
   15442 # Dependencies to place before the objects being linked to create a
   15443 # shared library.
   15444 predep_objects=$lt_predep_objects_F77
   15445 
   15446 # Dependencies to place after the objects being linked to create a
   15447 # shared library.
   15448 postdep_objects=$lt_postdep_objects_F77
   15449 
   15450 # Dependencies to place before the objects being linked to create a
   15451 # shared library.
   15452 predeps=$lt_predeps_F77
   15453 
   15454 # Dependencies to place after the objects being linked to create a
   15455 # shared library.
   15456 postdeps=$lt_postdeps_F77
   15457 
   15458 # The library search path used internally by the compiler when linking
   15459 # a shared library.
   15460 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
   15461 
   15462 # Method to check whether dependent libraries are shared objects.
   15463 deplibs_check_method=$lt_deplibs_check_method
   15464 
   15465 # Command to use when deplibs_check_method == file_magic.
   15466 file_magic_cmd=$lt_file_magic_cmd
   15467 
   15468 # Flag that allows shared libraries with undefined symbols to be built.
   15469 allow_undefined_flag=$lt_allow_undefined_flag_F77
   15470 
   15471 # Flag that forces no undefined symbols.
   15472 no_undefined_flag=$lt_no_undefined_flag_F77
   15473 
   15474 # Commands used to finish a libtool library installation in a directory.
   15475 finish_cmds=$lt_finish_cmds
   15476 
   15477 # Same as above, but a single script fragment to be evaled but not shown.
   15478 finish_eval=$lt_finish_eval
   15479 
   15480 # Take the output of nm and produce a listing of raw symbols and C names.
   15481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   15482 
   15483 # Transform the output of nm in a proper C declaration
   15484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   15485 
   15486 # Transform the output of nm in a C name address pair
   15487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   15488 
   15489 # This is the shared library runtime path variable.
   15490 runpath_var=$runpath_var
   15491 
   15492 # This is the shared library path variable.
   15493 shlibpath_var=$shlibpath_var
   15494 
   15495 # Is shlibpath searched before the hard-coded library search path?
   15496 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   15497 
   15498 # How to hardcode a shared library path into an executable.
   15499 hardcode_action=$hardcode_action_F77
   15500 
   15501 # Whether we should hardcode library paths into libraries.
   15502 hardcode_into_libs=$hardcode_into_libs
   15503 
   15504 # Flag to hardcode \$libdir into a binary during linking.
   15505 # This must work even if \$libdir does not exist.
   15506 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
   15507 
   15508 # If ld is used when linking, flag to hardcode \$libdir into
   15509 # a binary during linking. This must work even if \$libdir does
   15510 # not exist.
   15511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
   15512 
   15513 # Whether we need a single -rpath flag with a separated argument.
   15514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
   15515 
   15516 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   15517 # resulting binary.
   15518 hardcode_direct=$hardcode_direct_F77
   15519 
   15520 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   15521 # resulting binary.
   15522 hardcode_minus_L=$hardcode_minus_L_F77
   15523 
   15524 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   15525 # the resulting binary.
   15526 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
   15527 
   15528 # Set to yes if building a shared library automatically hardcodes DIR into the library
   15529 # and all subsequent libraries and executables linked against it.
   15530 hardcode_automatic=$hardcode_automatic_F77
   15531 
   15532 # Variables whose values should be saved in libtool wrapper scripts and
   15533 # restored at relink time.
   15534 variables_saved_for_relink="$variables_saved_for_relink"
   15535 
   15536 # Whether libtool must link a program against all its dependency libraries.
   15537 link_all_deplibs=$link_all_deplibs_F77
   15538 
   15539 # Compile-time system search path for libraries
   15540 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   15541 
   15542 # Run-time system search path for libraries
   15543 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   15544 
   15545 # Fix the shell variable \$srcfile for the compiler.
   15546 fix_srcfile_path="$fix_srcfile_path_F77"
   15547 
   15548 # Set to yes if exported symbols are required.
   15549 always_export_symbols=$always_export_symbols_F77
   15550 
   15551 # The commands to list exported symbols.
   15552 export_symbols_cmds=$lt_export_symbols_cmds_F77
   15553 
   15554 # The commands to extract the exported symbol list from a shared archive.
   15555 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   15556 
   15557 # Symbols that should not be listed in the preloaded symbols.
   15558 exclude_expsyms=$lt_exclude_expsyms_F77
   15559 
   15560 # Symbols that must always be exported.
   15561 include_expsyms=$lt_include_expsyms_F77
   15562 
   15563 # ### END LIBTOOL TAG CONFIG: $tagname
   15564 
   15565 __EOF__
   15566 
   15567 
   15568 else
   15569   # If there is no Makefile yet, we rely on a make rule to execute
   15570   # `config.status --recheck' to rerun these tests and create the
   15571   # libtool script then.
   15572   test -f Makefile && make "$ltmain"
   15573 fi
   15574 
   15575 
   15576 ac_ext=c
   15577 ac_cpp='$CPP $CPPFLAGS'
   15578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   15579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   15580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   15581 
   15582 CC="$lt_save_CC"
   15583 
   15584 	else
   15585 	  tagname=""
   15586 	fi
   15587 	;;
   15588 
   15589       GCJ)
   15590 	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
   15591 
   15592 
   15593 # Source file extension for Java test sources.
   15594 ac_ext=java
   15595 
   15596 # Object file extension for compiled Java test sources.
   15597 objext=o
   15598 objext_GCJ=$objext
   15599 
   15600 # Code to be used in simple compile tests
   15601 lt_simple_compile_test_code="class foo {}\n"
   15602 
   15603 # Code to be used in simple link tests
   15604 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
   15605 
   15606 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   15607 
   15608 # If no C compiler was specified, use CC.
   15609 LTCC=${LTCC-"$CC"}
   15610 
   15611 # Allow CC to be a program name with arguments.
   15612 compiler=$CC
   15613 
   15614 
   15615 # Allow CC to be a program name with arguments.
   15616 lt_save_CC="$CC"
   15617 CC=${GCJ-"gcj"}
   15618 compiler=$CC
   15619 compiler_GCJ=$CC
   15620 
   15621 # GCJ did not exist at the time GCC didn't implicitly link libc in.
   15622 archive_cmds_need_lc_GCJ=no
   15623 
   15624 ## CAVEAT EMPTOR:
   15625 ## There is no encapsulation within the following macros, do not change
   15626 ## the running order or otherwise move them around unless you know exactly
   15627 ## what you are doing...
   15628 
   15629 lt_prog_compiler_no_builtin_flag_GCJ=
   15630 
   15631 if test "$GCC" = yes; then
   15632   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
   15633 
   15634 
   15635 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   15636 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
   15637 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
   15638   echo $ECHO_N "(cached) $ECHO_C" >&6
   15639 else
   15640   lt_cv_prog_compiler_rtti_exceptions=no
   15641   ac_outfile=conftest.$ac_objext
   15642    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   15643    lt_compiler_flag="-fno-rtti -fno-exceptions"
   15644    # Insert the option either (1) after the last *FLAGS variable, or
   15645    # (2) before a word containing "conftest.", or (3) at the end.
   15646    # Note that $ac_compile itself does not contain backslashes and begins
   15647    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15648    # The option is referenced via a variable to avoid confusing sed.
   15649    lt_compile=`echo "$ac_compile" | $SED \
   15650    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   15651    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15652    -e 's:$: $lt_compiler_flag:'`
   15653    (eval echo "\"\$as_me:15653: $lt_compile\"" >&5)
   15654    (eval "$lt_compile" 2>conftest.err)
   15655    ac_status=$?
   15656    cat conftest.err >&5
   15657    echo "$as_me:15657: \$? = $ac_status" >&5
   15658    if (exit $ac_status) && test -s "$ac_outfile"; then
   15659      # The compiler can only warn and ignore the option if not recognized
   15660      # So say no if there are warnings
   15661      if test ! -s conftest.err; then
   15662        lt_cv_prog_compiler_rtti_exceptions=yes
   15663      fi
   15664    fi
   15665    $rm conftest*
   15666 
   15667 fi
   15668 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
   15669 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
   15670 
   15671 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
   15672     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
   15673 else
   15674     :
   15675 fi
   15676 
   15677 fi
   15678 
   15679 lt_prog_compiler_wl_GCJ=
   15680 lt_prog_compiler_pic_GCJ=
   15681 lt_prog_compiler_static_GCJ=
   15682 
   15683 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
   15684 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
   15685 
   15686   if test "$GCC" = yes; then
   15687     lt_prog_compiler_wl_GCJ='-Wl,'
   15688     lt_prog_compiler_static_GCJ='-static'
   15689 
   15690     case $host_os in
   15691       aix*)
   15692       # All AIX code is PIC.
   15693       if test "$host_cpu" = ia64; then
   15694 	# AIX 5 now supports IA64 processor
   15695 	lt_prog_compiler_static_GCJ='-Bstatic'
   15696       fi
   15697       ;;
   15698 
   15699     amigaos*)
   15700       # FIXME: we need at least 68020 code to build shared libraries, but
   15701       # adding the `-m68020' flag to GCC prevents building anything better,
   15702       # like `-m68040'.
   15703       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
   15704       ;;
   15705 
   15706     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
   15707       # PIC is the default for these OSes.
   15708       ;;
   15709 
   15710     mingw* | pw32* | os2*)
   15711       # This hack is so that the source file can tell whether it is being
   15712       # built for inclusion in a dll (and should export symbols for example).
   15713       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
   15714       ;;
   15715 
   15716     darwin* | rhapsody*)
   15717       # PIC is the default on this platform
   15718       # Common symbols not allowed in MH_DYLIB files
   15719       lt_prog_compiler_pic_GCJ='-fno-common'
   15720       ;;
   15721 
   15722     msdosdjgpp*)
   15723       # Just because we use GCC doesn't mean we suddenly get shared libraries
   15724       # on systems that don't support them.
   15725       lt_prog_compiler_can_build_shared_GCJ=no
   15726       enable_shared=no
   15727       ;;
   15728 
   15729     sysv4*MP*)
   15730       if test -d /usr/nec; then
   15731 	lt_prog_compiler_pic_GCJ=-Kconform_pic
   15732       fi
   15733       ;;
   15734 
   15735     hpux*)
   15736       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   15737       # not for PA HP-UX.
   15738       case "$host_cpu" in
   15739       hppa*64*|ia64*)
   15740 	# +Z the default
   15741 	;;
   15742       *)
   15743 	lt_prog_compiler_pic_GCJ='-fPIC'
   15744 	;;
   15745       esac
   15746       ;;
   15747 
   15748     *)
   15749       lt_prog_compiler_pic_GCJ='-fPIC'
   15750       ;;
   15751     esac
   15752   else
   15753     # PORTME Check for flag to pass linker flags through the system compiler.
   15754     case $host_os in
   15755     aix*)
   15756       lt_prog_compiler_wl_GCJ='-Wl,'
   15757       if test "$host_cpu" = ia64; then
   15758 	# AIX 5 now supports IA64 processor
   15759 	lt_prog_compiler_static_GCJ='-Bstatic'
   15760       else
   15761 	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
   15762       fi
   15763       ;;
   15764 
   15765     mingw* | pw32* | os2*)
   15766       # This hack is so that the source file can tell whether it is being
   15767       # built for inclusion in a dll (and should export symbols for example).
   15768       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
   15769       ;;
   15770 
   15771     hpux9* | hpux10* | hpux11*)
   15772       lt_prog_compiler_wl_GCJ='-Wl,'
   15773       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
   15774       # not for PA HP-UX.
   15775       case "$host_cpu" in
   15776       hppa*64*|ia64*)
   15777 	# +Z the default
   15778 	;;
   15779       *)
   15780 	lt_prog_compiler_pic_GCJ='+Z'
   15781 	;;
   15782       esac
   15783       # Is there a better lt_prog_compiler_static that works with the bundled CC?
   15784       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
   15785       ;;
   15786 
   15787     irix5* | irix6* | nonstopux*)
   15788       lt_prog_compiler_wl_GCJ='-Wl,'
   15789       # PIC (with -KPIC) is the default.
   15790       lt_prog_compiler_static_GCJ='-non_shared'
   15791       ;;
   15792 
   15793     newsos6)
   15794       lt_prog_compiler_pic_GCJ='-KPIC'
   15795       lt_prog_compiler_static_GCJ='-Bstatic'
   15796       ;;
   15797 
   15798     linux*)
   15799       case $CC in
   15800       icc* | ecc*)
   15801 	lt_prog_compiler_wl_GCJ='-Wl,'
   15802 	lt_prog_compiler_pic_GCJ='-KPIC'
   15803 	lt_prog_compiler_static_GCJ='-static'
   15804         ;;
   15805       ccc*)
   15806         lt_prog_compiler_wl_GCJ='-Wl,'
   15807         # All Alpha code is PIC.
   15808         lt_prog_compiler_static_GCJ='-non_shared'
   15809         ;;
   15810       esac
   15811       ;;
   15812 
   15813     osf3* | osf4* | osf5*)
   15814       lt_prog_compiler_wl_GCJ='-Wl,'
   15815       # All OSF/1 code is PIC.
   15816       lt_prog_compiler_static_GCJ='-non_shared'
   15817       ;;
   15818 
   15819     sco3.2v5*)
   15820       lt_prog_compiler_pic_GCJ='-Kpic'
   15821       lt_prog_compiler_static_GCJ='-dn'
   15822       ;;
   15823 
   15824     solaris*)
   15825       lt_prog_compiler_wl_GCJ='-Wl,'
   15826       lt_prog_compiler_pic_GCJ='-KPIC'
   15827       lt_prog_compiler_static_GCJ='-Bstatic'
   15828       ;;
   15829 
   15830     sunos4*)
   15831       lt_prog_compiler_wl_GCJ='-Qoption ld '
   15832       lt_prog_compiler_pic_GCJ='-PIC'
   15833       lt_prog_compiler_static_GCJ='-Bstatic'
   15834       ;;
   15835 
   15836     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   15837       lt_prog_compiler_wl_GCJ='-Wl,'
   15838       lt_prog_compiler_pic_GCJ='-KPIC'
   15839       lt_prog_compiler_static_GCJ='-Bstatic'
   15840       ;;
   15841 
   15842     sysv4*MP*)
   15843       if test -d /usr/nec ;then
   15844 	lt_prog_compiler_pic_GCJ='-Kconform_pic'
   15845 	lt_prog_compiler_static_GCJ='-Bstatic'
   15846       fi
   15847       ;;
   15848 
   15849     uts4*)
   15850       lt_prog_compiler_pic_GCJ='-pic'
   15851       lt_prog_compiler_static_GCJ='-Bstatic'
   15852       ;;
   15853 
   15854     *)
   15855       lt_prog_compiler_can_build_shared_GCJ=no
   15856       ;;
   15857     esac
   15858   fi
   15859 
   15860 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
   15861 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
   15862 
   15863 #
   15864 # Check to make sure the PIC flag actually works.
   15865 #
   15866 if test -n "$lt_prog_compiler_pic_GCJ"; then
   15867 
   15868 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
   15869 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
   15870 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
   15871   echo $ECHO_N "(cached) $ECHO_C" >&6
   15872 else
   15873   lt_prog_compiler_pic_works_GCJ=no
   15874   ac_outfile=conftest.$ac_objext
   15875    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   15876    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
   15877    # Insert the option either (1) after the last *FLAGS variable, or
   15878    # (2) before a word containing "conftest.", or (3) at the end.
   15879    # Note that $ac_compile itself does not contain backslashes and begins
   15880    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15881    # The option is referenced via a variable to avoid confusing sed.
   15882    lt_compile=`echo "$ac_compile" | $SED \
   15883    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   15884    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15885    -e 's:$: $lt_compiler_flag:'`
   15886    (eval echo "\"\$as_me:15886: $lt_compile\"" >&5)
   15887    (eval "$lt_compile" 2>conftest.err)
   15888    ac_status=$?
   15889    cat conftest.err >&5
   15890    echo "$as_me:15890: \$? = $ac_status" >&5
   15891    if (exit $ac_status) && test -s "$ac_outfile"; then
   15892      # The compiler can only warn and ignore the option if not recognized
   15893      # So say no if there are warnings
   15894      if test ! -s conftest.err; then
   15895        lt_prog_compiler_pic_works_GCJ=yes
   15896      fi
   15897    fi
   15898    $rm conftest*
   15899 
   15900 fi
   15901 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
   15902 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
   15903 
   15904 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
   15905     case $lt_prog_compiler_pic_GCJ in
   15906      "" | " "*) ;;
   15907      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
   15908      esac
   15909 else
   15910     lt_prog_compiler_pic_GCJ=
   15911      lt_prog_compiler_can_build_shared_GCJ=no
   15912 fi
   15913 
   15914 fi
   15915 case "$host_os" in
   15916   # For platforms which do not support PIC, -DPIC is meaningless:
   15917   *djgpp*)
   15918     lt_prog_compiler_pic_GCJ=
   15919     ;;
   15920   *)
   15921     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
   15922     ;;
   15923 esac
   15924 
   15925 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
   15926 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
   15927 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
   15928   echo $ECHO_N "(cached) $ECHO_C" >&6
   15929 else
   15930   lt_cv_prog_compiler_c_o_GCJ=no
   15931    $rm -r conftest 2>/dev/null
   15932    mkdir conftest
   15933    cd conftest
   15934    mkdir out
   15935    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   15936 
   15937    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   15938    # that will create temporary files in the current directory regardless of
   15939    # the output directory.  Thus, making CWD read-only will cause this test
   15940    # to fail, enabling locking or at least warning the user not to do parallel
   15941    # builds.
   15942    chmod -w .
   15943 
   15944    lt_compiler_flag="-o out/conftest2.$ac_objext"
   15945    # Insert the option either (1) after the last *FLAGS variable, or
   15946    # (2) before a word containing "conftest.", or (3) at the end.
   15947    # Note that $ac_compile itself does not contain backslashes and begins
   15948    # with a dollar sign (not a hyphen), so the echo should work correctly.
   15949    lt_compile=`echo "$ac_compile" | $SED \
   15950    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
   15951    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
   15952    -e 's:$: $lt_compiler_flag:'`
   15953    (eval echo "\"\$as_me:15953: $lt_compile\"" >&5)
   15954    (eval "$lt_compile" 2>out/conftest.err)
   15955    ac_status=$?
   15956    cat out/conftest.err >&5
   15957    echo "$as_me:15957: \$? = $ac_status" >&5
   15958    if (exit $ac_status) && test -s out/conftest2.$ac_objext
   15959    then
   15960      # The compiler can only warn and ignore the option if not recognized
   15961      # So say no if there are warnings
   15962      if test ! -s out/conftest.err; then
   15963        lt_cv_prog_compiler_c_o_GCJ=yes
   15964      fi
   15965    fi
   15966    chmod u+w .
   15967    $rm conftest*
   15968    # SGI C++ compiler will create directory out/ii_files/ for
   15969    # template instantiation
   15970    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
   15971    $rm out/* && rmdir out
   15972    cd ..
   15973    rmdir conftest
   15974    $rm conftest*
   15975 
   15976 fi
   15977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
   15978 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
   15979 
   15980 
   15981 hard_links="nottested"
   15982 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
   15983   # do not overwrite the value of need_locks provided by the user
   15984   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
   15985 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
   15986   hard_links=yes
   15987   $rm conftest*
   15988   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   15989   touch conftest.a
   15990   ln conftest.a conftest.b 2>&5 || hard_links=no
   15991   ln conftest.a conftest.b 2>/dev/null && hard_links=no
   15992   { echo "$as_me:$LINENO: result: $hard_links" >&5
   15993 echo "${ECHO_T}$hard_links" >&6; }
   15994   if test "$hard_links" = no; then
   15995     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
   15996 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
   15997     need_locks=warn
   15998   fi
   15999 else
   16000   need_locks=no
   16001 fi
   16002 
   16003 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
   16004 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
   16005 
   16006   runpath_var=
   16007   allow_undefined_flag_GCJ=
   16008   enable_shared_with_static_runtimes_GCJ=no
   16009   archive_cmds_GCJ=
   16010   archive_expsym_cmds_GCJ=
   16011   old_archive_From_new_cmds_GCJ=
   16012   old_archive_from_expsyms_cmds_GCJ=
   16013   export_dynamic_flag_spec_GCJ=
   16014   whole_archive_flag_spec_GCJ=
   16015   thread_safe_flag_spec_GCJ=
   16016   hardcode_libdir_flag_spec_GCJ=
   16017   hardcode_libdir_flag_spec_ld_GCJ=
   16018   hardcode_libdir_separator_GCJ=
   16019   hardcode_direct_GCJ=no
   16020   hardcode_minus_L_GCJ=no
   16021   hardcode_shlibpath_var_GCJ=unsupported
   16022   link_all_deplibs_GCJ=unknown
   16023   hardcode_automatic_GCJ=no
   16024   module_cmds_GCJ=
   16025   module_expsym_cmds_GCJ=
   16026   always_export_symbols_GCJ=no
   16027   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
   16028   # include_expsyms should be a list of space-separated symbols to be *always*
   16029   # included in the symbol list
   16030   include_expsyms_GCJ=
   16031   # exclude_expsyms can be an extended regexp of symbols to exclude
   16032   # it will be wrapped by ` (' and `)$', so one must not match beginning or
   16033   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
   16034   # as well as any symbol that contains `d'.
   16035   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
   16036   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
   16037   # platforms (ab)use it in PIC code, but their linkers get confused if
   16038   # the symbol is explicitly referenced.  Since portable code cannot
   16039   # rely on this symbol name, it's probably fine to never include it in
   16040   # preloaded symbol tables.
   16041   extract_expsyms_cmds=
   16042 
   16043   case $host_os in
   16044   cygwin* | mingw* | pw32*)
   16045     # FIXME: the MSVC++ port hasn't been tested in a loooong time
   16046     # When not using gcc, we currently assume that we are using
   16047     # Microsoft Visual C++.
   16048     if test "$GCC" != yes; then
   16049       with_gnu_ld=no
   16050     fi
   16051     ;;
   16052   openbsd*)
   16053     with_gnu_ld=no
   16054     ;;
   16055   esac
   16056 
   16057   ld_shlibs_GCJ=yes
   16058   if test "$with_gnu_ld" = yes; then
   16059     # If archive_cmds runs LD, not CC, wlarc should be empty
   16060     wlarc='${wl}'
   16061 
   16062     # See if GNU ld supports shared libraries.
   16063     case $host_os in
   16064     aix3* | aix4* | aix5*)
   16065       # On AIX/PPC, the GNU linker is very broken
   16066       if test "$host_cpu" != ia64; then
   16067 	ld_shlibs_GCJ=no
   16068 	cat <<EOF 1>&2
   16069 
   16070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
   16071 *** to be unable to reliably create shared libraries on AIX.
   16072 *** Therefore, libtool is disabling shared libraries support.  If you
   16073 *** really care for shared libraries, you may want to modify your PATH
   16074 *** so that a non-GNU linker is found, and then restart.
   16075 
   16076 EOF
   16077       fi
   16078       ;;
   16079 
   16080     amigaos*)
   16081       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   16082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16083       hardcode_minus_L_GCJ=yes
   16084 
   16085       # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
   16086       # that the semantics of dynamic libraries on AmigaOS, at least up
   16087       # to version 4, is to share data among multiple programs linked
   16088       # with the same dynamic library.  Since this doesn't match the
   16089       # behavior of shared libraries on other platforms, we can't use
   16090       # them.
   16091       ld_shlibs_GCJ=no
   16092       ;;
   16093 
   16094     beos*)
   16095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   16096 	allow_undefined_flag_GCJ=unsupported
   16097 	# Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
   16098 	# support --undefined.  This deserves some investigation.  FIXME
   16099 	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16100       else
   16101 	ld_shlibs_GCJ=no
   16102       fi
   16103       ;;
   16104 
   16105     cygwin* | mingw* | pw32*)
   16106       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
   16107       # as there is no search path for DLLs.
   16108       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16109       allow_undefined_flag_GCJ=unsupported
   16110       always_export_symbols_GCJ=no
   16111       enable_shared_with_static_runtimes_GCJ=yes
   16112       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
   16113 
   16114       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
   16115         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
   16116 	# If the export-symbols file already is a .def file (1st line
   16117 	# is EXPORTS), use it as is; otherwise, prepend...
   16118 	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
   16119 	  cp $export_symbols $output_objdir/$soname.def;
   16120 	else
   16121 	  echo EXPORTS > $output_objdir/$soname.def;
   16122 	  cat $export_symbols >> $output_objdir/$soname.def;
   16123 	fi~
   16124 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
   16125       else
   16126 	ld_shlibs=no
   16127       fi
   16128       ;;
   16129 
   16130     netbsd*)
   16131       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   16132 	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
   16133 	wlarc=
   16134       else
   16135 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16136 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   16137       fi
   16138       ;;
   16139 
   16140     solaris* | sysv5*)
   16141       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
   16142 	ld_shlibs_GCJ=no
   16143 	cat <<EOF 1>&2
   16144 
   16145 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
   16146 *** create shared libraries on Solaris systems.  Therefore, libtool
   16147 *** is disabling shared libraries support.  We urge you to upgrade GNU
   16148 *** binutils to release 2.9.1 or newer.  Another option is to modify
   16149 *** your PATH or compiler configuration so that the native linker is
   16150 *** used, and then restart.
   16151 
   16152 EOF
   16153       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   16154 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16155 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   16156       else
   16157 	ld_shlibs_GCJ=no
   16158       fi
   16159       ;;
   16160 
   16161     sunos4*)
   16162       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   16163       wlarc=
   16164       hardcode_direct_GCJ=yes
   16165       hardcode_shlibpath_var_GCJ=no
   16166       ;;
   16167 
   16168   linux*)
   16169     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
   16170         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16171 	archive_cmds_GCJ="$tmp_archive_cmds"
   16172       supports_anon_versioning=no
   16173       case `$LD -v 2>/dev/null` in
   16174         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
   16175         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
   16176         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
   16177         *\ 2.11.*) ;; # other 2.11 versions
   16178         *) supports_anon_versioning=yes ;;
   16179       esac
   16180       if test $supports_anon_versioning = yes; then
   16181         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
   16182 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
   16183 $echo "local: *; };" >> $output_objdir/$libname.ver~
   16184         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
   16185       else
   16186         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
   16187       fi
   16188     else
   16189       ld_shlibs_GCJ=no
   16190     fi
   16191     ;;
   16192 
   16193     *)
   16194       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
   16195 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
   16196 	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
   16197       else
   16198 	ld_shlibs_GCJ=no
   16199       fi
   16200       ;;
   16201     esac
   16202 
   16203     if test "$ld_shlibs_GCJ" = yes; then
   16204       runpath_var=LD_RUN_PATH
   16205       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
   16206       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
   16207       # ancient GNU ld didn't support --whole-archive et. al.
   16208       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
   16209  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
   16210       else
   16211   	whole_archive_flag_spec_GCJ=
   16212       fi
   16213     fi
   16214   else
   16215     # PORTME fill in a description of your system's linker (not GNU ld)
   16216     case $host_os in
   16217     aix3*)
   16218       allow_undefined_flag_GCJ=unsupported
   16219       always_export_symbols_GCJ=yes
   16220       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
   16221       # Note: this linker hardcodes the directories in LIBPATH if there
   16222       # are no directories specified by -L.
   16223       hardcode_minus_L_GCJ=yes
   16224       if test "$GCC" = yes && test -z "$link_static_flag"; then
   16225 	# Neither direct hardcoding nor static linking is supported with a
   16226 	# broken collect2.
   16227 	hardcode_direct_GCJ=unsupported
   16228       fi
   16229       ;;
   16230 
   16231     aix4* | aix5*)
   16232       if test "$host_cpu" = ia64; then
   16233 	# On IA64, the linker does run time linking by default, so we don't
   16234 	# have to do anything special.
   16235 	aix_use_runtimelinking=no
   16236 	exp_sym_flag='-Bexport'
   16237 	no_entry_flag=""
   16238       else
   16239 	# If we're using GNU nm, then we don't want the "-C" option.
   16240 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
   16241 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
   16242 	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   16243 	else
   16244 	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
   16245 	fi
   16246 	aix_use_runtimelinking=no
   16247 
   16248 	# Test if we are trying to use run time linking or normal
   16249 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
   16250 	# need to do runtime linking.
   16251 	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
   16252 	  for ld_flag in $LDFLAGS; do
   16253   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
   16254   	    aix_use_runtimelinking=yes
   16255   	    break
   16256   	  fi
   16257 	  done
   16258 	esac
   16259 
   16260 	exp_sym_flag='-bexport'
   16261 	no_entry_flag='-bnoentry'
   16262       fi
   16263 
   16264       # When large executables or shared objects are built, AIX ld can
   16265       # have problems creating the table of contents.  If linking a library
   16266       # or program results in "error TOC overflow" add -mminimal-toc to
   16267       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
   16268       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
   16269 
   16270       archive_cmds_GCJ=''
   16271       hardcode_direct_GCJ=yes
   16272       hardcode_libdir_separator_GCJ=':'
   16273       link_all_deplibs_GCJ=yes
   16274 
   16275       if test "$GCC" = yes; then
   16276 	case $host_os in aix4.012|aix4.012.*)
   16277 	# We only want to do this on AIX 4.2 and lower, the check
   16278 	# below for broken collect2 doesn't work under 4.3+
   16279 	  collect2name=`${CC} -print-prog-name=collect2`
   16280 	  if test -f "$collect2name" && \
   16281   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
   16282 	  then
   16283   	  # We have reworked collect2
   16284   	  hardcode_direct_GCJ=yes
   16285 	  else
   16286   	  # We have old collect2
   16287   	  hardcode_direct_GCJ=unsupported
   16288   	  # It fails to find uninstalled libraries when the uninstalled
   16289   	  # path is not listed in the libpath.  Setting hardcode_minus_L
   16290   	  # to unsupported forces relinking
   16291   	  hardcode_minus_L_GCJ=yes
   16292   	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16293   	  hardcode_libdir_separator_GCJ=
   16294 	  fi
   16295 	esac
   16296 	shared_flag='-shared'
   16297       else
   16298 	# not using gcc
   16299 	if test "$host_cpu" = ia64; then
   16300   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
   16301   	# chokes on -Wl,-G. The following line is correct:
   16302 	  shared_flag='-G'
   16303 	else
   16304   	if test "$aix_use_runtimelinking" = yes; then
   16305 	    shared_flag='${wl}-G'
   16306 	  else
   16307 	    shared_flag='${wl}-bM:SRE'
   16308   	fi
   16309 	fi
   16310       fi
   16311 
   16312       # It seems that -bexpall does not export symbols beginning with
   16313       # underscore (_), so it is better to generate a list of symbols to export.
   16314       always_export_symbols_GCJ=yes
   16315       if test "$aix_use_runtimelinking" = yes; then
   16316 	# Warning - without using the other runtime loading flags (-brtl),
   16317 	# -berok will link without error, but may produce a broken library.
   16318 	allow_undefined_flag_GCJ='-berok'
   16319        # Determine the default libpath from the value encoded in an empty executable.
   16320        cat >conftest.$ac_ext <<_ACEOF
   16321 /* confdefs.h.  */
   16322 _ACEOF
   16323 cat confdefs.h >>conftest.$ac_ext
   16324 cat >>conftest.$ac_ext <<_ACEOF
   16325 /* end confdefs.h.  */
   16326 
   16327 int
   16328 main ()
   16329 {
   16330 
   16331   ;
   16332   return 0;
   16333 }
   16334 _ACEOF
   16335 rm -f conftest.$ac_objext conftest$ac_exeext
   16336 if { (ac_try="$ac_link"
   16337 case "(($ac_try" in
   16338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16339   *) ac_try_echo=$ac_try;;
   16340 esac
   16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16342   (eval "$ac_link") 2>conftest.er1
   16343   ac_status=$?
   16344   grep -v '^ *+' conftest.er1 >conftest.err
   16345   rm -f conftest.er1
   16346   cat conftest.err >&5
   16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16348   (exit $ac_status); } && {
   16349 	 test -z "$ac_c_werror_flag" ||
   16350 	 test ! -s conftest.err
   16351        } && test -s conftest$ac_exeext &&
   16352        $as_test_x conftest$ac_exeext; then
   16353 
   16354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   16355 }'`
   16356 # Check for a 64-bit object if we didn't find anything.
   16357 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   16358 }'`; fi
   16359 else
   16360   echo "$as_me: failed program was:" >&5
   16361 sed 's/^/| /' conftest.$ac_ext >&5
   16362 
   16363 
   16364 fi
   16365 
   16366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16367       conftest$ac_exeext conftest.$ac_ext
   16368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   16369 
   16370        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
   16371 	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
   16372        else
   16373 	if test "$host_cpu" = ia64; then
   16374 	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
   16375 	  allow_undefined_flag_GCJ="-z nodefs"
   16376 	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
   16377 	else
   16378 	 # Determine the default libpath from the value encoded in an empty executable.
   16379 	 cat >conftest.$ac_ext <<_ACEOF
   16380 /* confdefs.h.  */
   16381 _ACEOF
   16382 cat confdefs.h >>conftest.$ac_ext
   16383 cat >>conftest.$ac_ext <<_ACEOF
   16384 /* end confdefs.h.  */
   16385 
   16386 int
   16387 main ()
   16388 {
   16389 
   16390   ;
   16391   return 0;
   16392 }
   16393 _ACEOF
   16394 rm -f conftest.$ac_objext conftest$ac_exeext
   16395 if { (ac_try="$ac_link"
   16396 case "(($ac_try" in
   16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   16398   *) ac_try_echo=$ac_try;;
   16399 esac
   16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   16401   (eval "$ac_link") 2>conftest.er1
   16402   ac_status=$?
   16403   grep -v '^ *+' conftest.er1 >conftest.err
   16404   rm -f conftest.er1
   16405   cat conftest.err >&5
   16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16407   (exit $ac_status); } && {
   16408 	 test -z "$ac_c_werror_flag" ||
   16409 	 test ! -s conftest.err
   16410        } && test -s conftest$ac_exeext &&
   16411        $as_test_x conftest$ac_exeext; then
   16412 
   16413 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   16414 }'`
   16415 # Check for a 64-bit object if we didn't find anything.
   16416 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
   16417 }'`; fi
   16418 else
   16419   echo "$as_me: failed program was:" >&5
   16420 sed 's/^/| /' conftest.$ac_ext >&5
   16421 
   16422 
   16423 fi
   16424 
   16425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   16426       conftest$ac_exeext conftest.$ac_ext
   16427 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   16428 
   16429 	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
   16430 	  # Warning - without using the other run time loading flags,
   16431 	  # -berok will link without error, but may produce a broken library.
   16432 	  no_undefined_flag_GCJ=' ${wl}-bernotok'
   16433 	  allow_undefined_flag_GCJ=' ${wl}-berok'
   16434 	  # -bexpall does not export symbols beginning with underscore (_)
   16435 	  always_export_symbols_GCJ=yes
   16436 	  # Exported symbols can be pulled into shared objects from archives
   16437 	  whole_archive_flag_spec_GCJ=' '
   16438 	  archive_cmds_need_lc_GCJ=yes
   16439 	  # This is similar to how AIX traditionally builds it's shared libraries.
   16440 	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
   16441 	fi
   16442       fi
   16443       ;;
   16444 
   16445     amigaos*)
   16446       archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
   16447       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16448       hardcode_minus_L_GCJ=yes
   16449       # see comment about different semantics on the GNU ld section
   16450       ld_shlibs_GCJ=no
   16451       ;;
   16452 
   16453     bsdi4*)
   16454       export_dynamic_flag_spec_GCJ=-rdynamic
   16455       ;;
   16456 
   16457     cygwin* | mingw* | pw32*)
   16458       # When not using gcc, we currently assume that we are using
   16459       # Microsoft Visual C++.
   16460       # hardcode_libdir_flag_spec is actually meaningless, as there is
   16461       # no search path for DLLs.
   16462       hardcode_libdir_flag_spec_GCJ=' '
   16463       allow_undefined_flag_GCJ=unsupported
   16464       # Tell ltmain to make .lib files, not .a files.
   16465       libext=lib
   16466       # Tell ltmain to make .dll files, not .so files.
   16467       shrext=".dll"
   16468       # FIXME: Setting linknames here is a bad hack.
   16469       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
   16470       # The linker will automatically build a .lib file if we build a DLL.
   16471       old_archive_From_new_cmds_GCJ='true'
   16472       # FIXME: Should let the user specify the lib program.
   16473       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
   16474       fix_srcfile_path='`cygpath -w "$srcfile"`'
   16475       enable_shared_with_static_runtimes_GCJ=yes
   16476       ;;
   16477 
   16478     darwin* | rhapsody*)
   16479     if test "$GXX" = yes ; then
   16480       archive_cmds_need_lc_GCJ=no
   16481       case "$host_os" in
   16482       rhapsody* | darwin1.[012])
   16483 	allow_undefined_flag_GCJ='-undefined suppress'
   16484 	;;
   16485       *) # Darwin 1.3 on
   16486       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
   16487       	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
   16488       else
   16489         case ${MACOSX_DEPLOYMENT_TARGET} in
   16490           10.[012])
   16491             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
   16492             ;;
   16493           10.*)
   16494             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
   16495             ;;
   16496         esac
   16497       fi
   16498 	;;
   16499       esac
   16500     	lt_int_apple_cc_single_mod=no
   16501     	output_verbose_link_cmd='echo'
   16502     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
   16503     	  lt_int_apple_cc_single_mod=yes
   16504     	fi
   16505     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   16506     	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   16507     	else
   16508         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
   16509       fi
   16510       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
   16511       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
   16512         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
   16513           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   16514         else
   16515           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   16516         fi
   16517           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
   16518       hardcode_direct_GCJ=no
   16519       hardcode_automatic_GCJ=yes
   16520       hardcode_shlibpath_var_GCJ=unsupported
   16521       whole_archive_flag_spec_GCJ='-all_load $convenience'
   16522       link_all_deplibs_GCJ=yes
   16523     else
   16524       ld_shlibs_GCJ=no
   16525     fi
   16526       ;;
   16527 
   16528     dgux*)
   16529       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16530       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16531       hardcode_shlibpath_var_GCJ=no
   16532       ;;
   16533 
   16534     freebsd1*)
   16535       ld_shlibs_GCJ=no
   16536       ;;
   16537 
   16538     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
   16539     # support.  Future versions do this automatically, but an explicit c++rt0.o
   16540     # does not break anything, and helps significantly (at the cost of a little
   16541     # extra space).
   16542     freebsd2.2*)
   16543       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
   16544       hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16545       hardcode_direct_GCJ=yes
   16546       hardcode_shlibpath_var_GCJ=no
   16547       ;;
   16548 
   16549     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
   16550     freebsd2*)
   16551       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   16552       hardcode_direct_GCJ=yes
   16553       hardcode_minus_L_GCJ=yes
   16554       hardcode_shlibpath_var_GCJ=no
   16555       ;;
   16556 
   16557     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
   16558     freebsd* | kfreebsd*-gnu)
   16559       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
   16560       hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16561       hardcode_direct_GCJ=yes
   16562       hardcode_shlibpath_var_GCJ=no
   16563       ;;
   16564 
   16565     hpux9*)
   16566       if test "$GCC" = yes; then
   16567 	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   16568       else
   16569 	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
   16570       fi
   16571       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
   16572       hardcode_libdir_separator_GCJ=:
   16573       hardcode_direct_GCJ=yes
   16574 
   16575       # hardcode_minus_L: Not really in the search PATH,
   16576       # but as the default location of the library.
   16577       hardcode_minus_L_GCJ=yes
   16578       export_dynamic_flag_spec_GCJ='${wl}-E'
   16579       ;;
   16580 
   16581     hpux10* | hpux11*)
   16582       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
   16583 	case "$host_cpu" in
   16584 	hppa*64*|ia64*)
   16585 	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16586 	  ;;
   16587 	*)
   16588 	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
   16589 	  ;;
   16590 	esac
   16591       else
   16592 	case "$host_cpu" in
   16593 	hppa*64*|ia64*)
   16594 	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
   16595 	  ;;
   16596 	*)
   16597 	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
   16598 	  ;;
   16599 	esac
   16600       fi
   16601       if test "$with_gnu_ld" = no; then
   16602 	case "$host_cpu" in
   16603 	hppa*64*)
   16604 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
   16605 	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
   16606 	  hardcode_libdir_separator_GCJ=:
   16607 	  hardcode_direct_GCJ=no
   16608 	  hardcode_shlibpath_var_GCJ=no
   16609 	  ;;
   16610 	ia64*)
   16611 	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16612 	  hardcode_direct_GCJ=no
   16613 	  hardcode_shlibpath_var_GCJ=no
   16614 
   16615 	  # hardcode_minus_L: Not really in the search PATH,
   16616 	  # but as the default location of the library.
   16617 	  hardcode_minus_L_GCJ=yes
   16618 	  ;;
   16619 	*)
   16620 	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
   16621 	  hardcode_libdir_separator_GCJ=:
   16622 	  hardcode_direct_GCJ=yes
   16623 	  export_dynamic_flag_spec_GCJ='${wl}-E'
   16624 
   16625 	  # hardcode_minus_L: Not really in the search PATH,
   16626 	  # but as the default location of the library.
   16627 	  hardcode_minus_L_GCJ=yes
   16628 	  ;;
   16629 	esac
   16630       fi
   16631       ;;
   16632 
   16633     irix5* | irix6* | nonstopux*)
   16634       if test "$GCC" = yes; then
   16635 	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16636       else
   16637 	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   16638 	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
   16639       fi
   16640       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
   16641       hardcode_libdir_separator_GCJ=:
   16642       link_all_deplibs_GCJ=yes
   16643       ;;
   16644 
   16645     netbsd*)
   16646       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   16647 	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
   16648       else
   16649 	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
   16650       fi
   16651       hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16652       hardcode_direct_GCJ=yes
   16653       hardcode_shlibpath_var_GCJ=no
   16654       ;;
   16655 
   16656     newsos6)
   16657       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16658       hardcode_direct_GCJ=yes
   16659       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
   16660       hardcode_libdir_separator_GCJ=:
   16661       hardcode_shlibpath_var_GCJ=no
   16662       ;;
   16663 
   16664     openbsd*)
   16665       hardcode_direct_GCJ=yes
   16666       hardcode_shlibpath_var_GCJ=no
   16667       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   16668 	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   16669 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
   16670 	export_dynamic_flag_spec_GCJ='${wl}-E'
   16671       else
   16672        case $host_os in
   16673 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
   16674 	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
   16675 	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16676 	   ;;
   16677 	 *)
   16678 	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
   16679 	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
   16680 	   ;;
   16681        esac
   16682       fi
   16683       ;;
   16684 
   16685     os2*)
   16686       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16687       hardcode_minus_L_GCJ=yes
   16688       allow_undefined_flag_GCJ=unsupported
   16689       archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
   16690       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
   16691       ;;
   16692 
   16693     osf3*)
   16694       if test "$GCC" = yes; then
   16695 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
   16696 	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16697       else
   16698 	allow_undefined_flag_GCJ=' -expect_unresolved \*'
   16699 	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   16700       fi
   16701       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
   16702       hardcode_libdir_separator_GCJ=:
   16703       ;;
   16704 
   16705     osf4* | osf5*)	# as osf3* with the addition of -msym flag
   16706       if test "$GCC" = yes; then
   16707 	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
   16708 	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
   16709 	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
   16710       else
   16711 	allow_undefined_flag_GCJ=' -expect_unresolved \*'
   16712 	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
   16713 	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
   16714 	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
   16715 
   16716 	# Both c and cxx compiler support -rpath directly
   16717 	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
   16718       fi
   16719       hardcode_libdir_separator_GCJ=:
   16720       ;;
   16721 
   16722     sco3.2v5*)
   16723       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16724       hardcode_shlibpath_var_GCJ=no
   16725       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
   16726       runpath_var=LD_RUN_PATH
   16727       hardcode_runpath_var=yes
   16728       ;;
   16729 
   16730     solaris*)
   16731       no_undefined_flag_GCJ=' -z text'
   16732       if test "$GCC" = yes; then
   16733 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16734 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   16735 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
   16736       else
   16737 	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16738 	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   16739   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   16740       fi
   16741       hardcode_libdir_flag_spec_GCJ='-R$libdir'
   16742       hardcode_shlibpath_var_GCJ=no
   16743       case $host_os in
   16744       solaris2.[0-5] | solaris2.[0-5].*) ;;
   16745       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
   16746 	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
   16747       esac
   16748       link_all_deplibs_GCJ=yes
   16749       ;;
   16750 
   16751     sunos4*)
   16752       if test "x$host_vendor" = xsequent; then
   16753 	# Use $CC to link under sequent, because it throws in some extra .o
   16754 	# files that make .init and .fini sections work.
   16755 	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
   16756       else
   16757 	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
   16758       fi
   16759       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16760       hardcode_direct_GCJ=yes
   16761       hardcode_minus_L_GCJ=yes
   16762       hardcode_shlibpath_var_GCJ=no
   16763       ;;
   16764 
   16765     sysv4)
   16766       case $host_vendor in
   16767 	sni)
   16768 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16769 	  hardcode_direct_GCJ=yes # is this really true???
   16770 	;;
   16771 	siemens)
   16772 	  ## LD is ld it makes a PLAMLIB
   16773 	  ## CC just makes a GrossModule.
   16774 	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   16775 	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
   16776 	  hardcode_direct_GCJ=no
   16777         ;;
   16778 	motorola)
   16779 	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16780 	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
   16781 	;;
   16782       esac
   16783       runpath_var='LD_RUN_PATH'
   16784       hardcode_shlibpath_var_GCJ=no
   16785       ;;
   16786 
   16787     sysv4.3*)
   16788       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16789       hardcode_shlibpath_var_GCJ=no
   16790       export_dynamic_flag_spec_GCJ='-Bexport'
   16791       ;;
   16792 
   16793     sysv4*MP*)
   16794       if test -d /usr/nec; then
   16795 	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16796 	hardcode_shlibpath_var_GCJ=no
   16797 	runpath_var=LD_RUN_PATH
   16798 	hardcode_runpath_var=yes
   16799 	ld_shlibs_GCJ=yes
   16800       fi
   16801       ;;
   16802 
   16803     sysv4.2uw2*)
   16804       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
   16805       hardcode_direct_GCJ=yes
   16806       hardcode_minus_L_GCJ=no
   16807       hardcode_shlibpath_var_GCJ=no
   16808       hardcode_runpath_var=yes
   16809       runpath_var=LD_RUN_PATH
   16810       ;;
   16811 
   16812    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
   16813       no_undefined_flag_GCJ='${wl}-z ${wl}text'
   16814       if test "$GCC" = yes; then
   16815 	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16816       else
   16817 	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
   16818       fi
   16819       runpath_var='LD_RUN_PATH'
   16820       hardcode_shlibpath_var_GCJ=no
   16821       ;;
   16822 
   16823     sysv5*)
   16824       no_undefined_flag_GCJ=' -z text'
   16825       # $CC -shared without GNU ld will not create a library from C++
   16826       # object files and a static libstdc++, better avoid it by now
   16827       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16828       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
   16829   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
   16830       hardcode_libdir_flag_spec_GCJ=
   16831       hardcode_shlibpath_var_GCJ=no
   16832       runpath_var='LD_RUN_PATH'
   16833       ;;
   16834 
   16835     uts4*)
   16836       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
   16837       hardcode_libdir_flag_spec_GCJ='-L$libdir'
   16838       hardcode_shlibpath_var_GCJ=no
   16839       ;;
   16840 
   16841     *)
   16842       ld_shlibs_GCJ=no
   16843       ;;
   16844     esac
   16845   fi
   16846 
   16847 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
   16848 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
   16849 test "$ld_shlibs_GCJ" = no && can_build_shared=no
   16850 
   16851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
   16852 if test "$GCC" = yes; then
   16853   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
   16854 fi
   16855 
   16856 #
   16857 # Do we need to explicitly link libc?
   16858 #
   16859 case "x$archive_cmds_need_lc_GCJ" in
   16860 x|xyes)
   16861   # Assume -lc should be added
   16862   archive_cmds_need_lc_GCJ=yes
   16863 
   16864   if test "$enable_shared" = yes && test "$GCC" = yes; then
   16865     case $archive_cmds_GCJ in
   16866     *'~'*)
   16867       # FIXME: we may have to deal with multi-command sequences.
   16868       ;;
   16869     '$CC '*)
   16870       # Test whether the compiler implicitly links with -lc since on some
   16871       # systems, -lgcc has to come before -lc. If gcc already passes -lc
   16872       # to ld, don't add -lc before -lgcc.
   16873       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
   16874 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
   16875       $rm conftest*
   16876       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
   16877 
   16878       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   16879   (eval $ac_compile) 2>&5
   16880   ac_status=$?
   16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16882   (exit $ac_status); } 2>conftest.err; then
   16883         soname=conftest
   16884         lib=conftest
   16885         libobjs=conftest.$ac_objext
   16886         deplibs=
   16887         wl=$lt_prog_compiler_wl_GCJ
   16888         compiler_flags=-v
   16889         linker_flags=-v
   16890         verstring=
   16891         output_objdir=.
   16892         libname=conftest
   16893         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
   16894         allow_undefined_flag_GCJ=
   16895         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
   16896   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
   16897   ac_status=$?
   16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   16899   (exit $ac_status); }
   16900         then
   16901 	  archive_cmds_need_lc_GCJ=no
   16902         else
   16903 	  archive_cmds_need_lc_GCJ=yes
   16904         fi
   16905         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
   16906       else
   16907         cat conftest.err 1>&5
   16908       fi
   16909       $rm conftest*
   16910       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
   16911 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
   16912       ;;
   16913     esac
   16914   fi
   16915   ;;
   16916 esac
   16917 
   16918 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
   16919 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
   16920 library_names_spec=
   16921 libname_spec='lib$name'
   16922 soname_spec=
   16923 shrext=".so"
   16924 postinstall_cmds=
   16925 postuninstall_cmds=
   16926 finish_cmds=
   16927 finish_eval=
   16928 shlibpath_var=
   16929 shlibpath_overrides_runpath=unknown
   16930 version_type=none
   16931 dynamic_linker="$host_os ld.so"
   16932 sys_lib_dlsearch_path_spec="/lib /usr/lib"
   16933 if test "$GCC" = yes; then
   16934   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   16935   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
   16936     # if the path contains ";" then we assume it to be the separator
   16937     # otherwise default to the standard path separator (i.e. ":") - it is
   16938     # assumed that no part of a normal pathname contains ";" but that should
   16939     # okay in the real world where ";" in dirpaths is itself problematic.
   16940     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   16941   else
   16942     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   16943   fi
   16944 else
   16945   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
   16946 fi
   16947 need_lib_prefix=unknown
   16948 hardcode_into_libs=no
   16949 
   16950 # when you set need_version to no, make sure it does not cause -set_version
   16951 # flags to be left without arguments
   16952 need_version=unknown
   16953 
   16954 case $host_os in
   16955 aix3*)
   16956   version_type=linux
   16957   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
   16958   shlibpath_var=LIBPATH
   16959 
   16960   # AIX 3 has no versioning support, so we append a major version to the name.
   16961   soname_spec='${libname}${release}${shared_ext}$major'
   16962   ;;
   16963 
   16964 aix4* | aix5*)
   16965   version_type=linux
   16966   need_lib_prefix=no
   16967   need_version=no
   16968   hardcode_into_libs=yes
   16969   if test "$host_cpu" = ia64; then
   16970     # AIX 5 supports IA64
   16971     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
   16972     shlibpath_var=LD_LIBRARY_PATH
   16973   else
   16974     # With GCC up to 2.95.x, collect2 would create an import file
   16975     # for dependence libraries.  The import file would start with
   16976     # the line `#! .'.  This would cause the generated library to
   16977     # depend on `.', always an invalid library.  This was fixed in
   16978     # development snapshots of GCC prior to 3.0.
   16979     case $host_os in
   16980       aix4 | aix4.[01] | aix4.[01].*)
   16981       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
   16982 	   echo ' yes '
   16983 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
   16984 	:
   16985       else
   16986 	can_build_shared=no
   16987       fi
   16988       ;;
   16989     esac
   16990     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
   16991     # soname into executable. Probably we can add versioning support to
   16992     # collect2, so additional links can be useful in future.
   16993     if test "$aix_use_runtimelinking" = yes; then
   16994       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
   16995       # instead of lib<name>.a to let people know that these are not
   16996       # typical AIX shared libraries.
   16997       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   16998     else
   16999       # We preserve .a as extension for shared libraries through AIX4.2
   17000       # and later when we are not doing run time linking.
   17001       library_names_spec='${libname}${release}.a $libname.a'
   17002       soname_spec='${libname}${release}${shared_ext}$major'
   17003     fi
   17004     shlibpath_var=LIBPATH
   17005   fi
   17006   ;;
   17007 
   17008 amigaos*)
   17009   library_names_spec='$libname.ixlibrary $libname.a'
   17010   # Create ${libname}_ixlibrary.a entries in /sys/libs.
   17011   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'
   17012   ;;
   17013 
   17014 beos*)
   17015   library_names_spec='${libname}${shared_ext}'
   17016   dynamic_linker="$host_os ld.so"
   17017   shlibpath_var=LIBRARY_PATH
   17018   ;;
   17019 
   17020 bsdi4*)
   17021   version_type=linux
   17022   need_version=no
   17023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17024   soname_spec='${libname}${release}${shared_ext}$major'
   17025   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
   17026   shlibpath_var=LD_LIBRARY_PATH
   17027   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
   17028   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   17029   # the default ld.so.conf also contains /usr/contrib/lib and
   17030   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
   17031   # libtool to hard-code these into programs
   17032   ;;
   17033 
   17034 cygwin* | mingw* | pw32*)
   17035   version_type=windows
   17036   shrext=".dll"
   17037   need_version=no
   17038   need_lib_prefix=no
   17039 
   17040   case $GCC,$host_os in
   17041   yes,cygwin* | yes,mingw* | yes,pw32*)
   17042     library_names_spec='$libname.dll.a'
   17043     # DLL is installed to $(libdir)/../bin by postinstall_cmds
   17044     postinstall_cmds='base_file=`basename \${file}`~
   17045       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
   17046       dldir=$destdir/`dirname \$dlpath`~
   17047       test -d \$dldir || mkdir -p \$dldir~
   17048       $install_prog $dir/$dlname \$dldir/$dlname'
   17049     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
   17050       dlpath=$dir/\$dldll~
   17051        $rm \$dlpath'
   17052     shlibpath_overrides_runpath=yes
   17053 
   17054     case $host_os in
   17055     cygwin*)
   17056       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
   17057       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   17058       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
   17059       ;;
   17060     mingw*)
   17061       # MinGW DLLs use traditional 'lib' prefix
   17062       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
   17063       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
   17064       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
   17065         # It is most probably a Windows format PATH printed by
   17066         # mingw gcc, but we are running on Cygwin. Gcc prints its search
   17067         # path with ; separators, and with drive letters. We can handle the
   17068         # drive letters (cygwin fileutils understands them), so leave them,
   17069         # especially as we might pass files found there to a mingw objdump,
   17070         # which wouldn't understand a cygwinified path. Ahh.
   17071         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
   17072       else
   17073         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
   17074       fi
   17075       ;;
   17076     pw32*)
   17077       # pw32 DLLs use 'pw' prefix rather than 'lib'
   17078       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
   17079       ;;
   17080     esac
   17081     ;;
   17082 
   17083   *)
   17084     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
   17085     ;;
   17086   esac
   17087   dynamic_linker='Win32 ld.exe'
   17088   # FIXME: first we should search . and the directory the executable is in
   17089   shlibpath_var=PATH
   17090   ;;
   17091 
   17092 darwin* | rhapsody*)
   17093   dynamic_linker="$host_os dyld"
   17094   version_type=darwin
   17095   need_lib_prefix=no
   17096   need_version=no
   17097   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
   17098   soname_spec='${libname}${release}${major}$shared_ext'
   17099   shlibpath_overrides_runpath=yes
   17100   shlibpath_var=DYLD_LIBRARY_PATH
   17101   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
   17102   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
   17103   if test "$GCC" = yes; then
   17104     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
   17105   else
   17106     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
   17107   fi
   17108   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
   17109   ;;
   17110 
   17111 dgux*)
   17112   version_type=linux
   17113   need_lib_prefix=no
   17114   need_version=no
   17115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
   17116   soname_spec='${libname}${release}${shared_ext}$major'
   17117   shlibpath_var=LD_LIBRARY_PATH
   17118   ;;
   17119 
   17120 freebsd1*)
   17121   dynamic_linker=no
   17122   ;;
   17123 
   17124 kfreebsd*-gnu)
   17125   version_type=linux
   17126   need_lib_prefix=no
   17127   need_version=no
   17128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
   17129   soname_spec='${libname}${release}${shared_ext}$major'
   17130   shlibpath_var=LD_LIBRARY_PATH
   17131   shlibpath_overrides_runpath=no
   17132   hardcode_into_libs=yes
   17133   dynamic_linker='GNU ld.so'
   17134   ;;
   17135 
   17136 freebsd*)
   17137   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
   17138   version_type=freebsd-$objformat
   17139   case $version_type in
   17140     freebsd-elf*)
   17141       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
   17142       need_version=no
   17143       need_lib_prefix=no
   17144       ;;
   17145     freebsd-*)
   17146       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
   17147       need_version=yes
   17148       ;;
   17149   esac
   17150   shlibpath_var=LD_LIBRARY_PATH
   17151   case $host_os in
   17152   freebsd2*)
   17153     shlibpath_overrides_runpath=yes
   17154     ;;
   17155   freebsd3.01* | freebsdelf3.01*)
   17156     shlibpath_overrides_runpath=yes
   17157     hardcode_into_libs=yes
   17158     ;;
   17159   *) # from 3.2 on
   17160     shlibpath_overrides_runpath=no
   17161     hardcode_into_libs=yes
   17162     ;;
   17163   esac
   17164   ;;
   17165 
   17166 gnu*)
   17167   version_type=linux
   17168   need_lib_prefix=no
   17169   need_version=no
   17170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
   17171   soname_spec='${libname}${release}${shared_ext}$major'
   17172   shlibpath_var=LD_LIBRARY_PATH
   17173   hardcode_into_libs=yes
   17174   ;;
   17175 
   17176 hpux9* | hpux10* | hpux11*)
   17177   # Give a soname corresponding to the major version so that dld.sl refuses to
   17178   # link against other versions.
   17179   version_type=sunos
   17180   need_lib_prefix=no
   17181   need_version=no
   17182   case "$host_cpu" in
   17183   ia64*)
   17184     shrext='.so'
   17185     hardcode_into_libs=yes
   17186     dynamic_linker="$host_os dld.so"
   17187     shlibpath_var=LD_LIBRARY_PATH
   17188     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   17189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17190     soname_spec='${libname}${release}${shared_ext}$major'
   17191     if test "X$HPUX_IA64_MODE" = X32; then
   17192       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
   17193     else
   17194       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
   17195     fi
   17196     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   17197     ;;
   17198    hppa*64*)
   17199      shrext='.sl'
   17200      hardcode_into_libs=yes
   17201      dynamic_linker="$host_os dld.sl"
   17202      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
   17203      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
   17204      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17205      soname_spec='${libname}${release}${shared_ext}$major'
   17206      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
   17207      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
   17208      ;;
   17209    *)
   17210     shrext='.sl'
   17211     dynamic_linker="$host_os dld.sl"
   17212     shlibpath_var=SHLIB_PATH
   17213     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
   17214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17215     soname_spec='${libname}${release}${shared_ext}$major'
   17216     ;;
   17217   esac
   17218   # HP-UX runs *really* slowly unless shared libraries are mode 555.
   17219   postinstall_cmds='chmod 555 $lib'
   17220   ;;
   17221 
   17222 irix5* | irix6* | nonstopux*)
   17223   case $host_os in
   17224     nonstopux*) version_type=nonstopux ;;
   17225     *)
   17226 	if test "$lt_cv_prog_gnu_ld" = yes; then
   17227 		version_type=linux
   17228 	else
   17229 		version_type=irix
   17230 	fi ;;
   17231   esac
   17232   need_lib_prefix=no
   17233   need_version=no
   17234   soname_spec='${libname}${release}${shared_ext}$major'
   17235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
   17236   case $host_os in
   17237   irix5* | nonstopux*)
   17238     libsuff= shlibsuff=
   17239     ;;
   17240   *)
   17241     case $LD in # libtool.m4 will add one of these switches to LD
   17242     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
   17243       libsuff= shlibsuff= libmagic=32-bit;;
   17244     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
   17245       libsuff=32 shlibsuff=N32 libmagic=N32;;
   17246     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
   17247       libsuff=64 shlibsuff=64 libmagic=64-bit;;
   17248     *) libsuff= shlibsuff= libmagic=never-match;;
   17249     esac
   17250     ;;
   17251   esac
   17252   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
   17253   shlibpath_overrides_runpath=no
   17254   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
   17255   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
   17256   hardcode_into_libs=yes
   17257   ;;
   17258 
   17259 # No shared lib support for Linux oldld, aout, or coff.
   17260 linux*oldld* | linux*aout* | linux*coff*)
   17261   dynamic_linker=no
   17262   ;;
   17263 
   17264 # This must be Linux ELF.
   17265 linux*)
   17266   version_type=linux
   17267   need_lib_prefix=no
   17268   need_version=no
   17269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17270   soname_spec='${libname}${release}${shared_ext}$major'
   17271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   17272   shlibpath_var=LD_LIBRARY_PATH
   17273   shlibpath_overrides_runpath=no
   17274   # This implies no fast_install, which is unacceptable.
   17275   # Some rework will be needed to allow for fast_install
   17276   # before this can be enabled.
   17277   hardcode_into_libs=yes
   17278 
   17279   # We used to test for /lib/ld.so.1 and disable shared libraries on
   17280   # powerpc, because MkLinux only supported shared libraries with the
   17281   # GNU dynamic linker.  Since this was broken with cross compilers,
   17282   # most powerpc-linux boxes support dynamic linking these days and
   17283   # people can always --disable-shared, the test was removed, and we
   17284   # assume the GNU/Linux dynamic linker is in use.
   17285   dynamic_linker='GNU/Linux ld.so'
   17286   ;;
   17287 
   17288 netbsd*)
   17289   version_type=sunos
   17290   need_lib_prefix=no
   17291   need_version=no
   17292   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
   17293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17294     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   17295     dynamic_linker='NetBSD (a.out) ld.so'
   17296   else
   17297     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
   17298     soname_spec='${libname}${release}${shared_ext}$major'
   17299     dynamic_linker='NetBSD ld.elf_so'
   17300   fi
   17301   shlibpath_var=LD_LIBRARY_PATH
   17302   shlibpath_overrides_runpath=yes
   17303   hardcode_into_libs=yes
   17304   ;;
   17305 
   17306 newsos6)
   17307   version_type=linux
   17308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17309   shlibpath_var=LD_LIBRARY_PATH
   17310   shlibpath_overrides_runpath=yes
   17311   ;;
   17312 
   17313 nto-qnx*)
   17314   version_type=linux
   17315   need_lib_prefix=no
   17316   need_version=no
   17317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17318   soname_spec='${libname}${release}${shared_ext}$major'
   17319   shlibpath_var=LD_LIBRARY_PATH
   17320   shlibpath_overrides_runpath=yes
   17321   ;;
   17322 
   17323 openbsd*)
   17324   version_type=sunos
   17325   need_lib_prefix=no
   17326   need_version=no
   17327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   17329   shlibpath_var=LD_LIBRARY_PATH
   17330   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
   17331     case $host_os in
   17332       openbsd2.[89] | openbsd2.[89].*)
   17333 	shlibpath_overrides_runpath=no
   17334 	;;
   17335       *)
   17336 	shlibpath_overrides_runpath=yes
   17337 	;;
   17338       esac
   17339   else
   17340     shlibpath_overrides_runpath=yes
   17341   fi
   17342   ;;
   17343 
   17344 os2*)
   17345   libname_spec='$name'
   17346   shrext=".dll"
   17347   need_lib_prefix=no
   17348   library_names_spec='$libname${shared_ext} $libname.a'
   17349   dynamic_linker='OS/2 ld.exe'
   17350   shlibpath_var=LIBPATH
   17351   ;;
   17352 
   17353 osf3* | osf4* | osf5*)
   17354   version_type=osf
   17355   need_lib_prefix=no
   17356   need_version=no
   17357   soname_spec='${libname}${release}${shared_ext}$major'
   17358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17359   shlibpath_var=LD_LIBRARY_PATH
   17360   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
   17361   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   17362   ;;
   17363 
   17364 sco3.2v5*)
   17365   version_type=osf
   17366   soname_spec='${libname}${release}${shared_ext}$major'
   17367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17368   shlibpath_var=LD_LIBRARY_PATH
   17369   ;;
   17370 
   17371 solaris*)
   17372   version_type=linux
   17373   need_lib_prefix=no
   17374   need_version=no
   17375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17376   soname_spec='${libname}${release}${shared_ext}$major'
   17377   shlibpath_var=LD_LIBRARY_PATH
   17378   shlibpath_overrides_runpath=yes
   17379   hardcode_into_libs=yes
   17380   # ldd complains unless libraries are executable
   17381   postinstall_cmds='chmod +x $lib'
   17382   ;;
   17383 
   17384 sunos4*)
   17385   version_type=sunos
   17386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
   17387   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
   17388   shlibpath_var=LD_LIBRARY_PATH
   17389   shlibpath_overrides_runpath=yes
   17390   if test "$with_gnu_ld" = yes; then
   17391     need_lib_prefix=no
   17392   fi
   17393   need_version=yes
   17394   ;;
   17395 
   17396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   17397   version_type=linux
   17398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17399   soname_spec='${libname}${release}${shared_ext}$major'
   17400   shlibpath_var=LD_LIBRARY_PATH
   17401   case $host_vendor in
   17402     sni)
   17403       shlibpath_overrides_runpath=no
   17404       need_lib_prefix=no
   17405       export_dynamic_flag_spec='${wl}-Blargedynsym'
   17406       runpath_var=LD_RUN_PATH
   17407       ;;
   17408     siemens)
   17409       need_lib_prefix=no
   17410       ;;
   17411     motorola)
   17412       need_lib_prefix=no
   17413       need_version=no
   17414       shlibpath_overrides_runpath=no
   17415       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
   17416       ;;
   17417   esac
   17418   ;;
   17419 
   17420 sysv4*MP*)
   17421   if test -d /usr/nec ;then
   17422     version_type=linux
   17423     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
   17424     soname_spec='$libname${shared_ext}.$major'
   17425     shlibpath_var=LD_LIBRARY_PATH
   17426   fi
   17427   ;;
   17428 
   17429 uts4*)
   17430   version_type=linux
   17431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
   17432   soname_spec='${libname}${release}${shared_ext}$major'
   17433   shlibpath_var=LD_LIBRARY_PATH
   17434   ;;
   17435 
   17436 *)
   17437   dynamic_linker=no
   17438   ;;
   17439 esac
   17440 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
   17441 echo "${ECHO_T}$dynamic_linker" >&6; }
   17442 test "$dynamic_linker" = no && can_build_shared=no
   17443 
   17444 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
   17445 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
   17446 hardcode_action_GCJ=
   17447 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
   17448    test -n "$runpath_var GCJ" || \
   17449    test "X$hardcode_automatic_GCJ"="Xyes" ; then
   17450 
   17451   # We can hardcode non-existant directories.
   17452   if test "$hardcode_direct_GCJ" != no &&
   17453      # If the only mechanism to avoid hardcoding is shlibpath_var, we
   17454      # have to relink, otherwise we might link with an installed library
   17455      # when we should be linking with a yet-to-be-installed one
   17456      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
   17457      test "$hardcode_minus_L_GCJ" != no; then
   17458     # Linking always hardcodes the temporary library directory.
   17459     hardcode_action_GCJ=relink
   17460   else
   17461     # We can link without hardcoding, and we can hardcode nonexisting dirs.
   17462     hardcode_action_GCJ=immediate
   17463   fi
   17464 else
   17465   # We cannot hardcode anything, or else we can only hardcode existing
   17466   # directories.
   17467   hardcode_action_GCJ=unsupported
   17468 fi
   17469 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
   17470 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
   17471 
   17472 if test "$hardcode_action_GCJ" = relink; then
   17473   # Fast installation is not supported
   17474   enable_fast_install=no
   17475 elif test "$shlibpath_overrides_runpath" = yes ||
   17476      test "$enable_shared" = no; then
   17477   # Fast installation is not necessary
   17478   enable_fast_install=needless
   17479 fi
   17480 
   17481 striplib=
   17482 old_striplib=
   17483 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
   17484 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
   17485 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
   17486   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
   17487   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
   17488   { echo "$as_me:$LINENO: result: yes" >&5
   17489 echo "${ECHO_T}yes" >&6; }
   17490 else
   17491 # FIXME - insert some real tests, host_os isn't really good enough
   17492   case $host_os in
   17493    darwin*)
   17494        if test -n "$STRIP" ; then
   17495          striplib="$STRIP -x"
   17496          { echo "$as_me:$LINENO: result: yes" >&5
   17497 echo "${ECHO_T}yes" >&6; }
   17498        else
   17499   { echo "$as_me:$LINENO: result: no" >&5
   17500 echo "${ECHO_T}no" >&6; }
   17501 fi
   17502        ;;
   17503    *)
   17504   { echo "$as_me:$LINENO: result: no" >&5
   17505 echo "${ECHO_T}no" >&6; }
   17506     ;;
   17507   esac
   17508 fi
   17509 
   17510 if test "x$enable_dlopen" != xyes; then
   17511   enable_dlopen=unknown
   17512   enable_dlopen_self=unknown
   17513   enable_dlopen_self_static=unknown
   17514 else
   17515   lt_cv_dlopen=no
   17516   lt_cv_dlopen_libs=
   17517 
   17518   case $host_os in
   17519   beos*)
   17520     lt_cv_dlopen="load_add_on"
   17521     lt_cv_dlopen_libs=
   17522     lt_cv_dlopen_self=yes
   17523     ;;
   17524 
   17525   mingw* | pw32*)
   17526     lt_cv_dlopen="LoadLibrary"
   17527     lt_cv_dlopen_libs=
   17528    ;;
   17529 
   17530   cygwin*)
   17531     lt_cv_dlopen="dlopen"
   17532     lt_cv_dlopen_libs=
   17533    ;;
   17534 
   17535   darwin*)
   17536   # if libdl is installed we need to link against it
   17537     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   17538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   17539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   17540   echo $ECHO_N "(cached) $ECHO_C" >&6
   17541 else
   17542   ac_check_lib_save_LIBS=$LIBS
   17543 LIBS="-ldl  $LIBS"
   17544 cat >conftest.$ac_ext <<_ACEOF
   17545 /* confdefs.h.  */
   17546 _ACEOF
   17547 cat confdefs.h >>conftest.$ac_ext
   17548 cat >>conftest.$ac_ext <<_ACEOF
   17549 /* end confdefs.h.  */
   17550 
   17551 /* Override any GCC internal prototype to avoid an error.
   17552    Use char because int might match the return type of a GCC
   17553    builtin and then its argument prototype would still apply.  */
   17554 #ifdef __cplusplus
   17555 extern "C"
   17556 #endif
   17557 char dlopen ();
   17558 int
   17559 main ()
   17560 {
   17561 return dlopen ();
   17562   ;
   17563   return 0;
   17564 }
   17565 _ACEOF
   17566 rm -f conftest.$ac_objext conftest$ac_exeext
   17567 if { (ac_try="$ac_link"
   17568 case "(($ac_try" in
   17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17570   *) ac_try_echo=$ac_try;;
   17571 esac
   17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17573   (eval "$ac_link") 2>conftest.er1
   17574   ac_status=$?
   17575   grep -v '^ *+' conftest.er1 >conftest.err
   17576   rm -f conftest.er1
   17577   cat conftest.err >&5
   17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17579   (exit $ac_status); } && {
   17580 	 test -z "$ac_c_werror_flag" ||
   17581 	 test ! -s conftest.err
   17582        } && test -s conftest$ac_exeext &&
   17583        $as_test_x conftest$ac_exeext; then
   17584   ac_cv_lib_dl_dlopen=yes
   17585 else
   17586   echo "$as_me: failed program was:" >&5
   17587 sed 's/^/| /' conftest.$ac_ext >&5
   17588 
   17589 	ac_cv_lib_dl_dlopen=no
   17590 fi
   17591 
   17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17593       conftest$ac_exeext conftest.$ac_ext
   17594 LIBS=$ac_check_lib_save_LIBS
   17595 fi
   17596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   17597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   17598 if test $ac_cv_lib_dl_dlopen = yes; then
   17599   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   17600 else
   17601 
   17602     lt_cv_dlopen="dyld"
   17603     lt_cv_dlopen_libs=
   17604     lt_cv_dlopen_self=yes
   17605 
   17606 fi
   17607 
   17608    ;;
   17609 
   17610   *)
   17611     { echo "$as_me:$LINENO: checking for shl_load" >&5
   17612 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   17613 if test "${ac_cv_func_shl_load+set}" = set; then
   17614   echo $ECHO_N "(cached) $ECHO_C" >&6
   17615 else
   17616   cat >conftest.$ac_ext <<_ACEOF
   17617 /* confdefs.h.  */
   17618 _ACEOF
   17619 cat confdefs.h >>conftest.$ac_ext
   17620 cat >>conftest.$ac_ext <<_ACEOF
   17621 /* end confdefs.h.  */
   17622 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   17623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17624 #define shl_load innocuous_shl_load
   17625 
   17626 /* System header to define __stub macros and hopefully few prototypes,
   17627     which can conflict with char shl_load (); below.
   17628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17629     <limits.h> exists even on freestanding compilers.  */
   17630 
   17631 #ifdef __STDC__
   17632 # include <limits.h>
   17633 #else
   17634 # include <assert.h>
   17635 #endif
   17636 
   17637 #undef shl_load
   17638 
   17639 /* Override any GCC internal prototype to avoid an error.
   17640    Use char because int might match the return type of a GCC
   17641    builtin and then its argument prototype would still apply.  */
   17642 #ifdef __cplusplus
   17643 extern "C"
   17644 #endif
   17645 char shl_load ();
   17646 /* The GNU C library defines this for functions which it implements
   17647     to always fail with ENOSYS.  Some functions are actually named
   17648     something starting with __ and the normal name is an alias.  */
   17649 #if defined __stub_shl_load || defined __stub___shl_load
   17650 choke me
   17651 #endif
   17652 
   17653 int
   17654 main ()
   17655 {
   17656 return shl_load ();
   17657   ;
   17658   return 0;
   17659 }
   17660 _ACEOF
   17661 rm -f conftest.$ac_objext conftest$ac_exeext
   17662 if { (ac_try="$ac_link"
   17663 case "(($ac_try" in
   17664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17665   *) ac_try_echo=$ac_try;;
   17666 esac
   17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17668   (eval "$ac_link") 2>conftest.er1
   17669   ac_status=$?
   17670   grep -v '^ *+' conftest.er1 >conftest.err
   17671   rm -f conftest.er1
   17672   cat conftest.err >&5
   17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17674   (exit $ac_status); } && {
   17675 	 test -z "$ac_c_werror_flag" ||
   17676 	 test ! -s conftest.err
   17677        } && test -s conftest$ac_exeext &&
   17678        $as_test_x conftest$ac_exeext; then
   17679   ac_cv_func_shl_load=yes
   17680 else
   17681   echo "$as_me: failed program was:" >&5
   17682 sed 's/^/| /' conftest.$ac_ext >&5
   17683 
   17684 	ac_cv_func_shl_load=no
   17685 fi
   17686 
   17687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17688       conftest$ac_exeext conftest.$ac_ext
   17689 fi
   17690 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   17691 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   17692 if test $ac_cv_func_shl_load = yes; then
   17693   lt_cv_dlopen="shl_load"
   17694 else
   17695   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   17696 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   17697 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   17698   echo $ECHO_N "(cached) $ECHO_C" >&6
   17699 else
   17700   ac_check_lib_save_LIBS=$LIBS
   17701 LIBS="-ldld  $LIBS"
   17702 cat >conftest.$ac_ext <<_ACEOF
   17703 /* confdefs.h.  */
   17704 _ACEOF
   17705 cat confdefs.h >>conftest.$ac_ext
   17706 cat >>conftest.$ac_ext <<_ACEOF
   17707 /* end confdefs.h.  */
   17708 
   17709 /* Override any GCC internal prototype to avoid an error.
   17710    Use char because int might match the return type of a GCC
   17711    builtin and then its argument prototype would still apply.  */
   17712 #ifdef __cplusplus
   17713 extern "C"
   17714 #endif
   17715 char shl_load ();
   17716 int
   17717 main ()
   17718 {
   17719 return shl_load ();
   17720   ;
   17721   return 0;
   17722 }
   17723 _ACEOF
   17724 rm -f conftest.$ac_objext conftest$ac_exeext
   17725 if { (ac_try="$ac_link"
   17726 case "(($ac_try" in
   17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17728   *) ac_try_echo=$ac_try;;
   17729 esac
   17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17731   (eval "$ac_link") 2>conftest.er1
   17732   ac_status=$?
   17733   grep -v '^ *+' conftest.er1 >conftest.err
   17734   rm -f conftest.er1
   17735   cat conftest.err >&5
   17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17737   (exit $ac_status); } && {
   17738 	 test -z "$ac_c_werror_flag" ||
   17739 	 test ! -s conftest.err
   17740        } && test -s conftest$ac_exeext &&
   17741        $as_test_x conftest$ac_exeext; then
   17742   ac_cv_lib_dld_shl_load=yes
   17743 else
   17744   echo "$as_me: failed program was:" >&5
   17745 sed 's/^/| /' conftest.$ac_ext >&5
   17746 
   17747 	ac_cv_lib_dld_shl_load=no
   17748 fi
   17749 
   17750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17751       conftest$ac_exeext conftest.$ac_ext
   17752 LIBS=$ac_check_lib_save_LIBS
   17753 fi
   17754 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   17755 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   17756 if test $ac_cv_lib_dld_shl_load = yes; then
   17757   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
   17758 else
   17759   { echo "$as_me:$LINENO: checking for dlopen" >&5
   17760 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
   17761 if test "${ac_cv_func_dlopen+set}" = set; then
   17762   echo $ECHO_N "(cached) $ECHO_C" >&6
   17763 else
   17764   cat >conftest.$ac_ext <<_ACEOF
   17765 /* confdefs.h.  */
   17766 _ACEOF
   17767 cat confdefs.h >>conftest.$ac_ext
   17768 cat >>conftest.$ac_ext <<_ACEOF
   17769 /* end confdefs.h.  */
   17770 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
   17771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   17772 #define dlopen innocuous_dlopen
   17773 
   17774 /* System header to define __stub macros and hopefully few prototypes,
   17775     which can conflict with char dlopen (); below.
   17776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   17777     <limits.h> exists even on freestanding compilers.  */
   17778 
   17779 #ifdef __STDC__
   17780 # include <limits.h>
   17781 #else
   17782 # include <assert.h>
   17783 #endif
   17784 
   17785 #undef dlopen
   17786 
   17787 /* Override any GCC internal prototype to avoid an error.
   17788    Use char because int might match the return type of a GCC
   17789    builtin and then its argument prototype would still apply.  */
   17790 #ifdef __cplusplus
   17791 extern "C"
   17792 #endif
   17793 char dlopen ();
   17794 /* The GNU C library defines this for functions which it implements
   17795     to always fail with ENOSYS.  Some functions are actually named
   17796     something starting with __ and the normal name is an alias.  */
   17797 #if defined __stub_dlopen || defined __stub___dlopen
   17798 choke me
   17799 #endif
   17800 
   17801 int
   17802 main ()
   17803 {
   17804 return dlopen ();
   17805   ;
   17806   return 0;
   17807 }
   17808 _ACEOF
   17809 rm -f conftest.$ac_objext conftest$ac_exeext
   17810 if { (ac_try="$ac_link"
   17811 case "(($ac_try" in
   17812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17813   *) ac_try_echo=$ac_try;;
   17814 esac
   17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17816   (eval "$ac_link") 2>conftest.er1
   17817   ac_status=$?
   17818   grep -v '^ *+' conftest.er1 >conftest.err
   17819   rm -f conftest.er1
   17820   cat conftest.err >&5
   17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17822   (exit $ac_status); } && {
   17823 	 test -z "$ac_c_werror_flag" ||
   17824 	 test ! -s conftest.err
   17825        } && test -s conftest$ac_exeext &&
   17826        $as_test_x conftest$ac_exeext; then
   17827   ac_cv_func_dlopen=yes
   17828 else
   17829   echo "$as_me: failed program was:" >&5
   17830 sed 's/^/| /' conftest.$ac_ext >&5
   17831 
   17832 	ac_cv_func_dlopen=no
   17833 fi
   17834 
   17835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17836       conftest$ac_exeext conftest.$ac_ext
   17837 fi
   17838 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
   17839 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
   17840 if test $ac_cv_func_dlopen = yes; then
   17841   lt_cv_dlopen="dlopen"
   17842 else
   17843   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   17844 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   17845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   17846   echo $ECHO_N "(cached) $ECHO_C" >&6
   17847 else
   17848   ac_check_lib_save_LIBS=$LIBS
   17849 LIBS="-ldl  $LIBS"
   17850 cat >conftest.$ac_ext <<_ACEOF
   17851 /* confdefs.h.  */
   17852 _ACEOF
   17853 cat confdefs.h >>conftest.$ac_ext
   17854 cat >>conftest.$ac_ext <<_ACEOF
   17855 /* end confdefs.h.  */
   17856 
   17857 /* Override any GCC internal prototype to avoid an error.
   17858    Use char because int might match the return type of a GCC
   17859    builtin and then its argument prototype would still apply.  */
   17860 #ifdef __cplusplus
   17861 extern "C"
   17862 #endif
   17863 char dlopen ();
   17864 int
   17865 main ()
   17866 {
   17867 return dlopen ();
   17868   ;
   17869   return 0;
   17870 }
   17871 _ACEOF
   17872 rm -f conftest.$ac_objext conftest$ac_exeext
   17873 if { (ac_try="$ac_link"
   17874 case "(($ac_try" in
   17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17876   *) ac_try_echo=$ac_try;;
   17877 esac
   17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17879   (eval "$ac_link") 2>conftest.er1
   17880   ac_status=$?
   17881   grep -v '^ *+' conftest.er1 >conftest.err
   17882   rm -f conftest.er1
   17883   cat conftest.err >&5
   17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17885   (exit $ac_status); } && {
   17886 	 test -z "$ac_c_werror_flag" ||
   17887 	 test ! -s conftest.err
   17888        } && test -s conftest$ac_exeext &&
   17889        $as_test_x conftest$ac_exeext; then
   17890   ac_cv_lib_dl_dlopen=yes
   17891 else
   17892   echo "$as_me: failed program was:" >&5
   17893 sed 's/^/| /' conftest.$ac_ext >&5
   17894 
   17895 	ac_cv_lib_dl_dlopen=no
   17896 fi
   17897 
   17898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17899       conftest$ac_exeext conftest.$ac_ext
   17900 LIBS=$ac_check_lib_save_LIBS
   17901 fi
   17902 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   17903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   17904 if test $ac_cv_lib_dl_dlopen = yes; then
   17905   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
   17906 else
   17907   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   17908 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   17909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   17910   echo $ECHO_N "(cached) $ECHO_C" >&6
   17911 else
   17912   ac_check_lib_save_LIBS=$LIBS
   17913 LIBS="-lsvld  $LIBS"
   17914 cat >conftest.$ac_ext <<_ACEOF
   17915 /* confdefs.h.  */
   17916 _ACEOF
   17917 cat confdefs.h >>conftest.$ac_ext
   17918 cat >>conftest.$ac_ext <<_ACEOF
   17919 /* end confdefs.h.  */
   17920 
   17921 /* Override any GCC internal prototype to avoid an error.
   17922    Use char because int might match the return type of a GCC
   17923    builtin and then its argument prototype would still apply.  */
   17924 #ifdef __cplusplus
   17925 extern "C"
   17926 #endif
   17927 char dlopen ();
   17928 int
   17929 main ()
   17930 {
   17931 return dlopen ();
   17932   ;
   17933   return 0;
   17934 }
   17935 _ACEOF
   17936 rm -f conftest.$ac_objext conftest$ac_exeext
   17937 if { (ac_try="$ac_link"
   17938 case "(($ac_try" in
   17939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   17940   *) ac_try_echo=$ac_try;;
   17941 esac
   17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   17943   (eval "$ac_link") 2>conftest.er1
   17944   ac_status=$?
   17945   grep -v '^ *+' conftest.er1 >conftest.err
   17946   rm -f conftest.er1
   17947   cat conftest.err >&5
   17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   17949   (exit $ac_status); } && {
   17950 	 test -z "$ac_c_werror_flag" ||
   17951 	 test ! -s conftest.err
   17952        } && test -s conftest$ac_exeext &&
   17953        $as_test_x conftest$ac_exeext; then
   17954   ac_cv_lib_svld_dlopen=yes
   17955 else
   17956   echo "$as_me: failed program was:" >&5
   17957 sed 's/^/| /' conftest.$ac_ext >&5
   17958 
   17959 	ac_cv_lib_svld_dlopen=no
   17960 fi
   17961 
   17962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   17963       conftest$ac_exeext conftest.$ac_ext
   17964 LIBS=$ac_check_lib_save_LIBS
   17965 fi
   17966 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   17967 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   17968 if test $ac_cv_lib_svld_dlopen = yes; then
   17969   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
   17970 else
   17971   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   17972 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   17973 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   17974   echo $ECHO_N "(cached) $ECHO_C" >&6
   17975 else
   17976   ac_check_lib_save_LIBS=$LIBS
   17977 LIBS="-ldld  $LIBS"
   17978 cat >conftest.$ac_ext <<_ACEOF
   17979 /* confdefs.h.  */
   17980 _ACEOF
   17981 cat confdefs.h >>conftest.$ac_ext
   17982 cat >>conftest.$ac_ext <<_ACEOF
   17983 /* end confdefs.h.  */
   17984 
   17985 /* Override any GCC internal prototype to avoid an error.
   17986    Use char because int might match the return type of a GCC
   17987    builtin and then its argument prototype would still apply.  */
   17988 #ifdef __cplusplus
   17989 extern "C"
   17990 #endif
   17991 char dld_link ();
   17992 int
   17993 main ()
   17994 {
   17995 return dld_link ();
   17996   ;
   17997   return 0;
   17998 }
   17999 _ACEOF
   18000 rm -f conftest.$ac_objext conftest$ac_exeext
   18001 if { (ac_try="$ac_link"
   18002 case "(($ac_try" in
   18003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   18004   *) ac_try_echo=$ac_try;;
   18005 esac
   18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   18007   (eval "$ac_link") 2>conftest.er1
   18008   ac_status=$?
   18009   grep -v '^ *+' conftest.er1 >conftest.err
   18010   rm -f conftest.er1
   18011   cat conftest.err >&5
   18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18013   (exit $ac_status); } && {
   18014 	 test -z "$ac_c_werror_flag" ||
   18015 	 test ! -s conftest.err
   18016        } && test -s conftest$ac_exeext &&
   18017        $as_test_x conftest$ac_exeext; then
   18018   ac_cv_lib_dld_dld_link=yes
   18019 else
   18020   echo "$as_me: failed program was:" >&5
   18021 sed 's/^/| /' conftest.$ac_ext >&5
   18022 
   18023 	ac_cv_lib_dld_dld_link=no
   18024 fi
   18025 
   18026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   18027       conftest$ac_exeext conftest.$ac_ext
   18028 LIBS=$ac_check_lib_save_LIBS
   18029 fi
   18030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   18031 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   18032 if test $ac_cv_lib_dld_dld_link = yes; then
   18033   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
   18034 fi
   18035 
   18036 
   18037 fi
   18038 
   18039 
   18040 fi
   18041 
   18042 
   18043 fi
   18044 
   18045 
   18046 fi
   18047 
   18048 
   18049 fi
   18050 
   18051     ;;
   18052   esac
   18053 
   18054   if test "x$lt_cv_dlopen" != xno; then
   18055     enable_dlopen=yes
   18056   else
   18057     enable_dlopen=no
   18058   fi
   18059 
   18060   case $lt_cv_dlopen in
   18061   dlopen)
   18062     save_CPPFLAGS="$CPPFLAGS"
   18063     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
   18064 
   18065     save_LDFLAGS="$LDFLAGS"
   18066     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
   18067 
   18068     save_LIBS="$LIBS"
   18069     LIBS="$lt_cv_dlopen_libs $LIBS"
   18070 
   18071     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
   18072 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
   18073 if test "${lt_cv_dlopen_self+set}" = set; then
   18074   echo $ECHO_N "(cached) $ECHO_C" >&6
   18075 else
   18076   	  if test "$cross_compiling" = yes; then :
   18077   lt_cv_dlopen_self=cross
   18078 else
   18079   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   18080   lt_status=$lt_dlunknown
   18081   cat > conftest.$ac_ext <<EOF
   18082 #line 18082 "configure"
   18083 #include "confdefs.h"
   18084 
   18085 #if HAVE_DLFCN_H
   18086 #include <dlfcn.h>
   18087 #endif
   18088 
   18089 #include <stdio.h>
   18090 
   18091 #ifdef RTLD_GLOBAL
   18092 #  define LT_DLGLOBAL		RTLD_GLOBAL
   18093 #else
   18094 #  ifdef DL_GLOBAL
   18095 #    define LT_DLGLOBAL		DL_GLOBAL
   18096 #  else
   18097 #    define LT_DLGLOBAL		0
   18098 #  endif
   18099 #endif
   18100 
   18101 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   18102    find out it does not work in some platform. */
   18103 #ifndef LT_DLLAZY_OR_NOW
   18104 #  ifdef RTLD_LAZY
   18105 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   18106 #  else
   18107 #    ifdef DL_LAZY
   18108 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   18109 #    else
   18110 #      ifdef RTLD_NOW
   18111 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   18112 #      else
   18113 #        ifdef DL_NOW
   18114 #          define LT_DLLAZY_OR_NOW	DL_NOW
   18115 #        else
   18116 #          define LT_DLLAZY_OR_NOW	0
   18117 #        endif
   18118 #      endif
   18119 #    endif
   18120 #  endif
   18121 #endif
   18122 
   18123 #ifdef __cplusplus
   18124 extern "C" void exit (int);
   18125 #endif
   18126 
   18127 void fnord() { int i=42;}
   18128 int main ()
   18129 {
   18130   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   18131   int status = $lt_dlunknown;
   18132 
   18133   if (self)
   18134     {
   18135       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   18136       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   18137       /* dlclose (self); */
   18138     }
   18139 
   18140     exit (status);
   18141 }
   18142 EOF
   18143   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   18144   (eval $ac_link) 2>&5
   18145   ac_status=$?
   18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18147   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   18148     (./conftest; exit; ) 2>/dev/null
   18149     lt_status=$?
   18150     case x$lt_status in
   18151       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
   18152       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
   18153       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
   18154     esac
   18155   else :
   18156     # compilation failed
   18157     lt_cv_dlopen_self=no
   18158   fi
   18159 fi
   18160 rm -fr conftest*
   18161 
   18162 
   18163 fi
   18164 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
   18165 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
   18166 
   18167     if test "x$lt_cv_dlopen_self" = xyes; then
   18168       LDFLAGS="$LDFLAGS $link_static_flag"
   18169       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
   18170 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
   18171 if test "${lt_cv_dlopen_self_static+set}" = set; then
   18172   echo $ECHO_N "(cached) $ECHO_C" >&6
   18173 else
   18174   	  if test "$cross_compiling" = yes; then :
   18175   lt_cv_dlopen_self_static=cross
   18176 else
   18177   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   18178   lt_status=$lt_dlunknown
   18179   cat > conftest.$ac_ext <<EOF
   18180 #line 18180 "configure"
   18181 #include "confdefs.h"
   18182 
   18183 #if HAVE_DLFCN_H
   18184 #include <dlfcn.h>
   18185 #endif
   18186 
   18187 #include <stdio.h>
   18188 
   18189 #ifdef RTLD_GLOBAL
   18190 #  define LT_DLGLOBAL		RTLD_GLOBAL
   18191 #else
   18192 #  ifdef DL_GLOBAL
   18193 #    define LT_DLGLOBAL		DL_GLOBAL
   18194 #  else
   18195 #    define LT_DLGLOBAL		0
   18196 #  endif
   18197 #endif
   18198 
   18199 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   18200    find out it does not work in some platform. */
   18201 #ifndef LT_DLLAZY_OR_NOW
   18202 #  ifdef RTLD_LAZY
   18203 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   18204 #  else
   18205 #    ifdef DL_LAZY
   18206 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   18207 #    else
   18208 #      ifdef RTLD_NOW
   18209 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   18210 #      else
   18211 #        ifdef DL_NOW
   18212 #          define LT_DLLAZY_OR_NOW	DL_NOW
   18213 #        else
   18214 #          define LT_DLLAZY_OR_NOW	0
   18215 #        endif
   18216 #      endif
   18217 #    endif
   18218 #  endif
   18219 #endif
   18220 
   18221 #ifdef __cplusplus
   18222 extern "C" void exit (int);
   18223 #endif
   18224 
   18225 void fnord() { int i=42;}
   18226 int main ()
   18227 {
   18228   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   18229   int status = $lt_dlunknown;
   18230 
   18231   if (self)
   18232     {
   18233       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   18234       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   18235       /* dlclose (self); */
   18236     }
   18237 
   18238     exit (status);
   18239 }
   18240 EOF
   18241   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   18242   (eval $ac_link) 2>&5
   18243   ac_status=$?
   18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   18245   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   18246     (./conftest; exit; ) 2>/dev/null
   18247     lt_status=$?
   18248     case x$lt_status in
   18249       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
   18250       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
   18251       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
   18252     esac
   18253   else :
   18254     # compilation failed
   18255     lt_cv_dlopen_self_static=no
   18256   fi
   18257 fi
   18258 rm -fr conftest*
   18259 
   18260 
   18261 fi
   18262 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
   18263 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
   18264     fi
   18265 
   18266     CPPFLAGS="$save_CPPFLAGS"
   18267     LDFLAGS="$save_LDFLAGS"
   18268     LIBS="$save_LIBS"
   18269     ;;
   18270   esac
   18271 
   18272   case $lt_cv_dlopen_self in
   18273   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
   18274   *) enable_dlopen_self=unknown ;;
   18275   esac
   18276 
   18277   case $lt_cv_dlopen_self_static in
   18278   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
   18279   *) enable_dlopen_self_static=unknown ;;
   18280   esac
   18281 fi
   18282 
   18283 
   18284 # The else clause should only fire when bootstrapping the
   18285 # libtool distribution, otherwise you forgot to ship ltmain.sh
   18286 # with your package, and you will get complaints that there are
   18287 # no rules to generate ltmain.sh.
   18288 if test -f "$ltmain"; then
   18289   # See if we are running on zsh, and set the options which allow our commands through
   18290   # without removal of \ escapes.
   18291   if test -n "${ZSH_VERSION+set}" ; then
   18292     setopt NO_GLOB_SUBST
   18293   fi
   18294   # Now quote all the things that may contain metacharacters while being
   18295   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   18296   # variables and quote the copies for generation of the libtool script.
   18297   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   18298     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   18299     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   18300     deplibs_check_method reload_flag reload_cmds need_locks \
   18301     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   18302     lt_cv_sys_global_symbol_to_c_name_address \
   18303     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   18304     old_postinstall_cmds old_postuninstall_cmds \
   18305     compiler_GCJ \
   18306     CC_GCJ \
   18307     LD_GCJ \
   18308     lt_prog_compiler_wl_GCJ \
   18309     lt_prog_compiler_pic_GCJ \
   18310     lt_prog_compiler_static_GCJ \
   18311     lt_prog_compiler_no_builtin_flag_GCJ \
   18312     export_dynamic_flag_spec_GCJ \
   18313     thread_safe_flag_spec_GCJ \
   18314     whole_archive_flag_spec_GCJ \
   18315     enable_shared_with_static_runtimes_GCJ \
   18316     old_archive_cmds_GCJ \
   18317     old_archive_from_new_cmds_GCJ \
   18318     predep_objects_GCJ \
   18319     postdep_objects_GCJ \
   18320     predeps_GCJ \
   18321     postdeps_GCJ \
   18322     compiler_lib_search_path_GCJ \
   18323     archive_cmds_GCJ \
   18324     archive_expsym_cmds_GCJ \
   18325     postinstall_cmds_GCJ \
   18326     postuninstall_cmds_GCJ \
   18327     old_archive_from_expsyms_cmds_GCJ \
   18328     allow_undefined_flag_GCJ \
   18329     no_undefined_flag_GCJ \
   18330     export_symbols_cmds_GCJ \
   18331     hardcode_libdir_flag_spec_GCJ \
   18332     hardcode_libdir_flag_spec_ld_GCJ \
   18333     hardcode_libdir_separator_GCJ \
   18334     hardcode_automatic_GCJ \
   18335     module_cmds_GCJ \
   18336     module_expsym_cmds_GCJ \
   18337     lt_cv_prog_compiler_c_o_GCJ \
   18338     exclude_expsyms_GCJ \
   18339     include_expsyms_GCJ; do
   18340 
   18341     case $var in
   18342     old_archive_cmds_GCJ | \
   18343     old_archive_from_new_cmds_GCJ | \
   18344     archive_cmds_GCJ | \
   18345     archive_expsym_cmds_GCJ | \
   18346     module_cmds_GCJ | \
   18347     module_expsym_cmds_GCJ | \
   18348     old_archive_from_expsyms_cmds_GCJ | \
   18349     export_symbols_cmds_GCJ | \
   18350     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   18351     postinstall_cmds | postuninstall_cmds | \
   18352     old_postinstall_cmds | old_postuninstall_cmds | \
   18353     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   18354       # Double-quote double-evaled strings.
   18355       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   18356       ;;
   18357     *)
   18358       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   18359       ;;
   18360     esac
   18361   done
   18362 
   18363   case $lt_echo in
   18364   *'\$0 --fallback-echo"')
   18365     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   18366     ;;
   18367   esac
   18368 
   18369 cfgfile="$ofile"
   18370 
   18371   cat <<__EOF__ >> "$cfgfile"
   18372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
   18373 
   18374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   18375 
   18376 # Shell to use when invoking shell scripts.
   18377 SHELL=$lt_SHELL
   18378 
   18379 # Whether or not to build shared libraries.
   18380 build_libtool_libs=$enable_shared
   18381 
   18382 # Whether or not to build static libraries.
   18383 build_old_libs=$enable_static
   18384 
   18385 # Whether or not to add -lc for building shared libraries.
   18386 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
   18387 
   18388 # Whether or not to disallow shared libs when runtime libs are static
   18389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
   18390 
   18391 # Whether or not to optimize for fast installation.
   18392 fast_install=$enable_fast_install
   18393 
   18394 # The host system.
   18395 host_alias=$host_alias
   18396 host=$host
   18397 
   18398 # An echo program that does not interpret backslashes.
   18399 echo=$lt_echo
   18400 
   18401 # The archiver.
   18402 AR=$lt_AR
   18403 AR_FLAGS=$lt_AR_FLAGS
   18404 
   18405 # A C compiler.
   18406 LTCC=$lt_LTCC
   18407 
   18408 # A language-specific compiler.
   18409 CC=$lt_compiler_GCJ
   18410 
   18411 # Is the compiler the GNU C compiler?
   18412 with_gcc=$GCC_GCJ
   18413 
   18414 # An ERE matcher.
   18415 EGREP=$lt_EGREP
   18416 
   18417 # The linker used to build libraries.
   18418 LD=$lt_LD_GCJ
   18419 
   18420 # Whether we need hard or soft links.
   18421 LN_S=$lt_LN_S
   18422 
   18423 # A BSD-compatible nm program.
   18424 NM=$lt_NM
   18425 
   18426 # A symbol stripping program
   18427 STRIP="$STRIP"
   18428 
   18429 # Used to examine libraries when file_magic_cmd begins "file"
   18430 MAGIC_CMD=$MAGIC_CMD
   18431 
   18432 # Used on cygwin: DLL creation program.
   18433 DLLTOOL="$DLLTOOL"
   18434 
   18435 # Used on cygwin: object dumper.
   18436 OBJDUMP="$OBJDUMP"
   18437 
   18438 # Used on cygwin: assembler.
   18439 AS="$AS"
   18440 
   18441 # The name of the directory that contains temporary libtool files.
   18442 objdir=$objdir
   18443 
   18444 # How to create reloadable object files.
   18445 reload_flag=$lt_reload_flag
   18446 reload_cmds=$lt_reload_cmds
   18447 
   18448 # How to pass a linker flag through the compiler.
   18449 wl=$lt_lt_prog_compiler_wl_GCJ
   18450 
   18451 # Object file suffix (normally "o").
   18452 objext="$ac_objext"
   18453 
   18454 # Old archive suffix (normally "a").
   18455 libext="$libext"
   18456 
   18457 # Shared library suffix (normally ".so").
   18458 shrext='$shrext'
   18459 
   18460 # Executable file suffix (normally "").
   18461 exeext="$exeext"
   18462 
   18463 # Additional compiler flags for building library objects.
   18464 pic_flag=$lt_lt_prog_compiler_pic_GCJ
   18465 pic_mode=$pic_mode
   18466 
   18467 # What is the maximum length of a command?
   18468 max_cmd_len=$lt_cv_sys_max_cmd_len
   18469 
   18470 # Does compiler simultaneously support -c and -o options?
   18471 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
   18472 
   18473 # Must we lock files when doing compilation ?
   18474 need_locks=$lt_need_locks
   18475 
   18476 # Do we need the lib prefix for modules?
   18477 need_lib_prefix=$need_lib_prefix
   18478 
   18479 # Do we need a version for libraries?
   18480 need_version=$need_version
   18481 
   18482 # Whether dlopen is supported.
   18483 dlopen_support=$enable_dlopen
   18484 
   18485 # Whether dlopen of programs is supported.
   18486 dlopen_self=$enable_dlopen_self
   18487 
   18488 # Whether dlopen of statically linked programs is supported.
   18489 dlopen_self_static=$enable_dlopen_self_static
   18490 
   18491 # Compiler flag to prevent dynamic linking.
   18492 link_static_flag=$lt_lt_prog_compiler_static_GCJ
   18493 
   18494 # Compiler flag to turn off builtin functions.
   18495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
   18496 
   18497 # Compiler flag to allow reflexive dlopens.
   18498 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
   18499 
   18500 # Compiler flag to generate shared objects directly from archives.
   18501 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
   18502 
   18503 # Compiler flag to generate thread-safe objects.
   18504 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
   18505 
   18506 # Library versioning type.
   18507 version_type=$version_type
   18508 
   18509 # Format of library name prefix.
   18510 libname_spec=$lt_libname_spec
   18511 
   18512 # List of archive names.  First name is the real one, the rest are links.
   18513 # The last name is the one that the linker finds with -lNAME.
   18514 library_names_spec=$lt_library_names_spec
   18515 
   18516 # The coded name of the library, if different from the real name.
   18517 soname_spec=$lt_soname_spec
   18518 
   18519 # Commands used to build and install an old-style archive.
   18520 RANLIB=$lt_RANLIB
   18521 old_archive_cmds=$lt_old_archive_cmds_GCJ
   18522 old_postinstall_cmds=$lt_old_postinstall_cmds
   18523 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   18524 
   18525 # Create an old-style archive from a shared archive.
   18526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
   18527 
   18528 # Create a temporary old-style archive to link instead of a shared archive.
   18529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
   18530 
   18531 # Commands used to build and install a shared archive.
   18532 archive_cmds=$lt_archive_cmds_GCJ
   18533 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
   18534 postinstall_cmds=$lt_postinstall_cmds
   18535 postuninstall_cmds=$lt_postuninstall_cmds
   18536 
   18537 # Commands used to build a loadable module (assumed same as above if empty)
   18538 module_cmds=$lt_module_cmds_GCJ
   18539 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
   18540 
   18541 # Commands to strip libraries.
   18542 old_striplib=$lt_old_striplib
   18543 striplib=$lt_striplib
   18544 
   18545 # Dependencies to place before the objects being linked to create a
   18546 # shared library.
   18547 predep_objects=$lt_predep_objects_GCJ
   18548 
   18549 # Dependencies to place after the objects being linked to create a
   18550 # shared library.
   18551 postdep_objects=$lt_postdep_objects_GCJ
   18552 
   18553 # Dependencies to place before the objects being linked to create a
   18554 # shared library.
   18555 predeps=$lt_predeps_GCJ
   18556 
   18557 # Dependencies to place after the objects being linked to create a
   18558 # shared library.
   18559 postdeps=$lt_postdeps_GCJ
   18560 
   18561 # The library search path used internally by the compiler when linking
   18562 # a shared library.
   18563 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
   18564 
   18565 # Method to check whether dependent libraries are shared objects.
   18566 deplibs_check_method=$lt_deplibs_check_method
   18567 
   18568 # Command to use when deplibs_check_method == file_magic.
   18569 file_magic_cmd=$lt_file_magic_cmd
   18570 
   18571 # Flag that allows shared libraries with undefined symbols to be built.
   18572 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
   18573 
   18574 # Flag that forces no undefined symbols.
   18575 no_undefined_flag=$lt_no_undefined_flag_GCJ
   18576 
   18577 # Commands used to finish a libtool library installation in a directory.
   18578 finish_cmds=$lt_finish_cmds
   18579 
   18580 # Same as above, but a single script fragment to be evaled but not shown.
   18581 finish_eval=$lt_finish_eval
   18582 
   18583 # Take the output of nm and produce a listing of raw symbols and C names.
   18584 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   18585 
   18586 # Transform the output of nm in a proper C declaration
   18587 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   18588 
   18589 # Transform the output of nm in a C name address pair
   18590 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   18591 
   18592 # This is the shared library runtime path variable.
   18593 runpath_var=$runpath_var
   18594 
   18595 # This is the shared library path variable.
   18596 shlibpath_var=$shlibpath_var
   18597 
   18598 # Is shlibpath searched before the hard-coded library search path?
   18599 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   18600 
   18601 # How to hardcode a shared library path into an executable.
   18602 hardcode_action=$hardcode_action_GCJ
   18603 
   18604 # Whether we should hardcode library paths into libraries.
   18605 hardcode_into_libs=$hardcode_into_libs
   18606 
   18607 # Flag to hardcode \$libdir into a binary during linking.
   18608 # This must work even if \$libdir does not exist.
   18609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
   18610 
   18611 # If ld is used when linking, flag to hardcode \$libdir into
   18612 # a binary during linking. This must work even if \$libdir does
   18613 # not exist.
   18614 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
   18615 
   18616 # Whether we need a single -rpath flag with a separated argument.
   18617 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
   18618 
   18619 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   18620 # resulting binary.
   18621 hardcode_direct=$hardcode_direct_GCJ
   18622 
   18623 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   18624 # resulting binary.
   18625 hardcode_minus_L=$hardcode_minus_L_GCJ
   18626 
   18627 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   18628 # the resulting binary.
   18629 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
   18630 
   18631 # Set to yes if building a shared library automatically hardcodes DIR into the library
   18632 # and all subsequent libraries and executables linked against it.
   18633 hardcode_automatic=$hardcode_automatic_GCJ
   18634 
   18635 # Variables whose values should be saved in libtool wrapper scripts and
   18636 # restored at relink time.
   18637 variables_saved_for_relink="$variables_saved_for_relink"
   18638 
   18639 # Whether libtool must link a program against all its dependency libraries.
   18640 link_all_deplibs=$link_all_deplibs_GCJ
   18641 
   18642 # Compile-time system search path for libraries
   18643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   18644 
   18645 # Run-time system search path for libraries
   18646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   18647 
   18648 # Fix the shell variable \$srcfile for the compiler.
   18649 fix_srcfile_path="$fix_srcfile_path_GCJ"
   18650 
   18651 # Set to yes if exported symbols are required.
   18652 always_export_symbols=$always_export_symbols_GCJ
   18653 
   18654 # The commands to list exported symbols.
   18655 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
   18656 
   18657 # The commands to extract the exported symbol list from a shared archive.
   18658 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   18659 
   18660 # Symbols that should not be listed in the preloaded symbols.
   18661 exclude_expsyms=$lt_exclude_expsyms_GCJ
   18662 
   18663 # Symbols that must always be exported.
   18664 include_expsyms=$lt_include_expsyms_GCJ
   18665 
   18666 # ### END LIBTOOL TAG CONFIG: $tagname
   18667 
   18668 __EOF__
   18669 
   18670 
   18671 else
   18672   # If there is no Makefile yet, we rely on a make rule to execute
   18673   # `config.status --recheck' to rerun these tests and create the
   18674   # libtool script then.
   18675   test -f Makefile && make "$ltmain"
   18676 fi
   18677 
   18678 
   18679 ac_ext=c
   18680 ac_cpp='$CPP $CPPFLAGS'
   18681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   18682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   18683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   18684 
   18685 CC="$lt_save_CC"
   18686 
   18687 	else
   18688 	  tagname=""
   18689 	fi
   18690 	;;
   18691 
   18692       RC)
   18693 
   18694 
   18695 # Source file extension for RC test sources.
   18696 ac_ext=rc
   18697 
   18698 # Object file extension for compiled RC test sources.
   18699 objext=o
   18700 objext_RC=$objext
   18701 
   18702 # Code to be used in simple compile tests
   18703 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
   18704 
   18705 # Code to be used in simple link tests
   18706 lt_simple_link_test_code="$lt_simple_compile_test_code"
   18707 
   18708 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
   18709 
   18710 # If no C compiler was specified, use CC.
   18711 LTCC=${LTCC-"$CC"}
   18712 
   18713 # Allow CC to be a program name with arguments.
   18714 compiler=$CC
   18715 
   18716 
   18717 # Allow CC to be a program name with arguments.
   18718 lt_save_CC="$CC"
   18719 CC=${RC-"windres"}
   18720 compiler=$CC
   18721 compiler_RC=$CC
   18722 lt_cv_prog_compiler_c_o_RC=yes
   18723 
   18724 # The else clause should only fire when bootstrapping the
   18725 # libtool distribution, otherwise you forgot to ship ltmain.sh
   18726 # with your package, and you will get complaints that there are
   18727 # no rules to generate ltmain.sh.
   18728 if test -f "$ltmain"; then
   18729   # See if we are running on zsh, and set the options which allow our commands through
   18730   # without removal of \ escapes.
   18731   if test -n "${ZSH_VERSION+set}" ; then
   18732     setopt NO_GLOB_SUBST
   18733   fi
   18734   # Now quote all the things that may contain metacharacters while being
   18735   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   18736   # variables and quote the copies for generation of the libtool script.
   18737   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
   18738     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
   18739     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
   18740     deplibs_check_method reload_flag reload_cmds need_locks \
   18741     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
   18742     lt_cv_sys_global_symbol_to_c_name_address \
   18743     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
   18744     old_postinstall_cmds old_postuninstall_cmds \
   18745     compiler_RC \
   18746     CC_RC \
   18747     LD_RC \
   18748     lt_prog_compiler_wl_RC \
   18749     lt_prog_compiler_pic_RC \
   18750     lt_prog_compiler_static_RC \
   18751     lt_prog_compiler_no_builtin_flag_RC \
   18752     export_dynamic_flag_spec_RC \
   18753     thread_safe_flag_spec_RC \
   18754     whole_archive_flag_spec_RC \
   18755     enable_shared_with_static_runtimes_RC \
   18756     old_archive_cmds_RC \
   18757     old_archive_from_new_cmds_RC \
   18758     predep_objects_RC \
   18759     postdep_objects_RC \
   18760     predeps_RC \
   18761     postdeps_RC \
   18762     compiler_lib_search_path_RC \
   18763     archive_cmds_RC \
   18764     archive_expsym_cmds_RC \
   18765     postinstall_cmds_RC \
   18766     postuninstall_cmds_RC \
   18767     old_archive_from_expsyms_cmds_RC \
   18768     allow_undefined_flag_RC \
   18769     no_undefined_flag_RC \
   18770     export_symbols_cmds_RC \
   18771     hardcode_libdir_flag_spec_RC \
   18772     hardcode_libdir_flag_spec_ld_RC \
   18773     hardcode_libdir_separator_RC \
   18774     hardcode_automatic_RC \
   18775     module_cmds_RC \
   18776     module_expsym_cmds_RC \
   18777     lt_cv_prog_compiler_c_o_RC \
   18778     exclude_expsyms_RC \
   18779     include_expsyms_RC; do
   18780 
   18781     case $var in
   18782     old_archive_cmds_RC | \
   18783     old_archive_from_new_cmds_RC | \
   18784     archive_cmds_RC | \
   18785     archive_expsym_cmds_RC | \
   18786     module_cmds_RC | \
   18787     module_expsym_cmds_RC | \
   18788     old_archive_from_expsyms_cmds_RC | \
   18789     export_symbols_cmds_RC | \
   18790     extract_expsyms_cmds | reload_cmds | finish_cmds | \
   18791     postinstall_cmds | postuninstall_cmds | \
   18792     old_postinstall_cmds | old_postuninstall_cmds | \
   18793     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
   18794       # Double-quote double-evaled strings.
   18795       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
   18796       ;;
   18797     *)
   18798       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
   18799       ;;
   18800     esac
   18801   done
   18802 
   18803   case $lt_echo in
   18804   *'\$0 --fallback-echo"')
   18805     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
   18806     ;;
   18807   esac
   18808 
   18809 cfgfile="$ofile"
   18810 
   18811   cat <<__EOF__ >> "$cfgfile"
   18812 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
   18813 
   18814 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   18815 
   18816 # Shell to use when invoking shell scripts.
   18817 SHELL=$lt_SHELL
   18818 
   18819 # Whether or not to build shared libraries.
   18820 build_libtool_libs=$enable_shared
   18821 
   18822 # Whether or not to build static libraries.
   18823 build_old_libs=$enable_static
   18824 
   18825 # Whether or not to add -lc for building shared libraries.
   18826 build_libtool_need_lc=$archive_cmds_need_lc_RC
   18827 
   18828 # Whether or not to disallow shared libs when runtime libs are static
   18829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
   18830 
   18831 # Whether or not to optimize for fast installation.
   18832 fast_install=$enable_fast_install
   18833 
   18834 # The host system.
   18835 host_alias=$host_alias
   18836 host=$host
   18837 
   18838 # An echo program that does not interpret backslashes.
   18839 echo=$lt_echo
   18840 
   18841 # The archiver.
   18842 AR=$lt_AR
   18843 AR_FLAGS=$lt_AR_FLAGS
   18844 
   18845 # A C compiler.
   18846 LTCC=$lt_LTCC
   18847 
   18848 # A language-specific compiler.
   18849 CC=$lt_compiler_RC
   18850 
   18851 # Is the compiler the GNU C compiler?
   18852 with_gcc=$GCC_RC
   18853 
   18854 # An ERE matcher.
   18855 EGREP=$lt_EGREP
   18856 
   18857 # The linker used to build libraries.
   18858 LD=$lt_LD_RC
   18859 
   18860 # Whether we need hard or soft links.
   18861 LN_S=$lt_LN_S
   18862 
   18863 # A BSD-compatible nm program.
   18864 NM=$lt_NM
   18865 
   18866 # A symbol stripping program
   18867 STRIP="$STRIP"
   18868 
   18869 # Used to examine libraries when file_magic_cmd begins "file"
   18870 MAGIC_CMD=$MAGIC_CMD
   18871 
   18872 # Used on cygwin: DLL creation program.
   18873 DLLTOOL="$DLLTOOL"
   18874 
   18875 # Used on cygwin: object dumper.
   18876 OBJDUMP="$OBJDUMP"
   18877 
   18878 # Used on cygwin: assembler.
   18879 AS="$AS"
   18880 
   18881 # The name of the directory that contains temporary libtool files.
   18882 objdir=$objdir
   18883 
   18884 # How to create reloadable object files.
   18885 reload_flag=$lt_reload_flag
   18886 reload_cmds=$lt_reload_cmds
   18887 
   18888 # How to pass a linker flag through the compiler.
   18889 wl=$lt_lt_prog_compiler_wl_RC
   18890 
   18891 # Object file suffix (normally "o").
   18892 objext="$ac_objext"
   18893 
   18894 # Old archive suffix (normally "a").
   18895 libext="$libext"
   18896 
   18897 # Shared library suffix (normally ".so").
   18898 shrext='$shrext'
   18899 
   18900 # Executable file suffix (normally "").
   18901 exeext="$exeext"
   18902 
   18903 # Additional compiler flags for building library objects.
   18904 pic_flag=$lt_lt_prog_compiler_pic_RC
   18905 pic_mode=$pic_mode
   18906 
   18907 # What is the maximum length of a command?
   18908 max_cmd_len=$lt_cv_sys_max_cmd_len
   18909 
   18910 # Does compiler simultaneously support -c and -o options?
   18911 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
   18912 
   18913 # Must we lock files when doing compilation ?
   18914 need_locks=$lt_need_locks
   18915 
   18916 # Do we need the lib prefix for modules?
   18917 need_lib_prefix=$need_lib_prefix
   18918 
   18919 # Do we need a version for libraries?
   18920 need_version=$need_version
   18921 
   18922 # Whether dlopen is supported.
   18923 dlopen_support=$enable_dlopen
   18924 
   18925 # Whether dlopen of programs is supported.
   18926 dlopen_self=$enable_dlopen_self
   18927 
   18928 # Whether dlopen of statically linked programs is supported.
   18929 dlopen_self_static=$enable_dlopen_self_static
   18930 
   18931 # Compiler flag to prevent dynamic linking.
   18932 link_static_flag=$lt_lt_prog_compiler_static_RC
   18933 
   18934 # Compiler flag to turn off builtin functions.
   18935 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
   18936 
   18937 # Compiler flag to allow reflexive dlopens.
   18938 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
   18939 
   18940 # Compiler flag to generate shared objects directly from archives.
   18941 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
   18942 
   18943 # Compiler flag to generate thread-safe objects.
   18944 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
   18945 
   18946 # Library versioning type.
   18947 version_type=$version_type
   18948 
   18949 # Format of library name prefix.
   18950 libname_spec=$lt_libname_spec
   18951 
   18952 # List of archive names.  First name is the real one, the rest are links.
   18953 # The last name is the one that the linker finds with -lNAME.
   18954 library_names_spec=$lt_library_names_spec
   18955 
   18956 # The coded name of the library, if different from the real name.
   18957 soname_spec=$lt_soname_spec
   18958 
   18959 # Commands used to build and install an old-style archive.
   18960 RANLIB=$lt_RANLIB
   18961 old_archive_cmds=$lt_old_archive_cmds_RC
   18962 old_postinstall_cmds=$lt_old_postinstall_cmds
   18963 old_postuninstall_cmds=$lt_old_postuninstall_cmds
   18964 
   18965 # Create an old-style archive from a shared archive.
   18966 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
   18967 
   18968 # Create a temporary old-style archive to link instead of a shared archive.
   18969 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
   18970 
   18971 # Commands used to build and install a shared archive.
   18972 archive_cmds=$lt_archive_cmds_RC
   18973 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
   18974 postinstall_cmds=$lt_postinstall_cmds
   18975 postuninstall_cmds=$lt_postuninstall_cmds
   18976 
   18977 # Commands used to build a loadable module (assumed same as above if empty)
   18978 module_cmds=$lt_module_cmds_RC
   18979 module_expsym_cmds=$lt_module_expsym_cmds_RC
   18980 
   18981 # Commands to strip libraries.
   18982 old_striplib=$lt_old_striplib
   18983 striplib=$lt_striplib
   18984 
   18985 # Dependencies to place before the objects being linked to create a
   18986 # shared library.
   18987 predep_objects=$lt_predep_objects_RC
   18988 
   18989 # Dependencies to place after the objects being linked to create a
   18990 # shared library.
   18991 postdep_objects=$lt_postdep_objects_RC
   18992 
   18993 # Dependencies to place before the objects being linked to create a
   18994 # shared library.
   18995 predeps=$lt_predeps_RC
   18996 
   18997 # Dependencies to place after the objects being linked to create a
   18998 # shared library.
   18999 postdeps=$lt_postdeps_RC
   19000 
   19001 # The library search path used internally by the compiler when linking
   19002 # a shared library.
   19003 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
   19004 
   19005 # Method to check whether dependent libraries are shared objects.
   19006 deplibs_check_method=$lt_deplibs_check_method
   19007 
   19008 # Command to use when deplibs_check_method == file_magic.
   19009 file_magic_cmd=$lt_file_magic_cmd
   19010 
   19011 # Flag that allows shared libraries with undefined symbols to be built.
   19012 allow_undefined_flag=$lt_allow_undefined_flag_RC
   19013 
   19014 # Flag that forces no undefined symbols.
   19015 no_undefined_flag=$lt_no_undefined_flag_RC
   19016 
   19017 # Commands used to finish a libtool library installation in a directory.
   19018 finish_cmds=$lt_finish_cmds
   19019 
   19020 # Same as above, but a single script fragment to be evaled but not shown.
   19021 finish_eval=$lt_finish_eval
   19022 
   19023 # Take the output of nm and produce a listing of raw symbols and C names.
   19024 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
   19025 
   19026 # Transform the output of nm in a proper C declaration
   19027 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
   19028 
   19029 # Transform the output of nm in a C name address pair
   19030 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
   19031 
   19032 # This is the shared library runtime path variable.
   19033 runpath_var=$runpath_var
   19034 
   19035 # This is the shared library path variable.
   19036 shlibpath_var=$shlibpath_var
   19037 
   19038 # Is shlibpath searched before the hard-coded library search path?
   19039 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
   19040 
   19041 # How to hardcode a shared library path into an executable.
   19042 hardcode_action=$hardcode_action_RC
   19043 
   19044 # Whether we should hardcode library paths into libraries.
   19045 hardcode_into_libs=$hardcode_into_libs
   19046 
   19047 # Flag to hardcode \$libdir into a binary during linking.
   19048 # This must work even if \$libdir does not exist.
   19049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
   19050 
   19051 # If ld is used when linking, flag to hardcode \$libdir into
   19052 # a binary during linking. This must work even if \$libdir does
   19053 # not exist.
   19054 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
   19055 
   19056 # Whether we need a single -rpath flag with a separated argument.
   19057 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
   19058 
   19059 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
   19060 # resulting binary.
   19061 hardcode_direct=$hardcode_direct_RC
   19062 
   19063 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
   19064 # resulting binary.
   19065 hardcode_minus_L=$hardcode_minus_L_RC
   19066 
   19067 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
   19068 # the resulting binary.
   19069 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
   19070 
   19071 # Set to yes if building a shared library automatically hardcodes DIR into the library
   19072 # and all subsequent libraries and executables linked against it.
   19073 hardcode_automatic=$hardcode_automatic_RC
   19074 
   19075 # Variables whose values should be saved in libtool wrapper scripts and
   19076 # restored at relink time.
   19077 variables_saved_for_relink="$variables_saved_for_relink"
   19078 
   19079 # Whether libtool must link a program against all its dependency libraries.
   19080 link_all_deplibs=$link_all_deplibs_RC
   19081 
   19082 # Compile-time system search path for libraries
   19083 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
   19084 
   19085 # Run-time system search path for libraries
   19086 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
   19087 
   19088 # Fix the shell variable \$srcfile for the compiler.
   19089 fix_srcfile_path="$fix_srcfile_path_RC"
   19090 
   19091 # Set to yes if exported symbols are required.
   19092 always_export_symbols=$always_export_symbols_RC
   19093 
   19094 # The commands to list exported symbols.
   19095 export_symbols_cmds=$lt_export_symbols_cmds_RC
   19096 
   19097 # The commands to extract the exported symbol list from a shared archive.
   19098 extract_expsyms_cmds=$lt_extract_expsyms_cmds
   19099 
   19100 # Symbols that should not be listed in the preloaded symbols.
   19101 exclude_expsyms=$lt_exclude_expsyms_RC
   19102 
   19103 # Symbols that must always be exported.
   19104 include_expsyms=$lt_include_expsyms_RC
   19105 
   19106 # ### END LIBTOOL TAG CONFIG: $tagname
   19107 
   19108 __EOF__
   19109 
   19110 
   19111 else
   19112   # If there is no Makefile yet, we rely on a make rule to execute
   19113   # `config.status --recheck' to rerun these tests and create the
   19114   # libtool script then.
   19115   test -f Makefile && make "$ltmain"
   19116 fi
   19117 
   19118 
   19119 ac_ext=c
   19120 ac_cpp='$CPP $CPPFLAGS'
   19121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19124 
   19125 CC="$lt_save_CC"
   19126 
   19127 	;;
   19128 
   19129       *)
   19130 	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
   19131 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
   19132    { (exit 1); exit 1; }; }
   19133 	;;
   19134       esac
   19135 
   19136       # Append the new tag name to the list of available tags.
   19137       if test -n "$tagname" ; then
   19138       available_tags="$available_tags $tagname"
   19139     fi
   19140     fi
   19141   done
   19142   IFS="$lt_save_ifs"
   19143 
   19144   # Now substitute the updated list of available tags.
   19145   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
   19146     mv "${ofile}T" "$ofile"
   19147     chmod +x "$ofile"
   19148   else
   19149     rm -f "${ofile}T"
   19150     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
   19151 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
   19152    { (exit 1); exit 1; }; }
   19153   fi
   19154 fi
   19155 
   19156 
   19157 
   19158 # This can be used to rebuild libtool when needed
   19159 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
   19160 
   19161 # Always use our own libtool.
   19162 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   19163 
   19164 # Prevent multiple expansion
   19165 
   19166 
   19167 
   19168 
   19169 
   19170 
   19171 
   19172 
   19173 
   19174 
   19175 
   19176 
   19177 
   19178 
   19179 
   19180 
   19181 
   19182 
   19183 
   19184 
   19185 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
   19186 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
   19187 if test "${ac_cv_c_const+set}" = set; then
   19188   echo $ECHO_N "(cached) $ECHO_C" >&6
   19189 else
   19190   cat >conftest.$ac_ext <<_ACEOF
   19191 /* confdefs.h.  */
   19192 _ACEOF
   19193 cat confdefs.h >>conftest.$ac_ext
   19194 cat >>conftest.$ac_ext <<_ACEOF
   19195 /* end confdefs.h.  */
   19196 
   19197 int
   19198 main ()
   19199 {
   19200 /* FIXME: Include the comments suggested by Paul. */
   19201 #ifndef __cplusplus
   19202   /* Ultrix mips cc rejects this.  */
   19203   typedef int charset[2];
   19204   const charset cs;
   19205   /* SunOS 4.1.1 cc rejects this.  */
   19206   char const *const *pcpcc;
   19207   char **ppc;
   19208   /* NEC SVR4.0.2 mips cc rejects this.  */
   19209   struct point {int x, y;};
   19210   static struct point const zero = {0,0};
   19211   /* AIX XL C 1.02.0.0 rejects this.
   19212      It does not let you subtract one const X* pointer from another in
   19213      an arm of an if-expression whose if-part is not a constant
   19214      expression */
   19215   const char *g = "string";
   19216   pcpcc = &g + (g ? g-g : 0);
   19217   /* HPUX 7.0 cc rejects these. */
   19218   ++pcpcc;
   19219   ppc = (char**) pcpcc;
   19220   pcpcc = (char const *const *) ppc;
   19221   { /* SCO 3.2v4 cc rejects this.  */
   19222     char *t;
   19223     char const *s = 0 ? (char *) 0 : (char const *) 0;
   19224 
   19225     *t++ = 0;
   19226     if (s) return 0;
   19227   }
   19228   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   19229     int x[] = {25, 17};
   19230     const int *foo = &x[0];
   19231     ++foo;
   19232   }
   19233   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   19234     typedef const int *iptr;
   19235     iptr p = 0;
   19236     ++p;
   19237   }
   19238   { /* AIX XL C 1.02.0.0 rejects this saying
   19239        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   19240     struct s { int j; const int *ap[3]; };
   19241     struct s *b; b->j = 5;
   19242   }
   19243   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   19244     const int foo = 10;
   19245     if (!foo) return 0;
   19246   }
   19247   return !cs[0] && !zero.x;
   19248 #endif
   19249 
   19250   ;
   19251   return 0;
   19252 }
   19253 _ACEOF
   19254 rm -f conftest.$ac_objext
   19255 if { (ac_try="$ac_compile"
   19256 case "(($ac_try" in
   19257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19258   *) ac_try_echo=$ac_try;;
   19259 esac
   19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19261   (eval "$ac_compile") 2>conftest.er1
   19262   ac_status=$?
   19263   grep -v '^ *+' conftest.er1 >conftest.err
   19264   rm -f conftest.er1
   19265   cat conftest.err >&5
   19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19267   (exit $ac_status); } && {
   19268 	 test -z "$ac_c_werror_flag" ||
   19269 	 test ! -s conftest.err
   19270        } && test -s conftest.$ac_objext; then
   19271   ac_cv_c_const=yes
   19272 else
   19273   echo "$as_me: failed program was:" >&5
   19274 sed 's/^/| /' conftest.$ac_ext >&5
   19275 
   19276 	ac_cv_c_const=no
   19277 fi
   19278 
   19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19280 fi
   19281 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
   19282 echo "${ECHO_T}$ac_cv_c_const" >&6; }
   19283 if test $ac_cv_c_const = no; then
   19284 
   19285 cat >>confdefs.h <<\_ACEOF
   19286 #define const
   19287 _ACEOF
   19288 
   19289 fi
   19290 
   19291 
   19292 
   19293 
   19294 
   19295 
   19296 ac_header_dirent=no
   19297 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
   19298   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
   19299 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
   19300 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
   19301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   19302   echo $ECHO_N "(cached) $ECHO_C" >&6
   19303 else
   19304   cat >conftest.$ac_ext <<_ACEOF
   19305 /* confdefs.h.  */
   19306 _ACEOF
   19307 cat confdefs.h >>conftest.$ac_ext
   19308 cat >>conftest.$ac_ext <<_ACEOF
   19309 /* end confdefs.h.  */
   19310 #include <sys/types.h>
   19311 #include <$ac_hdr>
   19312 
   19313 int
   19314 main ()
   19315 {
   19316 if ((DIR *) 0)
   19317 return 0;
   19318   ;
   19319   return 0;
   19320 }
   19321 _ACEOF
   19322 rm -f conftest.$ac_objext
   19323 if { (ac_try="$ac_compile"
   19324 case "(($ac_try" in
   19325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19326   *) ac_try_echo=$ac_try;;
   19327 esac
   19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19329   (eval "$ac_compile") 2>conftest.er1
   19330   ac_status=$?
   19331   grep -v '^ *+' conftest.er1 >conftest.err
   19332   rm -f conftest.er1
   19333   cat conftest.err >&5
   19334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19335   (exit $ac_status); } && {
   19336 	 test -z "$ac_c_werror_flag" ||
   19337 	 test ! -s conftest.err
   19338        } && test -s conftest.$ac_objext; then
   19339   eval "$as_ac_Header=yes"
   19340 else
   19341   echo "$as_me: failed program was:" >&5
   19342 sed 's/^/| /' conftest.$ac_ext >&5
   19343 
   19344 	eval "$as_ac_Header=no"
   19345 fi
   19346 
   19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   19348 fi
   19349 ac_res=`eval echo '${'$as_ac_Header'}'`
   19350 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   19351 echo "${ECHO_T}$ac_res" >&6; }
   19352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   19353   cat >>confdefs.h <<_ACEOF
   19354 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
   19355 _ACEOF
   19356 
   19357 ac_header_dirent=$ac_hdr; break
   19358 fi
   19359 
   19360 done
   19361 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
   19362 if test $ac_header_dirent = dirent.h; then
   19363   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   19364 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   19365 if test "${ac_cv_search_opendir+set}" = set; then
   19366   echo $ECHO_N "(cached) $ECHO_C" >&6
   19367 else
   19368   ac_func_search_save_LIBS=$LIBS
   19369 cat >conftest.$ac_ext <<_ACEOF
   19370 /* confdefs.h.  */
   19371 _ACEOF
   19372 cat confdefs.h >>conftest.$ac_ext
   19373 cat >>conftest.$ac_ext <<_ACEOF
   19374 /* end confdefs.h.  */
   19375 
   19376 /* Override any GCC internal prototype to avoid an error.
   19377    Use char because int might match the return type of a GCC
   19378    builtin and then its argument prototype would still apply.  */
   19379 #ifdef __cplusplus
   19380 extern "C"
   19381 #endif
   19382 char opendir ();
   19383 int
   19384 main ()
   19385 {
   19386 return opendir ();
   19387   ;
   19388   return 0;
   19389 }
   19390 _ACEOF
   19391 for ac_lib in '' dir; do
   19392   if test -z "$ac_lib"; then
   19393     ac_res="none required"
   19394   else
   19395     ac_res=-l$ac_lib
   19396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19397   fi
   19398   rm -f conftest.$ac_objext conftest$ac_exeext
   19399 if { (ac_try="$ac_link"
   19400 case "(($ac_try" in
   19401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19402   *) ac_try_echo=$ac_try;;
   19403 esac
   19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19405   (eval "$ac_link") 2>conftest.er1
   19406   ac_status=$?
   19407   grep -v '^ *+' conftest.er1 >conftest.err
   19408   rm -f conftest.er1
   19409   cat conftest.err >&5
   19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19411   (exit $ac_status); } && {
   19412 	 test -z "$ac_c_werror_flag" ||
   19413 	 test ! -s conftest.err
   19414        } && test -s conftest$ac_exeext &&
   19415        $as_test_x conftest$ac_exeext; then
   19416   ac_cv_search_opendir=$ac_res
   19417 else
   19418   echo "$as_me: failed program was:" >&5
   19419 sed 's/^/| /' conftest.$ac_ext >&5
   19420 
   19421 
   19422 fi
   19423 
   19424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19425       conftest$ac_exeext
   19426   if test "${ac_cv_search_opendir+set}" = set; then
   19427   break
   19428 fi
   19429 done
   19430 if test "${ac_cv_search_opendir+set}" = set; then
   19431   :
   19432 else
   19433   ac_cv_search_opendir=no
   19434 fi
   19435 rm conftest.$ac_ext
   19436 LIBS=$ac_func_search_save_LIBS
   19437 fi
   19438 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   19439 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   19440 ac_res=$ac_cv_search_opendir
   19441 if test "$ac_res" != no; then
   19442   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19443 
   19444 fi
   19445 
   19446 else
   19447   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
   19448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
   19449 if test "${ac_cv_search_opendir+set}" = set; then
   19450   echo $ECHO_N "(cached) $ECHO_C" >&6
   19451 else
   19452   ac_func_search_save_LIBS=$LIBS
   19453 cat >conftest.$ac_ext <<_ACEOF
   19454 /* confdefs.h.  */
   19455 _ACEOF
   19456 cat confdefs.h >>conftest.$ac_ext
   19457 cat >>conftest.$ac_ext <<_ACEOF
   19458 /* end confdefs.h.  */
   19459 
   19460 /* Override any GCC internal prototype to avoid an error.
   19461    Use char because int might match the return type of a GCC
   19462    builtin and then its argument prototype would still apply.  */
   19463 #ifdef __cplusplus
   19464 extern "C"
   19465 #endif
   19466 char opendir ();
   19467 int
   19468 main ()
   19469 {
   19470 return opendir ();
   19471   ;
   19472   return 0;
   19473 }
   19474 _ACEOF
   19475 for ac_lib in '' x; do
   19476   if test -z "$ac_lib"; then
   19477     ac_res="none required"
   19478   else
   19479     ac_res=-l$ac_lib
   19480     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   19481   fi
   19482   rm -f conftest.$ac_objext conftest$ac_exeext
   19483 if { (ac_try="$ac_link"
   19484 case "(($ac_try" in
   19485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19486   *) ac_try_echo=$ac_try;;
   19487 esac
   19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19489   (eval "$ac_link") 2>conftest.er1
   19490   ac_status=$?
   19491   grep -v '^ *+' conftest.er1 >conftest.err
   19492   rm -f conftest.er1
   19493   cat conftest.err >&5
   19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19495   (exit $ac_status); } && {
   19496 	 test -z "$ac_c_werror_flag" ||
   19497 	 test ! -s conftest.err
   19498        } && test -s conftest$ac_exeext &&
   19499        $as_test_x conftest$ac_exeext; then
   19500   ac_cv_search_opendir=$ac_res
   19501 else
   19502   echo "$as_me: failed program was:" >&5
   19503 sed 's/^/| /' conftest.$ac_ext >&5
   19504 
   19505 
   19506 fi
   19507 
   19508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19509       conftest$ac_exeext
   19510   if test "${ac_cv_search_opendir+set}" = set; then
   19511   break
   19512 fi
   19513 done
   19514 if test "${ac_cv_search_opendir+set}" = set; then
   19515   :
   19516 else
   19517   ac_cv_search_opendir=no
   19518 fi
   19519 rm conftest.$ac_ext
   19520 LIBS=$ac_func_search_save_LIBS
   19521 fi
   19522 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
   19523 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
   19524 ac_res=$ac_cv_search_opendir
   19525 if test "$ac_res" != no; then
   19526   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   19527 
   19528 fi
   19529 
   19530 fi
   19531 
   19532 # Check whether --enable-ltdl-install was given.
   19533 if test "${enable_ltdl_install+set}" = set; then
   19534   enableval=$enable_ltdl_install;
   19535 fi
   19536 
   19537 
   19538 if test x"${enable_ltdl_install-no}" != xno; then
   19539   cat >>confdefs.h <<\_ACEOF
   19540 #define INSTALL_LTDL 1
   19541 _ACEOF
   19542 
   19543 fi
   19544 if test x"${enable_ltdl_convenience-no}" != xno; then
   19545   cat >>confdefs.h <<\_ACEOF
   19546 #define CONVENIENCE_LTDL 1
   19547 _ACEOF
   19548 
   19549 fi
   19550 
   19551 
   19552 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
   19553 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
   19554 if test "${libltdl_cv_shlibext+set}" = set; then
   19555   echo $ECHO_N "(cached) $ECHO_C" >&6
   19556 else
   19557 
   19558 module=yes
   19559 eval libltdl_cv_shlibext=$shrext
   19560 
   19561 fi
   19562 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
   19563 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
   19564 if test -n "$libltdl_cv_shlibext"; then
   19565 
   19566 cat >>confdefs.h <<_ACEOF
   19567 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
   19568 _ACEOF
   19569 
   19570 fi
   19571 
   19572 
   19573 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
   19574 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
   19575 if test "${libltdl_cv_shlibpath_var+set}" = set; then
   19576   echo $ECHO_N "(cached) $ECHO_C" >&6
   19577 else
   19578   libltdl_cv_shlibpath_var="$shlibpath_var"
   19579 fi
   19580 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
   19581 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
   19582 if test -n "$libltdl_cv_shlibpath_var"; then
   19583 
   19584 cat >>confdefs.h <<_ACEOF
   19585 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
   19586 _ACEOF
   19587 
   19588 fi
   19589 
   19590 
   19591 { echo "$as_me:$LINENO: checking for the default library search path" >&5
   19592 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
   19593 if test "${libltdl_cv_sys_search_path+set}" = set; then
   19594   echo $ECHO_N "(cached) $ECHO_C" >&6
   19595 else
   19596   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
   19597 fi
   19598 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
   19599 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
   19600 if test -n "$libltdl_cv_sys_search_path"; then
   19601   sys_search_path=
   19602   for dir in $libltdl_cv_sys_search_path; do
   19603     if test -z "$sys_search_path"; then
   19604       sys_search_path="$dir"
   19605     else
   19606       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
   19607     fi
   19608   done
   19609 
   19610 cat >>confdefs.h <<_ACEOF
   19611 #define LTDL_SYSSEARCHPATH "$sys_search_path"
   19612 _ACEOF
   19613 
   19614 fi
   19615 
   19616 { echo "$as_me:$LINENO: checking for objdir" >&5
   19617 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
   19618 if test "${libltdl_cv_objdir+set}" = set; then
   19619   echo $ECHO_N "(cached) $ECHO_C" >&6
   19620 else
   19621   libltdl_cv_objdir="$objdir"
   19622   if test -n "$objdir"; then
   19623     :
   19624   else
   19625     rm -f .libs 2>/dev/null
   19626     mkdir .libs 2>/dev/null
   19627     if test -d .libs; then
   19628       libltdl_cv_objdir=.libs
   19629     else
   19630       # MS-DOS does not allow filenames that begin with a dot.
   19631       libltdl_cv_objdir=_libs
   19632     fi
   19633   rmdir .libs 2>/dev/null
   19634   fi
   19635 
   19636 fi
   19637 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
   19638 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
   19639 
   19640 cat >>confdefs.h <<_ACEOF
   19641 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
   19642 _ACEOF
   19643 
   19644 
   19645 
   19646 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
   19647 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
   19648 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
   19649   echo $ECHO_N "(cached) $ECHO_C" >&6
   19650 else
   19651   if test -n "$lt_cv_sys_global_symbol_pipe"; then
   19652     libltdl_cv_preloaded_symbols=yes
   19653   else
   19654     libltdl_cv_preloaded_symbols=no
   19655   fi
   19656 
   19657 fi
   19658 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
   19659 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
   19660 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
   19661 
   19662 cat >>confdefs.h <<\_ACEOF
   19663 #define HAVE_PRELOADED_SYMBOLS 1
   19664 _ACEOF
   19665 
   19666 fi
   19667 
   19668 LIBADD_DL=
   19669 
   19670 ac_ext=c
   19671 ac_cpp='$CPP $CPPFLAGS'
   19672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   19673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   19674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   19675 
   19676 
   19677 { echo "$as_me:$LINENO: checking for shl_load" >&5
   19678 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
   19679 if test "${ac_cv_func_shl_load+set}" = set; then
   19680   echo $ECHO_N "(cached) $ECHO_C" >&6
   19681 else
   19682   cat >conftest.$ac_ext <<_ACEOF
   19683 /* confdefs.h.  */
   19684 _ACEOF
   19685 cat confdefs.h >>conftest.$ac_ext
   19686 cat >>conftest.$ac_ext <<_ACEOF
   19687 /* end confdefs.h.  */
   19688 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
   19689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   19690 #define shl_load innocuous_shl_load
   19691 
   19692 /* System header to define __stub macros and hopefully few prototypes,
   19693     which can conflict with char shl_load (); below.
   19694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   19695     <limits.h> exists even on freestanding compilers.  */
   19696 
   19697 #ifdef __STDC__
   19698 # include <limits.h>
   19699 #else
   19700 # include <assert.h>
   19701 #endif
   19702 
   19703 #undef shl_load
   19704 
   19705 /* Override any GCC internal prototype to avoid an error.
   19706    Use char because int might match the return type of a GCC
   19707    builtin and then its argument prototype would still apply.  */
   19708 #ifdef __cplusplus
   19709 extern "C"
   19710 #endif
   19711 char shl_load ();
   19712 /* The GNU C library defines this for functions which it implements
   19713     to always fail with ENOSYS.  Some functions are actually named
   19714     something starting with __ and the normal name is an alias.  */
   19715 #if defined __stub_shl_load || defined __stub___shl_load
   19716 choke me
   19717 #endif
   19718 
   19719 int
   19720 main ()
   19721 {
   19722 return shl_load ();
   19723   ;
   19724   return 0;
   19725 }
   19726 _ACEOF
   19727 rm -f conftest.$ac_objext conftest$ac_exeext
   19728 if { (ac_try="$ac_link"
   19729 case "(($ac_try" in
   19730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19731   *) ac_try_echo=$ac_try;;
   19732 esac
   19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19734   (eval "$ac_link") 2>conftest.er1
   19735   ac_status=$?
   19736   grep -v '^ *+' conftest.er1 >conftest.err
   19737   rm -f conftest.er1
   19738   cat conftest.err >&5
   19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19740   (exit $ac_status); } && {
   19741 	 test -z "$ac_c_werror_flag" ||
   19742 	 test ! -s conftest.err
   19743        } && test -s conftest$ac_exeext &&
   19744        $as_test_x conftest$ac_exeext; then
   19745   ac_cv_func_shl_load=yes
   19746 else
   19747   echo "$as_me: failed program was:" >&5
   19748 sed 's/^/| /' conftest.$ac_ext >&5
   19749 
   19750 	ac_cv_func_shl_load=no
   19751 fi
   19752 
   19753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19754       conftest$ac_exeext conftest.$ac_ext
   19755 fi
   19756 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
   19757 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
   19758 if test $ac_cv_func_shl_load = yes; then
   19759 
   19760 cat >>confdefs.h <<\_ACEOF
   19761 #define HAVE_SHL_LOAD 1
   19762 _ACEOF
   19763 
   19764 else
   19765   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
   19766 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
   19767 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
   19768   echo $ECHO_N "(cached) $ECHO_C" >&6
   19769 else
   19770   ac_check_lib_save_LIBS=$LIBS
   19771 LIBS="-ldld  $LIBS"
   19772 cat >conftest.$ac_ext <<_ACEOF
   19773 /* confdefs.h.  */
   19774 _ACEOF
   19775 cat confdefs.h >>conftest.$ac_ext
   19776 cat >>conftest.$ac_ext <<_ACEOF
   19777 /* end confdefs.h.  */
   19778 
   19779 /* Override any GCC internal prototype to avoid an error.
   19780    Use char because int might match the return type of a GCC
   19781    builtin and then its argument prototype would still apply.  */
   19782 #ifdef __cplusplus
   19783 extern "C"
   19784 #endif
   19785 char shl_load ();
   19786 int
   19787 main ()
   19788 {
   19789 return shl_load ();
   19790   ;
   19791   return 0;
   19792 }
   19793 _ACEOF
   19794 rm -f conftest.$ac_objext conftest$ac_exeext
   19795 if { (ac_try="$ac_link"
   19796 case "(($ac_try" in
   19797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19798   *) ac_try_echo=$ac_try;;
   19799 esac
   19800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19801   (eval "$ac_link") 2>conftest.er1
   19802   ac_status=$?
   19803   grep -v '^ *+' conftest.er1 >conftest.err
   19804   rm -f conftest.er1
   19805   cat conftest.err >&5
   19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19807   (exit $ac_status); } && {
   19808 	 test -z "$ac_c_werror_flag" ||
   19809 	 test ! -s conftest.err
   19810        } && test -s conftest$ac_exeext &&
   19811        $as_test_x conftest$ac_exeext; then
   19812   ac_cv_lib_dld_shl_load=yes
   19813 else
   19814   echo "$as_me: failed program was:" >&5
   19815 sed 's/^/| /' conftest.$ac_ext >&5
   19816 
   19817 	ac_cv_lib_dld_shl_load=no
   19818 fi
   19819 
   19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19821       conftest$ac_exeext conftest.$ac_ext
   19822 LIBS=$ac_check_lib_save_LIBS
   19823 fi
   19824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
   19825 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
   19826 if test $ac_cv_lib_dld_shl_load = yes; then
   19827 
   19828 cat >>confdefs.h <<\_ACEOF
   19829 #define HAVE_SHL_LOAD 1
   19830 _ACEOF
   19831 
   19832 	LIBADD_DL="$LIBADD_DL -ldld"
   19833 else
   19834   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
   19835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
   19836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
   19837   echo $ECHO_N "(cached) $ECHO_C" >&6
   19838 else
   19839   ac_check_lib_save_LIBS=$LIBS
   19840 LIBS="-ldl  $LIBS"
   19841 cat >conftest.$ac_ext <<_ACEOF
   19842 /* confdefs.h.  */
   19843 _ACEOF
   19844 cat confdefs.h >>conftest.$ac_ext
   19845 cat >>conftest.$ac_ext <<_ACEOF
   19846 /* end confdefs.h.  */
   19847 
   19848 /* Override any GCC internal prototype to avoid an error.
   19849    Use char because int might match the return type of a GCC
   19850    builtin and then its argument prototype would still apply.  */
   19851 #ifdef __cplusplus
   19852 extern "C"
   19853 #endif
   19854 char dlopen ();
   19855 int
   19856 main ()
   19857 {
   19858 return dlopen ();
   19859   ;
   19860   return 0;
   19861 }
   19862 _ACEOF
   19863 rm -f conftest.$ac_objext conftest$ac_exeext
   19864 if { (ac_try="$ac_link"
   19865 case "(($ac_try" in
   19866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19867   *) ac_try_echo=$ac_try;;
   19868 esac
   19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19870   (eval "$ac_link") 2>conftest.er1
   19871   ac_status=$?
   19872   grep -v '^ *+' conftest.er1 >conftest.err
   19873   rm -f conftest.er1
   19874   cat conftest.err >&5
   19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19876   (exit $ac_status); } && {
   19877 	 test -z "$ac_c_werror_flag" ||
   19878 	 test ! -s conftest.err
   19879        } && test -s conftest$ac_exeext &&
   19880        $as_test_x conftest$ac_exeext; then
   19881   ac_cv_lib_dl_dlopen=yes
   19882 else
   19883   echo "$as_me: failed program was:" >&5
   19884 sed 's/^/| /' conftest.$ac_ext >&5
   19885 
   19886 	ac_cv_lib_dl_dlopen=no
   19887 fi
   19888 
   19889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   19890       conftest$ac_exeext conftest.$ac_ext
   19891 LIBS=$ac_check_lib_save_LIBS
   19892 fi
   19893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
   19894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
   19895 if test $ac_cv_lib_dl_dlopen = yes; then
   19896 
   19897 cat >>confdefs.h <<\_ACEOF
   19898 #define HAVE_LIBDL 1
   19899 _ACEOF
   19900 
   19901 	        LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
   19902 else
   19903   cat >conftest.$ac_ext <<_ACEOF
   19904 /* confdefs.h.  */
   19905 _ACEOF
   19906 cat confdefs.h >>conftest.$ac_ext
   19907 cat >>conftest.$ac_ext <<_ACEOF
   19908 /* end confdefs.h.  */
   19909 #if HAVE_DLFCN_H
   19910 #  include <dlfcn.h>
   19911 #endif
   19912 
   19913 int
   19914 main ()
   19915 {
   19916 dlopen(0, 0);
   19917   ;
   19918   return 0;
   19919 }
   19920 _ACEOF
   19921 rm -f conftest.$ac_objext conftest$ac_exeext
   19922 if { (ac_try="$ac_link"
   19923 case "(($ac_try" in
   19924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19925   *) ac_try_echo=$ac_try;;
   19926 esac
   19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19928   (eval "$ac_link") 2>conftest.er1
   19929   ac_status=$?
   19930   grep -v '^ *+' conftest.er1 >conftest.err
   19931   rm -f conftest.er1
   19932   cat conftest.err >&5
   19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19934   (exit $ac_status); } && {
   19935 	 test -z "$ac_c_werror_flag" ||
   19936 	 test ! -s conftest.err
   19937        } && test -s conftest$ac_exeext &&
   19938        $as_test_x conftest$ac_exeext; then
   19939 
   19940 cat >>confdefs.h <<\_ACEOF
   19941 #define HAVE_LIBDL 1
   19942 _ACEOF
   19943  libltdl_cv_func_dlopen="yes"
   19944 else
   19945   echo "$as_me: failed program was:" >&5
   19946 sed 's/^/| /' conftest.$ac_ext >&5
   19947 
   19948 	{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
   19949 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
   19950 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
   19951   echo $ECHO_N "(cached) $ECHO_C" >&6
   19952 else
   19953   ac_check_lib_save_LIBS=$LIBS
   19954 LIBS="-lsvld  $LIBS"
   19955 cat >conftest.$ac_ext <<_ACEOF
   19956 /* confdefs.h.  */
   19957 _ACEOF
   19958 cat confdefs.h >>conftest.$ac_ext
   19959 cat >>conftest.$ac_ext <<_ACEOF
   19960 /* end confdefs.h.  */
   19961 
   19962 /* Override any GCC internal prototype to avoid an error.
   19963    Use char because int might match the return type of a GCC
   19964    builtin and then its argument prototype would still apply.  */
   19965 #ifdef __cplusplus
   19966 extern "C"
   19967 #endif
   19968 char dlopen ();
   19969 int
   19970 main ()
   19971 {
   19972 return dlopen ();
   19973   ;
   19974   return 0;
   19975 }
   19976 _ACEOF
   19977 rm -f conftest.$ac_objext conftest$ac_exeext
   19978 if { (ac_try="$ac_link"
   19979 case "(($ac_try" in
   19980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   19981   *) ac_try_echo=$ac_try;;
   19982 esac
   19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   19984   (eval "$ac_link") 2>conftest.er1
   19985   ac_status=$?
   19986   grep -v '^ *+' conftest.er1 >conftest.err
   19987   rm -f conftest.er1
   19988   cat conftest.err >&5
   19989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   19990   (exit $ac_status); } && {
   19991 	 test -z "$ac_c_werror_flag" ||
   19992 	 test ! -s conftest.err
   19993        } && test -s conftest$ac_exeext &&
   19994        $as_test_x conftest$ac_exeext; then
   19995   ac_cv_lib_svld_dlopen=yes
   19996 else
   19997   echo "$as_me: failed program was:" >&5
   19998 sed 's/^/| /' conftest.$ac_ext >&5
   19999 
   20000 	ac_cv_lib_svld_dlopen=no
   20001 fi
   20002 
   20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20004       conftest$ac_exeext conftest.$ac_ext
   20005 LIBS=$ac_check_lib_save_LIBS
   20006 fi
   20007 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
   20008 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
   20009 if test $ac_cv_lib_svld_dlopen = yes; then
   20010 
   20011 cat >>confdefs.h <<\_ACEOF
   20012 #define HAVE_LIBDL 1
   20013 _ACEOF
   20014 
   20015 	            LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
   20016 else
   20017   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
   20018 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
   20019 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
   20020   echo $ECHO_N "(cached) $ECHO_C" >&6
   20021 else
   20022   ac_check_lib_save_LIBS=$LIBS
   20023 LIBS="-ldld  $LIBS"
   20024 cat >conftest.$ac_ext <<_ACEOF
   20025 /* confdefs.h.  */
   20026 _ACEOF
   20027 cat confdefs.h >>conftest.$ac_ext
   20028 cat >>conftest.$ac_ext <<_ACEOF
   20029 /* end confdefs.h.  */
   20030 
   20031 /* Override any GCC internal prototype to avoid an error.
   20032    Use char because int might match the return type of a GCC
   20033    builtin and then its argument prototype would still apply.  */
   20034 #ifdef __cplusplus
   20035 extern "C"
   20036 #endif
   20037 char dld_link ();
   20038 int
   20039 main ()
   20040 {
   20041 return dld_link ();
   20042   ;
   20043   return 0;
   20044 }
   20045 _ACEOF
   20046 rm -f conftest.$ac_objext conftest$ac_exeext
   20047 if { (ac_try="$ac_link"
   20048 case "(($ac_try" in
   20049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20050   *) ac_try_echo=$ac_try;;
   20051 esac
   20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20053   (eval "$ac_link") 2>conftest.er1
   20054   ac_status=$?
   20055   grep -v '^ *+' conftest.er1 >conftest.err
   20056   rm -f conftest.er1
   20057   cat conftest.err >&5
   20058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20059   (exit $ac_status); } && {
   20060 	 test -z "$ac_c_werror_flag" ||
   20061 	 test ! -s conftest.err
   20062        } && test -s conftest$ac_exeext &&
   20063        $as_test_x conftest$ac_exeext; then
   20064   ac_cv_lib_dld_dld_link=yes
   20065 else
   20066   echo "$as_me: failed program was:" >&5
   20067 sed 's/^/| /' conftest.$ac_ext >&5
   20068 
   20069 	ac_cv_lib_dld_dld_link=no
   20070 fi
   20071 
   20072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20073       conftest$ac_exeext conftest.$ac_ext
   20074 LIBS=$ac_check_lib_save_LIBS
   20075 fi
   20076 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
   20077 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
   20078 if test $ac_cv_lib_dld_dld_link = yes; then
   20079 
   20080 cat >>confdefs.h <<\_ACEOF
   20081 #define HAVE_DLD 1
   20082 _ACEOF
   20083 
   20084 	 	LIBADD_DL="$LIBADD_DL -ldld"
   20085 else
   20086   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
   20087 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
   20088 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
   20089   echo $ECHO_N "(cached) $ECHO_C" >&6
   20090 else
   20091   cat >conftest.$ac_ext <<_ACEOF
   20092 /* confdefs.h.  */
   20093 _ACEOF
   20094 cat confdefs.h >>conftest.$ac_ext
   20095 cat >>conftest.$ac_ext <<_ACEOF
   20096 /* end confdefs.h.  */
   20097 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
   20098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20099 #define _dyld_func_lookup innocuous__dyld_func_lookup
   20100 
   20101 /* System header to define __stub macros and hopefully few prototypes,
   20102     which can conflict with char _dyld_func_lookup (); below.
   20103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20104     <limits.h> exists even on freestanding compilers.  */
   20105 
   20106 #ifdef __STDC__
   20107 # include <limits.h>
   20108 #else
   20109 # include <assert.h>
   20110 #endif
   20111 
   20112 #undef _dyld_func_lookup
   20113 
   20114 /* Override any GCC internal prototype to avoid an error.
   20115    Use char because int might match the return type of a GCC
   20116    builtin and then its argument prototype would still apply.  */
   20117 #ifdef __cplusplus
   20118 extern "C"
   20119 #endif
   20120 char _dyld_func_lookup ();
   20121 /* The GNU C library defines this for functions which it implements
   20122     to always fail with ENOSYS.  Some functions are actually named
   20123     something starting with __ and the normal name is an alias.  */
   20124 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
   20125 choke me
   20126 #endif
   20127 
   20128 int
   20129 main ()
   20130 {
   20131 return _dyld_func_lookup ();
   20132   ;
   20133   return 0;
   20134 }
   20135 _ACEOF
   20136 rm -f conftest.$ac_objext conftest$ac_exeext
   20137 if { (ac_try="$ac_link"
   20138 case "(($ac_try" in
   20139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20140   *) ac_try_echo=$ac_try;;
   20141 esac
   20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20143   (eval "$ac_link") 2>conftest.er1
   20144   ac_status=$?
   20145   grep -v '^ *+' conftest.er1 >conftest.err
   20146   rm -f conftest.er1
   20147   cat conftest.err >&5
   20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20149   (exit $ac_status); } && {
   20150 	 test -z "$ac_c_werror_flag" ||
   20151 	 test ! -s conftest.err
   20152        } && test -s conftest$ac_exeext &&
   20153        $as_test_x conftest$ac_exeext; then
   20154   ac_cv_func__dyld_func_lookup=yes
   20155 else
   20156   echo "$as_me: failed program was:" >&5
   20157 sed 's/^/| /' conftest.$ac_ext >&5
   20158 
   20159 	ac_cv_func__dyld_func_lookup=no
   20160 fi
   20161 
   20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20163       conftest$ac_exeext conftest.$ac_ext
   20164 fi
   20165 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
   20166 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
   20167 if test $ac_cv_func__dyld_func_lookup = yes; then
   20168 
   20169 cat >>confdefs.h <<\_ACEOF
   20170 #define HAVE_DYLD 1
   20171 _ACEOF
   20172 
   20173 fi
   20174 
   20175 
   20176 fi
   20177 
   20178 
   20179 fi
   20180 
   20181 
   20182 fi
   20183 
   20184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20185       conftest$ac_exeext conftest.$ac_ext
   20186 
   20187 fi
   20188 
   20189 
   20190 fi
   20191 
   20192 
   20193 fi
   20194 
   20195 
   20196 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
   20197 then
   20198   lt_save_LIBS="$LIBS"
   20199   LIBS="$LIBS $LIBADD_DL"
   20200 
   20201 for ac_func in dlerror
   20202 do
   20203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20207   echo $ECHO_N "(cached) $ECHO_C" >&6
   20208 else
   20209   cat >conftest.$ac_ext <<_ACEOF
   20210 /* confdefs.h.  */
   20211 _ACEOF
   20212 cat confdefs.h >>conftest.$ac_ext
   20213 cat >>conftest.$ac_ext <<_ACEOF
   20214 /* end confdefs.h.  */
   20215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20217 #define $ac_func innocuous_$ac_func
   20218 
   20219 /* System header to define __stub macros and hopefully few prototypes,
   20220     which can conflict with char $ac_func (); below.
   20221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20222     <limits.h> exists even on freestanding compilers.  */
   20223 
   20224 #ifdef __STDC__
   20225 # include <limits.h>
   20226 #else
   20227 # include <assert.h>
   20228 #endif
   20229 
   20230 #undef $ac_func
   20231 
   20232 /* Override any GCC internal prototype to avoid an error.
   20233    Use char because int might match the return type of a GCC
   20234    builtin and then its argument prototype would still apply.  */
   20235 #ifdef __cplusplus
   20236 extern "C"
   20237 #endif
   20238 char $ac_func ();
   20239 /* The GNU C library defines this for functions which it implements
   20240     to always fail with ENOSYS.  Some functions are actually named
   20241     something starting with __ and the normal name is an alias.  */
   20242 #if defined __stub_$ac_func || defined __stub___$ac_func
   20243 choke me
   20244 #endif
   20245 
   20246 int
   20247 main ()
   20248 {
   20249 return $ac_func ();
   20250   ;
   20251   return 0;
   20252 }
   20253 _ACEOF
   20254 rm -f conftest.$ac_objext conftest$ac_exeext
   20255 if { (ac_try="$ac_link"
   20256 case "(($ac_try" in
   20257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20258   *) ac_try_echo=$ac_try;;
   20259 esac
   20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20261   (eval "$ac_link") 2>conftest.er1
   20262   ac_status=$?
   20263   grep -v '^ *+' conftest.er1 >conftest.err
   20264   rm -f conftest.er1
   20265   cat conftest.err >&5
   20266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20267   (exit $ac_status); } && {
   20268 	 test -z "$ac_c_werror_flag" ||
   20269 	 test ! -s conftest.err
   20270        } && test -s conftest$ac_exeext &&
   20271        $as_test_x conftest$ac_exeext; then
   20272   eval "$as_ac_var=yes"
   20273 else
   20274   echo "$as_me: failed program was:" >&5
   20275 sed 's/^/| /' conftest.$ac_ext >&5
   20276 
   20277 	eval "$as_ac_var=no"
   20278 fi
   20279 
   20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20281       conftest$ac_exeext conftest.$ac_ext
   20282 fi
   20283 ac_res=`eval echo '${'$as_ac_var'}'`
   20284 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20285 echo "${ECHO_T}$ac_res" >&6; }
   20286 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20287   cat >>confdefs.h <<_ACEOF
   20288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20289 _ACEOF
   20290 
   20291 fi
   20292 done
   20293 
   20294   LIBS="$lt_save_LIBS"
   20295 fi
   20296 ac_ext=c
   20297 ac_cpp='$CPP $CPPFLAGS'
   20298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   20299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   20300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   20301 
   20302 
   20303 
   20304 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
   20305 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
   20306 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
   20307   echo $ECHO_N "(cached) $ECHO_C" >&6
   20308 else
   20309   ac_cv_sys_symbol_underscore=no
   20310   cat > conftest.$ac_ext <<EOF
   20311 void nm_test_func(){}
   20312 int main(){nm_test_func;return 0;}
   20313 EOF
   20314   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   20315   (eval $ac_compile) 2>&5
   20316   ac_status=$?
   20317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20318   (exit $ac_status); }; then
   20319     # Now try to grab the symbols.
   20320     ac_nlist=conftest.nm
   20321     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
   20322   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
   20323   ac_status=$?
   20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20325   (exit $ac_status); } && test -s "$ac_nlist"; then
   20326       # See whether the symbols have a leading underscore.
   20327       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
   20328         ac_cv_sys_symbol_underscore=yes
   20329       else
   20330         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
   20331 	  :
   20332         else
   20333 	  echo "configure: cannot find nm_test_func in $ac_nlist" >&5
   20334         fi
   20335       fi
   20336     else
   20337       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
   20338     fi
   20339   else
   20340     echo "configure: failed program was:" >&5
   20341     cat conftest.c >&5
   20342   fi
   20343   rm -rf conftest*
   20344 
   20345 fi
   20346 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
   20347 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
   20348 
   20349 
   20350 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
   20351   if test x"$libltdl_cv_func_dlopen" = xyes ||
   20352      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
   20353 	{ echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
   20354 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
   20355 if test "${libltdl_cv_need_uscore+set}" = set; then
   20356   echo $ECHO_N "(cached) $ECHO_C" >&6
   20357 else
   20358   libltdl_cv_need_uscore=unknown
   20359           save_LIBS="$LIBS"
   20360           LIBS="$LIBS $LIBADD_DL"
   20361 	  if test "$cross_compiling" = yes; then :
   20362   libltdl_cv_need_uscore=cross
   20363 else
   20364   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   20365   lt_status=$lt_dlunknown
   20366   cat > conftest.$ac_ext <<EOF
   20367 #line 20367 "configure"
   20368 #include "confdefs.h"
   20369 
   20370 #if HAVE_DLFCN_H
   20371 #include <dlfcn.h>
   20372 #endif
   20373 
   20374 #include <stdio.h>
   20375 
   20376 #ifdef RTLD_GLOBAL
   20377 #  define LT_DLGLOBAL		RTLD_GLOBAL
   20378 #else
   20379 #  ifdef DL_GLOBAL
   20380 #    define LT_DLGLOBAL		DL_GLOBAL
   20381 #  else
   20382 #    define LT_DLGLOBAL		0
   20383 #  endif
   20384 #endif
   20385 
   20386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
   20387    find out it does not work in some platform. */
   20388 #ifndef LT_DLLAZY_OR_NOW
   20389 #  ifdef RTLD_LAZY
   20390 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
   20391 #  else
   20392 #    ifdef DL_LAZY
   20393 #      define LT_DLLAZY_OR_NOW		DL_LAZY
   20394 #    else
   20395 #      ifdef RTLD_NOW
   20396 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
   20397 #      else
   20398 #        ifdef DL_NOW
   20399 #          define LT_DLLAZY_OR_NOW	DL_NOW
   20400 #        else
   20401 #          define LT_DLLAZY_OR_NOW	0
   20402 #        endif
   20403 #      endif
   20404 #    endif
   20405 #  endif
   20406 #endif
   20407 
   20408 #ifdef __cplusplus
   20409 extern "C" void exit (int);
   20410 #endif
   20411 
   20412 void fnord() { int i=42;}
   20413 int main ()
   20414 {
   20415   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
   20416   int status = $lt_dlunknown;
   20417 
   20418   if (self)
   20419     {
   20420       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
   20421       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
   20422       /* dlclose (self); */
   20423     }
   20424 
   20425     exit (status);
   20426 }
   20427 EOF
   20428   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   20429   (eval $ac_link) 2>&5
   20430   ac_status=$?
   20431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20432   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
   20433     (./conftest; exit; ) 2>/dev/null
   20434     lt_status=$?
   20435     case x$lt_status in
   20436       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
   20437       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
   20438       x$lt_unknown|x*)  ;;
   20439     esac
   20440   else :
   20441     # compilation failed
   20442 
   20443   fi
   20444 fi
   20445 rm -fr conftest*
   20446 
   20447 	  LIBS="$save_LIBS"
   20448 
   20449 fi
   20450 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
   20451 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
   20452   fi
   20453 fi
   20454 
   20455 if test x"$libltdl_cv_need_uscore" = xyes; then
   20456 
   20457 cat >>confdefs.h <<\_ACEOF
   20458 #define NEED_USCORE 1
   20459 _ACEOF
   20460 
   20461 fi
   20462 
   20463 
   20464 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
   20465 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
   20466 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
   20467   echo $ECHO_N "(cached) $ECHO_C" >&6
   20468 else
   20469   # PORTME does your system automatically load deplibs for dlopen?
   20470   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
   20471   # For now, we just catch OSes we know something about -- in the
   20472   # future, we'll try test this programmatically.
   20473   libltdl_cv_sys_dlopen_deplibs=unknown
   20474   case "$host_os" in
   20475   aix3*|aix4.1.*|aix4.2.*)
   20476     # Unknown whether this is true for these versions of AIX, but
   20477     # we want this `case' here to explicitly catch those versions.
   20478     libltdl_cv_sys_dlopen_deplibs=unknown
   20479     ;;
   20480   aix[45]*)
   20481     libltdl_cv_sys_dlopen_deplibs=yes
   20482     ;;
   20483   darwin*)
   20484     # Assuming the user has installed a libdl from somewhere, this is true
   20485     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
   20486     libltdl_cv_sys_dlopen_deplibs=yes
   20487     ;;
   20488   kfreebsd*-gnu)
   20489     libltdl_cv_sys_dlopen_deplibs=yes
   20490     ;;
   20491   gnu*)
   20492     libltdl_cv_sys_dlopen_deplibs=yes
   20493     ;;
   20494   hpux10*|hpux11*)
   20495     libltdl_cv_sys_dlopen_deplibs=yes
   20496     ;;
   20497   irix[12345]*|irix6.[01]*)
   20498     # Catch all versions of IRIX before 6.2, and indicate that we don't
   20499     # know how it worked for any of those versions.
   20500     libltdl_cv_sys_dlopen_deplibs=unknown
   20501     ;;
   20502   irix*)
   20503     # The case above catches anything before 6.2, and it's known that
   20504     # at 6.2 and later dlopen does load deplibs.
   20505     libltdl_cv_sys_dlopen_deplibs=yes
   20506     ;;
   20507   linux*)
   20508     libltdl_cv_sys_dlopen_deplibs=yes
   20509     ;;
   20510   netbsd*)
   20511     libltdl_cv_sys_dlopen_deplibs=yes
   20512     ;;
   20513   openbsd*)
   20514     libltdl_cv_sys_dlopen_deplibs=yes
   20515     ;;
   20516   osf[1234]*)
   20517     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
   20518     # it did *not* use an RPATH in a shared library to find objects the
   20519     # library depends on, so we explictly say `no'.
   20520     libltdl_cv_sys_dlopen_deplibs=no
   20521     ;;
   20522   osf5.0|osf5.0a|osf5.1)
   20523     # dlopen *does* load deplibs and with the right loader patch applied
   20524     # it even uses RPATH in a shared library to search for shared objects
   20525     # that the library depends on, but there's no easy way to know if that
   20526     # patch is installed.  Since this is the case, all we can really
   20527     # say is unknown -- it depends on the patch being installed.  If
   20528     # it is, this changes to `yes'.  Without it, it would be `no'.
   20529     libltdl_cv_sys_dlopen_deplibs=unknown
   20530     ;;
   20531   osf*)
   20532     # the two cases above should catch all versions of osf <= 5.1.  Read
   20533     # the comments above for what we know about them.
   20534     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
   20535     # is used to find them so we can finally say `yes'.
   20536     libltdl_cv_sys_dlopen_deplibs=yes
   20537     ;;
   20538   solaris*)
   20539     libltdl_cv_sys_dlopen_deplibs=yes
   20540     ;;
   20541   esac
   20542 
   20543 fi
   20544 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
   20545 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
   20546 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
   20547 
   20548 cat >>confdefs.h <<\_ACEOF
   20549 #define LTDL_DLOPEN_DEPLIBS 1
   20550 _ACEOF
   20551 
   20552 fi
   20553 
   20554 
   20555 for ac_header in argz.h
   20556 do
   20557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20559   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20562   echo $ECHO_N "(cached) $ECHO_C" >&6
   20563 fi
   20564 ac_res=`eval echo '${'$as_ac_Header'}'`
   20565 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20566 echo "${ECHO_T}$ac_res" >&6; }
   20567 else
   20568   # Is the header compilable?
   20569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   20570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   20571 cat >conftest.$ac_ext <<_ACEOF
   20572 /* confdefs.h.  */
   20573 _ACEOF
   20574 cat confdefs.h >>conftest.$ac_ext
   20575 cat >>conftest.$ac_ext <<_ACEOF
   20576 /* end confdefs.h.  */
   20577 $ac_includes_default
   20578 #include <$ac_header>
   20579 _ACEOF
   20580 rm -f conftest.$ac_objext
   20581 if { (ac_try="$ac_compile"
   20582 case "(($ac_try" in
   20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20584   *) ac_try_echo=$ac_try;;
   20585 esac
   20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20587   (eval "$ac_compile") 2>conftest.er1
   20588   ac_status=$?
   20589   grep -v '^ *+' conftest.er1 >conftest.err
   20590   rm -f conftest.er1
   20591   cat conftest.err >&5
   20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20593   (exit $ac_status); } && {
   20594 	 test -z "$ac_c_werror_flag" ||
   20595 	 test ! -s conftest.err
   20596        } && test -s conftest.$ac_objext; then
   20597   ac_header_compiler=yes
   20598 else
   20599   echo "$as_me: failed program was:" >&5
   20600 sed 's/^/| /' conftest.$ac_ext >&5
   20601 
   20602 	ac_header_compiler=no
   20603 fi
   20604 
   20605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20606 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   20607 echo "${ECHO_T}$ac_header_compiler" >&6; }
   20608 
   20609 # Is the header present?
   20610 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   20611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   20612 cat >conftest.$ac_ext <<_ACEOF
   20613 /* confdefs.h.  */
   20614 _ACEOF
   20615 cat confdefs.h >>conftest.$ac_ext
   20616 cat >>conftest.$ac_ext <<_ACEOF
   20617 /* end confdefs.h.  */
   20618 #include <$ac_header>
   20619 _ACEOF
   20620 if { (ac_try="$ac_cpp conftest.$ac_ext"
   20621 case "(($ac_try" in
   20622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20623   *) ac_try_echo=$ac_try;;
   20624 esac
   20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   20627   ac_status=$?
   20628   grep -v '^ *+' conftest.er1 >conftest.err
   20629   rm -f conftest.er1
   20630   cat conftest.err >&5
   20631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20632   (exit $ac_status); } >/dev/null && {
   20633 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   20634 	 test ! -s conftest.err
   20635        }; then
   20636   ac_header_preproc=yes
   20637 else
   20638   echo "$as_me: failed program was:" >&5
   20639 sed 's/^/| /' conftest.$ac_ext >&5
   20640 
   20641   ac_header_preproc=no
   20642 fi
   20643 
   20644 rm -f conftest.err conftest.$ac_ext
   20645 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   20646 echo "${ECHO_T}$ac_header_preproc" >&6; }
   20647 
   20648 # So?  What about this header?
   20649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   20650   yes:no: )
   20651     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   20652 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   20653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   20654 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   20655     ac_header_preproc=yes
   20656     ;;
   20657   no:yes:* )
   20658     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   20659 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   20660     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   20661 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   20662     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   20663 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   20664     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   20665 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   20666     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   20667 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   20668     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   20669 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   20670 
   20671     ;;
   20672 esac
   20673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20676   echo $ECHO_N "(cached) $ECHO_C" >&6
   20677 else
   20678   eval "$as_ac_Header=\$ac_header_preproc"
   20679 fi
   20680 ac_res=`eval echo '${'$as_ac_Header'}'`
   20681 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20682 echo "${ECHO_T}$ac_res" >&6; }
   20683 
   20684 fi
   20685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   20686   cat >>confdefs.h <<_ACEOF
   20687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   20688 _ACEOF
   20689 
   20690 fi
   20691 
   20692 done
   20693 
   20694 
   20695 { echo "$as_me:$LINENO: checking for error_t" >&5
   20696 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
   20697 if test "${ac_cv_type_error_t+set}" = set; then
   20698   echo $ECHO_N "(cached) $ECHO_C" >&6
   20699 else
   20700   cat >conftest.$ac_ext <<_ACEOF
   20701 /* confdefs.h.  */
   20702 _ACEOF
   20703 cat confdefs.h >>conftest.$ac_ext
   20704 cat >>conftest.$ac_ext <<_ACEOF
   20705 /* end confdefs.h.  */
   20706 #if HAVE_ARGZ_H
   20707 #  include <argz.h>
   20708 #endif
   20709 
   20710 typedef error_t ac__type_new_;
   20711 int
   20712 main ()
   20713 {
   20714 if ((ac__type_new_ *) 0)
   20715   return 0;
   20716 if (sizeof (ac__type_new_))
   20717   return 0;
   20718   ;
   20719   return 0;
   20720 }
   20721 _ACEOF
   20722 rm -f conftest.$ac_objext
   20723 if { (ac_try="$ac_compile"
   20724 case "(($ac_try" in
   20725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20726   *) ac_try_echo=$ac_try;;
   20727 esac
   20728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20729   (eval "$ac_compile") 2>conftest.er1
   20730   ac_status=$?
   20731   grep -v '^ *+' conftest.er1 >conftest.err
   20732   rm -f conftest.er1
   20733   cat conftest.err >&5
   20734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20735   (exit $ac_status); } && {
   20736 	 test -z "$ac_c_werror_flag" ||
   20737 	 test ! -s conftest.err
   20738        } && test -s conftest.$ac_objext; then
   20739   ac_cv_type_error_t=yes
   20740 else
   20741   echo "$as_me: failed program was:" >&5
   20742 sed 's/^/| /' conftest.$ac_ext >&5
   20743 
   20744 	ac_cv_type_error_t=no
   20745 fi
   20746 
   20747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20748 fi
   20749 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
   20750 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
   20751 if test $ac_cv_type_error_t = yes; then
   20752 
   20753 cat >>confdefs.h <<_ACEOF
   20754 #define HAVE_ERROR_T 1
   20755 _ACEOF
   20756 
   20757 
   20758 else
   20759 
   20760 cat >>confdefs.h <<\_ACEOF
   20761 #define error_t int
   20762 _ACEOF
   20763 
   20764 fi
   20765 
   20766 
   20767 
   20768 
   20769 
   20770 
   20771 
   20772 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
   20773 do
   20774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   20775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   20776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   20777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   20778   echo $ECHO_N "(cached) $ECHO_C" >&6
   20779 else
   20780   cat >conftest.$ac_ext <<_ACEOF
   20781 /* confdefs.h.  */
   20782 _ACEOF
   20783 cat confdefs.h >>conftest.$ac_ext
   20784 cat >>conftest.$ac_ext <<_ACEOF
   20785 /* end confdefs.h.  */
   20786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   20787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   20788 #define $ac_func innocuous_$ac_func
   20789 
   20790 /* System header to define __stub macros and hopefully few prototypes,
   20791     which can conflict with char $ac_func (); below.
   20792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   20793     <limits.h> exists even on freestanding compilers.  */
   20794 
   20795 #ifdef __STDC__
   20796 # include <limits.h>
   20797 #else
   20798 # include <assert.h>
   20799 #endif
   20800 
   20801 #undef $ac_func
   20802 
   20803 /* Override any GCC internal prototype to avoid an error.
   20804    Use char because int might match the return type of a GCC
   20805    builtin and then its argument prototype would still apply.  */
   20806 #ifdef __cplusplus
   20807 extern "C"
   20808 #endif
   20809 char $ac_func ();
   20810 /* The GNU C library defines this for functions which it implements
   20811     to always fail with ENOSYS.  Some functions are actually named
   20812     something starting with __ and the normal name is an alias.  */
   20813 #if defined __stub_$ac_func || defined __stub___$ac_func
   20814 choke me
   20815 #endif
   20816 
   20817 int
   20818 main ()
   20819 {
   20820 return $ac_func ();
   20821   ;
   20822   return 0;
   20823 }
   20824 _ACEOF
   20825 rm -f conftest.$ac_objext conftest$ac_exeext
   20826 if { (ac_try="$ac_link"
   20827 case "(($ac_try" in
   20828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20829   *) ac_try_echo=$ac_try;;
   20830 esac
   20831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20832   (eval "$ac_link") 2>conftest.er1
   20833   ac_status=$?
   20834   grep -v '^ *+' conftest.er1 >conftest.err
   20835   rm -f conftest.er1
   20836   cat conftest.err >&5
   20837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20838   (exit $ac_status); } && {
   20839 	 test -z "$ac_c_werror_flag" ||
   20840 	 test ! -s conftest.err
   20841        } && test -s conftest$ac_exeext &&
   20842        $as_test_x conftest$ac_exeext; then
   20843   eval "$as_ac_var=yes"
   20844 else
   20845   echo "$as_me: failed program was:" >&5
   20846 sed 's/^/| /' conftest.$ac_ext >&5
   20847 
   20848 	eval "$as_ac_var=no"
   20849 fi
   20850 
   20851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   20852       conftest$ac_exeext conftest.$ac_ext
   20853 fi
   20854 ac_res=`eval echo '${'$as_ac_var'}'`
   20855 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20856 echo "${ECHO_T}$ac_res" >&6; }
   20857 if test `eval echo '${'$as_ac_var'}'` = yes; then
   20858   cat >>confdefs.h <<_ACEOF
   20859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   20860 _ACEOF
   20861 
   20862 fi
   20863 done
   20864 
   20865 
   20866 
   20867 
   20868 
   20869 
   20870 
   20871 
   20872 
   20873 
   20874 
   20875 
   20876 
   20877 
   20878 
   20879 
   20880 
   20881 
   20882 
   20883 
   20884 
   20885 
   20886 
   20887 
   20888 
   20889 
   20890 
   20891 
   20892 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
   20893 		  stdio.h unistd.h
   20894 do
   20895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   20896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20897   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   20898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   20899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   20900   echo $ECHO_N "(cached) $ECHO_C" >&6
   20901 fi
   20902 ac_res=`eval echo '${'$as_ac_Header'}'`
   20903 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   20904 echo "${ECHO_T}$ac_res" >&6; }
   20905 else
   20906   # Is the header compilable?
   20907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   20908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   20909 cat >conftest.$ac_ext <<_ACEOF
   20910 /* confdefs.h.  */
   20911 _ACEOF
   20912 cat confdefs.h >>conftest.$ac_ext
   20913 cat >>conftest.$ac_ext <<_ACEOF
   20914 /* end confdefs.h.  */
   20915 $ac_includes_default
   20916 #include <$ac_header>
   20917 _ACEOF
   20918 rm -f conftest.$ac_objext
   20919 if { (ac_try="$ac_compile"
   20920 case "(($ac_try" in
   20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20922   *) ac_try_echo=$ac_try;;
   20923 esac
   20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20925   (eval "$ac_compile") 2>conftest.er1
   20926   ac_status=$?
   20927   grep -v '^ *+' conftest.er1 >conftest.err
   20928   rm -f conftest.er1
   20929   cat conftest.err >&5
   20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20931   (exit $ac_status); } && {
   20932 	 test -z "$ac_c_werror_flag" ||
   20933 	 test ! -s conftest.err
   20934        } && test -s conftest.$ac_objext; then
   20935   ac_header_compiler=yes
   20936 else
   20937   echo "$as_me: failed program was:" >&5
   20938 sed 's/^/| /' conftest.$ac_ext >&5
   20939 
   20940 	ac_header_compiler=no
   20941 fi
   20942 
   20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   20944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   20945 echo "${ECHO_T}$ac_header_compiler" >&6; }
   20946 
   20947 # Is the header present?
   20948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   20949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   20950 cat >conftest.$ac_ext <<_ACEOF
   20951 /* confdefs.h.  */
   20952 _ACEOF
   20953 cat confdefs.h >>conftest.$ac_ext
   20954 cat >>conftest.$ac_ext <<_ACEOF
   20955 /* end confdefs.h.  */
   20956 #include <$ac_header>
   20957 _ACEOF
   20958 if { (ac_try="$ac_cpp conftest.$ac_ext"
   20959 case "(($ac_try" in
   20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   20961   *) ac_try_echo=$ac_try;;
   20962 esac
   20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   20964   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   20965   ac_status=$?
   20966   grep -v '^ *+' conftest.er1 >conftest.err
   20967   rm -f conftest.er1
   20968   cat conftest.err >&5
   20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   20970   (exit $ac_status); } >/dev/null && {
   20971 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   20972 	 test ! -s conftest.err
   20973        }; then
   20974   ac_header_preproc=yes
   20975 else
   20976   echo "$as_me: failed program was:" >&5
   20977 sed 's/^/| /' conftest.$ac_ext >&5
   20978 
   20979   ac_header_preproc=no
   20980 fi
   20981 
   20982 rm -f conftest.err conftest.$ac_ext
   20983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   20984 echo "${ECHO_T}$ac_header_preproc" >&6; }
   20985 
   20986 # So?  What about this header?
   20987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   20988   yes:no: )
   20989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   20990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   20991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   20992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   20993     ac_header_preproc=yes
   20994     ;;
   20995   no:yes:* )
   20996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   20997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   20998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   20999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   21000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   21001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   21002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   21003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   21004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   21005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   21006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   21007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   21008 
   21009     ;;
   21010 esac
   21011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21014   echo $ECHO_N "(cached) $ECHO_C" >&6
   21015 else
   21016   eval "$as_ac_Header=\$ac_header_preproc"
   21017 fi
   21018 ac_res=`eval echo '${'$as_ac_Header'}'`
   21019 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21020 echo "${ECHO_T}$ac_res" >&6; }
   21021 
   21022 fi
   21023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   21024   cat >>confdefs.h <<_ACEOF
   21025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21026 _ACEOF
   21027 
   21028 fi
   21029 
   21030 done
   21031 
   21032 
   21033 
   21034 
   21035 
   21036 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
   21037 do
   21038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   21039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21040   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21043   echo $ECHO_N "(cached) $ECHO_C" >&6
   21044 fi
   21045 ac_res=`eval echo '${'$as_ac_Header'}'`
   21046 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21047 echo "${ECHO_T}$ac_res" >&6; }
   21048 else
   21049   # Is the header compilable?
   21050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   21051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   21052 cat >conftest.$ac_ext <<_ACEOF
   21053 /* confdefs.h.  */
   21054 _ACEOF
   21055 cat confdefs.h >>conftest.$ac_ext
   21056 cat >>conftest.$ac_ext <<_ACEOF
   21057 /* end confdefs.h.  */
   21058 $ac_includes_default
   21059 #include <$ac_header>
   21060 _ACEOF
   21061 rm -f conftest.$ac_objext
   21062 if { (ac_try="$ac_compile"
   21063 case "(($ac_try" in
   21064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21065   *) ac_try_echo=$ac_try;;
   21066 esac
   21067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21068   (eval "$ac_compile") 2>conftest.er1
   21069   ac_status=$?
   21070   grep -v '^ *+' conftest.er1 >conftest.err
   21071   rm -f conftest.er1
   21072   cat conftest.err >&5
   21073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21074   (exit $ac_status); } && {
   21075 	 test -z "$ac_c_werror_flag" ||
   21076 	 test ! -s conftest.err
   21077        } && test -s conftest.$ac_objext; then
   21078   ac_header_compiler=yes
   21079 else
   21080   echo "$as_me: failed program was:" >&5
   21081 sed 's/^/| /' conftest.$ac_ext >&5
   21082 
   21083 	ac_header_compiler=no
   21084 fi
   21085 
   21086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   21088 echo "${ECHO_T}$ac_header_compiler" >&6; }
   21089 
   21090 # Is the header present?
   21091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   21092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   21093 cat >conftest.$ac_ext <<_ACEOF
   21094 /* confdefs.h.  */
   21095 _ACEOF
   21096 cat confdefs.h >>conftest.$ac_ext
   21097 cat >>conftest.$ac_ext <<_ACEOF
   21098 /* end confdefs.h.  */
   21099 #include <$ac_header>
   21100 _ACEOF
   21101 if { (ac_try="$ac_cpp conftest.$ac_ext"
   21102 case "(($ac_try" in
   21103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21104   *) ac_try_echo=$ac_try;;
   21105 esac
   21106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   21108   ac_status=$?
   21109   grep -v '^ *+' conftest.er1 >conftest.err
   21110   rm -f conftest.er1
   21111   cat conftest.err >&5
   21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21113   (exit $ac_status); } >/dev/null && {
   21114 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   21115 	 test ! -s conftest.err
   21116        }; then
   21117   ac_header_preproc=yes
   21118 else
   21119   echo "$as_me: failed program was:" >&5
   21120 sed 's/^/| /' conftest.$ac_ext >&5
   21121 
   21122   ac_header_preproc=no
   21123 fi
   21124 
   21125 rm -f conftest.err conftest.$ac_ext
   21126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   21127 echo "${ECHO_T}$ac_header_preproc" >&6; }
   21128 
   21129 # So?  What about this header?
   21130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   21131   yes:no: )
   21132     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   21133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   21134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   21135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   21136     ac_header_preproc=yes
   21137     ;;
   21138   no:yes:* )
   21139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   21140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   21141     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   21142 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   21143     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   21144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   21145     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   21146 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   21147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   21148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   21149     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   21150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   21151 
   21152     ;;
   21153 esac
   21154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21157   echo $ECHO_N "(cached) $ECHO_C" >&6
   21158 else
   21159   eval "$as_ac_Header=\$ac_header_preproc"
   21160 fi
   21161 ac_res=`eval echo '${'$as_ac_Header'}'`
   21162 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21163 echo "${ECHO_T}$ac_res" >&6; }
   21164 
   21165 fi
   21166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   21167   cat >>confdefs.h <<_ACEOF
   21168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21169 _ACEOF
   21170 
   21171 fi
   21172 
   21173 done
   21174 
   21175 
   21176 
   21177 for ac_header in string.h strings.h
   21178 do
   21179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
   21180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21184   echo $ECHO_N "(cached) $ECHO_C" >&6
   21185 fi
   21186 ac_res=`eval echo '${'$as_ac_Header'}'`
   21187 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21188 echo "${ECHO_T}$ac_res" >&6; }
   21189 else
   21190   # Is the header compilable?
   21191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
   21192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
   21193 cat >conftest.$ac_ext <<_ACEOF
   21194 /* confdefs.h.  */
   21195 _ACEOF
   21196 cat confdefs.h >>conftest.$ac_ext
   21197 cat >>conftest.$ac_ext <<_ACEOF
   21198 /* end confdefs.h.  */
   21199 $ac_includes_default
   21200 #include <$ac_header>
   21201 _ACEOF
   21202 rm -f conftest.$ac_objext
   21203 if { (ac_try="$ac_compile"
   21204 case "(($ac_try" in
   21205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21206   *) ac_try_echo=$ac_try;;
   21207 esac
   21208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21209   (eval "$ac_compile") 2>conftest.er1
   21210   ac_status=$?
   21211   grep -v '^ *+' conftest.er1 >conftest.err
   21212   rm -f conftest.er1
   21213   cat conftest.err >&5
   21214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21215   (exit $ac_status); } && {
   21216 	 test -z "$ac_c_werror_flag" ||
   21217 	 test ! -s conftest.err
   21218        } && test -s conftest.$ac_objext; then
   21219   ac_header_compiler=yes
   21220 else
   21221   echo "$as_me: failed program was:" >&5
   21222 sed 's/^/| /' conftest.$ac_ext >&5
   21223 
   21224 	ac_header_compiler=no
   21225 fi
   21226 
   21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   21228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
   21229 echo "${ECHO_T}$ac_header_compiler" >&6; }
   21230 
   21231 # Is the header present?
   21232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
   21233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
   21234 cat >conftest.$ac_ext <<_ACEOF
   21235 /* confdefs.h.  */
   21236 _ACEOF
   21237 cat confdefs.h >>conftest.$ac_ext
   21238 cat >>conftest.$ac_ext <<_ACEOF
   21239 /* end confdefs.h.  */
   21240 #include <$ac_header>
   21241 _ACEOF
   21242 if { (ac_try="$ac_cpp conftest.$ac_ext"
   21243 case "(($ac_try" in
   21244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21245   *) ac_try_echo=$ac_try;;
   21246 esac
   21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   21249   ac_status=$?
   21250   grep -v '^ *+' conftest.er1 >conftest.err
   21251   rm -f conftest.er1
   21252   cat conftest.err >&5
   21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21254   (exit $ac_status); } >/dev/null && {
   21255 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   21256 	 test ! -s conftest.err
   21257        }; then
   21258   ac_header_preproc=yes
   21259 else
   21260   echo "$as_me: failed program was:" >&5
   21261 sed 's/^/| /' conftest.$ac_ext >&5
   21262 
   21263   ac_header_preproc=no
   21264 fi
   21265 
   21266 rm -f conftest.err conftest.$ac_ext
   21267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
   21268 echo "${ECHO_T}$ac_header_preproc" >&6; }
   21269 
   21270 # So?  What about this header?
   21271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
   21272   yes:no: )
   21273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
   21274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
   21275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
   21276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
   21277     ac_header_preproc=yes
   21278     ;;
   21279   no:yes:* )
   21280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
   21281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
   21282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
   21283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
   21284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
   21285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
   21286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
   21287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
   21288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
   21289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
   21290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
   21291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
   21292 
   21293     ;;
   21294 esac
   21295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
   21296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
   21297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
   21298   echo $ECHO_N "(cached) $ECHO_C" >&6
   21299 else
   21300   eval "$as_ac_Header=\$ac_header_preproc"
   21301 fi
   21302 ac_res=`eval echo '${'$as_ac_Header'}'`
   21303 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21304 echo "${ECHO_T}$ac_res" >&6; }
   21305 
   21306 fi
   21307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
   21308   cat >>confdefs.h <<_ACEOF
   21309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
   21310 _ACEOF
   21311  break
   21312 fi
   21313 
   21314 done
   21315 
   21316 
   21317 
   21318 
   21319 for ac_func in strchr index
   21320 do
   21321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21325   echo $ECHO_N "(cached) $ECHO_C" >&6
   21326 else
   21327   cat >conftest.$ac_ext <<_ACEOF
   21328 /* confdefs.h.  */
   21329 _ACEOF
   21330 cat confdefs.h >>conftest.$ac_ext
   21331 cat >>conftest.$ac_ext <<_ACEOF
   21332 /* end confdefs.h.  */
   21333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21335 #define $ac_func innocuous_$ac_func
   21336 
   21337 /* System header to define __stub macros and hopefully few prototypes,
   21338     which can conflict with char $ac_func (); below.
   21339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21340     <limits.h> exists even on freestanding compilers.  */
   21341 
   21342 #ifdef __STDC__
   21343 # include <limits.h>
   21344 #else
   21345 # include <assert.h>
   21346 #endif
   21347 
   21348 #undef $ac_func
   21349 
   21350 /* Override any GCC internal prototype to avoid an error.
   21351    Use char because int might match the return type of a GCC
   21352    builtin and then its argument prototype would still apply.  */
   21353 #ifdef __cplusplus
   21354 extern "C"
   21355 #endif
   21356 char $ac_func ();
   21357 /* The GNU C library defines this for functions which it implements
   21358     to always fail with ENOSYS.  Some functions are actually named
   21359     something starting with __ and the normal name is an alias.  */
   21360 #if defined __stub_$ac_func || defined __stub___$ac_func
   21361 choke me
   21362 #endif
   21363 
   21364 int
   21365 main ()
   21366 {
   21367 return $ac_func ();
   21368   ;
   21369   return 0;
   21370 }
   21371 _ACEOF
   21372 rm -f conftest.$ac_objext conftest$ac_exeext
   21373 if { (ac_try="$ac_link"
   21374 case "(($ac_try" in
   21375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21376   *) ac_try_echo=$ac_try;;
   21377 esac
   21378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21379   (eval "$ac_link") 2>conftest.er1
   21380   ac_status=$?
   21381   grep -v '^ *+' conftest.er1 >conftest.err
   21382   rm -f conftest.er1
   21383   cat conftest.err >&5
   21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21385   (exit $ac_status); } && {
   21386 	 test -z "$ac_c_werror_flag" ||
   21387 	 test ! -s conftest.err
   21388        } && test -s conftest$ac_exeext &&
   21389        $as_test_x conftest$ac_exeext; then
   21390   eval "$as_ac_var=yes"
   21391 else
   21392   echo "$as_me: failed program was:" >&5
   21393 sed 's/^/| /' conftest.$ac_ext >&5
   21394 
   21395 	eval "$as_ac_var=no"
   21396 fi
   21397 
   21398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21399       conftest$ac_exeext conftest.$ac_ext
   21400 fi
   21401 ac_res=`eval echo '${'$as_ac_var'}'`
   21402 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21403 echo "${ECHO_T}$ac_res" >&6; }
   21404 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21405   cat >>confdefs.h <<_ACEOF
   21406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21407 _ACEOF
   21408  break
   21409 fi
   21410 done
   21411 
   21412 
   21413 
   21414 for ac_func in strrchr rindex
   21415 do
   21416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21417 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21420   echo $ECHO_N "(cached) $ECHO_C" >&6
   21421 else
   21422   cat >conftest.$ac_ext <<_ACEOF
   21423 /* confdefs.h.  */
   21424 _ACEOF
   21425 cat confdefs.h >>conftest.$ac_ext
   21426 cat >>conftest.$ac_ext <<_ACEOF
   21427 /* end confdefs.h.  */
   21428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21430 #define $ac_func innocuous_$ac_func
   21431 
   21432 /* System header to define __stub macros and hopefully few prototypes,
   21433     which can conflict with char $ac_func (); below.
   21434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21435     <limits.h> exists even on freestanding compilers.  */
   21436 
   21437 #ifdef __STDC__
   21438 # include <limits.h>
   21439 #else
   21440 # include <assert.h>
   21441 #endif
   21442 
   21443 #undef $ac_func
   21444 
   21445 /* Override any GCC internal prototype to avoid an error.
   21446    Use char because int might match the return type of a GCC
   21447    builtin and then its argument prototype would still apply.  */
   21448 #ifdef __cplusplus
   21449 extern "C"
   21450 #endif
   21451 char $ac_func ();
   21452 /* The GNU C library defines this for functions which it implements
   21453     to always fail with ENOSYS.  Some functions are actually named
   21454     something starting with __ and the normal name is an alias.  */
   21455 #if defined __stub_$ac_func || defined __stub___$ac_func
   21456 choke me
   21457 #endif
   21458 
   21459 int
   21460 main ()
   21461 {
   21462 return $ac_func ();
   21463   ;
   21464   return 0;
   21465 }
   21466 _ACEOF
   21467 rm -f conftest.$ac_objext conftest$ac_exeext
   21468 if { (ac_try="$ac_link"
   21469 case "(($ac_try" in
   21470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21471   *) ac_try_echo=$ac_try;;
   21472 esac
   21473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21474   (eval "$ac_link") 2>conftest.er1
   21475   ac_status=$?
   21476   grep -v '^ *+' conftest.er1 >conftest.err
   21477   rm -f conftest.er1
   21478   cat conftest.err >&5
   21479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21480   (exit $ac_status); } && {
   21481 	 test -z "$ac_c_werror_flag" ||
   21482 	 test ! -s conftest.err
   21483        } && test -s conftest$ac_exeext &&
   21484        $as_test_x conftest$ac_exeext; then
   21485   eval "$as_ac_var=yes"
   21486 else
   21487   echo "$as_me: failed program was:" >&5
   21488 sed 's/^/| /' conftest.$ac_ext >&5
   21489 
   21490 	eval "$as_ac_var=no"
   21491 fi
   21492 
   21493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21494       conftest$ac_exeext conftest.$ac_ext
   21495 fi
   21496 ac_res=`eval echo '${'$as_ac_var'}'`
   21497 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21498 echo "${ECHO_T}$ac_res" >&6; }
   21499 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21500   cat >>confdefs.h <<_ACEOF
   21501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21502 _ACEOF
   21503  break
   21504 fi
   21505 done
   21506 
   21507 
   21508 
   21509 for ac_func in memcpy bcopy
   21510 do
   21511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21515   echo $ECHO_N "(cached) $ECHO_C" >&6
   21516 else
   21517   cat >conftest.$ac_ext <<_ACEOF
   21518 /* confdefs.h.  */
   21519 _ACEOF
   21520 cat confdefs.h >>conftest.$ac_ext
   21521 cat >>conftest.$ac_ext <<_ACEOF
   21522 /* end confdefs.h.  */
   21523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21525 #define $ac_func innocuous_$ac_func
   21526 
   21527 /* System header to define __stub macros and hopefully few prototypes,
   21528     which can conflict with char $ac_func (); below.
   21529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21530     <limits.h> exists even on freestanding compilers.  */
   21531 
   21532 #ifdef __STDC__
   21533 # include <limits.h>
   21534 #else
   21535 # include <assert.h>
   21536 #endif
   21537 
   21538 #undef $ac_func
   21539 
   21540 /* Override any GCC internal prototype to avoid an error.
   21541    Use char because int might match the return type of a GCC
   21542    builtin and then its argument prototype would still apply.  */
   21543 #ifdef __cplusplus
   21544 extern "C"
   21545 #endif
   21546 char $ac_func ();
   21547 /* The GNU C library defines this for functions which it implements
   21548     to always fail with ENOSYS.  Some functions are actually named
   21549     something starting with __ and the normal name is an alias.  */
   21550 #if defined __stub_$ac_func || defined __stub___$ac_func
   21551 choke me
   21552 #endif
   21553 
   21554 int
   21555 main ()
   21556 {
   21557 return $ac_func ();
   21558   ;
   21559   return 0;
   21560 }
   21561 _ACEOF
   21562 rm -f conftest.$ac_objext conftest$ac_exeext
   21563 if { (ac_try="$ac_link"
   21564 case "(($ac_try" in
   21565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21566   *) ac_try_echo=$ac_try;;
   21567 esac
   21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21569   (eval "$ac_link") 2>conftest.er1
   21570   ac_status=$?
   21571   grep -v '^ *+' conftest.er1 >conftest.err
   21572   rm -f conftest.er1
   21573   cat conftest.err >&5
   21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21575   (exit $ac_status); } && {
   21576 	 test -z "$ac_c_werror_flag" ||
   21577 	 test ! -s conftest.err
   21578        } && test -s conftest$ac_exeext &&
   21579        $as_test_x conftest$ac_exeext; then
   21580   eval "$as_ac_var=yes"
   21581 else
   21582   echo "$as_me: failed program was:" >&5
   21583 sed 's/^/| /' conftest.$ac_ext >&5
   21584 
   21585 	eval "$as_ac_var=no"
   21586 fi
   21587 
   21588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21589       conftest$ac_exeext conftest.$ac_ext
   21590 fi
   21591 ac_res=`eval echo '${'$as_ac_var'}'`
   21592 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21593 echo "${ECHO_T}$ac_res" >&6; }
   21594 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21595   cat >>confdefs.h <<_ACEOF
   21596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21597 _ACEOF
   21598  break
   21599 fi
   21600 done
   21601 
   21602 
   21603 
   21604 for ac_func in memmove strcmp
   21605 do
   21606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21610   echo $ECHO_N "(cached) $ECHO_C" >&6
   21611 else
   21612   cat >conftest.$ac_ext <<_ACEOF
   21613 /* confdefs.h.  */
   21614 _ACEOF
   21615 cat confdefs.h >>conftest.$ac_ext
   21616 cat >>conftest.$ac_ext <<_ACEOF
   21617 /* end confdefs.h.  */
   21618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21620 #define $ac_func innocuous_$ac_func
   21621 
   21622 /* System header to define __stub macros and hopefully few prototypes,
   21623     which can conflict with char $ac_func (); below.
   21624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21625     <limits.h> exists even on freestanding compilers.  */
   21626 
   21627 #ifdef __STDC__
   21628 # include <limits.h>
   21629 #else
   21630 # include <assert.h>
   21631 #endif
   21632 
   21633 #undef $ac_func
   21634 
   21635 /* Override any GCC internal prototype to avoid an error.
   21636    Use char because int might match the return type of a GCC
   21637    builtin and then its argument prototype would still apply.  */
   21638 #ifdef __cplusplus
   21639 extern "C"
   21640 #endif
   21641 char $ac_func ();
   21642 /* The GNU C library defines this for functions which it implements
   21643     to always fail with ENOSYS.  Some functions are actually named
   21644     something starting with __ and the normal name is an alias.  */
   21645 #if defined __stub_$ac_func || defined __stub___$ac_func
   21646 choke me
   21647 #endif
   21648 
   21649 int
   21650 main ()
   21651 {
   21652 return $ac_func ();
   21653   ;
   21654   return 0;
   21655 }
   21656 _ACEOF
   21657 rm -f conftest.$ac_objext conftest$ac_exeext
   21658 if { (ac_try="$ac_link"
   21659 case "(($ac_try" in
   21660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21661   *) ac_try_echo=$ac_try;;
   21662 esac
   21663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21664   (eval "$ac_link") 2>conftest.er1
   21665   ac_status=$?
   21666   grep -v '^ *+' conftest.er1 >conftest.err
   21667   rm -f conftest.er1
   21668   cat conftest.err >&5
   21669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21670   (exit $ac_status); } && {
   21671 	 test -z "$ac_c_werror_flag" ||
   21672 	 test ! -s conftest.err
   21673        } && test -s conftest$ac_exeext &&
   21674        $as_test_x conftest$ac_exeext; then
   21675   eval "$as_ac_var=yes"
   21676 else
   21677   echo "$as_me: failed program was:" >&5
   21678 sed 's/^/| /' conftest.$ac_ext >&5
   21679 
   21680 	eval "$as_ac_var=no"
   21681 fi
   21682 
   21683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21684       conftest$ac_exeext conftest.$ac_ext
   21685 fi
   21686 ac_res=`eval echo '${'$as_ac_var'}'`
   21687 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21688 echo "${ECHO_T}$ac_res" >&6; }
   21689 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21690   cat >>confdefs.h <<_ACEOF
   21691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21692 _ACEOF
   21693 
   21694 fi
   21695 done
   21696 
   21697 
   21698 
   21699 
   21700 for ac_func in closedir opendir readdir
   21701 do
   21702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
   21703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
   21704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
   21705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
   21706   echo $ECHO_N "(cached) $ECHO_C" >&6
   21707 else
   21708   cat >conftest.$ac_ext <<_ACEOF
   21709 /* confdefs.h.  */
   21710 _ACEOF
   21711 cat confdefs.h >>conftest.$ac_ext
   21712 cat >>conftest.$ac_ext <<_ACEOF
   21713 /* end confdefs.h.  */
   21714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
   21715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   21716 #define $ac_func innocuous_$ac_func
   21717 
   21718 /* System header to define __stub macros and hopefully few prototypes,
   21719     which can conflict with char $ac_func (); below.
   21720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   21721     <limits.h> exists even on freestanding compilers.  */
   21722 
   21723 #ifdef __STDC__
   21724 # include <limits.h>
   21725 #else
   21726 # include <assert.h>
   21727 #endif
   21728 
   21729 #undef $ac_func
   21730 
   21731 /* Override any GCC internal prototype to avoid an error.
   21732    Use char because int might match the return type of a GCC
   21733    builtin and then its argument prototype would still apply.  */
   21734 #ifdef __cplusplus
   21735 extern "C"
   21736 #endif
   21737 char $ac_func ();
   21738 /* The GNU C library defines this for functions which it implements
   21739     to always fail with ENOSYS.  Some functions are actually named
   21740     something starting with __ and the normal name is an alias.  */
   21741 #if defined __stub_$ac_func || defined __stub___$ac_func
   21742 choke me
   21743 #endif
   21744 
   21745 int
   21746 main ()
   21747 {
   21748 return $ac_func ();
   21749   ;
   21750   return 0;
   21751 }
   21752 _ACEOF
   21753 rm -f conftest.$ac_objext conftest$ac_exeext
   21754 if { (ac_try="$ac_link"
   21755 case "(($ac_try" in
   21756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21757   *) ac_try_echo=$ac_try;;
   21758 esac
   21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21760   (eval "$ac_link") 2>conftest.er1
   21761   ac_status=$?
   21762   grep -v '^ *+' conftest.er1 >conftest.err
   21763   rm -f conftest.er1
   21764   cat conftest.err >&5
   21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21766   (exit $ac_status); } && {
   21767 	 test -z "$ac_c_werror_flag" ||
   21768 	 test ! -s conftest.err
   21769        } && test -s conftest$ac_exeext &&
   21770        $as_test_x conftest$ac_exeext; then
   21771   eval "$as_ac_var=yes"
   21772 else
   21773   echo "$as_me: failed program was:" >&5
   21774 sed 's/^/| /' conftest.$ac_ext >&5
   21775 
   21776 	eval "$as_ac_var=no"
   21777 fi
   21778 
   21779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21780       conftest$ac_exeext conftest.$ac_ext
   21781 fi
   21782 ac_res=`eval echo '${'$as_ac_var'}'`
   21783 	       { echo "$as_me:$LINENO: result: $ac_res" >&5
   21784 echo "${ECHO_T}$ac_res" >&6; }
   21785 if test `eval echo '${'$as_ac_var'}'` = yes; then
   21786   cat >>confdefs.h <<_ACEOF
   21787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
   21788 _ACEOF
   21789 
   21790 fi
   21791 done
   21792 
   21793 
   21794 
   21795 { echo "$as_me:$LINENO: checking for X" >&5
   21796 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
   21797 
   21798 
   21799 # Check whether --with-x was given.
   21800 if test "${with_x+set}" = set; then
   21801   withval=$with_x;
   21802 fi
   21803 
   21804 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   21805 if test "x$with_x" = xno; then
   21806   # The user explicitly disabled X.
   21807   have_x=disabled
   21808 else
   21809   case $x_includes,$x_libraries in #(
   21810     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
   21811 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
   21812    { (exit 1); exit 1; }; };; #(
   21813     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
   21814   echo $ECHO_N "(cached) $ECHO_C" >&6
   21815 else
   21816   # One or both of the vars are not set, and there is no cached value.
   21817 ac_x_includes=no ac_x_libraries=no
   21818 rm -f -r conftest.dir
   21819 if mkdir conftest.dir; then
   21820   cd conftest.dir
   21821   cat >Imakefile <<'_ACEOF'
   21822 incroot:
   21823 	@echo incroot='${INCROOT}'
   21824 usrlibdir:
   21825 	@echo usrlibdir='${USRLIBDIR}'
   21826 libdir:
   21827 	@echo libdir='${LIBDIR}'
   21828 _ACEOF
   21829   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
   21830     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   21831     for ac_var in incroot usrlibdir libdir; do
   21832       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
   21833     done
   21834     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   21835     for ac_extension in a so sl; do
   21836       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
   21837 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
   21838 	ac_im_usrlibdir=$ac_im_libdir; break
   21839       fi
   21840     done
   21841     # Screen out bogus values from the imake configuration.  They are
   21842     # bogus both because they are the default anyway, and because
   21843     # using them would break gcc on systems where it needs fixed includes.
   21844     case $ac_im_incroot in
   21845 	/usr/include) ac_x_includes= ;;
   21846 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   21847     esac
   21848     case $ac_im_usrlibdir in
   21849 	/usr/lib | /lib) ;;
   21850 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   21851     esac
   21852   fi
   21853   cd ..
   21854   rm -f -r conftest.dir
   21855 fi
   21856 
   21857 # Standard set of common directories for X headers.
   21858 # Check X11 before X11Rn because it is often a symlink to the current release.
   21859 ac_x_header_dirs='
   21860 /usr/X11/include
   21861 /usr/X11R6/include
   21862 /usr/X11R5/include
   21863 /usr/X11R4/include
   21864 
   21865 /usr/include/X11
   21866 /usr/include/X11R6
   21867 /usr/include/X11R5
   21868 /usr/include/X11R4
   21869 
   21870 /usr/local/X11/include
   21871 /usr/local/X11R6/include
   21872 /usr/local/X11R5/include
   21873 /usr/local/X11R4/include
   21874 
   21875 /usr/local/include/X11
   21876 /usr/local/include/X11R6
   21877 /usr/local/include/X11R5
   21878 /usr/local/include/X11R4
   21879 
   21880 /usr/X386/include
   21881 /usr/x386/include
   21882 /usr/XFree86/include/X11
   21883 
   21884 /usr/include
   21885 /usr/local/include
   21886 /usr/unsupported/include
   21887 /usr/athena/include
   21888 /usr/local/x11r5/include
   21889 /usr/lpp/Xamples/include
   21890 
   21891 /usr/openwin/include
   21892 /usr/openwin/share/include'
   21893 
   21894 if test "$ac_x_includes" = no; then
   21895   # Guess where to find include files, by looking for Xlib.h.
   21896   # First, try using that file with no special directory specified.
   21897   cat >conftest.$ac_ext <<_ACEOF
   21898 /* confdefs.h.  */
   21899 _ACEOF
   21900 cat confdefs.h >>conftest.$ac_ext
   21901 cat >>conftest.$ac_ext <<_ACEOF
   21902 /* end confdefs.h.  */
   21903 #include <X11/Xlib.h>
   21904 _ACEOF
   21905 if { (ac_try="$ac_cpp conftest.$ac_ext"
   21906 case "(($ac_try" in
   21907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21908   *) ac_try_echo=$ac_try;;
   21909 esac
   21910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21911   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
   21912   ac_status=$?
   21913   grep -v '^ *+' conftest.er1 >conftest.err
   21914   rm -f conftest.er1
   21915   cat conftest.err >&5
   21916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21917   (exit $ac_status); } >/dev/null && {
   21918 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   21919 	 test ! -s conftest.err
   21920        }; then
   21921   # We can compile using X headers with no special include directory.
   21922 ac_x_includes=
   21923 else
   21924   echo "$as_me: failed program was:" >&5
   21925 sed 's/^/| /' conftest.$ac_ext >&5
   21926 
   21927   for ac_dir in $ac_x_header_dirs; do
   21928   if test -r "$ac_dir/X11/Xlib.h"; then
   21929     ac_x_includes=$ac_dir
   21930     break
   21931   fi
   21932 done
   21933 fi
   21934 
   21935 rm -f conftest.err conftest.$ac_ext
   21936 fi # $ac_x_includes = no
   21937 
   21938 if test "$ac_x_libraries" = no; then
   21939   # Check for the libraries.
   21940   # See if we find them without any special options.
   21941   # Don't add to $LIBS permanently.
   21942   ac_save_LIBS=$LIBS
   21943   LIBS="-lX11 $LIBS"
   21944   cat >conftest.$ac_ext <<_ACEOF
   21945 /* confdefs.h.  */
   21946 _ACEOF
   21947 cat confdefs.h >>conftest.$ac_ext
   21948 cat >>conftest.$ac_ext <<_ACEOF
   21949 /* end confdefs.h.  */
   21950 #include <X11/Xlib.h>
   21951 int
   21952 main ()
   21953 {
   21954 XrmInitialize ()
   21955   ;
   21956   return 0;
   21957 }
   21958 _ACEOF
   21959 rm -f conftest.$ac_objext conftest$ac_exeext
   21960 if { (ac_try="$ac_link"
   21961 case "(($ac_try" in
   21962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   21963   *) ac_try_echo=$ac_try;;
   21964 esac
   21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   21966   (eval "$ac_link") 2>conftest.er1
   21967   ac_status=$?
   21968   grep -v '^ *+' conftest.er1 >conftest.err
   21969   rm -f conftest.er1
   21970   cat conftest.err >&5
   21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   21972   (exit $ac_status); } && {
   21973 	 test -z "$ac_c_werror_flag" ||
   21974 	 test ! -s conftest.err
   21975        } && test -s conftest$ac_exeext &&
   21976        $as_test_x conftest$ac_exeext; then
   21977   LIBS=$ac_save_LIBS
   21978 # We can link X programs with no special library path.
   21979 ac_x_libraries=
   21980 else
   21981   echo "$as_me: failed program was:" >&5
   21982 sed 's/^/| /' conftest.$ac_ext >&5
   21983 
   21984 	LIBS=$ac_save_LIBS
   21985 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   21986 do
   21987   # Don't even attempt the hair of trying to link an X program!
   21988   for ac_extension in a so sl; do
   21989     if test -r "$ac_dir/libX11.$ac_extension"; then
   21990       ac_x_libraries=$ac_dir
   21991       break 2
   21992     fi
   21993   done
   21994 done
   21995 fi
   21996 
   21997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   21998       conftest$ac_exeext conftest.$ac_ext
   21999 fi # $ac_x_libraries = no
   22000 
   22001 case $ac_x_includes,$ac_x_libraries in #(
   22002   no,* | *,no | *\'*)
   22003     # Didn't find X, or a directory has "'" in its name.
   22004     ac_cv_have_x="have_x=no";; #(
   22005   *)
   22006     # Record where we found X for the cache.
   22007     ac_cv_have_x="have_x=yes\
   22008 	ac_x_includes='$ac_x_includes'\
   22009 	ac_x_libraries='$ac_x_libraries'"
   22010 esac
   22011 fi
   22012 ;; #(
   22013     *) have_x=yes;;
   22014   esac
   22015   eval "$ac_cv_have_x"
   22016 fi # $with_x != no
   22017 
   22018 if test "$have_x" != yes; then
   22019   { echo "$as_me:$LINENO: result: $have_x" >&5
   22020 echo "${ECHO_T}$have_x" >&6; }
   22021   no_x=yes
   22022 else
   22023   # If each of the values was on the command line, it overrides each guess.
   22024   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   22025   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   22026   # Update the cache value to reflect the command line values.
   22027   ac_cv_have_x="have_x=yes\
   22028 	ac_x_includes='$x_includes'\
   22029 	ac_x_libraries='$x_libraries'"
   22030   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
   22031 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
   22032 fi
   22033 
   22034 if test "$no_x" = yes; then
   22035   # Not all programs may use this symbol, but it does not hurt to define it.
   22036 
   22037 cat >>confdefs.h <<\_ACEOF
   22038 #define X_DISPLAY_MISSING 1
   22039 _ACEOF
   22040 
   22041   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
   22042 else
   22043   if test -n "$x_includes"; then
   22044     X_CFLAGS="$X_CFLAGS -I$x_includes"
   22045   fi
   22046 
   22047   # It would also be nice to do this for all -L options, not just this one.
   22048   if test -n "$x_libraries"; then
   22049     X_LIBS="$X_LIBS -L$x_libraries"
   22050     # For Solaris; some versions of Sun CC require a space after -R and
   22051     # others require no space.  Words are not sufficient . . . .
   22052     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
   22053 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
   22054     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
   22055     ac_xsave_c_werror_flag=$ac_c_werror_flag
   22056     ac_c_werror_flag=yes
   22057     cat >conftest.$ac_ext <<_ACEOF
   22058 /* confdefs.h.  */
   22059 _ACEOF
   22060 cat confdefs.h >>conftest.$ac_ext
   22061 cat >>conftest.$ac_ext <<_ACEOF
   22062 /* end confdefs.h.  */
   22063 
   22064 int
   22065 main ()
   22066 {
   22067 
   22068   ;
   22069   return 0;
   22070 }
   22071 _ACEOF
   22072 rm -f conftest.$ac_objext conftest$ac_exeext
   22073 if { (ac_try="$ac_link"
   22074 case "(($ac_try" in
   22075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22076   *) ac_try_echo=$ac_try;;
   22077 esac
   22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22079   (eval "$ac_link") 2>conftest.er1
   22080   ac_status=$?
   22081   grep -v '^ *+' conftest.er1 >conftest.err
   22082   rm -f conftest.er1
   22083   cat conftest.err >&5
   22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22085   (exit $ac_status); } && {
   22086 	 test -z "$ac_c_werror_flag" ||
   22087 	 test ! -s conftest.err
   22088        } && test -s conftest$ac_exeext &&
   22089        $as_test_x conftest$ac_exeext; then
   22090   { echo "$as_me:$LINENO: result: no" >&5
   22091 echo "${ECHO_T}no" >&6; }
   22092        X_LIBS="$X_LIBS -R$x_libraries"
   22093 else
   22094   echo "$as_me: failed program was:" >&5
   22095 sed 's/^/| /' conftest.$ac_ext >&5
   22096 
   22097 	LIBS="$ac_xsave_LIBS -R $x_libraries"
   22098        cat >conftest.$ac_ext <<_ACEOF
   22099 /* confdefs.h.  */
   22100 _ACEOF
   22101 cat confdefs.h >>conftest.$ac_ext
   22102 cat >>conftest.$ac_ext <<_ACEOF
   22103 /* end confdefs.h.  */
   22104 
   22105 int
   22106 main ()
   22107 {
   22108 
   22109   ;
   22110   return 0;
   22111 }
   22112 _ACEOF
   22113 rm -f conftest.$ac_objext conftest$ac_exeext
   22114 if { (ac_try="$ac_link"
   22115 case "(($ac_try" in
   22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22117   *) ac_try_echo=$ac_try;;
   22118 esac
   22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22120   (eval "$ac_link") 2>conftest.er1
   22121   ac_status=$?
   22122   grep -v '^ *+' conftest.er1 >conftest.err
   22123   rm -f conftest.er1
   22124   cat conftest.err >&5
   22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22126   (exit $ac_status); } && {
   22127 	 test -z "$ac_c_werror_flag" ||
   22128 	 test ! -s conftest.err
   22129        } && test -s conftest$ac_exeext &&
   22130        $as_test_x conftest$ac_exeext; then
   22131   { echo "$as_me:$LINENO: result: yes" >&5
   22132 echo "${ECHO_T}yes" >&6; }
   22133 	  X_LIBS="$X_LIBS -R $x_libraries"
   22134 else
   22135   echo "$as_me: failed program was:" >&5
   22136 sed 's/^/| /' conftest.$ac_ext >&5
   22137 
   22138 	{ echo "$as_me:$LINENO: result: neither works" >&5
   22139 echo "${ECHO_T}neither works" >&6; }
   22140 fi
   22141 
   22142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22143       conftest$ac_exeext conftest.$ac_ext
   22144 fi
   22145 
   22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22147       conftest$ac_exeext conftest.$ac_ext
   22148     ac_c_werror_flag=$ac_xsave_c_werror_flag
   22149     LIBS=$ac_xsave_LIBS
   22150   fi
   22151 
   22152   # Check for system-dependent libraries X programs must link with.
   22153   # Do this before checking for the system-independent R6 libraries
   22154   # (-lICE), since we may need -lsocket or whatever for X linking.
   22155 
   22156   if test "$ISC" = yes; then
   22157     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
   22158   else
   22159     # Martyn Johnson says this is needed for Ultrix, if the X
   22160     # libraries were built with DECnet support.  And Karl Berry says
   22161     # the Alpha needs dnet_stub (dnet does not exist).
   22162     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
   22163     cat >conftest.$ac_ext <<_ACEOF
   22164 /* confdefs.h.  */
   22165 _ACEOF
   22166 cat confdefs.h >>conftest.$ac_ext
   22167 cat >>conftest.$ac_ext <<_ACEOF
   22168 /* end confdefs.h.  */
   22169 
   22170 /* Override any GCC internal prototype to avoid an error.
   22171    Use char because int might match the return type of a GCC
   22172    builtin and then its argument prototype would still apply.  */
   22173 #ifdef __cplusplus
   22174 extern "C"
   22175 #endif
   22176 char XOpenDisplay ();
   22177 int
   22178 main ()
   22179 {
   22180 return XOpenDisplay ();
   22181   ;
   22182   return 0;
   22183 }
   22184 _ACEOF
   22185 rm -f conftest.$ac_objext conftest$ac_exeext
   22186 if { (ac_try="$ac_link"
   22187 case "(($ac_try" in
   22188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22189   *) ac_try_echo=$ac_try;;
   22190 esac
   22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22192   (eval "$ac_link") 2>conftest.er1
   22193   ac_status=$?
   22194   grep -v '^ *+' conftest.er1 >conftest.err
   22195   rm -f conftest.er1
   22196   cat conftest.err >&5
   22197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22198   (exit $ac_status); } && {
   22199 	 test -z "$ac_c_werror_flag" ||
   22200 	 test ! -s conftest.err
   22201        } && test -s conftest$ac_exeext &&
   22202        $as_test_x conftest$ac_exeext; then
   22203   :
   22204 else
   22205   echo "$as_me: failed program was:" >&5
   22206 sed 's/^/| /' conftest.$ac_ext >&5
   22207 
   22208 	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
   22209 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
   22210 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
   22211   echo $ECHO_N "(cached) $ECHO_C" >&6
   22212 else
   22213   ac_check_lib_save_LIBS=$LIBS
   22214 LIBS="-ldnet  $LIBS"
   22215 cat >conftest.$ac_ext <<_ACEOF
   22216 /* confdefs.h.  */
   22217 _ACEOF
   22218 cat confdefs.h >>conftest.$ac_ext
   22219 cat >>conftest.$ac_ext <<_ACEOF
   22220 /* end confdefs.h.  */
   22221 
   22222 /* Override any GCC internal prototype to avoid an error.
   22223    Use char because int might match the return type of a GCC
   22224    builtin and then its argument prototype would still apply.  */
   22225 #ifdef __cplusplus
   22226 extern "C"
   22227 #endif
   22228 char dnet_ntoa ();
   22229 int
   22230 main ()
   22231 {
   22232 return dnet_ntoa ();
   22233   ;
   22234   return 0;
   22235 }
   22236 _ACEOF
   22237 rm -f conftest.$ac_objext conftest$ac_exeext
   22238 if { (ac_try="$ac_link"
   22239 case "(($ac_try" in
   22240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22241   *) ac_try_echo=$ac_try;;
   22242 esac
   22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22244   (eval "$ac_link") 2>conftest.er1
   22245   ac_status=$?
   22246   grep -v '^ *+' conftest.er1 >conftest.err
   22247   rm -f conftest.er1
   22248   cat conftest.err >&5
   22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22250   (exit $ac_status); } && {
   22251 	 test -z "$ac_c_werror_flag" ||
   22252 	 test ! -s conftest.err
   22253        } && test -s conftest$ac_exeext &&
   22254        $as_test_x conftest$ac_exeext; then
   22255   ac_cv_lib_dnet_dnet_ntoa=yes
   22256 else
   22257   echo "$as_me: failed program was:" >&5
   22258 sed 's/^/| /' conftest.$ac_ext >&5
   22259 
   22260 	ac_cv_lib_dnet_dnet_ntoa=no
   22261 fi
   22262 
   22263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22264       conftest$ac_exeext conftest.$ac_ext
   22265 LIBS=$ac_check_lib_save_LIBS
   22266 fi
   22267 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
   22268 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
   22269 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
   22270   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
   22271 fi
   22272 
   22273     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
   22274       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
   22275 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
   22276 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
   22277   echo $ECHO_N "(cached) $ECHO_C" >&6
   22278 else
   22279   ac_check_lib_save_LIBS=$LIBS
   22280 LIBS="-ldnet_stub  $LIBS"
   22281 cat >conftest.$ac_ext <<_ACEOF
   22282 /* confdefs.h.  */
   22283 _ACEOF
   22284 cat confdefs.h >>conftest.$ac_ext
   22285 cat >>conftest.$ac_ext <<_ACEOF
   22286 /* end confdefs.h.  */
   22287 
   22288 /* Override any GCC internal prototype to avoid an error.
   22289    Use char because int might match the return type of a GCC
   22290    builtin and then its argument prototype would still apply.  */
   22291 #ifdef __cplusplus
   22292 extern "C"
   22293 #endif
   22294 char dnet_ntoa ();
   22295 int
   22296 main ()
   22297 {
   22298 return dnet_ntoa ();
   22299   ;
   22300   return 0;
   22301 }
   22302 _ACEOF
   22303 rm -f conftest.$ac_objext conftest$ac_exeext
   22304 if { (ac_try="$ac_link"
   22305 case "(($ac_try" in
   22306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22307   *) ac_try_echo=$ac_try;;
   22308 esac
   22309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22310   (eval "$ac_link") 2>conftest.er1
   22311   ac_status=$?
   22312   grep -v '^ *+' conftest.er1 >conftest.err
   22313   rm -f conftest.er1
   22314   cat conftest.err >&5
   22315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22316   (exit $ac_status); } && {
   22317 	 test -z "$ac_c_werror_flag" ||
   22318 	 test ! -s conftest.err
   22319        } && test -s conftest$ac_exeext &&
   22320        $as_test_x conftest$ac_exeext; then
   22321   ac_cv_lib_dnet_stub_dnet_ntoa=yes
   22322 else
   22323   echo "$as_me: failed program was:" >&5
   22324 sed 's/^/| /' conftest.$ac_ext >&5
   22325 
   22326 	ac_cv_lib_dnet_stub_dnet_ntoa=no
   22327 fi
   22328 
   22329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22330       conftest$ac_exeext conftest.$ac_ext
   22331 LIBS=$ac_check_lib_save_LIBS
   22332 fi
   22333 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
   22334 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
   22335 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
   22336   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
   22337 fi
   22338 
   22339     fi
   22340 fi
   22341 
   22342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22343       conftest$ac_exeext conftest.$ac_ext
   22344     LIBS="$ac_xsave_LIBS"
   22345 
   22346     # msh (at] cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
   22347     # to get the SysV transport functions.
   22348     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
   22349     # needs -lnsl.
   22350     # The nsl library prevents programs from opening the X display
   22351     # on Irix 5.2, according to T.E. Dickey.
   22352     # The functions gethostbyname, getservbyname, and inet_addr are
   22353     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
   22354     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
   22355 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
   22356 if test "${ac_cv_func_gethostbyname+set}" = set; then
   22357   echo $ECHO_N "(cached) $ECHO_C" >&6
   22358 else
   22359   cat >conftest.$ac_ext <<_ACEOF
   22360 /* confdefs.h.  */
   22361 _ACEOF
   22362 cat confdefs.h >>conftest.$ac_ext
   22363 cat >>conftest.$ac_ext <<_ACEOF
   22364 /* end confdefs.h.  */
   22365 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
   22366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22367 #define gethostbyname innocuous_gethostbyname
   22368 
   22369 /* System header to define __stub macros and hopefully few prototypes,
   22370     which can conflict with char gethostbyname (); below.
   22371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22372     <limits.h> exists even on freestanding compilers.  */
   22373 
   22374 #ifdef __STDC__
   22375 # include <limits.h>
   22376 #else
   22377 # include <assert.h>
   22378 #endif
   22379 
   22380 #undef gethostbyname
   22381 
   22382 /* Override any GCC internal prototype to avoid an error.
   22383    Use char because int might match the return type of a GCC
   22384    builtin and then its argument prototype would still apply.  */
   22385 #ifdef __cplusplus
   22386 extern "C"
   22387 #endif
   22388 char gethostbyname ();
   22389 /* The GNU C library defines this for functions which it implements
   22390     to always fail with ENOSYS.  Some functions are actually named
   22391     something starting with __ and the normal name is an alias.  */
   22392 #if defined __stub_gethostbyname || defined __stub___gethostbyname
   22393 choke me
   22394 #endif
   22395 
   22396 int
   22397 main ()
   22398 {
   22399 return gethostbyname ();
   22400   ;
   22401   return 0;
   22402 }
   22403 _ACEOF
   22404 rm -f conftest.$ac_objext conftest$ac_exeext
   22405 if { (ac_try="$ac_link"
   22406 case "(($ac_try" in
   22407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22408   *) ac_try_echo=$ac_try;;
   22409 esac
   22410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22411   (eval "$ac_link") 2>conftest.er1
   22412   ac_status=$?
   22413   grep -v '^ *+' conftest.er1 >conftest.err
   22414   rm -f conftest.er1
   22415   cat conftest.err >&5
   22416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22417   (exit $ac_status); } && {
   22418 	 test -z "$ac_c_werror_flag" ||
   22419 	 test ! -s conftest.err
   22420        } && test -s conftest$ac_exeext &&
   22421        $as_test_x conftest$ac_exeext; then
   22422   ac_cv_func_gethostbyname=yes
   22423 else
   22424   echo "$as_me: failed program was:" >&5
   22425 sed 's/^/| /' conftest.$ac_ext >&5
   22426 
   22427 	ac_cv_func_gethostbyname=no
   22428 fi
   22429 
   22430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22431       conftest$ac_exeext conftest.$ac_ext
   22432 fi
   22433 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
   22434 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
   22435 
   22436     if test $ac_cv_func_gethostbyname = no; then
   22437       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
   22438 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
   22439 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
   22440   echo $ECHO_N "(cached) $ECHO_C" >&6
   22441 else
   22442   ac_check_lib_save_LIBS=$LIBS
   22443 LIBS="-lnsl  $LIBS"
   22444 cat >conftest.$ac_ext <<_ACEOF
   22445 /* confdefs.h.  */
   22446 _ACEOF
   22447 cat confdefs.h >>conftest.$ac_ext
   22448 cat >>conftest.$ac_ext <<_ACEOF
   22449 /* end confdefs.h.  */
   22450 
   22451 /* Override any GCC internal prototype to avoid an error.
   22452    Use char because int might match the return type of a GCC
   22453    builtin and then its argument prototype would still apply.  */
   22454 #ifdef __cplusplus
   22455 extern "C"
   22456 #endif
   22457 char gethostbyname ();
   22458 int
   22459 main ()
   22460 {
   22461 return gethostbyname ();
   22462   ;
   22463   return 0;
   22464 }
   22465 _ACEOF
   22466 rm -f conftest.$ac_objext conftest$ac_exeext
   22467 if { (ac_try="$ac_link"
   22468 case "(($ac_try" in
   22469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22470   *) ac_try_echo=$ac_try;;
   22471 esac
   22472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22473   (eval "$ac_link") 2>conftest.er1
   22474   ac_status=$?
   22475   grep -v '^ *+' conftest.er1 >conftest.err
   22476   rm -f conftest.er1
   22477   cat conftest.err >&5
   22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22479   (exit $ac_status); } && {
   22480 	 test -z "$ac_c_werror_flag" ||
   22481 	 test ! -s conftest.err
   22482        } && test -s conftest$ac_exeext &&
   22483        $as_test_x conftest$ac_exeext; then
   22484   ac_cv_lib_nsl_gethostbyname=yes
   22485 else
   22486   echo "$as_me: failed program was:" >&5
   22487 sed 's/^/| /' conftest.$ac_ext >&5
   22488 
   22489 	ac_cv_lib_nsl_gethostbyname=no
   22490 fi
   22491 
   22492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22493       conftest$ac_exeext conftest.$ac_ext
   22494 LIBS=$ac_check_lib_save_LIBS
   22495 fi
   22496 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
   22497 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
   22498 if test $ac_cv_lib_nsl_gethostbyname = yes; then
   22499   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
   22500 fi
   22501 
   22502       if test $ac_cv_lib_nsl_gethostbyname = no; then
   22503 	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
   22504 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
   22505 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
   22506   echo $ECHO_N "(cached) $ECHO_C" >&6
   22507 else
   22508   ac_check_lib_save_LIBS=$LIBS
   22509 LIBS="-lbsd  $LIBS"
   22510 cat >conftest.$ac_ext <<_ACEOF
   22511 /* confdefs.h.  */
   22512 _ACEOF
   22513 cat confdefs.h >>conftest.$ac_ext
   22514 cat >>conftest.$ac_ext <<_ACEOF
   22515 /* end confdefs.h.  */
   22516 
   22517 /* Override any GCC internal prototype to avoid an error.
   22518    Use char because int might match the return type of a GCC
   22519    builtin and then its argument prototype would still apply.  */
   22520 #ifdef __cplusplus
   22521 extern "C"
   22522 #endif
   22523 char gethostbyname ();
   22524 int
   22525 main ()
   22526 {
   22527 return gethostbyname ();
   22528   ;
   22529   return 0;
   22530 }
   22531 _ACEOF
   22532 rm -f conftest.$ac_objext conftest$ac_exeext
   22533 if { (ac_try="$ac_link"
   22534 case "(($ac_try" in
   22535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22536   *) ac_try_echo=$ac_try;;
   22537 esac
   22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22539   (eval "$ac_link") 2>conftest.er1
   22540   ac_status=$?
   22541   grep -v '^ *+' conftest.er1 >conftest.err
   22542   rm -f conftest.er1
   22543   cat conftest.err >&5
   22544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22545   (exit $ac_status); } && {
   22546 	 test -z "$ac_c_werror_flag" ||
   22547 	 test ! -s conftest.err
   22548        } && test -s conftest$ac_exeext &&
   22549        $as_test_x conftest$ac_exeext; then
   22550   ac_cv_lib_bsd_gethostbyname=yes
   22551 else
   22552   echo "$as_me: failed program was:" >&5
   22553 sed 's/^/| /' conftest.$ac_ext >&5
   22554 
   22555 	ac_cv_lib_bsd_gethostbyname=no
   22556 fi
   22557 
   22558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22559       conftest$ac_exeext conftest.$ac_ext
   22560 LIBS=$ac_check_lib_save_LIBS
   22561 fi
   22562 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
   22563 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
   22564 if test $ac_cv_lib_bsd_gethostbyname = yes; then
   22565   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
   22566 fi
   22567 
   22568       fi
   22569     fi
   22570 
   22571     # lieder (at] skyler.mavd.honeywell.com says without -lsocket,
   22572     # socket/setsockopt and other routines are undefined under SCO ODT
   22573     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
   22574     # on later versions), says Simon Leinen: it contains gethostby*
   22575     # variants that don't use the name server (or something).  -lsocket
   22576     # must be given before -lnsl if both are needed.  We assume that
   22577     # if connect needs -lnsl, so does gethostbyname.
   22578     { echo "$as_me:$LINENO: checking for connect" >&5
   22579 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
   22580 if test "${ac_cv_func_connect+set}" = set; then
   22581   echo $ECHO_N "(cached) $ECHO_C" >&6
   22582 else
   22583   cat >conftest.$ac_ext <<_ACEOF
   22584 /* confdefs.h.  */
   22585 _ACEOF
   22586 cat confdefs.h >>conftest.$ac_ext
   22587 cat >>conftest.$ac_ext <<_ACEOF
   22588 /* end confdefs.h.  */
   22589 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
   22590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22591 #define connect innocuous_connect
   22592 
   22593 /* System header to define __stub macros and hopefully few prototypes,
   22594     which can conflict with char connect (); below.
   22595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22596     <limits.h> exists even on freestanding compilers.  */
   22597 
   22598 #ifdef __STDC__
   22599 # include <limits.h>
   22600 #else
   22601 # include <assert.h>
   22602 #endif
   22603 
   22604 #undef connect
   22605 
   22606 /* Override any GCC internal prototype to avoid an error.
   22607    Use char because int might match the return type of a GCC
   22608    builtin and then its argument prototype would still apply.  */
   22609 #ifdef __cplusplus
   22610 extern "C"
   22611 #endif
   22612 char connect ();
   22613 /* The GNU C library defines this for functions which it implements
   22614     to always fail with ENOSYS.  Some functions are actually named
   22615     something starting with __ and the normal name is an alias.  */
   22616 #if defined __stub_connect || defined __stub___connect
   22617 choke me
   22618 #endif
   22619 
   22620 int
   22621 main ()
   22622 {
   22623 return connect ();
   22624   ;
   22625   return 0;
   22626 }
   22627 _ACEOF
   22628 rm -f conftest.$ac_objext conftest$ac_exeext
   22629 if { (ac_try="$ac_link"
   22630 case "(($ac_try" in
   22631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22632   *) ac_try_echo=$ac_try;;
   22633 esac
   22634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22635   (eval "$ac_link") 2>conftest.er1
   22636   ac_status=$?
   22637   grep -v '^ *+' conftest.er1 >conftest.err
   22638   rm -f conftest.er1
   22639   cat conftest.err >&5
   22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22641   (exit $ac_status); } && {
   22642 	 test -z "$ac_c_werror_flag" ||
   22643 	 test ! -s conftest.err
   22644        } && test -s conftest$ac_exeext &&
   22645        $as_test_x conftest$ac_exeext; then
   22646   ac_cv_func_connect=yes
   22647 else
   22648   echo "$as_me: failed program was:" >&5
   22649 sed 's/^/| /' conftest.$ac_ext >&5
   22650 
   22651 	ac_cv_func_connect=no
   22652 fi
   22653 
   22654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22655       conftest$ac_exeext conftest.$ac_ext
   22656 fi
   22657 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
   22658 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
   22659 
   22660     if test $ac_cv_func_connect = no; then
   22661       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
   22662 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
   22663 if test "${ac_cv_lib_socket_connect+set}" = set; then
   22664   echo $ECHO_N "(cached) $ECHO_C" >&6
   22665 else
   22666   ac_check_lib_save_LIBS=$LIBS
   22667 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
   22668 cat >conftest.$ac_ext <<_ACEOF
   22669 /* confdefs.h.  */
   22670 _ACEOF
   22671 cat confdefs.h >>conftest.$ac_ext
   22672 cat >>conftest.$ac_ext <<_ACEOF
   22673 /* end confdefs.h.  */
   22674 
   22675 /* Override any GCC internal prototype to avoid an error.
   22676    Use char because int might match the return type of a GCC
   22677    builtin and then its argument prototype would still apply.  */
   22678 #ifdef __cplusplus
   22679 extern "C"
   22680 #endif
   22681 char connect ();
   22682 int
   22683 main ()
   22684 {
   22685 return connect ();
   22686   ;
   22687   return 0;
   22688 }
   22689 _ACEOF
   22690 rm -f conftest.$ac_objext conftest$ac_exeext
   22691 if { (ac_try="$ac_link"
   22692 case "(($ac_try" in
   22693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22694   *) ac_try_echo=$ac_try;;
   22695 esac
   22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22697   (eval "$ac_link") 2>conftest.er1
   22698   ac_status=$?
   22699   grep -v '^ *+' conftest.er1 >conftest.err
   22700   rm -f conftest.er1
   22701   cat conftest.err >&5
   22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22703   (exit $ac_status); } && {
   22704 	 test -z "$ac_c_werror_flag" ||
   22705 	 test ! -s conftest.err
   22706        } && test -s conftest$ac_exeext &&
   22707        $as_test_x conftest$ac_exeext; then
   22708   ac_cv_lib_socket_connect=yes
   22709 else
   22710   echo "$as_me: failed program was:" >&5
   22711 sed 's/^/| /' conftest.$ac_ext >&5
   22712 
   22713 	ac_cv_lib_socket_connect=no
   22714 fi
   22715 
   22716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22717       conftest$ac_exeext conftest.$ac_ext
   22718 LIBS=$ac_check_lib_save_LIBS
   22719 fi
   22720 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
   22721 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
   22722 if test $ac_cv_lib_socket_connect = yes; then
   22723   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
   22724 fi
   22725 
   22726     fi
   22727 
   22728     # Guillermo Gomez says -lposix is necessary on A/UX.
   22729     { echo "$as_me:$LINENO: checking for remove" >&5
   22730 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
   22731 if test "${ac_cv_func_remove+set}" = set; then
   22732   echo $ECHO_N "(cached) $ECHO_C" >&6
   22733 else
   22734   cat >conftest.$ac_ext <<_ACEOF
   22735 /* confdefs.h.  */
   22736 _ACEOF
   22737 cat confdefs.h >>conftest.$ac_ext
   22738 cat >>conftest.$ac_ext <<_ACEOF
   22739 /* end confdefs.h.  */
   22740 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
   22741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22742 #define remove innocuous_remove
   22743 
   22744 /* System header to define __stub macros and hopefully few prototypes,
   22745     which can conflict with char remove (); below.
   22746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22747     <limits.h> exists even on freestanding compilers.  */
   22748 
   22749 #ifdef __STDC__
   22750 # include <limits.h>
   22751 #else
   22752 # include <assert.h>
   22753 #endif
   22754 
   22755 #undef remove
   22756 
   22757 /* Override any GCC internal prototype to avoid an error.
   22758    Use char because int might match the return type of a GCC
   22759    builtin and then its argument prototype would still apply.  */
   22760 #ifdef __cplusplus
   22761 extern "C"
   22762 #endif
   22763 char remove ();
   22764 /* The GNU C library defines this for functions which it implements
   22765     to always fail with ENOSYS.  Some functions are actually named
   22766     something starting with __ and the normal name is an alias.  */
   22767 #if defined __stub_remove || defined __stub___remove
   22768 choke me
   22769 #endif
   22770 
   22771 int
   22772 main ()
   22773 {
   22774 return remove ();
   22775   ;
   22776   return 0;
   22777 }
   22778 _ACEOF
   22779 rm -f conftest.$ac_objext conftest$ac_exeext
   22780 if { (ac_try="$ac_link"
   22781 case "(($ac_try" in
   22782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22783   *) ac_try_echo=$ac_try;;
   22784 esac
   22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22786   (eval "$ac_link") 2>conftest.er1
   22787   ac_status=$?
   22788   grep -v '^ *+' conftest.er1 >conftest.err
   22789   rm -f conftest.er1
   22790   cat conftest.err >&5
   22791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22792   (exit $ac_status); } && {
   22793 	 test -z "$ac_c_werror_flag" ||
   22794 	 test ! -s conftest.err
   22795        } && test -s conftest$ac_exeext &&
   22796        $as_test_x conftest$ac_exeext; then
   22797   ac_cv_func_remove=yes
   22798 else
   22799   echo "$as_me: failed program was:" >&5
   22800 sed 's/^/| /' conftest.$ac_ext >&5
   22801 
   22802 	ac_cv_func_remove=no
   22803 fi
   22804 
   22805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22806       conftest$ac_exeext conftest.$ac_ext
   22807 fi
   22808 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
   22809 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
   22810 
   22811     if test $ac_cv_func_remove = no; then
   22812       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
   22813 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
   22814 if test "${ac_cv_lib_posix_remove+set}" = set; then
   22815   echo $ECHO_N "(cached) $ECHO_C" >&6
   22816 else
   22817   ac_check_lib_save_LIBS=$LIBS
   22818 LIBS="-lposix  $LIBS"
   22819 cat >conftest.$ac_ext <<_ACEOF
   22820 /* confdefs.h.  */
   22821 _ACEOF
   22822 cat confdefs.h >>conftest.$ac_ext
   22823 cat >>conftest.$ac_ext <<_ACEOF
   22824 /* end confdefs.h.  */
   22825 
   22826 /* Override any GCC internal prototype to avoid an error.
   22827    Use char because int might match the return type of a GCC
   22828    builtin and then its argument prototype would still apply.  */
   22829 #ifdef __cplusplus
   22830 extern "C"
   22831 #endif
   22832 char remove ();
   22833 int
   22834 main ()
   22835 {
   22836 return remove ();
   22837   ;
   22838   return 0;
   22839 }
   22840 _ACEOF
   22841 rm -f conftest.$ac_objext conftest$ac_exeext
   22842 if { (ac_try="$ac_link"
   22843 case "(($ac_try" in
   22844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22845   *) ac_try_echo=$ac_try;;
   22846 esac
   22847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22848   (eval "$ac_link") 2>conftest.er1
   22849   ac_status=$?
   22850   grep -v '^ *+' conftest.er1 >conftest.err
   22851   rm -f conftest.er1
   22852   cat conftest.err >&5
   22853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22854   (exit $ac_status); } && {
   22855 	 test -z "$ac_c_werror_flag" ||
   22856 	 test ! -s conftest.err
   22857        } && test -s conftest$ac_exeext &&
   22858        $as_test_x conftest$ac_exeext; then
   22859   ac_cv_lib_posix_remove=yes
   22860 else
   22861   echo "$as_me: failed program was:" >&5
   22862 sed 's/^/| /' conftest.$ac_ext >&5
   22863 
   22864 	ac_cv_lib_posix_remove=no
   22865 fi
   22866 
   22867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22868       conftest$ac_exeext conftest.$ac_ext
   22869 LIBS=$ac_check_lib_save_LIBS
   22870 fi
   22871 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
   22872 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
   22873 if test $ac_cv_lib_posix_remove = yes; then
   22874   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
   22875 fi
   22876 
   22877     fi
   22878 
   22879     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
   22880     { echo "$as_me:$LINENO: checking for shmat" >&5
   22881 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
   22882 if test "${ac_cv_func_shmat+set}" = set; then
   22883   echo $ECHO_N "(cached) $ECHO_C" >&6
   22884 else
   22885   cat >conftest.$ac_ext <<_ACEOF
   22886 /* confdefs.h.  */
   22887 _ACEOF
   22888 cat confdefs.h >>conftest.$ac_ext
   22889 cat >>conftest.$ac_ext <<_ACEOF
   22890 /* end confdefs.h.  */
   22891 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
   22892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   22893 #define shmat innocuous_shmat
   22894 
   22895 /* System header to define __stub macros and hopefully few prototypes,
   22896     which can conflict with char shmat (); below.
   22897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   22898     <limits.h> exists even on freestanding compilers.  */
   22899 
   22900 #ifdef __STDC__
   22901 # include <limits.h>
   22902 #else
   22903 # include <assert.h>
   22904 #endif
   22905 
   22906 #undef shmat
   22907 
   22908 /* Override any GCC internal prototype to avoid an error.
   22909    Use char because int might match the return type of a GCC
   22910    builtin and then its argument prototype would still apply.  */
   22911 #ifdef __cplusplus
   22912 extern "C"
   22913 #endif
   22914 char shmat ();
   22915 /* The GNU C library defines this for functions which it implements
   22916     to always fail with ENOSYS.  Some functions are actually named
   22917     something starting with __ and the normal name is an alias.  */
   22918 #if defined __stub_shmat || defined __stub___shmat
   22919 choke me
   22920 #endif
   22921 
   22922 int
   22923 main ()
   22924 {
   22925 return shmat ();
   22926   ;
   22927   return 0;
   22928 }
   22929 _ACEOF
   22930 rm -f conftest.$ac_objext conftest$ac_exeext
   22931 if { (ac_try="$ac_link"
   22932 case "(($ac_try" in
   22933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22934   *) ac_try_echo=$ac_try;;
   22935 esac
   22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22937   (eval "$ac_link") 2>conftest.er1
   22938   ac_status=$?
   22939   grep -v '^ *+' conftest.er1 >conftest.err
   22940   rm -f conftest.er1
   22941   cat conftest.err >&5
   22942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   22943   (exit $ac_status); } && {
   22944 	 test -z "$ac_c_werror_flag" ||
   22945 	 test ! -s conftest.err
   22946        } && test -s conftest$ac_exeext &&
   22947        $as_test_x conftest$ac_exeext; then
   22948   ac_cv_func_shmat=yes
   22949 else
   22950   echo "$as_me: failed program was:" >&5
   22951 sed 's/^/| /' conftest.$ac_ext >&5
   22952 
   22953 	ac_cv_func_shmat=no
   22954 fi
   22955 
   22956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   22957       conftest$ac_exeext conftest.$ac_ext
   22958 fi
   22959 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
   22960 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
   22961 
   22962     if test $ac_cv_func_shmat = no; then
   22963       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
   22964 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
   22965 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
   22966   echo $ECHO_N "(cached) $ECHO_C" >&6
   22967 else
   22968   ac_check_lib_save_LIBS=$LIBS
   22969 LIBS="-lipc  $LIBS"
   22970 cat >conftest.$ac_ext <<_ACEOF
   22971 /* confdefs.h.  */
   22972 _ACEOF
   22973 cat confdefs.h >>conftest.$ac_ext
   22974 cat >>conftest.$ac_ext <<_ACEOF
   22975 /* end confdefs.h.  */
   22976 
   22977 /* Override any GCC internal prototype to avoid an error.
   22978    Use char because int might match the return type of a GCC
   22979    builtin and then its argument prototype would still apply.  */
   22980 #ifdef __cplusplus
   22981 extern "C"
   22982 #endif
   22983 char shmat ();
   22984 int
   22985 main ()
   22986 {
   22987 return shmat ();
   22988   ;
   22989   return 0;
   22990 }
   22991 _ACEOF
   22992 rm -f conftest.$ac_objext conftest$ac_exeext
   22993 if { (ac_try="$ac_link"
   22994 case "(($ac_try" in
   22995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   22996   *) ac_try_echo=$ac_try;;
   22997 esac
   22998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   22999   (eval "$ac_link") 2>conftest.er1
   23000   ac_status=$?
   23001   grep -v '^ *+' conftest.er1 >conftest.err
   23002   rm -f conftest.er1
   23003   cat conftest.err >&5
   23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23005   (exit $ac_status); } && {
   23006 	 test -z "$ac_c_werror_flag" ||
   23007 	 test ! -s conftest.err
   23008        } && test -s conftest$ac_exeext &&
   23009        $as_test_x conftest$ac_exeext; then
   23010   ac_cv_lib_ipc_shmat=yes
   23011 else
   23012   echo "$as_me: failed program was:" >&5
   23013 sed 's/^/| /' conftest.$ac_ext >&5
   23014 
   23015 	ac_cv_lib_ipc_shmat=no
   23016 fi
   23017 
   23018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23019       conftest$ac_exeext conftest.$ac_ext
   23020 LIBS=$ac_check_lib_save_LIBS
   23021 fi
   23022 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
   23023 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
   23024 if test $ac_cv_lib_ipc_shmat = yes; then
   23025   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
   23026 fi
   23027 
   23028     fi
   23029   fi
   23030 
   23031   # Check for libraries that X11R6 Xt/Xaw programs need.
   23032   ac_save_LDFLAGS=$LDFLAGS
   23033   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
   23034   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
   23035   # check for ICE first), but we must link in the order -lSM -lICE or
   23036   # we get undefined symbols.  So assume we have SM if we have ICE.
   23037   # These have to be linked with before -lX11, unlike the other
   23038   # libraries we check for below, so use a different variable.
   23039   # John Interrante, Karl Berry
   23040   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
   23041 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
   23042 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
   23043   echo $ECHO_N "(cached) $ECHO_C" >&6
   23044 else
   23045   ac_check_lib_save_LIBS=$LIBS
   23046 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
   23047 cat >conftest.$ac_ext <<_ACEOF
   23048 /* confdefs.h.  */
   23049 _ACEOF
   23050 cat confdefs.h >>conftest.$ac_ext
   23051 cat >>conftest.$ac_ext <<_ACEOF
   23052 /* end confdefs.h.  */
   23053 
   23054 /* Override any GCC internal prototype to avoid an error.
   23055    Use char because int might match the return type of a GCC
   23056    builtin and then its argument prototype would still apply.  */
   23057 #ifdef __cplusplus
   23058 extern "C"
   23059 #endif
   23060 char IceConnectionNumber ();
   23061 int
   23062 main ()
   23063 {
   23064 return IceConnectionNumber ();
   23065   ;
   23066   return 0;
   23067 }
   23068 _ACEOF
   23069 rm -f conftest.$ac_objext conftest$ac_exeext
   23070 if { (ac_try="$ac_link"
   23071 case "(($ac_try" in
   23072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23073   *) ac_try_echo=$ac_try;;
   23074 esac
   23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23076   (eval "$ac_link") 2>conftest.er1
   23077   ac_status=$?
   23078   grep -v '^ *+' conftest.er1 >conftest.err
   23079   rm -f conftest.er1
   23080   cat conftest.err >&5
   23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23082   (exit $ac_status); } && {
   23083 	 test -z "$ac_c_werror_flag" ||
   23084 	 test ! -s conftest.err
   23085        } && test -s conftest$ac_exeext &&
   23086        $as_test_x conftest$ac_exeext; then
   23087   ac_cv_lib_ICE_IceConnectionNumber=yes
   23088 else
   23089   echo "$as_me: failed program was:" >&5
   23090 sed 's/^/| /' conftest.$ac_ext >&5
   23091 
   23092 	ac_cv_lib_ICE_IceConnectionNumber=no
   23093 fi
   23094 
   23095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
   23096       conftest$ac_exeext conftest.$ac_ext
   23097 LIBS=$ac_check_lib_save_LIBS
   23098 fi
   23099 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
   23100 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
   23101 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
   23102   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
   23103 fi
   23104 
   23105   LDFLAGS=$ac_save_LDFLAGS
   23106 
   23107 fi
   23108 
   23109 
   23110 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
   23111 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
   23112 if test "${ac_cv_c_bigendian+set}" = set; then
   23113   echo $ECHO_N "(cached) $ECHO_C" >&6
   23114 else
   23115   # See if sys/param.h defines the BYTE_ORDER macro.
   23116 cat >conftest.$ac_ext <<_ACEOF
   23117 /* confdefs.h.  */
   23118 _ACEOF
   23119 cat confdefs.h >>conftest.$ac_ext
   23120 cat >>conftest.$ac_ext <<_ACEOF
   23121 /* end confdefs.h.  */
   23122 #include <sys/types.h>
   23123 #include <sys/param.h>
   23124 
   23125 int
   23126 main ()
   23127 {
   23128 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
   23129 	&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
   23130  bogus endian macros
   23131 #endif
   23132 
   23133   ;
   23134   return 0;
   23135 }
   23136 _ACEOF
   23137 rm -f conftest.$ac_objext
   23138 if { (ac_try="$ac_compile"
   23139 case "(($ac_try" in
   23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23141   *) ac_try_echo=$ac_try;;
   23142 esac
   23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23144   (eval "$ac_compile") 2>conftest.er1
   23145   ac_status=$?
   23146   grep -v '^ *+' conftest.er1 >conftest.err
   23147   rm -f conftest.er1
   23148   cat conftest.err >&5
   23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23150   (exit $ac_status); } && {
   23151 	 test -z "$ac_c_werror_flag" ||
   23152 	 test ! -s conftest.err
   23153        } && test -s conftest.$ac_objext; then
   23154   # It does; now see whether it defined to BIG_ENDIAN or not.
   23155 cat >conftest.$ac_ext <<_ACEOF
   23156 /* confdefs.h.  */
   23157 _ACEOF
   23158 cat confdefs.h >>conftest.$ac_ext
   23159 cat >>conftest.$ac_ext <<_ACEOF
   23160 /* end confdefs.h.  */
   23161 #include <sys/types.h>
   23162 #include <sys/param.h>
   23163 
   23164 int
   23165 main ()
   23166 {
   23167 #if BYTE_ORDER != BIG_ENDIAN
   23168  not big endian
   23169 #endif
   23170 
   23171   ;
   23172   return 0;
   23173 }
   23174 _ACEOF
   23175 rm -f conftest.$ac_objext
   23176 if { (ac_try="$ac_compile"
   23177 case "(($ac_try" in
   23178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23179   *) ac_try_echo=$ac_try;;
   23180 esac
   23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23182   (eval "$ac_compile") 2>conftest.er1
   23183   ac_status=$?
   23184   grep -v '^ *+' conftest.er1 >conftest.err
   23185   rm -f conftest.er1
   23186   cat conftest.err >&5
   23187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23188   (exit $ac_status); } && {
   23189 	 test -z "$ac_c_werror_flag" ||
   23190 	 test ! -s conftest.err
   23191        } && test -s conftest.$ac_objext; then
   23192   ac_cv_c_bigendian=yes
   23193 else
   23194   echo "$as_me: failed program was:" >&5
   23195 sed 's/^/| /' conftest.$ac_ext >&5
   23196 
   23197 	ac_cv_c_bigendian=no
   23198 fi
   23199 
   23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23201 else
   23202   echo "$as_me: failed program was:" >&5
   23203 sed 's/^/| /' conftest.$ac_ext >&5
   23204 
   23205 	# It does not; compile a test program.
   23206 if test "$cross_compiling" = yes; then
   23207   # try to guess the endianness by grepping values into an object file
   23208   ac_cv_c_bigendian=unknown
   23209   cat >conftest.$ac_ext <<_ACEOF
   23210 /* confdefs.h.  */
   23211 _ACEOF
   23212 cat confdefs.h >>conftest.$ac_ext
   23213 cat >>conftest.$ac_ext <<_ACEOF
   23214 /* end confdefs.h.  */
   23215 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   23216 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   23217 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
   23218 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   23219 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   23220 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
   23221 int
   23222 main ()
   23223 {
   23224  _ascii (); _ebcdic ();
   23225   ;
   23226   return 0;
   23227 }
   23228 _ACEOF
   23229 rm -f conftest.$ac_objext
   23230 if { (ac_try="$ac_compile"
   23231 case "(($ac_try" in
   23232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23233   *) ac_try_echo=$ac_try;;
   23234 esac
   23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23236   (eval "$ac_compile") 2>conftest.er1
   23237   ac_status=$?
   23238   grep -v '^ *+' conftest.er1 >conftest.err
   23239   rm -f conftest.er1
   23240   cat conftest.err >&5
   23241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23242   (exit $ac_status); } && {
   23243 	 test -z "$ac_c_werror_flag" ||
   23244 	 test ! -s conftest.err
   23245        } && test -s conftest.$ac_objext; then
   23246   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
   23247   ac_cv_c_bigendian=yes
   23248 fi
   23249 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   23250   if test "$ac_cv_c_bigendian" = unknown; then
   23251     ac_cv_c_bigendian=no
   23252   else
   23253     # finding both strings is unlikely to happen, but who knows?
   23254     ac_cv_c_bigendian=unknown
   23255   fi
   23256 fi
   23257 else
   23258   echo "$as_me: failed program was:" >&5
   23259 sed 's/^/| /' conftest.$ac_ext >&5
   23260 
   23261 
   23262 fi
   23263 
   23264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23265 else
   23266   cat >conftest.$ac_ext <<_ACEOF
   23267 /* confdefs.h.  */
   23268 _ACEOF
   23269 cat confdefs.h >>conftest.$ac_ext
   23270 cat >>conftest.$ac_ext <<_ACEOF
   23271 /* end confdefs.h.  */
   23272 $ac_includes_default
   23273 int
   23274 main ()
   23275 {
   23276 
   23277   /* Are we little or big endian?  From Harbison&Steele.  */
   23278   union
   23279   {
   23280     long int l;
   23281     char c[sizeof (long int)];
   23282   } u;
   23283   u.l = 1;
   23284   return u.c[sizeof (long int) - 1] == 1;
   23285 
   23286   ;
   23287   return 0;
   23288 }
   23289 _ACEOF
   23290 rm -f conftest$ac_exeext
   23291 if { (ac_try="$ac_link"
   23292 case "(($ac_try" in
   23293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23294   *) ac_try_echo=$ac_try;;
   23295 esac
   23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23297   (eval "$ac_link") 2>&5
   23298   ac_status=$?
   23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23301   { (case "(($ac_try" in
   23302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23303   *) ac_try_echo=$ac_try;;
   23304 esac
   23305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23306   (eval "$ac_try") 2>&5
   23307   ac_status=$?
   23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23309   (exit $ac_status); }; }; then
   23310   ac_cv_c_bigendian=no
   23311 else
   23312   echo "$as_me: program exited with status $ac_status" >&5
   23313 echo "$as_me: failed program was:" >&5
   23314 sed 's/^/| /' conftest.$ac_ext >&5
   23315 
   23316 ( exit $ac_status )
   23317 ac_cv_c_bigendian=yes
   23318 fi
   23319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23320 fi
   23321 
   23322 
   23323 fi
   23324 
   23325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23326 fi
   23327 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
   23328 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
   23329 case $ac_cv_c_bigendian in
   23330   yes)
   23331 
   23332 cat >>confdefs.h <<\_ACEOF
   23333 #define WORDS_BIGENDIAN 1
   23334 _ACEOF
   23335  ;;
   23336   no)
   23337      ;;
   23338   *)
   23339     { { echo "$as_me:$LINENO: error: unknown endianness
   23340 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
   23341 echo "$as_me: error: unknown endianness
   23342 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
   23343    { (exit 1); exit 1; }; } ;;
   23344 esac
   23345 
   23346 { echo "$as_me:$LINENO: checking for inline" >&5
   23347 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
   23348 if test "${ac_cv_c_inline+set}" = set; then
   23349   echo $ECHO_N "(cached) $ECHO_C" >&6
   23350 else
   23351   ac_cv_c_inline=no
   23352 for ac_kw in inline __inline__ __inline; do
   23353   cat >conftest.$ac_ext <<_ACEOF
   23354 /* confdefs.h.  */
   23355 _ACEOF
   23356 cat confdefs.h >>conftest.$ac_ext
   23357 cat >>conftest.$ac_ext <<_ACEOF
   23358 /* end confdefs.h.  */
   23359 #ifndef __cplusplus
   23360 typedef int foo_t;
   23361 static $ac_kw foo_t static_foo () {return 0; }
   23362 $ac_kw foo_t foo () {return 0; }
   23363 #endif
   23364 
   23365 _ACEOF
   23366 rm -f conftest.$ac_objext
   23367 if { (ac_try="$ac_compile"
   23368 case "(($ac_try" in
   23369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23370   *) ac_try_echo=$ac_try;;
   23371 esac
   23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23373   (eval "$ac_compile") 2>conftest.er1
   23374   ac_status=$?
   23375   grep -v '^ *+' conftest.er1 >conftest.err
   23376   rm -f conftest.er1
   23377   cat conftest.err >&5
   23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23379   (exit $ac_status); } && {
   23380 	 test -z "$ac_c_werror_flag" ||
   23381 	 test ! -s conftest.err
   23382        } && test -s conftest.$ac_objext; then
   23383   ac_cv_c_inline=$ac_kw
   23384 else
   23385   echo "$as_me: failed program was:" >&5
   23386 sed 's/^/| /' conftest.$ac_ext >&5
   23387 
   23388 
   23389 fi
   23390 
   23391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23392   test "$ac_cv_c_inline" != no && break
   23393 done
   23394 
   23395 fi
   23396 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
   23397 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
   23398 
   23399 
   23400 case $ac_cv_c_inline in
   23401   inline | yes) ;;
   23402   *)
   23403     case $ac_cv_c_inline in
   23404       no) ac_val=;;
   23405       *) ac_val=$ac_cv_c_inline;;
   23406     esac
   23407     cat >>confdefs.h <<_ACEOF
   23408 #ifndef __cplusplus
   23409 #define inline $ac_val
   23410 #endif
   23411 _ACEOF
   23412     ;;
   23413 esac
   23414 
   23415 { echo "$as_me:$LINENO: checking for unsigned char" >&5
   23416 echo $ECHO_N "checking for unsigned char... $ECHO_C" >&6; }
   23417 if test "${ac_cv_type_unsigned_char+set}" = set; then
   23418   echo $ECHO_N "(cached) $ECHO_C" >&6
   23419 else
   23420   cat >conftest.$ac_ext <<_ACEOF
   23421 /* confdefs.h.  */
   23422 _ACEOF
   23423 cat confdefs.h >>conftest.$ac_ext
   23424 cat >>conftest.$ac_ext <<_ACEOF
   23425 /* end confdefs.h.  */
   23426 $ac_includes_default
   23427 typedef unsigned char ac__type_new_;
   23428 int
   23429 main ()
   23430 {
   23431 if ((ac__type_new_ *) 0)
   23432   return 0;
   23433 if (sizeof (ac__type_new_))
   23434   return 0;
   23435   ;
   23436   return 0;
   23437 }
   23438 _ACEOF
   23439 rm -f conftest.$ac_objext
   23440 if { (ac_try="$ac_compile"
   23441 case "(($ac_try" in
   23442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23443   *) ac_try_echo=$ac_try;;
   23444 esac
   23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23446   (eval "$ac_compile") 2>conftest.er1
   23447   ac_status=$?
   23448   grep -v '^ *+' conftest.er1 >conftest.err
   23449   rm -f conftest.er1
   23450   cat conftest.err >&5
   23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23452   (exit $ac_status); } && {
   23453 	 test -z "$ac_c_werror_flag" ||
   23454 	 test ! -s conftest.err
   23455        } && test -s conftest.$ac_objext; then
   23456   ac_cv_type_unsigned_char=yes
   23457 else
   23458   echo "$as_me: failed program was:" >&5
   23459 sed 's/^/| /' conftest.$ac_ext >&5
   23460 
   23461 	ac_cv_type_unsigned_char=no
   23462 fi
   23463 
   23464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23465 fi
   23466 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char" >&5
   23467 echo "${ECHO_T}$ac_cv_type_unsigned_char" >&6; }
   23468 
   23469 # The cast to long int works around a bug in the HP C Compiler
   23470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   23471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   23472 # This bug is HP SR number 8606223364.
   23473 { echo "$as_me:$LINENO: checking size of unsigned char" >&5
   23474 echo $ECHO_N "checking size of unsigned char... $ECHO_C" >&6; }
   23475 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
   23476   echo $ECHO_N "(cached) $ECHO_C" >&6
   23477 else
   23478   if test "$cross_compiling" = yes; then
   23479   # Depending upon the size, compute the lo and hi bounds.
   23480 cat >conftest.$ac_ext <<_ACEOF
   23481 /* confdefs.h.  */
   23482 _ACEOF
   23483 cat confdefs.h >>conftest.$ac_ext
   23484 cat >>conftest.$ac_ext <<_ACEOF
   23485 /* end confdefs.h.  */
   23486 $ac_includes_default
   23487    typedef unsigned char ac__type_sizeof_;
   23488 int
   23489 main ()
   23490 {
   23491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   23492 test_array [0] = 0
   23493 
   23494   ;
   23495   return 0;
   23496 }
   23497 _ACEOF
   23498 rm -f conftest.$ac_objext
   23499 if { (ac_try="$ac_compile"
   23500 case "(($ac_try" in
   23501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23502   *) ac_try_echo=$ac_try;;
   23503 esac
   23504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23505   (eval "$ac_compile") 2>conftest.er1
   23506   ac_status=$?
   23507   grep -v '^ *+' conftest.er1 >conftest.err
   23508   rm -f conftest.er1
   23509   cat conftest.err >&5
   23510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23511   (exit $ac_status); } && {
   23512 	 test -z "$ac_c_werror_flag" ||
   23513 	 test ! -s conftest.err
   23514        } && test -s conftest.$ac_objext; then
   23515   ac_lo=0 ac_mid=0
   23516   while :; do
   23517     cat >conftest.$ac_ext <<_ACEOF
   23518 /* confdefs.h.  */
   23519 _ACEOF
   23520 cat confdefs.h >>conftest.$ac_ext
   23521 cat >>conftest.$ac_ext <<_ACEOF
   23522 /* end confdefs.h.  */
   23523 $ac_includes_default
   23524    typedef unsigned char ac__type_sizeof_;
   23525 int
   23526 main ()
   23527 {
   23528 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   23529 test_array [0] = 0
   23530 
   23531   ;
   23532   return 0;
   23533 }
   23534 _ACEOF
   23535 rm -f conftest.$ac_objext
   23536 if { (ac_try="$ac_compile"
   23537 case "(($ac_try" in
   23538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23539   *) ac_try_echo=$ac_try;;
   23540 esac
   23541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23542   (eval "$ac_compile") 2>conftest.er1
   23543   ac_status=$?
   23544   grep -v '^ *+' conftest.er1 >conftest.err
   23545   rm -f conftest.er1
   23546   cat conftest.err >&5
   23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23548   (exit $ac_status); } && {
   23549 	 test -z "$ac_c_werror_flag" ||
   23550 	 test ! -s conftest.err
   23551        } && test -s conftest.$ac_objext; then
   23552   ac_hi=$ac_mid; break
   23553 else
   23554   echo "$as_me: failed program was:" >&5
   23555 sed 's/^/| /' conftest.$ac_ext >&5
   23556 
   23557 	ac_lo=`expr $ac_mid + 1`
   23558 			if test $ac_lo -le $ac_mid; then
   23559 			  ac_lo= ac_hi=
   23560 			  break
   23561 			fi
   23562 			ac_mid=`expr 2 '*' $ac_mid + 1`
   23563 fi
   23564 
   23565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23566   done
   23567 else
   23568   echo "$as_me: failed program was:" >&5
   23569 sed 's/^/| /' conftest.$ac_ext >&5
   23570 
   23571 	cat >conftest.$ac_ext <<_ACEOF
   23572 /* confdefs.h.  */
   23573 _ACEOF
   23574 cat confdefs.h >>conftest.$ac_ext
   23575 cat >>conftest.$ac_ext <<_ACEOF
   23576 /* end confdefs.h.  */
   23577 $ac_includes_default
   23578    typedef unsigned char ac__type_sizeof_;
   23579 int
   23580 main ()
   23581 {
   23582 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   23583 test_array [0] = 0
   23584 
   23585   ;
   23586   return 0;
   23587 }
   23588 _ACEOF
   23589 rm -f conftest.$ac_objext
   23590 if { (ac_try="$ac_compile"
   23591 case "(($ac_try" in
   23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23593   *) ac_try_echo=$ac_try;;
   23594 esac
   23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23596   (eval "$ac_compile") 2>conftest.er1
   23597   ac_status=$?
   23598   grep -v '^ *+' conftest.er1 >conftest.err
   23599   rm -f conftest.er1
   23600   cat conftest.err >&5
   23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23602   (exit $ac_status); } && {
   23603 	 test -z "$ac_c_werror_flag" ||
   23604 	 test ! -s conftest.err
   23605        } && test -s conftest.$ac_objext; then
   23606   ac_hi=-1 ac_mid=-1
   23607   while :; do
   23608     cat >conftest.$ac_ext <<_ACEOF
   23609 /* confdefs.h.  */
   23610 _ACEOF
   23611 cat confdefs.h >>conftest.$ac_ext
   23612 cat >>conftest.$ac_ext <<_ACEOF
   23613 /* end confdefs.h.  */
   23614 $ac_includes_default
   23615    typedef unsigned char ac__type_sizeof_;
   23616 int
   23617 main ()
   23618 {
   23619 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   23620 test_array [0] = 0
   23621 
   23622   ;
   23623   return 0;
   23624 }
   23625 _ACEOF
   23626 rm -f conftest.$ac_objext
   23627 if { (ac_try="$ac_compile"
   23628 case "(($ac_try" in
   23629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23630   *) ac_try_echo=$ac_try;;
   23631 esac
   23632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23633   (eval "$ac_compile") 2>conftest.er1
   23634   ac_status=$?
   23635   grep -v '^ *+' conftest.er1 >conftest.err
   23636   rm -f conftest.er1
   23637   cat conftest.err >&5
   23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23639   (exit $ac_status); } && {
   23640 	 test -z "$ac_c_werror_flag" ||
   23641 	 test ! -s conftest.err
   23642        } && test -s conftest.$ac_objext; then
   23643   ac_lo=$ac_mid; break
   23644 else
   23645   echo "$as_me: failed program was:" >&5
   23646 sed 's/^/| /' conftest.$ac_ext >&5
   23647 
   23648 	ac_hi=`expr '(' $ac_mid ')' - 1`
   23649 			if test $ac_mid -le $ac_hi; then
   23650 			  ac_lo= ac_hi=
   23651 			  break
   23652 			fi
   23653 			ac_mid=`expr 2 '*' $ac_mid`
   23654 fi
   23655 
   23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23657   done
   23658 else
   23659   echo "$as_me: failed program was:" >&5
   23660 sed 's/^/| /' conftest.$ac_ext >&5
   23661 
   23662 	ac_lo= ac_hi=
   23663 fi
   23664 
   23665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23666 fi
   23667 
   23668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23669 # Binary search between lo and hi bounds.
   23670 while test "x$ac_lo" != "x$ac_hi"; do
   23671   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   23672   cat >conftest.$ac_ext <<_ACEOF
   23673 /* confdefs.h.  */
   23674 _ACEOF
   23675 cat confdefs.h >>conftest.$ac_ext
   23676 cat >>conftest.$ac_ext <<_ACEOF
   23677 /* end confdefs.h.  */
   23678 $ac_includes_default
   23679    typedef unsigned char ac__type_sizeof_;
   23680 int
   23681 main ()
   23682 {
   23683 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   23684 test_array [0] = 0
   23685 
   23686   ;
   23687   return 0;
   23688 }
   23689 _ACEOF
   23690 rm -f conftest.$ac_objext
   23691 if { (ac_try="$ac_compile"
   23692 case "(($ac_try" in
   23693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23694   *) ac_try_echo=$ac_try;;
   23695 esac
   23696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23697   (eval "$ac_compile") 2>conftest.er1
   23698   ac_status=$?
   23699   grep -v '^ *+' conftest.er1 >conftest.err
   23700   rm -f conftest.er1
   23701   cat conftest.err >&5
   23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23703   (exit $ac_status); } && {
   23704 	 test -z "$ac_c_werror_flag" ||
   23705 	 test ! -s conftest.err
   23706        } && test -s conftest.$ac_objext; then
   23707   ac_hi=$ac_mid
   23708 else
   23709   echo "$as_me: failed program was:" >&5
   23710 sed 's/^/| /' conftest.$ac_ext >&5
   23711 
   23712 	ac_lo=`expr '(' $ac_mid ')' + 1`
   23713 fi
   23714 
   23715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23716 done
   23717 case $ac_lo in
   23718 ?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
   23719 '') if test "$ac_cv_type_unsigned_char" = yes; then
   23720      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
   23721 See \`config.log' for more details." >&5
   23722 echo "$as_me: error: cannot compute sizeof (unsigned char)
   23723 See \`config.log' for more details." >&2;}
   23724    { (exit 77); exit 77; }; }
   23725    else
   23726      ac_cv_sizeof_unsigned_char=0
   23727    fi ;;
   23728 esac
   23729 else
   23730   cat >conftest.$ac_ext <<_ACEOF
   23731 /* confdefs.h.  */
   23732 _ACEOF
   23733 cat confdefs.h >>conftest.$ac_ext
   23734 cat >>conftest.$ac_ext <<_ACEOF
   23735 /* end confdefs.h.  */
   23736 $ac_includes_default
   23737    typedef unsigned char ac__type_sizeof_;
   23738 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   23739 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   23740 #include <stdio.h>
   23741 #include <stdlib.h>
   23742 int
   23743 main ()
   23744 {
   23745 
   23746   FILE *f = fopen ("conftest.val", "w");
   23747   if (! f)
   23748     return 1;
   23749   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   23750     {
   23751       long int i = longval ();
   23752       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   23753 	return 1;
   23754       fprintf (f, "%ld\n", i);
   23755     }
   23756   else
   23757     {
   23758       unsigned long int i = ulongval ();
   23759       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   23760 	return 1;
   23761       fprintf (f, "%lu\n", i);
   23762     }
   23763   return ferror (f) || fclose (f) != 0;
   23764 
   23765   ;
   23766   return 0;
   23767 }
   23768 _ACEOF
   23769 rm -f conftest$ac_exeext
   23770 if { (ac_try="$ac_link"
   23771 case "(($ac_try" in
   23772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23773   *) ac_try_echo=$ac_try;;
   23774 esac
   23775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23776   (eval "$ac_link") 2>&5
   23777   ac_status=$?
   23778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   23780   { (case "(($ac_try" in
   23781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23782   *) ac_try_echo=$ac_try;;
   23783 esac
   23784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23785   (eval "$ac_try") 2>&5
   23786   ac_status=$?
   23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23788   (exit $ac_status); }; }; then
   23789   ac_cv_sizeof_unsigned_char=`cat conftest.val`
   23790 else
   23791   echo "$as_me: program exited with status $ac_status" >&5
   23792 echo "$as_me: failed program was:" >&5
   23793 sed 's/^/| /' conftest.$ac_ext >&5
   23794 
   23795 ( exit $ac_status )
   23796 if test "$ac_cv_type_unsigned_char" = yes; then
   23797      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
   23798 See \`config.log' for more details." >&5
   23799 echo "$as_me: error: cannot compute sizeof (unsigned char)
   23800 See \`config.log' for more details." >&2;}
   23801    { (exit 77); exit 77; }; }
   23802    else
   23803      ac_cv_sizeof_unsigned_char=0
   23804    fi
   23805 fi
   23806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   23807 fi
   23808 rm -f conftest.val
   23809 fi
   23810 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
   23811 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6; }
   23812 
   23813 
   23814 
   23815 cat >>confdefs.h <<_ACEOF
   23816 #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
   23817 _ACEOF
   23818 
   23819 
   23820 { echo "$as_me:$LINENO: checking for unsigned short" >&5
   23821 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6; }
   23822 if test "${ac_cv_type_unsigned_short+set}" = set; then
   23823   echo $ECHO_N "(cached) $ECHO_C" >&6
   23824 else
   23825   cat >conftest.$ac_ext <<_ACEOF
   23826 /* confdefs.h.  */
   23827 _ACEOF
   23828 cat confdefs.h >>conftest.$ac_ext
   23829 cat >>conftest.$ac_ext <<_ACEOF
   23830 /* end confdefs.h.  */
   23831 $ac_includes_default
   23832 typedef unsigned short ac__type_new_;
   23833 int
   23834 main ()
   23835 {
   23836 if ((ac__type_new_ *) 0)
   23837   return 0;
   23838 if (sizeof (ac__type_new_))
   23839   return 0;
   23840   ;
   23841   return 0;
   23842 }
   23843 _ACEOF
   23844 rm -f conftest.$ac_objext
   23845 if { (ac_try="$ac_compile"
   23846 case "(($ac_try" in
   23847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23848   *) ac_try_echo=$ac_try;;
   23849 esac
   23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23851   (eval "$ac_compile") 2>conftest.er1
   23852   ac_status=$?
   23853   grep -v '^ *+' conftest.er1 >conftest.err
   23854   rm -f conftest.er1
   23855   cat conftest.err >&5
   23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23857   (exit $ac_status); } && {
   23858 	 test -z "$ac_c_werror_flag" ||
   23859 	 test ! -s conftest.err
   23860        } && test -s conftest.$ac_objext; then
   23861   ac_cv_type_unsigned_short=yes
   23862 else
   23863   echo "$as_me: failed program was:" >&5
   23864 sed 's/^/| /' conftest.$ac_ext >&5
   23865 
   23866 	ac_cv_type_unsigned_short=no
   23867 fi
   23868 
   23869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23870 fi
   23871 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
   23872 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6; }
   23873 
   23874 # The cast to long int works around a bug in the HP C Compiler
   23875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   23876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   23877 # This bug is HP SR number 8606223364.
   23878 { echo "$as_me:$LINENO: checking size of unsigned short" >&5
   23879 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6; }
   23880 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
   23881   echo $ECHO_N "(cached) $ECHO_C" >&6
   23882 else
   23883   if test "$cross_compiling" = yes; then
   23884   # Depending upon the size, compute the lo and hi bounds.
   23885 cat >conftest.$ac_ext <<_ACEOF
   23886 /* confdefs.h.  */
   23887 _ACEOF
   23888 cat confdefs.h >>conftest.$ac_ext
   23889 cat >>conftest.$ac_ext <<_ACEOF
   23890 /* end confdefs.h.  */
   23891 $ac_includes_default
   23892    typedef unsigned short ac__type_sizeof_;
   23893 int
   23894 main ()
   23895 {
   23896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   23897 test_array [0] = 0
   23898 
   23899   ;
   23900   return 0;
   23901 }
   23902 _ACEOF
   23903 rm -f conftest.$ac_objext
   23904 if { (ac_try="$ac_compile"
   23905 case "(($ac_try" in
   23906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23907   *) ac_try_echo=$ac_try;;
   23908 esac
   23909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23910   (eval "$ac_compile") 2>conftest.er1
   23911   ac_status=$?
   23912   grep -v '^ *+' conftest.er1 >conftest.err
   23913   rm -f conftest.er1
   23914   cat conftest.err >&5
   23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23916   (exit $ac_status); } && {
   23917 	 test -z "$ac_c_werror_flag" ||
   23918 	 test ! -s conftest.err
   23919        } && test -s conftest.$ac_objext; then
   23920   ac_lo=0 ac_mid=0
   23921   while :; do
   23922     cat >conftest.$ac_ext <<_ACEOF
   23923 /* confdefs.h.  */
   23924 _ACEOF
   23925 cat confdefs.h >>conftest.$ac_ext
   23926 cat >>conftest.$ac_ext <<_ACEOF
   23927 /* end confdefs.h.  */
   23928 $ac_includes_default
   23929    typedef unsigned short ac__type_sizeof_;
   23930 int
   23931 main ()
   23932 {
   23933 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   23934 test_array [0] = 0
   23935 
   23936   ;
   23937   return 0;
   23938 }
   23939 _ACEOF
   23940 rm -f conftest.$ac_objext
   23941 if { (ac_try="$ac_compile"
   23942 case "(($ac_try" in
   23943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23944   *) ac_try_echo=$ac_try;;
   23945 esac
   23946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   23947   (eval "$ac_compile") 2>conftest.er1
   23948   ac_status=$?
   23949   grep -v '^ *+' conftest.er1 >conftest.err
   23950   rm -f conftest.er1
   23951   cat conftest.err >&5
   23952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   23953   (exit $ac_status); } && {
   23954 	 test -z "$ac_c_werror_flag" ||
   23955 	 test ! -s conftest.err
   23956        } && test -s conftest.$ac_objext; then
   23957   ac_hi=$ac_mid; break
   23958 else
   23959   echo "$as_me: failed program was:" >&5
   23960 sed 's/^/| /' conftest.$ac_ext >&5
   23961 
   23962 	ac_lo=`expr $ac_mid + 1`
   23963 			if test $ac_lo -le $ac_mid; then
   23964 			  ac_lo= ac_hi=
   23965 			  break
   23966 			fi
   23967 			ac_mid=`expr 2 '*' $ac_mid + 1`
   23968 fi
   23969 
   23970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   23971   done
   23972 else
   23973   echo "$as_me: failed program was:" >&5
   23974 sed 's/^/| /' conftest.$ac_ext >&5
   23975 
   23976 	cat >conftest.$ac_ext <<_ACEOF
   23977 /* confdefs.h.  */
   23978 _ACEOF
   23979 cat confdefs.h >>conftest.$ac_ext
   23980 cat >>conftest.$ac_ext <<_ACEOF
   23981 /* end confdefs.h.  */
   23982 $ac_includes_default
   23983    typedef unsigned short ac__type_sizeof_;
   23984 int
   23985 main ()
   23986 {
   23987 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   23988 test_array [0] = 0
   23989 
   23990   ;
   23991   return 0;
   23992 }
   23993 _ACEOF
   23994 rm -f conftest.$ac_objext
   23995 if { (ac_try="$ac_compile"
   23996 case "(($ac_try" in
   23997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   23998   *) ac_try_echo=$ac_try;;
   23999 esac
   24000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24001   (eval "$ac_compile") 2>conftest.er1
   24002   ac_status=$?
   24003   grep -v '^ *+' conftest.er1 >conftest.err
   24004   rm -f conftest.er1
   24005   cat conftest.err >&5
   24006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24007   (exit $ac_status); } && {
   24008 	 test -z "$ac_c_werror_flag" ||
   24009 	 test ! -s conftest.err
   24010        } && test -s conftest.$ac_objext; then
   24011   ac_hi=-1 ac_mid=-1
   24012   while :; do
   24013     cat >conftest.$ac_ext <<_ACEOF
   24014 /* confdefs.h.  */
   24015 _ACEOF
   24016 cat confdefs.h >>conftest.$ac_ext
   24017 cat >>conftest.$ac_ext <<_ACEOF
   24018 /* end confdefs.h.  */
   24019 $ac_includes_default
   24020    typedef unsigned short ac__type_sizeof_;
   24021 int
   24022 main ()
   24023 {
   24024 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   24025 test_array [0] = 0
   24026 
   24027   ;
   24028   return 0;
   24029 }
   24030 _ACEOF
   24031 rm -f conftest.$ac_objext
   24032 if { (ac_try="$ac_compile"
   24033 case "(($ac_try" in
   24034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24035   *) ac_try_echo=$ac_try;;
   24036 esac
   24037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24038   (eval "$ac_compile") 2>conftest.er1
   24039   ac_status=$?
   24040   grep -v '^ *+' conftest.er1 >conftest.err
   24041   rm -f conftest.er1
   24042   cat conftest.err >&5
   24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24044   (exit $ac_status); } && {
   24045 	 test -z "$ac_c_werror_flag" ||
   24046 	 test ! -s conftest.err
   24047        } && test -s conftest.$ac_objext; then
   24048   ac_lo=$ac_mid; break
   24049 else
   24050   echo "$as_me: failed program was:" >&5
   24051 sed 's/^/| /' conftest.$ac_ext >&5
   24052 
   24053 	ac_hi=`expr '(' $ac_mid ')' - 1`
   24054 			if test $ac_mid -le $ac_hi; then
   24055 			  ac_lo= ac_hi=
   24056 			  break
   24057 			fi
   24058 			ac_mid=`expr 2 '*' $ac_mid`
   24059 fi
   24060 
   24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24062   done
   24063 else
   24064   echo "$as_me: failed program was:" >&5
   24065 sed 's/^/| /' conftest.$ac_ext >&5
   24066 
   24067 	ac_lo= ac_hi=
   24068 fi
   24069 
   24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24071 fi
   24072 
   24073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24074 # Binary search between lo and hi bounds.
   24075 while test "x$ac_lo" != "x$ac_hi"; do
   24076   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   24077   cat >conftest.$ac_ext <<_ACEOF
   24078 /* confdefs.h.  */
   24079 _ACEOF
   24080 cat confdefs.h >>conftest.$ac_ext
   24081 cat >>conftest.$ac_ext <<_ACEOF
   24082 /* end confdefs.h.  */
   24083 $ac_includes_default
   24084    typedef unsigned short ac__type_sizeof_;
   24085 int
   24086 main ()
   24087 {
   24088 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24089 test_array [0] = 0
   24090 
   24091   ;
   24092   return 0;
   24093 }
   24094 _ACEOF
   24095 rm -f conftest.$ac_objext
   24096 if { (ac_try="$ac_compile"
   24097 case "(($ac_try" in
   24098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24099   *) ac_try_echo=$ac_try;;
   24100 esac
   24101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24102   (eval "$ac_compile") 2>conftest.er1
   24103   ac_status=$?
   24104   grep -v '^ *+' conftest.er1 >conftest.err
   24105   rm -f conftest.er1
   24106   cat conftest.err >&5
   24107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24108   (exit $ac_status); } && {
   24109 	 test -z "$ac_c_werror_flag" ||
   24110 	 test ! -s conftest.err
   24111        } && test -s conftest.$ac_objext; then
   24112   ac_hi=$ac_mid
   24113 else
   24114   echo "$as_me: failed program was:" >&5
   24115 sed 's/^/| /' conftest.$ac_ext >&5
   24116 
   24117 	ac_lo=`expr '(' $ac_mid ')' + 1`
   24118 fi
   24119 
   24120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24121 done
   24122 case $ac_lo in
   24123 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
   24124 '') if test "$ac_cv_type_unsigned_short" = yes; then
   24125      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
   24126 See \`config.log' for more details." >&5
   24127 echo "$as_me: error: cannot compute sizeof (unsigned short)
   24128 See \`config.log' for more details." >&2;}
   24129    { (exit 77); exit 77; }; }
   24130    else
   24131      ac_cv_sizeof_unsigned_short=0
   24132    fi ;;
   24133 esac
   24134 else
   24135   cat >conftest.$ac_ext <<_ACEOF
   24136 /* confdefs.h.  */
   24137 _ACEOF
   24138 cat confdefs.h >>conftest.$ac_ext
   24139 cat >>conftest.$ac_ext <<_ACEOF
   24140 /* end confdefs.h.  */
   24141 $ac_includes_default
   24142    typedef unsigned short ac__type_sizeof_;
   24143 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24144 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24145 #include <stdio.h>
   24146 #include <stdlib.h>
   24147 int
   24148 main ()
   24149 {
   24150 
   24151   FILE *f = fopen ("conftest.val", "w");
   24152   if (! f)
   24153     return 1;
   24154   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   24155     {
   24156       long int i = longval ();
   24157       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24158 	return 1;
   24159       fprintf (f, "%ld\n", i);
   24160     }
   24161   else
   24162     {
   24163       unsigned long int i = ulongval ();
   24164       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24165 	return 1;
   24166       fprintf (f, "%lu\n", i);
   24167     }
   24168   return ferror (f) || fclose (f) != 0;
   24169 
   24170   ;
   24171   return 0;
   24172 }
   24173 _ACEOF
   24174 rm -f conftest$ac_exeext
   24175 if { (ac_try="$ac_link"
   24176 case "(($ac_try" in
   24177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24178   *) ac_try_echo=$ac_try;;
   24179 esac
   24180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24181   (eval "$ac_link") 2>&5
   24182   ac_status=$?
   24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24185   { (case "(($ac_try" in
   24186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24187   *) ac_try_echo=$ac_try;;
   24188 esac
   24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24190   (eval "$ac_try") 2>&5
   24191   ac_status=$?
   24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24193   (exit $ac_status); }; }; then
   24194   ac_cv_sizeof_unsigned_short=`cat conftest.val`
   24195 else
   24196   echo "$as_me: program exited with status $ac_status" >&5
   24197 echo "$as_me: failed program was:" >&5
   24198 sed 's/^/| /' conftest.$ac_ext >&5
   24199 
   24200 ( exit $ac_status )
   24201 if test "$ac_cv_type_unsigned_short" = yes; then
   24202      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
   24203 See \`config.log' for more details." >&5
   24204 echo "$as_me: error: cannot compute sizeof (unsigned short)
   24205 See \`config.log' for more details." >&2;}
   24206    { (exit 77); exit 77; }; }
   24207    else
   24208      ac_cv_sizeof_unsigned_short=0
   24209    fi
   24210 fi
   24211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   24212 fi
   24213 rm -f conftest.val
   24214 fi
   24215 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
   24216 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6; }
   24217 
   24218 
   24219 
   24220 cat >>confdefs.h <<_ACEOF
   24221 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
   24222 _ACEOF
   24223 
   24224 
   24225 { echo "$as_me:$LINENO: checking for unsigned int" >&5
   24226 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6; }
   24227 if test "${ac_cv_type_unsigned_int+set}" = set; then
   24228   echo $ECHO_N "(cached) $ECHO_C" >&6
   24229 else
   24230   cat >conftest.$ac_ext <<_ACEOF
   24231 /* confdefs.h.  */
   24232 _ACEOF
   24233 cat confdefs.h >>conftest.$ac_ext
   24234 cat >>conftest.$ac_ext <<_ACEOF
   24235 /* end confdefs.h.  */
   24236 $ac_includes_default
   24237 typedef unsigned int ac__type_new_;
   24238 int
   24239 main ()
   24240 {
   24241 if ((ac__type_new_ *) 0)
   24242   return 0;
   24243 if (sizeof (ac__type_new_))
   24244   return 0;
   24245   ;
   24246   return 0;
   24247 }
   24248 _ACEOF
   24249 rm -f conftest.$ac_objext
   24250 if { (ac_try="$ac_compile"
   24251 case "(($ac_try" in
   24252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24253   *) ac_try_echo=$ac_try;;
   24254 esac
   24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24256   (eval "$ac_compile") 2>conftest.er1
   24257   ac_status=$?
   24258   grep -v '^ *+' conftest.er1 >conftest.err
   24259   rm -f conftest.er1
   24260   cat conftest.err >&5
   24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24262   (exit $ac_status); } && {
   24263 	 test -z "$ac_c_werror_flag" ||
   24264 	 test ! -s conftest.err
   24265        } && test -s conftest.$ac_objext; then
   24266   ac_cv_type_unsigned_int=yes
   24267 else
   24268   echo "$as_me: failed program was:" >&5
   24269 sed 's/^/| /' conftest.$ac_ext >&5
   24270 
   24271 	ac_cv_type_unsigned_int=no
   24272 fi
   24273 
   24274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24275 fi
   24276 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
   24277 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6; }
   24278 
   24279 # The cast to long int works around a bug in the HP C Compiler
   24280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   24281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   24282 # This bug is HP SR number 8606223364.
   24283 { echo "$as_me:$LINENO: checking size of unsigned int" >&5
   24284 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6; }
   24285 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
   24286   echo $ECHO_N "(cached) $ECHO_C" >&6
   24287 else
   24288   if test "$cross_compiling" = yes; then
   24289   # Depending upon the size, compute the lo and hi bounds.
   24290 cat >conftest.$ac_ext <<_ACEOF
   24291 /* confdefs.h.  */
   24292 _ACEOF
   24293 cat confdefs.h >>conftest.$ac_ext
   24294 cat >>conftest.$ac_ext <<_ACEOF
   24295 /* end confdefs.h.  */
   24296 $ac_includes_default
   24297    typedef unsigned int ac__type_sizeof_;
   24298 int
   24299 main ()
   24300 {
   24301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   24302 test_array [0] = 0
   24303 
   24304   ;
   24305   return 0;
   24306 }
   24307 _ACEOF
   24308 rm -f conftest.$ac_objext
   24309 if { (ac_try="$ac_compile"
   24310 case "(($ac_try" in
   24311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24312   *) ac_try_echo=$ac_try;;
   24313 esac
   24314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24315   (eval "$ac_compile") 2>conftest.er1
   24316   ac_status=$?
   24317   grep -v '^ *+' conftest.er1 >conftest.err
   24318   rm -f conftest.er1
   24319   cat conftest.err >&5
   24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24321   (exit $ac_status); } && {
   24322 	 test -z "$ac_c_werror_flag" ||
   24323 	 test ! -s conftest.err
   24324        } && test -s conftest.$ac_objext; then
   24325   ac_lo=0 ac_mid=0
   24326   while :; do
   24327     cat >conftest.$ac_ext <<_ACEOF
   24328 /* confdefs.h.  */
   24329 _ACEOF
   24330 cat confdefs.h >>conftest.$ac_ext
   24331 cat >>conftest.$ac_ext <<_ACEOF
   24332 /* end confdefs.h.  */
   24333 $ac_includes_default
   24334    typedef unsigned int ac__type_sizeof_;
   24335 int
   24336 main ()
   24337 {
   24338 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24339 test_array [0] = 0
   24340 
   24341   ;
   24342   return 0;
   24343 }
   24344 _ACEOF
   24345 rm -f conftest.$ac_objext
   24346 if { (ac_try="$ac_compile"
   24347 case "(($ac_try" in
   24348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24349   *) ac_try_echo=$ac_try;;
   24350 esac
   24351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24352   (eval "$ac_compile") 2>conftest.er1
   24353   ac_status=$?
   24354   grep -v '^ *+' conftest.er1 >conftest.err
   24355   rm -f conftest.er1
   24356   cat conftest.err >&5
   24357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24358   (exit $ac_status); } && {
   24359 	 test -z "$ac_c_werror_flag" ||
   24360 	 test ! -s conftest.err
   24361        } && test -s conftest.$ac_objext; then
   24362   ac_hi=$ac_mid; break
   24363 else
   24364   echo "$as_me: failed program was:" >&5
   24365 sed 's/^/| /' conftest.$ac_ext >&5
   24366 
   24367 	ac_lo=`expr $ac_mid + 1`
   24368 			if test $ac_lo -le $ac_mid; then
   24369 			  ac_lo= ac_hi=
   24370 			  break
   24371 			fi
   24372 			ac_mid=`expr 2 '*' $ac_mid + 1`
   24373 fi
   24374 
   24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24376   done
   24377 else
   24378   echo "$as_me: failed program was:" >&5
   24379 sed 's/^/| /' conftest.$ac_ext >&5
   24380 
   24381 	cat >conftest.$ac_ext <<_ACEOF
   24382 /* confdefs.h.  */
   24383 _ACEOF
   24384 cat confdefs.h >>conftest.$ac_ext
   24385 cat >>conftest.$ac_ext <<_ACEOF
   24386 /* end confdefs.h.  */
   24387 $ac_includes_default
   24388    typedef unsigned int ac__type_sizeof_;
   24389 int
   24390 main ()
   24391 {
   24392 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   24393 test_array [0] = 0
   24394 
   24395   ;
   24396   return 0;
   24397 }
   24398 _ACEOF
   24399 rm -f conftest.$ac_objext
   24400 if { (ac_try="$ac_compile"
   24401 case "(($ac_try" in
   24402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24403   *) ac_try_echo=$ac_try;;
   24404 esac
   24405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24406   (eval "$ac_compile") 2>conftest.er1
   24407   ac_status=$?
   24408   grep -v '^ *+' conftest.er1 >conftest.err
   24409   rm -f conftest.er1
   24410   cat conftest.err >&5
   24411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24412   (exit $ac_status); } && {
   24413 	 test -z "$ac_c_werror_flag" ||
   24414 	 test ! -s conftest.err
   24415        } && test -s conftest.$ac_objext; then
   24416   ac_hi=-1 ac_mid=-1
   24417   while :; do
   24418     cat >conftest.$ac_ext <<_ACEOF
   24419 /* confdefs.h.  */
   24420 _ACEOF
   24421 cat confdefs.h >>conftest.$ac_ext
   24422 cat >>conftest.$ac_ext <<_ACEOF
   24423 /* end confdefs.h.  */
   24424 $ac_includes_default
   24425    typedef unsigned int ac__type_sizeof_;
   24426 int
   24427 main ()
   24428 {
   24429 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   24430 test_array [0] = 0
   24431 
   24432   ;
   24433   return 0;
   24434 }
   24435 _ACEOF
   24436 rm -f conftest.$ac_objext
   24437 if { (ac_try="$ac_compile"
   24438 case "(($ac_try" in
   24439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24440   *) ac_try_echo=$ac_try;;
   24441 esac
   24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24443   (eval "$ac_compile") 2>conftest.er1
   24444   ac_status=$?
   24445   grep -v '^ *+' conftest.er1 >conftest.err
   24446   rm -f conftest.er1
   24447   cat conftest.err >&5
   24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24449   (exit $ac_status); } && {
   24450 	 test -z "$ac_c_werror_flag" ||
   24451 	 test ! -s conftest.err
   24452        } && test -s conftest.$ac_objext; then
   24453   ac_lo=$ac_mid; break
   24454 else
   24455   echo "$as_me: failed program was:" >&5
   24456 sed 's/^/| /' conftest.$ac_ext >&5
   24457 
   24458 	ac_hi=`expr '(' $ac_mid ')' - 1`
   24459 			if test $ac_mid -le $ac_hi; then
   24460 			  ac_lo= ac_hi=
   24461 			  break
   24462 			fi
   24463 			ac_mid=`expr 2 '*' $ac_mid`
   24464 fi
   24465 
   24466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24467   done
   24468 else
   24469   echo "$as_me: failed program was:" >&5
   24470 sed 's/^/| /' conftest.$ac_ext >&5
   24471 
   24472 	ac_lo= ac_hi=
   24473 fi
   24474 
   24475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24476 fi
   24477 
   24478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24479 # Binary search between lo and hi bounds.
   24480 while test "x$ac_lo" != "x$ac_hi"; do
   24481   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   24482   cat >conftest.$ac_ext <<_ACEOF
   24483 /* confdefs.h.  */
   24484 _ACEOF
   24485 cat confdefs.h >>conftest.$ac_ext
   24486 cat >>conftest.$ac_ext <<_ACEOF
   24487 /* end confdefs.h.  */
   24488 $ac_includes_default
   24489    typedef unsigned int ac__type_sizeof_;
   24490 int
   24491 main ()
   24492 {
   24493 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24494 test_array [0] = 0
   24495 
   24496   ;
   24497   return 0;
   24498 }
   24499 _ACEOF
   24500 rm -f conftest.$ac_objext
   24501 if { (ac_try="$ac_compile"
   24502 case "(($ac_try" in
   24503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24504   *) ac_try_echo=$ac_try;;
   24505 esac
   24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24507   (eval "$ac_compile") 2>conftest.er1
   24508   ac_status=$?
   24509   grep -v '^ *+' conftest.er1 >conftest.err
   24510   rm -f conftest.er1
   24511   cat conftest.err >&5
   24512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24513   (exit $ac_status); } && {
   24514 	 test -z "$ac_c_werror_flag" ||
   24515 	 test ! -s conftest.err
   24516        } && test -s conftest.$ac_objext; then
   24517   ac_hi=$ac_mid
   24518 else
   24519   echo "$as_me: failed program was:" >&5
   24520 sed 's/^/| /' conftest.$ac_ext >&5
   24521 
   24522 	ac_lo=`expr '(' $ac_mid ')' + 1`
   24523 fi
   24524 
   24525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24526 done
   24527 case $ac_lo in
   24528 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
   24529 '') if test "$ac_cv_type_unsigned_int" = yes; then
   24530      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
   24531 See \`config.log' for more details." >&5
   24532 echo "$as_me: error: cannot compute sizeof (unsigned int)
   24533 See \`config.log' for more details." >&2;}
   24534    { (exit 77); exit 77; }; }
   24535    else
   24536      ac_cv_sizeof_unsigned_int=0
   24537    fi ;;
   24538 esac
   24539 else
   24540   cat >conftest.$ac_ext <<_ACEOF
   24541 /* confdefs.h.  */
   24542 _ACEOF
   24543 cat confdefs.h >>conftest.$ac_ext
   24544 cat >>conftest.$ac_ext <<_ACEOF
   24545 /* end confdefs.h.  */
   24546 $ac_includes_default
   24547    typedef unsigned int ac__type_sizeof_;
   24548 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24549 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24550 #include <stdio.h>
   24551 #include <stdlib.h>
   24552 int
   24553 main ()
   24554 {
   24555 
   24556   FILE *f = fopen ("conftest.val", "w");
   24557   if (! f)
   24558     return 1;
   24559   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   24560     {
   24561       long int i = longval ();
   24562       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24563 	return 1;
   24564       fprintf (f, "%ld\n", i);
   24565     }
   24566   else
   24567     {
   24568       unsigned long int i = ulongval ();
   24569       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24570 	return 1;
   24571       fprintf (f, "%lu\n", i);
   24572     }
   24573   return ferror (f) || fclose (f) != 0;
   24574 
   24575   ;
   24576   return 0;
   24577 }
   24578 _ACEOF
   24579 rm -f conftest$ac_exeext
   24580 if { (ac_try="$ac_link"
   24581 case "(($ac_try" in
   24582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24583   *) ac_try_echo=$ac_try;;
   24584 esac
   24585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24586   (eval "$ac_link") 2>&5
   24587   ac_status=$?
   24588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24590   { (case "(($ac_try" in
   24591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24592   *) ac_try_echo=$ac_try;;
   24593 esac
   24594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24595   (eval "$ac_try") 2>&5
   24596   ac_status=$?
   24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24598   (exit $ac_status); }; }; then
   24599   ac_cv_sizeof_unsigned_int=`cat conftest.val`
   24600 else
   24601   echo "$as_me: program exited with status $ac_status" >&5
   24602 echo "$as_me: failed program was:" >&5
   24603 sed 's/^/| /' conftest.$ac_ext >&5
   24604 
   24605 ( exit $ac_status )
   24606 if test "$ac_cv_type_unsigned_int" = yes; then
   24607      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
   24608 See \`config.log' for more details." >&5
   24609 echo "$as_me: error: cannot compute sizeof (unsigned int)
   24610 See \`config.log' for more details." >&2;}
   24611    { (exit 77); exit 77; }; }
   24612    else
   24613      ac_cv_sizeof_unsigned_int=0
   24614    fi
   24615 fi
   24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   24617 fi
   24618 rm -f conftest.val
   24619 fi
   24620 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
   24621 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6; }
   24622 
   24623 
   24624 
   24625 cat >>confdefs.h <<_ACEOF
   24626 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
   24627 _ACEOF
   24628 
   24629 
   24630 { echo "$as_me:$LINENO: checking for unsigned long" >&5
   24631 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
   24632 if test "${ac_cv_type_unsigned_long+set}" = set; then
   24633   echo $ECHO_N "(cached) $ECHO_C" >&6
   24634 else
   24635   cat >conftest.$ac_ext <<_ACEOF
   24636 /* confdefs.h.  */
   24637 _ACEOF
   24638 cat confdefs.h >>conftest.$ac_ext
   24639 cat >>conftest.$ac_ext <<_ACEOF
   24640 /* end confdefs.h.  */
   24641 $ac_includes_default
   24642 typedef unsigned long ac__type_new_;
   24643 int
   24644 main ()
   24645 {
   24646 if ((ac__type_new_ *) 0)
   24647   return 0;
   24648 if (sizeof (ac__type_new_))
   24649   return 0;
   24650   ;
   24651   return 0;
   24652 }
   24653 _ACEOF
   24654 rm -f conftest.$ac_objext
   24655 if { (ac_try="$ac_compile"
   24656 case "(($ac_try" in
   24657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24658   *) ac_try_echo=$ac_try;;
   24659 esac
   24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24661   (eval "$ac_compile") 2>conftest.er1
   24662   ac_status=$?
   24663   grep -v '^ *+' conftest.er1 >conftest.err
   24664   rm -f conftest.er1
   24665   cat conftest.err >&5
   24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24667   (exit $ac_status); } && {
   24668 	 test -z "$ac_c_werror_flag" ||
   24669 	 test ! -s conftest.err
   24670        } && test -s conftest.$ac_objext; then
   24671   ac_cv_type_unsigned_long=yes
   24672 else
   24673   echo "$as_me: failed program was:" >&5
   24674 sed 's/^/| /' conftest.$ac_ext >&5
   24675 
   24676 	ac_cv_type_unsigned_long=no
   24677 fi
   24678 
   24679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24680 fi
   24681 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
   24682 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
   24683 
   24684 # The cast to long int works around a bug in the HP C Compiler
   24685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   24686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   24687 # This bug is HP SR number 8606223364.
   24688 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
   24689 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
   24690 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
   24691   echo $ECHO_N "(cached) $ECHO_C" >&6
   24692 else
   24693   if test "$cross_compiling" = yes; then
   24694   # Depending upon the size, compute the lo and hi bounds.
   24695 cat >conftest.$ac_ext <<_ACEOF
   24696 /* confdefs.h.  */
   24697 _ACEOF
   24698 cat confdefs.h >>conftest.$ac_ext
   24699 cat >>conftest.$ac_ext <<_ACEOF
   24700 /* end confdefs.h.  */
   24701 $ac_includes_default
   24702    typedef unsigned long ac__type_sizeof_;
   24703 int
   24704 main ()
   24705 {
   24706 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   24707 test_array [0] = 0
   24708 
   24709   ;
   24710   return 0;
   24711 }
   24712 _ACEOF
   24713 rm -f conftest.$ac_objext
   24714 if { (ac_try="$ac_compile"
   24715 case "(($ac_try" in
   24716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24717   *) ac_try_echo=$ac_try;;
   24718 esac
   24719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24720   (eval "$ac_compile") 2>conftest.er1
   24721   ac_status=$?
   24722   grep -v '^ *+' conftest.er1 >conftest.err
   24723   rm -f conftest.er1
   24724   cat conftest.err >&5
   24725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24726   (exit $ac_status); } && {
   24727 	 test -z "$ac_c_werror_flag" ||
   24728 	 test ! -s conftest.err
   24729        } && test -s conftest.$ac_objext; then
   24730   ac_lo=0 ac_mid=0
   24731   while :; do
   24732     cat >conftest.$ac_ext <<_ACEOF
   24733 /* confdefs.h.  */
   24734 _ACEOF
   24735 cat confdefs.h >>conftest.$ac_ext
   24736 cat >>conftest.$ac_ext <<_ACEOF
   24737 /* end confdefs.h.  */
   24738 $ac_includes_default
   24739    typedef unsigned long ac__type_sizeof_;
   24740 int
   24741 main ()
   24742 {
   24743 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24744 test_array [0] = 0
   24745 
   24746   ;
   24747   return 0;
   24748 }
   24749 _ACEOF
   24750 rm -f conftest.$ac_objext
   24751 if { (ac_try="$ac_compile"
   24752 case "(($ac_try" in
   24753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24754   *) ac_try_echo=$ac_try;;
   24755 esac
   24756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24757   (eval "$ac_compile") 2>conftest.er1
   24758   ac_status=$?
   24759   grep -v '^ *+' conftest.er1 >conftest.err
   24760   rm -f conftest.er1
   24761   cat conftest.err >&5
   24762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24763   (exit $ac_status); } && {
   24764 	 test -z "$ac_c_werror_flag" ||
   24765 	 test ! -s conftest.err
   24766        } && test -s conftest.$ac_objext; then
   24767   ac_hi=$ac_mid; break
   24768 else
   24769   echo "$as_me: failed program was:" >&5
   24770 sed 's/^/| /' conftest.$ac_ext >&5
   24771 
   24772 	ac_lo=`expr $ac_mid + 1`
   24773 			if test $ac_lo -le $ac_mid; then
   24774 			  ac_lo= ac_hi=
   24775 			  break
   24776 			fi
   24777 			ac_mid=`expr 2 '*' $ac_mid + 1`
   24778 fi
   24779 
   24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24781   done
   24782 else
   24783   echo "$as_me: failed program was:" >&5
   24784 sed 's/^/| /' conftest.$ac_ext >&5
   24785 
   24786 	cat >conftest.$ac_ext <<_ACEOF
   24787 /* confdefs.h.  */
   24788 _ACEOF
   24789 cat confdefs.h >>conftest.$ac_ext
   24790 cat >>conftest.$ac_ext <<_ACEOF
   24791 /* end confdefs.h.  */
   24792 $ac_includes_default
   24793    typedef unsigned long ac__type_sizeof_;
   24794 int
   24795 main ()
   24796 {
   24797 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   24798 test_array [0] = 0
   24799 
   24800   ;
   24801   return 0;
   24802 }
   24803 _ACEOF
   24804 rm -f conftest.$ac_objext
   24805 if { (ac_try="$ac_compile"
   24806 case "(($ac_try" in
   24807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24808   *) ac_try_echo=$ac_try;;
   24809 esac
   24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24811   (eval "$ac_compile") 2>conftest.er1
   24812   ac_status=$?
   24813   grep -v '^ *+' conftest.er1 >conftest.err
   24814   rm -f conftest.er1
   24815   cat conftest.err >&5
   24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24817   (exit $ac_status); } && {
   24818 	 test -z "$ac_c_werror_flag" ||
   24819 	 test ! -s conftest.err
   24820        } && test -s conftest.$ac_objext; then
   24821   ac_hi=-1 ac_mid=-1
   24822   while :; do
   24823     cat >conftest.$ac_ext <<_ACEOF
   24824 /* confdefs.h.  */
   24825 _ACEOF
   24826 cat confdefs.h >>conftest.$ac_ext
   24827 cat >>conftest.$ac_ext <<_ACEOF
   24828 /* end confdefs.h.  */
   24829 $ac_includes_default
   24830    typedef unsigned long ac__type_sizeof_;
   24831 int
   24832 main ()
   24833 {
   24834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   24835 test_array [0] = 0
   24836 
   24837   ;
   24838   return 0;
   24839 }
   24840 _ACEOF
   24841 rm -f conftest.$ac_objext
   24842 if { (ac_try="$ac_compile"
   24843 case "(($ac_try" in
   24844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24845   *) ac_try_echo=$ac_try;;
   24846 esac
   24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24848   (eval "$ac_compile") 2>conftest.er1
   24849   ac_status=$?
   24850   grep -v '^ *+' conftest.er1 >conftest.err
   24851   rm -f conftest.er1
   24852   cat conftest.err >&5
   24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24854   (exit $ac_status); } && {
   24855 	 test -z "$ac_c_werror_flag" ||
   24856 	 test ! -s conftest.err
   24857        } && test -s conftest.$ac_objext; then
   24858   ac_lo=$ac_mid; break
   24859 else
   24860   echo "$as_me: failed program was:" >&5
   24861 sed 's/^/| /' conftest.$ac_ext >&5
   24862 
   24863 	ac_hi=`expr '(' $ac_mid ')' - 1`
   24864 			if test $ac_mid -le $ac_hi; then
   24865 			  ac_lo= ac_hi=
   24866 			  break
   24867 			fi
   24868 			ac_mid=`expr 2 '*' $ac_mid`
   24869 fi
   24870 
   24871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24872   done
   24873 else
   24874   echo "$as_me: failed program was:" >&5
   24875 sed 's/^/| /' conftest.$ac_ext >&5
   24876 
   24877 	ac_lo= ac_hi=
   24878 fi
   24879 
   24880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24881 fi
   24882 
   24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24884 # Binary search between lo and hi bounds.
   24885 while test "x$ac_lo" != "x$ac_hi"; do
   24886   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   24887   cat >conftest.$ac_ext <<_ACEOF
   24888 /* confdefs.h.  */
   24889 _ACEOF
   24890 cat confdefs.h >>conftest.$ac_ext
   24891 cat >>conftest.$ac_ext <<_ACEOF
   24892 /* end confdefs.h.  */
   24893 $ac_includes_default
   24894    typedef unsigned long ac__type_sizeof_;
   24895 int
   24896 main ()
   24897 {
   24898 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   24899 test_array [0] = 0
   24900 
   24901   ;
   24902   return 0;
   24903 }
   24904 _ACEOF
   24905 rm -f conftest.$ac_objext
   24906 if { (ac_try="$ac_compile"
   24907 case "(($ac_try" in
   24908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24909   *) ac_try_echo=$ac_try;;
   24910 esac
   24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24912   (eval "$ac_compile") 2>conftest.er1
   24913   ac_status=$?
   24914   grep -v '^ *+' conftest.er1 >conftest.err
   24915   rm -f conftest.er1
   24916   cat conftest.err >&5
   24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24918   (exit $ac_status); } && {
   24919 	 test -z "$ac_c_werror_flag" ||
   24920 	 test ! -s conftest.err
   24921        } && test -s conftest.$ac_objext; then
   24922   ac_hi=$ac_mid
   24923 else
   24924   echo "$as_me: failed program was:" >&5
   24925 sed 's/^/| /' conftest.$ac_ext >&5
   24926 
   24927 	ac_lo=`expr '(' $ac_mid ')' + 1`
   24928 fi
   24929 
   24930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   24931 done
   24932 case $ac_lo in
   24933 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
   24934 '') if test "$ac_cv_type_unsigned_long" = yes; then
   24935      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
   24936 See \`config.log' for more details." >&5
   24937 echo "$as_me: error: cannot compute sizeof (unsigned long)
   24938 See \`config.log' for more details." >&2;}
   24939    { (exit 77); exit 77; }; }
   24940    else
   24941      ac_cv_sizeof_unsigned_long=0
   24942    fi ;;
   24943 esac
   24944 else
   24945   cat >conftest.$ac_ext <<_ACEOF
   24946 /* confdefs.h.  */
   24947 _ACEOF
   24948 cat confdefs.h >>conftest.$ac_ext
   24949 cat >>conftest.$ac_ext <<_ACEOF
   24950 /* end confdefs.h.  */
   24951 $ac_includes_default
   24952    typedef unsigned long ac__type_sizeof_;
   24953 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24954 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   24955 #include <stdio.h>
   24956 #include <stdlib.h>
   24957 int
   24958 main ()
   24959 {
   24960 
   24961   FILE *f = fopen ("conftest.val", "w");
   24962   if (! f)
   24963     return 1;
   24964   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   24965     {
   24966       long int i = longval ();
   24967       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24968 	return 1;
   24969       fprintf (f, "%ld\n", i);
   24970     }
   24971   else
   24972     {
   24973       unsigned long int i = ulongval ();
   24974       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   24975 	return 1;
   24976       fprintf (f, "%lu\n", i);
   24977     }
   24978   return ferror (f) || fclose (f) != 0;
   24979 
   24980   ;
   24981   return 0;
   24982 }
   24983 _ACEOF
   24984 rm -f conftest$ac_exeext
   24985 if { (ac_try="$ac_link"
   24986 case "(($ac_try" in
   24987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24988   *) ac_try_echo=$ac_try;;
   24989 esac
   24990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   24991   (eval "$ac_link") 2>&5
   24992   ac_status=$?
   24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   24994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   24995   { (case "(($ac_try" in
   24996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   24997   *) ac_try_echo=$ac_try;;
   24998 esac
   24999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25000   (eval "$ac_try") 2>&5
   25001   ac_status=$?
   25002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25003   (exit $ac_status); }; }; then
   25004   ac_cv_sizeof_unsigned_long=`cat conftest.val`
   25005 else
   25006   echo "$as_me: program exited with status $ac_status" >&5
   25007 echo "$as_me: failed program was:" >&5
   25008 sed 's/^/| /' conftest.$ac_ext >&5
   25009 
   25010 ( exit $ac_status )
   25011 if test "$ac_cv_type_unsigned_long" = yes; then
   25012      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
   25013 See \`config.log' for more details." >&5
   25014 echo "$as_me: error: cannot compute sizeof (unsigned long)
   25015 See \`config.log' for more details." >&2;}
   25016    { (exit 77); exit 77; }; }
   25017    else
   25018      ac_cv_sizeof_unsigned_long=0
   25019    fi
   25020 fi
   25021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25022 fi
   25023 rm -f conftest.val
   25024 fi
   25025 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
   25026 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
   25027 
   25028 
   25029 
   25030 cat >>confdefs.h <<_ACEOF
   25031 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
   25032 _ACEOF
   25033 
   25034 
   25035 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
   25036 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
   25037 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
   25038   echo $ECHO_N "(cached) $ECHO_C" >&6
   25039 else
   25040   cat >conftest.$ac_ext <<_ACEOF
   25041 /* confdefs.h.  */
   25042 _ACEOF
   25043 cat confdefs.h >>conftest.$ac_ext
   25044 cat >>conftest.$ac_ext <<_ACEOF
   25045 /* end confdefs.h.  */
   25046 $ac_includes_default
   25047 typedef unsigned long long ac__type_new_;
   25048 int
   25049 main ()
   25050 {
   25051 if ((ac__type_new_ *) 0)
   25052   return 0;
   25053 if (sizeof (ac__type_new_))
   25054   return 0;
   25055   ;
   25056   return 0;
   25057 }
   25058 _ACEOF
   25059 rm -f conftest.$ac_objext
   25060 if { (ac_try="$ac_compile"
   25061 case "(($ac_try" in
   25062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25063   *) ac_try_echo=$ac_try;;
   25064 esac
   25065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25066   (eval "$ac_compile") 2>conftest.er1
   25067   ac_status=$?
   25068   grep -v '^ *+' conftest.er1 >conftest.err
   25069   rm -f conftest.er1
   25070   cat conftest.err >&5
   25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25072   (exit $ac_status); } && {
   25073 	 test -z "$ac_c_werror_flag" ||
   25074 	 test ! -s conftest.err
   25075        } && test -s conftest.$ac_objext; then
   25076   ac_cv_type_unsigned_long_long=yes
   25077 else
   25078   echo "$as_me: failed program was:" >&5
   25079 sed 's/^/| /' conftest.$ac_ext >&5
   25080 
   25081 	ac_cv_type_unsigned_long_long=no
   25082 fi
   25083 
   25084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25085 fi
   25086 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
   25087 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
   25088 
   25089 # The cast to long int works around a bug in the HP C Compiler
   25090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25092 # This bug is HP SR number 8606223364.
   25093 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
   25094 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
   25095 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
   25096   echo $ECHO_N "(cached) $ECHO_C" >&6
   25097 else
   25098   if test "$cross_compiling" = yes; then
   25099   # Depending upon the size, compute the lo and hi bounds.
   25100 cat >conftest.$ac_ext <<_ACEOF
   25101 /* confdefs.h.  */
   25102 _ACEOF
   25103 cat confdefs.h >>conftest.$ac_ext
   25104 cat >>conftest.$ac_ext <<_ACEOF
   25105 /* end confdefs.h.  */
   25106 $ac_includes_default
   25107    typedef unsigned long long ac__type_sizeof_;
   25108 int
   25109 main ()
   25110 {
   25111 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   25112 test_array [0] = 0
   25113 
   25114   ;
   25115   return 0;
   25116 }
   25117 _ACEOF
   25118 rm -f conftest.$ac_objext
   25119 if { (ac_try="$ac_compile"
   25120 case "(($ac_try" in
   25121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25122   *) ac_try_echo=$ac_try;;
   25123 esac
   25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25125   (eval "$ac_compile") 2>conftest.er1
   25126   ac_status=$?
   25127   grep -v '^ *+' conftest.er1 >conftest.err
   25128   rm -f conftest.er1
   25129   cat conftest.err >&5
   25130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25131   (exit $ac_status); } && {
   25132 	 test -z "$ac_c_werror_flag" ||
   25133 	 test ! -s conftest.err
   25134        } && test -s conftest.$ac_objext; then
   25135   ac_lo=0 ac_mid=0
   25136   while :; do
   25137     cat >conftest.$ac_ext <<_ACEOF
   25138 /* confdefs.h.  */
   25139 _ACEOF
   25140 cat confdefs.h >>conftest.$ac_ext
   25141 cat >>conftest.$ac_ext <<_ACEOF
   25142 /* end confdefs.h.  */
   25143 $ac_includes_default
   25144    typedef unsigned long long ac__type_sizeof_;
   25145 int
   25146 main ()
   25147 {
   25148 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25149 test_array [0] = 0
   25150 
   25151   ;
   25152   return 0;
   25153 }
   25154 _ACEOF
   25155 rm -f conftest.$ac_objext
   25156 if { (ac_try="$ac_compile"
   25157 case "(($ac_try" in
   25158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25159   *) ac_try_echo=$ac_try;;
   25160 esac
   25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25162   (eval "$ac_compile") 2>conftest.er1
   25163   ac_status=$?
   25164   grep -v '^ *+' conftest.er1 >conftest.err
   25165   rm -f conftest.er1
   25166   cat conftest.err >&5
   25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25168   (exit $ac_status); } && {
   25169 	 test -z "$ac_c_werror_flag" ||
   25170 	 test ! -s conftest.err
   25171        } && test -s conftest.$ac_objext; then
   25172   ac_hi=$ac_mid; break
   25173 else
   25174   echo "$as_me: failed program was:" >&5
   25175 sed 's/^/| /' conftest.$ac_ext >&5
   25176 
   25177 	ac_lo=`expr $ac_mid + 1`
   25178 			if test $ac_lo -le $ac_mid; then
   25179 			  ac_lo= ac_hi=
   25180 			  break
   25181 			fi
   25182 			ac_mid=`expr 2 '*' $ac_mid + 1`
   25183 fi
   25184 
   25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25186   done
   25187 else
   25188   echo "$as_me: failed program was:" >&5
   25189 sed 's/^/| /' conftest.$ac_ext >&5
   25190 
   25191 	cat >conftest.$ac_ext <<_ACEOF
   25192 /* confdefs.h.  */
   25193 _ACEOF
   25194 cat confdefs.h >>conftest.$ac_ext
   25195 cat >>conftest.$ac_ext <<_ACEOF
   25196 /* end confdefs.h.  */
   25197 $ac_includes_default
   25198    typedef unsigned long long ac__type_sizeof_;
   25199 int
   25200 main ()
   25201 {
   25202 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   25203 test_array [0] = 0
   25204 
   25205   ;
   25206   return 0;
   25207 }
   25208 _ACEOF
   25209 rm -f conftest.$ac_objext
   25210 if { (ac_try="$ac_compile"
   25211 case "(($ac_try" in
   25212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25213   *) ac_try_echo=$ac_try;;
   25214 esac
   25215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25216   (eval "$ac_compile") 2>conftest.er1
   25217   ac_status=$?
   25218   grep -v '^ *+' conftest.er1 >conftest.err
   25219   rm -f conftest.er1
   25220   cat conftest.err >&5
   25221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25222   (exit $ac_status); } && {
   25223 	 test -z "$ac_c_werror_flag" ||
   25224 	 test ! -s conftest.err
   25225        } && test -s conftest.$ac_objext; then
   25226   ac_hi=-1 ac_mid=-1
   25227   while :; do
   25228     cat >conftest.$ac_ext <<_ACEOF
   25229 /* confdefs.h.  */
   25230 _ACEOF
   25231 cat confdefs.h >>conftest.$ac_ext
   25232 cat >>conftest.$ac_ext <<_ACEOF
   25233 /* end confdefs.h.  */
   25234 $ac_includes_default
   25235    typedef unsigned long long ac__type_sizeof_;
   25236 int
   25237 main ()
   25238 {
   25239 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   25240 test_array [0] = 0
   25241 
   25242   ;
   25243   return 0;
   25244 }
   25245 _ACEOF
   25246 rm -f conftest.$ac_objext
   25247 if { (ac_try="$ac_compile"
   25248 case "(($ac_try" in
   25249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25250   *) ac_try_echo=$ac_try;;
   25251 esac
   25252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25253   (eval "$ac_compile") 2>conftest.er1
   25254   ac_status=$?
   25255   grep -v '^ *+' conftest.er1 >conftest.err
   25256   rm -f conftest.er1
   25257   cat conftest.err >&5
   25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25259   (exit $ac_status); } && {
   25260 	 test -z "$ac_c_werror_flag" ||
   25261 	 test ! -s conftest.err
   25262        } && test -s conftest.$ac_objext; then
   25263   ac_lo=$ac_mid; break
   25264 else
   25265   echo "$as_me: failed program was:" >&5
   25266 sed 's/^/| /' conftest.$ac_ext >&5
   25267 
   25268 	ac_hi=`expr '(' $ac_mid ')' - 1`
   25269 			if test $ac_mid -le $ac_hi; then
   25270 			  ac_lo= ac_hi=
   25271 			  break
   25272 			fi
   25273 			ac_mid=`expr 2 '*' $ac_mid`
   25274 fi
   25275 
   25276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25277   done
   25278 else
   25279   echo "$as_me: failed program was:" >&5
   25280 sed 's/^/| /' conftest.$ac_ext >&5
   25281 
   25282 	ac_lo= ac_hi=
   25283 fi
   25284 
   25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25286 fi
   25287 
   25288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25289 # Binary search between lo and hi bounds.
   25290 while test "x$ac_lo" != "x$ac_hi"; do
   25291   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
   25292   cat >conftest.$ac_ext <<_ACEOF
   25293 /* confdefs.h.  */
   25294 _ACEOF
   25295 cat confdefs.h >>conftest.$ac_ext
   25296 cat >>conftest.$ac_ext <<_ACEOF
   25297 /* end confdefs.h.  */
   25298 $ac_includes_default
   25299    typedef unsigned long long ac__type_sizeof_;
   25300 int
   25301 main ()
   25302 {
   25303 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25304 test_array [0] = 0
   25305 
   25306   ;
   25307   return 0;
   25308 }
   25309 _ACEOF
   25310 rm -f conftest.$ac_objext
   25311 if { (ac_try="$ac_compile"
   25312 case "(($ac_try" in
   25313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25314   *) ac_try_echo=$ac_try;;
   25315 esac
   25316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25317   (eval "$ac_compile") 2>conftest.er1
   25318   ac_status=$?
   25319   grep -v '^ *+' conftest.er1 >conftest.err
   25320   rm -f conftest.er1
   25321   cat conftest.err >&5
   25322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25323   (exit $ac_status); } && {
   25324 	 test -z "$ac_c_werror_flag" ||
   25325 	 test ! -s conftest.err
   25326        } && test -s conftest.$ac_objext; then
   25327   ac_hi=$ac_mid
   25328 else
   25329   echo "$as_me: failed program was:" >&5
   25330 sed 's/^/| /' conftest.$ac_ext >&5
   25331 
   25332 	ac_lo=`expr '(' $ac_mid ')' + 1`
   25333 fi
   25334 
   25335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25336 done
   25337 case $ac_lo in
   25338 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
   25339 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
   25340      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
   25341 See \`config.log' for more details." >&5
   25342 echo "$as_me: error: cannot compute sizeof (unsigned long long)
   25343 See \`config.log' for more details." >&2;}
   25344    { (exit 77); exit 77; }; }
   25345    else
   25346      ac_cv_sizeof_unsigned_long_long=0
   25347    fi ;;
   25348 esac
   25349 else
   25350   cat >conftest.$ac_ext <<_ACEOF
   25351 /* confdefs.h.  */
   25352 _ACEOF
   25353 cat confdefs.h >>conftest.$ac_ext
   25354 cat >>conftest.$ac_ext <<_ACEOF
   25355 /* end confdefs.h.  */
   25356 $ac_includes_default
   25357    typedef unsigned long long ac__type_sizeof_;
   25358 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25359 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
   25360 #include <stdio.h>
   25361 #include <stdlib.h>
   25362 int
   25363 main ()
   25364 {
   25365 
   25366   FILE *f = fopen ("conftest.val", "w");
   25367   if (! f)
   25368     return 1;
   25369   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
   25370     {
   25371       long int i = longval ();
   25372       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25373 	return 1;
   25374       fprintf (f, "%ld\n", i);
   25375     }
   25376   else
   25377     {
   25378       unsigned long int i = ulongval ();
   25379       if (i != ((long int) (sizeof (ac__type_sizeof_))))
   25380 	return 1;
   25381       fprintf (f, "%lu\n", i);
   25382     }
   25383   return ferror (f) || fclose (f) != 0;
   25384 
   25385   ;
   25386   return 0;
   25387 }
   25388 _ACEOF
   25389 rm -f conftest$ac_exeext
   25390 if { (ac_try="$ac_link"
   25391 case "(($ac_try" in
   25392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25393   *) ac_try_echo=$ac_try;;
   25394 esac
   25395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25396   (eval "$ac_link") 2>&5
   25397   ac_status=$?
   25398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
   25400   { (case "(($ac_try" in
   25401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25402   *) ac_try_echo=$ac_try;;
   25403 esac
   25404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25405   (eval "$ac_try") 2>&5
   25406   ac_status=$?
   25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25408   (exit $ac_status); }; }; then
   25409   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
   25410 else
   25411   echo "$as_me: program exited with status $ac_status" >&5
   25412 echo "$as_me: failed program was:" >&5
   25413 sed 's/^/| /' conftest.$ac_ext >&5
   25414 
   25415 ( exit $ac_status )
   25416 if test "$ac_cv_type_unsigned_long_long" = yes; then
   25417      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
   25418 See \`config.log' for more details." >&5
   25419 echo "$as_me: error: cannot compute sizeof (unsigned long long)
   25420 See \`config.log' for more details." >&2;}
   25421    { (exit 77); exit 77; }; }
   25422    else
   25423      ac_cv_sizeof_unsigned_long_long=0
   25424    fi
   25425 fi
   25426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
   25427 fi
   25428 rm -f conftest.val
   25429 fi
   25430 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
   25431 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
   25432 
   25433 
   25434 
   25435 cat >>confdefs.h <<_ACEOF
   25436 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
   25437 _ACEOF
   25438 
   25439 
   25440 { echo "$as_me:$LINENO: checking for int *" >&5
   25441 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
   25442 if test "${ac_cv_type_int_p+set}" = set; then
   25443   echo $ECHO_N "(cached) $ECHO_C" >&6
   25444 else
   25445   cat >conftest.$ac_ext <<_ACEOF
   25446 /* confdefs.h.  */
   25447 _ACEOF
   25448 cat confdefs.h >>conftest.$ac_ext
   25449 cat >>conftest.$ac_ext <<_ACEOF
   25450 /* end confdefs.h.  */
   25451 $ac_includes_default
   25452 typedef int * ac__type_new_;
   25453 int
   25454 main ()
   25455 {
   25456 if ((ac__type_new_ *) 0)
   25457   return 0;
   25458 if (sizeof (ac__type_new_))
   25459   return 0;
   25460   ;
   25461   return 0;
   25462 }
   25463 _ACEOF
   25464 rm -f conftest.$ac_objext
   25465 if { (ac_try="$ac_compile"
   25466 case "(($ac_try" in
   25467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25468   *) ac_try_echo=$ac_try;;
   25469 esac
   25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25471   (eval "$ac_compile") 2>conftest.er1
   25472   ac_status=$?
   25473   grep -v '^ *+' conftest.er1 >conftest.err
   25474   rm -f conftest.er1
   25475   cat conftest.err >&5
   25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25477   (exit $ac_status); } && {
   25478 	 test -z "$ac_c_werror_flag" ||
   25479 	 test ! -s conftest.err
   25480        } && test -s conftest.$ac_objext; then
   25481   ac_cv_type_int_p=yes
   25482 else
   25483   echo "$as_me: failed program was:" >&5
   25484 sed 's/^/| /' conftest.$ac_ext >&5
   25485 
   25486 	ac_cv_type_int_p=no
   25487 fi
   25488 
   25489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25490 fi
   25491 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
   25492 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
   25493 
   25494 # The cast to long int works around a bug in the HP C Compiler
   25495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   25496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   25497 # This bug is HP SR number 8606223364.
   25498 { echo "$as_me:$LINENO: checking size of int *" >&5
   25499 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
   25500 if test "${ac_cv_sizeof_int_p+set}" = set; then
   25501   echo $ECHO_N "(cached) $ECHO_C" >&6
   25502 else
   25503   if test "$cross_compiling" = yes; then
   25504   # Depending upon the size, compute the lo and hi bounds.
   25505 cat >conftest.$ac_ext <<_ACEOF
   25506 /* confdefs.h.  */
   25507 _ACEOF
   25508 cat confdefs.h >>conftest.$ac_ext
   25509 cat >>conftest.$ac_ext <<_ACEOF
   25510 /* end confdefs.h.  */
   25511 $ac_includes_default
   25512    typedef int * ac__type_sizeof_;
   25513 int
   25514 main ()
   25515 {
   25516 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
   25517 test_array [0] = 0
   25518 
   25519   ;
   25520   return 0;
   25521 }
   25522 _ACEOF
   25523 rm -f conftest.$ac_objext
   25524 if { (ac_try="$ac_compile"
   25525 case "(($ac_try" in
   25526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25527   *) ac_try_echo=$ac_try;;
   25528 esac
   25529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25530   (eval "$ac_compile") 2>conftest.er1
   25531   ac_status=$?
   25532   grep -v '^ *+' conftest.er1 >conftest.err
   25533   rm -f conftest.er1
   25534   cat conftest.err >&5
   25535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25536   (exit $ac_status); } && {
   25537 	 test -z "$ac_c_werror_flag" ||
   25538 	 test ! -s conftest.err
   25539        } && test -s conftest.$ac_objext; then
   25540   ac_lo=0 ac_mid=0
   25541   while :; do
   25542     cat >conftest.$ac_ext <<_ACEOF
   25543 /* confdefs.h.  */
   25544 _ACEOF
   25545 cat confdefs.h >>conftest.$ac_ext
   25546 cat >>conftest.$ac_ext <<_ACEOF
   25547 /* end confdefs.h.  */
   25548 $ac_includes_default
   25549    typedef int * ac__type_sizeof_;
   25550 int
   25551 main ()
   25552 {
   25553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
   25554 test_array [0] = 0
   25555 
   25556   ;
   25557   return 0;
   25558 }
   25559 _ACEOF
   25560 rm -f conftest.$ac_objext
   25561 if { (ac_try="$ac_compile"
   25562 case "(($ac_try" in
   25563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25564   *) ac_try_echo=$ac_try;;
   25565 esac
   25566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25567   (eval "$ac_compile") 2>conftest.er1
   25568   ac_status=$?
   25569   grep -v '^ *+' conftest.er1 >conftest.err
   25570   rm -f conftest.er1
   25571   cat conftest.err >&5
   25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25573   (exit $ac_status); } && {
   25574 	 test -z "$ac_c_werror_flag" ||
   25575 	 test ! -s conftest.err
   25576        } && test -s conftest.$ac_objext; then
   25577   ac_hi=$ac_mid; break
   25578 else
   25579   echo "$as_me: failed program was:" >&5
   25580 sed 's/^/| /' conftest.$ac_ext >&5
   25581 
   25582 	ac_lo=`expr $ac_mid + 1`
   25583 			if test $ac_lo -le $ac_mid; then
   25584 			  ac_lo= ac_hi=
   25585 			  break
   25586 			fi
   25587 			ac_mid=`expr 2 '*' $ac_mid + 1`
   25588 fi
   25589 
   25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   25591   done
   25592 else
   25593   echo "$as_me: failed program was:" >&5
   25594 sed 's/^/| /' conftest.$ac_ext >&5
   25595 
   25596 	cat >conftest.$ac_ext <<_ACEOF
   25597 /* confdefs.h.  */
   25598 _ACEOF
   25599 cat confdefs.h >>conftest.$ac_ext
   25600 cat >>conftest.$ac_ext <<_ACEOF
   25601 /* end confdefs.h.  */
   25602 $ac_includes_default
   25603    typedef int * ac__type_sizeof_;
   25604 int
   25605 main ()
   25606 {
   25607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
   25608 test_array [0] = 0
   25609 
   25610   ;
   25611   return 0;
   25612 }
   25613 _ACEOF
   25614 rm -f conftest.$ac_objext
   25615 if { (ac_try="$ac_compile"
   25616 case "(($ac_try" in
   25617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   25618   *) ac_try_echo=$ac_try;;
   25619 esac
   25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
   25621   (eval "$ac_compile") 2>conftest.er1
   25622   ac_status=$?
   25623   grep -v '^ *+' conftest.er1 >conftest.err
   25624   rm -f conftest.er1
   25625   cat conftest.err >&5
   25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   25627   (exit $ac_status); } && {
   25628 	 test -z "$ac_c_werror_flag" ||
   25629 	 test ! -s conftest.err
   25630        } && test -s conftest.$ac_objext; then
   25631   ac_hi=-1 ac_mid=-1
   25632   while :; do
   25633     cat >conftest.$ac_ext <<_ACEOF
   25634 /* confdefs.h.  */
   25635 _ACEOF
   25636 cat confdefs.h >>conftest.$ac_ext
   25637 cat >>conftest.$ac_ext <<_ACEOF
   25638 /* end confdefs.h.  */
   25639 $ac_includes_default
   25640    typedef int * ac__type_sizeof_;
   25641 int
   25642 main ()
   25643 {
   25644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
   25645 test_array [0] = 0
   25646 
   25647   ;
   25648   return 0